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.
Files changed (72) hide show
  1. {boto3-1.40.3 → boto3-1.40.5}/PKG-INFO +2 -2
  2. {boto3-1.40.3 → boto3-1.40.5}/boto3/__init__.py +1 -1
  3. {boto3-1.40.3 → boto3-1.40.5}/boto3/session.py +40 -30
  4. {boto3-1.40.3 → boto3-1.40.5}/boto3.egg-info/PKG-INFO +2 -2
  5. {boto3-1.40.3 → boto3-1.40.5}/boto3.egg-info/requires.txt +1 -1
  6. {boto3-1.40.3 → boto3-1.40.5}/setup.cfg +1 -1
  7. {boto3-1.40.3 → boto3-1.40.5}/setup.py +1 -1
  8. {boto3-1.40.3 → boto3-1.40.5}/CONTRIBUTING.rst +0 -0
  9. {boto3-1.40.3 → boto3-1.40.5}/LICENSE +0 -0
  10. {boto3-1.40.3 → boto3-1.40.5}/MANIFEST.in +0 -0
  11. {boto3-1.40.3 → boto3-1.40.5}/NOTICE +0 -0
  12. {boto3-1.40.3 → boto3-1.40.5}/README.rst +0 -0
  13. {boto3-1.40.3 → boto3-1.40.5}/boto3/compat.py +0 -0
  14. {boto3-1.40.3 → boto3-1.40.5}/boto3/crt.py +0 -0
  15. {boto3-1.40.3 → boto3-1.40.5}/boto3/data/cloudformation/2010-05-15/resources-1.json +0 -0
  16. {boto3-1.40.3 → boto3-1.40.5}/boto3/data/cloudwatch/2010-08-01/resources-1.json +0 -0
  17. {boto3-1.40.3 → boto3-1.40.5}/boto3/data/dynamodb/2012-08-10/resources-1.json +0 -0
  18. {boto3-1.40.3 → boto3-1.40.5}/boto3/data/ec2/2014-10-01/resources-1.json +0 -0
  19. {boto3-1.40.3 → boto3-1.40.5}/boto3/data/ec2/2015-03-01/resources-1.json +0 -0
  20. {boto3-1.40.3 → boto3-1.40.5}/boto3/data/ec2/2015-04-15/resources-1.json +0 -0
  21. {boto3-1.40.3 → boto3-1.40.5}/boto3/data/ec2/2015-10-01/resources-1.json +0 -0
  22. {boto3-1.40.3 → boto3-1.40.5}/boto3/data/ec2/2016-04-01/resources-1.json +0 -0
  23. {boto3-1.40.3 → boto3-1.40.5}/boto3/data/ec2/2016-09-15/resources-1.json +0 -0
  24. {boto3-1.40.3 → boto3-1.40.5}/boto3/data/ec2/2016-11-15/resources-1.json +0 -0
  25. {boto3-1.40.3 → boto3-1.40.5}/boto3/data/glacier/2012-06-01/resources-1.json +0 -0
  26. {boto3-1.40.3 → boto3-1.40.5}/boto3/data/iam/2010-05-08/resources-1.json +0 -0
  27. {boto3-1.40.3 → boto3-1.40.5}/boto3/data/opsworks/2013-02-18/resources-1.json +0 -0
  28. {boto3-1.40.3 → boto3-1.40.5}/boto3/data/s3/2006-03-01/resources-1.json +0 -0
  29. {boto3-1.40.3 → boto3-1.40.5}/boto3/data/sns/2010-03-31/resources-1.json +0 -0
  30. {boto3-1.40.3 → boto3-1.40.5}/boto3/data/sqs/2012-11-05/resources-1.json +0 -0
  31. {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/__init__.py +0 -0
  32. {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/action.py +0 -0
  33. {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/attr.py +0 -0
  34. {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/base.py +0 -0
  35. {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/client.py +0 -0
  36. {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/collection.py +0 -0
  37. {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/docstring.py +0 -0
  38. {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/method.py +0 -0
  39. {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/resource.py +0 -0
  40. {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/service.py +0 -0
  41. {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/subresource.py +0 -0
  42. {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/utils.py +0 -0
  43. {boto3-1.40.3 → boto3-1.40.5}/boto3/docs/waiter.py +0 -0
  44. {boto3-1.40.3 → boto3-1.40.5}/boto3/dynamodb/__init__.py +0 -0
  45. {boto3-1.40.3 → boto3-1.40.5}/boto3/dynamodb/conditions.py +0 -0
  46. {boto3-1.40.3 → boto3-1.40.5}/boto3/dynamodb/table.py +0 -0
  47. {boto3-1.40.3 → boto3-1.40.5}/boto3/dynamodb/transform.py +0 -0
  48. {boto3-1.40.3 → boto3-1.40.5}/boto3/dynamodb/types.py +0 -0
  49. {boto3-1.40.3 → boto3-1.40.5}/boto3/ec2/__init__.py +0 -0
  50. {boto3-1.40.3 → boto3-1.40.5}/boto3/ec2/createtags.py +0 -0
  51. {boto3-1.40.3 → boto3-1.40.5}/boto3/ec2/deletetags.py +0 -0
  52. {boto3-1.40.3 → boto3-1.40.5}/boto3/examples/cloudfront.rst +0 -0
  53. {boto3-1.40.3 → boto3-1.40.5}/boto3/examples/s3.rst +0 -0
  54. {boto3-1.40.3 → boto3-1.40.5}/boto3/exceptions.py +0 -0
  55. {boto3-1.40.3 → boto3-1.40.5}/boto3/resources/__init__.py +0 -0
  56. {boto3-1.40.3 → boto3-1.40.5}/boto3/resources/action.py +0 -0
  57. {boto3-1.40.3 → boto3-1.40.5}/boto3/resources/base.py +0 -0
  58. {boto3-1.40.3 → boto3-1.40.5}/boto3/resources/collection.py +0 -0
  59. {boto3-1.40.3 → boto3-1.40.5}/boto3/resources/factory.py +0 -0
  60. {boto3-1.40.3 → boto3-1.40.5}/boto3/resources/model.py +0 -0
  61. {boto3-1.40.3 → boto3-1.40.5}/boto3/resources/params.py +0 -0
  62. {boto3-1.40.3 → boto3-1.40.5}/boto3/resources/response.py +0 -0
  63. {boto3-1.40.3 → boto3-1.40.5}/boto3/s3/__init__.py +0 -0
  64. {boto3-1.40.3 → boto3-1.40.5}/boto3/s3/constants.py +0 -0
  65. {boto3-1.40.3 → boto3-1.40.5}/boto3/s3/inject.py +0 -0
  66. {boto3-1.40.3 → boto3-1.40.5}/boto3/s3/transfer.py +0 -0
  67. {boto3-1.40.3 → boto3-1.40.5}/boto3/utils.py +0 -0
  68. {boto3-1.40.3 → boto3-1.40.5}/boto3.egg-info/SOURCES.txt +0 -0
  69. {boto3-1.40.3 → boto3-1.40.5}/boto3.egg-info/dependency_links.txt +0 -0
  70. {boto3-1.40.3 → boto3-1.40.5}/boto3.egg-info/top_level.txt +0 -0
  71. {boto3-1.40.3 → boto3-1.40.5}/pyproject.toml +0 -0
  72. {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
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.3
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
@@ -18,7 +18,7 @@ from boto3.compat import _warn_deprecated_python
18
18
  from boto3.session import Session
19
19
 
20
20
  __author__ = 'Amazon Web Services'
21
- __version__ = '1.40.3'
21
+ __version__ = '1.40.5'
22
22
 
23
23
 
24
24
  # The default Boto3 session; autoloaded when needed.
@@ -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
- creds = (
85
- aws_access_key_id,
86
- aws_secret_access_key,
87
- aws_session_token,
88
- aws_account_id,
89
- )
90
- if any(creds):
91
- if self._account_id_set_without_credentials(
92
- aws_account_id, aws_access_key_id, aws_secret_access_key
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
- self._session.set_credentials(
96
- aws_access_key_id,
97
- aws_secret_access_key,
98
- aws_session_token,
99
- aws_account_id,
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, account_id, access_key, secret_key
563
+ self,
564
+ *,
565
+ aws_account_id,
566
+ aws_access_key_id,
567
+ aws_secret_access_key,
568
+ **kwargs,
559
569
  ):
560
- if account_id is None:
570
+ if aws_account_id is None:
561
571
  return False
562
- elif access_key is None or secret_key is None:
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
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.3
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
@@ -1,4 +1,4 @@
1
- botocore<1.41.0,>=1.40.3
1
+ botocore<1.41.0,>=1.40.5
2
2
  jmespath<2.0.0,>=0.7.1
3
3
  s3transfer<0.14.0,>=0.13.0
4
4
 
@@ -3,7 +3,7 @@ universal = 0
3
3
 
4
4
  [metadata]
5
5
  requires_dist =
6
- botocore>=1.40.3,<1.41.0
6
+ botocore>=1.40.5,<1.41.0
7
7
  jmespath>=0.7.1,<2.0.0
8
8
  s3transfer>=0.13.0,<0.14.0
9
9
 
@@ -14,7 +14,7 @@ VERSION_RE = re.compile(r'''__version__ = ['"]([0-9.]+)['"]''')
14
14
 
15
15
 
16
16
  requires = [
17
- 'botocore>=1.40.3,<1.41.0',
17
+ 'botocore>=1.40.5,<1.41.0',
18
18
  'jmespath>=0.7.1,<2.0.0',
19
19
  's3transfer>=0.13.0,<0.14.0',
20
20
  ]
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