@aws-sdk/client-eks 3.477.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 +250 -134
  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 +244 -132
  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 +5 -5
@@ -1,37 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_UpdateClusterVersionCommand = exports.se_UpdateClusterConfigCommand = exports.se_UpdateAddonCommand = exports.se_UpdateAccessEntryCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RegisterClusterCommand = exports.se_ListUpdatesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListPodIdentityAssociationsCommand = exports.se_ListNodegroupsCommand = exports.se_ListIdentityProviderConfigsCommand = exports.se_ListFargateProfilesCommand = exports.se_ListEksAnywhereSubscriptionsCommand = exports.se_ListClustersCommand = exports.se_ListAssociatedAccessPoliciesCommand = exports.se_ListAddonsCommand = exports.se_ListAccessPoliciesCommand = exports.se_ListAccessEntriesCommand = exports.se_DisassociateIdentityProviderConfigCommand = exports.se_DisassociateAccessPolicyCommand = exports.se_DescribeUpdateCommand = exports.se_DescribePodIdentityAssociationCommand = exports.se_DescribeNodegroupCommand = exports.se_DescribeIdentityProviderConfigCommand = exports.se_DescribeFargateProfileCommand = exports.se_DescribeEksAnywhereSubscriptionCommand = exports.se_DescribeClusterCommand = exports.se_DescribeAddonVersionsCommand = exports.se_DescribeAddonConfigurationCommand = exports.se_DescribeAddonCommand = exports.se_DescribeAccessEntryCommand = exports.se_DeregisterClusterCommand = exports.se_DeletePodIdentityAssociationCommand = exports.se_DeleteNodegroupCommand = exports.se_DeleteFargateProfileCommand = exports.se_DeleteEksAnywhereSubscriptionCommand = exports.se_DeleteClusterCommand = exports.se_DeleteAddonCommand = exports.se_DeleteAccessEntryCommand = exports.se_CreatePodIdentityAssociationCommand = exports.se_CreateNodegroupCommand = exports.se_CreateFargateProfileCommand = exports.se_CreateEksAnywhereSubscriptionCommand = exports.se_CreateClusterCommand = exports.se_CreateAddonCommand = exports.se_CreateAccessEntryCommand = exports.se_AssociateIdentityProviderConfigCommand = exports.se_AssociateEncryptionConfigCommand = exports.se_AssociateAccessPolicyCommand = void 0;
4
- exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RegisterClusterCommand = exports.de_ListUpdatesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListPodIdentityAssociationsCommand = exports.de_ListNodegroupsCommand = exports.de_ListIdentityProviderConfigsCommand = exports.de_ListFargateProfilesCommand = exports.de_ListEksAnywhereSubscriptionsCommand = exports.de_ListClustersCommand = exports.de_ListAssociatedAccessPoliciesCommand = exports.de_ListAddonsCommand = exports.de_ListAccessPoliciesCommand = exports.de_ListAccessEntriesCommand = exports.de_DisassociateIdentityProviderConfigCommand = exports.de_DisassociateAccessPolicyCommand = exports.de_DescribeUpdateCommand = exports.de_DescribePodIdentityAssociationCommand = exports.de_DescribeNodegroupCommand = exports.de_DescribeIdentityProviderConfigCommand = exports.de_DescribeFargateProfileCommand = exports.de_DescribeEksAnywhereSubscriptionCommand = exports.de_DescribeClusterCommand = exports.de_DescribeAddonVersionsCommand = exports.de_DescribeAddonConfigurationCommand = exports.de_DescribeAddonCommand = exports.de_DescribeAccessEntryCommand = exports.de_DeregisterClusterCommand = exports.de_DeletePodIdentityAssociationCommand = exports.de_DeleteNodegroupCommand = exports.de_DeleteFargateProfileCommand = exports.de_DeleteEksAnywhereSubscriptionCommand = exports.de_DeleteClusterCommand = exports.de_DeleteAddonCommand = exports.de_DeleteAccessEntryCommand = exports.de_CreatePodIdentityAssociationCommand = exports.de_CreateNodegroupCommand = exports.de_CreateFargateProfileCommand = exports.de_CreateEksAnywhereSubscriptionCommand = exports.de_CreateClusterCommand = exports.de_CreateAddonCommand = exports.de_CreateAccessEntryCommand = exports.de_AssociateIdentityProviderConfigCommand = exports.de_AssociateEncryptionConfigCommand = exports.de_AssociateAccessPolicyCommand = exports.se_UpdatePodIdentityAssociationCommand = exports.se_UpdateNodegroupVersionCommand = exports.se_UpdateNodegroupConfigCommand = exports.se_UpdateEksAnywhereSubscriptionCommand = void 0;
5
- exports.de_UpdatePodIdentityAssociationCommand = exports.de_UpdateNodegroupVersionCommand = exports.de_UpdateNodegroupConfigCommand = exports.de_UpdateEksAnywhereSubscriptionCommand = exports.de_UpdateClusterVersionCommand = exports.de_UpdateClusterConfigCommand = exports.de_UpdateAddonCommand = exports.de_UpdateAccessEntryCommand = void 0;
3
+ exports.se_UpdateAddonCommand = exports.se_UpdateAccessEntryCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RegisterClusterCommand = exports.se_ListUpdatesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListPodIdentityAssociationsCommand = exports.se_ListNodegroupsCommand = exports.se_ListInsightsCommand = exports.se_ListIdentityProviderConfigsCommand = exports.se_ListFargateProfilesCommand = exports.se_ListEksAnywhereSubscriptionsCommand = exports.se_ListClustersCommand = exports.se_ListAssociatedAccessPoliciesCommand = exports.se_ListAddonsCommand = exports.se_ListAccessPoliciesCommand = exports.se_ListAccessEntriesCommand = exports.se_DisassociateIdentityProviderConfigCommand = exports.se_DisassociateAccessPolicyCommand = exports.se_DescribeUpdateCommand = exports.se_DescribePodIdentityAssociationCommand = exports.se_DescribeNodegroupCommand = exports.se_DescribeInsightCommand = exports.se_DescribeIdentityProviderConfigCommand = exports.se_DescribeFargateProfileCommand = exports.se_DescribeEksAnywhereSubscriptionCommand = exports.se_DescribeClusterCommand = exports.se_DescribeAddonVersionsCommand = exports.se_DescribeAddonConfigurationCommand = exports.se_DescribeAddonCommand = exports.se_DescribeAccessEntryCommand = exports.se_DeregisterClusterCommand = exports.se_DeletePodIdentityAssociationCommand = exports.se_DeleteNodegroupCommand = exports.se_DeleteFargateProfileCommand = exports.se_DeleteEksAnywhereSubscriptionCommand = exports.se_DeleteClusterCommand = exports.se_DeleteAddonCommand = exports.se_DeleteAccessEntryCommand = exports.se_CreatePodIdentityAssociationCommand = exports.se_CreateNodegroupCommand = exports.se_CreateFargateProfileCommand = exports.se_CreateEksAnywhereSubscriptionCommand = exports.se_CreateClusterCommand = exports.se_CreateAddonCommand = exports.se_CreateAccessEntryCommand = exports.se_AssociateIdentityProviderConfigCommand = exports.se_AssociateEncryptionConfigCommand = exports.se_AssociateAccessPolicyCommand = void 0;
4
+ exports.de_ListTagsForResourceCommand = exports.de_ListPodIdentityAssociationsCommand = exports.de_ListNodegroupsCommand = exports.de_ListInsightsCommand = exports.de_ListIdentityProviderConfigsCommand = exports.de_ListFargateProfilesCommand = exports.de_ListEksAnywhereSubscriptionsCommand = exports.de_ListClustersCommand = exports.de_ListAssociatedAccessPoliciesCommand = exports.de_ListAddonsCommand = exports.de_ListAccessPoliciesCommand = exports.de_ListAccessEntriesCommand = exports.de_DisassociateIdentityProviderConfigCommand = exports.de_DisassociateAccessPolicyCommand = exports.de_DescribeUpdateCommand = exports.de_DescribePodIdentityAssociationCommand = exports.de_DescribeNodegroupCommand = exports.de_DescribeInsightCommand = exports.de_DescribeIdentityProviderConfigCommand = exports.de_DescribeFargateProfileCommand = exports.de_DescribeEksAnywhereSubscriptionCommand = exports.de_DescribeClusterCommand = exports.de_DescribeAddonVersionsCommand = exports.de_DescribeAddonConfigurationCommand = exports.de_DescribeAddonCommand = exports.de_DescribeAccessEntryCommand = exports.de_DeregisterClusterCommand = exports.de_DeletePodIdentityAssociationCommand = exports.de_DeleteNodegroupCommand = exports.de_DeleteFargateProfileCommand = exports.de_DeleteEksAnywhereSubscriptionCommand = exports.de_DeleteClusterCommand = exports.de_DeleteAddonCommand = exports.de_DeleteAccessEntryCommand = exports.de_CreatePodIdentityAssociationCommand = exports.de_CreateNodegroupCommand = exports.de_CreateFargateProfileCommand = exports.de_CreateEksAnywhereSubscriptionCommand = exports.de_CreateClusterCommand = exports.de_CreateAddonCommand = exports.de_CreateAccessEntryCommand = exports.de_AssociateIdentityProviderConfigCommand = exports.de_AssociateEncryptionConfigCommand = exports.de_AssociateAccessPolicyCommand = exports.se_UpdatePodIdentityAssociationCommand = exports.se_UpdateNodegroupVersionCommand = exports.se_UpdateNodegroupConfigCommand = exports.se_UpdateEksAnywhereSubscriptionCommand = exports.se_UpdateClusterVersionCommand = exports.se_UpdateClusterConfigCommand = void 0;
5
+ exports.de_UpdatePodIdentityAssociationCommand = exports.de_UpdateNodegroupVersionCommand = exports.de_UpdateNodegroupConfigCommand = exports.de_UpdateEksAnywhereSubscriptionCommand = exports.de_UpdateClusterVersionCommand = exports.de_UpdateClusterConfigCommand = exports.de_UpdateAddonCommand = exports.de_UpdateAccessEntryCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RegisterClusterCommand = exports.de_ListUpdatesCommand = void 0;
6
6
  const core_1 = require("@smithy/core");
7
- const protocol_http_1 = require("@smithy/protocol-http");
8
7
  const smithy_client_1 = require("@smithy/smithy-client");
9
8
  const uuid_1 = require("uuid");
10
9
  const EKSServiceException_1 = require("../models/EKSServiceException");
11
10
  const models_0_1 = require("../models/models_0");
12
11
  const se_AssociateAccessPolicyCommand = async (input, context) => {
13
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
12
+ const b = (0, core_1.requestBuilder)(input, context);
14
13
  const headers = {
15
14
  "content-type": "application/json",
16
15
  };
17
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
18
- "/clusters/{clusterName}/access-entries/{principalArn}/access-policies";
19
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
20
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
16
+ b.bp("/clusters/{clusterName}/access-entries/{principalArn}/access-policies");
17
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
18
+ b.p("principalArn", () => input.principalArn, "{principalArn}", false);
21
19
  let body;
22
20
  body = JSON.stringify((0, smithy_client_1.take)(input, {
23
21
  accessScope: (_) => (0, smithy_client_1._json)(_),
24
22
  policyArn: [],
25
23
  }));
26
- return new protocol_http_1.HttpRequest({
27
- protocol,
28
- hostname,
29
- port,
30
- method: "POST",
31
- headers,
32
- path: resolvedPath,
33
- body,
34
- });
24
+ b.m("POST").h(headers).b(body);
25
+ return b.build();
35
26
  };
36
27
  exports.se_AssociateAccessPolicyCommand = se_AssociateAccessPolicyCommand;
37
28
  const se_AssociateEncryptionConfigCommand = async (input, context) => {
@@ -68,12 +59,12 @@ const se_AssociateIdentityProviderConfigCommand = async (input, context) => {
68
59
  };
69
60
  exports.se_AssociateIdentityProviderConfigCommand = se_AssociateIdentityProviderConfigCommand;
70
61
  const se_CreateAccessEntryCommand = async (input, context) => {
71
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
62
+ const b = (0, core_1.requestBuilder)(input, context);
72
63
  const headers = {
73
64
  "content-type": "application/json",
74
65
  };
75
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/access-entries";
76
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
66
+ b.bp("/clusters/{clusterName}/access-entries");
67
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
77
68
  let body;
78
69
  body = JSON.stringify((0, smithy_client_1.take)(input, {
79
70
  clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -83,15 +74,8 @@ const se_CreateAccessEntryCommand = async (input, context) => {
83
74
  type: [],
84
75
  username: [],
85
76
  }));
86
- return new protocol_http_1.HttpRequest({
87
- protocol,
88
- hostname,
89
- port,
90
- method: "POST",
91
- headers,
92
- path: resolvedPath,
93
- body,
94
- });
77
+ b.m("POST").h(headers).b(body);
78
+ return b.build();
95
79
  };
96
80
  exports.se_CreateAccessEntryCommand = se_CreateAccessEntryCommand;
97
81
  const se_CreateAddonCommand = async (input, context) => {
@@ -230,22 +214,14 @@ const se_CreatePodIdentityAssociationCommand = async (input, context) => {
230
214
  };
231
215
  exports.se_CreatePodIdentityAssociationCommand = se_CreatePodIdentityAssociationCommand;
232
216
  const se_DeleteAccessEntryCommand = async (input, context) => {
233
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
217
+ const b = (0, core_1.requestBuilder)(input, context);
234
218
  const headers = {};
235
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
236
- "/clusters/{clusterName}/access-entries/{principalArn}";
237
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
238
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
219
+ b.bp("/clusters/{clusterName}/access-entries/{principalArn}");
220
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
221
+ b.p("principalArn", () => input.principalArn, "{principalArn}", false);
239
222
  let body;
240
- return new protocol_http_1.HttpRequest({
241
- protocol,
242
- hostname,
243
- port,
244
- method: "DELETE",
245
- headers,
246
- path: resolvedPath,
247
- body,
248
- });
223
+ b.m("DELETE").h(headers).b(body);
224
+ return b.build();
249
225
  };
250
226
  exports.se_DeleteAccessEntryCommand = se_DeleteAccessEntryCommand;
251
227
  const se_DeleteAddonCommand = async (input, context) => {
@@ -326,22 +302,14 @@ const se_DeregisterClusterCommand = async (input, context) => {
326
302
  };
327
303
  exports.se_DeregisterClusterCommand = se_DeregisterClusterCommand;
328
304
  const se_DescribeAccessEntryCommand = async (input, context) => {
329
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
305
+ const b = (0, core_1.requestBuilder)(input, context);
330
306
  const headers = {};
331
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
332
- "/clusters/{clusterName}/access-entries/{principalArn}";
333
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
334
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
307
+ b.bp("/clusters/{clusterName}/access-entries/{principalArn}");
308
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
309
+ b.p("principalArn", () => input.principalArn, "{principalArn}", false);
335
310
  let body;
336
- return new protocol_http_1.HttpRequest({
337
- protocol,
338
- hostname,
339
- port,
340
- method: "GET",
341
- headers,
342
- path: resolvedPath,
343
- body,
344
- });
311
+ b.m("GET").h(headers).b(body);
312
+ return b.build();
345
313
  };
346
314
  exports.se_DescribeAccessEntryCommand = se_DescribeAccessEntryCommand;
347
315
  const se_DescribeAddonCommand = async (input, context) => {
@@ -432,6 +400,17 @@ const se_DescribeIdentityProviderConfigCommand = async (input, context) => {
432
400
  return b.build();
433
401
  };
434
402
  exports.se_DescribeIdentityProviderConfigCommand = se_DescribeIdentityProviderConfigCommand;
403
+ const se_DescribeInsightCommand = async (input, context) => {
404
+ const b = (0, core_1.requestBuilder)(input, context);
405
+ const headers = {};
406
+ b.bp("/clusters/{clusterName}/insights/{id}");
407
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
408
+ b.p("id", () => input.id, "{id}", false);
409
+ let body;
410
+ b.m("GET").h(headers).b(body);
411
+ return b.build();
412
+ };
413
+ exports.se_DescribeInsightCommand = se_DescribeInsightCommand;
435
414
  const se_DescribeNodegroupCommand = async (input, context) => {
436
415
  const b = (0, core_1.requestBuilder)(input, context);
437
416
  const headers = {};
@@ -470,23 +449,15 @@ const se_DescribeUpdateCommand = async (input, context) => {
470
449
  };
471
450
  exports.se_DescribeUpdateCommand = se_DescribeUpdateCommand;
472
451
  const se_DisassociateAccessPolicyCommand = async (input, context) => {
473
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
452
+ const b = (0, core_1.requestBuilder)(input, context);
474
453
  const headers = {};
475
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
476
- "/clusters/{clusterName}/access-entries/{principalArn}/access-policies/{policyArn}";
477
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
478
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
479
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "policyArn", () => input.policyArn, "{policyArn}", false);
454
+ b.bp("/clusters/{clusterName}/access-entries/{principalArn}/access-policies/{policyArn}");
455
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
456
+ b.p("principalArn", () => input.principalArn, "{principalArn}", false);
457
+ b.p("policyArn", () => input.policyArn, "{policyArn}", false);
480
458
  let body;
481
- return new protocol_http_1.HttpRequest({
482
- protocol,
483
- hostname,
484
- port,
485
- method: "DELETE",
486
- headers,
487
- path: resolvedPath,
488
- body,
489
- });
459
+ b.m("DELETE").h(headers).b(body);
460
+ return b.build();
490
461
  };
491
462
  exports.se_DisassociateAccessPolicyCommand = se_DisassociateAccessPolicyCommand;
492
463
  const se_DisassociateIdentityProviderConfigCommand = async (input, context) => {
@@ -506,47 +477,31 @@ const se_DisassociateIdentityProviderConfigCommand = async (input, context) => {
506
477
  };
507
478
  exports.se_DisassociateIdentityProviderConfigCommand = se_DisassociateIdentityProviderConfigCommand;
508
479
  const se_ListAccessEntriesCommand = async (input, context) => {
509
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
480
+ const b = (0, core_1.requestBuilder)(input, context);
510
481
  const headers = {};
511
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/access-entries";
512
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
482
+ b.bp("/clusters/{clusterName}/access-entries");
483
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
513
484
  const query = (0, smithy_client_1.map)({
514
- associatedPolicyArn: [, input.associatedPolicyArn],
515
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
516
- nextToken: [, input.nextToken],
485
+ [_aPA]: [, input[_aPA]],
486
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
487
+ [_nT]: [, input[_nT]],
517
488
  });
518
489
  let body;
519
- return new protocol_http_1.HttpRequest({
520
- protocol,
521
- hostname,
522
- port,
523
- method: "GET",
524
- headers,
525
- path: resolvedPath,
526
- query,
527
- body,
528
- });
490
+ b.m("GET").h(headers).q(query).b(body);
491
+ return b.build();
529
492
  };
530
493
  exports.se_ListAccessEntriesCommand = se_ListAccessEntriesCommand;
531
494
  const se_ListAccessPoliciesCommand = async (input, context) => {
532
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
495
+ const b = (0, core_1.requestBuilder)(input, context);
533
496
  const headers = {};
534
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies";
497
+ b.bp("/access-policies");
535
498
  const query = (0, smithy_client_1.map)({
536
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
537
- nextToken: [, input.nextToken],
499
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
500
+ [_nT]: [, input[_nT]],
538
501
  });
539
502
  let body;
540
- return new protocol_http_1.HttpRequest({
541
- protocol,
542
- hostname,
543
- port,
544
- method: "GET",
545
- headers,
546
- path: resolvedPath,
547
- query,
548
- body,
549
- });
503
+ b.m("GET").h(headers).q(query).b(body);
504
+ return b.build();
550
505
  };
551
506
  exports.se_ListAccessPoliciesCommand = se_ListAccessPoliciesCommand;
552
507
  const se_ListAddonsCommand = async (input, context) => {
@@ -564,27 +519,18 @@ const se_ListAddonsCommand = async (input, context) => {
564
519
  };
565
520
  exports.se_ListAddonsCommand = se_ListAddonsCommand;
566
521
  const se_ListAssociatedAccessPoliciesCommand = async (input, context) => {
567
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
522
+ const b = (0, core_1.requestBuilder)(input, context);
568
523
  const headers = {};
569
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
570
- "/clusters/{clusterName}/access-entries/{principalArn}/access-policies";
571
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
572
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
524
+ b.bp("/clusters/{clusterName}/access-entries/{principalArn}/access-policies");
525
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
526
+ b.p("principalArn", () => input.principalArn, "{principalArn}", false);
573
527
  const query = (0, smithy_client_1.map)({
574
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
575
- nextToken: [, input.nextToken],
528
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
529
+ [_nT]: [, input[_nT]],
576
530
  });
577
531
  let body;
578
- return new protocol_http_1.HttpRequest({
579
- protocol,
580
- hostname,
581
- port,
582
- method: "GET",
583
- headers,
584
- path: resolvedPath,
585
- query,
586
- body,
587
- });
532
+ b.m("GET").h(headers).q(query).b(body);
533
+ return b.build();
588
534
  };
589
535
  exports.se_ListAssociatedAccessPoliciesCommand = se_ListAssociatedAccessPoliciesCommand;
590
536
  const se_ListClustersCommand = async (input, context) => {
@@ -643,6 +589,23 @@ const se_ListIdentityProviderConfigsCommand = async (input, context) => {
643
589
  return b.build();
644
590
  };
645
591
  exports.se_ListIdentityProviderConfigsCommand = se_ListIdentityProviderConfigsCommand;
592
+ const se_ListInsightsCommand = async (input, context) => {
593
+ const b = (0, core_1.requestBuilder)(input, context);
594
+ const headers = {
595
+ "content-type": "application/json",
596
+ };
597
+ b.bp("/clusters/{clusterName}/insights");
598
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
599
+ let body;
600
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
601
+ filter: (_) => (0, smithy_client_1._json)(_),
602
+ maxResults: [],
603
+ nextToken: [],
604
+ }));
605
+ b.m("POST").h(headers).b(body);
606
+ return b.build();
607
+ };
608
+ exports.se_ListInsightsCommand = se_ListInsightsCommand;
646
609
  const se_ListNodegroupsCommand = async (input, context) => {
647
610
  const b = (0, core_1.requestBuilder)(input, context);
648
611
  const headers = {};
@@ -748,29 +711,21 @@ const se_UntagResourceCommand = async (input, context) => {
748
711
  };
749
712
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
750
713
  const se_UpdateAccessEntryCommand = async (input, context) => {
751
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
714
+ const b = (0, core_1.requestBuilder)(input, context);
752
715
  const headers = {
753
716
  "content-type": "application/json",
754
717
  };
755
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
756
- "/clusters/{clusterName}/access-entries/{principalArn}";
757
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
758
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
718
+ b.bp("/clusters/{clusterName}/access-entries/{principalArn}");
719
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
720
+ b.p("principalArn", () => input.principalArn, "{principalArn}", false);
759
721
  let body;
760
722
  body = JSON.stringify((0, smithy_client_1.take)(input, {
761
723
  clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
762
724
  kubernetesGroups: (_) => (0, smithy_client_1._json)(_),
763
725
  username: [],
764
726
  }));
765
- return new protocol_http_1.HttpRequest({
766
- protocol,
767
- hostname,
768
- port,
769
- method: "POST",
770
- headers,
771
- path: resolvedPath,
772
- body,
773
- });
727
+ b.m("POST").h(headers).b(body);
728
+ return b.build();
774
729
  };
775
730
  exports.se_UpdateAccessEntryCommand = se_UpdateAccessEntryCommand;
776
731
  const se_UpdateAddonCommand = async (input, context) => {
@@ -2089,6 +2044,49 @@ const de_DescribeIdentityProviderConfigCommandError = async (output, context) =>
2089
2044
  });
2090
2045
  }
2091
2046
  };
2047
+ const de_DescribeInsightCommand = async (output, context) => {
2048
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2049
+ return de_DescribeInsightCommandError(output, context);
2050
+ }
2051
+ const contents = (0, smithy_client_1.map)({
2052
+ $metadata: deserializeMetadata(output),
2053
+ });
2054
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2055
+ const doc = (0, smithy_client_1.take)(data, {
2056
+ insight: (_) => de_Insight(_, context),
2057
+ });
2058
+ Object.assign(contents, doc);
2059
+ return contents;
2060
+ };
2061
+ exports.de_DescribeInsightCommand = de_DescribeInsightCommand;
2062
+ const de_DescribeInsightCommandError = async (output, context) => {
2063
+ const parsedOutput = {
2064
+ ...output,
2065
+ body: await parseErrorBody(output.body, context),
2066
+ };
2067
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2068
+ switch (errorCode) {
2069
+ case "InvalidParameterException":
2070
+ case "com.amazonaws.eks#InvalidParameterException":
2071
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2072
+ case "InvalidRequestException":
2073
+ case "com.amazonaws.eks#InvalidRequestException":
2074
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2075
+ case "ResourceNotFoundException":
2076
+ case "com.amazonaws.eks#ResourceNotFoundException":
2077
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2078
+ case "ServerException":
2079
+ case "com.amazonaws.eks#ServerException":
2080
+ throw await de_ServerExceptionRes(parsedOutput, context);
2081
+ default:
2082
+ const parsedBody = parsedOutput.body;
2083
+ return throwDefaultError({
2084
+ output,
2085
+ parsedBody,
2086
+ errorCode,
2087
+ });
2088
+ }
2089
+ };
2092
2090
  const de_DescribeNodegroupCommand = async (output, context) => {
2093
2091
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2094
2092
  return de_DescribeNodegroupCommandError(output, context);
@@ -2654,6 +2652,50 @@ const de_ListIdentityProviderConfigsCommandError = async (output, context) => {
2654
2652
  });
2655
2653
  }
2656
2654
  };
2655
+ const de_ListInsightsCommand = async (output, context) => {
2656
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2657
+ return de_ListInsightsCommandError(output, context);
2658
+ }
2659
+ const contents = (0, smithy_client_1.map)({
2660
+ $metadata: deserializeMetadata(output),
2661
+ });
2662
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2663
+ const doc = (0, smithy_client_1.take)(data, {
2664
+ insights: (_) => de_InsightSummaries(_, context),
2665
+ nextToken: smithy_client_1.expectString,
2666
+ });
2667
+ Object.assign(contents, doc);
2668
+ return contents;
2669
+ };
2670
+ exports.de_ListInsightsCommand = de_ListInsightsCommand;
2671
+ const de_ListInsightsCommandError = async (output, context) => {
2672
+ const parsedOutput = {
2673
+ ...output,
2674
+ body: await parseErrorBody(output.body, context),
2675
+ };
2676
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2677
+ switch (errorCode) {
2678
+ case "InvalidParameterException":
2679
+ case "com.amazonaws.eks#InvalidParameterException":
2680
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2681
+ case "InvalidRequestException":
2682
+ case "com.amazonaws.eks#InvalidRequestException":
2683
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2684
+ case "ResourceNotFoundException":
2685
+ case "com.amazonaws.eks#ResourceNotFoundException":
2686
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2687
+ case "ServerException":
2688
+ case "com.amazonaws.eks#ServerException":
2689
+ throw await de_ServerExceptionRes(parsedOutput, context);
2690
+ default:
2691
+ const parsedBody = parsedOutput.body;
2692
+ return throwDefaultError({
2693
+ output,
2694
+ parsedBody,
2695
+ errorCode,
2696
+ });
2697
+ }
2698
+ };
2657
2699
  const de_ListNodegroupsCommand = async (output, context) => {
2658
2700
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2659
2701
  return de_ListNodegroupsCommandError(output, context);
@@ -3572,6 +3614,21 @@ const de_AssociatedAccessPolicy = (output, context) => {
3572
3614
  policyArn: smithy_client_1.expectString,
3573
3615
  });
3574
3616
  };
3617
+ const de_ClientStat = (output, context) => {
3618
+ return (0, smithy_client_1.take)(output, {
3619
+ lastRequestTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3620
+ numberOfRequestsLast30Days: smithy_client_1.expectInt32,
3621
+ userAgent: smithy_client_1.expectString,
3622
+ });
3623
+ };
3624
+ const de_ClientStats = (output, context) => {
3625
+ const retVal = (output || [])
3626
+ .filter((e) => e != null)
3627
+ .map((entry) => {
3628
+ return de_ClientStat(entry, context);
3629
+ });
3630
+ return retVal;
3631
+ };
3575
3632
  const de_Cluster = (output, context) => {
3576
3633
  return (0, smithy_client_1.take)(output, {
3577
3634
  accessConfig: smithy_client_1._json,
@@ -3606,6 +3663,23 @@ const de_ConnectorConfigResponse = (output, context) => {
3606
3663
  roleArn: smithy_client_1.expectString,
3607
3664
  });
3608
3665
  };
3666
+ const de_DeprecationDetail = (output, context) => {
3667
+ return (0, smithy_client_1.take)(output, {
3668
+ clientStats: (_) => de_ClientStats(_, context),
3669
+ replacedWith: smithy_client_1.expectString,
3670
+ startServingReplacementVersion: smithy_client_1.expectString,
3671
+ stopServingVersion: smithy_client_1.expectString,
3672
+ usage: smithy_client_1.expectString,
3673
+ });
3674
+ };
3675
+ const de_DeprecationDetails = (output, context) => {
3676
+ const retVal = (output || [])
3677
+ .filter((e) => e != null)
3678
+ .map((entry) => {
3679
+ return de_DeprecationDetail(entry, context);
3680
+ });
3681
+ return retVal;
3682
+ };
3609
3683
  const de_EksAnywhereSubscription = (output, context) => {
3610
3684
  return (0, smithy_client_1.take)(output, {
3611
3685
  arn: smithy_client_1.expectString,
@@ -3643,6 +3717,47 @@ const de_FargateProfile = (output, context) => {
3643
3717
  tags: smithy_client_1._json,
3644
3718
  });
3645
3719
  };
3720
+ const de_Insight = (output, context) => {
3721
+ return (0, smithy_client_1.take)(output, {
3722
+ additionalInfo: smithy_client_1._json,
3723
+ category: smithy_client_1.expectString,
3724
+ categorySpecificSummary: (_) => de_InsightCategorySpecificSummary(_, context),
3725
+ description: smithy_client_1.expectString,
3726
+ id: smithy_client_1.expectString,
3727
+ insightStatus: smithy_client_1._json,
3728
+ kubernetesVersion: smithy_client_1.expectString,
3729
+ lastRefreshTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3730
+ lastTransitionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3731
+ name: smithy_client_1.expectString,
3732
+ recommendation: smithy_client_1.expectString,
3733
+ resources: smithy_client_1._json,
3734
+ });
3735
+ };
3736
+ const de_InsightCategorySpecificSummary = (output, context) => {
3737
+ return (0, smithy_client_1.take)(output, {
3738
+ deprecationDetails: (_) => de_DeprecationDetails(_, context),
3739
+ });
3740
+ };
3741
+ const de_InsightSummaries = (output, context) => {
3742
+ const retVal = (output || [])
3743
+ .filter((e) => e != null)
3744
+ .map((entry) => {
3745
+ return de_InsightSummary(entry, context);
3746
+ });
3747
+ return retVal;
3748
+ };
3749
+ const de_InsightSummary = (output, context) => {
3750
+ return (0, smithy_client_1.take)(output, {
3751
+ category: smithy_client_1.expectString,
3752
+ description: smithy_client_1.expectString,
3753
+ id: smithy_client_1.expectString,
3754
+ insightStatus: smithy_client_1._json,
3755
+ kubernetesVersion: smithy_client_1.expectString,
3756
+ lastRefreshTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3757
+ lastTransitionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3758
+ name: smithy_client_1.expectString,
3759
+ });
3760
+ };
3646
3761
  const de_Nodegroup = (output, context) => {
3647
3762
  return (0, smithy_client_1.take)(output, {
3648
3763
  amiType: smithy_client_1.expectString,
@@ -3706,6 +3821,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
3706
3821
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
3707
3822
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
3708
3823
  const _aN = "addonName";
3824
+ const _aPA = "associatedPolicyArn";
3709
3825
  const _aV = "addonVersion";
3710
3826
  const _i = "include";
3711
3827
  const _iS = "includeStatus";
package/dist-es/EKS.js CHANGED
@@ -25,6 +25,7 @@ import { DescribeClusterCommand, } from "./commands/DescribeClusterCommand";
25
25
  import { DescribeEksAnywhereSubscriptionCommand, } from "./commands/DescribeEksAnywhereSubscriptionCommand";
26
26
  import { DescribeFargateProfileCommand, } from "./commands/DescribeFargateProfileCommand";
27
27
  import { DescribeIdentityProviderConfigCommand, } from "./commands/DescribeIdentityProviderConfigCommand";
28
+ import { DescribeInsightCommand, } from "./commands/DescribeInsightCommand";
28
29
  import { DescribeNodegroupCommand, } from "./commands/DescribeNodegroupCommand";
29
30
  import { DescribePodIdentityAssociationCommand, } from "./commands/DescribePodIdentityAssociationCommand";
30
31
  import { DescribeUpdateCommand, } from "./commands/DescribeUpdateCommand";
@@ -38,6 +39,7 @@ import { ListClustersCommand, } from "./commands/ListClustersCommand";
38
39
  import { ListEksAnywhereSubscriptionsCommand, } from "./commands/ListEksAnywhereSubscriptionsCommand";
39
40
  import { ListFargateProfilesCommand, } from "./commands/ListFargateProfilesCommand";
40
41
  import { ListIdentityProviderConfigsCommand, } from "./commands/ListIdentityProviderConfigsCommand";
42
+ import { ListInsightsCommand, } from "./commands/ListInsightsCommand";
41
43
  import { ListNodegroupsCommand, } from "./commands/ListNodegroupsCommand";
42
44
  import { ListPodIdentityAssociationsCommand, } from "./commands/ListPodIdentityAssociationsCommand";
43
45
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
@@ -81,6 +83,7 @@ const commands = {
81
83
  DescribeEksAnywhereSubscriptionCommand,
82
84
  DescribeFargateProfileCommand,
83
85
  DescribeIdentityProviderConfigCommand,
86
+ DescribeInsightCommand,
84
87
  DescribeNodegroupCommand,
85
88
  DescribePodIdentityAssociationCommand,
86
89
  DescribeUpdateCommand,
@@ -94,6 +97,7 @@ const commands = {
94
97
  ListEksAnywhereSubscriptionsCommand,
95
98
  ListFargateProfilesCommand,
96
99
  ListIdentityProviderConfigsCommand,
100
+ ListInsightsCommand,
97
101
  ListNodegroupsCommand,
98
102
  ListPodIdentityAssociationsCommand,
99
103
  ListTagsForResourceCommand,
@@ -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_DescribeInsightCommand, se_DescribeInsightCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DescribeInsightCommand 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, DescribeInsightCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "EKSClient";
26
+ const commandName = "DescribeInsightCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AWSWesleyFrontend",
35
+ operation: "DescribeInsight",
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_DescribeInsightCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_DescribeInsightCommand(output, context);
46
+ }
47
+ }