diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a7c301d89..6b4cb966cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +Release v1.44.34 (2022-06-14) +=== + +### Service Client Updates +* `service/budgets`: Updates service API and documentation + * Add a budgets ThrottlingException. Update the CostFilters value pattern. +* `service/lookoutmetrics`: Updates service API and documentation +* `service/mediaconvert`: Updates service API and documentation + * AWS Elemental MediaConvert SDK has added support for rules that constrain Automatic-ABR rendition selection when generating ABR package ladders. + Release v1.44.33 (2022-06-13) === diff --git a/aws/version.go b/aws/version.go index 7aa7fdcb35..49e551cfe8 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.44.33" +const SDKVersion = "1.44.34" diff --git a/models/apis/budgets/2016-10-20/api-2.json b/models/apis/budgets/2016-10-20/api-2.json index aabc0f008f..3e1c5b8e53 100755 --- a/models/apis/budgets/2016-10-20/api-2.json +++ b/models/apis/budgets/2016-10-20/api-2.json @@ -26,7 +26,8 @@ {"shape":"InternalErrorException"}, {"shape":"CreationLimitExceededException"}, {"shape":"DuplicateRecordException"}, - {"shape":"AccessDeniedException"} + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} ] }, "CreateBudgetAction":{ @@ -43,7 +44,8 @@ {"shape":"CreationLimitExceededException"}, {"shape":"DuplicateRecordException"}, {"shape":"NotFoundException"}, - {"shape":"AccessDeniedException"} + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} ] }, "CreateNotification":{ @@ -60,7 +62,8 @@ {"shape":"NotFoundException"}, {"shape":"CreationLimitExceededException"}, {"shape":"DuplicateRecordException"}, - {"shape":"AccessDeniedException"} + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} ] }, "CreateSubscriber":{ @@ -77,7 +80,8 @@ {"shape":"CreationLimitExceededException"}, {"shape":"DuplicateRecordException"}, {"shape":"NotFoundException"}, - {"shape":"AccessDeniedException"} + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} ] }, "DeleteBudget":{ @@ -92,7 +96,8 @@ {"shape":"InternalErrorException"}, {"shape":"InvalidParameterException"}, {"shape":"NotFoundException"}, - {"shape":"AccessDeniedException"} + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} ] }, "DeleteBudgetAction":{ @@ -108,7 +113,8 @@ {"shape":"InvalidParameterException"}, {"shape":"NotFoundException"}, {"shape":"AccessDeniedException"}, - {"shape":"ResourceLockedException"} + {"shape":"ResourceLockedException"}, + {"shape":"ThrottlingException"} ] }, "DeleteNotification":{ @@ -123,7 +129,8 @@ {"shape":"InvalidParameterException"}, {"shape":"InternalErrorException"}, {"shape":"NotFoundException"}, - {"shape":"AccessDeniedException"} + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} ] }, "DeleteSubscriber":{ @@ -138,7 +145,8 @@ {"shape":"InternalErrorException"}, {"shape":"InvalidParameterException"}, {"shape":"NotFoundException"}, - {"shape":"AccessDeniedException"} + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} ] }, "DescribeBudget":{ @@ -153,7 +161,8 @@ {"shape":"InternalErrorException"}, {"shape":"InvalidParameterException"}, {"shape":"NotFoundException"}, - {"shape":"AccessDeniedException"} + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} ] }, "DescribeBudgetAction":{ @@ -168,7 +177,8 @@ {"shape":"InternalErrorException"}, {"shape":"InvalidParameterException"}, {"shape":"NotFoundException"}, - {"shape":"AccessDeniedException"} + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} ] }, "DescribeBudgetActionHistories":{ @@ -184,7 +194,8 @@ {"shape":"InvalidParameterException"}, {"shape":"NotFoundException"}, {"shape":"AccessDeniedException"}, - {"shape":"InvalidNextTokenException"} + {"shape":"InvalidNextTokenException"}, + {"shape":"ThrottlingException"} ] }, "DescribeBudgetActionsForAccount":{ @@ -199,7 +210,8 @@ {"shape":"InternalErrorException"}, {"shape":"InvalidParameterException"}, {"shape":"AccessDeniedException"}, - {"shape":"InvalidNextTokenException"} + {"shape":"InvalidNextTokenException"}, + {"shape":"ThrottlingException"} ] }, "DescribeBudgetActionsForBudget":{ @@ -215,7 +227,8 @@ {"shape":"InvalidParameterException"}, {"shape":"NotFoundException"}, {"shape":"AccessDeniedException"}, - {"shape":"InvalidNextTokenException"} + {"shape":"InvalidNextTokenException"}, + {"shape":"ThrottlingException"} ] }, "DescribeBudgetNotificationsForAccount":{ @@ -232,7 +245,8 @@ {"shape":"NotFoundException"}, {"shape":"InvalidNextTokenException"}, {"shape":"ExpiredNextTokenException"}, - {"shape":"AccessDeniedException"} + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} ] }, "DescribeBudgetPerformanceHistory":{ @@ -249,7 +263,8 @@ {"shape":"NotFoundException"}, {"shape":"InvalidNextTokenException"}, {"shape":"ExpiredNextTokenException"}, - {"shape":"AccessDeniedException"} + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} ] }, "DescribeBudgets":{ @@ -266,7 +281,8 @@ {"shape":"NotFoundException"}, {"shape":"InvalidNextTokenException"}, {"shape":"ExpiredNextTokenException"}, - {"shape":"AccessDeniedException"} + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} ] }, "DescribeNotificationsForBudget":{ @@ -283,7 +299,8 @@ {"shape":"NotFoundException"}, {"shape":"InvalidNextTokenException"}, {"shape":"ExpiredNextTokenException"}, - {"shape":"AccessDeniedException"} + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} ] }, "DescribeSubscribersForNotification":{ @@ -300,7 +317,8 @@ {"shape":"InvalidParameterException"}, {"shape":"InvalidNextTokenException"}, {"shape":"ExpiredNextTokenException"}, - {"shape":"AccessDeniedException"} + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} ] }, "ExecuteBudgetAction":{ @@ -316,7 +334,8 @@ {"shape":"InvalidParameterException"}, {"shape":"NotFoundException"}, {"shape":"AccessDeniedException"}, - {"shape":"ResourceLockedException"} + {"shape":"ResourceLockedException"}, + {"shape":"ThrottlingException"} ] }, "UpdateBudget":{ @@ -331,7 +350,8 @@ {"shape":"InternalErrorException"}, {"shape":"InvalidParameterException"}, {"shape":"NotFoundException"}, - {"shape":"AccessDeniedException"} + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} ] }, "UpdateBudgetAction":{ @@ -347,7 +367,8 @@ {"shape":"InvalidParameterException"}, {"shape":"NotFoundException"}, {"shape":"AccessDeniedException"}, - {"shape":"ResourceLockedException"} + {"shape":"ResourceLockedException"}, + {"shape":"ThrottlingException"} ] }, "UpdateNotification":{ @@ -363,7 +384,8 @@ {"shape":"InvalidParameterException"}, {"shape":"NotFoundException"}, {"shape":"DuplicateRecordException"}, - {"shape":"AccessDeniedException"} + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} ] }, "UpdateSubscriber":{ @@ -379,7 +401,8 @@ {"shape":"InvalidParameterException"}, {"shape":"NotFoundException"}, {"shape":"DuplicateRecordException"}, - {"shape":"AccessDeniedException"} + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} ] } }, @@ -1042,9 +1065,15 @@ "NextToken":{"shape":"GenericString"} } }, + "DimensionValue":{ + "type":"string", + "max":2147483647, + "min":0, + "pattern":"[\\S\\s]*" + }, "DimensionValues":{ "type":"list", - "member":{"shape":"GenericString"} + "member":{"shape":"DimensionValue"} }, "DuplicateRecordException":{ "type":"structure", @@ -1395,6 +1424,13 @@ "ABSOLUTE_VALUE" ] }, + "ThrottlingException":{ + "type":"structure", + "members":{ + "Message":{"shape":"errorMessage"} + }, + "exception":true + }, "TimePeriod":{ "type":"structure", "members":{ diff --git a/models/apis/budgets/2016-10-20/docs-2.json b/models/apis/budgets/2016-10-20/docs-2.json index b589d0b221..bf9bd78b70 100755 --- a/models/apis/budgets/2016-10-20/docs-2.json +++ b/models/apis/budgets/2016-10-20/docs-2.json @@ -1,6 +1,6 @@ { "version": "2.0", - "service": "

The Amazon Web Services Budgets API enables you to use Amazon Web Services Budgets to plan your service usage, service costs, and instance reservations. The API reference provides descriptions, syntax, and usage examples for each of the actions and data types for Amazon Web Services Budgets.

Budgets provide you with a way to see the following information:

Amazon Web Services updates your budget status several times a day. Budgets track your unblended costs, subscriptions, refunds, and RIs. You can create the following types of budgets:

Service Endpoint

The Amazon Web Services Budgets API provides the following endpoint:

For information about costs that are associated with the Amazon Web Services Budgets API, see Amazon Web Services Cost Management Pricing.

", + "service": "

Use the Amazon Web Services Budgets API to plan your service usage, service costs, and instance reservations. This API reference provides descriptions, syntax, and usage examples for each of the actions and data types for the Amazon Web Services Budgets feature.

Budgets provide you with a way to see the following information:

Amazon Web Services updates your budget status several times a day. Budgets track your unblended costs, subscriptions, refunds, and RIs. You can create the following types of budgets:

Service Endpoint

The Amazon Web Services Budgets API provides the following endpoint:

For information about costs that are associated with the Amazon Web Services Budgets API, see Amazon Web Services Cost Management Pricing.

", "operations": { "CreateBudget": "

Creates a budget and, if included, notifications and subscribers.

Only one of BudgetLimit or PlannedBudgetLimits can be present in the syntax at one time. Use the syntax that matches your case. The Request Syntax section shows the BudgetLimit syntax. For PlannedBudgetLimits, see the Examples section.

", "CreateBudgetAction": "

Creates a budget action.

", @@ -472,6 +472,12 @@ "refs": { } }, + "DimensionValue": { + "base": null, + "refs": { + "DimensionValues$member": null + } + }, "DimensionValues": { "base": null, "refs": { @@ -532,7 +538,6 @@ "DescribeNotificationsForBudgetResponse$NextToken": "

The pagination token in the service response that indicates the next set of results that you can retrieve.

", "DescribeSubscribersForNotificationRequest$NextToken": "

The pagination token that you include in your request to indicate the next set of results that you want to retrieve.

", "DescribeSubscribersForNotificationResponse$NextToken": "

The pagination token in the service response that indicates the next set of results that you can retrieve.

", - "DimensionValues$member": null, "PlannedBudgetLimits$key": null } }, @@ -822,6 +827,11 @@ "Notification$ThresholdType": "

The type of threshold for a notification. For ABSOLUTE_VALUE thresholds, Amazon Web Services notifies you when you go over or are forecasted to go over your total cost threshold. For PERCENTAGE thresholds, Amazon Web Services notifies you when you go over or are forecasted to go over a certain percentage of your forecasted spend. For example, if you have a budget for 200 dollars and you have a PERCENTAGE threshold of 80%, Amazon Web Services notifies you when you go over 160 dollars.

" } }, + "ThrottlingException": { + "base": "

The number of API requests has exceeded the maximum allowed API request throttling limit for the account.

", + "refs": { + } + }, "TimePeriod": { "base": "

The period of time that's covered by a budget. The period has a start date and an end date. The start date must come before the end date. There are no restrictions on the end date.

", "refs": { @@ -907,7 +917,8 @@ "InvalidNextTokenException$Message": null, "InvalidParameterException$Message": null, "NotFoundException$Message": null, - "ResourceLockedException$Message": null + "ResourceLockedException$Message": null, + "ThrottlingException$Message": null } } } diff --git a/models/apis/lookoutmetrics/2017-07-25/api-2.json b/models/apis/lookoutmetrics/2017-07-25/api-2.json index 675aca1ea3..590043d809 100644 --- a/models/apis/lookoutmetrics/2017-07-25/api-2.json +++ b/models/apis/lookoutmetrics/2017-07-25/api-2.json @@ -435,6 +435,22 @@ {"shape":"ResourceNotFoundException"} ] }, + "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"} + ] + }, "UpdateAnomalyDetector":{ "name":"UpdateAnomalyDetector", "http":{ @@ -517,7 +533,8 @@ "AlertType":{"shape":"AlertType"}, "AlertStatus":{"shape":"AlertStatus"}, "LastModificationTime":{"shape":"Timestamp"}, - "CreationTime":{"shape":"Timestamp"} + "CreationTime":{"shape":"Timestamp"}, + "AlertFilters":{"shape":"AlertFilters"} } }, "AlertDescription":{ @@ -525,6 +542,13 @@ "max":256, "pattern":".*\\S.*" }, + "AlertFilters":{ + "type":"structure", + "members":{ + "MetricList":{"shape":"MetricNameList"}, + "DimensionFilterList":{"shape":"DimensionFilterList"} + } + }, "AlertName":{ "type":"string", "max":63, @@ -854,7 +878,6 @@ "type":"structure", "required":[ "AlertName", - "AlertSensitivityThreshold", "AnomalyDetectorArn", "Action" ], @@ -864,7 +887,8 @@ "AlertDescription":{"shape":"AlertDescription"}, "AnomalyDetectorArn":{"shape":"Arn"}, "Action":{"shape":"Action"}, - "Tags":{"shape":"TagMap"} + "Tags":{"shape":"TagMap"}, + "AlertFilters":{"shape":"AlertFilters"} } }, "CreateAlertResponse":{ @@ -1157,6 +1181,19 @@ "type":"list", "member":{"shape":"DimensionContribution"} }, + "DimensionFilter":{ + "type":"structure", + "members":{ + "DimensionName":{"shape":"ColumnName"}, + "DimensionValueList":{"shape":"DimensionValueList"} + } + }, + "DimensionFilterList":{ + "type":"list", + "member":{"shape":"DimensionFilter"}, + "max":5, + "min":1 + }, "DimensionList":{ "type":"list", "member":{"shape":"ColumnName"}, @@ -1189,6 +1226,12 @@ "type":"list", "member":{"shape":"DimensionValueContribution"} }, + "DimensionValueList":{ + "type":"list", + "member":{"shape":"DimensionValue"}, + "max":10, + "min":1 + }, "ErrorMessage":{ "type":"string", "max":256 @@ -1560,6 +1603,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, @@ -1982,6 +2031,23 @@ "members":{ } }, + "UpdateAlertRequest":{ + "type":"structure", + "required":["AlertArn"], + "members":{ + "AlertArn":{"shape":"Arn"}, + "AlertDescription":{"shape":"AlertDescription"}, + "AlertSensitivityThreshold":{"shape":"SensitivityThreshold"}, + "Action":{"shape":"Action"}, + "AlertFilters":{"shape":"AlertFilters"} + } + }, + "UpdateAlertResponse":{ + "type":"structure", + "members":{ + "AlertArn":{"shape":"Arn"} + } + }, "UpdateAnomalyDetectorRequest":{ "type":"structure", "required":["AnomalyDetectorArn"], diff --git a/models/apis/lookoutmetrics/2017-07-25/docs-2.json b/models/apis/lookoutmetrics/2017-07-25/docs-2.json index 2c58ee45d2..47669f9a2e 100644 --- a/models/apis/lookoutmetrics/2017-07-25/docs-2.json +++ b/models/apis/lookoutmetrics/2017-07-25/docs-2.json @@ -28,6 +28,7 @@ "PutFeedback": "

Add feedback for an anomalous metric.

", "TagResource": "

Adds tags to a detector, dataset, or alert.

", "UntagResource": "

Removes tags from a detector, dataset, or alert.

", + "UpdateAlert": "

Make changes to an existing alert.

", "UpdateAnomalyDetector": "

Updates a detector. After activation, you can only change a detector's ingestion delay and description.

", "UpdateMetricSet": "

Updates a dataset.

" }, @@ -41,7 +42,8 @@ "base": "

A configuration that specifies the action to perform when anomalies are detected.

", "refs": { "Alert$Action": "

Action that will be triggered when there is an alert.

", - "CreateAlertRequest$Action": "

Action that will be triggered when there is an alert.

" + "CreateAlertRequest$Action": "

Action that will be triggered when there is an alert.

", + "UpdateAlertRequest$Action": "

Action that will be triggered when there is an alert.

" } }, "ActivateAnomalyDetectorRequest": { @@ -70,7 +72,16 @@ "base": null, "refs": { "Alert$AlertDescription": "

A description of the alert.

", - "CreateAlertRequest$AlertDescription": "

A description of the alert.

" + "CreateAlertRequest$AlertDescription": "

A description of the alert.

", + "UpdateAlertRequest$AlertDescription": "

A description of the alert.

" + } + }, + "AlertFilters": { + "base": "

The configuration of the alert filters.

", + "refs": { + "Alert$AlertFilters": "

The configuration of the alert filters, containing MetricList and DimensionFilter.

", + "CreateAlertRequest$AlertFilters": "

The configuration of the alert filters, containing MetricList and DimensionFilterList.

", + "UpdateAlertRequest$AlertFilters": "

The configuration of the alert filters, containing MetricList and DimensionFilterList.

" } }, "AlertName": { @@ -266,6 +277,8 @@ "SampleDataS3SourceConfig$RoleArn": "

The Amazon Resource Name (ARN) of the role.

", "TagResourceRequest$ResourceArn": "

The resource's Amazon Resource Name (ARN).

", "UntagResourceRequest$ResourceArn": "

The resource's Amazon Resource Name (ARN).

", + "UpdateAlertRequest$AlertArn": "

The ARN of the alert to update.

", + "UpdateAlertResponse$AlertArn": "

The ARN of the updated alert.

", "UpdateAnomalyDetectorRequest$AnomalyDetectorArn": "

The ARN of the detector to update.

", "UpdateAnomalyDetectorResponse$AnomalyDetectorArn": "

The ARN of the updated detector.

", "UpdateMetricSetRequest$MetricSetArn": "

The ARN of the dataset to update.

", @@ -388,6 +401,7 @@ "base": null, "refs": { "DimensionContribution$DimensionName": "

The name of the dimension.

", + "DimensionFilter$DimensionName": "

The name of the dimension to filter on.

", "DimensionList$member": null, "DimensionNameValue$DimensionName": "

The name of the dimension.

", "HeaderList$member": null, @@ -624,6 +638,18 @@ "ContributionMatrix$DimensionContributionList": "

A list of contributing dimensions.

" } }, + "DimensionFilter": { + "base": "

The dimension filter, containing DimensionName and DimensionValueList.

", + "refs": { + "DimensionFilterList$member": null + } + }, + "DimensionFilterList": { + "base": null, + "refs": { + "AlertFilters$DimensionFilterList": "

The list of DimensionFilter objects that are used for dimension-based filtering.

" + } + }, "DimensionList": { "base": null, "refs": { @@ -648,7 +674,8 @@ "base": null, "refs": { "DimensionNameValue$DimensionValue": "

The value of the dimension.

", - "DimensionValueContribution$DimensionValue": "

The value of the dimension.

" + "DimensionValueContribution$DimensionValue": "

The value of the dimension.

", + "DimensionValueList$member": null } }, "DimensionValueContribution": { @@ -663,6 +690,12 @@ "DimensionContribution$DimensionValueContributionList": "

A list of dimension values that contributed to the anomaly.

" } }, + "DimensionValueList": { + "base": null, + "refs": { + "DimensionFilter$DimensionValueList": "

The list of values for the dimension specified in DimensionName that you want to filter on.

" + } + }, "ErrorMessage": { "base": null, "refs": { @@ -972,7 +1005,14 @@ "InterMetricImpactDetails$MetricName": "

The name of the measure.

", "ListAnomalyGroupTimeSeriesRequest$MetricName": "

The name of the measure field.

", "ListAnomalyGroupTimeSeriesResponse$MetricName": "

The name of the measure field.

", - "MetricLevelImpact$MetricName": "

The name of the measure.

" + "MetricLevelImpact$MetricName": "

The name of the measure.

", + "MetricNameList$member": null + } + }, + "MetricNameList": { + "base": null, + "refs": { + "AlertFilters$MetricList": "

The list of measures that you want to get alerts for.

" } }, "MetricSetDescription": { @@ -1221,7 +1261,8 @@ "Alert$AlertSensitivityThreshold": "

The minimum severity for an anomaly to trigger the alert.

", "AlertSummary$AlertSensitivityThreshold": "

The minimum severity for an anomaly to trigger the alert.

", "CreateAlertRequest$AlertSensitivityThreshold": "

An integer from 0 to 100 specifying the alert sensitivity threshold.

", - "ListAnomalyGroupSummariesRequest$SensitivityThreshold": "

The minimum severity score for inclusion in the output.

" + "ListAnomalyGroupSummariesRequest$SensitivityThreshold": "

The minimum severity score for inclusion in the output.

", + "UpdateAlertRequest$AlertSensitivityThreshold": "

An integer from 0 to 100 specifying the alert sensitivity threshold.

" } }, "ServiceCode": { @@ -1238,7 +1279,7 @@ "SnsFormat": { "base": null, "refs": { - "SNSConfiguration$SnsFormat": "

The format of the SNS topic.

" + "SNSConfiguration$SnsFormat": "

The format of the SNS topic.

" } }, "StringAttributeValue": { @@ -1442,6 +1483,16 @@ "refs": { } }, + "UpdateAlertRequest": { + "base": null, + "refs": { + } + }, + "UpdateAlertResponse": { + "base": null, + "refs": { + } + }, "UpdateAnomalyDetectorRequest": { "base": null, "refs": { diff --git a/models/apis/mediaconvert/2017-08-29/api-2.json b/models/apis/mediaconvert/2017-08-29/api-2.json index 654205e211..f25655fff0 100644 --- a/models/apis/mediaconvert/2017-08-29/api-2.json +++ b/models/apis/mediaconvert/2017-08-29/api-2.json @@ -1455,6 +1455,15 @@ } } }, + "AudioDurationCorrection": { + "type": "string", + "enum": [ + "DISABLED", + "AUTO", + "TRACK", + "FRAME" + ] + }, "AudioLanguageCodeControl": { "type": "string", "enum": [ @@ -1524,6 +1533,10 @@ "AudioSelector": { "type": "structure", "members": { + "AudioDurationCorrection": { + "shape": "AudioDurationCorrection", + "locationName": "audioDurationCorrection" + }, "CustomLanguageCode": { "shape": "__stringMin3Max3PatternAZaZ3", "locationName": "customLanguageCode" diff --git a/models/apis/mediaconvert/2017-08-29/docs-2.json b/models/apis/mediaconvert/2017-08-29/docs-2.json index 97ec95d784..7865674fc5 100644 --- a/models/apis/mediaconvert/2017-08-29/docs-2.json +++ b/models/apis/mediaconvert/2017-08-29/docs-2.json @@ -244,6 +244,12 @@ "__listOfAudioDescription$member": null } }, + "AudioDurationCorrection": { + "base": "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.", + "refs": { + "AudioSelector$AudioDurationCorrection": "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." + } + }, "AudioLanguageCodeControl": { "base": "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.", "refs": { @@ -2171,9 +2177,9 @@ } }, "InputVideoGenerator": { - "base": "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.", + "base": "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", "refs": { - "Input$VideoGenerator": "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." + "Input$VideoGenerator": "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": { diff --git a/service/budgets/api.go b/service/budgets/api.go index 1aaa8c9bc8..c20b2567ac 100644 --- a/service/budgets/api.go +++ b/service/budgets/api.go @@ -88,6 +88,10 @@ func (c *Budgets) CreateBudgetRequest(input *CreateBudgetInput) (req *request.Re // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // +// * ThrottlingException +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +// func (c *Budgets) CreateBudget(input *CreateBudgetInput) (*CreateBudgetOutput, error) { req, out := c.CreateBudgetRequest(input) return out, req.Send() @@ -181,6 +185,10 @@ func (c *Budgets) CreateBudgetActionRequest(input *CreateBudgetActionInput) (req // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // +// * ThrottlingException +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +// func (c *Budgets) CreateBudgetAction(input *CreateBudgetActionInput) (*CreateBudgetActionOutput, error) { req, out := c.CreateBudgetActionRequest(input) return out, req.Send() @@ -276,6 +284,10 @@ func (c *Budgets) CreateNotificationRequest(input *CreateNotificationInput) (req // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // +// * ThrottlingException +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +// func (c *Budgets) CreateNotification(input *CreateNotificationInput) (*CreateNotificationOutput, error) { req, out := c.CreateNotificationRequest(input) return out, req.Send() @@ -371,6 +383,10 @@ func (c *Budgets) CreateSubscriberRequest(input *CreateSubscriberInput) (req *re // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // +// * ThrottlingException +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +// func (c *Budgets) CreateSubscriber(input *CreateSubscriberInput) (*CreateSubscriberOutput, error) { req, out := c.CreateSubscriberRequest(input) return out, req.Send() @@ -462,6 +478,10 @@ func (c *Budgets) DeleteBudgetRequest(input *DeleteBudgetInput) (req *request.Re // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // +// * ThrottlingException +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +// func (c *Budgets) DeleteBudget(input *DeleteBudgetInput) (*DeleteBudgetOutput, error) { req, out := c.DeleteBudgetRequest(input) return out, req.Send() @@ -553,6 +573,10 @@ func (c *Budgets) DeleteBudgetActionRequest(input *DeleteBudgetActionInput) (req // The request was received and recognized by the server, but the server rejected // that particular method for the requested resource. // +// * ThrottlingException +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +// func (c *Budgets) DeleteBudgetAction(input *DeleteBudgetActionInput) (*DeleteBudgetActionOutput, error) { req, out := c.DeleteBudgetActionRequest(input) return out, req.Send() @@ -644,6 +668,10 @@ func (c *Budgets) DeleteNotificationRequest(input *DeleteNotificationInput) (req // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // +// * ThrottlingException +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +// func (c *Budgets) DeleteNotification(input *DeleteNotificationInput) (*DeleteNotificationOutput, error) { req, out := c.DeleteNotificationRequest(input) return out, req.Send() @@ -734,6 +762,10 @@ func (c *Budgets) DeleteSubscriberRequest(input *DeleteSubscriberInput) (req *re // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // +// * ThrottlingException +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +// func (c *Budgets) DeleteSubscriber(input *DeleteSubscriberInput) (*DeleteSubscriberOutput, error) { req, out := c.DeleteSubscriberRequest(input) return out, req.Send() @@ -825,6 +857,10 @@ func (c *Budgets) DescribeBudgetRequest(input *DescribeBudgetInput) (req *reques // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // +// * ThrottlingException +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +// func (c *Budgets) DescribeBudget(input *DescribeBudgetInput) (*DescribeBudgetOutput, error) { req, out := c.DescribeBudgetRequest(input) return out, req.Send() @@ -912,6 +948,10 @@ func (c *Budgets) DescribeBudgetActionRequest(input *DescribeBudgetActionInput) // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // +// * ThrottlingException +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +// func (c *Budgets) DescribeBudgetAction(input *DescribeBudgetActionInput) (*DescribeBudgetActionOutput, error) { req, out := c.DescribeBudgetActionRequest(input) return out, req.Send() @@ -1008,6 +1048,10 @@ func (c *Budgets) DescribeBudgetActionHistoriesRequest(input *DescribeBudgetActi // * InvalidNextTokenException // The pagination token is invalid. // +// * ThrottlingException +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +// func (c *Budgets) DescribeBudgetActionHistories(input *DescribeBudgetActionHistoriesInput) (*DescribeBudgetActionHistoriesOutput, error) { req, out := c.DescribeBudgetActionHistoriesRequest(input) return out, req.Send() @@ -1153,6 +1197,10 @@ func (c *Budgets) DescribeBudgetActionsForAccountRequest(input *DescribeBudgetAc // * InvalidNextTokenException // The pagination token is invalid. // +// * ThrottlingException +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +// func (c *Budgets) DescribeBudgetActionsForAccount(input *DescribeBudgetActionsForAccountInput) (*DescribeBudgetActionsForAccountOutput, error) { req, out := c.DescribeBudgetActionsForAccountRequest(input) return out, req.Send() @@ -1301,6 +1349,10 @@ func (c *Budgets) DescribeBudgetActionsForBudgetRequest(input *DescribeBudgetAct // * InvalidNextTokenException // The pagination token is invalid. // +// * ThrottlingException +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +// func (c *Budgets) DescribeBudgetActionsForBudget(input *DescribeBudgetActionsForBudgetInput) (*DescribeBudgetActionsForBudgetOutput, error) { req, out := c.DescribeBudgetActionsForBudgetRequest(input) return out, req.Send() @@ -1452,6 +1504,10 @@ func (c *Budgets) DescribeBudgetNotificationsForAccountRequest(input *DescribeBu // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // +// * ThrottlingException +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +// func (c *Budgets) DescribeBudgetNotificationsForAccount(input *DescribeBudgetNotificationsForAccountInput) (*DescribeBudgetNotificationsForAccountOutput, error) { req, out := c.DescribeBudgetNotificationsForAccountRequest(input) return out, req.Send() @@ -1604,6 +1660,10 @@ func (c *Budgets) DescribeBudgetPerformanceHistoryRequest(input *DescribeBudgetP // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // +// * ThrottlingException +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +// func (c *Budgets) DescribeBudgetPerformanceHistory(input *DescribeBudgetPerformanceHistoryInput) (*DescribeBudgetPerformanceHistoryOutput, error) { req, out := c.DescribeBudgetPerformanceHistoryRequest(input) return out, req.Send() @@ -1759,6 +1819,10 @@ func (c *Budgets) DescribeBudgetsRequest(input *DescribeBudgetsInput) (req *requ // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // +// * ThrottlingException +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +// func (c *Budgets) DescribeBudgets(input *DescribeBudgetsInput) (*DescribeBudgetsOutput, error) { req, out := c.DescribeBudgetsRequest(input) return out, req.Send() @@ -1910,6 +1974,10 @@ func (c *Budgets) DescribeNotificationsForBudgetRequest(input *DescribeNotificat // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // +// * ThrottlingException +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +// func (c *Budgets) DescribeNotificationsForBudget(input *DescribeNotificationsForBudgetInput) (*DescribeNotificationsForBudgetOutput, error) { req, out := c.DescribeNotificationsForBudgetRequest(input) return out, req.Send() @@ -2061,6 +2129,10 @@ func (c *Budgets) DescribeSubscribersForNotificationRequest(input *DescribeSubsc // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // +// * ThrottlingException +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +// func (c *Budgets) DescribeSubscribersForNotification(input *DescribeSubscribersForNotificationInput) (*DescribeSubscribersForNotificationOutput, error) { req, out := c.DescribeSubscribersForNotificationRequest(input) return out, req.Send() @@ -2204,6 +2276,10 @@ func (c *Budgets) ExecuteBudgetActionRequest(input *ExecuteBudgetActionInput) (r // The request was received and recognized by the server, but the server rejected // that particular method for the requested resource. // +// * ThrottlingException +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +// func (c *Budgets) ExecuteBudgetAction(input *ExecuteBudgetActionInput) (*ExecuteBudgetActionOutput, error) { req, out := c.ExecuteBudgetActionRequest(input) return out, req.Send() @@ -2299,6 +2375,10 @@ func (c *Budgets) UpdateBudgetRequest(input *UpdateBudgetInput) (req *request.Re // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // +// * ThrottlingException +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +// func (c *Budgets) UpdateBudget(input *UpdateBudgetInput) (*UpdateBudgetOutput, error) { req, out := c.UpdateBudgetRequest(input) return out, req.Send() @@ -2390,6 +2470,10 @@ func (c *Budgets) UpdateBudgetActionRequest(input *UpdateBudgetActionInput) (req // The request was received and recognized by the server, but the server rejected // that particular method for the requested resource. // +// * ThrottlingException +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +// func (c *Budgets) UpdateBudgetAction(input *UpdateBudgetActionInput) (*UpdateBudgetActionOutput, error) { req, out := c.UpdateBudgetActionRequest(input) return out, req.Send() @@ -2481,6 +2565,10 @@ func (c *Budgets) UpdateNotificationRequest(input *UpdateNotificationInput) (req // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // +// * ThrottlingException +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +// func (c *Budgets) UpdateNotification(input *UpdateNotificationInput) (*UpdateNotificationOutput, error) { req, out := c.UpdateNotificationRequest(input) return out, req.Send() @@ -2572,6 +2660,10 @@ func (c *Budgets) UpdateSubscriberRequest(input *UpdateSubscriberInput) (req *re // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // +// * ThrottlingException +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +// func (c *Budgets) UpdateSubscriber(input *UpdateSubscriberInput) (*UpdateSubscriberOutput, error) { req, out := c.UpdateSubscriberRequest(input) return out, req.Send() @@ -7522,6 +7614,72 @@ func (s *Subscriber) SetSubscriptionType(v string) *Subscriber { return s } +// The number of API requests has exceeded the maximum allowed API request throttling +// limit for the account. +type ThrottlingException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // The error message the exception carries. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s *ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ThrottlingException) OrigErr() error { + return nil +} + +func (s *ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ThrottlingException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ThrottlingException) RequestID() string { + return s.RespMetadata.RequestID +} + // The period of time that's covered by a budget. The period has a start date // and an end date. The start date must come before the end date. There are // no restrictions on the end date. diff --git a/service/budgets/doc.go b/service/budgets/doc.go index d35b568541..87ca349dd7 100644 --- a/service/budgets/doc.go +++ b/service/budgets/doc.go @@ -3,10 +3,10 @@ // Package budgets provides the client and types for making API // requests to AWS Budgets. // -// The Amazon Web Services Budgets API enables you to use Amazon Web Services -// Budgets to plan your service usage, service costs, and instance reservations. -// The API reference provides descriptions, syntax, and usage examples for each -// of the actions and data types for Amazon Web Services Budgets. +// Use the Amazon Web Services Budgets API to plan your service usage, service +// costs, and instance reservations. This API reference provides descriptions, +// syntax, and usage examples for each of the actions and data types for the +// Amazon Web Services Budgets feature. // // Budgets provide you with a way to see the following information: // diff --git a/service/budgets/errors.go b/service/budgets/errors.go index 93062b49cd..f277ca7657 100644 --- a/service/budgets/errors.go +++ b/service/budgets/errors.go @@ -64,6 +64,13 @@ const ( // The request was received and recognized by the server, but the server rejected // that particular method for the requested resource. ErrCodeResourceLockedException = "ResourceLockedException" + + // ErrCodeThrottlingException for service response error code + // "ThrottlingException". + // + // The number of API requests has exceeded the maximum allowed API request throttling + // limit for the account. + ErrCodeThrottlingException = "ThrottlingException" ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ @@ -76,4 +83,5 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "InvalidParameterException": newErrorInvalidParameterException, "NotFoundException": newErrorNotFoundException, "ResourceLockedException": newErrorResourceLockedException, + "ThrottlingException": newErrorThrottlingException, } diff --git a/service/lookoutmetrics/api.go b/service/lookoutmetrics/api.go index 7dde33662a..9d82b109ef 100644 --- a/service/lookoutmetrics/api.go +++ b/service/lookoutmetrics/api.go @@ -2992,6 +2992,101 @@ func (c *LookoutMetrics) UntagResourceWithContext(ctx aws.Context, input *UntagR return out, req.Send() } +const opUpdateAlert = "UpdateAlert" + +// UpdateAlertRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAlert operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateAlert for more information on using the UpdateAlert +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateAlertRequest method. +// req, resp := client.UpdateAlertRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/UpdateAlert +func (c *LookoutMetrics) UpdateAlertRequest(input *UpdateAlertInput) (req *request.Request, output *UpdateAlertOutput) { + op := &request.Operation{ + Name: opUpdateAlert, + HTTPMethod: "POST", + HTTPPath: "/UpdateAlert", + } + + if input == nil { + input = &UpdateAlertInput{} + } + + output = &UpdateAlertOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateAlert API operation for Amazon Lookout for Metrics. +// +// Make changes to an existing alert. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lookout for Metrics's +// API operation UpdateAlert for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input fails to satisfy the constraints specified by the AWS service. +// Check your input values and try again. +// +// * ResourceNotFoundException +// The specified resource cannot be found. Check the ARN of the resource and +// try again. +// +// * InternalServerException +// The request processing has failed because of an unknown error, exception, +// or failure. +// +// * AccessDeniedException +// You do not have sufficient permissions to perform this action. +// +// * TooManyRequestsException +// The request was denied due to too many requests being submitted at the same +// time. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/UpdateAlert +func (c *LookoutMetrics) UpdateAlert(input *UpdateAlertInput) (*UpdateAlertOutput, error) { + req, out := c.UpdateAlertRequest(input) + return out, req.Send() +} + +// UpdateAlertWithContext is the same as UpdateAlert with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateAlert for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LookoutMetrics) UpdateAlertWithContext(ctx aws.Context, input *UpdateAlertInput, opts ...request.Option) (*UpdateAlertOutput, error) { + req, out := c.UpdateAlertRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateAnomalyDetector = "UpdateAnomalyDetector" // UpdateAnomalyDetectorRequest generates a "aws/request.Request" representing the @@ -3393,6 +3488,9 @@ type Alert struct { // A description of the alert. AlertDescription *string `type:"string"` + // The configuration of the alert filters, containing MetricList and DimensionFilter. + AlertFilters *AlertFilters `type:"structure"` + // The name of the alert. AlertName *string `min:"1" type:"string"` @@ -3451,6 +3549,12 @@ func (s *Alert) SetAlertDescription(v string) *Alert { return s } +// SetAlertFilters sets the AlertFilters field's value. +func (s *Alert) SetAlertFilters(v *AlertFilters) *Alert { + s.AlertFilters = v + return s +} + // SetAlertName sets the AlertName field's value. func (s *Alert) SetAlertName(v string) *Alert { s.AlertName = &v @@ -3493,6 +3597,73 @@ func (s *Alert) SetLastModificationTime(v time.Time) *Alert { return s } +// The configuration of the alert filters. +type AlertFilters struct { + _ struct{} `type:"structure"` + + // The list of DimensionFilter objects that are used for dimension-based filtering. + DimensionFilterList []*DimensionFilter `min:"1" type:"list"` + + // The list of measures that you want to get alerts for. + MetricList []*string `min:"1" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AlertFilters) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AlertFilters) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AlertFilters) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AlertFilters"} + if s.DimensionFilterList != nil && len(s.DimensionFilterList) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DimensionFilterList", 1)) + } + if s.MetricList != nil && len(s.MetricList) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MetricList", 1)) + } + if s.DimensionFilterList != nil { + for i, v := range s.DimensionFilterList { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DimensionFilterList", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDimensionFilterList sets the DimensionFilterList field's value. +func (s *AlertFilters) SetDimensionFilterList(v []*DimensionFilter) *AlertFilters { + s.DimensionFilterList = v + return s +} + +// SetMetricList sets the MetricList field's value. +func (s *AlertFilters) SetMetricList(v []*string) *AlertFilters { + s.MetricList = v + return s +} + // Provides a summary of an alert's configuration. type AlertSummary struct { _ struct{} `type:"structure"` @@ -4695,15 +4866,16 @@ type CreateAlertInput struct { // A description of the alert. AlertDescription *string `type:"string"` + // The configuration of the alert filters, containing MetricList and DimensionFilterList. + AlertFilters *AlertFilters `type:"structure"` + // The name of the alert. // // AlertName is a required field AlertName *string `min:"1" type:"string" required:"true"` // An integer from 0 to 100 specifying the alert sensitivity threshold. - // - // AlertSensitivityThreshold is a required field - AlertSensitivityThreshold *int64 `type:"integer" required:"true"` + AlertSensitivityThreshold *int64 `type:"integer"` // The ARN of the detector to which the alert is attached. // @@ -4745,9 +4917,6 @@ func (s *CreateAlertInput) Validate() error { if s.AlertName != nil && len(*s.AlertName) < 1 { invalidParams.Add(request.NewErrParamMinLen("AlertName", 1)) } - if s.AlertSensitivityThreshold == nil { - invalidParams.Add(request.NewErrParamRequired("AlertSensitivityThreshold")) - } if s.AnomalyDetectorArn == nil { invalidParams.Add(request.NewErrParamRequired("AnomalyDetectorArn")) } @@ -4759,6 +4928,11 @@ func (s *CreateAlertInput) Validate() error { invalidParams.AddNested("Action", err.(request.ErrInvalidParams)) } } + if s.AlertFilters != nil { + if err := s.AlertFilters.Validate(); err != nil { + invalidParams.AddNested("AlertFilters", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -4778,6 +4952,12 @@ func (s *CreateAlertInput) SetAlertDescription(v string) *CreateAlertInput { return s } +// SetAlertFilters sets the AlertFilters field's value. +func (s *CreateAlertInput) SetAlertFilters(v *AlertFilters) *CreateAlertInput { + s.AlertFilters = v + return s +} + // SetAlertName sets the AlertName field's value. func (s *CreateAlertInput) SetAlertName(v string) *CreateAlertInput { s.AlertName = &v @@ -6466,6 +6646,64 @@ func (s *DimensionContribution) SetDimensionValueContributionList(v []*Dimension return s } +// The dimension filter, containing DimensionName and DimensionValueList. +type DimensionFilter struct { + _ struct{} `type:"structure"` + + // The name of the dimension to filter on. + DimensionName *string `min:"1" type:"string"` + + // The list of values for the dimension specified in DimensionName that you + // want to filter on. + DimensionValueList []*string `min:"1" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DimensionFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DimensionFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DimensionFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DimensionFilter"} + if s.DimensionName != nil && len(*s.DimensionName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DimensionName", 1)) + } + if s.DimensionValueList != nil && len(s.DimensionValueList) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DimensionValueList", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDimensionName sets the DimensionName field's value. +func (s *DimensionFilter) SetDimensionName(v string) *DimensionFilter { + s.DimensionName = &v + return s +} + +// SetDimensionValueList sets the DimensionValueList field's value. +func (s *DimensionFilter) SetDimensionValueList(v []*string) *DimensionFilter { + s.DimensionValueList = v + return s +} + // A dimension name and value. type DimensionNameValue struct { _ struct{} `type:"structure"` @@ -8875,6 +9113,16 @@ type SNSConfiguration struct { RoleArn *string `type:"string" required:"true"` // The format of the SNS topic. + // + // * JSON – Send JSON alerts with an anomaly ID and a link to the anomaly + // detail page. This is the default. + // + // * LONG_TEXT – Send human-readable alerts with information about the + // impacted timeseries and a link to the anomaly detail page. We recommend + // this for email. + // + // * SHORT_TEXT – Send human-readable alerts with a link to the anomaly + // detail page. We recommend this for SMS. SnsFormat *string `type:"string" enum:"SnsFormat"` // The ARN of the target SNS topic. @@ -9492,6 +9740,129 @@ func (s UntagResourceOutput) GoString() string { return s.String() } +type UpdateAlertInput struct { + _ struct{} `type:"structure"` + + // Action that will be triggered when there is an alert. + Action *Action `type:"structure"` + + // The ARN of the alert to update. + // + // AlertArn is a required field + AlertArn *string `type:"string" required:"true"` + + // A description of the alert. + AlertDescription *string `type:"string"` + + // The configuration of the alert filters, containing MetricList and DimensionFilterList. + AlertFilters *AlertFilters `type:"structure"` + + // An integer from 0 to 100 specifying the alert sensitivity threshold. + AlertSensitivityThreshold *int64 `type:"integer"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateAlertInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateAlertInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateAlertInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateAlertInput"} + if s.AlertArn == nil { + invalidParams.Add(request.NewErrParamRequired("AlertArn")) + } + if s.Action != nil { + if err := s.Action.Validate(); err != nil { + invalidParams.AddNested("Action", err.(request.ErrInvalidParams)) + } + } + if s.AlertFilters != nil { + if err := s.AlertFilters.Validate(); err != nil { + invalidParams.AddNested("AlertFilters", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAction sets the Action field's value. +func (s *UpdateAlertInput) SetAction(v *Action) *UpdateAlertInput { + s.Action = v + return s +} + +// SetAlertArn sets the AlertArn field's value. +func (s *UpdateAlertInput) SetAlertArn(v string) *UpdateAlertInput { + s.AlertArn = &v + return s +} + +// SetAlertDescription sets the AlertDescription field's value. +func (s *UpdateAlertInput) SetAlertDescription(v string) *UpdateAlertInput { + s.AlertDescription = &v + return s +} + +// SetAlertFilters sets the AlertFilters field's value. +func (s *UpdateAlertInput) SetAlertFilters(v *AlertFilters) *UpdateAlertInput { + s.AlertFilters = v + return s +} + +// SetAlertSensitivityThreshold sets the AlertSensitivityThreshold field's value. +func (s *UpdateAlertInput) SetAlertSensitivityThreshold(v int64) *UpdateAlertInput { + s.AlertSensitivityThreshold = &v + return s +} + +type UpdateAlertOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the updated alert. + AlertArn *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateAlertOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateAlertOutput) GoString() string { + return s.String() +} + +// SetAlertArn sets the AlertArn field's value. +func (s *UpdateAlertOutput) SetAlertArn(v string) *UpdateAlertOutput { + s.AlertArn = &v + return s +} + type UpdateAnomalyDetectorInput struct { _ struct{} `type:"structure"` diff --git a/service/lookoutmetrics/lookoutmetricsiface/interface.go b/service/lookoutmetrics/lookoutmetricsiface/interface.go index c0185f449e..a41be5ce73 100644 --- a/service/lookoutmetrics/lookoutmetricsiface/interface.go +++ b/service/lookoutmetrics/lookoutmetricsiface/interface.go @@ -188,6 +188,10 @@ type LookoutMetricsAPI interface { UntagResourceWithContext(aws.Context, *lookoutmetrics.UntagResourceInput, ...request.Option) (*lookoutmetrics.UntagResourceOutput, error) UntagResourceRequest(*lookoutmetrics.UntagResourceInput) (*request.Request, *lookoutmetrics.UntagResourceOutput) + UpdateAlert(*lookoutmetrics.UpdateAlertInput) (*lookoutmetrics.UpdateAlertOutput, error) + UpdateAlertWithContext(aws.Context, *lookoutmetrics.UpdateAlertInput, ...request.Option) (*lookoutmetrics.UpdateAlertOutput, error) + UpdateAlertRequest(*lookoutmetrics.UpdateAlertInput) (*request.Request, *lookoutmetrics.UpdateAlertOutput) + UpdateAnomalyDetector(*lookoutmetrics.UpdateAnomalyDetectorInput) (*lookoutmetrics.UpdateAnomalyDetectorOutput, error) UpdateAnomalyDetectorWithContext(aws.Context, *lookoutmetrics.UpdateAnomalyDetectorInput, ...request.Option) (*lookoutmetrics.UpdateAnomalyDetectorOutput, error) UpdateAnomalyDetectorRequest(*lookoutmetrics.UpdateAnomalyDetectorInput) (*request.Request, *lookoutmetrics.UpdateAnomalyDetectorOutput) diff --git a/service/mediaconvert/api.go b/service/mediaconvert/api.go index 59e6a23d65..cd0d0a1259 100644 --- a/service/mediaconvert/api.go +++ b/service/mediaconvert/api.go @@ -3993,6 +3993,22 @@ func (s *AudioNormalizationSettings) SetTargetLkfs(v float64) *AudioNormalizatio type AudioSelector struct { _ struct{} `type:"structure"` + // 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. + AudioDurationCorrection *string `locationName:"audioDurationCorrection" type:"string" enum:"AudioDurationCorrection"` + // Selects a specific language code from within an audio source, using the ISO // 639-2 or ISO 639-3 three-letter language code CustomLanguageCode *string `locationName:"customLanguageCode" min:"3" type:"string"` @@ -4093,6 +4109,12 @@ func (s *AudioSelector) Validate() error { return nil } +// SetAudioDurationCorrection sets the AudioDurationCorrection field's value. +func (s *AudioSelector) SetAudioDurationCorrection(v string) *AudioSelector { + s.AudioDurationCorrection = &v + return s +} + // SetCustomLanguageCode sets the CustomLanguageCode field's value. func (s *AudioSelector) SetCustomLanguageCode(v string) *AudioSelector { s.CustomLanguageCode = &v @@ -14746,11 +14768,11 @@ type Input struct { // For more information about timecodes, see https://docs.aws.amazon.com/console/mediaconvert/timecode. TimecodeStart *string `locationName:"timecodeStart" min:"11" type:"string"` - // 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. + // 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 VideoGenerator *InputVideoGenerator `locationName:"videoGenerator" type:"structure"` // Input video selectors contain the video settings for the input. Each of your @@ -15443,11 +15465,11 @@ func (s *InputTemplate) SetVideoSelector(v *VideoSelector) *InputTemplate { return s } -// 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. +// 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 type InputVideoGenerator struct { _ struct{} `type:"structure"` @@ -27134,6 +27156,44 @@ func AudioDefaultSelection_Values() []string { } } +// 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. +const ( + // AudioDurationCorrectionDisabled is a AudioDurationCorrection enum value + AudioDurationCorrectionDisabled = "DISABLED" + + // AudioDurationCorrectionAuto is a AudioDurationCorrection enum value + AudioDurationCorrectionAuto = "AUTO" + + // AudioDurationCorrectionTrack is a AudioDurationCorrection enum value + AudioDurationCorrectionTrack = "TRACK" + + // AudioDurationCorrectionFrame is a AudioDurationCorrection enum value + AudioDurationCorrectionFrame = "FRAME" +) + +// AudioDurationCorrection_Values returns all elements of the AudioDurationCorrection enum +func AudioDurationCorrection_Values() []string { + return []string{ + AudioDurationCorrectionDisabled, + AudioDurationCorrectionAuto, + AudioDurationCorrectionTrack, + AudioDurationCorrectionFrame, + } +} + // 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