Skip to content

Commit

Permalink
feat(client-mediatailor): Adds categories to MediaTailor channel asse…
Browse files Browse the repository at this point in the history
…mbly alerts
  • Loading branch information
awstools committed Jul 13, 2023
1 parent 824435a commit 107bce6
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
22 changes: 21 additions & 1 deletion clients/client-mediatailor/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface KeyValuePair {
Key: string | undefined;

/**
* <p>For <code>SCTE35_ENHANCED</code> output, defines a vaue. MediaTailor; takes this value, and its associated key, and generates the key/value pair within the <code>EXT-X-ASSET</code>tag. If you specify a value, you must also specify a corresponding key.</p>
* <p>For <code>SCTE35_ENHANCED</code> output, defines a value. MediaTailor; takes this value, and its associated key, and generates the key/value pair within the <code>EXT-X-ASSET</code>tag. If you specify a value, you must also specify a corresponding key.</p>
*/
Value: string | undefined;
}
Expand Down Expand Up @@ -175,6 +175,21 @@ export interface AdBreak {
AdBreakMetadata?: KeyValuePair[];
}

/**
* @public
* @enum
*/
export const AlertCategory = {
INFO: "INFO",
PLAYBACK_WARNING: "PLAYBACK_WARNING",
SCHEDULING_ERROR: "SCHEDULING_ERROR",
} as const;

/**
* @public
*/
export type AlertCategory = (typeof AlertCategory)[keyof typeof AlertCategory];

/**
* @public
* <p>Alert configuration parameters.</p>
Expand Down Expand Up @@ -204,6 +219,11 @@ export interface Alert {
* <p>The Amazon Resource Name (ARN) of the resource.</p>
*/
ResourceArn: string | undefined;

/**
* <p>The category that MediaTailor assigns to the alert.</p>
*/
Category?: AlertCategory | string;
}

/**
Expand Down
1 change: 1 addition & 0 deletions clients/client-mediatailor/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
31 changes: 30 additions & 1 deletion codegen/sdk-codegen/aws-models/mediatailor.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,41 @@
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the resource.</p>",
"smithy.api#required": {}
}
},
"Category": {
"target": "com.amazonaws.mediatailor#AlertCategory",
"traits": {
"smithy.api#documentation": "<p>The category that MediaTailor assigns to the alert.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Alert configuration parameters.</p>"
}
},
"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": {
Expand Down Expand Up @@ -2683,7 +2712,7 @@
"Value": {
"target": "smithy.api#String",
"traits": {
"smithy.api#documentation": "<p>For <code>SCTE35_ENHANCED</code> output, defines a vaue. MediaTailor; takes this value, and its associated key, and generates the key/value pair within the <code>EXT-X-ASSET</code>tag. If you specify a value, you must also specify a corresponding key.</p>",
"smithy.api#documentation": "<p>For <code>SCTE35_ENHANCED</code> output, defines a value. MediaTailor; takes this value, and its associated key, and generates the key/value pair within the <code>EXT-X-ASSET</code>tag. If you specify a value, you must also specify a corresponding key.</p>",
"smithy.api#required": {}
}
}
Expand Down

0 comments on commit 107bce6

Please sign in to comment.