|
| 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 | +} |
0 commit comments