Skip to content

Commit c6e1d2f

Browse files
author
awstools
committed
feat(client-medialive): MediaLive is releasing ListVersions api
1 parent 41e19ac commit c6e1d2f

19 files changed

+688
-34
lines changed

clients/client-medialive/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,14 @@ ListTagsForResource
850850

851851
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/medialive/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-medialive/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-medialive/Interface/ListTagsForResourceCommandOutput/)
852852

853+
</details>
854+
<details>
855+
<summary>
856+
ListVersions
857+
</summary>
858+
859+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/medialive/command/ListVersionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-medialive/Interface/ListVersionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-medialive/Interface/ListVersionsCommandOutput/)
860+
853861
</details>
854862
<details>
855863
<summary>

clients/client-medialive/src/MediaLive.ts

+18
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,11 @@ import {
359359
ListTagsForResourceCommandInput,
360360
ListTagsForResourceCommandOutput,
361361
} from "./commands/ListTagsForResourceCommand";
362+
import {
363+
ListVersionsCommand,
364+
ListVersionsCommandInput,
365+
ListVersionsCommandOutput,
366+
} from "./commands/ListVersionsCommand";
362367
import {
363368
PurchaseOfferingCommand,
364369
PurchaseOfferingCommandInput,
@@ -596,6 +601,7 @@ const commands = {
596601
ListReservationsCommand,
597602
ListSignalMapsCommand,
598603
ListTagsForResourceCommand,
604+
ListVersionsCommand,
599605
PurchaseOfferingCommand,
600606
RebootInputDeviceCommand,
601607
RejectInputDeviceTransferCommand,
@@ -1853,6 +1859,18 @@ export interface MediaLive {
18531859
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
18541860
): void;
18551861

1862+
/**
1863+
* @see {@link ListVersionsCommand}
1864+
*/
1865+
listVersions(): Promise<ListVersionsCommandOutput>;
1866+
listVersions(args: ListVersionsCommandInput, options?: __HttpHandlerOptions): Promise<ListVersionsCommandOutput>;
1867+
listVersions(args: ListVersionsCommandInput, cb: (err: any, data?: ListVersionsCommandOutput) => void): void;
1868+
listVersions(
1869+
args: ListVersionsCommandInput,
1870+
options: __HttpHandlerOptions,
1871+
cb: (err: any, data?: ListVersionsCommandOutput) => void
1872+
): void;
1873+
18561874
/**
18571875
* @see {@link PurchaseOfferingCommand}
18581876
*/

clients/client-medialive/src/MediaLiveClient.ts

+3
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ import {
249249
ListTagsForResourceCommandInput,
250250
ListTagsForResourceCommandOutput,
251251
} from "./commands/ListTagsForResourceCommand";
252+
import { ListVersionsCommandInput, ListVersionsCommandOutput } from "./commands/ListVersionsCommand";
252253
import { PurchaseOfferingCommandInput, PurchaseOfferingCommandOutput } from "./commands/PurchaseOfferingCommand";
253254
import { RebootInputDeviceCommandInput, RebootInputDeviceCommandOutput } from "./commands/RebootInputDeviceCommand";
254255
import {
@@ -423,6 +424,7 @@ export type ServiceInputTypes =
423424
| ListReservationsCommandInput
424425
| ListSignalMapsCommandInput
425426
| ListTagsForResourceCommandInput
427+
| ListVersionsCommandInput
426428
| PurchaseOfferingCommandInput
427429
| RebootInputDeviceCommandInput
428430
| RejectInputDeviceTransferCommandInput
@@ -542,6 +544,7 @@ export type ServiceOutputTypes =
542544
| ListReservationsCommandOutput
543545
| ListSignalMapsCommandOutput
544546
| ListTagsForResourceCommandOutput
547+
| ListVersionsCommandOutput
545548
| PurchaseOfferingCommandOutput
546549
| RebootInputDeviceCommandOutput
547550
| RejectInputDeviceTransferCommandOutput

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

+12
Original file line numberDiff line numberDiff line change
@@ -1220,6 +1220,10 @@ export interface CreateChannelCommandOutput extends CreateChannelResponse, __Met
12201220
* ChannelPlacementGroupId: "STRING_VALUE",
12211221
* ClusterId: "STRING_VALUE",
12221222
* },
1223+
* ChannelEngineVersion: { // ChannelEngineVersionRequest
1224+
* Version: "STRING_VALUE",
1225+
* },
1226+
* DryRun: true || false,
12231227
* };
12241228
* const command = new CreateChannelCommand(input);
12251229
* const response = await client.send(command);
@@ -2410,6 +2414,10 @@ export interface CreateChannelCommandOutput extends CreateChannelResponse, __Met
24102414
* // ActiveMotionGraphicsActionName: "STRING_VALUE",
24112415
* // ActiveMotionGraphicsUri: "STRING_VALUE",
24122416
* // PipelineId: "STRING_VALUE",
2417+
* // ChannelEngineVersion: { // ChannelEngineVersionResponse
2418+
* // ExpirationDate: new Date("TIMESTAMP"),
2419+
* // Version: "STRING_VALUE",
2420+
* // },
24132421
* // },
24142422
* // ],
24152423
* // PipelinesRunningCount: Number("int"),
@@ -2428,6 +2436,10 @@ export interface CreateChannelCommandOutput extends CreateChannelResponse, __Met
24282436
* // ChannelPlacementGroupId: "STRING_VALUE",
24292437
* // ClusterId: "STRING_VALUE",
24302438
* // },
2439+
* // ChannelEngineVersion: {
2440+
* // ExpirationDate: new Date("TIMESTAMP"),
2441+
* // Version: "STRING_VALUE",
2442+
* // },
24312443
* // },
24322444
* // };
24332445
*

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

+8
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,10 @@ export interface DeleteChannelCommandOutput extends DeleteChannelResponse, __Met
12261226
* // ActiveMotionGraphicsActionName: "STRING_VALUE",
12271227
* // ActiveMotionGraphicsUri: "STRING_VALUE",
12281228
* // PipelineId: "STRING_VALUE",
1229+
* // ChannelEngineVersion: { // ChannelEngineVersionResponse
1230+
* // ExpirationDate: new Date("TIMESTAMP"),
1231+
* // Version: "STRING_VALUE",
1232+
* // },
12291233
* // },
12301234
* // ],
12311235
* // PipelinesRunningCount: Number("int"),
@@ -1244,6 +1248,10 @@ export interface DeleteChannelCommandOutput extends DeleteChannelResponse, __Met
12441248
* // ChannelPlacementGroupId: "STRING_VALUE",
12451249
* // ClusterId: "STRING_VALUE",
12461250
* // },
1251+
* // ChannelEngineVersion: {
1252+
* // ExpirationDate: new Date("TIMESTAMP"),
1253+
* // Version: "STRING_VALUE",
1254+
* // },
12471255
* // };
12481256
*
12491257
* ```

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

+8
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,10 @@ export interface DescribeChannelCommandOutput extends DescribeChannelResponse, _
12261226
* // ActiveMotionGraphicsActionName: "STRING_VALUE",
12271227
* // ActiveMotionGraphicsUri: "STRING_VALUE",
12281228
* // PipelineId: "STRING_VALUE",
1229+
* // ChannelEngineVersion: { // ChannelEngineVersionResponse
1230+
* // ExpirationDate: new Date("TIMESTAMP"),
1231+
* // Version: "STRING_VALUE",
1232+
* // },
12291233
* // },
12301234
* // ],
12311235
* // PipelinesRunningCount: Number("int"),
@@ -1244,6 +1248,10 @@ export interface DescribeChannelCommandOutput extends DescribeChannelResponse, _
12441248
* // ChannelPlacementGroupId: "STRING_VALUE",
12451249
* // ClusterId: "STRING_VALUE",
12461250
* // },
1251+
* // ChannelEngineVersion: {
1252+
* // ExpirationDate: new Date("TIMESTAMP"),
1253+
* // Version: "STRING_VALUE",
1254+
* // },
12471255
* // };
12481256
*
12491257
* ```

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

+10
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,16 @@ export interface ListChannelsCommandOutput extends ListChannelsResponse, __Metad
261261
* // ChannelPlacementGroupId: "STRING_VALUE",
262262
* // ClusterId: "STRING_VALUE",
263263
* // },
264+
* // ChannelEngineVersion: { // ChannelEngineVersionResponse
265+
* // ExpirationDate: new Date("TIMESTAMP"),
266+
* // Version: "STRING_VALUE",
267+
* // },
268+
* // UsedChannelEngineVersions: [ // __listOfChannelEngineVersionResponse
269+
* // {
270+
* // ExpirationDate: new Date("TIMESTAMP"),
271+
* // Version: "STRING_VALUE",
272+
* // },
273+
* // ],
264274
* // },
265275
* // ],
266276
* // NextToken: "STRING_VALUE",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
// smithy-typescript generated code
2+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
4+
import { Command as $Command } from "@smithy/smithy-client";
5+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
6+
7+
import { commonParams } from "../endpoint/EndpointParameters";
8+
import { MediaLiveClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaLiveClient";
9+
import { ListVersionsRequest, ListVersionsResponse } from "../models/models_2";
10+
import { de_ListVersionsCommand, se_ListVersionsCommand } from "../protocols/Aws_restJson1";
11+
12+
/**
13+
* @public
14+
*/
15+
export type { __MetadataBearer };
16+
export { $Command };
17+
/**
18+
* @public
19+
*
20+
* The input for {@link ListVersionsCommand}.
21+
*/
22+
export interface ListVersionsCommandInput extends ListVersionsRequest {}
23+
/**
24+
* @public
25+
*
26+
* The output of {@link ListVersionsCommand}.
27+
*/
28+
export interface ListVersionsCommandOutput extends ListVersionsResponse, __MetadataBearer {}
29+
30+
/**
31+
* Retrieves an array of all the encoder engine versions that are available in this AWS account.
32+
* @example
33+
* Use a bare-bones client and the command you need to make an API call.
34+
* ```javascript
35+
* import { MediaLiveClient, ListVersionsCommand } from "@aws-sdk/client-medialive"; // ES Modules import
36+
* // const { MediaLiveClient, ListVersionsCommand } = require("@aws-sdk/client-medialive"); // CommonJS import
37+
* const client = new MediaLiveClient(config);
38+
* const input = {};
39+
* const command = new ListVersionsCommand(input);
40+
* const response = await client.send(command);
41+
* // { // ListVersionsResponse
42+
* // Versions: [ // __listOfChannelEngineVersionResponse
43+
* // { // ChannelEngineVersionResponse
44+
* // ExpirationDate: new Date("TIMESTAMP"),
45+
* // Version: "STRING_VALUE",
46+
* // },
47+
* // ],
48+
* // };
49+
*
50+
* ```
51+
*
52+
* @param ListVersionsCommandInput - {@link ListVersionsCommandInput}
53+
* @returns {@link ListVersionsCommandOutput}
54+
* @see {@link ListVersionsCommandInput} for command's `input` shape.
55+
* @see {@link ListVersionsCommandOutput} for command's `response` shape.
56+
* @see {@link MediaLiveClientResolvedConfig | config} for MediaLiveClient's `config` shape.
57+
*
58+
* @throws {@link BadGatewayException} (server fault)
59+
* Placeholder documentation for BadGatewayException
60+
*
61+
* @throws {@link BadRequestException} (client fault)
62+
* Placeholder documentation for BadRequestException
63+
*
64+
* @throws {@link ConflictException} (client fault)
65+
* Placeholder documentation for ConflictException
66+
*
67+
* @throws {@link ForbiddenException} (client fault)
68+
* Placeholder documentation for ForbiddenException
69+
*
70+
* @throws {@link GatewayTimeoutException} (server fault)
71+
* Placeholder documentation for GatewayTimeoutException
72+
*
73+
* @throws {@link InternalServerErrorException} (server fault)
74+
* Placeholder documentation for InternalServerErrorException
75+
*
76+
* @throws {@link NotFoundException} (client fault)
77+
* Placeholder documentation for NotFoundException
78+
*
79+
* @throws {@link TooManyRequestsException} (client fault)
80+
* Placeholder documentation for TooManyRequestsException
81+
*
82+
* @throws {@link MediaLiveServiceException}
83+
* <p>Base exception class for all service exceptions from MediaLive service.</p>
84+
*
85+
* @public
86+
*/
87+
export class ListVersionsCommand extends $Command
88+
.classBuilder<
89+
ListVersionsCommandInput,
90+
ListVersionsCommandOutput,
91+
MediaLiveClientResolvedConfig,
92+
ServiceInputTypes,
93+
ServiceOutputTypes
94+
>()
95+
.ep(commonParams)
96+
.m(function (this: any, Command: any, cs: any, config: MediaLiveClientResolvedConfig, o: any) {
97+
return [
98+
getSerdePlugin(config, this.serialize, this.deserialize),
99+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
100+
];
101+
})
102+
.s("MediaLive", "ListVersions", {})
103+
.n("MediaLiveClient", "ListVersionsCommand")
104+
.f(void 0, void 0)
105+
.ser(se_ListVersionsCommand)
106+
.de(de_ListVersionsCommand)
107+
.build() {
108+
/** @internal type navigation helper, not in runtime. */
109+
protected declare static __types: {
110+
api: {
111+
input: {};
112+
output: ListVersionsResponse;
113+
};
114+
sdk: {
115+
input: ListVersionsCommandInput;
116+
output: ListVersionsCommandOutput;
117+
};
118+
};
119+
}

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

+8
Original file line numberDiff line numberDiff line change
@@ -1230,6 +1230,10 @@ export interface RestartChannelPipelinesCommandOutput extends RestartChannelPipe
12301230
* // ActiveMotionGraphicsActionName: "STRING_VALUE",
12311231
* // ActiveMotionGraphicsUri: "STRING_VALUE",
12321232
* // PipelineId: "STRING_VALUE",
1233+
* // ChannelEngineVersion: { // ChannelEngineVersionResponse
1234+
* // ExpirationDate: new Date("TIMESTAMP"),
1235+
* // Version: "STRING_VALUE",
1236+
* // },
12331237
* // },
12341238
* // ],
12351239
* // PipelinesRunningCount: Number("int"),
@@ -1248,6 +1252,10 @@ export interface RestartChannelPipelinesCommandOutput extends RestartChannelPipe
12481252
* // ChannelPlacementGroupId: "STRING_VALUE",
12491253
* // ClusterId: "STRING_VALUE",
12501254
* // },
1255+
* // ChannelEngineVersion: {
1256+
* // ExpirationDate: new Date("TIMESTAMP"),
1257+
* // Version: "STRING_VALUE",
1258+
* // },
12511259
* // };
12521260
*
12531261
* ```

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

+8
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,10 @@ export interface StartChannelCommandOutput extends StartChannelResponse, __Metad
12261226
* // ActiveMotionGraphicsActionName: "STRING_VALUE",
12271227
* // ActiveMotionGraphicsUri: "STRING_VALUE",
12281228
* // PipelineId: "STRING_VALUE",
1229+
* // ChannelEngineVersion: { // ChannelEngineVersionResponse
1230+
* // ExpirationDate: new Date("TIMESTAMP"),
1231+
* // Version: "STRING_VALUE",
1232+
* // },
12291233
* // },
12301234
* // ],
12311235
* // PipelinesRunningCount: Number("int"),
@@ -1244,6 +1248,10 @@ export interface StartChannelCommandOutput extends StartChannelResponse, __Metad
12441248
* // ChannelPlacementGroupId: "STRING_VALUE",
12451249
* // ClusterId: "STRING_VALUE",
12461250
* // },
1251+
* // ChannelEngineVersion: {
1252+
* // ExpirationDate: new Date("TIMESTAMP"),
1253+
* // Version: "STRING_VALUE",
1254+
* // },
12471255
* // };
12481256
*
12491257
* ```

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

+8
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,10 @@ export interface StopChannelCommandOutput extends StopChannelResponse, __Metadat
12261226
* // ActiveMotionGraphicsActionName: "STRING_VALUE",
12271227
* // ActiveMotionGraphicsUri: "STRING_VALUE",
12281228
* // PipelineId: "STRING_VALUE",
1229+
* // ChannelEngineVersion: { // ChannelEngineVersionResponse
1230+
* // ExpirationDate: new Date("TIMESTAMP"),
1231+
* // Version: "STRING_VALUE",
1232+
* // },
12291233
* // },
12301234
* // ],
12311235
* // PipelinesRunningCount: Number("int"),
@@ -1244,6 +1248,10 @@ export interface StopChannelCommandOutput extends StopChannelResponse, __Metadat
12441248
* // ChannelPlacementGroupId: "STRING_VALUE",
12451249
* // ClusterId: "STRING_VALUE",
12461250
* // },
1251+
* // ChannelEngineVersion: {
1252+
* // ExpirationDate: new Date("TIMESTAMP"),
1253+
* // Version: "STRING_VALUE",
1254+
* // },
12471255
* // };
12481256
*
12491257
* ```

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

+8
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,10 @@ export interface UpdateChannelClassCommandOutput extends UpdateChannelClassRespo
12591259
* // ActiveMotionGraphicsActionName: "STRING_VALUE",
12601260
* // ActiveMotionGraphicsUri: "STRING_VALUE",
12611261
* // PipelineId: "STRING_VALUE",
1262+
* // ChannelEngineVersion: { // ChannelEngineVersionResponse
1263+
* // ExpirationDate: new Date("TIMESTAMP"),
1264+
* // Version: "STRING_VALUE",
1265+
* // },
12621266
* // },
12631267
* // ],
12641268
* // PipelinesRunningCount: Number("int"),
@@ -1277,6 +1281,10 @@ export interface UpdateChannelClassCommandOutput extends UpdateChannelClassRespo
12771281
* // ChannelPlacementGroupId: "STRING_VALUE",
12781282
* // ClusterId: "STRING_VALUE",
12791283
* // },
1284+
* // ChannelEngineVersion: {
1285+
* // ExpirationDate: new Date("TIMESTAMP"),
1286+
* // Version: "STRING_VALUE",
1287+
* // },
12801288
* // },
12811289
* // };
12821290
*

0 commit comments

Comments
 (0)