Skip to content

Commit

Permalink
Merge branch 'release-1.29.133'
Browse files Browse the repository at this point in the history
* release-1.29.133:
  Bumping version to 1.29.133
  Update to latest partitions and endpoints
  Update to latest models
  Update black formatting
  Include params set in provide-client-param event handlers in dynamic context params for endpoint resolution (#2920)
  Addresses admonition accessibility issue (#2928)
  Update pre-commit hooks versions
  • Loading branch information
aws-sdk-python-automation committed May 11, 2023
2 parents 29811c0 + 5dac23b commit a16d57d
Show file tree
Hide file tree
Showing 60 changed files with 5,388 additions and 6,451 deletions.
52 changes: 52 additions & 0 deletions .changes/1.29.133.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[
{
"category": "endpoints",
"description": "Include params set in provide-client-param event handlers in dynamic context params for endpoint resolution.",
"type": "bugfix"
},
{
"category": "``connect``",
"description": "This release updates GetMetricDataV2 API, to support metric data up-to last 35 days",
"type": "api-change"
},
{
"category": "``elasticache``",
"description": "Added support to modify the cluster mode configuration for the existing ElastiCache ReplicationGroups. Customers can now modify the configuration from cluster mode disabled to cluster mode enabled.",
"type": "api-change"
},
{
"category": "``es``",
"description": "This release fixes DescribePackages API error with null filter value parameter.",
"type": "api-change"
},
{
"category": "``health``",
"description": "Add support for regional endpoints",
"type": "api-change"
},
{
"category": "``ivs-realtime``",
"description": "Add methods for inspecting and debugging stages: ListStageSessions, GetStageSession, ListParticipants, GetParticipant, and ListParticipantEvents.",
"type": "api-change"
},
{
"category": "``omics``",
"description": "This release provides support for Ready2Run and GPU workflows, an improved read set filter, the direct upload of read sets into Omics Storage, and annotation parsing for analytics stores.",
"type": "api-change"
},
{
"category": "``opensearch``",
"description": "This release fixes DescribePackages API error with null filter value parameter.",
"type": "api-change"
},
{
"category": "``route53resolver``",
"description": "Update FIPS endpoints for GovCloud (US) regions in SDK.",
"type": "api-change"
},
{
"category": "``support``",
"description": "This release adds 2 new Support APIs, DescribeCreateCaseOptions and DescribeSupportedLanguages. You can use these new APIs to get available support languages.",
"type": "api-change"
}
]
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ a2c2fe68a2f9ae259dd1d72b172d41c7c81808cd

# Run Black and PyUpgrade over tests directory
10747e5e2f2f97a9493b91b5c886bda71678e3be

# Update to black 23
9faeaa6e4fd3c5136c5d1ee9fb72d4aa17d889cf
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exclude: "\
)"
repos:
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v2.3.0
rev: v4.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
Expand All @@ -24,16 +24,16 @@ repos:
hooks:
- id: isort
- repo: 'https://github.com/pycqa/flake8'
rev: 3.9.2
rev: 6.0.0
hooks:
- id: flake8
- repo: 'https://github.com/asottile/pyupgrade'
rev: v2.32.1
rev: v3.3.2
hooks:
- id: pyupgrade
args:
- '--py36-plus'
- repo: 'https://github.com/psf/black'
rev: 22.3.0
rev: 23.3.0
hooks:
- id: black
15 changes: 15 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@
CHANGELOG
=========

1.29.133
========

* bugfix:endpoints: Include params set in provide-client-param event handlers in dynamic context params for endpoint resolution.
* api-change:``connect``: This release updates GetMetricDataV2 API, to support metric data up-to last 35 days
* api-change:``elasticache``: Added support to modify the cluster mode configuration for the existing ElastiCache ReplicationGroups. Customers can now modify the configuration from cluster mode disabled to cluster mode enabled.
* api-change:``es``: This release fixes DescribePackages API error with null filter value parameter.
* api-change:``health``: Add support for regional endpoints
* api-change:``ivs-realtime``: Add methods for inspecting and debugging stages: ListStageSessions, GetStageSession, ListParticipants, GetParticipant, and ListParticipantEvents.
* api-change:``omics``: This release provides support for Ready2Run and GPU workflows, an improved read set filter, the direct upload of read sets into Omics Storage, and annotation parsing for analytics stores.
* api-change:``opensearch``: This release fixes DescribePackages API error with null filter value parameter.
* api-change:``route53resolver``: Update FIPS endpoints for GovCloud (US) regions in SDK.
* api-change:``support``: This release adds 2 new Support APIs, DescribeCreateCaseOptions and DescribeSupportedLanguages. You can use these new APIs to get available support languages.


1.29.132
========

Expand Down
2 changes: 1 addition & 1 deletion botocore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import os
import re

__version__ = '1.29.132'
__version__ = '1.29.133'


class NullHandler(logging.Handler):
Expand Down
1 change: 0 additions & 1 deletion botocore/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,6 @@ def add_auth(self, request):


class HmacV1Auth(BaseSigner):

# List of Query String Arguments of Interest
QSAOfInterest = [
'accelerate',
Expand Down
3 changes: 1 addition & 2 deletions botocore/awsrequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,6 @@ def __init__(
auth_path=None,
stream_output=False,
):

self._request_preparer = self._REQUEST_PREPARER_CLS()

# Default empty dicts for dict params.
Expand Down Expand Up @@ -565,7 +564,7 @@ def content(self):
# NOTE: requests would attempt to call stream and fall back
# to a custom generator that would call read in a loop, but
# we don't rely on this behavior
self._content = bytes().join(self.raw.stream()) or bytes()
self._content = b''.join(self.raw.stream()) or b''

return self._content

Expand Down
9 changes: 5 additions & 4 deletions botocore/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,6 @@ def _resolve_signature_version(self, service_name, resolved):


class BaseClient:

# This is actually reassigned with the py->op_name mapping
# when the client creator creates the subclass. This value is used
# because calls such as client.get_paginator('list_objects') use the
Expand Down Expand Up @@ -913,6 +912,11 @@ def _make_api_call(self, operation_name, api_params):
'has_streaming_input': operation_model.has_streaming_input,
'auth_type': operation_model.auth_type,
}
api_params = self._emit_api_params(
api_params=api_params,
operation_model=operation_model,
context=request_context,
)
endpoint_url, additional_headers = self._resolve_endpoint_ruleset(
operation_model, api_params, request_context
)
Expand Down Expand Up @@ -984,9 +988,6 @@ def _convert_to_request_dict(
headers=None,
set_user_agent_header=True,
):
api_params = self._emit_api_params(
api_params, operation_model, context
)
request_dict = self._serializer.serialize_to_request(
api_params, operation_model
)
Expand Down
1 change: 0 additions & 1 deletion botocore/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,6 @@ def _extract_creds_from_mapping(self, mapping, *key_names):


class ProcessProvider(CredentialProvider):

METHOD = 'custom-process'

def __init__(self, profile_name, load_config, popen=subprocess.Popen):
Expand Down
4 changes: 2 additions & 2 deletions botocore/crt/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def _crt_request_from_aws_request(self, aws_request):
crt_path = url_parts.path if url_parts.path else '/'
if aws_request.params:
array = []
for (param, value) in aws_request.params.items():
for param, value in aws_request.params.items():
value = str(value)
array.append(f'{param}={value}')
crt_path = crt_path + '?' + '&'.join(array)
Expand Down Expand Up @@ -309,7 +309,7 @@ def _crt_request_from_aws_request(self, aws_request):
crt_path = url_parts.path if url_parts.path else '/'
if aws_request.params:
array = []
for (param, value) in aws_request.params.items():
for param, value in aws_request.params.items():
value = str(value)
array.append(f'{param}={value}')
crt_path = crt_path + '?' + '&'.join(array)
Expand Down
8 changes: 4 additions & 4 deletions botocore/data/connect/2017-08-08/service-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,7 @@
{"shape":"ThrottlingException"},
{"shape":"ResourceNotFoundException"}
],
"documentation":"<p>Gets metric data from the specified Amazon Connect instance. </p> <p> <code>GetMetricDataV2</code> offers more features than <a href=\"https://docs.aws.amazon.com/connect/latest/APIReference/API_GetMetricData.html\">GetMetricData</a>, the previous version of this API. It has new metrics, offers filtering at a metric level, and offers the ability to filter and group data by channels, queues, routing profiles, agents, and agent hierarchy levels. It can retrieve historical data for the last 14 days, in 24-hour intervals.</p> <p>For a description of the historical metrics that are supported by <code>GetMetricDataV2</code> and <code>GetMetricData</code>, see <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html\">Historical metrics definitions</a> in the <i>Amazon Connect Administrator's Guide</i>. </p> <p>This API is not available in the Amazon Web Services GovCloud (US) Regions.</p>"
"documentation":"<p>Gets metric data from the specified Amazon Connect instance. </p> <p> <code>GetMetricDataV2</code> offers more features than <a href=\"https://docs.aws.amazon.com/connect/latest/APIReference/API_GetMetricData.html\">GetMetricData</a>, the previous version of this API. It has new metrics, offers filtering at a metric level, and offers the ability to filter and group data by channels, queues, routing profiles, agents, and agent hierarchy levels. It can retrieve historical data for the last 35 days, in 24-hour intervals.</p> <p>For a description of the historical metrics that are supported by <code>GetMetricDataV2</code> and <code>GetMetricData</code>, see <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html\">Historical metrics definitions</a> in the <i>Amazon Connect Administrator's Guide</i>. </p> <p>This API is not available in the Amazon Web Services GovCloud (US) Regions.</p>"
},
"GetTaskTemplate":{
"name":"GetTaskTemplate",
Expand Down Expand Up @@ -2803,7 +2803,7 @@
{"shape":"IdempotencyException"},
{"shape":"AccessDeniedException"}
],
"documentation":"<p>Updates your claimed phone number from its current Amazon Connect instance or traffic distribution group to another Amazon Connect instance or traffic distribution group in the same Amazon Web Services Region.</p> <important> <p>You can call <a href=\"https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribePhoneNumber.html\">DescribePhoneNumber</a> API to verify the status of a previous <a href=\"https://docs.aws.amazon.com/connect/latest/APIReference/API_UpdatePhoneNumber.html\">UpdatePhoneNumber</a> operation.</p> </important>"
"documentation":"<p>Updates your claimed phone number from its current Amazon Connect instance or traffic distribution group to another Amazon Connect instance or traffic distribution group in the same Amazon Web Services Region.</p> <important> <p>After using this API, you must verify that the phone number is attached to the correct flow in the target instance or traffic distribution group. You need to do this because the API switches only the phone number to a new instance or traffic distribution group. It doesn't migrate the flow configuration of the phone number, too.</p> <p>You can call <a href=\"https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribePhoneNumber.html\">DescribePhoneNumber</a> API to verify the status of a previous <a href=\"https://docs.aws.amazon.com/connect/latest/APIReference/API_UpdatePhoneNumber.html\">UpdatePhoneNumber</a> operation.</p> </important>"
},
"UpdateQueueHoursOfOperation":{
"name":"UpdateQueueHoursOfOperation",
Expand Down Expand Up @@ -8143,7 +8143,7 @@
},
"StartTime":{
"shape":"Timestamp",
"documentation":"<p>The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of historical metrics data. The time must be before the end time timestamp. The time range between the start and end time must be less than 24 hours. The start time cannot be earlier than 14 days before the time of the request. Historical metrics are available for 14 days.</p>"
"documentation":"<p>The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of historical metrics data. The time must be before the end time timestamp. The time range between the start and end time must be less than 24 hours. The start time cannot be earlier than 35 days before the time of the request. Historical metrics are available for 35 days.</p>"
},
"EndTime":{
"shape":"Timestamp",
Expand Down Expand Up @@ -10860,7 +10860,7 @@
"members":{
"Name":{
"shape":"MetricNameV2",
"documentation":"<p>The name of the metric.</p>"
"documentation":"<p>The name of the metric.</p> <important> <p>This parameter is required. The following Required = No is incorrect.</p> </important>"
},
"Threshold":{
"shape":"ThresholdCollections",
Expand Down

0 comments on commit a16d57d

Please sign in to comment.