Hello community, here is the log from the commit of package python-boto3 for openSUSE:Factory checked in at 2019-07-01 10:43:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-boto3 (Old) and /work/SRC/openSUSE:Factory/.python-boto3.new.4615 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-boto3" Mon Jul 1 10:43:48 2019 rev:31 rq:712412 version:1.9.179 Changes: -------- --- /work/SRC/openSUSE:Factory/python-boto3/python-boto3.changes 2019-06-25 22:16:35.564640980 +0200 +++ /work/SRC/openSUSE:Factory/.python-boto3.new.4615/python-boto3.changes 2019-07-01 10:43:48.733422353 +0200 @@ -1,0 +2,40 @@ +Fri Jun 28 11:42:02 UTC 2019 - John Paul Adrian Glaubitz <adrian.glaub...@suse.com> + +- Version update to 1.9.179 + * api-change:``directconnect``: [``botocore``] Update directconnect client to latest version + * api-change:``pinpoint``: [``botocore``] Update pinpoint client to latest version + * api-change:``workspaces``: [``botocore``] Update workspaces client to latest version + * api-change:``ec2-instance-connect``: [``botocore``] Update ec2-instance-connect client to latest version +- from version 1.9.178 + * api-change:``dynamodb``: [``botocore``] Update dynamodb client to latest version +- from version 1.9.177 + * api-change:``codecommit``: [``botocore``] Update codecommit client to latest version + * api-change:``apigatewayv2``: [``botocore``] Update apigatewayv2 client to latest version +- from version 1.9.176 + * api-change:``ec2``: [``botocore``] Update ec2 client to latest version + * api-change:``eks``: [``botocore``] Update eks client to latest version +- from version 1.9.175 + * api-change:``application-insights``: [``botocore``] Update application-insights client to latest version + * api-change:``securityhub``: [``botocore``] Update securityhub client to latest version + * api-change:``apigateway``: [``botocore``] Update apigateway client to latest version + * api-change:``elbv2``: [``botocore``] Update elbv2 client to latest version + * api-change:``fsx``: [``botocore``] Update fsx client to latest version + * api-change:``service-quotas``: [``botocore``] Update service-quotas client to latest version + * api-change:``resourcegroupstaggingapi``: [``botocore``] Update resourcegroupstaggingapi client to latest version + * api-change:``ssm``: [``botocore``] Update ssm client to latest version + * api-change:``apigatewayv2``: [``botocore``] Update apigatewayv2 client to latest version +- from version 1.9.174 + * api-change:``devicefarm``: [``botocore``] Update devicefarm client to latest version + * api-change:``iam``: [``botocore``] Update iam client to latest version + * api-change:``mediapackage``: [``botocore``] Update mediapackage client to latest version + * api-change:``kinesis-video-media``: [``botocore``] Update kinesis-video-media client to latest version +- from version 1.9.173 + * api-change:``health``: [``botocore``] Update health client to latest version + * api-change:``glue``: [``botocore``] Update glue client to latest version + * api-change:``iotevents-data``: [``botocore``] Update iotevents-data client to latest version + * api-change:``opsworks``: [``botocore``] Update opsworks client to latest version + * api-change:``rds``: [``botocore``] Update rds client to latest version + * api-change:``acm-pca``: [``botocore``] Update acm-pca client to latest version +- Update BuildRequires and Requires in spec file from setup.py + +------------------------------------------------------------------- Old: ---- 1.9.172.tar.gz New: ---- 1.9.179.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-boto3.spec ++++++ --- /var/tmp/diff_new_pack.YMwapc/_old 2019-07-01 10:43:49.765424038 +0200 +++ /var/tmp/diff_new_pack.YMwapc/_new 2019-07-01 10:43:49.765424038 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-boto3 -Version: 1.9.172 +Version: 1.9.179 Release: 0 Summary: Amazon Web Services Library License: Apache-2.0 @@ -27,7 +27,7 @@ Source: https://github.com/boto/boto3/archive/%{version}.tar.gz # Related test dependencies BuildRequires: %{python_module botocore < 1.13.0} -BuildRequires: %{python_module botocore >= 1.12.172} +BuildRequires: %{python_module botocore >= 1.12.179} BuildRequires: %{python_module mock} BuildRequires: %{python_module nose} BuildRequires: %{python_module s3transfer < 0.3.0} @@ -37,7 +37,7 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-botocore < 1.13.0 -Requires: python-botocore >= 1.12.172 +Requires: python-botocore >= 1.12.179 Requires: python-jmespath < 1.0.0 Requires: python-jmespath >= 0.7.1 Requires: python-s3transfer < 0.3.0 ++++++ 1.9.172.tar.gz -> 1.9.179.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/boto3-1.9.172/.changes/1.9.173.json new/boto3-1.9.179/.changes/1.9.173.json --- old/boto3-1.9.172/.changes/1.9.173.json 1970-01-01 01:00:00.000000000 +0100 +++ new/boto3-1.9.179/.changes/1.9.173.json 2019-06-27 20:24:51.000000000 +0200 @@ -0,0 +1,32 @@ +[ + { + "category": "``health``", + "description": "[``botocore``] Update health client to latest version", + "type": "api-change" + }, + { + "category": "``glue``", + "description": "[``botocore``] Update glue client to latest version", + "type": "api-change" + }, + { + "category": "``iotevents-data``", + "description": "[``botocore``] Update iotevents-data client to latest version", + "type": "api-change" + }, + { + "category": "``opsworks``", + "description": "[``botocore``] Update opsworks client to latest version", + "type": "api-change" + }, + { + "category": "``rds``", + "description": "[``botocore``] Update rds client to latest version", + "type": "api-change" + }, + { + "category": "``acm-pca``", + "description": "[``botocore``] Update acm-pca client to latest version", + "type": "api-change" + } +] \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/boto3-1.9.172/.changes/1.9.174.json new/boto3-1.9.179/.changes/1.9.174.json --- old/boto3-1.9.172/.changes/1.9.174.json 1970-01-01 01:00:00.000000000 +0100 +++ new/boto3-1.9.179/.changes/1.9.174.json 2019-06-27 20:24:51.000000000 +0200 @@ -0,0 +1,22 @@ +[ + { + "category": "``devicefarm``", + "description": "[``botocore``] Update devicefarm client to latest version", + "type": "api-change" + }, + { + "category": "``iam``", + "description": "[``botocore``] Update iam client to latest version", + "type": "api-change" + }, + { + "category": "``mediapackage``", + "description": "[``botocore``] Update mediapackage client to latest version", + "type": "api-change" + }, + { + "category": "``kinesis-video-media``", + "description": "[``botocore``] Update kinesis-video-media client to latest version", + "type": "api-change" + } +] \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/boto3-1.9.172/.changes/1.9.175.json new/boto3-1.9.179/.changes/1.9.175.json --- old/boto3-1.9.172/.changes/1.9.175.json 1970-01-01 01:00:00.000000000 +0100 +++ new/boto3-1.9.179/.changes/1.9.175.json 2019-06-27 20:24:51.000000000 +0200 @@ -0,0 +1,47 @@ +[ + { + "category": "``application-insights``", + "description": "[``botocore``] Update application-insights client to latest version", + "type": "api-change" + }, + { + "category": "``securityhub``", + "description": "[``botocore``] Update securityhub client to latest version", + "type": "api-change" + }, + { + "category": "``apigateway``", + "description": "[``botocore``] Update apigateway client to latest version", + "type": "api-change" + }, + { + "category": "``elbv2``", + "description": "[``botocore``] Update elbv2 client to latest version", + "type": "api-change" + }, + { + "category": "``fsx``", + "description": "[``botocore``] Update fsx client to latest version", + "type": "api-change" + }, + { + "category": "``service-quotas``", + "description": "[``botocore``] Update service-quotas client to latest version", + "type": "api-change" + }, + { + "category": "``resourcegroupstaggingapi``", + "description": "[``botocore``] Update resourcegroupstaggingapi client to latest version", + "type": "api-change" + }, + { + "category": "``ssm``", + "description": "[``botocore``] Update ssm client to latest version", + "type": "api-change" + }, + { + "category": "``apigatewayv2``", + "description": "[``botocore``] Update apigatewayv2 client to latest version", + "type": "api-change" + } +] \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/boto3-1.9.172/.changes/1.9.176.json new/boto3-1.9.179/.changes/1.9.176.json --- old/boto3-1.9.172/.changes/1.9.176.json 1970-01-01 01:00:00.000000000 +0100 +++ new/boto3-1.9.179/.changes/1.9.176.json 2019-06-27 20:24:51.000000000 +0200 @@ -0,0 +1,12 @@ +[ + { + "category": "``ec2``", + "description": "[``botocore``] Update ec2 client to latest version", + "type": "api-change" + }, + { + "category": "``eks``", + "description": "[``botocore``] Update eks client to latest version", + "type": "api-change" + } +] \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/boto3-1.9.172/.changes/1.9.177.json new/boto3-1.9.179/.changes/1.9.177.json --- old/boto3-1.9.172/.changes/1.9.177.json 1970-01-01 01:00:00.000000000 +0100 +++ new/boto3-1.9.179/.changes/1.9.177.json 2019-06-27 20:24:51.000000000 +0200 @@ -0,0 +1,12 @@ +[ + { + "category": "``codecommit``", + "description": "[``botocore``] Update codecommit client to latest version", + "type": "api-change" + }, + { + "category": "``apigatewayv2``", + "description": "[``botocore``] Update apigatewayv2 client to latest version", + "type": "api-change" + } +] \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/boto3-1.9.172/.changes/1.9.178.json new/boto3-1.9.179/.changes/1.9.178.json --- old/boto3-1.9.172/.changes/1.9.178.json 1970-01-01 01:00:00.000000000 +0100 +++ new/boto3-1.9.179/.changes/1.9.178.json 2019-06-27 20:24:51.000000000 +0200 @@ -0,0 +1,7 @@ +[ + { + "category": "``dynamodb``", + "description": "[``botocore``] Update dynamodb client to latest version", + "type": "api-change" + } +] \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/boto3-1.9.172/.changes/1.9.179.json new/boto3-1.9.179/.changes/1.9.179.json --- old/boto3-1.9.172/.changes/1.9.179.json 1970-01-01 01:00:00.000000000 +0100 +++ new/boto3-1.9.179/.changes/1.9.179.json 2019-06-27 20:24:51.000000000 +0200 @@ -0,0 +1,22 @@ +[ + { + "category": "``directconnect``", + "description": "[``botocore``] Update directconnect client to latest version", + "type": "api-change" + }, + { + "category": "``pinpoint``", + "description": "[``botocore``] Update pinpoint client to latest version", + "type": "api-change" + }, + { + "category": "``workspaces``", + "description": "[``botocore``] Update workspaces client to latest version", + "type": "api-change" + }, + { + "category": "``ec2-instance-connect``", + "description": "[``botocore``] Update ec2-instance-connect client to latest version", + "type": "api-change" + } +] \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/boto3-1.9.172/CHANGELOG.rst new/boto3-1.9.179/CHANGELOG.rst --- old/boto3-1.9.172/CHANGELOG.rst 2019-06-19 21:39:29.000000000 +0200 +++ new/boto3-1.9.179/CHANGELOG.rst 2019-06-27 20:24:51.000000000 +0200 @@ -2,6 +2,69 @@ CHANGELOG ========= +1.9.179 +======= + +* api-change:``directconnect``: [``botocore``] Update directconnect client to latest version +* api-change:``pinpoint``: [``botocore``] Update pinpoint client to latest version +* api-change:``workspaces``: [``botocore``] Update workspaces client to latest version +* api-change:``ec2-instance-connect``: [``botocore``] Update ec2-instance-connect client to latest version + + +1.9.178 +======= + +* api-change:``dynamodb``: [``botocore``] Update dynamodb client to latest version + + +1.9.177 +======= + +* api-change:``codecommit``: [``botocore``] Update codecommit client to latest version +* api-change:``apigatewayv2``: [``botocore``] Update apigatewayv2 client to latest version + + +1.9.176 +======= + +* api-change:``ec2``: [``botocore``] Update ec2 client to latest version +* api-change:``eks``: [``botocore``] Update eks client to latest version + + +1.9.175 +======= + +* api-change:``application-insights``: [``botocore``] Update application-insights client to latest version +* api-change:``securityhub``: [``botocore``] Update securityhub client to latest version +* api-change:``apigateway``: [``botocore``] Update apigateway client to latest version +* api-change:``elbv2``: [``botocore``] Update elbv2 client to latest version +* api-change:``fsx``: [``botocore``] Update fsx client to latest version +* api-change:``service-quotas``: [``botocore``] Update service-quotas client to latest version +* api-change:``resourcegroupstaggingapi``: [``botocore``] Update resourcegroupstaggingapi client to latest version +* api-change:``ssm``: [``botocore``] Update ssm client to latest version +* api-change:``apigatewayv2``: [``botocore``] Update apigatewayv2 client to latest version + + +1.9.174 +======= + +* api-change:``devicefarm``: [``botocore``] Update devicefarm client to latest version +* api-change:``iam``: [``botocore``] Update iam client to latest version +* api-change:``mediapackage``: [``botocore``] Update mediapackage client to latest version +* api-change:``kinesis-video-media``: [``botocore``] Update kinesis-video-media client to latest version + + +1.9.173 +======= + +* api-change:``health``: [``botocore``] Update health client to latest version +* api-change:``glue``: [``botocore``] Update glue client to latest version +* api-change:``iotevents-data``: [``botocore``] Update iotevents-data client to latest version +* api-change:``opsworks``: [``botocore``] Update opsworks client to latest version +* api-change:``rds``: [``botocore``] Update rds client to latest version +* api-change:``acm-pca``: [``botocore``] Update acm-pca client to latest version + + 1.9.172 ======= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/boto3-1.9.172/boto3/__init__.py new/boto3-1.9.179/boto3/__init__.py --- old/boto3-1.9.172/boto3/__init__.py 2019-06-19 21:39:29.000000000 +0200 +++ new/boto3-1.9.179/boto3/__init__.py 2019-06-27 20:24:51.000000000 +0200 @@ -17,7 +17,7 @@ __author__ = 'Amazon Web Services' -__version__ = '1.9.172' +__version__ = '1.9.179' # The default Boto3 session; autoloaded when needed. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/boto3-1.9.172/docs/source/guide/configuration.rst new/boto3-1.9.179/docs/source/guide/configuration.rst --- old/boto3-1.9.172/docs/source/guide/configuration.rst 2019-06-19 21:39:29.000000000 +0200 +++ new/boto3-1.9.179/docs/source/guide/configuration.rst 2019-06-27 20:24:51.000000000 +0200 @@ -202,12 +202,15 @@ refreshing credentials as needed. You can specify the following configuration values for configuring an -IAM role in boto3: - +IAM role in boto3. For more information about a particular setting, see +the section `Configuration File`_. * ``role_arn`` - The ARN of the role you want to assume. * ``source_profile`` - The boto3 profile that contains credentials we should use for the initial ``AssumeRole`` call. +* ``credential_source`` - The resource (Amazon EC2 instance profile, Amazon + ECS container role, or environment variable) that contains the credentials to + use for the initial ``AssumeRole`` call. * ``external_id`` - A unique identifier that is used by third parties to assume a role in their customers' accounts. This maps to the ``ExternalId`` parameter in the ``AssumeRole`` operation. This is an optional parameter. @@ -223,8 +226,9 @@ maps to the ``RoleSessionName`` parameter in the ``AssumeRole`` operation. This is an optional parameter. If you do not provide this value, a session name will be automatically generated. +* ``duration_seconds`` - The length of time in seconds of the role session. -If you do not have MFA authentication required, then you only need to specify a +If MFA authentication is not enabled then you only need to specify a ``role_arn`` and a ``source_profile``. When you specify a profile that has IAM role configuration, boto3 will make an @@ -236,11 +240,11 @@ All clients created from that session will share the same temporary credentials. -If you specify an ``mfa_serial``, then the first time an ``AssumeRole`` call is -made, you will be prompted to enter the MFA code. **Your code will block until -you enter your MFA code.** You'll need to keep this in mind if you have an -``mfa_serial`` configured but would like to use boto3 in some automated script. - +If you specify ``mfa_serial``, then the first time an ``AssumeRole`` call is +made, you will be prompted to enter the MFA code. **Program execution will +block until you enter the MFA code.** You'll need to keep this in mind if +you have an ``mfa_serial`` device configured, but would like to use boto3 +in an automated script. Below is an example configuration for the minimal amount of configuration needed to configure an assume role profile:: @@ -387,7 +391,6 @@ separated with the ``os.pathsep`` character which is ``:`` on linux and ``;`` on windows. - Configuration File ~~~~~~~~~~~~~~~~~~ @@ -402,19 +405,64 @@ ``[profile "my profile name"]``. Below are all the config variables supported in the ``~/.aws/config`` file: -``region`` - The default region to use, e.g. ``us-west-1``, ``us-west-2``, etc. When specifying a region inline during client initialization, this property is named ``region_name`` +``api_versions`` + Specifies the API version to use for a particular AWS service. + + The ``api_versions`` settings are nested configuration values that require special + formatting in the AWS configuration file. If the values are set by the + AWS CLI or programmatically by an SDK, the formatting is handled + automatically. If they are set by manually editing the AWS configuration + file, the required format is shown below. Notice the indentation of each + value. + :: + + [default] + region = us-east-1 + api_versions = + ec2 = 2015-03-01 + cloudfront = 2015-09-17 + ``aws_access_key_id`` The access key to use. ``aws_secret_access_key`` The secret access key to use. ``aws_session_token`` - The session token to use. This is typically only needed when using - temporary credentials. Note ``aws_security_token`` is supported for - backwards compatibility. + The session token to use. This is typically needed only when using + temporary credentials. Note ``aws_security_token`` is supported for + backward compatibility. ``ca_bundle`` - The CA bundle to use. See the docs above on ``AWS_CA_BUNDLE`` for - more information. + The CA bundle to use. For more information, see the above description + of the ``AWS_CA_BUNDLE`` environment variable. +``credential_process`` + Specifies an external command to run to generate or retrieve + authentication credentials. For more information, + see `Sourcing Credentials with an External Process`_. +``credential_source`` + To invoke an AWS service from an Amazon EC2 instance, you can use + an IAM role attached to either an EC2 instance profile or an Amazon ECS + container. In such a scenario, use the ``credential_source`` setting to + specify where to find the credentials. + + The ``credential_source`` and ``source_profile`` settings are mutually + exclusive. + + The following values are supported. + + ``Ec2InstanceMetadata`` + Use the IAM role attached to the Amazon EC2 instance profile. + + ``EcsContainer`` + Use the IAM role attached to the Amazon ESC container. + + ``Environment`` + Retrieve the credentials from environment variables. + +``duration_seconds`` + The length of time in seconds of the role session. The value can range + from 900 seconds (15 minutes) to the maximum session duration setting + for the role. The default value is 3600 seconds (one hour). +``external_id`` + Unique identifier to pass when making ``AssumeRole`` calls. ``metadata_service_timeout`` The number of seconds before timing out when retrieving data from the instance metadata service. See the docs above on @@ -423,6 +471,8 @@ The number of attempts to make before giving up when retrieving data from the instance metadata service. See the docs above on ``AWS_METADATA_SERVICE_NUM_ATTEMPTS`` for more information. +``mfa_serial`` + Serial number of ARN of an MFA device to use when assuming a role. ``parameter_validation`` Disable parameter validation (default is true; parameters are validated by default). This is a boolean value that can have @@ -432,25 +482,36 @@ parameters provided, type checking, no unknown parameters, minimum length checks, etc. You generally should leave parameter validation enabled. +``region`` + The default region to use, e.g. ``us-west-1``, ``us-west-2``, etc. When + specifying a region inline during client initialization, this property + is named ``region_name`` ``role_arn`` The ARN of the role you want to assume. -``source_profile`` - The profile name that contains credentials we should use for the - initial ``AssumeRole`` call. -``external_id`` - Unique identifier to pass when making ``AssumeRole`` calls. -``mfa_serial`` - Serial number of ARN of an MFA device to use when assuming a role. ``role_session_name`` The role name to use when assuming a role. If this value is not provided, a session name will be automatically generated. ``s3`` - Set S3-specific configuration data. Typically, these values do not need - to be set. When necessary, Boto automatically switches signature - versions and addressing styles. + Set S3-specific configuration data. Typically, these values do not need + to be set. - * ``addressing_style``: The S3 addressing style. The following values - are supported. + The ``s3`` settings are nested configuration values that require special + formatting in the AWS configuration file. If the values are set by the + AWS CLI or programmatically by an SDK, the formatting is handled + automatically. If they are set by manually editing the AWS configuration + file, the required format is shown below. Notice the indentation of each + value. + :: + + [default] + region = us-east-1 + s3 = + addressing_style = path + signature_version = s3v4 + + * ``addressing_style``: The S3 addressing style. When necessary, Boto + automatically switches the addressing style to an appropriate value. + The following values are supported. ``auto`` (Default) Attempts to use ``virtual``, but falls back to ``path`` @@ -462,8 +523,15 @@ ``virtual`` Bucket name is included in the hostname. + * ``payload_signing_enabled``: Specifies whether to include an SHA-256 + checksum with Amazon Signature Version 4 payloads. Valid settings are + ``true`` or ``false``. + + For streaming uploads (``UploadPart`` and ``PutObject``) that use HTTPS + and include a ``content-md5`` header, this setting is disabled by default. * ``signature_version``: The AWS signature version to use when signing - requests. The following values are recognized. + requests. When necessary, Boto automatically switches the signature + version to an appropriate value. The following values are recognized. ``s3v4`` (Default) Signature Version 4 @@ -471,21 +539,24 @@ ``s3`` (Deprecated) Signature Version 2 - These settings are nested configuration values that require special - formatting in the AWS configuration file. If the values are set by the - AWS CLI or programmatically by an SDK, the formatting is handled - automatically. If they are set by editing the AWS configuration file - manually, the required format is shown below. Notice the indentation - of each value. - :: + * ``use_accelerate_endpoint``: Specifies whether to use the S3 Accelerate + endpoint. The bucket must be enabled to use S3 Accelerate. Valid settings + are ``true`` or ``false``. Default: ``false`` + + Either ``use_accelerate_endpoint`` or ``use_dualstack_endpoint`` can be + enabled, but not both. + * ``use_dualstack_endpoint``: Specifies whether to direct all Amazon S3 + requests to the dual IPv4/IPv6 endpoint for the configured region. Valid + settings are ``true`` or ``false``. Default: ``false`` - [default] - region = us-east-1 - output = json - s3 = - addressing_style = path - signature_version = s3v4 + Either ``use_accelerate_endpoint`` or ``use_dualstack_endpoint`` can be + enabled, but not both. +``source_profile`` + The profile name that contains credentials to use for the initial + ``AssumeRole`` call. + The ``credential_source`` and ``source_profile`` settings are mutually + exclusive. ``tcp_keepalive`` Toggles the TCP Keep-Alive socket option used when creating connections. By default this value is ``false``; TCP Keep-Alive will not be used @@ -495,3 +566,4 @@ .. _IAM Roles for Amazon EC2: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html .. _Using IAM Roles: http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html +.. _Sourcing Credentials with an External Process: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sourcing-external.html diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/boto3-1.9.172/docs/source/guide/s3-example-creating-buckets.rst new/boto3-1.9.179/docs/source/guide/s3-example-creating-buckets.rst --- old/boto3-1.9.172/docs/source/guide/s3-example-creating-buckets.rst 2019-06-19 21:39:29.000000000 +0200 +++ new/boto3-1.9.179/docs/source/guide/s3-example-creating-buckets.rst 2019-06-27 20:24:51.000000000 +0200 @@ -24,7 +24,8 @@ ========================== The name of an Amazon S3 bucket must be unique across all regions of the AWS -platform. +platform. The bucket can be located in a specific region to minimize latency +or to address regulatory requirements. .. code-block:: python @@ -33,20 +34,31 @@ from botocore.exceptions import ClientError - def create_bucket(bucket_name): - """ Create an Amazon S3 bucket + def create_bucket(bucket_name, region=None): + """Create an S3 bucket in a specified region - :param bucket_name: Unique string name - :return: True if bucket is created, else False - """ - - s3 = boto3.client('s3') - try - s3.create_bucket(Bucket=bucket_name) - except ClientError as e: - logging.error(e) - return False - return True + If a region is not specified, the bucket is created in the S3 default + region (us-east-1). + + :param bucket_name: Bucket to create + :param region: String region to create bucket in, e.g., 'us-west-2' + :return: True if bucket created, else False + """ + + # Create bucket + try: + if region is None: + s3_client = boto3.client('s3') + s3_client.create_bucket(Bucket=bucket_name) + else: + s3_client = boto3.client('s3', region_name=region) + location = {'LocationConstraint': region} + s3_client.create_bucket(Bucket=bucket_name, + CreateBucketConfiguration=location) + except ClientError as e: + logging.error(e) + return False + return True List Existing Buckets diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/boto3-1.9.172/setup.cfg new/boto3-1.9.179/setup.cfg --- old/boto3-1.9.172/setup.cfg 2019-06-19 21:39:29.000000000 +0200 +++ new/boto3-1.9.179/setup.cfg 2019-06-27 20:24:51.000000000 +0200 @@ -3,6 +3,6 @@ [metadata] requires-dist = - botocore>=1.12.172,<1.13.0 + botocore>=1.12.179,<1.13.0 jmespath>=0.7.1,<1.0.0 s3transfer>=0.2.0,<0.3.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/boto3-1.9.172/setup.py new/boto3-1.9.179/setup.py --- old/boto3-1.9.172/setup.py 2019-06-19 21:39:29.000000000 +0200 +++ new/boto3-1.9.179/setup.py 2019-06-27 20:24:51.000000000 +0200 @@ -14,7 +14,7 @@ requires = [ - 'botocore>=1.12.172,<1.13.0', + 'botocore>=1.12.179,<1.13.0', 'jmespath>=0.7.1,<1.0.0', 's3transfer>=0.2.0,<0.3.0' ]