Skip to content

Commit 427a732

Browse files
author
awstools
committed
feat(client-mediaconnect): AWS Elemental MediaConnect introduces the ability to disable outputs. Disabling an output allows you to keep the output attached to the flow, but stop streaming to the output destination. A disabled output does not incur data transfer costs.
1 parent c9d85d8 commit 427a732

File tree

8 files changed

+82
-0
lines changed

8 files changed

+82
-0
lines changed

clients/client-mediaconnect/src/commands/AddFlowOutputsCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export interface AddFlowOutputsCommandOutput extends AddFlowOutputsResponse, __M
8686
* VpcInterfaceAttachment: { // VpcInterfaceAttachment
8787
* VpcInterfaceName: "STRING_VALUE",
8888
* },
89+
* OutputStatus: "ENABLED" || "DISABLED",
8990
* },
9091
* ],
9192
* };
@@ -159,6 +160,7 @@ export interface AddFlowOutputsCommandOutput extends AddFlowOutputsResponse, __M
159160
* // BridgePorts: [ // __listOf__integer
160161
* // Number("int"),
161162
* // ],
163+
* // OutputStatus: "ENABLED" || "DISABLED",
162164
* // },
163165
* // ],
164166
* // };

clients/client-mediaconnect/src/commands/CreateFlowCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ export interface CreateFlowCommandOutput extends CreateFlowResponse, __MetadataB
131131
* VpcInterfaceAttachment: { // VpcInterfaceAttachment
132132
* VpcInterfaceName: "STRING_VALUE",
133133
* },
134+
* OutputStatus: "ENABLED" || "DISABLED",
134135
* },
135136
* ],
136137
* Source: { // SetSourceRequest
@@ -378,6 +379,7 @@ export interface CreateFlowCommandOutput extends CreateFlowResponse, __MetadataB
378379
* // BridgePorts: [ // __listOf__integer
379380
* // Number("int"),
380381
* // ],
382+
* // OutputStatus: "ENABLED" || "DISABLED",
381383
* // },
382384
* // ],
383385
* // Source: { // Source

clients/client-mediaconnect/src/commands/DescribeFlowCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ export interface DescribeFlowCommandOutput extends DescribeFlowResponse, __Metad
159159
* // BridgePorts: [ // __listOf__integer
160160
* // Number("int"),
161161
* // ],
162+
* // OutputStatus: "ENABLED" || "DISABLED",
162163
* // },
163164
* // ],
164165
* // Source: { // Source

clients/client-mediaconnect/src/commands/UpdateFlowCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ export interface UpdateFlowCommandOutput extends UpdateFlowResponse, __MetadataB
172172
* // BridgePorts: [ // __listOf__integer
173173
* // Number("int"),
174174
* // ],
175+
* // OutputStatus: "ENABLED" || "DISABLED",
175176
* // },
176177
* // ],
177178
* // Source: { // Source

clients/client-mediaconnect/src/commands/UpdateFlowOutputCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export interface UpdateFlowOutputCommandOutput extends UpdateFlowOutputResponse,
8585
* VpcInterfaceAttachment: { // VpcInterfaceAttachment
8686
* VpcInterfaceName: "STRING_VALUE",
8787
* },
88+
* OutputStatus: "ENABLED" || "DISABLED",
8889
* };
8990
* const command = new UpdateFlowOutputCommand(input);
9091
* const response = await client.send(command);
@@ -155,6 +156,7 @@ export interface UpdateFlowOutputCommandOutput extends UpdateFlowOutputResponse,
155156
* // BridgePorts: [ // __listOf__integer
156157
* // Number("int"),
157158
* // ],
159+
* // OutputStatus: "ENABLED" || "DISABLED",
158160
* // },
159161
* // };
160162
*

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

+32
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,20 @@ export interface MediaStreamOutputConfigurationRequest {
573573
MediaStreamName: string | undefined;
574574
}
575575

576+
/**
577+
* @public
578+
* @enum
579+
*/
580+
export const OutputStatus = {
581+
DISABLED: "DISABLED",
582+
ENABLED: "ENABLED",
583+
} as const;
584+
585+
/**
586+
* @public
587+
*/
588+
export type OutputStatus = (typeof OutputStatus)[keyof typeof OutputStatus];
589+
576590
/**
577591
* The output that you want to add to this flow.
578592
* @public
@@ -667,6 +681,12 @@ export interface AddOutputRequest {
667681
* @public
668682
*/
669683
VpcInterfaceAttachment?: VpcInterfaceAttachment;
684+
685+
/**
686+
* An indication of whether the new output should be enabled or disabled as soon as it is created. If you don't specify the outputStatus field in your request, MediaConnect sets it to ENABLED.
687+
* @public
688+
*/
689+
OutputStatus?: OutputStatus;
670690
}
671691

672692
/**
@@ -1865,6 +1885,12 @@ export interface Output {
18651885
* @public
18661886
*/
18671887
BridgePorts?: number[];
1888+
1889+
/**
1890+
* An indication of whether the output is transmitting data or not.
1891+
* @public
1892+
*/
1893+
OutputStatus?: OutputStatus;
18681894
}
18691895

18701896
/**
@@ -5123,6 +5149,12 @@ export interface UpdateFlowOutputRequest {
51235149
* @public
51245150
*/
51255151
VpcInterfaceAttachment?: VpcInterfaceAttachment;
5152+
5153+
/**
5154+
* An indication of whether the output should transmit data or not. If you don't specify the outputStatus field in your request, MediaConnect leaves the value unchanged.
5155+
* @public
5156+
*/
5157+
OutputStatus?: OutputStatus;
51265158
}
51275159

51285160
/**

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

+3
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,7 @@ export const se_UpdateFlowOutputCommand = async (
12131213
`MediaStreamOutputConfigurations`,
12141214
],
12151215
minLatency: [, , `MinLatency`],
1216+
outputStatus: [, , `OutputStatus`],
12161217
port: [, , `Port`],
12171218
protocol: [, , `Protocol`],
12181219
remoteId: [, , `RemoteId`],
@@ -2944,6 +2945,7 @@ const se_AddOutputRequest = (input: AddOutputRequest, context: __SerdeContext):
29442945
],
29452946
minLatency: [, , `MinLatency`],
29462947
name: [, , `Name`],
2948+
outputStatus: [, , `OutputStatus`],
29472949
port: [, , `Port`],
29482950
protocol: [, , `Protocol`],
29492951
remoteId: [, , `RemoteId`],
@@ -4036,6 +4038,7 @@ const de_Output = (output: any, context: __SerdeContext): Output => {
40364038
],
40374039
Name: [, __expectString, `name`],
40384040
OutputArn: [, __expectString, `outputArn`],
4041+
OutputStatus: [, __expectString, `outputStatus`],
40394042
Port: [, __expectInt32, `port`],
40404043
Transport: [, (_: any) => de_Transport(_, context), `transport`],
40414044
VpcInterfaceAttachment: [, (_: any) => de_VpcInterfaceAttachment(_, context), `vpcInterfaceAttachment`],

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

+39
Original file line numberDiff line numberDiff line change
@@ -991,6 +991,13 @@
991991
"smithy.api#documentation": "The name of the VPC interface attachment to use for this output.",
992992
"smithy.api#jsonName": "vpcInterfaceAttachment"
993993
}
994+
},
995+
"OutputStatus": {
996+
"target": "com.amazonaws.mediaconnect#OutputStatus",
997+
"traits": {
998+
"smithy.api#documentation": "An indication of whether the new output should be enabled or disabled as soon as it is created. If you don't specify the outputStatus field in your request, MediaConnect sets it to ENABLED.",
999+
"smithy.api#jsonName": "outputStatus"
1000+
}
9941001
}
9951002
},
9961003
"traits": {
@@ -5326,6 +5333,7 @@
53265333
"name": "mediaconnect"
53275334
},
53285335
"aws.protocols#restJson1": {},
5336+
"smithy.api#auth": ["aws.auth#sigv4"],
53295337
"smithy.api#documentation": "API for AWS Elemental MediaConnect",
53305338
"smithy.api#title": "AWS MediaConnect",
53315339
"smithy.rules#endpointRuleSet": {
@@ -6714,12 +6722,36 @@
67146722
"smithy.api#documentation": "The bridge output ports currently in use.",
67156723
"smithy.api#jsonName": "bridgePorts"
67166724
}
6725+
},
6726+
"OutputStatus": {
6727+
"target": "com.amazonaws.mediaconnect#OutputStatus",
6728+
"traits": {
6729+
"smithy.api#documentation": "An indication of whether the output is transmitting data or not.",
6730+
"smithy.api#jsonName": "outputStatus"
6731+
}
67176732
}
67186733
},
67196734
"traits": {
67206735
"smithy.api#documentation": "The settings for an output."
67216736
}
67226737
},
6738+
"com.amazonaws.mediaconnect#OutputStatus": {
6739+
"type": "enum",
6740+
"members": {
6741+
"ENABLED": {
6742+
"target": "smithy.api#Unit",
6743+
"traits": {
6744+
"smithy.api#enumValue": "ENABLED"
6745+
}
6746+
},
6747+
"DISABLED": {
6748+
"target": "smithy.api#Unit",
6749+
"traits": {
6750+
"smithy.api#enumValue": "DISABLED"
6751+
}
6752+
}
6753+
}
6754+
},
67236755
"com.amazonaws.mediaconnect#PriceUnits": {
67246756
"type": "enum",
67256757
"members": {
@@ -9719,6 +9751,13 @@
97199751
"smithy.api#documentation": "The name of the VPC interface attachment to use for this output.",
97209752
"smithy.api#jsonName": "vpcInterfaceAttachment"
97219753
}
9754+
},
9755+
"OutputStatus": {
9756+
"target": "com.amazonaws.mediaconnect#OutputStatus",
9757+
"traits": {
9758+
"smithy.api#documentation": "An indication of whether the output should transmit data or not. If you don't specify the outputStatus field in your request, MediaConnect leaves the value unchanged.",
9759+
"smithy.api#jsonName": "outputStatus"
9760+
}
97229761
}
97239762
},
97249763
"traits": {

0 commit comments

Comments
 (0)