Skip to content

Commit

Permalink
Merge branch 'release-1.20.53'
Browse files Browse the repository at this point in the history
* 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)
  • Loading branch information
aws-sdk-python-automation committed Feb 10, 2022
2 parents 2ecf839 + 7223c3e commit 392d391
Show file tree
Hide file tree
Showing 9 changed files with 95 additions and 28 deletions.
27 changes: 27 additions & 0 deletions .changes/1.20.53.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[
{
"category": "``cloudformation``",
"description": "[``botocore``] This SDK release adds AWS CloudFormation Hooks HandlerErrorCodes",
"type": "api-change"
},
{
"category": "``lookoutvision``",
"description": "[``botocore``] This release makes CompilerOptions in Lookout for Vision's StartModelPackagingJob's Configuration object optional.",
"type": "api-change"
},
{
"category": "``pinpoint``",
"description": "[``botocore``] This SDK release adds a new paramater creation date for GetApp and GetApps Api call",
"type": "api-change"
},
{
"category": "``sns``",
"description": "[``botocore``] Customer requested typo fix in API documentation.",
"type": "api-change"
},
{
"category": "``wafv2``",
"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.",
"type": "api-change"
}
]
10 changes: 10 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
CHANGELOG
=========

1.20.53
=======

* api-change:``cloudformation``: [``botocore``] This SDK release adds AWS CloudFormation Hooks HandlerErrorCodes
* api-change:``lookoutvision``: [``botocore``] This release makes CompilerOptions in Lookout for Vision's StartModelPackagingJob's Configuration object optional.
* api-change:``pinpoint``: [``botocore``] This SDK release adds a new paramater creation date for GetApp and GetApps Api call
* api-change:``sns``: [``botocore``] Customer requested typo fix in API documentation.
* 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.


1.20.52
=======

Expand Down
16 changes: 7 additions & 9 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
Boto3 - The AWS SDK for Python
===============================

|Version| |Gitter|
|Version| |Python| |License|

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

Boto3 is maintained and published by Amazon Web Services.
Boto3 is maintained and published by `Amazon Web Services`_.

Notices
-------
Expand All @@ -20,18 +20,17 @@ on 07/15/2021. To avoid disruption, customers using Boto3 on Python 2.7 may
need to upgrade their version of Python or pin the version of Boto3. For
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/>`__.

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.

.. _boto: https://docs.pythonboto.org/
.. _`doc site`: https://boto3.amazonaws.com/v1/documentation/api/latest/index.html
.. |Gitter| image:: https://badges.gitter.im/boto/boto3.svg
:target: https://gitter.im/boto/boto3
:alt: Gitter
.. |Downloads| image:: http://img.shields.io/pypi/dm/boto3.svg?style=flat
.. _`Amazon Web Services`: https://aws.amazon.com/what-is-aws/
.. |Python| image:: https://img.shields.io/pypi/pyversions/boto3.svg?style=flat
:target: https://pypi.python.org/pypi/boto3/
:alt: Downloads
:alt: Python Versions
.. |Version| image:: http://img.shields.io/pypi/v/boto3.svg?style=flat
:target: https://pypi.python.org/pypi/boto3/
:alt: Version
:alt: Package Version
.. |License| image:: http://img.shields.io/pypi/l/boto3.svg?style=flat
:target: https://github.com/boto/boto3/blob/develop/LICENSE
:alt: License
Expand Down Expand Up @@ -114,7 +113,6 @@ bandwidth to address them. Please use these community resources for getting
help:

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

Expand Down
2 changes: 1 addition & 1 deletion boto3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


__author__ = 'Amazon Web Services'
__version__ = '1.20.52'
__version__ = '1.20.53'


# The default Boto3 session; autoloaded when needed.
Expand Down
17 changes: 17 additions & 0 deletions boto3/examples/s3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,20 @@ Boto3 will automatically compute this value for us.
SSECustomerAlgorithm='AES256')
print("Done, response body:")
print(response['Body'].read())
Downloading a specific version of an S3 object
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This example shows how to download a specific version of an
S3 object.

.. code-block:: python
import boto3
s3 = boto3.client('s3')
s3.download_file(
"bucket-name", "key-name", "tmp.txt",
ExtraArgs={"VersionId": "my-version-id"}
)
45 changes: 30 additions & 15 deletions boto3/s3/inject.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ def upload_file(self, Filename, Bucket, Key, ExtraArgs=None,
:type ExtraArgs: dict
:param ExtraArgs: Extra arguments that may be passed to the
client operation.
client operation. For allowed upload arguments see
boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS.
:type Callback: function
:param Callback: A method which takes a number of bytes transferred to
Expand Down Expand Up @@ -157,7 +158,8 @@ def download_file(self, Bucket, Key, Filename, ExtraArgs=None,
:type ExtraArgs: dict
:param ExtraArgs: Extra arguments that may be passed to the
client operation.
client operation. For allowed download arguments see
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS.
:type Callback: function
:param Callback: A method which takes a number of bytes transferred to
Expand Down Expand Up @@ -195,7 +197,8 @@ def bucket_upload_file(self, Filename, Key,
:type ExtraArgs: dict
:param ExtraArgs: Extra arguments that may be passed to the
client operation.
client operation. For allowed upload arguments see
boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS.
:type Callback: function
:param Callback: A method which takes a number of bytes transferred to
Expand Down Expand Up @@ -232,7 +235,8 @@ def bucket_download_file(self, Key, Filename,
:type ExtraArgs: dict
:param ExtraArgs: Extra arguments that may be passed to the
client operation.
client operation. For allowed download arguments see
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS.
:type Callback: function
:param Callback: A method which takes a number of bytes transferred to
Expand Down Expand Up @@ -266,7 +270,8 @@ def object_upload_file(self, Filename,
:type ExtraArgs: dict
:param ExtraArgs: Extra arguments that may be passed to the
client operation.
client operation. For allowed upload arguments see
boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS.
:type Callback: function
:param Callback: A method which takes a number of bytes transferred to
Expand Down Expand Up @@ -300,7 +305,8 @@ def object_download_file(self, Filename,
:type ExtraArgs: dict
:param ExtraArgs: Extra arguments that may be passed to the
client operation.
client operation. For allowed download arguments see
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS.
:type Callback: function
:param Callback: A method which takes a number of bytes transferred to
Expand Down Expand Up @@ -347,7 +353,8 @@ def copy(self, CopySource, Bucket, Key, ExtraArgs=None, Callback=None,
:type ExtraArgs: dict
:param ExtraArgs: Extra arguments that may be passed to the
client operation
client operation. For allowed download arguments see
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS.
:type Callback: function
:param Callback: A method which takes a number of bytes transferred to
Expand Down Expand Up @@ -410,7 +417,8 @@ def bucket_copy(self, CopySource, Key, ExtraArgs=None, Callback=None,
:type ExtraArgs: dict
:param ExtraArgs: Extra arguments that may be passed to the
client operation
client operation. For allowed download arguments see
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS.
:type Callback: function
:param Callback: A method which takes a number of bytes transferred to
Expand Down Expand Up @@ -460,7 +468,8 @@ def object_copy(self, CopySource, ExtraArgs=None, Callback=None,
:type ExtraArgs: dict
:param ExtraArgs: Extra arguments that may be passed to the
client operation
client operation. For allowed download arguments see
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS.
:type Callback: function
:param Callback: A method which takes a number of bytes transferred to
Expand Down Expand Up @@ -512,7 +521,8 @@ def upload_fileobj(self, Fileobj, Bucket, Key, ExtraArgs=None,
:type ExtraArgs: dict
:param ExtraArgs: Extra arguments that may be passed to the
client operation.
client operation. For allowed upload arguments see
boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS.
:type Callback: function
:param Callback: A method which takes a number of bytes transferred to
Expand Down Expand Up @@ -567,7 +577,8 @@ def bucket_upload_fileobj(self, Fileobj, Key, ExtraArgs=None,
:type ExtraArgs: dict
:param ExtraArgs: Extra arguments that may be passed to the
client operation.
client operation. For allowed upload arguments see
boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS.
:type Callback: function
:param Callback: A method which takes a number of bytes transferred to
Expand Down Expand Up @@ -607,7 +618,8 @@ def object_upload_fileobj(self, Fileobj, ExtraArgs=None, Callback=None,
:type ExtraArgs: dict
:param ExtraArgs: Extra arguments that may be passed to the
client operation.
client operation. For allowed upload arguments see
boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS.
:type Callback: function
:param Callback: A method which takes a number of bytes transferred to
Expand Down Expand Up @@ -651,7 +663,8 @@ def download_fileobj(self, Bucket, Key, Fileobj, ExtraArgs=None,
:type ExtraArgs: dict
:param ExtraArgs: Extra arguments that may be passed to the
client operation.
client operation. For allowed download arguments see
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS.
:type Callback: function
:param Callback: A method which takes a number of bytes transferred to
Expand Down Expand Up @@ -706,7 +719,8 @@ def bucket_download_fileobj(self, Key, Fileobj, ExtraArgs=None,
:type ExtraArgs: dict
:param ExtraArgs: Extra arguments that may be passed to the
client operation.
client operation. For allowed download arguments see
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS.
:type Callback: function
:param Callback: A method which takes a number of bytes transferred to
Expand Down Expand Up @@ -746,7 +760,8 @@ def object_download_fileobj(self, Fileobj, ExtraArgs=None, Callback=None,
:type ExtraArgs: dict
:param ExtraArgs: Extra arguments that may be passed to the
client operation.
client operation. For allowed download arguments see
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS.
:type Callback: function
:param Callback: A method which takes a number of bytes transferred to
Expand Down
2 changes: 1 addition & 1 deletion boto3/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def get_available_regions(self, service_name, partition_name='aws',

def get_credentials(self):
"""
Return the :class:`botocore.credential.Credential` object
Return the :class:`botocore.credentials.Credentials` object
associated with this session. If the credentials have not
yet been loaded, this will attempt to load them. If they
have already been loaded, this will return the cached
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ universal = 0

[metadata]
requires_dist =
botocore>=1.23.52,<1.24.0
botocore>=1.23.53,<1.24.0
jmespath>=0.7.1,<1.0.0
s3transfer>=0.5.0,<0.6.0

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


requires = [
'botocore>=1.23.52,<1.24.0',
'botocore>=1.23.53,<1.24.0',
'jmespath>=0.7.1,<1.0.0',
's3transfer>=0.5.0,<0.6.0'
]
Expand Down

0 comments on commit 392d391

Please sign in to comment.