@aws-sdk/client-eks 3.476.0 → 3.478.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 (84) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/EKS.js +4 -0
  3. package/dist-cjs/commands/DescribeInsightCommand.js +51 -0
  4. package/dist-cjs/commands/ListInsightsCommand.js +51 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +10 -1
  7. package/dist-cjs/pagination/DescribeAddonVersionsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListAccessEntriesPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListAccessPoliciesPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListAddonsPaginator.js +2 -24
  11. package/dist-cjs/pagination/ListAssociatedAccessPoliciesPaginator.js +2 -24
  12. package/dist-cjs/pagination/ListClustersPaginator.js +2 -24
  13. package/dist-cjs/pagination/ListEksAnywhereSubscriptionsPaginator.js +2 -24
  14. package/dist-cjs/pagination/ListFargateProfilesPaginator.js +2 -24
  15. package/dist-cjs/pagination/ListIdentityProviderConfigsPaginator.js +2 -24
  16. package/dist-cjs/pagination/ListInsightsPaginator.js +7 -0
  17. package/dist-cjs/pagination/ListNodegroupsPaginator.js +2 -24
  18. package/dist-cjs/pagination/ListPodIdentityAssociationsPaginator.js +2 -24
  19. package/dist-cjs/pagination/ListUpdatesPaginator.js +2 -24
  20. package/dist-cjs/pagination/index.js +1 -0
  21. package/dist-cjs/protocols/Aws_restJson1.js +533 -751
  22. package/dist-es/EKS.js +4 -0
  23. package/dist-es/commands/DescribeInsightCommand.js +47 -0
  24. package/dist-es/commands/ListInsightsCommand.js +47 -0
  25. package/dist-es/commands/index.js +2 -0
  26. package/dist-es/models/models_0.js +9 -0
  27. package/dist-es/pagination/DescribeAddonVersionsPaginator.js +2 -23
  28. package/dist-es/pagination/ListAccessEntriesPaginator.js +2 -23
  29. package/dist-es/pagination/ListAccessPoliciesPaginator.js +2 -23
  30. package/dist-es/pagination/ListAddonsPaginator.js +2 -23
  31. package/dist-es/pagination/ListAssociatedAccessPoliciesPaginator.js +2 -23
  32. package/dist-es/pagination/ListClustersPaginator.js +2 -23
  33. package/dist-es/pagination/ListEksAnywhereSubscriptionsPaginator.js +2 -23
  34. package/dist-es/pagination/ListFargateProfilesPaginator.js +2 -23
  35. package/dist-es/pagination/ListIdentityProviderConfigsPaginator.js +2 -23
  36. package/dist-es/pagination/ListInsightsPaginator.js +4 -0
  37. package/dist-es/pagination/ListNodegroupsPaginator.js +2 -23
  38. package/dist-es/pagination/ListPodIdentityAssociationsPaginator.js +2 -23
  39. package/dist-es/pagination/ListUpdatesPaginator.js +2 -23
  40. package/dist-es/pagination/index.js +1 -0
  41. package/dist-es/protocols/Aws_restJson1.js +527 -749
  42. package/dist-types/EKS.d.ts +14 -0
  43. package/dist-types/EKSClient.d.ts +4 -2
  44. package/dist-types/commands/DescribeInsightCommand.d.ts +133 -0
  45. package/dist-types/commands/ListInsightsCommand.d.ts +117 -0
  46. package/dist-types/commands/index.d.ts +2 -0
  47. package/dist-types/models/models_0.d.ts +359 -5
  48. package/dist-types/pagination/DescribeAddonVersionsPaginator.d.ts +1 -1
  49. package/dist-types/pagination/ListAccessEntriesPaginator.d.ts +1 -1
  50. package/dist-types/pagination/ListAccessPoliciesPaginator.d.ts +1 -1
  51. package/dist-types/pagination/ListAddonsPaginator.d.ts +1 -1
  52. package/dist-types/pagination/ListAssociatedAccessPoliciesPaginator.d.ts +1 -1
  53. package/dist-types/pagination/ListClustersPaginator.d.ts +1 -1
  54. package/dist-types/pagination/ListEksAnywhereSubscriptionsPaginator.d.ts +1 -1
  55. package/dist-types/pagination/ListFargateProfilesPaginator.d.ts +1 -1
  56. package/dist-types/pagination/ListIdentityProviderConfigsPaginator.d.ts +1 -1
  57. package/dist-types/pagination/ListInsightsPaginator.d.ts +7 -0
  58. package/dist-types/pagination/ListNodegroupsPaginator.d.ts +1 -1
  59. package/dist-types/pagination/ListPodIdentityAssociationsPaginator.d.ts +1 -1
  60. package/dist-types/pagination/ListUpdatesPaginator.d.ts +1 -1
  61. package/dist-types/pagination/index.d.ts +1 -0
  62. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  63. package/dist-types/ts3.4/EKS.d.ts +34 -0
  64. package/dist-types/ts3.4/EKSClient.d.ts +12 -0
  65. package/dist-types/ts3.4/commands/DescribeInsightCommand.d.ts +38 -0
  66. package/dist-types/ts3.4/commands/ListInsightsCommand.d.ts +35 -0
  67. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  68. package/dist-types/ts3.4/models/models_0.d.ts +82 -0
  69. package/dist-types/ts3.4/pagination/DescribeAddonVersionsPaginator.d.ts +3 -3
  70. package/dist-types/ts3.4/pagination/ListAccessEntriesPaginator.d.ts +3 -3
  71. package/dist-types/ts3.4/pagination/ListAccessPoliciesPaginator.d.ts +3 -3
  72. package/dist-types/ts3.4/pagination/ListAddonsPaginator.d.ts +3 -3
  73. package/dist-types/ts3.4/pagination/ListAssociatedAccessPoliciesPaginator.d.ts +3 -3
  74. package/dist-types/ts3.4/pagination/ListClustersPaginator.d.ts +3 -3
  75. package/dist-types/ts3.4/pagination/ListEksAnywhereSubscriptionsPaginator.d.ts +3 -3
  76. package/dist-types/ts3.4/pagination/ListFargateProfilesPaginator.d.ts +3 -3
  77. package/dist-types/ts3.4/pagination/ListIdentityProviderConfigsPaginator.d.ts +3 -3
  78. package/dist-types/ts3.4/pagination/ListInsightsPaginator.d.ts +11 -0
  79. package/dist-types/ts3.4/pagination/ListNodegroupsPaginator.d.ts +3 -3
  80. package/dist-types/ts3.4/pagination/ListPodIdentityAssociationsPaginator.d.ts +3 -3
  81. package/dist-types/ts3.4/pagination/ListUpdatesPaginator.d.ts +3 -3
  82. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  83. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  84. package/package.json +7 -6
package/README.md CHANGED
@@ -418,6 +418,14 @@ DescribeIdentityProviderConfig
418
418
 
419
419
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/eks/command/DescribeIdentityProviderConfigCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-eks/Interface/DescribeIdentityProviderConfigCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-eks/Interface/DescribeIdentityProviderConfigCommandOutput/)
420
420
 
421
+ </details>
422
+ <details>
423
+ <summary>
424
+ DescribeInsight
425
+ </summary>
426
+
427
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/eks/command/DescribeInsightCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-eks/Interface/DescribeInsightCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-eks/Interface/DescribeInsightCommandOutput/)
428
+
421
429
  </details>
422
430
  <details>
423
431
  <summary>
@@ -522,6 +530,14 @@ ListIdentityProviderConfigs
522
530
 
523
531
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/eks/command/ListIdentityProviderConfigsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-eks/Interface/ListIdentityProviderConfigsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-eks/Interface/ListIdentityProviderConfigsCommandOutput/)
524
532
 
533
+ </details>
534
+ <details>
535
+ <summary>
536
+ ListInsights
537
+ </summary>
538
+
539
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/eks/command/ListInsightsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-eks/Interface/ListInsightsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-eks/Interface/ListInsightsCommandOutput/)
540
+
525
541
  </details>
526
542
  <details>
527
543
  <summary>
package/dist-cjs/EKS.js CHANGED
@@ -28,6 +28,7 @@ const DescribeClusterCommand_1 = require("./commands/DescribeClusterCommand");
28
28
  const DescribeEksAnywhereSubscriptionCommand_1 = require("./commands/DescribeEksAnywhereSubscriptionCommand");
29
29
  const DescribeFargateProfileCommand_1 = require("./commands/DescribeFargateProfileCommand");
30
30
  const DescribeIdentityProviderConfigCommand_1 = require("./commands/DescribeIdentityProviderConfigCommand");
31
+ const DescribeInsightCommand_1 = require("./commands/DescribeInsightCommand");
31
32
  const DescribeNodegroupCommand_1 = require("./commands/DescribeNodegroupCommand");
32
33
  const DescribePodIdentityAssociationCommand_1 = require("./commands/DescribePodIdentityAssociationCommand");
33
34
  const DescribeUpdateCommand_1 = require("./commands/DescribeUpdateCommand");
@@ -41,6 +42,7 @@ const ListClustersCommand_1 = require("./commands/ListClustersCommand");
41
42
  const ListEksAnywhereSubscriptionsCommand_1 = require("./commands/ListEksAnywhereSubscriptionsCommand");
42
43
  const ListFargateProfilesCommand_1 = require("./commands/ListFargateProfilesCommand");
43
44
  const ListIdentityProviderConfigsCommand_1 = require("./commands/ListIdentityProviderConfigsCommand");
45
+ const ListInsightsCommand_1 = require("./commands/ListInsightsCommand");
44
46
  const ListNodegroupsCommand_1 = require("./commands/ListNodegroupsCommand");
45
47
  const ListPodIdentityAssociationsCommand_1 = require("./commands/ListPodIdentityAssociationsCommand");
46
48
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
@@ -84,6 +86,7 @@ const commands = {
84
86
  DescribeEksAnywhereSubscriptionCommand: DescribeEksAnywhereSubscriptionCommand_1.DescribeEksAnywhereSubscriptionCommand,
85
87
  DescribeFargateProfileCommand: DescribeFargateProfileCommand_1.DescribeFargateProfileCommand,
86
88
  DescribeIdentityProviderConfigCommand: DescribeIdentityProviderConfigCommand_1.DescribeIdentityProviderConfigCommand,
89
+ DescribeInsightCommand: DescribeInsightCommand_1.DescribeInsightCommand,
87
90
  DescribeNodegroupCommand: DescribeNodegroupCommand_1.DescribeNodegroupCommand,
88
91
  DescribePodIdentityAssociationCommand: DescribePodIdentityAssociationCommand_1.DescribePodIdentityAssociationCommand,
89
92
  DescribeUpdateCommand: DescribeUpdateCommand_1.DescribeUpdateCommand,
@@ -97,6 +100,7 @@ const commands = {
97
100
  ListEksAnywhereSubscriptionsCommand: ListEksAnywhereSubscriptionsCommand_1.ListEksAnywhereSubscriptionsCommand,
98
101
  ListFargateProfilesCommand: ListFargateProfilesCommand_1.ListFargateProfilesCommand,
99
102
  ListIdentityProviderConfigsCommand: ListIdentityProviderConfigsCommand_1.ListIdentityProviderConfigsCommand,
103
+ ListInsightsCommand: ListInsightsCommand_1.ListInsightsCommand,
100
104
  ListNodegroupsCommand: ListNodegroupsCommand_1.ListNodegroupsCommand,
101
105
  ListPodIdentityAssociationsCommand: ListPodIdentityAssociationsCommand_1.ListPodIdentityAssociationsCommand,
102
106
  ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeInsightCommand = 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 DescribeInsightCommand 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, DescribeInsightCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "EKSClient";
29
+ const commandName = "DescribeInsightCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AWSWesleyFrontend",
38
+ operation: "DescribeInsight",
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_DescribeInsightCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_DescribeInsightCommand)(output, context);
49
+ }
50
+ }
51
+ exports.DescribeInsightCommand = DescribeInsightCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListInsightsCommand = 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 ListInsightsCommand 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, ListInsightsCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "EKSClient";
29
+ const commandName = "ListInsightsCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AWSWesleyFrontend",
38
+ operation: "ListInsights",
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_ListInsightsCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_ListInsightsCommand)(output, context);
49
+ }
50
+ }
51
+ exports.ListInsightsCommand = ListInsightsCommand;
@@ -27,6 +27,7 @@ tslib_1.__exportStar(require("./DescribeClusterCommand"), exports);
27
27
  tslib_1.__exportStar(require("./DescribeEksAnywhereSubscriptionCommand"), exports);
28
28
  tslib_1.__exportStar(require("./DescribeFargateProfileCommand"), exports);
29
29
  tslib_1.__exportStar(require("./DescribeIdentityProviderConfigCommand"), exports);
30
+ tslib_1.__exportStar(require("./DescribeInsightCommand"), exports);
30
31
  tslib_1.__exportStar(require("./DescribeNodegroupCommand"), exports);
31
32
  tslib_1.__exportStar(require("./DescribePodIdentityAssociationCommand"), exports);
32
33
  tslib_1.__exportStar(require("./DescribeUpdateCommand"), exports);
@@ -40,6 +41,7 @@ tslib_1.__exportStar(require("./ListClustersCommand"), exports);
40
41
  tslib_1.__exportStar(require("./ListEksAnywhereSubscriptionsCommand"), exports);
41
42
  tslib_1.__exportStar(require("./ListFargateProfilesCommand"), exports);
42
43
  tslib_1.__exportStar(require("./ListIdentityProviderConfigsCommand"), exports);
44
+ tslib_1.__exportStar(require("./ListInsightsCommand"), exports);
43
45
  tslib_1.__exportStar(require("./ListNodegroupsCommand"), exports);
44
46
  tslib_1.__exportStar(require("./ListPodIdentityAssociationsCommand"), exports);
45
47
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResourcePropagationDelayException = exports.ConnectorConfigProvider = exports.NotFoundException = exports.BadRequestException = exports.EksAnywhereSubscriptionStatus = exports.ConfigStatus = exports.NodegroupStatus = exports.NodegroupIssueCode = exports.TaintEffect = exports.CapacityTypes = exports.FargateProfileStatus = exports.EksAnywhereSubscriptionTermUnit = exports.EksAnywhereSubscriptionLicenseType = exports.UnsupportedAvailabilityZoneException = exports.ServiceUnavailableException = exports.ClusterStatus = exports.ClusterIssueCode = exports.LogType = exports.IpFamily = exports.ResolveConflicts = exports.ResourceLimitExceededException = exports.ResourceInUseException = exports.ClientException = exports.UpdateType = exports.UpdateStatus = exports.UpdateParamType = exports.ErrorCode = exports.ServerException = exports.ResourceNotFoundException = exports.InvalidRequestException = exports.InvalidParameterException = exports.AMITypes = exports.AddonStatus = exports.AddonIssueCode = exports.AccessScopeType = exports.AccessDeniedException = exports.AuthenticationMode = void 0;
3
+ exports.ResourcePropagationDelayException = exports.ConnectorConfigProvider = exports.NotFoundException = exports.BadRequestException = exports.EksAnywhereSubscriptionStatus = exports.InsightStatusValue = exports.Category = exports.ConfigStatus = exports.NodegroupStatus = exports.NodegroupIssueCode = exports.TaintEffect = exports.CapacityTypes = exports.FargateProfileStatus = exports.EksAnywhereSubscriptionTermUnit = exports.EksAnywhereSubscriptionLicenseType = exports.UnsupportedAvailabilityZoneException = exports.ServiceUnavailableException = exports.ClusterStatus = exports.ClusterIssueCode = exports.LogType = exports.IpFamily = exports.ResolveConflicts = exports.ResourceLimitExceededException = exports.ResourceInUseException = exports.ClientException = exports.UpdateType = exports.UpdateStatus = exports.UpdateParamType = exports.ErrorCode = exports.ServerException = exports.ResourceNotFoundException = exports.InvalidRequestException = exports.InvalidParameterException = exports.AMITypes = exports.AddonStatus = exports.AddonIssueCode = exports.AccessScopeType = exports.AccessDeniedException = exports.AuthenticationMode = void 0;
4
4
  const EKSServiceException_1 = require("./EKSServiceException");
5
5
  exports.AuthenticationMode = {
6
6
  API: "API",
@@ -388,6 +388,15 @@ exports.ConfigStatus = {
388
388
  CREATING: "CREATING",
389
389
  DELETING: "DELETING",
390
390
  };
391
+ exports.Category = {
392
+ UPGRADE_READINESS: "UPGRADE_READINESS",
393
+ };
394
+ exports.InsightStatusValue = {
395
+ ERROR: "ERROR",
396
+ PASSING: "PASSING",
397
+ UNKNOWN: "UNKNOWN",
398
+ WARNING: "WARNING",
399
+ };
391
400
  exports.EksAnywhereSubscriptionStatus = {
392
401
  ACTIVE: "ACTIVE",
393
402
  CREATING: "CREATING",
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeAddonVersions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeAddonVersionsCommand_1 = require("../commands/DescribeAddonVersionsCommand");
5
6
  const EKSClient_1 = require("../EKSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeAddonVersionsCommand_1.DescribeAddonVersionsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeAddonVersions(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.paginateDescribeAddonVersions = paginateDescribeAddonVersions;
7
+ exports.paginateDescribeAddonVersions = (0, core_1.createPaginator)(EKSClient_1.EKSClient, DescribeAddonVersionsCommand_1.DescribeAddonVersionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAccessEntries = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAccessEntriesCommand_1 = require("../commands/ListAccessEntriesCommand");
5
6
  const EKSClient_1 = require("../EKSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAccessEntriesCommand_1.ListAccessEntriesCommand(input), ...args);
8
- };
9
- async function* paginateListAccessEntries(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.paginateListAccessEntries = paginateListAccessEntries;
7
+ exports.paginateListAccessEntries = (0, core_1.createPaginator)(EKSClient_1.EKSClient, ListAccessEntriesCommand_1.ListAccessEntriesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAccessPolicies = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAccessPoliciesCommand_1 = require("../commands/ListAccessPoliciesCommand");
5
6
  const EKSClient_1 = require("../EKSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAccessPoliciesCommand_1.ListAccessPoliciesCommand(input), ...args);
8
- };
9
- async function* paginateListAccessPolicies(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.paginateListAccessPolicies = paginateListAccessPolicies;
7
+ exports.paginateListAccessPolicies = (0, core_1.createPaginator)(EKSClient_1.EKSClient, ListAccessPoliciesCommand_1.ListAccessPoliciesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAddons = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAddonsCommand_1 = require("../commands/ListAddonsCommand");
5
6
  const EKSClient_1 = require("../EKSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAddonsCommand_1.ListAddonsCommand(input), ...args);
8
- };
9
- async function* paginateListAddons(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.paginateListAddons = paginateListAddons;
7
+ exports.paginateListAddons = (0, core_1.createPaginator)(EKSClient_1.EKSClient, ListAddonsCommand_1.ListAddonsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAssociatedAccessPolicies = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAssociatedAccessPoliciesCommand_1 = require("../commands/ListAssociatedAccessPoliciesCommand");
5
6
  const EKSClient_1 = require("../EKSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAssociatedAccessPoliciesCommand_1.ListAssociatedAccessPoliciesCommand(input), ...args);
8
- };
9
- async function* paginateListAssociatedAccessPolicies(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.paginateListAssociatedAccessPolicies = paginateListAssociatedAccessPolicies;
7
+ exports.paginateListAssociatedAccessPolicies = (0, core_1.createPaginator)(EKSClient_1.EKSClient, ListAssociatedAccessPoliciesCommand_1.ListAssociatedAccessPoliciesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListClusters = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListClustersCommand_1 = require("../commands/ListClustersCommand");
5
6
  const EKSClient_1 = require("../EKSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListClustersCommand_1.ListClustersCommand(input), ...args);
8
- };
9
- async function* paginateListClusters(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.paginateListClusters = paginateListClusters;
7
+ exports.paginateListClusters = (0, core_1.createPaginator)(EKSClient_1.EKSClient, ListClustersCommand_1.ListClustersCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListEksAnywhereSubscriptions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListEksAnywhereSubscriptionsCommand_1 = require("../commands/ListEksAnywhereSubscriptionsCommand");
5
6
  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;
7
+ exports.paginateListEksAnywhereSubscriptions = (0, core_1.createPaginator)(EKSClient_1.EKSClient, ListEksAnywhereSubscriptionsCommand_1.ListEksAnywhereSubscriptionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListFargateProfiles = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListFargateProfilesCommand_1 = require("../commands/ListFargateProfilesCommand");
5
6
  const EKSClient_1 = require("../EKSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListFargateProfilesCommand_1.ListFargateProfilesCommand(input), ...args);
8
- };
9
- async function* paginateListFargateProfiles(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.paginateListFargateProfiles = paginateListFargateProfiles;
7
+ exports.paginateListFargateProfiles = (0, core_1.createPaginator)(EKSClient_1.EKSClient, ListFargateProfilesCommand_1.ListFargateProfilesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListIdentityProviderConfigs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListIdentityProviderConfigsCommand_1 = require("../commands/ListIdentityProviderConfigsCommand");
5
6
  const EKSClient_1 = require("../EKSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListIdentityProviderConfigsCommand_1.ListIdentityProviderConfigsCommand(input), ...args);
8
- };
9
- async function* paginateListIdentityProviderConfigs(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.paginateListIdentityProviderConfigs = paginateListIdentityProviderConfigs;
7
+ exports.paginateListIdentityProviderConfigs = (0, core_1.createPaginator)(EKSClient_1.EKSClient, ListIdentityProviderConfigsCommand_1.ListIdentityProviderConfigsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListInsights = void 0;
4
+ const core_1 = require("@smithy/core");
5
+ const ListInsightsCommand_1 = require("../commands/ListInsightsCommand");
6
+ const EKSClient_1 = require("../EKSClient");
7
+ exports.paginateListInsights = (0, core_1.createPaginator)(EKSClient_1.EKSClient, ListInsightsCommand_1.ListInsightsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListNodegroups = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListNodegroupsCommand_1 = require("../commands/ListNodegroupsCommand");
5
6
  const EKSClient_1 = require("../EKSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListNodegroupsCommand_1.ListNodegroupsCommand(input), ...args);
8
- };
9
- async function* paginateListNodegroups(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.paginateListNodegroups = paginateListNodegroups;
7
+ exports.paginateListNodegroups = (0, core_1.createPaginator)(EKSClient_1.EKSClient, ListNodegroupsCommand_1.ListNodegroupsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPodIdentityAssociations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListPodIdentityAssociationsCommand_1 = require("../commands/ListPodIdentityAssociationsCommand");
5
6
  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;
7
+ exports.paginateListPodIdentityAssociations = (0, core_1.createPaginator)(EKSClient_1.EKSClient, ListPodIdentityAssociationsCommand_1.ListPodIdentityAssociationsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListUpdates = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListUpdatesCommand_1 = require("../commands/ListUpdatesCommand");
5
6
  const EKSClient_1 = require("../EKSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListUpdatesCommand_1.ListUpdatesCommand(input), ...args);
8
- };
9
- async function* paginateListUpdates(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.paginateListUpdates = paginateListUpdates;
7
+ exports.paginateListUpdates = (0, core_1.createPaginator)(EKSClient_1.EKSClient, ListUpdatesCommand_1.ListUpdatesCommand, "nextToken", "nextToken", "maxResults");
@@ -11,6 +11,7 @@ tslib_1.__exportStar(require("./ListClustersPaginator"), exports);
11
11
  tslib_1.__exportStar(require("./ListEksAnywhereSubscriptionsPaginator"), exports);
12
12
  tslib_1.__exportStar(require("./ListFargateProfilesPaginator"), exports);
13
13
  tslib_1.__exportStar(require("./ListIdentityProviderConfigsPaginator"), exports);
14
+ tslib_1.__exportStar(require("./ListInsightsPaginator"), exports);
14
15
  tslib_1.__exportStar(require("./ListNodegroupsPaginator"), exports);
15
16
  tslib_1.__exportStar(require("./ListPodIdentityAssociationsPaginator"), exports);
16
17
  tslib_1.__exportStar(require("./ListUpdatesPaginator"), exports);