Skip to content

Commit e8a1214

Browse files
Merge branch 'release-1.37.16'
* release-1.37.16: Bumping version to 1.37.16 Add changelog entries from botocore Format examples in presigned urls guide (#4483)
2 parents be3b20d + 82b8345 commit e8a1214

File tree

6 files changed

+72
-22
lines changed

6 files changed

+72
-22
lines changed

.changes/1.37.16.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[
2+
{
3+
"category": "``bedrock``",
4+
"description": "[``botocore``] Support custom prompt routers for evaluation jobs",
5+
"type": "api-change"
6+
},
7+
{
8+
"category": "``ec2``",
9+
"description": "[``botocore``] Doc-only updates for EC2 for March 2025.",
10+
"type": "api-change"
11+
},
12+
{
13+
"category": "``lambda``",
14+
"description": "[``botocore``] Add Ruby 3.4 (ruby3.4) support to AWS Lambda.",
15+
"type": "api-change"
16+
},
17+
{
18+
"category": "``mediaconnect``",
19+
"description": "[``botocore``] This release adds support for NDI flow outputs in AWS Elemental MediaConnect. You can now send content from your MediaConnect transport streams directly to your NDI environment using the new NDI output type.",
20+
"type": "api-change"
21+
},
22+
{
23+
"category": "``neptune-graph``",
24+
"description": "[``botocore``] Update IAM Role ARN Validation to Support Role Paths",
25+
"type": "api-change"
26+
},
27+
{
28+
"category": "``sagemaker``",
29+
"description": "[``botocore``] Added support for g6, g6e, m6i, c6i instance types in SageMaker Processing Jobs.",
30+
"type": "api-change"
31+
}
32+
]

CHANGELOG.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
CHANGELOG
33
=========
44

5+
1.37.16
6+
=======
7+
8+
* api-change:``bedrock``: [``botocore``] Support custom prompt routers for evaluation jobs
9+
* api-change:``ec2``: [``botocore``] Doc-only updates for EC2 for March 2025.
10+
* api-change:``lambda``: [``botocore``] Add Ruby 3.4 (ruby3.4) support to AWS Lambda.
11+
* api-change:``mediaconnect``: [``botocore``] This release adds support for NDI flow outputs in AWS Elemental MediaConnect. You can now send content from your MediaConnect transport streams directly to your NDI environment using the new NDI output type.
12+
* api-change:``neptune-graph``: [``botocore``] Update IAM Role ARN Validation to Support Role Paths
13+
* api-change:``sagemaker``: [``botocore``] Added support for g6, g6e, m6i, c6i instance types in SageMaker Processing Jobs.
14+
15+
516
1.37.15
617
=======
718

boto3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from boto3.session import Session
1818

1919
__author__ = 'Amazon Web Services'
20-
__version__ = '1.37.15'
20+
__version__ = '1.37.16'
2121

2222

2323
# The default Boto3 session; autoloaded when needed.

docs/source/guide/s3-presigned-urls.rst

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ when the URL is generated.
4343
# Generate a presigned URL for the S3 object
4444
s3_client = boto3.client('s3')
4545
try:
46-
response = s3_client.generate_presigned_url('get_object',
47-
Params={'Bucket': bucket_name,
48-
'Key': object_name},
49-
ExpiresIn=expiration)
46+
response = s3_client.generate_presigned_url(
47+
'get_object',
48+
Params={'Bucket': bucket_name, 'Key': object_name},
49+
ExpiresIn=expiration,
50+
)
5051
except ClientError as e:
5152
logging.error(e)
5253
return None
@@ -63,7 +64,7 @@ perform a GET request.
6364

6465
.. code-block:: python
6566
66-
import requests # To install: pip install requests
67+
import requests # To install: pip install requests
6768
6869
url = create_presigned_url('amzn-s3-demo-bucket', 'OBJECT_NAME')
6970
if url is not None:
@@ -92,8 +93,9 @@ the appropriate method so this argument is not normally required.
9293
from botocore.exceptions import ClientError
9394
9495
95-
def create_presigned_url_expanded(client_method_name, method_parameters=None,
96-
expiration=3600, http_method=None):
96+
def create_presigned_url_expanded(
97+
client_method_name, method_parameters=None, expiration=3600, http_method=None
98+
):
9799
"""Generate a presigned URL to invoke an S3.Client method
98100
99101
Not all the client methods provided in the AWS Python SDK are supported.
@@ -108,10 +110,12 @@ the appropriate method so this argument is not normally required.
108110
# Generate a presigned URL for the S3 client method
109111
s3_client = boto3.client('s3')
110112
try:
111-
response = s3_client.generate_presigned_url(ClientMethod=client_method_name,
112-
Params=method_parameters,
113-
ExpiresIn=expiration,
114-
HttpMethod=http_method)
113+
response = s3_client.generate_presigned_url(
114+
ClientMethod=client_method_name,
115+
Params=method_parameters,
116+
ExpiresIn=expiration,
117+
HttpMethod=http_method,
118+
)
115119
except ClientError as e:
116120
logging.error(e)
117121
return None
@@ -134,8 +138,9 @@ request and requires additional parameters to be sent as part of the request.
134138
from botocore.exceptions import ClientError
135139
136140
137-
def create_presigned_post(bucket_name, object_name,
138-
fields=None, conditions=None, expiration=3600):
141+
def create_presigned_post(
142+
bucket_name, object_name, fields=None, conditions=None, expiration=3600
143+
):
139144
"""Generate a presigned URL S3 POST request to upload a file
140145
141146
:param bucket_name: string
@@ -152,11 +157,13 @@ request and requires additional parameters to be sent as part of the request.
152157
# Generate a presigned S3 POST URL
153158
s3_client = boto3.client('s3')
154159
try:
155-
response = s3_client.generate_presigned_post(bucket_name,
156-
object_name,
157-
Fields=fields,
158-
Conditions=conditions,
159-
ExpiresIn=expiration)
160+
response = s3_client.generate_presigned_post(
161+
bucket_name,
162+
object_name,
163+
Fields=fields,
164+
Conditions=conditions,
165+
ExpiresIn=expiration,
166+
)
160167
except ClientError as e:
161168
logging.error(e)
162169
return None
@@ -172,7 +179,7 @@ presigned POST URL to perform a POST request to upload a file to S3.
172179

173180
.. code-block:: python
174181
175-
import requests # To install: pip install requests
182+
import requests # To install: pip install requests
176183
177184
# Generate a presigned S3 POST URL
178185
object_name = 'OBJECT_NAME'

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ universal = 0
33

44
[metadata]
55
requires_dist =
6-
botocore>=1.37.15,<1.38.0
6+
botocore>=1.37.16,<1.38.0
77
jmespath>=0.7.1,<2.0.0
88
s3transfer>=0.11.0,<0.12.0
99

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
requires = [
17-
'botocore>=1.37.15,<1.38.0',
17+
'botocore>=1.37.16,<1.38.0',
1818
'jmespath>=0.7.1,<2.0.0',
1919
's3transfer>=0.11.0,<0.12.0',
2020
]

0 commit comments

Comments
 (0)