diff --git a/clients/client-mediatailor/src/commands/ListAlertsCommand.ts b/clients/client-mediatailor/src/commands/ListAlertsCommand.ts index 5194af5281a3..51694e32fe8a 100644 --- a/clients/client-mediatailor/src/commands/ListAlertsCommand.ts +++ b/clients/client-mediatailor/src/commands/ListAlertsCommand.ts @@ -60,6 +60,7 @@ export interface ListAlertsCommandOutput extends ListAlertsResponse, __MetadataB * // "STRING_VALUE", * // ], * // ResourceArn: "STRING_VALUE", // required + * // Category: "SCHEDULING_ERROR" || "PLAYBACK_WARNING" || "INFO", * // }, * // ], * // NextToken: "STRING_VALUE", diff --git a/clients/client-mediatailor/src/models/models_0.ts b/clients/client-mediatailor/src/models/models_0.ts index 494fb82443a6..63fd2863e412 100644 --- a/clients/client-mediatailor/src/models/models_0.ts +++ b/clients/client-mediatailor/src/models/models_0.ts @@ -14,7 +14,7 @@ export interface KeyValuePair { Key: string | undefined; /** - *
For SCTE35_ENHANCED
output, defines a vaue. MediaTailor; takes this value, and its associated key, and generates the key/value pair within the EXT-X-ASSET
tag. If you specify a value, you must also specify a corresponding key.
For SCTE35_ENHANCED
output, defines a value. MediaTailor; takes this value, and its associated key, and generates the key/value pair within the EXT-X-ASSET
tag. If you specify a value, you must also specify a corresponding key.
Alert configuration parameters.
@@ -204,6 +219,11 @@ export interface Alert { *The Amazon Resource Name (ARN) of the resource.
*/ ResourceArn: string | undefined; + + /** + *The category that MediaTailor assigns to the alert.
+ */ + Category?: AlertCategory | string; } /** diff --git a/clients/client-mediatailor/src/protocols/Aws_restJson1.ts b/clients/client-mediatailor/src/protocols/Aws_restJson1.ts index 832875e8e375..f08f556e15e4 100644 --- a/clients/client-mediatailor/src/protocols/Aws_restJson1.ts +++ b/clients/client-mediatailor/src/protocols/Aws_restJson1.ts @@ -3814,6 +3814,7 @@ const de_Alert = (output: any, context: __SerdeContext): Alert => { return take(output, { AlertCode: __expectString, AlertMessage: __expectString, + Category: __expectString, LastModifiedTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), RelatedResourceArns: _json, ResourceArn: __expectString, diff --git a/codegen/sdk-codegen/aws-models/mediatailor.json b/codegen/sdk-codegen/aws-models/mediatailor.json index 8248581ec502..efaf5a505c80 100644 --- a/codegen/sdk-codegen/aws-models/mediatailor.json +++ b/codegen/sdk-codegen/aws-models/mediatailor.json @@ -158,12 +158,41 @@ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the resource.
", "smithy.api#required": {} } + }, + "Category": { + "target": "com.amazonaws.mediatailor#AlertCategory", + "traits": { + "smithy.api#documentation": "The category that MediaTailor assigns to the alert.
" + } } }, "traits": { "smithy.api#documentation": "Alert configuration parameters.
" } }, + "com.amazonaws.mediatailor#AlertCategory": { + "type": "enum", + "members": { + "SCHEDULING_ERROR": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SCHEDULING_ERROR" + } + }, + "PLAYBACK_WARNING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PLAYBACK_WARNING" + } + }, + "INFO": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INFO" + } + } + } + }, "com.amazonaws.mediatailor#AvailMatchingCriteria": { "type": "structure", "members": { @@ -2683,7 +2712,7 @@ "Value": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "For SCTE35_ENHANCED
output, defines a vaue. MediaTailor; takes this value, and its associated key, and generates the key/value pair within the EXT-X-ASSET
tag. If you specify a value, you must also specify a corresponding key.
For SCTE35_ENHANCED
output, defines a value. MediaTailor; takes this value, and its associated key, and generates the key/value pair within the EXT-X-ASSET
tag. If you specify a value, you must also specify a corresponding key.