Skip to content

Commit

Permalink
feat(client-medialive): Adds support for creating CloudWatchAlarmTemp…
Browse files Browse the repository at this point in the history
…lates for AWS Elemental MediaTailor Playback Configuration resources.
  • Loading branch information
awstools committed Feb 18, 2025
1 parent 357c5bf commit 91498e9
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export interface CreateCloudWatchAlarmTemplateCommandOutput
* Tags: { // TagMap
* "<keys>": "STRING_VALUE",
* },
* TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET", // required
* TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET" || "MEDIATAILOR_PLAYBACK_CONFIGURATION", // required
* Threshold: Number("double"), // required
* TreatMissingData: "notBreaching" || "breaching" || "ignore" || "missing", // required
* RequestId: "STRING_VALUE",
Expand All @@ -77,7 +77,7 @@ export interface CreateCloudWatchAlarmTemplateCommandOutput
* // Tags: { // TagMap
* // "<keys>": "STRING_VALUE",
* // },
* // TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET",
* // TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET" || "MEDIATAILOR_PLAYBACK_CONFIGURATION",
* // Threshold: Number("double"),
* // TreatMissingData: "notBreaching" || "breaching" || "ignore" || "missing",
* // };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export interface GetCloudWatchAlarmTemplateCommandOutput extends GetCloudWatchAl
* // Tags: { // TagMap
* // "<keys>": "STRING_VALUE",
* // },
* // TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET",
* // TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET" || "MEDIATAILOR_PLAYBACK_CONFIGURATION",
* // Threshold: Number("double"),
* // TreatMissingData: "notBreaching" || "breaching" || "ignore" || "missing",
* // };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export interface ListCloudWatchAlarmTemplatesCommandOutput
* // Tags: { // TagMap
* // "<keys>": "STRING_VALUE",
* // },
* // TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET", // required
* // TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET" || "MEDIATAILOR_PLAYBACK_CONFIGURATION", // required
* // Threshold: Number("double"), // required
* // TreatMissingData: "notBreaching" || "breaching" || "ignore" || "missing", // required
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export interface StartMonitorDeploymentCommandOutput extends StartMonitorDeploym
* const input = { // StartMonitorDeploymentRequest
* DryRun: true || false,
* Identifier: "STRING_VALUE", // required
* RequestId: "STRING_VALUE",
* };
* const command = new StartMonitorDeploymentCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface UpdateCloudWatchAlarmTemplateCommandOutput
* Name: "STRING_VALUE",
* Period: Number("int"),
* Statistic: "SampleCount" || "Average" || "Sum" || "Minimum" || "Maximum",
* TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET",
* TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET" || "MEDIATAILOR_PLAYBACK_CONFIGURATION",
* Threshold: Number("double"),
* TreatMissingData: "notBreaching" || "breaching" || "ignore" || "missing",
* };
Expand All @@ -74,7 +74,7 @@ export interface UpdateCloudWatchAlarmTemplateCommandOutput
* // Tags: { // TagMap
* // "<keys>": "STRING_VALUE",
* // },
* // TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET",
* // TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET" || "MEDIATAILOR_PLAYBACK_CONFIGURATION",
* // Threshold: Number("double"),
* // TreatMissingData: "notBreaching" || "breaching" || "ignore" || "missing",
* // };
Expand Down
3 changes: 2 additions & 1 deletion clients/client-medialive/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3858,6 +3858,7 @@ export const CloudWatchAlarmTemplateTargetResourceType = {
MEDIALIVE_MULTIPLEX: "MEDIALIVE_MULTIPLEX",
MEDIAPACKAGE_CHANNEL: "MEDIAPACKAGE_CHANNEL",
MEDIAPACKAGE_ORIGIN_ENDPOINT: "MEDIAPACKAGE_ORIGIN_ENDPOINT",
MEDIATAILOR_PLAYBACK_CONFIGURATION: "MEDIATAILOR_PLAYBACK_CONFIGURATION",
S3_BUCKET: "S3_BUCKET",
} as const;

Expand Down Expand Up @@ -4087,7 +4088,7 @@ export interface DescribeChannelPlacementGroupSummary {
Name?: string | undefined;

/**
* An array with one item, which is the signle Node that is associated with the ChannelPlacementGroup.
* An array with one item, which is the single Node that is associated with the ChannelPlacementGroup.
* @public
*/
Nodes?: string[] | undefined;
Expand Down
14 changes: 4 additions & 10 deletions clients/client-medialive/src/models/models_2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ export interface CreateChannelPlacementGroupResponse {
Name?: string | undefined;

/**
* An array with one item, which is the signle Node that is associated with the ChannelPlacementGroup.
* An array with one item, which is the single Node that is associated with the ChannelPlacementGroup.
* @public
*/
Nodes?: string[] | undefined;
Expand Down Expand Up @@ -2870,7 +2870,7 @@ export interface DeleteChannelPlacementGroupResponse {
Name?: string | undefined;

/**
* An array with one item, which is the signle Node that is associated with the ChannelPlacementGroup.
* An array with one item, which is the single Node that is associated with the ChannelPlacementGroup.
* @public
*/
Nodes?: string[] | undefined;
Expand Down Expand Up @@ -3700,7 +3700,7 @@ export interface DescribeChannelPlacementGroupResponse {
Name?: string | undefined;

/**
* An array with one item, which is the signle Node that is associated with the ChannelPlacementGroup.
* An array with one item, which is the single Node that is associated with the ChannelPlacementGroup.
* @public
*/
Nodes?: string[] | undefined;
Expand Down Expand Up @@ -6713,12 +6713,6 @@ export interface StartMonitorDeploymentRequest {
* @public
*/
Identifier: string | undefined;

/**
* An ID that you assign to a create request. This ID ensures idempotency when creating resources.
* @public
*/
RequestId?: string | undefined;
}

/**
Expand Down Expand Up @@ -7563,7 +7557,7 @@ export interface UpdateChannelPlacementGroupResponse {
Name?: string | undefined;

/**
* An array with one item, which is the signle Node that is associated with the ChannelPlacementGroup.
* An array with one item, which is the single Node that is associated with the ChannelPlacementGroup.
* @public
*/
Nodes?: string[] | undefined;
Expand Down
1 change: 0 additions & 1 deletion clients/client-medialive/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2460,7 +2460,6 @@ export const se_StartMonitorDeploymentCommand = async (
body = JSON.stringify(
take(input, {
dryRun: [, , `DryRun`],
requestId: [true, (_) => _ ?? generateIdempotencyToken(), `RequestId`],
})
);
b.m("POST").h(headers).b(body);
Expand Down
24 changes: 11 additions & 13 deletions codegen/sdk-codegen/aws-models/medialive.json
Original file line number Diff line number Diff line change
Expand Up @@ -4328,6 +4328,12 @@
"traits": {
"smithy.api#enumValue": "S3_BUCKET"
}
},
"MEDIATAILOR_PLAYBACK_CONFIGURATION": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "MEDIATAILOR_PLAYBACK_CONFIGURATION"
}
}
},
"traits": {
Expand Down Expand Up @@ -4970,7 +4976,7 @@
"Nodes": {
"target": "com.amazonaws.medialive#__listOf__string",
"traits": {
"smithy.api#documentation": "An array with one item, which is the signle Node that is associated with the ChannelPlacementGroup.",
"smithy.api#documentation": "An array with one item, which is the single Node that is associated with the ChannelPlacementGroup.",
"smithy.api#jsonName": "nodes"
}
},
Expand Down Expand Up @@ -7531,7 +7537,7 @@
"Nodes": {
"target": "com.amazonaws.medialive#__listOf__string",
"traits": {
"smithy.api#documentation": "An array with one item, which is the signle Node that is associated with the ChannelPlacementGroup.",
"smithy.api#documentation": "An array with one item, which is the single Node that is associated with the ChannelPlacementGroup.",
"smithy.api#jsonName": "nodes"
}
},
Expand Down Expand Up @@ -9543,7 +9549,7 @@
"Nodes": {
"target": "com.amazonaws.medialive#__listOf__string",
"traits": {
"smithy.api#documentation": "An array with one item, which is the signle Node that is associated with the ChannelPlacementGroup.",
"smithy.api#documentation": "An array with one item, which is the single Node that is associated with the ChannelPlacementGroup.",
"smithy.api#jsonName": "nodes"
}
},
Expand Down Expand Up @@ -9601,7 +9607,7 @@
"Nodes": {
"target": "com.amazonaws.medialive#__listOf__string",
"traits": {
"smithy.api#documentation": "An array with one item, which is the signle Node that is associated with the ChannelPlacementGroup.",
"smithy.api#documentation": "An array with one item, which is the single Node that is associated with the ChannelPlacementGroup.",
"smithy.api#jsonName": "nodes"
}
},
Expand Down Expand Up @@ -31793,14 +31799,6 @@
"smithy.api#httpLabel": {},
"smithy.api#required": {}
}
},
"RequestId": {
"target": "com.amazonaws.medialive#__stringMin1Max256PatternS",
"traits": {
"smithy.api#documentation": "An ID that you assign to a create request. This ID ensures idempotency when creating resources.",
"smithy.api#idempotencyToken": {},
"smithy.api#jsonName": "requestId"
}
}
},
"traits": {
Expand Down Expand Up @@ -34169,7 +34167,7 @@
"Nodes": {
"target": "com.amazonaws.medialive#__listOf__string",
"traits": {
"smithy.api#documentation": "An array with one item, which is the signle Node that is associated with the ChannelPlacementGroup.",
"smithy.api#documentation": "An array with one item, which is the single Node that is associated with the ChannelPlacementGroup.",
"smithy.api#jsonName": "nodes"
}
},
Expand Down

0 comments on commit 91498e9

Please sign in to comment.