py3.10-boto3 1.42.89-r0
“python3.10 version of boto3”
AWS SDK package source fileBundled Python dependency library path
SHA-256a22c2e60d1d9c72ff5db44519ab426a09441a201f8d72e08c6450c45351f026c
MaleculeH₂(Cm₃F)
Evidence
1# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"). You
4# may not use this file except in compliance with the License. A copy of
5# the License is located at
6#
7# https://aws.amazon.com/apache2.0/
8#
9# or in the "license" file accompanying this file. This file is
10# distributed on an "AS IS" BASIS, W …
11:8… IND, either express or implied. See the License for the specific
12# language governing permissions and limitations under the License.
13
14import copy
15import os
16
17import botocore.session
18from botocore.client import Config
19from botocore.exceptions import (
20 DataNotFoundError,
21 NoCredentialsError,
22 UnknownServiceError,
23)
24
25import boto3
26import boto3.utils
27from boto3.exceptions import ResourceNotExistsError, UnknownAPIVersionError
28
29from .resources.factory import ResourceFactory
30
31
32class Session:
33 """
34 A session stores configuration state and allows you to create service
35 clients and resources.
36
37 :type aws_access_key_id: string
38 :param aws_access_key_id: AWS access key ID
39 :type aws_secret_access_key: string
40 :param aws_secret_access_key: AWS secret access key
41 :type aws_session_token: string
42 :param aws_session_token: AWS temporary session token
43 :type region_name: string
44 :param region_name: Default region when creating new connections
45 :type botocore_session: botocore.session.Session
46 :param botocore_session: Use this Botocore session instead of creating
47 a new default one.
48 :type profile_name: string
49 :param profile_name: The name of a profile to use. If not given, then
50 the default profile is used.
51 :type aws_account_id: string
52 :param aws_account_id: AWS account ID
53 """
⋯5 lines
82:53… le', profile_name)
83
84 credentials_kwargs = {
85 "aws_access_key_id": aws_access_key_id,
86 "aws_secret_access_key": aws_secret_access_key,
87 "aws_session_token": aws_session_token,
88 "aws_account_id": aws_account_id,
89 }
90
91 if any(credentials_kwargs.values()):
92 …
187:44… y still be available for the
188 provided service.
189
190 :type service_name: string
191 :param service_name: Name of a service to list endpoint for (e.g., s3).
192
193 :type partition_name: string
194 :param partition_name: Name of the part …
269:22… boolean/string
270 :param verify: Whether or not to verify SSL certificates. By default
271 SSL certificates are verified. You can provide the following
272 values:
273
274 * False …
No evidence locations were recorded for this file. Raw result