boto3 1.40.3__tar.gz → 1.40.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {boto3-1.40.3 → boto3-1.40.5}/PKG-INFO +2 -2
- {boto3-1.40.3 → boto3-1.40.5}/boto3/__init__.py +1 -1
- {boto3-1.40.3 → boto3-1.40.5}/boto3/session.py +40 -30
- {boto3-1.40.3 → boto3-1.40.5}/boto3.egg-info/PKG-INFO +2 -2
- {boto3-1.40.3 → boto3-1.40.5}/boto3.egg-info/requires.txt +1 -1
- {boto3-1.40.3 → boto3-1.40.5}/setup.cfg +1 -1
- {boto3-1.40.3 → boto3-1.40.5}/setup.py +1 -1
- {boto3-1.40.3 → boto3-1.40.5}/CONTRIBUTING.rst +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/LICENSE +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/MANIFEST.in +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/NOTICE +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/README.rst +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/compat.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/crt.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/data/cloudformation/2010-05-15/resources-1.json +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/data/cloudwatch/2010-08-01/resources-1.json +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/data/dynamodb/2012-08-10/resources-1.json +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/data/ec2/2014-10-01/resources-1.json +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/data/ec2/2015-03-01/resources-1.json +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/data/ec2/2015-04-15/resources-1.json +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/data/ec2/2015-10-01/resources-1.json +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/data/ec2/2016-04-01/resources-1.json +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/data/ec2/2016-09-15/resources-1.json +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/data/ec2/2016-11-15/resources-1.json +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/data/glacier/2012-06-01/resources-1.json +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/data/iam/2010-05-08/resources-1.json +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/data/opsworks/2013-02-18/resources-1.json +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/data/s3/2006-03-01/resources-1.json +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/data/sns/2010-03-31/resources-1.json +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/data/sqs/2012-11-05/resources-1.json +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/__init__.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/action.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/attr.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/base.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/client.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/collection.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/docstring.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/method.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/resource.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/service.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/subresource.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/utils.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/waiter.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/dynamodb/__init__.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/dynamodb/conditions.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/dynamodb/table.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/dynamodb/transform.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/dynamodb/types.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/ec2/__init__.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/ec2/createtags.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/ec2/deletetags.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/examples/cloudfront.rst +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/examples/s3.rst +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/exceptions.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/resources/__init__.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/resources/action.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/resources/base.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/resources/collection.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/resources/factory.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/resources/model.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/resources/params.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/resources/response.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/s3/__init__.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/s3/constants.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/s3/inject.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/s3/transfer.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3/utils.py +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3.egg-info/SOURCES.txt +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3.egg-info/dependency_links.txt +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/boto3.egg-info/top_level.txt +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/pyproject.toml +0 -0
- {boto3-1.40.3 → boto3-1.40.5}/requirements.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: boto3
|
3
|
-
Version: 1.40.
|
3
|
+
Version: 1.40.5
|
4
4
|
Summary: The AWS SDK for Python
|
5
5
|
Home-page: https://github.com/boto/boto3
|
6
6
|
Author: Amazon Web Services
|
@@ -23,7 +23,7 @@ Classifier: Programming Language :: Python :: 3.14
|
|
23
23
|
Requires-Python: >= 3.9
|
24
24
|
License-File: LICENSE
|
25
25
|
License-File: NOTICE
|
26
|
-
Requires-Dist: botocore<1.41.0,>=1.40.
|
26
|
+
Requires-Dist: botocore<1.41.0,>=1.40.5
|
27
27
|
Requires-Dist: jmespath<2.0.0,>=0.7.1
|
28
28
|
Requires-Dist: s3transfer<0.14.0,>=0.13.0
|
29
29
|
Provides-Extra: crt
|
@@ -81,23 +81,21 @@ class Session:
|
|
81
81
|
if profile_name is not None:
|
82
82
|
self._session.set_config_variable('profile', profile_name)
|
83
83
|
|
84
|
-
|
85
|
-
aws_access_key_id,
|
86
|
-
aws_secret_access_key,
|
87
|
-
aws_session_token,
|
88
|
-
aws_account_id,
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
):
|
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
|
+
if self._account_id_set_without_credentials(**credentials_kwargs):
|
94
93
|
raise NoCredentialsError()
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
)
|
94
|
+
|
95
|
+
if aws_account_id is None:
|
96
|
+
del credentials_kwargs["aws_account_id"]
|
97
|
+
|
98
|
+
self._session.set_credentials(*credentials_kwargs.values())
|
101
99
|
|
102
100
|
if region_name is not None:
|
103
101
|
self._session.set_config_variable('region', region_name)
|
@@ -319,18 +317,25 @@ class Session:
|
|
319
317
|
:return: Service client instance
|
320
318
|
|
321
319
|
"""
|
320
|
+
create_client_kwargs = {
|
321
|
+
'region_name': region_name,
|
322
|
+
'api_version': api_version,
|
323
|
+
'use_ssl': use_ssl,
|
324
|
+
'verify': verify,
|
325
|
+
'endpoint_url': endpoint_url,
|
326
|
+
'aws_access_key_id': aws_access_key_id,
|
327
|
+
'aws_secret_access_key': aws_secret_access_key,
|
328
|
+
'aws_session_token': aws_session_token,
|
329
|
+
'config': config,
|
330
|
+
'aws_account_id': aws_account_id,
|
331
|
+
}
|
332
|
+
if aws_account_id is None:
|
333
|
+
# Remove aws_account_id for arbitrary
|
334
|
+
# botocore version mismatches in AWS Lambda.
|
335
|
+
del create_client_kwargs['aws_account_id']
|
336
|
+
|
322
337
|
return self._session.create_client(
|
323
|
-
service_name,
|
324
|
-
region_name=region_name,
|
325
|
-
api_version=api_version,
|
326
|
-
use_ssl=use_ssl,
|
327
|
-
verify=verify,
|
328
|
-
endpoint_url=endpoint_url,
|
329
|
-
aws_access_key_id=aws_access_key_id,
|
330
|
-
aws_secret_access_key=aws_secret_access_key,
|
331
|
-
aws_session_token=aws_session_token,
|
332
|
-
config=config,
|
333
|
-
aws_account_id=aws_account_id,
|
338
|
+
service_name, **create_client_kwargs
|
334
339
|
)
|
335
340
|
|
336
341
|
def resource(
|
@@ -555,10 +560,15 @@ class Session:
|
|
555
560
|
)
|
556
561
|
|
557
562
|
def _account_id_set_without_credentials(
|
558
|
-
self,
|
563
|
+
self,
|
564
|
+
*,
|
565
|
+
aws_account_id,
|
566
|
+
aws_access_key_id,
|
567
|
+
aws_secret_access_key,
|
568
|
+
**kwargs,
|
559
569
|
):
|
560
|
-
if
|
570
|
+
if aws_account_id is None:
|
561
571
|
return False
|
562
|
-
elif
|
572
|
+
elif aws_access_key_id is None or aws_secret_access_key is None:
|
563
573
|
return True
|
564
574
|
return False
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: boto3
|
3
|
-
Version: 1.40.
|
3
|
+
Version: 1.40.5
|
4
4
|
Summary: The AWS SDK for Python
|
5
5
|
Home-page: https://github.com/boto/boto3
|
6
6
|
Author: Amazon Web Services
|
@@ -23,7 +23,7 @@ Classifier: Programming Language :: Python :: 3.14
|
|
23
23
|
Requires-Python: >= 3.9
|
24
24
|
License-File: LICENSE
|
25
25
|
License-File: NOTICE
|
26
|
-
Requires-Dist: botocore<1.41.0,>=1.40.
|
26
|
+
Requires-Dist: botocore<1.41.0,>=1.40.5
|
27
27
|
Requires-Dist: jmespath<2.0.0,>=0.7.1
|
28
28
|
Requires-Dist: s3transfer<0.14.0,>=0.13.0
|
29
29
|
Provides-Extra: crt
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|