Skip to content

Commit

Permalink
Merge branch 'release-1.34.22'
Browse files Browse the repository at this point in the history
* release-1.34.22:
  Bumping version to 1.34.22
  Update changelog based on model updates
  Fix regex strings in Python 3.12 (#8925)
  • Loading branch information
aws-sdk-python-automation committed Sep 18, 2024
2 parents 308960f + f1b8924 commit f44ec37
Show file tree
Hide file tree
Showing 11 changed files with 90 additions and 24 deletions.
37 changes: 37 additions & 0 deletions .changes/1.34.22.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[
{
"category": "``ce``",
"description": "This release extends the GetReservationPurchaseRecommendation API to support recommendations for Amazon DynamoDB reservations.",
"type": "api-change"
},
{
"category": "``ds``",
"description": "Added new APIs for enabling, disabling, and describing access to the AWS Directory Service Data API",
"type": "api-change"
},
{
"category": "``ds-data``",
"description": "Added new AWS Directory Service Data API, enabling you to manage data stored in AWS Directory Service directories. This includes APIs for creating, reading, updating, and deleting directory users, groups, and group memberships.",
"type": "api-change"
},
{
"category": "``guardduty``",
"description": "Add `launchType` and `sourceIPs` fields to GuardDuty findings.",
"type": "api-change"
},
{
"category": "``mailmanager``",
"description": "Introduce a new RuleSet condition evaluation, where customers can set up a StringExpression with a MimeHeader condition. This condition will perform the necessary validation based on the X-header provided by customers.",
"type": "api-change"
},
{
"category": "``rds``",
"description": "Updates Amazon RDS documentation with information upgrading snapshots with unsupported engine versions for RDS for MySQL and RDS for PostgreSQL.",
"type": "api-change"
},
{
"category": "``s3``",
"description": "Added SSE-KMS support for directory buckets.",
"type": "api-change"
}
]
12 changes: 12 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
CHANGELOG
=========

1.34.22
=======

* api-change:``ce``: This release extends the GetReservationPurchaseRecommendation API to support recommendations for Amazon DynamoDB reservations.
* api-change:``ds``: Added new APIs for enabling, disabling, and describing access to the AWS Directory Service Data API
* api-change:``ds-data``: Added new AWS Directory Service Data API, enabling you to manage data stored in AWS Directory Service directories. This includes APIs for creating, reading, updating, and deleting directory users, groups, and group memberships.
* api-change:``guardduty``: Add `launchType` and `sourceIPs` fields to GuardDuty findings.
* api-change:``mailmanager``: Introduce a new RuleSet condition evaluation, where customers can set up a StringExpression with a MimeHeader condition. This condition will perform the necessary validation based on the X-header provided by customers.
* api-change:``rds``: Updates Amazon RDS documentation with information upgrading snapshots with unsupported engine versions for RDS for MySQL and RDS for PostgreSQL.
* api-change:``s3``: Added SSE-KMS support for directory buckets.


1.34.21
=======

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

import os

__version__ = '1.34.21'
__version__ = '1.34.22'

#
# Get our data path to be added to botocore's search path
Expand Down
6 changes: 3 additions & 3 deletions awscli/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,9 @@ def _parse_release_file(firstline):
id = l[1]
return '', version, id

_distributor_id_file_re = re.compile("(?:DISTRIB_ID\s*=)\s*(.*)", re.I)
_release_file_re = re.compile("(?:DISTRIB_RELEASE\s*=)\s*(.*)", re.I)
_codename_file_re = re.compile("(?:DISTRIB_CODENAME\s*=)\s*(.*)", re.I)
_distributor_id_file_re = re.compile(r"(?:DISTRIB_ID\s*=)\s*(.*)", re.I)
_release_file_re = re.compile(r"(?:DISTRIB_RELEASE\s*=)\s*(.*)", re.I)
_codename_file_re = re.compile(r"(?:DISTRIB_CODENAME\s*=)\s*(.*)", re.I)

def linux_distribution(
distname='',
Expand Down
33 changes: 24 additions & 9 deletions awscli/customizations/cloudtrail/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,24 @@ def assert_cloudtrail_arn_is_valid(trail_arn):
"""Ensures that the arn looks correct.
ARNs look like: arn:aws:cloudtrail:us-east-1:123456789012:trail/foo"""
pattern = re.compile('arn:.+:cloudtrail:.+:\d{12}:trail/.+')
pattern = re.compile(r'arn:.+:cloudtrail:.+:\d{12}:trail/.+')
if not pattern.match(trail_arn):
raise ValueError('Invalid trail ARN provided: %s' % trail_arn)


def create_digest_traverser(cloudtrail_client, organization_client,
s3_client_provider, trail_arn,
trail_source_region=None, on_invalid=None,
on_gap=None, on_missing=None, bucket=None,
prefix=None, account_id=None):
def create_digest_traverser(
cloudtrail_client,
organization_client,
s3_client_provider,
trail_arn,
trail_source_region=None,
on_invalid=None,
on_gap=None,
on_missing=None,
bucket=None,
prefix=None,
account_id=None,
):
"""Creates a CloudTrail DigestTraverser and its object graph.
:type cloudtrail_client: botocore.client.CloudTrail
Expand Down Expand Up @@ -244,9 +252,16 @@ class DigestProvider(object):
dict. This class is not responsible for validation or iterating from
one digest to the next.
"""
def __init__(self, s3_client_provider, account_id, trail_name,
trail_home_region, trail_source_region=None,
organization_id=None):

def __init__(
self,
s3_client_provider,
account_id,
trail_name,
trail_home_region,
trail_source_region=None,
organization_id=None,
):
self._client_provider = s3_client_provider
self.trail_name = trail_name
self.account_id = account_id
Expand Down
4 changes: 2 additions & 2 deletions awscli/customizations/codedeploy/push.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ class Push(BasicCommand):
'revision to be uploaded to Amazon S3. You must specify both '
'a bucket and a key that represent the Amazon S3 bucket name '
'and the object key name. Content will be zipped before '
'uploading. Use the format s3://\<bucket\>/\<key\>'
)
'uploading. Use the format s3://<bucket>/<key>'
),
},
{
'name': 'ignore-hidden-files',
Expand Down
8 changes: 5 additions & 3 deletions awscli/customizations/emr/createcluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,11 @@ def _run_main_command(self, parsed_args, parsed_globals):
raise ValueError('aws: error: invalid json argument for '
'option --configurations')

if (parsed_args.release_label is None and
parsed_args.ami_version is not None):
is_valid_ami_version = re.match('\d?\..*', parsed_args.ami_version)
if (
parsed_args.release_label is None
and parsed_args.ami_version is not None
):
is_valid_ami_version = re.match(r'\d?\..*', parsed_args.ami_version)
if is_valid_ami_version is None:
raise exceptions.InvalidAmiVersionError(
ami_version=parsed_args.ami_version)
Expand Down
6 changes: 3 additions & 3 deletions awscli/shorthand.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ class ShorthandParser:

_SINGLE_QUOTED = _NamedRegex('singled quoted', r'\'(?:\\\\|\\\'|[^\'])*\'')
_DOUBLE_QUOTED = _NamedRegex('double quoted', r'"(?:\\\\|\\"|[^"])*"')
_START_WORD = '\!\#-&\(-\+\--\<\>-Z\\\\-z\u007c-\uffff'
_FIRST_FOLLOW_CHARS = '\s\!\#-&\(-\+\--\\\\\^-\|~-\uffff'
_SECOND_FOLLOW_CHARS = '\s\!\#-&\(-\+\--\<\>-\uffff'
_START_WORD = r'\!\#-&\(-\+\--\<\>-Z\\\\-z\u007c-\uffff'
_FIRST_FOLLOW_CHARS = r'\s\!\#-&\(-\+\--\\\\\^-\|~-\uffff'
_SECOND_FOLLOW_CHARS = r'\s\!\#-&\(-\+\--\<\>-\uffff'
_ESCAPED_COMMA = '(\\\\,)'
_FIRST_VALUE = _NamedRegex(
'first',
Expand Down
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
# The short X.Y version.
version = '1.34.'
# The full version, including alpha/beta/rc tags.
release = '1.34.21'
release = '1.34.22'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
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.35.21
botocore==1.35.22
docutils>=0.10,<0.17
s3transfer>=0.10.0,<0.11.0
PyYAML>=3.10,<6.1
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def find_version(*file_paths):


install_requires = [
'botocore==1.35.21',
'botocore==1.35.22',
'docutils>=0.10,<0.17',
's3transfer>=0.10.0,<0.11.0',
'PyYAML>=3.10,<6.1',
Expand Down

0 comments on commit f44ec37

Please sign in to comment.