Skip to content

Commit 39c9c08

Browse files
Merge branch 'release-1.38.28'
* release-1.38.28: Bumping version to 1.38.28 Update endpoints model Update to latest models Track retry mode and gzip feature ids (#3481)
2 parents 994a156 + bec8e8d commit 39c9c08

File tree

20 files changed

+654
-144
lines changed

20 files changed

+654
-144
lines changed

.changes/1.38.28.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
[
2+
{
3+
"category": "``athena``",
4+
"description": "Add support for the managed query result in the workgroup APIs. The managed query result configuration enables users to store query results to Athena owned storage.",
5+
"type": "api-change"
6+
},
7+
{
8+
"category": "``backup``",
9+
"description": "You can now subscribe to Amazon SNS notifications and Amazon EventBridge events for backup indexing. You can now receive notifications when a backup index is created, deleted, or fails to create, enhancing your ability to monitor and track your backup operations.",
10+
"type": "api-change"
11+
},
12+
{
13+
"category": "``bedrock-agent``",
14+
"description": "This release adds the Agent Lifecycle Paused State feature to Amazon Bedrock agents. By using an agent's alias, you can temporarily suspend agent operations during maintenance, updates, or other situations.",
15+
"type": "api-change"
16+
},
17+
{
18+
"category": "``compute-optimizer``",
19+
"description": "This release enables AWS Compute Optimizer to analyze Amazon Aurora database clusters and generate Aurora I/O-Optimized recommendations.",
20+
"type": "api-change"
21+
},
22+
{
23+
"category": "``cost-optimization-hub``",
24+
"description": "Support recommendations for Aurora instance and Aurora cluster storage.",
25+
"type": "api-change"
26+
},
27+
{
28+
"category": "``ecs``",
29+
"description": "Updates Amazon ECS documentation to include note for upcoming default log driver mode change.",
30+
"type": "api-change"
31+
},
32+
{
33+
"category": "``eks``",
34+
"description": "Add support for filtering ListInsights API calls on MISCONFIGURATION insight category",
35+
"type": "api-change"
36+
},
37+
{
38+
"category": "``entityresolution``",
39+
"description": "Add support for generating match IDs in near real-time.",
40+
"type": "api-change"
41+
},
42+
{
43+
"category": "``pcs``",
44+
"description": "Introduces SUSPENDING and SUSPENDED states for clusters, compute node groups, and queues.",
45+
"type": "api-change"
46+
},
47+
{
48+
"category": "``synthetics``",
49+
"description": "Support for Java runtime handler pattern.",
50+
"type": "api-change"
51+
}
52+
]

CHANGELOG.rst

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

5+
1.38.28
6+
=======
7+
8+
* api-change:``athena``: Add support for the managed query result in the workgroup APIs. The managed query result configuration enables users to store query results to Athena owned storage.
9+
* api-change:``backup``: You can now subscribe to Amazon SNS notifications and Amazon EventBridge events for backup indexing. You can now receive notifications when a backup index is created, deleted, or fails to create, enhancing your ability to monitor and track your backup operations.
10+
* api-change:``bedrock-agent``: This release adds the Agent Lifecycle Paused State feature to Amazon Bedrock agents. By using an agent's alias, you can temporarily suspend agent operations during maintenance, updates, or other situations.
11+
* api-change:``compute-optimizer``: This release enables AWS Compute Optimizer to analyze Amazon Aurora database clusters and generate Aurora I/O-Optimized recommendations.
12+
* api-change:``cost-optimization-hub``: Support recommendations for Aurora instance and Aurora cluster storage.
13+
* api-change:``ecs``: Updates Amazon ECS documentation to include note for upcoming default log driver mode change.
14+
* api-change:``eks``: Add support for filtering ListInsights API calls on MISCONFIGURATION insight category
15+
* api-change:``entityresolution``: Add support for generating match IDs in near real-time.
16+
* api-change:``pcs``: Introduces SUSPENDING and SUSPENDED states for clusters, compute node groups, and queues.
17+
* api-change:``synthetics``: Support for Java runtime handler pattern.
18+
19+
520
1.38.27
621
=======
722

botocore/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import os
1717
import re
1818

19-
__version__ = '1.38.27'
19+
__version__ = '1.38.28'
2020

2121

2222
class NullHandler(logging.Handler):

botocore/client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
from botocore.model import ServiceModel
4343
from botocore.paginate import Paginator
4444
from botocore.retries import adaptive, standard
45-
from botocore.useragent import UserAgentString
45+
from botocore.useragent import UserAgentString, register_feature_id
4646
from botocore.utils import (
4747
CachedProperty,
4848
EventbridgeSignerSetter,
@@ -246,6 +246,9 @@ def _register_retries(self, client):
246246
self._register_v2_adaptive_retries(client)
247247
elif retry_mode == 'legacy':
248248
self._register_legacy_retries(client)
249+
else:
250+
return
251+
register_feature_id(f'RETRY_MODE_{retry_mode.upper()}')
249252

250253
def _register_v2_standard_retries(self, client):
251254
max_attempts = client.meta.config.retries.get('total_max_attempts')

botocore/compress.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
from gzip import compress as gzip_compress
2323

2424
from botocore.compat import urlencode
25+
from botocore.useragent import register_feature_id
2526
from botocore.utils import determine_content_length
2627

2728
logger = logging.getLogger(__name__)
@@ -88,6 +89,7 @@ def _get_body_size(body):
8889

8990

9091
def _gzip_compress_body(body):
92+
register_feature_id('GZIP_REQUEST_COMPRESSION')
9193
if isinstance(body, str):
9294
return gzip_compress(body.encode('utf-8'))
9395
elif isinstance(body, (bytes, bytearray)):

botocore/data/athena/2017-05-18/service-2.json

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2516,6 +2516,10 @@
25162516
"MaxResults":{
25172517
"shape":"MaxQueryResults",
25182518
"documentation":"<p>The maximum number of results (rows) to return in this request.</p>"
2519+
},
2520+
"QueryResultType":{
2521+
"shape":"QueryResultType",
2522+
"documentation":"<p> When you set this to <code>DATA_ROWS</code> or empty, <code>GetQueryResults</code> returns the query results in rows. If set to <code>DATA_MANIFEST</code>, it returns the manifest file in rows. Only the query types <code>CREATE TABLE AS SELECT</code>, <code>UNLOAD</code>, and <code>INSERT</code> can generate a manifest file. If you use <code>DATA_MANIFEST</code> for other query types, the query will fail. </p>"
25192523
}
25202524
}
25212525
},
@@ -3304,6 +3308,50 @@
33043308
}
33053309
},
33063310
"Long":{"type":"long"},
3311+
"ManagedQueryResultsConfiguration":{
3312+
"type":"structure",
3313+
"required":["Enabled"],
3314+
"members":{
3315+
"Enabled":{
3316+
"shape":"Boolean",
3317+
"documentation":"<p>If set to true, allows you to store query results in Athena owned storage. If set to false, workgroup member stores query results in location specified under <code>ResultConfiguration$OutputLocation</code>. The default is false. A workgroup cannot have the <code>ResultConfiguration$OutputLocation</code> parameter when you set this field to true. </p>"
3318+
},
3319+
"EncryptionConfiguration":{
3320+
"shape":"ManagedQueryResultsEncryptionConfiguration",
3321+
"documentation":"<p>If you encrypt query and calculation results in Athena owned storage, this field indicates the encryption option (for example, SSE_KMS or CSE_KMS) and key information.</p>"
3322+
}
3323+
},
3324+
"documentation":"<p> The configuration for storing results in Athena owned storage, which includes whether this feature is enabled; whether encryption configuration, if any, is used for encrypting query results. </p>"
3325+
},
3326+
"ManagedQueryResultsConfigurationUpdates":{
3327+
"type":"structure",
3328+
"members":{
3329+
"Enabled":{
3330+
"shape":"BoxedBoolean",
3331+
"documentation":"<p>If set to true, specifies that Athena manages query results in Athena owned storage.</p>"
3332+
},
3333+
"EncryptionConfiguration":{
3334+
"shape":"ManagedQueryResultsEncryptionConfiguration",
3335+
"documentation":"<p>If you encrypt query and calculation results in Athena owned storage, this field indicates the encryption option (for example, SSE_KMS or CSE_KMS) and key information.</p>"
3336+
},
3337+
"RemoveEncryptionConfiguration":{
3338+
"shape":"BoxedBoolean",
3339+
"documentation":"<p>If set to true, it removes workgroup from Athena owned storage. The existing query results are cleaned up after 24hrs. You must provide query results in location specified under <code>ResultConfiguration$OutputLocation</code>.</p>"
3340+
}
3341+
},
3342+
"documentation":"<p>Updates the configuration for managed query results.</p>"
3343+
},
3344+
"ManagedQueryResultsEncryptionConfiguration":{
3345+
"type":"structure",
3346+
"required":["KmsKey"],
3347+
"members":{
3348+
"KmsKey":{
3349+
"shape":"KmsKey",
3350+
"documentation":"<p>The ARN of an KMS key for encrypting managed query results.</p>"
3351+
}
3352+
},
3353+
"documentation":"<p>If you encrypt query and calculation results in Athena owned storage, this field indicates the encryption option (for example, SSE_KMS or CSE_KMS) and key information.</p>"
3354+
},
33073355
"MaxApplicationDPUSizesCount":{
33083356
"type":"integer",
33093357
"max":100,
@@ -3645,7 +3693,11 @@
36453693
},
36463694
"StatementType":{
36473695
"shape":"StatementType",
3648-
"documentation":"<p>The type of query statement that was run. <code>DDL</code> indicates DDL query statements. <code>DML</code> indicates DML (Data Manipulation Language) query statements, such as <code>CREATE TABLE AS SELECT</code>. <code>UTILITY</code> indicates query statements other than DDL and DML, such as <code>SHOW CREATE TABLE</code>, <code>EXPLAIN</code>, <code>DESCRIBE</code>, or <code>SHOW TABLES</code>.</p>"
3696+
"documentation":"<p>The type of query statement that was run. <code>DDL</code> indicates DDL query statements. <code>DML</code> indicates DML (Data Manipulation Language) query statements, such as <code>CREATE TABLE AS SELECT</code>. <code>UTILITY</code> indicates query statements other than DDL and DML, such as <code>SHOW CREATE TABLE</code>, or <code>DESCRIBE TABLE</code>.</p>"
3697+
},
3698+
"ManagedQueryResultsConfiguration":{
3699+
"shape":"ManagedQueryResultsConfiguration",
3700+
"documentation":"<p> The configuration for storing results in Athena owned storage, which includes whether this feature is enabled; whether encryption configuration, if any, is used for encrypting query results. </p>"
36493701
},
36503702
"ResultConfiguration":{
36513703
"shape":"ResultConfiguration",
@@ -3798,6 +3850,13 @@
37983850
},
37993851
"documentation":"<p>The completion date, current state, submission time, and state change reason (if applicable) for the query execution.</p>"
38003852
},
3853+
"QueryResultType":{
3854+
"type":"string",
3855+
"enum":[
3856+
"DATA_MANIFEST",
3857+
"DATA_ROWS"
3858+
]
3859+
},
38013860
"QueryResultsS3AccessGrantsConfiguration":{
38023861
"type":"structure",
38033862
"required":[
@@ -4904,6 +4963,10 @@
49044963
"shape":"ResultConfiguration",
49054964
"documentation":"<p>The configuration for the workgroup, which includes the location in Amazon S3 where query and calculation results are stored and the encryption option, if any, used for query and calculation results. To run the query, you must specify the query results location using one of the ways: either in the workgroup using this setting, or for individual queries (client-side), using <a>ResultConfiguration$OutputLocation</a>. If none of them is set, Athena issues an error that no output location is provided.</p>"
49064965
},
4966+
"ManagedQueryResultsConfiguration":{
4967+
"shape":"ManagedQueryResultsConfiguration",
4968+
"documentation":"<p> The configuration for storing results in Athena owned storage, which includes whether this feature is enabled; whether encryption configuration, if any, is used for encrypting query results. </p>"
4969+
},
49074970
"EnforceWorkGroupConfiguration":{
49084971
"shape":"BoxedBoolean",
49094972
"documentation":"<p>If set to \"true\", the settings for the workgroup override client-side settings. If set to \"false\", client-side settings are used. For more information, see <a href=\"https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html\">Workgroup Settings Override Client-Side Settings</a>.</p>"
@@ -4962,6 +5025,10 @@
49625025
"shape":"ResultConfigurationUpdates",
49635026
"documentation":"<p>The result configuration information about the queries in this workgroup that will be updated. Includes the updated results location and an updated option for encrypting query results.</p>"
49645027
},
5028+
"ManagedQueryResultsConfigurationUpdates":{
5029+
"shape":"ManagedQueryResultsConfigurationUpdates",
5030+
"documentation":"<p>Updates configuration information for managed query results in the workgroup.</p>"
5031+
},
49655032
"PublishCloudWatchMetricsEnabled":{
49665033
"shape":"BoxedBoolean",
49675034
"documentation":"<p>Indicates whether this workgroup enables publishing metrics to Amazon CloudWatch.</p>"

0 commit comments

Comments
 (0)