-
Notifications
You must be signed in to change notification settings - Fork 546
/
DescribeNodegroupCommand.ts
171 lines (168 loc) · 7.77 KB
/
DescribeNodegroupCommand.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
// 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 { DescribeNodegroupRequest, DescribeNodegroupResponse } from "../models/models_0";
import { de_DescribeNodegroupCommand, se_DescribeNodegroupCommand } from "../protocols/Aws_restJson1";
/**
* @public
*/
export { __MetadataBearer, $Command };
/**
* @public
*
* The input for {@link DescribeNodegroupCommand}.
*/
export interface DescribeNodegroupCommandInput extends DescribeNodegroupRequest {}
/**
* @public
*
* The output of {@link DescribeNodegroupCommand}.
*/
export interface DescribeNodegroupCommandOutput extends DescribeNodegroupResponse, __MetadataBearer {}
/**
* <p>Describes a managed node group.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { EKSClient, DescribeNodegroupCommand } from "@aws-sdk/client-eks"; // ES Modules import
* // const { EKSClient, DescribeNodegroupCommand } = require("@aws-sdk/client-eks"); // CommonJS import
* const client = new EKSClient(config);
* const input = { // DescribeNodegroupRequest
* clusterName: "STRING_VALUE", // required
* nodegroupName: "STRING_VALUE", // required
* };
* const command = new DescribeNodegroupCommand(input);
* const response = await client.send(command);
* // { // DescribeNodegroupResponse
* // nodegroup: { // Nodegroup
* // nodegroupName: "STRING_VALUE",
* // nodegroupArn: "STRING_VALUE",
* // clusterName: "STRING_VALUE",
* // version: "STRING_VALUE",
* // releaseVersion: "STRING_VALUE",
* // createdAt: new Date("TIMESTAMP"),
* // modifiedAt: new Date("TIMESTAMP"),
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "DEGRADED",
* // capacityType: "ON_DEMAND" || "SPOT",
* // scalingConfig: { // NodegroupScalingConfig
* // minSize: Number("int"),
* // maxSize: Number("int"),
* // desiredSize: Number("int"),
* // },
* // instanceTypes: [ // StringList
* // "STRING_VALUE",
* // ],
* // subnets: [
* // "STRING_VALUE",
* // ],
* // remoteAccess: { // RemoteAccessConfig
* // ec2SshKey: "STRING_VALUE",
* // sourceSecurityGroups: [
* // "STRING_VALUE",
* // ],
* // },
* // amiType: "AL2_x86_64" || "AL2_x86_64_GPU" || "AL2_ARM_64" || "CUSTOM" || "BOTTLEROCKET_ARM_64" || "BOTTLEROCKET_x86_64" || "BOTTLEROCKET_ARM_64_NVIDIA" || "BOTTLEROCKET_x86_64_NVIDIA" || "WINDOWS_CORE_2019_x86_64" || "WINDOWS_FULL_2019_x86_64" || "WINDOWS_CORE_2022_x86_64" || "WINDOWS_FULL_2022_x86_64" || "AL2023_x86_64_STANDARD" || "AL2023_ARM_64_STANDARD",
* // nodeRole: "STRING_VALUE",
* // labels: { // labelsMap
* // "<keys>": "STRING_VALUE",
* // },
* // taints: [ // taintsList
* // { // Taint
* // key: "STRING_VALUE",
* // value: "STRING_VALUE",
* // effect: "NO_SCHEDULE" || "NO_EXECUTE" || "PREFER_NO_SCHEDULE",
* // },
* // ],
* // resources: { // NodegroupResources
* // autoScalingGroups: [ // AutoScalingGroupList
* // { // AutoScalingGroup
* // name: "STRING_VALUE",
* // },
* // ],
* // remoteAccessSecurityGroup: "STRING_VALUE",
* // },
* // diskSize: Number("int"),
* // health: { // NodegroupHealth
* // issues: [ // IssueList
* // { // Issue
* // code: "AutoScalingGroupNotFound" || "AutoScalingGroupInvalidConfiguration" || "Ec2SecurityGroupNotFound" || "Ec2SecurityGroupDeletionFailure" || "Ec2LaunchTemplateNotFound" || "Ec2LaunchTemplateVersionMismatch" || "Ec2SubnetNotFound" || "Ec2SubnetInvalidConfiguration" || "IamInstanceProfileNotFound" || "Ec2SubnetMissingIpv6Assignment" || "IamLimitExceeded" || "IamNodeRoleNotFound" || "NodeCreationFailure" || "AsgInstanceLaunchFailures" || "InstanceLimitExceeded" || "InsufficientFreeAddresses" || "AccessDenied" || "InternalFailure" || "ClusterUnreachable" || "AmiIdNotFound" || "AutoScalingGroupOptInRequired" || "AutoScalingGroupRateLimitExceeded" || "Ec2LaunchTemplateDeletionFailure" || "Ec2LaunchTemplateInvalidConfiguration" || "Ec2LaunchTemplateMaxLimitExceeded" || "Ec2SubnetListTooLong" || "IamThrottling" || "NodeTerminationFailure" || "PodEvictionFailure" || "SourceEc2LaunchTemplateNotFound" || "LimitExceeded" || "Unknown" || "AutoScalingGroupInstanceRefreshActive" || "KubernetesLabelInvalid" || "Ec2LaunchTemplateVersionMaxLimitExceeded",
* // message: "STRING_VALUE",
* // resourceIds: "<StringList>",
* // },
* // ],
* // },
* // updateConfig: { // NodegroupUpdateConfig
* // maxUnavailable: Number("int"),
* // maxUnavailablePercentage: Number("int"),
* // },
* // launchTemplate: { // LaunchTemplateSpecification
* // name: "STRING_VALUE",
* // version: "STRING_VALUE",
* // id: "STRING_VALUE",
* // },
* // tags: { // TagMap
* // "<keys>": "STRING_VALUE",
* // },
* // },
* // };
*
* ```
*
* @param DescribeNodegroupCommandInput - {@link DescribeNodegroupCommandInput}
* @returns {@link DescribeNodegroupCommandOutput}
* @see {@link DescribeNodegroupCommandInput} for command's `input` shape.
* @see {@link DescribeNodegroupCommandOutput} for command's `response` shape.
* @see {@link EKSClientResolvedConfig | config} for EKSClient's `config` shape.
*
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. Actions can include using an
* action or resource on behalf of an <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html">IAM principal</a> that doesn't have permissions to use
* the action or resource or specifying an identifier that is not valid.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>The specified parameter is invalid. Review the available parameters for the API
* request.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource could not be found. You can view your available clusters with
* <code>ListClusters</code>. You can view your available managed node groups with
* <code>ListNodegroups</code>. Amazon EKS clusters and node groups are Amazon Web Services Region specific.</p>
*
* @throws {@link ServerException} (server fault)
* <p>These errors are usually caused by a server-side issue.</p>
*
* @throws {@link ServiceUnavailableException} (server fault)
* <p>The service is unavailable. Back off and retry the operation.</p>
*
* @throws {@link EKSServiceException}
* <p>Base exception class for all service exceptions from EKS service.</p>
*
* @public
*/
export class DescribeNodegroupCommand extends $Command
.classBuilder<
DescribeNodegroupCommandInput,
DescribeNodegroupCommandOutput,
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", "DescribeNodegroup", {})
.n("EKSClient", "DescribeNodegroupCommand")
.f(void 0, void 0)
.ser(se_DescribeNodegroupCommand)
.de(de_DescribeNodegroupCommand)
.build() {}