@aws-sdk/client-eks 3.445.0 → 3.449.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -9
- package/dist-cjs/EKS.js +10 -0
- package/dist-cjs/commands/CreateEksAnywhereSubscriptionCommand.js +51 -0
- package/dist-cjs/commands/DeleteEksAnywhereSubscriptionCommand.js +51 -0
- package/dist-cjs/commands/DescribeEksAnywhereSubscriptionCommand.js +51 -0
- package/dist-cjs/commands/ListEksAnywhereSubscriptionsCommand.js +51 -0
- package/dist-cjs/commands/UpdateEksAnywhereSubscriptionCommand.js +51 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +21 -1
- package/dist-cjs/protocols/Aws_restJson1.js +363 -2
- package/dist-es/EKS.js +10 -0
- package/dist-es/commands/CreateEksAnywhereSubscriptionCommand.js +47 -0
- package/dist-es/commands/DeleteEksAnywhereSubscriptionCommand.js +47 -0
- package/dist-es/commands/DescribeEksAnywhereSubscriptionCommand.js +47 -0
- package/dist-es/commands/ListEksAnywhereSubscriptionsCommand.js +47 -0
- package/dist-es/commands/UpdateEksAnywhereSubscriptionCommand.js +47 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +20 -0
- package/dist-es/protocols/Aws_restJson1.js +352 -1
- package/dist-types/EKS.d.ts +43 -9
- package/dist-types/EKSClient.d.ts +15 -11
- package/dist-types/commands/AssociateEncryptionConfigCommand.d.ts +2 -2
- package/dist-types/commands/AssociateIdentityProviderConfigCommand.d.ts +2 -2
- package/dist-types/commands/CreateAddonCommand.d.ts +2 -2
- package/dist-types/commands/CreateClusterCommand.d.ts +11 -13
- package/dist-types/commands/CreateEksAnywhereSubscriptionCommand.d.ts +125 -0
- package/dist-types/commands/CreateFargateProfileCommand.d.ts +8 -9
- package/dist-types/commands/CreateNodegroupCommand.d.ts +3 -6
- package/dist-types/commands/DeleteAddonCommand.d.ts +2 -2
- package/dist-types/commands/DeleteClusterCommand.d.ts +2 -2
- package/dist-types/commands/DeleteEksAnywhereSubscriptionCommand.d.ts +114 -0
- package/dist-types/commands/DeleteFargateProfileCommand.d.ts +2 -2
- package/dist-types/commands/DeleteNodegroupCommand.d.ts +2 -2
- package/dist-types/commands/DeregisterClusterCommand.d.ts +7 -6
- package/dist-types/commands/DescribeAddonCommand.d.ts +2 -2
- package/dist-types/commands/DescribeClusterCommand.d.ts +2 -2
- package/dist-types/commands/DescribeEksAnywhereSubscriptionCommand.d.ts +110 -0
- package/dist-types/commands/DescribeFargateProfileCommand.d.ts +2 -2
- package/dist-types/commands/DescribeIdentityProviderConfigCommand.d.ts +2 -2
- package/dist-types/commands/DescribeNodegroupCommand.d.ts +2 -2
- package/dist-types/commands/DescribeUpdateCommand.d.ts +2 -2
- package/dist-types/commands/DisassociateIdentityProviderConfigCommand.d.ts +4 -4
- package/dist-types/commands/ListAddonsCommand.d.ts +3 -3
- package/dist-types/commands/ListClustersCommand.d.ts +2 -2
- package/dist-types/commands/ListEksAnywhereSubscriptionsCommand.d.ts +115 -0
- package/dist-types/commands/ListFargateProfilesCommand.d.ts +2 -2
- package/dist-types/commands/ListIdentityProviderConfigsCommand.d.ts +2 -2
- package/dist-types/commands/ListNodegroupsCommand.d.ts +2 -2
- package/dist-types/commands/ListUpdatesCommand.d.ts +2 -2
- package/dist-types/commands/RegisterClusterCommand.d.ts +11 -10
- package/dist-types/commands/UpdateAddonCommand.d.ts +2 -2
- package/dist-types/commands/UpdateClusterConfigCommand.d.ts +5 -5
- package/dist-types/commands/UpdateClusterVersionCommand.d.ts +8 -8
- package/dist-types/commands/UpdateEksAnywhereSubscriptionCommand.d.ts +118 -0
- package/dist-types/commands/UpdateNodegroupConfigCommand.d.ts +4 -4
- package/dist-types/commands/UpdateNodegroupVersionCommand.d.ts +3 -4
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/index.d.ts +8 -9
- package/dist-types/models/models_0.d.ts +443 -102
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/EKS.d.ts +85 -0
- package/dist-types/ts3.4/EKSClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateEksAnywhereSubscriptionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteEksAnywhereSubscriptionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeEksAnywhereSubscriptionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListEksAnywhereSubscriptionsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateEksAnywhereSubscriptionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +85 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/package.json +12 -12
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_DescribeEksAnywhereSubscriptionCommand, se_DescribeEksAnywhereSubscriptionCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DescribeEksAnywhereSubscriptionCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DescribeEksAnywhereSubscriptionCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "EKSClient";
|
|
26
|
+
const commandName = "DescribeEksAnywhereSubscriptionCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AWSWesleyFrontend",
|
|
35
|
+
operation: "DescribeEksAnywhereSubscription",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_DescribeEksAnywhereSubscriptionCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_DescribeEksAnywhereSubscriptionCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_ListEksAnywhereSubscriptionsCommand, se_ListEksAnywhereSubscriptionsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListEksAnywhereSubscriptionsCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListEksAnywhereSubscriptionsCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "EKSClient";
|
|
26
|
+
const commandName = "ListEksAnywhereSubscriptionsCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AWSWesleyFrontend",
|
|
35
|
+
operation: "ListEksAnywhereSubscriptions",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_ListEksAnywhereSubscriptionsCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_ListEksAnywhereSubscriptionsCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_UpdateEksAnywhereSubscriptionCommand, se_UpdateEksAnywhereSubscriptionCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateEksAnywhereSubscriptionCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateEksAnywhereSubscriptionCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "EKSClient";
|
|
26
|
+
const commandName = "UpdateEksAnywhereSubscriptionCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AWSWesleyFrontend",
|
|
35
|
+
operation: "UpdateEksAnywhereSubscription",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_UpdateEksAnywhereSubscriptionCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_UpdateEksAnywhereSubscriptionCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -2,10 +2,12 @@ export * from "./AssociateEncryptionConfigCommand";
|
|
|
2
2
|
export * from "./AssociateIdentityProviderConfigCommand";
|
|
3
3
|
export * from "./CreateAddonCommand";
|
|
4
4
|
export * from "./CreateClusterCommand";
|
|
5
|
+
export * from "./CreateEksAnywhereSubscriptionCommand";
|
|
5
6
|
export * from "./CreateFargateProfileCommand";
|
|
6
7
|
export * from "./CreateNodegroupCommand";
|
|
7
8
|
export * from "./DeleteAddonCommand";
|
|
8
9
|
export * from "./DeleteClusterCommand";
|
|
10
|
+
export * from "./DeleteEksAnywhereSubscriptionCommand";
|
|
9
11
|
export * from "./DeleteFargateProfileCommand";
|
|
10
12
|
export * from "./DeleteNodegroupCommand";
|
|
11
13
|
export * from "./DeregisterClusterCommand";
|
|
@@ -13,6 +15,7 @@ export * from "./DescribeAddonCommand";
|
|
|
13
15
|
export * from "./DescribeAddonConfigurationCommand";
|
|
14
16
|
export * from "./DescribeAddonVersionsCommand";
|
|
15
17
|
export * from "./DescribeClusterCommand";
|
|
18
|
+
export * from "./DescribeEksAnywhereSubscriptionCommand";
|
|
16
19
|
export * from "./DescribeFargateProfileCommand";
|
|
17
20
|
export * from "./DescribeIdentityProviderConfigCommand";
|
|
18
21
|
export * from "./DescribeNodegroupCommand";
|
|
@@ -20,6 +23,7 @@ export * from "./DescribeUpdateCommand";
|
|
|
20
23
|
export * from "./DisassociateIdentityProviderConfigCommand";
|
|
21
24
|
export * from "./ListAddonsCommand";
|
|
22
25
|
export * from "./ListClustersCommand";
|
|
26
|
+
export * from "./ListEksAnywhereSubscriptionsCommand";
|
|
23
27
|
export * from "./ListFargateProfilesCommand";
|
|
24
28
|
export * from "./ListIdentityProviderConfigsCommand";
|
|
25
29
|
export * from "./ListNodegroupsCommand";
|
|
@@ -31,5 +35,6 @@ export * from "./UntagResourceCommand";
|
|
|
31
35
|
export * from "./UpdateAddonCommand";
|
|
32
36
|
export * from "./UpdateClusterConfigCommand";
|
|
33
37
|
export * from "./UpdateClusterVersionCommand";
|
|
38
|
+
export * from "./UpdateEksAnywhereSubscriptionCommand";
|
|
34
39
|
export * from "./UpdateNodegroupConfigCommand";
|
|
35
40
|
export * from "./UpdateNodegroupVersionCommand";
|
|
@@ -122,6 +122,7 @@ export class ClientException extends __BaseException {
|
|
|
122
122
|
this.clusterName = opts.clusterName;
|
|
123
123
|
this.nodegroupName = opts.nodegroupName;
|
|
124
124
|
this.addonName = opts.addonName;
|
|
125
|
+
this.subscriptionId = opts.subscriptionId;
|
|
125
126
|
}
|
|
126
127
|
}
|
|
127
128
|
export class InvalidParameterException extends __BaseException {
|
|
@@ -138,6 +139,7 @@ export class InvalidParameterException extends __BaseException {
|
|
|
138
139
|
this.nodegroupName = opts.nodegroupName;
|
|
139
140
|
this.fargateProfileName = opts.fargateProfileName;
|
|
140
141
|
this.addonName = opts.addonName;
|
|
142
|
+
this.subscriptionId = opts.subscriptionId;
|
|
141
143
|
}
|
|
142
144
|
}
|
|
143
145
|
export class InvalidRequestException extends __BaseException {
|
|
@@ -153,6 +155,7 @@ export class InvalidRequestException extends __BaseException {
|
|
|
153
155
|
this.clusterName = opts.clusterName;
|
|
154
156
|
this.nodegroupName = opts.nodegroupName;
|
|
155
157
|
this.addonName = opts.addonName;
|
|
158
|
+
this.subscriptionId = opts.subscriptionId;
|
|
156
159
|
}
|
|
157
160
|
}
|
|
158
161
|
export class ResourceInUseException extends __BaseException {
|
|
@@ -184,6 +187,7 @@ export class ResourceNotFoundException extends __BaseException {
|
|
|
184
187
|
this.nodegroupName = opts.nodegroupName;
|
|
185
188
|
this.fargateProfileName = opts.fargateProfileName;
|
|
186
189
|
this.addonName = opts.addonName;
|
|
190
|
+
this.subscriptionId = opts.subscriptionId;
|
|
187
191
|
}
|
|
188
192
|
}
|
|
189
193
|
export class ServerException extends __BaseException {
|
|
@@ -199,6 +203,7 @@ export class ServerException extends __BaseException {
|
|
|
199
203
|
this.clusterName = opts.clusterName;
|
|
200
204
|
this.nodegroupName = opts.nodegroupName;
|
|
201
205
|
this.addonName = opts.addonName;
|
|
206
|
+
this.subscriptionId = opts.subscriptionId;
|
|
202
207
|
}
|
|
203
208
|
}
|
|
204
209
|
export const ResolveConflicts = {
|
|
@@ -258,6 +263,7 @@ export class ResourceLimitExceededException extends __BaseException {
|
|
|
258
263
|
Object.setPrototypeOf(this, ResourceLimitExceededException.prototype);
|
|
259
264
|
this.clusterName = opts.clusterName;
|
|
260
265
|
this.nodegroupName = opts.nodegroupName;
|
|
266
|
+
this.subscriptionId = opts.subscriptionId;
|
|
261
267
|
}
|
|
262
268
|
}
|
|
263
269
|
export class ServiceUnavailableException extends __BaseException {
|
|
@@ -287,6 +293,12 @@ export class UnsupportedAvailabilityZoneException extends __BaseException {
|
|
|
287
293
|
this.validZones = opts.validZones;
|
|
288
294
|
}
|
|
289
295
|
}
|
|
296
|
+
export const EksAnywhereSubscriptionLicenseType = {
|
|
297
|
+
Cluster: "Cluster",
|
|
298
|
+
};
|
|
299
|
+
export const EksAnywhereSubscriptionTermUnit = {
|
|
300
|
+
MONTHS: "MONTHS",
|
|
301
|
+
};
|
|
290
302
|
export const FargateProfileStatus = {
|
|
291
303
|
ACTIVE: "ACTIVE",
|
|
292
304
|
CREATE_FAILED: "CREATE_FAILED",
|
|
@@ -352,6 +364,14 @@ export const ConfigStatus = {
|
|
|
352
364
|
CREATING: "CREATING",
|
|
353
365
|
DELETING: "DELETING",
|
|
354
366
|
};
|
|
367
|
+
export const EksAnywhereSubscriptionStatus = {
|
|
368
|
+
ACTIVE: "ACTIVE",
|
|
369
|
+
CREATING: "CREATING",
|
|
370
|
+
DELETING: "DELETING",
|
|
371
|
+
EXPIRED: "EXPIRED",
|
|
372
|
+
EXPIRING: "EXPIRING",
|
|
373
|
+
UPDATING: "UPDATING",
|
|
374
|
+
};
|
|
355
375
|
export class BadRequestException extends __BaseException {
|
|
356
376
|
constructor(opts) {
|
|
357
377
|
super({
|