-
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-eks): This release adds support for DescribeClusterVersio…
…ns API that provides important information about Kubernetes versions along with end of support dates
- Loading branch information
awstools
committed
Dec 23, 2024
1 parent
f8dab61
commit 81d94a2
Showing
10 changed files
with
634 additions
and
7 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
124 changes: 124 additions & 0 deletions
124
clients/client-eks/src/commands/DescribeClusterVersionsCommand.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,124 @@ | ||
// 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 { EKSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EKSClient"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { DescribeClusterVersionsRequest, DescribeClusterVersionsResponse } from "../models/models_0"; | ||
import { de_DescribeClusterVersionsCommand, se_DescribeClusterVersionsCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link DescribeClusterVersionsCommand}. | ||
*/ | ||
export interface DescribeClusterVersionsCommandInput extends DescribeClusterVersionsRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link DescribeClusterVersionsCommand}. | ||
*/ | ||
export interface DescribeClusterVersionsCommandOutput extends DescribeClusterVersionsResponse, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Lists available Kubernetes versions for Amazon EKS clusters.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { EKSClient, DescribeClusterVersionsCommand } from "@aws-sdk/client-eks"; // ES Modules import | ||
* // const { EKSClient, DescribeClusterVersionsCommand } = require("@aws-sdk/client-eks"); // CommonJS import | ||
* const client = new EKSClient(config); | ||
* const input = { // DescribeClusterVersionsRequest | ||
* clusterType: "STRING_VALUE", | ||
* maxResults: Number("int"), | ||
* nextToken: "STRING_VALUE", | ||
* defaultOnly: true || false, | ||
* includeAll: true || false, | ||
* clusterVersions: [ // StringList | ||
* "STRING_VALUE", | ||
* ], | ||
* status: "unsupported" || "standard-support" || "extended-support", | ||
* }; | ||
* const command = new DescribeClusterVersionsCommand(input); | ||
* const response = await client.send(command); | ||
* // { // DescribeClusterVersionsResponse | ||
* // nextToken: "STRING_VALUE", | ||
* // clusterVersions: [ // ClusterVersionList | ||
* // { // ClusterVersionInformation | ||
* // clusterVersion: "STRING_VALUE", | ||
* // clusterType: "STRING_VALUE", | ||
* // defaultPlatformVersion: "STRING_VALUE", | ||
* // defaultVersion: true || false, | ||
* // releaseDate: new Date("TIMESTAMP"), | ||
* // endOfStandardSupportDate: new Date("TIMESTAMP"), | ||
* // endOfExtendedSupportDate: new Date("TIMESTAMP"), | ||
* // status: "unsupported" || "standard-support" || "extended-support", | ||
* // kubernetesPatchVersion: "STRING_VALUE", | ||
* // }, | ||
* // ], | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param DescribeClusterVersionsCommandInput - {@link DescribeClusterVersionsCommandInput} | ||
* @returns {@link DescribeClusterVersionsCommandOutput} | ||
* @see {@link DescribeClusterVersionsCommandInput} for command's `input` shape. | ||
* @see {@link DescribeClusterVersionsCommandOutput} for command's `response` shape. | ||
* @see {@link EKSClientResolvedConfig | config} for EKSClient's `config` shape. | ||
* | ||
* @throws {@link InvalidParameterException} (client fault) | ||
* <p>The specified parameter is invalid. Review the available parameters for the API | ||
* request.</p> | ||
* | ||
* @throws {@link InvalidRequestException} (client fault) | ||
* <p>The request is invalid given the state of the cluster. Check the state of the cluster | ||
* and the associated operations.</p> | ||
* | ||
* @throws {@link ServerException} (server fault) | ||
* <p>These errors are usually caused by a server-side issue.</p> | ||
* | ||
* @throws {@link EKSServiceException} | ||
* <p>Base exception class for all service exceptions from EKS service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class DescribeClusterVersionsCommand extends $Command | ||
.classBuilder< | ||
DescribeClusterVersionsCommandInput, | ||
DescribeClusterVersionsCommandOutput, | ||
EKSClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep(commonParams) | ||
.m(function (this: any, Command: any, cs: any, config: EKSClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("AWSWesleyFrontend", "DescribeClusterVersions", {}) | ||
.n("EKSClient", "DescribeClusterVersionsCommand") | ||
.f(void 0, void 0) | ||
.ser(se_DescribeClusterVersionsCommand) | ||
.de(de_DescribeClusterVersionsCommand) | ||
.build() { | ||
/** @internal type navigation helper, not in runtime. */ | ||
protected declare static __types: { | ||
api: { | ||
input: DescribeClusterVersionsRequest; | ||
output: DescribeClusterVersionsResponse; | ||
}; | ||
sdk: { | ||
input: DescribeClusterVersionsCommandInput; | ||
output: DescribeClusterVersionsCommandOutput; | ||
}; | ||
}; | ||
} |
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.