Skip to content

Commit 2c4726a

Browse files
author
awstools
committed
feat(client-mediapackagev2): This release adds support for specifying a preferred input for channels using CMAF ingest.
1 parent 1eeede0 commit 2c4726a

File tree

7 files changed

+34
-6
lines changed

7 files changed

+34
-6
lines changed

clients/client-mediapackagev2/src/commands/CreateChannelCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export interface CreateChannelCommandOutput extends CreateChannelResponse, __Met
4343
* Description: "STRING_VALUE",
4444
* InputSwitchConfiguration: { // InputSwitchConfiguration
4545
* MQCSInputSwitching: true || false,
46+
* PreferredInput: Number("int"),
4647
* },
4748
* OutputHeaderConfiguration: { // OutputHeaderConfiguration
4849
* PublishMQCS: true || false,
@@ -73,6 +74,7 @@ export interface CreateChannelCommandOutput extends CreateChannelResponse, __Met
7374
* // },
7475
* // InputSwitchConfiguration: { // InputSwitchConfiguration
7576
* // MQCSInputSwitching: true || false,
77+
* // PreferredInput: Number("int"),
7678
* // },
7779
* // OutputHeaderConfiguration: { // OutputHeaderConfiguration
7880
* // PublishMQCS: true || false,

clients/client-mediapackagev2/src/commands/GetChannelCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface GetChannelCommandInput extends GetChannelRequest {}
2828
export interface GetChannelCommandOutput extends GetChannelResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Retrieves the specified channel that's configured in AWS Elemental MediaPackage, including the origin endpoints that are associated with it.</p>
31+
* <p>Retrieves the specified channel that's configured in AWS Elemental MediaPackage.</p>
3232
* @example
3333
* Use a bare-bones client and the command you need to make an API call.
3434
* ```javascript
@@ -62,6 +62,7 @@ export interface GetChannelCommandOutput extends GetChannelResponse, __MetadataB
6262
* // },
6363
* // InputSwitchConfiguration: { // InputSwitchConfiguration
6464
* // MQCSInputSwitching: true || false,
65+
* // PreferredInput: Number("int"),
6566
* // },
6667
* // OutputHeaderConfiguration: { // OutputHeaderConfiguration
6768
* // PublishMQCS: true || false,

clients/client-mediapackagev2/src/commands/GetChannelGroupCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface GetChannelGroupCommandInput extends GetChannelGroupRequest {}
2828
export interface GetChannelGroupCommandOutput extends GetChannelGroupResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Retrieves the specified channel group that's configured in AWS Elemental MediaPackage, including the channels and origin endpoints that are associated with it.</p>
31+
* <p>Retrieves the specified channel group that's configured in AWS Elemental MediaPackage.</p>
3232
* @example
3333
* Use a bare-bones client and the command you need to make an API call.
3434
* ```javascript

clients/client-mediapackagev2/src/commands/ListChannelsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface ListChannelsCommandInput extends ListChannelsRequest {}
2828
export interface ListChannelsCommandOutput extends ListChannelsResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Retrieves all channels in a specific channel group that are configured in AWS Elemental MediaPackage, including the origin endpoints that are associated with it.</p>
31+
* <p>Retrieves all channels in a specific channel group that are configured in AWS Elemental MediaPackage.</p>
3232
* @example
3333
* Use a bare-bones client and the command you need to make an API call.
3434
* ```javascript

clients/client-mediapackagev2/src/commands/UpdateChannelCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export interface UpdateChannelCommandOutput extends UpdateChannelResponse, __Met
4343
* Description: "STRING_VALUE",
4444
* InputSwitchConfiguration: { // InputSwitchConfiguration
4545
* MQCSInputSwitching: true || false,
46+
* PreferredInput: Number("int"),
4647
* },
4748
* OutputHeaderConfiguration: { // OutputHeaderConfiguration
4849
* PublishMQCS: true || false,
@@ -70,6 +71,7 @@ export interface UpdateChannelCommandOutput extends UpdateChannelResponse, __Met
7071
* // },
7172
* // InputSwitchConfiguration: { // InputSwitchConfiguration
7273
* // MQCSInputSwitching: true || false,
74+
* // PreferredInput: Number("int"),
7375
* // },
7476
* // OutputHeaderConfiguration: { // OutputHeaderConfiguration
7577
* // PublishMQCS: true || false,

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ export const ValidationExceptionType = {
295295
"ONLY_CMAF_INPUT_TYPE_ALLOW_FORCE_ENDPOINT_ERROR_CONFIGURATION",
296296
ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_INPUT_SWITCHING: "ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_INPUT_SWITCHING",
297297
ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_OUTPUT_CONFIGURATION: "ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_OUTPUT_CONFIGURATION",
298+
ONLY_CMAF_INPUT_TYPE_ALLOW_PREFERRED_INPUT_CONFIGURATION: "ONLY_CMAF_INPUT_TYPE_ALLOW_PREFERRED_INPUT_CONFIGURATION",
298299
PERIOD_TRIGGERS_NONE_SPECIFIED_WITH_ADDITIONAL_VALUES: "PERIOD_TRIGGERS_NONE_SPECIFIED_WITH_ADDITIONAL_VALUES",
299300
ROLE_ARN_INVALID_FORMAT: "ROLE_ARN_INVALID_FORMAT",
300301
ROLE_ARN_LENGTH_OUT_OF_RANGE: "ROLE_ARN_LENGTH_OUT_OF_RANGE",
@@ -509,6 +510,12 @@ export interface InputSwitchConfiguration {
509510
* @public
510511
*/
511512
MQCSInputSwitching?: boolean | undefined;
513+
514+
/**
515+
* <p>For CMAF inputs, indicates which input MediaPackage should prefer when both inputs have equal MQCS scores. Select <code>1</code> to prefer the first ingest endpoint, or <code>2</code> to prefer the second ingest endpoint. If you don't specify a preferred input, MediaPackage uses its default switching behavior when MQCS scores are equal.</p>
516+
* @public
517+
*/
518+
PreferredInput?: number | undefined;
512519
}
513520

514521
/**

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

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3529,7 +3529,7 @@
35293529
],
35303530
"traits": {
35313531
"aws.iam#actionPermissionDescription": "Grants permission to retrieve details of a channel in a channel group",
3532-
"smithy.api#documentation": "<p>Retrieves the specified channel that's configured in AWS Elemental MediaPackage, including the origin endpoints that are associated with it.</p>",
3532+
"smithy.api#documentation": "<p>Retrieves the specified channel that's configured in AWS Elemental MediaPackage.</p>",
35333533
"smithy.api#examples": [
35343534
{
35353535
"title": "Getting a Channel",
@@ -3597,7 +3597,7 @@
35973597
],
35983598
"traits": {
35993599
"aws.iam#actionPermissionDescription": "Grants permission to retrieve details of a channel group",
3600-
"smithy.api#documentation": "<p>Retrieves the specified channel group that's configured in AWS Elemental MediaPackage, including the channels and origin endpoints that are associated with it.</p>",
3600+
"smithy.api#documentation": "<p>Retrieves the specified channel group that's configured in AWS Elemental MediaPackage.</p>",
36013601
"smithy.api#examples": [
36023602
{
36033603
"title": "Getting a Channel Group",
@@ -5324,6 +5324,16 @@
53245324
"traits": {
53255325
"smithy.api#documentation": "<p>When true, AWS Elemental MediaPackage performs input switching based on the MQCS. Default is true. This setting is valid only when <code>InputType</code> is <code>CMAF</code>.</p>"
53265326
}
5327+
},
5328+
"PreferredInput": {
5329+
"target": "smithy.api#Integer",
5330+
"traits": {
5331+
"smithy.api#documentation": "<p>For CMAF inputs, indicates which input MediaPackage should prefer when both inputs have equal MQCS scores. Select <code>1</code> to prefer the first ingest endpoint, or <code>2</code> to prefer the second ingest endpoint. If you don't specify a preferred input, MediaPackage uses its default switching behavior when MQCS scores are equal.</p>",
5332+
"smithy.api#range": {
5333+
"min": 1,
5334+
"max": 2
5335+
}
5336+
}
53275337
}
53285338
},
53295339
"traits": {
@@ -5503,7 +5513,7 @@
55035513
],
55045514
"traits": {
55055515
"aws.iam#actionPermissionDescription": "Grants permission to list all channels in a channel group",
5506-
"smithy.api#documentation": "<p>Retrieves all channels in a specific channel group that are configured in AWS Elemental MediaPackage, including the origin endpoints that are associated with it.</p>",
5516+
"smithy.api#documentation": "<p>Retrieves all channels in a specific channel group that are configured in AWS Elemental MediaPackage.</p>",
55075517
"smithy.api#examples": [
55085518
{
55095519
"title": "Listing all Channels",
@@ -9068,6 +9078,12 @@
90689078
"smithy.api#enumValue": "ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_OUTPUT_CONFIGURATION"
90699079
}
90709080
},
9081+
"ONLY_CMAF_INPUT_TYPE_ALLOW_PREFERRED_INPUT_CONFIGURATION": {
9082+
"target": "smithy.api#Unit",
9083+
"traits": {
9084+
"smithy.api#enumValue": "ONLY_CMAF_INPUT_TYPE_ALLOW_PREFERRED_INPUT_CONFIGURATION"
9085+
}
9086+
},
90719087
"TS_CONTAINER_TYPE_WITH_MSS_MANIFEST": {
90729088
"target": "smithy.api#Unit",
90739089
"traits": {

0 commit comments

Comments
 (0)