Skip to content

Commit

Permalink
feat(client-medialive): MediaLive is releasing ListVersions api
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Dec 19, 2024
1 parent 41e19ac commit c6e1d2f
Show file tree
Hide file tree
Showing 19 changed files with 688 additions and 34 deletions.
8 changes: 8 additions & 0 deletions clients/client-medialive/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,14 @@ ListTagsForResource

[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/)

</details>
<details>
<summary>
ListVersions
</summary>

[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/)

</details>
<details>
<summary>
Expand Down
18 changes: 18 additions & 0 deletions clients/client-medialive/src/MediaLive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,11 @@ import {
ListTagsForResourceCommandInput,
ListTagsForResourceCommandOutput,
} from "./commands/ListTagsForResourceCommand";
import {
ListVersionsCommand,
ListVersionsCommandInput,
ListVersionsCommandOutput,
} from "./commands/ListVersionsCommand";
import {
PurchaseOfferingCommand,
PurchaseOfferingCommandInput,
Expand Down Expand Up @@ -596,6 +601,7 @@ const commands = {
ListReservationsCommand,
ListSignalMapsCommand,
ListTagsForResourceCommand,
ListVersionsCommand,
PurchaseOfferingCommand,
RebootInputDeviceCommand,
RejectInputDeviceTransferCommand,
Expand Down Expand Up @@ -1853,6 +1859,18 @@ export interface MediaLive {
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
): void;

/**
* @see {@link ListVersionsCommand}
*/
listVersions(): Promise<ListVersionsCommandOutput>;
listVersions(args: ListVersionsCommandInput, options?: __HttpHandlerOptions): Promise<ListVersionsCommandOutput>;
listVersions(args: ListVersionsCommandInput, cb: (err: any, data?: ListVersionsCommandOutput) => void): void;
listVersions(
args: ListVersionsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListVersionsCommandOutput) => void
): void;

/**
* @see {@link PurchaseOfferingCommand}
*/
Expand Down
3 changes: 3 additions & 0 deletions clients/client-medialive/src/MediaLiveClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ import {
ListTagsForResourceCommandInput,
ListTagsForResourceCommandOutput,
} from "./commands/ListTagsForResourceCommand";
import { ListVersionsCommandInput, ListVersionsCommandOutput } from "./commands/ListVersionsCommand";
import { PurchaseOfferingCommandInput, PurchaseOfferingCommandOutput } from "./commands/PurchaseOfferingCommand";
import { RebootInputDeviceCommandInput, RebootInputDeviceCommandOutput } from "./commands/RebootInputDeviceCommand";
import {
Expand Down Expand Up @@ -423,6 +424,7 @@ export type ServiceInputTypes =
| ListReservationsCommandInput
| ListSignalMapsCommandInput
| ListTagsForResourceCommandInput
| ListVersionsCommandInput
| PurchaseOfferingCommandInput
| RebootInputDeviceCommandInput
| RejectInputDeviceTransferCommandInput
Expand Down Expand Up @@ -542,6 +544,7 @@ export type ServiceOutputTypes =
| ListReservationsCommandOutput
| ListSignalMapsCommandOutput
| ListTagsForResourceCommandOutput
| ListVersionsCommandOutput
| PurchaseOfferingCommandOutput
| RebootInputDeviceCommandOutput
| RejectInputDeviceTransferCommandOutput
Expand Down
12 changes: 12 additions & 0 deletions clients/client-medialive/src/commands/CreateChannelCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1220,6 +1220,10 @@ export interface CreateChannelCommandOutput extends CreateChannelResponse, __Met
* ChannelPlacementGroupId: "STRING_VALUE",
* ClusterId: "STRING_VALUE",
* },
* ChannelEngineVersion: { // ChannelEngineVersionRequest
* Version: "STRING_VALUE",
* },
* DryRun: true || false,
* };
* const command = new CreateChannelCommand(input);
* const response = await client.send(command);
Expand Down Expand Up @@ -2410,6 +2414,10 @@ export interface CreateChannelCommandOutput extends CreateChannelResponse, __Met
* // ActiveMotionGraphicsActionName: "STRING_VALUE",
* // ActiveMotionGraphicsUri: "STRING_VALUE",
* // PipelineId: "STRING_VALUE",
* // ChannelEngineVersion: { // ChannelEngineVersionResponse
* // ExpirationDate: new Date("TIMESTAMP"),
* // Version: "STRING_VALUE",
* // },
* // },
* // ],
* // PipelinesRunningCount: Number("int"),
Expand All @@ -2428,6 +2436,10 @@ export interface CreateChannelCommandOutput extends CreateChannelResponse, __Met
* // ChannelPlacementGroupId: "STRING_VALUE",
* // ClusterId: "STRING_VALUE",
* // },
* // ChannelEngineVersion: {
* // ExpirationDate: new Date("TIMESTAMP"),
* // Version: "STRING_VALUE",
* // },
* // },
* // };
*
Expand Down
8 changes: 8 additions & 0 deletions clients/client-medialive/src/commands/DeleteChannelCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1226,6 +1226,10 @@ export interface DeleteChannelCommandOutput extends DeleteChannelResponse, __Met
* // ActiveMotionGraphicsActionName: "STRING_VALUE",
* // ActiveMotionGraphicsUri: "STRING_VALUE",
* // PipelineId: "STRING_VALUE",
* // ChannelEngineVersion: { // ChannelEngineVersionResponse
* // ExpirationDate: new Date("TIMESTAMP"),
* // Version: "STRING_VALUE",
* // },
* // },
* // ],
* // PipelinesRunningCount: Number("int"),
Expand All @@ -1244,6 +1248,10 @@ export interface DeleteChannelCommandOutput extends DeleteChannelResponse, __Met
* // ChannelPlacementGroupId: "STRING_VALUE",
* // ClusterId: "STRING_VALUE",
* // },
* // ChannelEngineVersion: {
* // ExpirationDate: new Date("TIMESTAMP"),
* // Version: "STRING_VALUE",
* // },
* // };
*
* ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1226,6 +1226,10 @@ export interface DescribeChannelCommandOutput extends DescribeChannelResponse, _
* // ActiveMotionGraphicsActionName: "STRING_VALUE",
* // ActiveMotionGraphicsUri: "STRING_VALUE",
* // PipelineId: "STRING_VALUE",
* // ChannelEngineVersion: { // ChannelEngineVersionResponse
* // ExpirationDate: new Date("TIMESTAMP"),
* // Version: "STRING_VALUE",
* // },
* // },
* // ],
* // PipelinesRunningCount: Number("int"),
Expand All @@ -1244,6 +1248,10 @@ export interface DescribeChannelCommandOutput extends DescribeChannelResponse, _
* // ChannelPlacementGroupId: "STRING_VALUE",
* // ClusterId: "STRING_VALUE",
* // },
* // ChannelEngineVersion: {
* // ExpirationDate: new Date("TIMESTAMP"),
* // Version: "STRING_VALUE",
* // },
* // };
*
* ```
Expand Down
10 changes: 10 additions & 0 deletions clients/client-medialive/src/commands/ListChannelsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,16 @@ export interface ListChannelsCommandOutput extends ListChannelsResponse, __Metad
* // ChannelPlacementGroupId: "STRING_VALUE",
* // ClusterId: "STRING_VALUE",
* // },
* // ChannelEngineVersion: { // ChannelEngineVersionResponse
* // ExpirationDate: new Date("TIMESTAMP"),
* // Version: "STRING_VALUE",
* // },
* // UsedChannelEngineVersions: [ // __listOfChannelEngineVersionResponse
* // {
* // ExpirationDate: new Date("TIMESTAMP"),
* // Version: "STRING_VALUE",
* // },
* // ],
* // },
* // ],
* // NextToken: "STRING_VALUE",
Expand Down
119 changes: 119 additions & 0 deletions clients/client-medialive/src/commands/ListVersionsCommand.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { commonParams } from "../endpoint/EndpointParameters";
import { MediaLiveClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaLiveClient";
import { ListVersionsRequest, ListVersionsResponse } from "../models/models_2";
import { de_ListVersionsCommand, se_ListVersionsCommand } from "../protocols/Aws_restJson1";

/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link ListVersionsCommand}.
*/
export interface ListVersionsCommandInput extends ListVersionsRequest {}
/**
* @public
*
* The output of {@link ListVersionsCommand}.
*/
export interface ListVersionsCommandOutput extends ListVersionsResponse, __MetadataBearer {}

/**
* Retrieves an array of all the encoder engine versions that are available in this AWS account.
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { MediaLiveClient, ListVersionsCommand } from "@aws-sdk/client-medialive"; // ES Modules import
* // const { MediaLiveClient, ListVersionsCommand } = require("@aws-sdk/client-medialive"); // CommonJS import
* const client = new MediaLiveClient(config);
* const input = {};
* const command = new ListVersionsCommand(input);
* const response = await client.send(command);
* // { // ListVersionsResponse
* // Versions: [ // __listOfChannelEngineVersionResponse
* // { // ChannelEngineVersionResponse
* // ExpirationDate: new Date("TIMESTAMP"),
* // Version: "STRING_VALUE",
* // },
* // ],
* // };
*
* ```
*
* @param ListVersionsCommandInput - {@link ListVersionsCommandInput}
* @returns {@link ListVersionsCommandOutput}
* @see {@link ListVersionsCommandInput} for command's `input` shape.
* @see {@link ListVersionsCommandOutput} for command's `response` shape.
* @see {@link MediaLiveClientResolvedConfig | config} for MediaLiveClient's `config` shape.
*
* @throws {@link BadGatewayException} (server fault)
* Placeholder documentation for BadGatewayException
*
* @throws {@link BadRequestException} (client fault)
* Placeholder documentation for BadRequestException
*
* @throws {@link ConflictException} (client fault)
* Placeholder documentation for ConflictException
*
* @throws {@link ForbiddenException} (client fault)
* Placeholder documentation for ForbiddenException
*
* @throws {@link GatewayTimeoutException} (server fault)
* Placeholder documentation for GatewayTimeoutException
*
* @throws {@link InternalServerErrorException} (server fault)
* Placeholder documentation for InternalServerErrorException
*
* @throws {@link NotFoundException} (client fault)
* Placeholder documentation for NotFoundException
*
* @throws {@link TooManyRequestsException} (client fault)
* Placeholder documentation for TooManyRequestsException
*
* @throws {@link MediaLiveServiceException}
* <p>Base exception class for all service exceptions from MediaLive service.</p>
*
* @public
*/
export class ListVersionsCommand extends $Command
.classBuilder<
ListVersionsCommandInput,
ListVersionsCommandOutput,
MediaLiveClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes
>()
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: MediaLiveClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
})
.s("MediaLive", "ListVersions", {})
.n("MediaLiveClient", "ListVersionsCommand")
.f(void 0, void 0)
.ser(se_ListVersionsCommand)
.de(de_ListVersionsCommand)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
api: {
input: {};
output: ListVersionsResponse;
};
sdk: {
input: ListVersionsCommandInput;
output: ListVersionsCommandOutput;
};
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -1230,6 +1230,10 @@ export interface RestartChannelPipelinesCommandOutput extends RestartChannelPipe
* // ActiveMotionGraphicsActionName: "STRING_VALUE",
* // ActiveMotionGraphicsUri: "STRING_VALUE",
* // PipelineId: "STRING_VALUE",
* // ChannelEngineVersion: { // ChannelEngineVersionResponse
* // ExpirationDate: new Date("TIMESTAMP"),
* // Version: "STRING_VALUE",
* // },
* // },
* // ],
* // PipelinesRunningCount: Number("int"),
Expand All @@ -1248,6 +1252,10 @@ export interface RestartChannelPipelinesCommandOutput extends RestartChannelPipe
* // ChannelPlacementGroupId: "STRING_VALUE",
* // ClusterId: "STRING_VALUE",
* // },
* // ChannelEngineVersion: {
* // ExpirationDate: new Date("TIMESTAMP"),
* // Version: "STRING_VALUE",
* // },
* // };
*
* ```
Expand Down
8 changes: 8 additions & 0 deletions clients/client-medialive/src/commands/StartChannelCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1226,6 +1226,10 @@ export interface StartChannelCommandOutput extends StartChannelResponse, __Metad
* // ActiveMotionGraphicsActionName: "STRING_VALUE",
* // ActiveMotionGraphicsUri: "STRING_VALUE",
* // PipelineId: "STRING_VALUE",
* // ChannelEngineVersion: { // ChannelEngineVersionResponse
* // ExpirationDate: new Date("TIMESTAMP"),
* // Version: "STRING_VALUE",
* // },
* // },
* // ],
* // PipelinesRunningCount: Number("int"),
Expand All @@ -1244,6 +1248,10 @@ export interface StartChannelCommandOutput extends StartChannelResponse, __Metad
* // ChannelPlacementGroupId: "STRING_VALUE",
* // ClusterId: "STRING_VALUE",
* // },
* // ChannelEngineVersion: {
* // ExpirationDate: new Date("TIMESTAMP"),
* // Version: "STRING_VALUE",
* // },
* // };
*
* ```
Expand Down
8 changes: 8 additions & 0 deletions clients/client-medialive/src/commands/StopChannelCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1226,6 +1226,10 @@ export interface StopChannelCommandOutput extends StopChannelResponse, __Metadat
* // ActiveMotionGraphicsActionName: "STRING_VALUE",
* // ActiveMotionGraphicsUri: "STRING_VALUE",
* // PipelineId: "STRING_VALUE",
* // ChannelEngineVersion: { // ChannelEngineVersionResponse
* // ExpirationDate: new Date("TIMESTAMP"),
* // Version: "STRING_VALUE",
* // },
* // },
* // ],
* // PipelinesRunningCount: Number("int"),
Expand All @@ -1244,6 +1248,10 @@ export interface StopChannelCommandOutput extends StopChannelResponse, __Metadat
* // ChannelPlacementGroupId: "STRING_VALUE",
* // ClusterId: "STRING_VALUE",
* // },
* // ChannelEngineVersion: {
* // ExpirationDate: new Date("TIMESTAMP"),
* // Version: "STRING_VALUE",
* // },
* // };
*
* ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1259,6 +1259,10 @@ export interface UpdateChannelClassCommandOutput extends UpdateChannelClassRespo
* // ActiveMotionGraphicsActionName: "STRING_VALUE",
* // ActiveMotionGraphicsUri: "STRING_VALUE",
* // PipelineId: "STRING_VALUE",
* // ChannelEngineVersion: { // ChannelEngineVersionResponse
* // ExpirationDate: new Date("TIMESTAMP"),
* // Version: "STRING_VALUE",
* // },
* // },
* // ],
* // PipelinesRunningCount: Number("int"),
Expand All @@ -1277,6 +1281,10 @@ export interface UpdateChannelClassCommandOutput extends UpdateChannelClassRespo
* // ChannelPlacementGroupId: "STRING_VALUE",
* // ClusterId: "STRING_VALUE",
* // },
* // ChannelEngineVersion: {
* // ExpirationDate: new Date("TIMESTAMP"),
* // Version: "STRING_VALUE",
* // },
* // },
* // };
*
Expand Down
Loading

0 comments on commit c6e1d2f

Please sign in to comment.