Skip to content

Commit

Permalink
Merge branch 'release-1.27.9'
Browse files Browse the repository at this point in the history
* release-1.27.9:
  Bumping version to 1.27.9
  Update to latest models
  Adding variables for retry and modes options (#2695)
  • Loading branch information
aws-sdk-python-automation committed Jun 14, 2022
2 parents 113b9a9 + 5862241 commit 2b3eff1
Show file tree
Hide file tree
Showing 9 changed files with 225 additions and 41 deletions.
17 changes: 17 additions & 0 deletions .changes/1.27.9.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
{
"category": "``budgets``",
"description": "Add a budgets ThrottlingException. Update the CostFilters value pattern.",
"type": "api-change"
},
{
"category": "``lookoutmetrics``",
"description": "Adding filters to Alert and adding new UpdateAlert API.",
"type": "api-change"
},
{
"category": "``mediaconvert``",
"description": "AWS Elemental MediaConvert SDK has added support for rules that constrain Automatic-ABR rendition selection when generating ABR package ladders.",
"type": "api-change"
}
]
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
CHANGELOG
=========

1.27.9
======

* api-change:``budgets``: Add a budgets ThrottlingException. Update the CostFilters value pattern.
* api-change:``lookoutmetrics``: Adding filters to Alert and adding new UpdateAlert API.
* api-change:``mediaconvert``: AWS Elemental MediaConvert SDK has added support for rules that constrain Automatic-ABR rendition selection when generating ABR package ladders.


1.27.8
======

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.27.8'
__version__ = '1.27.9'


class NullHandler(logging.Handler):
Expand Down
18 changes: 10 additions & 8 deletions botocore/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,14 @@ def _validate_s3_configuration(self, s3):
)

def _validate_retry_configuration(self, retries):
valid_options = ('max_attempts', 'mode', 'total_max_attempts')
valid_modes = ('legacy', 'standard', 'adaptive')
if retries is not None:
for key, value in retries.items():
if key not in ['max_attempts', 'mode', 'total_max_attempts']:
if key not in valid_options:
raise InvalidRetryConfigurationError(
retry_config_option=key
retry_config_option=key,
valid_options=valid_options,
)
if key == 'max_attempts' and value < 0:
raise InvalidMaxRetryAttemptsError(
Expand All @@ -292,12 +295,11 @@ def _validate_retry_configuration(self, retries):
provided_max_attempts=value,
min_value=1,
)
if key == 'mode' and value not in (
'legacy',
'standard',
'adaptive',
):
raise InvalidRetryModeError(provided_retry_mode=value)
if key == 'mode' and value not in valid_modes:
raise InvalidRetryModeError(
provided_retry_mode=value,
valid_modes=valid_modes,
)

def merge(self, other_config):
"""Merges the config object with another config object
Expand Down
87 changes: 62 additions & 25 deletions botocore/data/budgets/2016-10-20/service-2.json

Large diffs are not rendered by default.

109 changes: 107 additions & 2 deletions botocore/data/lookoutmetrics/2017-07-25/service-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,23 @@
],
"documentation":"<p>Removes <a href=\"https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html\">tags</a> from a detector, dataset, or alert.</p>"
},
"UpdateAlert":{
"name":"UpdateAlert",
"http":{
"method":"POST",
"requestUri":"/UpdateAlert"
},
"input":{"shape":"UpdateAlertRequest"},
"output":{"shape":"UpdateAlertResponse"},
"errors":[
{"shape":"ValidationException"},
{"shape":"ResourceNotFoundException"},
{"shape":"InternalServerException"},
{"shape":"AccessDeniedException"},
{"shape":"TooManyRequestsException"}
],
"documentation":"<p>Make changes to an existing alert.</p>"
},
"UpdateAnomalyDetector":{
"name":"UpdateAnomalyDetector",
"http":{
Expand Down Expand Up @@ -586,6 +603,10 @@
"CreationTime":{
"shape":"Timestamp",
"documentation":"<p>The time at which the alert was created.</p>"
},
"AlertFilters":{
"shape":"AlertFilters",
"documentation":"<p>The configuration of the alert filters, containing MetricList and DimensionFilter.</p>"
}
},
"documentation":"<p>A configuration for Amazon SNS-integrated notifications.</p>"
Expand All @@ -595,6 +616,20 @@
"max":256,
"pattern":".*\\S.*"
},
"AlertFilters":{
"type":"structure",
"members":{
"MetricList":{
"shape":"MetricNameList",
"documentation":"<p>The list of measures that you want to get alerts for.</p>"
},
"DimensionFilterList":{
"shape":"DimensionFilterList",
"documentation":"<p>The list of DimensionFilter objects that are used for dimension-based filtering.</p>"
}
},
"documentation":"<p>The configuration of the alert filters.</p>"
},
"AlertName":{
"type":"string",
"max":63,
Expand Down Expand Up @@ -1128,7 +1163,6 @@
"type":"structure",
"required":[
"AlertName",
"AlertSensitivityThreshold",
"AnomalyDetectorArn",
"Action"
],
Expand Down Expand Up @@ -1156,6 +1190,10 @@
"Tags":{
"shape":"TagMap",
"documentation":"<p>A list of <a href=\"https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html\">tags</a> to apply to the alert.</p>"
},
"AlertFilters":{
"shape":"AlertFilters",
"documentation":"<p>The configuration of the alert filters, containing MetricList and DimensionFilterList.</p>"
}
}
},
Expand Down Expand Up @@ -1704,6 +1742,26 @@
"type":"list",
"member":{"shape":"DimensionContribution"}
},
"DimensionFilter":{
"type":"structure",
"members":{
"DimensionName":{
"shape":"ColumnName",
"documentation":"<p>The name of the dimension to filter on.</p>"
},
"DimensionValueList":{
"shape":"DimensionValueList",
"documentation":"<p>The list of values for the dimension specified in DimensionName that you want to filter on.</p>"
}
},
"documentation":"<p>The dimension filter, containing DimensionName and DimensionValueList.</p>"
},
"DimensionFilterList":{
"type":"list",
"member":{"shape":"DimensionFilter"},
"max":5,
"min":1
},
"DimensionList":{
"type":"list",
"member":{"shape":"ColumnName"},
Expand Down Expand Up @@ -1750,6 +1808,12 @@
"type":"list",
"member":{"shape":"DimensionValueContribution"}
},
"DimensionValueList":{
"type":"list",
"member":{"shape":"DimensionValue"},
"max":10,
"min":1
},
"ErrorMessage":{
"type":"string",
"max":256
Expand Down Expand Up @@ -2331,6 +2395,12 @@
"max":256,
"pattern":"^[a-zA-Z0-9][a-zA-Z0-9\\-_]*"
},
"MetricNameList":{
"type":"list",
"member":{"shape":"MetricName"},
"max":5,
"min":1
},
"MetricSetDescription":{
"type":"string",
"max":256,
Expand Down Expand Up @@ -2636,7 +2706,7 @@
},
"SnsFormat":{
"shape":"SnsFormat",
"documentation":"<p>The format of the SNS topic.</p>"
"documentation":"<p>The format of the SNS topic.</p> <ul> <li> <p> <code>JSON</code> – Send JSON alerts with an anomaly ID and a link to the anomaly detail page. This is the default.</p> </li> <li> <p> <code>LONG_TEXT</code> – Send human-readable alerts with information about the impacted timeseries and a link to the anomaly detail page. We recommend this for email.</p> </li> <li> <p> <code>SHORT_TEXT</code> – Send human-readable alerts with a link to the anomaly detail page. We recommend this for SMS.</p> </li> </ul>"
}
},
"documentation":"<p>Contains information about the SNS topic to which you want to send your alerts and the IAM role that has access to that topic.</p>"
Expand Down Expand Up @@ -2925,6 +2995,41 @@
"members":{
}
},
"UpdateAlertRequest":{
"type":"structure",
"required":["AlertArn"],
"members":{
"AlertArn":{
"shape":"Arn",
"documentation":"<p>The ARN of the alert to update.</p>"
},
"AlertDescription":{
"shape":"AlertDescription",
"documentation":"<p>A description of the alert.</p>"
},
"AlertSensitivityThreshold":{
"shape":"SensitivityThreshold",
"documentation":"<p>An integer from 0 to 100 specifying the alert sensitivity threshold.</p>"
},
"Action":{
"shape":"Action",
"documentation":"<p>Action that will be triggered when there is an alert.</p>"
},
"AlertFilters":{
"shape":"AlertFilters",
"documentation":"<p>The configuration of the alert filters, containing MetricList and DimensionFilterList.</p>"
}
}
},
"UpdateAlertResponse":{
"type":"structure",
"members":{
"AlertArn":{
"shape":"Arn",
"documentation":"<p>The ARN of the updated alert.</p>"
}
}
},
"UpdateAnomalyDetectorRequest":{
"type":"structure",
"required":["AnomalyDetectorArn"],
Expand Down
19 changes: 17 additions & 2 deletions botocore/data/mediaconvert/2017-08-29/service-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1737,6 +1737,16 @@
},
"documentation": "Settings related to one audio tab on the MediaConvert console. In your job JSON, an instance of AudioDescription is equivalent to one audio tab in the console. Usually, one audio tab corresponds to one output audio track. Depending on how you set up your input audio selectors and whether you use audio selector groups, one audio tab can correspond to a group of output audio tracks."
},
"AudioDurationCorrection": {
"type": "string",
"documentation": "Apply audio timing corrections to help synchronize audio and video in your output. To apply timing corrections, your input must meet the following requirements: * Container: MP4, or MOV, with an accurate time-to-sample (STTS) table. * Audio track: AAC. Choose from the following audio timing correction settings: * Disabled (Default): Apply no correction. * Auto: Recommended for most inputs. MediaConvert analyzes the audio timing in your input and determines which correction setting to use, if needed. * Track: Adjust the duration of each audio frame by a constant amount to align the audio track length with STTS duration. Track-level correction does not affect pitch, and is recommended for tonal audio content such as music. * Frame: Adjust the duration of each audio frame by a variable amount to align audio frames with STTS timestamps. No corrections are made to already-aligned frames. Frame-level correction may affect the pitch of corrected frames, and is recommended for atonal audio content such as speech or percussion.",
"enum": [
"DISABLED",
"AUTO",
"TRACK",
"FRAME"
]
},
"AudioLanguageCodeControl": {
"type": "string",
"documentation": "Specify which source for language code takes precedence for this audio track. When you choose Follow input (FOLLOW_INPUT), the service uses the language code from the input track if it's present. If there's no languge code on the input track, the service uses the code that you specify in the setting Language code (languageCode or customLanguageCode). When you choose Use configured (USE_CONFIGURED), the service uses the language code that you specify.",
Expand Down Expand Up @@ -1818,6 +1828,11 @@
"AudioSelector": {
"type": "structure",
"members": {
"AudioDurationCorrection": {
"shape": "AudioDurationCorrection",
"locationName": "audioDurationCorrection",
"documentation": "Apply audio timing corrections to help synchronize audio and video in your output. To apply timing corrections, your input must meet the following requirements: * Container: MP4, or MOV, with an accurate time-to-sample (STTS) table. * Audio track: AAC. Choose from the following audio timing correction settings: * Disabled (Default): Apply no correction. * Auto: Recommended for most inputs. MediaConvert analyzes the audio timing in your input and determines which correction setting to use, if needed. * Track: Adjust the duration of each audio frame by a constant amount to align the audio track length with STTS duration. Track-level correction does not affect pitch, and is recommended for tonal audio content such as music. * Frame: Adjust the duration of each audio frame by a variable amount to align audio frames with STTS timestamps. No corrections are made to already-aligned frames. Frame-level correction may affect the pitch of corrected frames, and is recommended for atonal audio content such as speech or percussion."
},
"CustomLanguageCode": {
"shape": "__stringMin3Max3PatternAZaZ3",
"locationName": "customLanguageCode",
Expand Down Expand Up @@ -7056,7 +7071,7 @@
"VideoGenerator": {
"shape": "InputVideoGenerator",
"locationName": "videoGenerator",
"documentation": "Use this setting if you do not have a video input or if you want to add black video frames before, or after, other inputs. When you include Video generator, MediaConvert creates a video input with black frames and without an audio track. You can specify a value for Video generator, or you can specify an Input file, but you cannot specify both."
"documentation": "When you include Video generator, MediaConvert creates a video input with black frames. Use this setting if you do not have a video input or if you want to add black video frames before, or after, other inputs. You can specify Video generator, or you can specify an Input file, but you cannot specify both. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/video-generator.html"
},
"VideoSelector": {
"shape": "VideoSelector",
Expand Down Expand Up @@ -7291,7 +7306,7 @@
"documentation": "Specify an integer value for Black video duration from 50 to 86400000 to generate a black video input for that many milliseconds. Required when you include Video generator."
}
},
"documentation": "Use this setting if you do not have a video input or if you want to add black video frames before, or after, other inputs. When you include Video generator, MediaConvert creates a video input with black frames and without an audio track. You can specify a value for Video generator, or you can specify an Input file, but you cannot specify both."
"documentation": "When you include Video generator, MediaConvert creates a video input with black frames. Use this setting if you do not have a video input or if you want to add black video frames before, or after, other inputs. You can specify Video generator, or you can specify an Input file, but you cannot specify both. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/video-generator.html"
},
"InsertableImage": {
"type": "structure",
Expand Down
4 changes: 2 additions & 2 deletions botocore/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ class InvalidRetryConfigurationError(BotoCoreError):

fmt = (
'Cannot provide retry configuration for "{retry_config_option}". '
'Valid retry configuration options are: \'max_attempts\''
'Valid retry configuration options are: {valid_options}'
)


Expand All @@ -653,7 +653,7 @@ class InvalidRetryModeError(InvalidRetryConfigurationError):

fmt = (
'Invalid value provided to "mode": "{provided_retry_mode}" must '
'be one of: "legacy", "standard", "adaptive"'
'be one of: {valid_modes}'
)


Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
# The short X.Y version.
version = '1.27'
# The full version, including alpha/beta/rc tags.
release = '1.27.8'
release = '1.27.9'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down

0 comments on commit 2b3eff1

Please sign in to comment.