Skip to content

Commit 91498e9

Browse files
author
awstools
committed
feat(client-medialive): Adds support for creating CloudWatchAlarmTemplates for AWS Elemental MediaTailor Playback Configuration resources.
1 parent 357c5bf commit 91498e9

9 files changed

+23
-32
lines changed

clients/client-medialive/src/commands/CreateCloudWatchAlarmTemplateCommand.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export interface CreateCloudWatchAlarmTemplateCommandOutput
5353
* Tags: { // TagMap
5454
* "<keys>": "STRING_VALUE",
5555
* },
56-
* TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET", // required
56+
* TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET" || "MEDIATAILOR_PLAYBACK_CONFIGURATION", // required
5757
* Threshold: Number("double"), // required
5858
* TreatMissingData: "notBreaching" || "breaching" || "ignore" || "missing", // required
5959
* RequestId: "STRING_VALUE",
@@ -77,7 +77,7 @@ export interface CreateCloudWatchAlarmTemplateCommandOutput
7777
* // Tags: { // TagMap
7878
* // "<keys>": "STRING_VALUE",
7979
* // },
80-
* // TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET",
80+
* // TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET" || "MEDIATAILOR_PLAYBACK_CONFIGURATION",
8181
* // Threshold: Number("double"),
8282
* // TreatMissingData: "notBreaching" || "breaching" || "ignore" || "missing",
8383
* // };

clients/client-medialive/src/commands/GetCloudWatchAlarmTemplateCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export interface GetCloudWatchAlarmTemplateCommandOutput extends GetCloudWatchAl
5757
* // Tags: { // TagMap
5858
* // "<keys>": "STRING_VALUE",
5959
* // },
60-
* // TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET",
60+
* // TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET" || "MEDIATAILOR_PLAYBACK_CONFIGURATION",
6161
* // Threshold: Number("double"),
6262
* // TreatMissingData: "notBreaching" || "breaching" || "ignore" || "missing",
6363
* // };

clients/client-medialive/src/commands/ListCloudWatchAlarmTemplatesCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export interface ListCloudWatchAlarmTemplatesCommandOutput
6868
* // Tags: { // TagMap
6969
* // "<keys>": "STRING_VALUE",
7070
* // },
71-
* // TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET", // required
71+
* // TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET" || "MEDIATAILOR_PLAYBACK_CONFIGURATION", // required
7272
* // Threshold: Number("double"), // required
7373
* // TreatMissingData: "notBreaching" || "breaching" || "ignore" || "missing", // required
7474
* // },

clients/client-medialive/src/commands/StartMonitorDeploymentCommand.ts

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export interface StartMonitorDeploymentCommandOutput extends StartMonitorDeploym
3838
* const input = { // StartMonitorDeploymentRequest
3939
* DryRun: true || false,
4040
* Identifier: "STRING_VALUE", // required
41-
* RequestId: "STRING_VALUE",
4241
* };
4342
* const command = new StartMonitorDeploymentCommand(input);
4443
* const response = await client.send(command);

clients/client-medialive/src/commands/UpdateCloudWatchAlarmTemplateCommand.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export interface UpdateCloudWatchAlarmTemplateCommandOutput
5151
* Name: "STRING_VALUE",
5252
* Period: Number("int"),
5353
* Statistic: "SampleCount" || "Average" || "Sum" || "Minimum" || "Maximum",
54-
* TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET",
54+
* TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET" || "MEDIATAILOR_PLAYBACK_CONFIGURATION",
5555
* Threshold: Number("double"),
5656
* TreatMissingData: "notBreaching" || "breaching" || "ignore" || "missing",
5757
* };
@@ -74,7 +74,7 @@ export interface UpdateCloudWatchAlarmTemplateCommandOutput
7474
* // Tags: { // TagMap
7575
* // "<keys>": "STRING_VALUE",
7676
* // },
77-
* // TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET",
77+
* // TargetResourceType: "CLOUDFRONT_DISTRIBUTION" || "MEDIALIVE_MULTIPLEX" || "MEDIALIVE_CHANNEL" || "MEDIALIVE_INPUT_DEVICE" || "MEDIAPACKAGE_CHANNEL" || "MEDIAPACKAGE_ORIGIN_ENDPOINT" || "MEDIACONNECT_FLOW" || "S3_BUCKET" || "MEDIATAILOR_PLAYBACK_CONFIGURATION",
7878
* // Threshold: Number("double"),
7979
* // TreatMissingData: "notBreaching" || "breaching" || "ignore" || "missing",
8080
* // };

clients/client-medialive/src/models/models_0.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3858,6 +3858,7 @@ export const CloudWatchAlarmTemplateTargetResourceType = {
38583858
MEDIALIVE_MULTIPLEX: "MEDIALIVE_MULTIPLEX",
38593859
MEDIAPACKAGE_CHANNEL: "MEDIAPACKAGE_CHANNEL",
38603860
MEDIAPACKAGE_ORIGIN_ENDPOINT: "MEDIAPACKAGE_ORIGIN_ENDPOINT",
3861+
MEDIATAILOR_PLAYBACK_CONFIGURATION: "MEDIATAILOR_PLAYBACK_CONFIGURATION",
38613862
S3_BUCKET: "S3_BUCKET",
38623863
} as const;
38633864

@@ -4087,7 +4088,7 @@ export interface DescribeChannelPlacementGroupSummary {
40874088
Name?: string | undefined;
40884089

40894090
/**
4090-
* An array with one item, which is the signle Node that is associated with the ChannelPlacementGroup.
4091+
* An array with one item, which is the single Node that is associated with the ChannelPlacementGroup.
40914092
* @public
40924093
*/
40934094
Nodes?: string[] | undefined;

clients/client-medialive/src/models/models_2.ts

+4-10
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ export interface CreateChannelPlacementGroupResponse {
944944
Name?: string | undefined;
945945

946946
/**
947-
* An array with one item, which is the signle Node that is associated with the ChannelPlacementGroup.
947+
* An array with one item, which is the single Node that is associated with the ChannelPlacementGroup.
948948
* @public
949949
*/
950950
Nodes?: string[] | undefined;
@@ -2870,7 +2870,7 @@ export interface DeleteChannelPlacementGroupResponse {
28702870
Name?: string | undefined;
28712871

28722872
/**
2873-
* An array with one item, which is the signle Node that is associated with the ChannelPlacementGroup.
2873+
* An array with one item, which is the single Node that is associated with the ChannelPlacementGroup.
28742874
* @public
28752875
*/
28762876
Nodes?: string[] | undefined;
@@ -3700,7 +3700,7 @@ export interface DescribeChannelPlacementGroupResponse {
37003700
Name?: string | undefined;
37013701

37023702
/**
3703-
* An array with one item, which is the signle Node that is associated with the ChannelPlacementGroup.
3703+
* An array with one item, which is the single Node that is associated with the ChannelPlacementGroup.
37043704
* @public
37053705
*/
37063706
Nodes?: string[] | undefined;
@@ -6713,12 +6713,6 @@ export interface StartMonitorDeploymentRequest {
67136713
* @public
67146714
*/
67156715
Identifier: string | undefined;
6716-
6717-
/**
6718-
* An ID that you assign to a create request. This ID ensures idempotency when creating resources.
6719-
* @public
6720-
*/
6721-
RequestId?: string | undefined;
67226716
}
67236717

67246718
/**
@@ -7563,7 +7557,7 @@ export interface UpdateChannelPlacementGroupResponse {
75637557
Name?: string | undefined;
75647558

75657559
/**
7566-
* An array with one item, which is the signle Node that is associated with the ChannelPlacementGroup.
7560+
* An array with one item, which is the single Node that is associated with the ChannelPlacementGroup.
75677561
* @public
75687562
*/
75697563
Nodes?: string[] | undefined;

clients/client-medialive/src/protocols/Aws_restJson1.ts

-1
Original file line numberDiff line numberDiff line change
@@ -2460,7 +2460,6 @@ export const se_StartMonitorDeploymentCommand = async (
24602460
body = JSON.stringify(
24612461
take(input, {
24622462
dryRun: [, , `DryRun`],
2463-
requestId: [true, (_) => _ ?? generateIdempotencyToken(), `RequestId`],
24642463
})
24652464
);
24662465
b.m("POST").h(headers).b(body);

codegen/sdk-codegen/aws-models/medialive.json

+11-13
Original file line numberDiff line numberDiff line change
@@ -4328,6 +4328,12 @@
43284328
"traits": {
43294329
"smithy.api#enumValue": "S3_BUCKET"
43304330
}
4331+
},
4332+
"MEDIATAILOR_PLAYBACK_CONFIGURATION": {
4333+
"target": "smithy.api#Unit",
4334+
"traits": {
4335+
"smithy.api#enumValue": "MEDIATAILOR_PLAYBACK_CONFIGURATION"
4336+
}
43314337
}
43324338
},
43334339
"traits": {
@@ -4970,7 +4976,7 @@
49704976
"Nodes": {
49714977
"target": "com.amazonaws.medialive#__listOf__string",
49724978
"traits": {
4973-
"smithy.api#documentation": "An array with one item, which is the signle Node that is associated with the ChannelPlacementGroup.",
4979+
"smithy.api#documentation": "An array with one item, which is the single Node that is associated with the ChannelPlacementGroup.",
49744980
"smithy.api#jsonName": "nodes"
49754981
}
49764982
},
@@ -7531,7 +7537,7 @@
75317537
"Nodes": {
75327538
"target": "com.amazonaws.medialive#__listOf__string",
75337539
"traits": {
7534-
"smithy.api#documentation": "An array with one item, which is the signle Node that is associated with the ChannelPlacementGroup.",
7540+
"smithy.api#documentation": "An array with one item, which is the single Node that is associated with the ChannelPlacementGroup.",
75357541
"smithy.api#jsonName": "nodes"
75367542
}
75377543
},
@@ -9543,7 +9549,7 @@
95439549
"Nodes": {
95449550
"target": "com.amazonaws.medialive#__listOf__string",
95459551
"traits": {
9546-
"smithy.api#documentation": "An array with one item, which is the signle Node that is associated with the ChannelPlacementGroup.",
9552+
"smithy.api#documentation": "An array with one item, which is the single Node that is associated with the ChannelPlacementGroup.",
95479553
"smithy.api#jsonName": "nodes"
95489554
}
95499555
},
@@ -9601,7 +9607,7 @@
96019607
"Nodes": {
96029608
"target": "com.amazonaws.medialive#__listOf__string",
96039609
"traits": {
9604-
"smithy.api#documentation": "An array with one item, which is the signle Node that is associated with the ChannelPlacementGroup.",
9610+
"smithy.api#documentation": "An array with one item, which is the single Node that is associated with the ChannelPlacementGroup.",
96059611
"smithy.api#jsonName": "nodes"
96069612
}
96079613
},
@@ -31793,14 +31799,6 @@
3179331799
"smithy.api#httpLabel": {},
3179431800
"smithy.api#required": {}
3179531801
}
31796-
},
31797-
"RequestId": {
31798-
"target": "com.amazonaws.medialive#__stringMin1Max256PatternS",
31799-
"traits": {
31800-
"smithy.api#documentation": "An ID that you assign to a create request. This ID ensures idempotency when creating resources.",
31801-
"smithy.api#idempotencyToken": {},
31802-
"smithy.api#jsonName": "requestId"
31803-
}
3180431802
}
3180531803
},
3180631804
"traits": {
@@ -34169,7 +34167,7 @@
3416934167
"Nodes": {
3417034168
"target": "com.amazonaws.medialive#__listOf__string",
3417134169
"traits": {
34172-
"smithy.api#documentation": "An array with one item, which is the signle Node that is associated with the ChannelPlacementGroup.",
34170+
"smithy.api#documentation": "An array with one item, which is the single Node that is associated with the ChannelPlacementGroup.",
3417334171
"smithy.api#jsonName": "nodes"
3417434172
}
3417534173
},

0 commit comments

Comments
 (0)