Skip to content

Commit 392d391

Browse files
Merge branch 'release-1.20.53'
* release-1.20.53: Bumping version to 1.20.53 Add changelog entries from botocore Add example and links for `ExtraArgs` (#3146) Update links and notices in README (#3142) Fix type in docstring Session get_credential (#3145)
2 parents 2ecf839 + 7223c3e commit 392d391

File tree

9 files changed

+95
-28
lines changed

9 files changed

+95
-28
lines changed

.changes/1.20.53.json

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[
2+
{
3+
"category": "``cloudformation``",
4+
"description": "[``botocore``] This SDK release adds AWS CloudFormation Hooks HandlerErrorCodes",
5+
"type": "api-change"
6+
},
7+
{
8+
"category": "``lookoutvision``",
9+
"description": "[``botocore``] This release makes CompilerOptions in Lookout for Vision's StartModelPackagingJob's Configuration object optional.",
10+
"type": "api-change"
11+
},
12+
{
13+
"category": "``pinpoint``",
14+
"description": "[``botocore``] This SDK release adds a new paramater creation date for GetApp and GetApps Api call",
15+
"type": "api-change"
16+
},
17+
{
18+
"category": "``sns``",
19+
"description": "[``botocore``] Customer requested typo fix in API documentation.",
20+
"type": "api-change"
21+
},
22+
{
23+
"category": "``wafv2``",
24+
"description": "[``botocore``] Adds support for AWS WAF Fraud Control account takeover prevention (ATP), with configuration options for the new managed rule group AWSManagedRulesATPRuleSet and support for application integration SDKs for Android and iOS mobile apps.",
25+
"type": "api-change"
26+
}
27+
]

CHANGELOG.rst

+10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
CHANGELOG
33
=========
44

5+
1.20.53
6+
=======
7+
8+
* api-change:``cloudformation``: [``botocore``] This SDK release adds AWS CloudFormation Hooks HandlerErrorCodes
9+
* api-change:``lookoutvision``: [``botocore``] This release makes CompilerOptions in Lookout for Vision's StartModelPackagingJob's Configuration object optional.
10+
* api-change:``pinpoint``: [``botocore``] This SDK release adds a new paramater creation date for GetApp and GetApps Api call
11+
* api-change:``sns``: [``botocore``] Customer requested typo fix in API documentation.
12+
* api-change:``wafv2``: [``botocore``] Adds support for AWS WAF Fraud Control account takeover prevention (ATP), with configuration options for the new managed rule group AWSManagedRulesATPRuleSet and support for application integration SDKs for Android and iOS mobile apps.
13+
14+
515
1.20.52
616
=======
717

README.rst

+7-9
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
Boto3 - The AWS SDK for Python
33
===============================
44

5-
|Version| |Gitter|
5+
|Version| |Python| |License|
66

77
Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for
88
Python, which allows Python developers to write software that makes use
99
of services like Amazon S3 and Amazon EC2. You can find the latest, most
1010
up to date, documentation at our `doc site`_, including a list of
1111
services that are supported.
1212

13-
Boto3 is maintained and published by Amazon Web Services.
13+
Boto3 is maintained and published by `Amazon Web Services`_.
1414

1515
Notices
1616
-------
@@ -20,18 +20,17 @@ on 07/15/2021. To avoid disruption, customers using Boto3 on Python 2.7 may
2020
need to upgrade their version of Python or pin the version of Boto3. For
2121
more information, see this `blog post <https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-python-2-7-in-aws-sdk-for-python-and-aws-cli-v1/>`__.
2222

23+
Starting in May 2022, we will be dropping support for Python 3.6. This follows the Python Software Foundation `end of support <https://www.python.org/dev/peps/pep-0494/#lifespan>`__ for the runtime which occurred on 2021-12-23.
2324

2425
.. _boto: https://docs.pythonboto.org/
2526
.. _`doc site`: https://boto3.amazonaws.com/v1/documentation/api/latest/index.html
26-
.. |Gitter| image:: https://badges.gitter.im/boto/boto3.svg
27-
:target: https://gitter.im/boto/boto3
28-
:alt: Gitter
29-
.. |Downloads| image:: http://img.shields.io/pypi/dm/boto3.svg?style=flat
27+
.. _`Amazon Web Services`: https://aws.amazon.com/what-is-aws/
28+
.. |Python| image:: https://img.shields.io/pypi/pyversions/boto3.svg?style=flat
3029
:target: https://pypi.python.org/pypi/boto3/
31-
:alt: Downloads
30+
:alt: Python Versions
3231
.. |Version| image:: http://img.shields.io/pypi/v/boto3.svg?style=flat
3332
:target: https://pypi.python.org/pypi/boto3/
34-
:alt: Version
33+
:alt: Package Version
3534
.. |License| image:: http://img.shields.io/pypi/l/boto3.svg?style=flat
3635
:target: https://github.com/boto/boto3/blob/develop/LICENSE
3736
:alt: License
@@ -114,7 +113,6 @@ bandwidth to address them. Please use these community resources for getting
114113
help:
115114

116115
* Ask a question on `Stack Overflow <https://stackoverflow.com/>`__ and tag it with `boto3 <https://stackoverflow.com/questions/tagged/boto3>`__
117-
* Come join the AWS Python community chat on `gitter <https://gitter.im/boto/boto3>`__
118116
* Open a support ticket with `AWS Support <https://console.aws.amazon.com/support/home#/>`__
119117
* If it turns out that you may have found a bug, please `open an issue <https://github.com/boto/boto3/issues/new>`__
120118

boto3/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919

2020
__author__ = 'Amazon Web Services'
21-
__version__ = '1.20.52'
21+
__version__ = '1.20.53'
2222

2323

2424
# The default Boto3 session; autoloaded when needed.

boto3/examples/s3.rst

+17
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,20 @@ Boto3 will automatically compute this value for us.
144144
SSECustomerAlgorithm='AES256')
145145
print("Done, response body:")
146146
print(response['Body'].read())
147+
148+
149+
Downloading a specific version of an S3 object
150+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
151+
152+
This example shows how to download a specific version of an
153+
S3 object.
154+
155+
.. code-block:: python
156+
157+
import boto3
158+
s3 = boto3.client('s3')
159+
160+
s3.download_file(
161+
"bucket-name", "key-name", "tmp.txt",
162+
ExtraArgs={"VersionId": "my-version-id"}
163+
)

boto3/s3/inject.py

+30-15
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ def upload_file(self, Filename, Bucket, Key, ExtraArgs=None,
116116
117117
:type ExtraArgs: dict
118118
:param ExtraArgs: Extra arguments that may be passed to the
119-
client operation.
119+
client operation. For allowed upload arguments see
120+
boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS.
120121
121122
:type Callback: function
122123
:param Callback: A method which takes a number of bytes transferred to
@@ -157,7 +158,8 @@ def download_file(self, Bucket, Key, Filename, ExtraArgs=None,
157158
158159
:type ExtraArgs: dict
159160
:param ExtraArgs: Extra arguments that may be passed to the
160-
client operation.
161+
client operation. For allowed download arguments see
162+
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS.
161163
162164
:type Callback: function
163165
:param Callback: A method which takes a number of bytes transferred to
@@ -195,7 +197,8 @@ def bucket_upload_file(self, Filename, Key,
195197
196198
:type ExtraArgs: dict
197199
:param ExtraArgs: Extra arguments that may be passed to the
198-
client operation.
200+
client operation. For allowed upload arguments see
201+
boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS.
199202
200203
:type Callback: function
201204
:param Callback: A method which takes a number of bytes transferred to
@@ -232,7 +235,8 @@ def bucket_download_file(self, Key, Filename,
232235
233236
:type ExtraArgs: dict
234237
:param ExtraArgs: Extra arguments that may be passed to the
235-
client operation.
238+
client operation. For allowed download arguments see
239+
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS.
236240
237241
:type Callback: function
238242
:param Callback: A method which takes a number of bytes transferred to
@@ -266,7 +270,8 @@ def object_upload_file(self, Filename,
266270
267271
:type ExtraArgs: dict
268272
:param ExtraArgs: Extra arguments that may be passed to the
269-
client operation.
273+
client operation. For allowed upload arguments see
274+
boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS.
270275
271276
:type Callback: function
272277
:param Callback: A method which takes a number of bytes transferred to
@@ -300,7 +305,8 @@ def object_download_file(self, Filename,
300305
301306
:type ExtraArgs: dict
302307
:param ExtraArgs: Extra arguments that may be passed to the
303-
client operation.
308+
client operation. For allowed download arguments see
309+
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS.
304310
305311
:type Callback: function
306312
:param Callback: A method which takes a number of bytes transferred to
@@ -347,7 +353,8 @@ def copy(self, CopySource, Bucket, Key, ExtraArgs=None, Callback=None,
347353
348354
:type ExtraArgs: dict
349355
:param ExtraArgs: Extra arguments that may be passed to the
350-
client operation
356+
client operation. For allowed download arguments see
357+
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS.
351358
352359
:type Callback: function
353360
:param Callback: A method which takes a number of bytes transferred to
@@ -410,7 +417,8 @@ def bucket_copy(self, CopySource, Key, ExtraArgs=None, Callback=None,
410417
411418
:type ExtraArgs: dict
412419
:param ExtraArgs: Extra arguments that may be passed to the
413-
client operation
420+
client operation. For allowed download arguments see
421+
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS.
414422
415423
:type Callback: function
416424
:param Callback: A method which takes a number of bytes transferred to
@@ -460,7 +468,8 @@ def object_copy(self, CopySource, ExtraArgs=None, Callback=None,
460468
461469
:type ExtraArgs: dict
462470
:param ExtraArgs: Extra arguments that may be passed to the
463-
client operation
471+
client operation. For allowed download arguments see
472+
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS.
464473
465474
:type Callback: function
466475
:param Callback: A method which takes a number of bytes transferred to
@@ -512,7 +521,8 @@ def upload_fileobj(self, Fileobj, Bucket, Key, ExtraArgs=None,
512521
513522
:type ExtraArgs: dict
514523
:param ExtraArgs: Extra arguments that may be passed to the
515-
client operation.
524+
client operation. For allowed upload arguments see
525+
boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS.
516526
517527
:type Callback: function
518528
:param Callback: A method which takes a number of bytes transferred to
@@ -567,7 +577,8 @@ def bucket_upload_fileobj(self, Fileobj, Key, ExtraArgs=None,
567577
568578
:type ExtraArgs: dict
569579
:param ExtraArgs: Extra arguments that may be passed to the
570-
client operation.
580+
client operation. For allowed upload arguments see
581+
boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS.
571582
572583
:type Callback: function
573584
:param Callback: A method which takes a number of bytes transferred to
@@ -607,7 +618,8 @@ def object_upload_fileobj(self, Fileobj, ExtraArgs=None, Callback=None,
607618
608619
:type ExtraArgs: dict
609620
:param ExtraArgs: Extra arguments that may be passed to the
610-
client operation.
621+
client operation. For allowed upload arguments see
622+
boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS.
611623
612624
:type Callback: function
613625
:param Callback: A method which takes a number of bytes transferred to
@@ -651,7 +663,8 @@ def download_fileobj(self, Bucket, Key, Fileobj, ExtraArgs=None,
651663
652664
:type ExtraArgs: dict
653665
:param ExtraArgs: Extra arguments that may be passed to the
654-
client operation.
666+
client operation. For allowed download arguments see
667+
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS.
655668
656669
:type Callback: function
657670
:param Callback: A method which takes a number of bytes transferred to
@@ -706,7 +719,8 @@ def bucket_download_fileobj(self, Key, Fileobj, ExtraArgs=None,
706719
707720
:type ExtraArgs: dict
708721
:param ExtraArgs: Extra arguments that may be passed to the
709-
client operation.
722+
client operation. For allowed download arguments see
723+
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS.
710724
711725
:type Callback: function
712726
:param Callback: A method which takes a number of bytes transferred to
@@ -746,7 +760,8 @@ def object_download_fileobj(self, Fileobj, ExtraArgs=None, Callback=None,
746760
747761
:type ExtraArgs: dict
748762
:param ExtraArgs: Extra arguments that may be passed to the
749-
client operation.
763+
client operation. For allowed download arguments see
764+
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS.
750765
751766
:type Callback: function
752767
:param Callback: A method which takes a number of bytes transferred to

boto3/session.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def get_available_regions(self, service_name, partition_name='aws',
174174

175175
def get_credentials(self):
176176
"""
177-
Return the :class:`botocore.credential.Credential` object
177+
Return the :class:`botocore.credentials.Credentials` object
178178
associated with this session. If the credentials have not
179179
yet been loaded, this will attempt to load them. If they
180180
have already been loaded, this will return the cached

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ universal = 0
33

44
[metadata]
55
requires_dist =
6-
botocore>=1.23.52,<1.24.0
6+
botocore>=1.23.53,<1.24.0
77
jmespath>=0.7.1,<1.0.0
88
s3transfer>=0.5.0,<0.6.0
99

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
requires = [
16-
'botocore>=1.23.52,<1.24.0',
16+
'botocore>=1.23.53,<1.24.0',
1717
'jmespath>=0.7.1,<1.0.0',
1818
's3transfer>=0.5.0,<0.6.0'
1919
]

0 commit comments

Comments
 (0)