@aws-sdk/client-eks 3.451.0 → 3.458.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.
Files changed (53) hide show
  1. package/README.md +80 -40
  2. package/dist-cjs/EKS.js +10 -0
  3. package/dist-cjs/commands/CreatePodIdentityAssociationCommand.js +51 -0
  4. package/dist-cjs/commands/DeletePodIdentityAssociationCommand.js +51 -0
  5. package/dist-cjs/commands/DescribePodIdentityAssociationCommand.js +51 -0
  6. package/dist-cjs/commands/ListPodIdentityAssociationsCommand.js +51 -0
  7. package/dist-cjs/commands/UpdatePodIdentityAssociationCommand.js +51 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/pagination/ListEksAnywhereSubscriptionsPaginator.js +29 -0
  10. package/dist-cjs/pagination/ListPodIdentityAssociationsPaginator.js +29 -0
  11. package/dist-cjs/pagination/index.js +2 -0
  12. package/dist-cjs/protocols/Aws_restJson1.js +352 -2
  13. package/dist-es/EKS.js +10 -0
  14. package/dist-es/commands/CreatePodIdentityAssociationCommand.js +47 -0
  15. package/dist-es/commands/DeletePodIdentityAssociationCommand.js +47 -0
  16. package/dist-es/commands/DescribePodIdentityAssociationCommand.js +47 -0
  17. package/dist-es/commands/ListPodIdentityAssociationsCommand.js +47 -0
  18. package/dist-es/commands/UpdatePodIdentityAssociationCommand.js +47 -0
  19. package/dist-es/commands/index.js +5 -0
  20. package/dist-es/pagination/ListEksAnywhereSubscriptionsPaginator.js +25 -0
  21. package/dist-es/pagination/ListPodIdentityAssociationsPaginator.js +25 -0
  22. package/dist-es/pagination/index.js +2 -0
  23. package/dist-es/protocols/Aws_restJson1.js +340 -0
  24. package/dist-types/EKS.d.ts +35 -0
  25. package/dist-types/EKSClient.d.ts +7 -2
  26. package/dist-types/commands/CreateClusterCommand.d.ts +19 -0
  27. package/dist-types/commands/CreatePodIdentityAssociationCommand.d.ts +125 -0
  28. package/dist-types/commands/DeleteEksAnywhereSubscriptionCommand.d.ts +2 -2
  29. package/dist-types/commands/DeletePodIdentityAssociationCommand.d.ts +104 -0
  30. package/dist-types/commands/DescribePodIdentityAssociationCommand.d.ts +107 -0
  31. package/dist-types/commands/ListPodIdentityAssociationsCommand.d.ts +104 -0
  32. package/dist-types/commands/UpdateClusterConfigCommand.d.ts +8 -4
  33. package/dist-types/commands/UpdatePodIdentityAssociationCommand.d.ts +108 -0
  34. package/dist-types/commands/index.d.ts +5 -0
  35. package/dist-types/models/models_0.d.ts +450 -22
  36. package/dist-types/pagination/ListEksAnywhereSubscriptionsPaginator.d.ts +7 -0
  37. package/dist-types/pagination/ListPodIdentityAssociationsPaginator.d.ts +7 -0
  38. package/dist-types/pagination/index.d.ts +2 -0
  39. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  40. package/dist-types/ts3.4/EKS.d.ts +85 -0
  41. package/dist-types/ts3.4/EKSClient.d.ts +32 -2
  42. package/dist-types/ts3.4/commands/CreatePodIdentityAssociationCommand.d.ts +42 -0
  43. package/dist-types/ts3.4/commands/DeletePodIdentityAssociationCommand.d.ts +42 -0
  44. package/dist-types/ts3.4/commands/DescribePodIdentityAssociationCommand.d.ts +42 -0
  45. package/dist-types/ts3.4/commands/ListPodIdentityAssociationsCommand.d.ts +42 -0
  46. package/dist-types/ts3.4/commands/UpdatePodIdentityAssociationCommand.d.ts +42 -0
  47. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +63 -0
  49. package/dist-types/ts3.4/pagination/ListEksAnywhereSubscriptionsPaginator.d.ts +11 -0
  50. package/dist-types/ts3.4/pagination/ListPodIdentityAssociationsPaginator.d.ts +11 -0
  51. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  52. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  53. package/package.json +3 -3
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeletePodIdentityAssociationCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class DeletePodIdentityAssociationCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeletePodIdentityAssociationCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "EKSClient";
29
+ const commandName = "DeletePodIdentityAssociationCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AWSWesleyFrontend",
38
+ operation: "DeletePodIdentityAssociation",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_DeletePodIdentityAssociationCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_DeletePodIdentityAssociationCommand)(output, context);
49
+ }
50
+ }
51
+ exports.DeletePodIdentityAssociationCommand = DeletePodIdentityAssociationCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribePodIdentityAssociationCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class DescribePodIdentityAssociationCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribePodIdentityAssociationCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "EKSClient";
29
+ const commandName = "DescribePodIdentityAssociationCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AWSWesleyFrontend",
38
+ operation: "DescribePodIdentityAssociation",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_DescribePodIdentityAssociationCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_DescribePodIdentityAssociationCommand)(output, context);
49
+ }
50
+ }
51
+ exports.DescribePodIdentityAssociationCommand = DescribePodIdentityAssociationCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListPodIdentityAssociationsCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class ListPodIdentityAssociationsCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListPodIdentityAssociationsCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "EKSClient";
29
+ const commandName = "ListPodIdentityAssociationsCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AWSWesleyFrontend",
38
+ operation: "ListPodIdentityAssociations",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_ListPodIdentityAssociationsCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_ListPodIdentityAssociationsCommand)(output, context);
49
+ }
50
+ }
51
+ exports.ListPodIdentityAssociationsCommand = ListPodIdentityAssociationsCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdatePodIdentityAssociationCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class UpdatePodIdentityAssociationCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdatePodIdentityAssociationCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "EKSClient";
29
+ const commandName = "UpdatePodIdentityAssociationCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AWSWesleyFrontend",
38
+ operation: "UpdatePodIdentityAssociation",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_UpdatePodIdentityAssociationCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_UpdatePodIdentityAssociationCommand)(output, context);
49
+ }
50
+ }
51
+ exports.UpdatePodIdentityAssociationCommand = UpdatePodIdentityAssociationCommand;
@@ -8,11 +8,13 @@ tslib_1.__exportStar(require("./CreateClusterCommand"), exports);
8
8
  tslib_1.__exportStar(require("./CreateEksAnywhereSubscriptionCommand"), exports);
9
9
  tslib_1.__exportStar(require("./CreateFargateProfileCommand"), exports);
10
10
  tslib_1.__exportStar(require("./CreateNodegroupCommand"), exports);
11
+ tslib_1.__exportStar(require("./CreatePodIdentityAssociationCommand"), exports);
11
12
  tslib_1.__exportStar(require("./DeleteAddonCommand"), exports);
12
13
  tslib_1.__exportStar(require("./DeleteClusterCommand"), exports);
13
14
  tslib_1.__exportStar(require("./DeleteEksAnywhereSubscriptionCommand"), exports);
14
15
  tslib_1.__exportStar(require("./DeleteFargateProfileCommand"), exports);
15
16
  tslib_1.__exportStar(require("./DeleteNodegroupCommand"), exports);
17
+ tslib_1.__exportStar(require("./DeletePodIdentityAssociationCommand"), exports);
16
18
  tslib_1.__exportStar(require("./DeregisterClusterCommand"), exports);
17
19
  tslib_1.__exportStar(require("./DescribeAddonCommand"), exports);
18
20
  tslib_1.__exportStar(require("./DescribeAddonConfigurationCommand"), exports);
@@ -22,6 +24,7 @@ tslib_1.__exportStar(require("./DescribeEksAnywhereSubscriptionCommand"), export
22
24
  tslib_1.__exportStar(require("./DescribeFargateProfileCommand"), exports);
23
25
  tslib_1.__exportStar(require("./DescribeIdentityProviderConfigCommand"), exports);
24
26
  tslib_1.__exportStar(require("./DescribeNodegroupCommand"), exports);
27
+ tslib_1.__exportStar(require("./DescribePodIdentityAssociationCommand"), exports);
25
28
  tslib_1.__exportStar(require("./DescribeUpdateCommand"), exports);
26
29
  tslib_1.__exportStar(require("./DisassociateIdentityProviderConfigCommand"), exports);
27
30
  tslib_1.__exportStar(require("./ListAddonsCommand"), exports);
@@ -30,6 +33,7 @@ tslib_1.__exportStar(require("./ListEksAnywhereSubscriptionsCommand"), exports);
30
33
  tslib_1.__exportStar(require("./ListFargateProfilesCommand"), exports);
31
34
  tslib_1.__exportStar(require("./ListIdentityProviderConfigsCommand"), exports);
32
35
  tslib_1.__exportStar(require("./ListNodegroupsCommand"), exports);
36
+ tslib_1.__exportStar(require("./ListPodIdentityAssociationsCommand"), exports);
33
37
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
34
38
  tslib_1.__exportStar(require("./ListUpdatesCommand"), exports);
35
39
  tslib_1.__exportStar(require("./RegisterClusterCommand"), exports);
@@ -41,3 +45,4 @@ tslib_1.__exportStar(require("./UpdateClusterVersionCommand"), exports);
41
45
  tslib_1.__exportStar(require("./UpdateEksAnywhereSubscriptionCommand"), exports);
42
46
  tslib_1.__exportStar(require("./UpdateNodegroupConfigCommand"), exports);
43
47
  tslib_1.__exportStar(require("./UpdateNodegroupVersionCommand"), exports);
48
+ tslib_1.__exportStar(require("./UpdatePodIdentityAssociationCommand"), exports);
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListEksAnywhereSubscriptions = void 0;
4
+ const ListEksAnywhereSubscriptionsCommand_1 = require("../commands/ListEksAnywhereSubscriptionsCommand");
5
+ const EKSClient_1 = require("../EKSClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListEksAnywhereSubscriptionsCommand_1.ListEksAnywhereSubscriptionsCommand(input), ...args);
8
+ };
9
+ async function* paginateListEksAnywhereSubscriptions(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof EKSClient_1.EKSClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected EKS | EKSClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListEksAnywhereSubscriptions = paginateListEksAnywhereSubscriptions;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListPodIdentityAssociations = void 0;
4
+ const ListPodIdentityAssociationsCommand_1 = require("../commands/ListPodIdentityAssociationsCommand");
5
+ const EKSClient_1 = require("../EKSClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListPodIdentityAssociationsCommand_1.ListPodIdentityAssociationsCommand(input), ...args);
8
+ };
9
+ async function* paginateListPodIdentityAssociations(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof EKSClient_1.EKSClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected EKS | EKSClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListPodIdentityAssociations = paginateListPodIdentityAssociations;
@@ -5,7 +5,9 @@ tslib_1.__exportStar(require("./DescribeAddonVersionsPaginator"), exports);
5
5
  tslib_1.__exportStar(require("./Interfaces"), exports);
6
6
  tslib_1.__exportStar(require("./ListAddonsPaginator"), exports);
7
7
  tslib_1.__exportStar(require("./ListClustersPaginator"), exports);
8
+ tslib_1.__exportStar(require("./ListEksAnywhereSubscriptionsPaginator"), exports);
8
9
  tslib_1.__exportStar(require("./ListFargateProfilesPaginator"), exports);
9
10
  tslib_1.__exportStar(require("./ListIdentityProviderConfigsPaginator"), exports);
10
11
  tslib_1.__exportStar(require("./ListNodegroupsPaginator"), exports);
12
+ tslib_1.__exportStar(require("./ListPodIdentityAssociationsPaginator"), exports);
11
13
  tslib_1.__exportStar(require("./ListUpdatesPaginator"), exports);