-
Notifications
You must be signed in to change notification settings - Fork 585
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-medialive): MediaLive is releasing ListVersions api
- Loading branch information
awstools
committed
Dec 19, 2024
1 parent
41e19ac
commit c6e1d2f
Showing
19 changed files
with
688 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
119 changes: 119 additions & 0 deletions
119
clients/client-medialive/src/commands/ListVersionsCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.