@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
@@ -1,94 +1,70 @@
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;
6
- const protocol_http_1 = require("@smithy/protocol-http");
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
+ const core_1 = require("@smithy/core");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  const uuid_1 = require("uuid");
9
9
  const EKSServiceException_1 = require("../models/EKSServiceException");
10
10
  const models_0_1 = require("../models/models_0");
11
11
  const se_AssociateAccessPolicyCommand = async (input, context) => {
12
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
12
+ const b = (0, core_1.requestBuilder)(input, context);
13
13
  const headers = {
14
14
  "content-type": "application/json",
15
15
  };
16
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
17
- "/clusters/{clusterName}/access-entries/{principalArn}/access-policies";
18
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
19
- 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);
20
19
  let body;
21
20
  body = JSON.stringify((0, smithy_client_1.take)(input, {
22
21
  accessScope: (_) => (0, smithy_client_1._json)(_),
23
22
  policyArn: [],
24
23
  }));
25
- return new protocol_http_1.HttpRequest({
26
- protocol,
27
- hostname,
28
- port,
29
- method: "POST",
30
- headers,
31
- path: resolvedPath,
32
- body,
33
- });
24
+ b.m("POST").h(headers).b(body);
25
+ return b.build();
34
26
  };
35
27
  exports.se_AssociateAccessPolicyCommand = se_AssociateAccessPolicyCommand;
36
28
  const se_AssociateEncryptionConfigCommand = async (input, context) => {
37
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
29
+ const b = (0, core_1.requestBuilder)(input, context);
38
30
  const headers = {
39
31
  "content-type": "application/json",
40
32
  };
41
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
42
- "/clusters/{clusterName}/encryption-config/associate";
43
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
33
+ b.bp("/clusters/{clusterName}/encryption-config/associate");
34
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
44
35
  let body;
45
36
  body = JSON.stringify((0, smithy_client_1.take)(input, {
46
37
  clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
47
38
  encryptionConfig: (_) => (0, smithy_client_1._json)(_),
48
39
  }));
49
- return new protocol_http_1.HttpRequest({
50
- protocol,
51
- hostname,
52
- port,
53
- method: "POST",
54
- headers,
55
- path: resolvedPath,
56
- body,
57
- });
40
+ b.m("POST").h(headers).b(body);
41
+ return b.build();
58
42
  };
59
43
  exports.se_AssociateEncryptionConfigCommand = se_AssociateEncryptionConfigCommand;
60
44
  const se_AssociateIdentityProviderConfigCommand = async (input, context) => {
61
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
45
+ const b = (0, core_1.requestBuilder)(input, context);
62
46
  const headers = {
63
47
  "content-type": "application/json",
64
48
  };
65
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
66
- "/clusters/{clusterName}/identity-provider-configs/associate";
67
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
49
+ b.bp("/clusters/{clusterName}/identity-provider-configs/associate");
50
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
68
51
  let body;
69
52
  body = JSON.stringify((0, smithy_client_1.take)(input, {
70
53
  clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
71
54
  oidc: (_) => (0, smithy_client_1._json)(_),
72
55
  tags: (_) => (0, smithy_client_1._json)(_),
73
56
  }));
74
- return new protocol_http_1.HttpRequest({
75
- protocol,
76
- hostname,
77
- port,
78
- method: "POST",
79
- headers,
80
- path: resolvedPath,
81
- body,
82
- });
57
+ b.m("POST").h(headers).b(body);
58
+ return b.build();
83
59
  };
84
60
  exports.se_AssociateIdentityProviderConfigCommand = se_AssociateIdentityProviderConfigCommand;
85
61
  const se_CreateAccessEntryCommand = async (input, context) => {
86
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
62
+ const b = (0, core_1.requestBuilder)(input, context);
87
63
  const headers = {
88
64
  "content-type": "application/json",
89
65
  };
90
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/access-entries";
91
- 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);
92
68
  let body;
93
69
  body = JSON.stringify((0, smithy_client_1.take)(input, {
94
70
  clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -98,24 +74,17 @@ const se_CreateAccessEntryCommand = async (input, context) => {
98
74
  type: [],
99
75
  username: [],
100
76
  }));
101
- return new protocol_http_1.HttpRequest({
102
- protocol,
103
- hostname,
104
- port,
105
- method: "POST",
106
- headers,
107
- path: resolvedPath,
108
- body,
109
- });
77
+ b.m("POST").h(headers).b(body);
78
+ return b.build();
110
79
  };
111
80
  exports.se_CreateAccessEntryCommand = se_CreateAccessEntryCommand;
112
81
  const se_CreateAddonCommand = async (input, context) => {
113
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
82
+ const b = (0, core_1.requestBuilder)(input, context);
114
83
  const headers = {
115
84
  "content-type": "application/json",
116
85
  };
117
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/addons";
118
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
86
+ b.bp("/clusters/{clusterName}/addons");
87
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
119
88
  let body;
120
89
  body = JSON.stringify((0, smithy_client_1.take)(input, {
121
90
  addonName: [],
@@ -126,23 +95,16 @@ const se_CreateAddonCommand = async (input, context) => {
126
95
  serviceAccountRoleArn: [],
127
96
  tags: (_) => (0, smithy_client_1._json)(_),
128
97
  }));
129
- return new protocol_http_1.HttpRequest({
130
- protocol,
131
- hostname,
132
- port,
133
- method: "POST",
134
- headers,
135
- path: resolvedPath,
136
- body,
137
- });
98
+ b.m("POST").h(headers).b(body);
99
+ return b.build();
138
100
  };
139
101
  exports.se_CreateAddonCommand = se_CreateAddonCommand;
140
102
  const se_CreateClusterCommand = async (input, context) => {
141
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
103
+ const b = (0, core_1.requestBuilder)(input, context);
142
104
  const headers = {
143
105
  "content-type": "application/json",
144
106
  };
145
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters";
107
+ b.bp("/clusters");
146
108
  let body;
147
109
  body = JSON.stringify((0, smithy_client_1.take)(input, {
148
110
  accessConfig: (_) => (0, smithy_client_1._json)(_),
@@ -157,23 +119,16 @@ const se_CreateClusterCommand = async (input, context) => {
157
119
  tags: (_) => (0, smithy_client_1._json)(_),
158
120
  version: [],
159
121
  }));
160
- return new protocol_http_1.HttpRequest({
161
- protocol,
162
- hostname,
163
- port,
164
- method: "POST",
165
- headers,
166
- path: resolvedPath,
167
- body,
168
- });
122
+ b.m("POST").h(headers).b(body);
123
+ return b.build();
169
124
  };
170
125
  exports.se_CreateClusterCommand = se_CreateClusterCommand;
171
126
  const se_CreateEksAnywhereSubscriptionCommand = async (input, context) => {
172
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
127
+ const b = (0, core_1.requestBuilder)(input, context);
173
128
  const headers = {
174
129
  "content-type": "application/json",
175
130
  };
176
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions";
131
+ b.bp("/eks-anywhere-subscriptions");
177
132
  let body;
178
133
  body = JSON.stringify((0, smithy_client_1.take)(input, {
179
134
  autoRenew: [],
@@ -184,24 +139,17 @@ const se_CreateEksAnywhereSubscriptionCommand = async (input, context) => {
184
139
  tags: (_) => (0, smithy_client_1._json)(_),
185
140
  term: (_) => (0, smithy_client_1._json)(_),
186
141
  }));
187
- return new protocol_http_1.HttpRequest({
188
- protocol,
189
- hostname,
190
- port,
191
- method: "POST",
192
- headers,
193
- path: resolvedPath,
194
- body,
195
- });
142
+ b.m("POST").h(headers).b(body);
143
+ return b.build();
196
144
  };
197
145
  exports.se_CreateEksAnywhereSubscriptionCommand = se_CreateEksAnywhereSubscriptionCommand;
198
146
  const se_CreateFargateProfileCommand = async (input, context) => {
199
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
147
+ const b = (0, core_1.requestBuilder)(input, context);
200
148
  const headers = {
201
149
  "content-type": "application/json",
202
150
  };
203
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/fargate-profiles";
204
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
151
+ b.bp("/clusters/{clusterName}/fargate-profiles");
152
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
205
153
  let body;
206
154
  body = JSON.stringify((0, smithy_client_1.take)(input, {
207
155
  clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -211,24 +159,17 @@ const se_CreateFargateProfileCommand = async (input, context) => {
211
159
  subnets: (_) => (0, smithy_client_1._json)(_),
212
160
  tags: (_) => (0, smithy_client_1._json)(_),
213
161
  }));
214
- return new protocol_http_1.HttpRequest({
215
- protocol,
216
- hostname,
217
- port,
218
- method: "POST",
219
- headers,
220
- path: resolvedPath,
221
- body,
222
- });
162
+ b.m("POST").h(headers).b(body);
163
+ return b.build();
223
164
  };
224
165
  exports.se_CreateFargateProfileCommand = se_CreateFargateProfileCommand;
225
166
  const se_CreateNodegroupCommand = async (input, context) => {
226
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
167
+ const b = (0, core_1.requestBuilder)(input, context);
227
168
  const headers = {
228
169
  "content-type": "application/json",
229
170
  };
230
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/node-groups";
231
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
171
+ b.bp("/clusters/{clusterName}/node-groups");
172
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
232
173
  let body;
233
174
  body = JSON.stringify((0, smithy_client_1.take)(input, {
234
175
  amiType: [],
@@ -249,25 +190,17 @@ const se_CreateNodegroupCommand = async (input, context) => {
249
190
  updateConfig: (_) => (0, smithy_client_1._json)(_),
250
191
  version: [],
251
192
  }));
252
- return new protocol_http_1.HttpRequest({
253
- protocol,
254
- hostname,
255
- port,
256
- method: "POST",
257
- headers,
258
- path: resolvedPath,
259
- body,
260
- });
193
+ b.m("POST").h(headers).b(body);
194
+ return b.build();
261
195
  };
262
196
  exports.se_CreateNodegroupCommand = se_CreateNodegroupCommand;
263
197
  const se_CreatePodIdentityAssociationCommand = async (input, context) => {
264
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
198
+ const b = (0, core_1.requestBuilder)(input, context);
265
199
  const headers = {
266
200
  "content-type": "application/json",
267
201
  };
268
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
269
- "/clusters/{clusterName}/pod-identity-associations";
270
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
202
+ b.bp("/clusters/{clusterName}/pod-identity-associations");
203
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
271
204
  let body;
272
205
  body = JSON.stringify((0, smithy_client_1.take)(input, {
273
206
  clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -276,709 +209,465 @@ const se_CreatePodIdentityAssociationCommand = async (input, context) => {
276
209
  serviceAccount: [],
277
210
  tags: (_) => (0, smithy_client_1._json)(_),
278
211
  }));
279
- return new protocol_http_1.HttpRequest({
280
- protocol,
281
- hostname,
282
- port,
283
- method: "POST",
284
- headers,
285
- path: resolvedPath,
286
- body,
287
- });
212
+ b.m("POST").h(headers).b(body);
213
+ return b.build();
288
214
  };
289
215
  exports.se_CreatePodIdentityAssociationCommand = se_CreatePodIdentityAssociationCommand;
290
216
  const se_DeleteAccessEntryCommand = async (input, context) => {
291
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
217
+ const b = (0, core_1.requestBuilder)(input, context);
292
218
  const headers = {};
293
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
294
- "/clusters/{clusterName}/access-entries/{principalArn}";
295
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
296
- 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);
297
222
  let body;
298
- return new protocol_http_1.HttpRequest({
299
- protocol,
300
- hostname,
301
- port,
302
- method: "DELETE",
303
- headers,
304
- path: resolvedPath,
305
- body,
306
- });
223
+ b.m("DELETE").h(headers).b(body);
224
+ return b.build();
307
225
  };
308
226
  exports.se_DeleteAccessEntryCommand = se_DeleteAccessEntryCommand;
309
227
  const se_DeleteAddonCommand = async (input, context) => {
310
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
228
+ const b = (0, core_1.requestBuilder)(input, context);
311
229
  const headers = {};
312
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
313
- "/clusters/{clusterName}/addons/{addonName}";
314
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
315
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "addonName", () => input.addonName, "{addonName}", false);
230
+ b.bp("/clusters/{clusterName}/addons/{addonName}");
231
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
232
+ b.p("addonName", () => input.addonName, "{addonName}", false);
316
233
  const query = (0, smithy_client_1.map)({
317
- preserve: [() => input.preserve !== void 0, () => input.preserve.toString()],
234
+ [_p]: [() => input.preserve !== void 0, () => input[_p].toString()],
318
235
  });
319
236
  let body;
320
- return new protocol_http_1.HttpRequest({
321
- protocol,
322
- hostname,
323
- port,
324
- method: "DELETE",
325
- headers,
326
- path: resolvedPath,
327
- query,
328
- body,
329
- });
237
+ b.m("DELETE").h(headers).q(query).b(body);
238
+ return b.build();
330
239
  };
331
240
  exports.se_DeleteAddonCommand = se_DeleteAddonCommand;
332
241
  const se_DeleteClusterCommand = async (input, context) => {
333
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
242
+ const b = (0, core_1.requestBuilder)(input, context);
334
243
  const headers = {};
335
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}";
336
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
244
+ b.bp("/clusters/{name}");
245
+ b.p("name", () => input.name, "{name}", false);
337
246
  let body;
338
- return new protocol_http_1.HttpRequest({
339
- protocol,
340
- hostname,
341
- port,
342
- method: "DELETE",
343
- headers,
344
- path: resolvedPath,
345
- body,
346
- });
247
+ b.m("DELETE").h(headers).b(body);
248
+ return b.build();
347
249
  };
348
250
  exports.se_DeleteClusterCommand = se_DeleteClusterCommand;
349
251
  const se_DeleteEksAnywhereSubscriptionCommand = async (input, context) => {
350
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
252
+ const b = (0, core_1.requestBuilder)(input, context);
351
253
  const headers = {};
352
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions/{id}";
353
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
254
+ b.bp("/eks-anywhere-subscriptions/{id}");
255
+ b.p("id", () => input.id, "{id}", false);
354
256
  let body;
355
- return new protocol_http_1.HttpRequest({
356
- protocol,
357
- hostname,
358
- port,
359
- method: "DELETE",
360
- headers,
361
- path: resolvedPath,
362
- body,
363
- });
257
+ b.m("DELETE").h(headers).b(body);
258
+ return b.build();
364
259
  };
365
260
  exports.se_DeleteEksAnywhereSubscriptionCommand = se_DeleteEksAnywhereSubscriptionCommand;
366
261
  const se_DeleteFargateProfileCommand = async (input, context) => {
367
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
262
+ const b = (0, core_1.requestBuilder)(input, context);
368
263
  const headers = {};
369
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
370
- "/clusters/{clusterName}/fargate-profiles/{fargateProfileName}";
371
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
372
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
264
+ b.bp("/clusters/{clusterName}/fargate-profiles/{fargateProfileName}");
265
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
266
+ b.p("fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
373
267
  let body;
374
- return new protocol_http_1.HttpRequest({
375
- protocol,
376
- hostname,
377
- port,
378
- method: "DELETE",
379
- headers,
380
- path: resolvedPath,
381
- body,
382
- });
268
+ b.m("DELETE").h(headers).b(body);
269
+ return b.build();
383
270
  };
384
271
  exports.se_DeleteFargateProfileCommand = se_DeleteFargateProfileCommand;
385
272
  const se_DeleteNodegroupCommand = async (input, context) => {
386
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
273
+ const b = (0, core_1.requestBuilder)(input, context);
387
274
  const headers = {};
388
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
389
- "/clusters/{clusterName}/node-groups/{nodegroupName}";
390
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
391
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
275
+ b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}");
276
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
277
+ b.p("nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
392
278
  let body;
393
- return new protocol_http_1.HttpRequest({
394
- protocol,
395
- hostname,
396
- port,
397
- method: "DELETE",
398
- headers,
399
- path: resolvedPath,
400
- body,
401
- });
279
+ b.m("DELETE").h(headers).b(body);
280
+ return b.build();
402
281
  };
403
282
  exports.se_DeleteNodegroupCommand = se_DeleteNodegroupCommand;
404
283
  const se_DeletePodIdentityAssociationCommand = async (input, context) => {
405
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
284
+ const b = (0, core_1.requestBuilder)(input, context);
406
285
  const headers = {};
407
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
408
- "/clusters/{clusterName}/pod-identity-associations/{associationId}";
409
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
410
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
286
+ b.bp("/clusters/{clusterName}/pod-identity-associations/{associationId}");
287
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
288
+ b.p("associationId", () => input.associationId, "{associationId}", false);
411
289
  let body;
412
- return new protocol_http_1.HttpRequest({
413
- protocol,
414
- hostname,
415
- port,
416
- method: "DELETE",
417
- headers,
418
- path: resolvedPath,
419
- body,
420
- });
290
+ b.m("DELETE").h(headers).b(body);
291
+ return b.build();
421
292
  };
422
293
  exports.se_DeletePodIdentityAssociationCommand = se_DeletePodIdentityAssociationCommand;
423
294
  const se_DeregisterClusterCommand = async (input, context) => {
424
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
295
+ const b = (0, core_1.requestBuilder)(input, context);
425
296
  const headers = {};
426
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-registrations/{name}";
427
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
297
+ b.bp("/cluster-registrations/{name}");
298
+ b.p("name", () => input.name, "{name}", false);
428
299
  let body;
429
- return new protocol_http_1.HttpRequest({
430
- protocol,
431
- hostname,
432
- port,
433
- method: "DELETE",
434
- headers,
435
- path: resolvedPath,
436
- body,
437
- });
300
+ b.m("DELETE").h(headers).b(body);
301
+ return b.build();
438
302
  };
439
303
  exports.se_DeregisterClusterCommand = se_DeregisterClusterCommand;
440
304
  const se_DescribeAccessEntryCommand = async (input, context) => {
441
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
305
+ const b = (0, core_1.requestBuilder)(input, context);
442
306
  const headers = {};
443
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
444
- "/clusters/{clusterName}/access-entries/{principalArn}";
445
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
446
- 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);
447
310
  let body;
448
- return new protocol_http_1.HttpRequest({
449
- protocol,
450
- hostname,
451
- port,
452
- method: "GET",
453
- headers,
454
- path: resolvedPath,
455
- body,
456
- });
311
+ b.m("GET").h(headers).b(body);
312
+ return b.build();
457
313
  };
458
314
  exports.se_DescribeAccessEntryCommand = se_DescribeAccessEntryCommand;
459
315
  const se_DescribeAddonCommand = async (input, context) => {
460
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
316
+ const b = (0, core_1.requestBuilder)(input, context);
461
317
  const headers = {};
462
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
463
- "/clusters/{clusterName}/addons/{addonName}";
464
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
465
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "addonName", () => input.addonName, "{addonName}", false);
318
+ b.bp("/clusters/{clusterName}/addons/{addonName}");
319
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
320
+ b.p("addonName", () => input.addonName, "{addonName}", false);
466
321
  let body;
467
- return new protocol_http_1.HttpRequest({
468
- protocol,
469
- hostname,
470
- port,
471
- method: "GET",
472
- headers,
473
- path: resolvedPath,
474
- body,
475
- });
322
+ b.m("GET").h(headers).b(body);
323
+ return b.build();
476
324
  };
477
325
  exports.se_DescribeAddonCommand = se_DescribeAddonCommand;
478
326
  const se_DescribeAddonConfigurationCommand = async (input, context) => {
479
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
327
+ const b = (0, core_1.requestBuilder)(input, context);
480
328
  const headers = {};
481
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/addons/configuration-schemas";
329
+ b.bp("/addons/configuration-schemas");
482
330
  const query = (0, smithy_client_1.map)({
483
- addonName: [, (0, smithy_client_1.expectNonNull)(input.addonName, `addonName`)],
484
- addonVersion: [, (0, smithy_client_1.expectNonNull)(input.addonVersion, `addonVersion`)],
331
+ [_aN]: [, (0, smithy_client_1.expectNonNull)(input[_aN], `addonName`)],
332
+ [_aV]: [, (0, smithy_client_1.expectNonNull)(input[_aV], `addonVersion`)],
485
333
  });
486
334
  let body;
487
- return new protocol_http_1.HttpRequest({
488
- protocol,
489
- hostname,
490
- port,
491
- method: "GET",
492
- headers,
493
- path: resolvedPath,
494
- query,
495
- body,
496
- });
335
+ b.m("GET").h(headers).q(query).b(body);
336
+ return b.build();
497
337
  };
498
338
  exports.se_DescribeAddonConfigurationCommand = se_DescribeAddonConfigurationCommand;
499
339
  const se_DescribeAddonVersionsCommand = async (input, context) => {
500
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
340
+ const b = (0, core_1.requestBuilder)(input, context);
501
341
  const headers = {};
502
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/addons/supported-versions";
342
+ b.bp("/addons/supported-versions");
503
343
  const query = (0, smithy_client_1.map)({
504
- kubernetesVersion: [, input.kubernetesVersion],
505
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
506
- nextToken: [, input.nextToken],
507
- addonName: [, input.addonName],
508
- types: [() => input.types !== void 0, () => (input.types || []).map((_entry) => _entry)],
509
- publishers: [() => input.publishers !== void 0, () => (input.publishers || []).map((_entry) => _entry)],
510
- owners: [() => input.owners !== void 0, () => (input.owners || []).map((_entry) => _entry)],
344
+ [_kV]: [, input[_kV]],
345
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
346
+ [_nT]: [, input[_nT]],
347
+ [_aN]: [, input[_aN]],
348
+ [_t]: [() => input.types !== void 0, () => (input[_t] || []).map((_entry) => _entry)],
349
+ [_pu]: [() => input.publishers !== void 0, () => (input[_pu] || []).map((_entry) => _entry)],
350
+ [_o]: [() => input.owners !== void 0, () => (input[_o] || []).map((_entry) => _entry)],
511
351
  });
512
352
  let body;
513
- return new protocol_http_1.HttpRequest({
514
- protocol,
515
- hostname,
516
- port,
517
- method: "GET",
518
- headers,
519
- path: resolvedPath,
520
- query,
521
- body,
522
- });
353
+ b.m("GET").h(headers).q(query).b(body);
354
+ return b.build();
523
355
  };
524
356
  exports.se_DescribeAddonVersionsCommand = se_DescribeAddonVersionsCommand;
525
357
  const se_DescribeClusterCommand = async (input, context) => {
526
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
358
+ const b = (0, core_1.requestBuilder)(input, context);
527
359
  const headers = {};
528
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}";
529
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
360
+ b.bp("/clusters/{name}");
361
+ b.p("name", () => input.name, "{name}", false);
530
362
  let body;
531
- return new protocol_http_1.HttpRequest({
532
- protocol,
533
- hostname,
534
- port,
535
- method: "GET",
536
- headers,
537
- path: resolvedPath,
538
- body,
539
- });
363
+ b.m("GET").h(headers).b(body);
364
+ return b.build();
540
365
  };
541
366
  exports.se_DescribeClusterCommand = se_DescribeClusterCommand;
542
367
  const se_DescribeEksAnywhereSubscriptionCommand = async (input, context) => {
543
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
368
+ const b = (0, core_1.requestBuilder)(input, context);
544
369
  const headers = {};
545
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions/{id}";
546
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
370
+ b.bp("/eks-anywhere-subscriptions/{id}");
371
+ b.p("id", () => input.id, "{id}", false);
547
372
  let body;
548
- return new protocol_http_1.HttpRequest({
549
- protocol,
550
- hostname,
551
- port,
552
- method: "GET",
553
- headers,
554
- path: resolvedPath,
555
- body,
556
- });
373
+ b.m("GET").h(headers).b(body);
374
+ return b.build();
557
375
  };
558
376
  exports.se_DescribeEksAnywhereSubscriptionCommand = se_DescribeEksAnywhereSubscriptionCommand;
559
377
  const se_DescribeFargateProfileCommand = async (input, context) => {
560
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
378
+ const b = (0, core_1.requestBuilder)(input, context);
561
379
  const headers = {};
562
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
563
- "/clusters/{clusterName}/fargate-profiles/{fargateProfileName}";
564
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
565
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
380
+ b.bp("/clusters/{clusterName}/fargate-profiles/{fargateProfileName}");
381
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
382
+ b.p("fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
566
383
  let body;
567
- return new protocol_http_1.HttpRequest({
568
- protocol,
569
- hostname,
570
- port,
571
- method: "GET",
572
- headers,
573
- path: resolvedPath,
574
- body,
575
- });
384
+ b.m("GET").h(headers).b(body);
385
+ return b.build();
576
386
  };
577
387
  exports.se_DescribeFargateProfileCommand = se_DescribeFargateProfileCommand;
578
388
  const se_DescribeIdentityProviderConfigCommand = async (input, context) => {
579
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
389
+ const b = (0, core_1.requestBuilder)(input, context);
580
390
  const headers = {
581
391
  "content-type": "application/json",
582
392
  };
583
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
584
- "/clusters/{clusterName}/identity-provider-configs/describe";
585
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
393
+ b.bp("/clusters/{clusterName}/identity-provider-configs/describe");
394
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
586
395
  let body;
587
396
  body = JSON.stringify((0, smithy_client_1.take)(input, {
588
397
  identityProviderConfig: (_) => (0, smithy_client_1._json)(_),
589
398
  }));
590
- return new protocol_http_1.HttpRequest({
591
- protocol,
592
- hostname,
593
- port,
594
- method: "POST",
595
- headers,
596
- path: resolvedPath,
597
- body,
598
- });
399
+ b.m("POST").h(headers).b(body);
400
+ return b.build();
599
401
  };
600
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;
601
414
  const se_DescribeNodegroupCommand = async (input, context) => {
602
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
415
+ const b = (0, core_1.requestBuilder)(input, context);
603
416
  const headers = {};
604
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
605
- "/clusters/{clusterName}/node-groups/{nodegroupName}";
606
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
607
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
417
+ b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}");
418
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
419
+ b.p("nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
608
420
  let body;
609
- return new protocol_http_1.HttpRequest({
610
- protocol,
611
- hostname,
612
- port,
613
- method: "GET",
614
- headers,
615
- path: resolvedPath,
616
- body,
617
- });
421
+ b.m("GET").h(headers).b(body);
422
+ return b.build();
618
423
  };
619
424
  exports.se_DescribeNodegroupCommand = se_DescribeNodegroupCommand;
620
425
  const se_DescribePodIdentityAssociationCommand = async (input, context) => {
621
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
426
+ const b = (0, core_1.requestBuilder)(input, context);
622
427
  const headers = {};
623
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
624
- "/clusters/{clusterName}/pod-identity-associations/{associationId}";
625
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
626
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
428
+ b.bp("/clusters/{clusterName}/pod-identity-associations/{associationId}");
429
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
430
+ b.p("associationId", () => input.associationId, "{associationId}", false);
627
431
  let body;
628
- return new protocol_http_1.HttpRequest({
629
- protocol,
630
- hostname,
631
- port,
632
- method: "GET",
633
- headers,
634
- path: resolvedPath,
635
- body,
636
- });
432
+ b.m("GET").h(headers).b(body);
433
+ return b.build();
637
434
  };
638
435
  exports.se_DescribePodIdentityAssociationCommand = se_DescribePodIdentityAssociationCommand;
639
436
  const se_DescribeUpdateCommand = async (input, context) => {
640
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
437
+ const b = (0, core_1.requestBuilder)(input, context);
641
438
  const headers = {};
642
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/updates/{updateId}";
643
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
644
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "updateId", () => input.updateId, "{updateId}", false);
439
+ b.bp("/clusters/{name}/updates/{updateId}");
440
+ b.p("name", () => input.name, "{name}", false);
441
+ b.p("updateId", () => input.updateId, "{updateId}", false);
645
442
  const query = (0, smithy_client_1.map)({
646
- nodegroupName: [, input.nodegroupName],
647
- addonName: [, input.addonName],
443
+ [_nN]: [, input[_nN]],
444
+ [_aN]: [, input[_aN]],
648
445
  });
649
446
  let body;
650
- return new protocol_http_1.HttpRequest({
651
- protocol,
652
- hostname,
653
- port,
654
- method: "GET",
655
- headers,
656
- path: resolvedPath,
657
- query,
658
- body,
659
- });
447
+ b.m("GET").h(headers).q(query).b(body);
448
+ return b.build();
660
449
  };
661
450
  exports.se_DescribeUpdateCommand = se_DescribeUpdateCommand;
662
451
  const se_DisassociateAccessPolicyCommand = async (input, context) => {
663
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
452
+ const b = (0, core_1.requestBuilder)(input, context);
664
453
  const headers = {};
665
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
666
- "/clusters/{clusterName}/access-entries/{principalArn}/access-policies/{policyArn}";
667
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
668
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
669
- 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);
670
458
  let body;
671
- return new protocol_http_1.HttpRequest({
672
- protocol,
673
- hostname,
674
- port,
675
- method: "DELETE",
676
- headers,
677
- path: resolvedPath,
678
- body,
679
- });
459
+ b.m("DELETE").h(headers).b(body);
460
+ return b.build();
680
461
  };
681
462
  exports.se_DisassociateAccessPolicyCommand = se_DisassociateAccessPolicyCommand;
682
463
  const se_DisassociateIdentityProviderConfigCommand = async (input, context) => {
683
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
464
+ const b = (0, core_1.requestBuilder)(input, context);
684
465
  const headers = {
685
466
  "content-type": "application/json",
686
467
  };
687
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
688
- "/clusters/{clusterName}/identity-provider-configs/disassociate";
689
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
468
+ b.bp("/clusters/{clusterName}/identity-provider-configs/disassociate");
469
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
690
470
  let body;
691
471
  body = JSON.stringify((0, smithy_client_1.take)(input, {
692
472
  clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
693
473
  identityProviderConfig: (_) => (0, smithy_client_1._json)(_),
694
474
  }));
695
- return new protocol_http_1.HttpRequest({
696
- protocol,
697
- hostname,
698
- port,
699
- method: "POST",
700
- headers,
701
- path: resolvedPath,
702
- body,
703
- });
475
+ b.m("POST").h(headers).b(body);
476
+ return b.build();
704
477
  };
705
478
  exports.se_DisassociateIdentityProviderConfigCommand = se_DisassociateIdentityProviderConfigCommand;
706
479
  const se_ListAccessEntriesCommand = async (input, context) => {
707
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
480
+ const b = (0, core_1.requestBuilder)(input, context);
708
481
  const headers = {};
709
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/access-entries";
710
- 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);
711
484
  const query = (0, smithy_client_1.map)({
712
- associatedPolicyArn: [, input.associatedPolicyArn],
713
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
714
- nextToken: [, input.nextToken],
485
+ [_aPA]: [, input[_aPA]],
486
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
487
+ [_nT]: [, input[_nT]],
715
488
  });
716
489
  let body;
717
- return new protocol_http_1.HttpRequest({
718
- protocol,
719
- hostname,
720
- port,
721
- method: "GET",
722
- headers,
723
- path: resolvedPath,
724
- query,
725
- body,
726
- });
490
+ b.m("GET").h(headers).q(query).b(body);
491
+ return b.build();
727
492
  };
728
493
  exports.se_ListAccessEntriesCommand = se_ListAccessEntriesCommand;
729
494
  const se_ListAccessPoliciesCommand = async (input, context) => {
730
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
495
+ const b = (0, core_1.requestBuilder)(input, context);
731
496
  const headers = {};
732
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies";
497
+ b.bp("/access-policies");
733
498
  const query = (0, smithy_client_1.map)({
734
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
735
- nextToken: [, input.nextToken],
499
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
500
+ [_nT]: [, input[_nT]],
736
501
  });
737
502
  let body;
738
- return new protocol_http_1.HttpRequest({
739
- protocol,
740
- hostname,
741
- port,
742
- method: "GET",
743
- headers,
744
- path: resolvedPath,
745
- query,
746
- body,
747
- });
503
+ b.m("GET").h(headers).q(query).b(body);
504
+ return b.build();
748
505
  };
749
506
  exports.se_ListAccessPoliciesCommand = se_ListAccessPoliciesCommand;
750
507
  const se_ListAddonsCommand = async (input, context) => {
751
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
508
+ const b = (0, core_1.requestBuilder)(input, context);
752
509
  const headers = {};
753
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/addons";
754
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
510
+ b.bp("/clusters/{clusterName}/addons");
511
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
755
512
  const query = (0, smithy_client_1.map)({
756
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
757
- nextToken: [, input.nextToken],
513
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
514
+ [_nT]: [, input[_nT]],
758
515
  });
759
516
  let body;
760
- return new protocol_http_1.HttpRequest({
761
- protocol,
762
- hostname,
763
- port,
764
- method: "GET",
765
- headers,
766
- path: resolvedPath,
767
- query,
768
- body,
769
- });
517
+ b.m("GET").h(headers).q(query).b(body);
518
+ return b.build();
770
519
  };
771
520
  exports.se_ListAddonsCommand = se_ListAddonsCommand;
772
521
  const se_ListAssociatedAccessPoliciesCommand = async (input, context) => {
773
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
522
+ const b = (0, core_1.requestBuilder)(input, context);
774
523
  const headers = {};
775
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
776
- "/clusters/{clusterName}/access-entries/{principalArn}/access-policies";
777
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
778
- 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);
779
527
  const query = (0, smithy_client_1.map)({
780
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
781
- nextToken: [, input.nextToken],
528
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
529
+ [_nT]: [, input[_nT]],
782
530
  });
783
531
  let body;
784
- return new protocol_http_1.HttpRequest({
785
- protocol,
786
- hostname,
787
- port,
788
- method: "GET",
789
- headers,
790
- path: resolvedPath,
791
- query,
792
- body,
793
- });
532
+ b.m("GET").h(headers).q(query).b(body);
533
+ return b.build();
794
534
  };
795
535
  exports.se_ListAssociatedAccessPoliciesCommand = se_ListAssociatedAccessPoliciesCommand;
796
536
  const se_ListClustersCommand = async (input, context) => {
797
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
537
+ const b = (0, core_1.requestBuilder)(input, context);
798
538
  const headers = {};
799
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters";
539
+ b.bp("/clusters");
800
540
  const query = (0, smithy_client_1.map)({
801
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
802
- nextToken: [, input.nextToken],
803
- include: [() => input.include !== void 0, () => (input.include || []).map((_entry) => _entry)],
541
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
542
+ [_nT]: [, input[_nT]],
543
+ [_i]: [() => input.include !== void 0, () => (input[_i] || []).map((_entry) => _entry)],
804
544
  });
805
545
  let body;
806
- return new protocol_http_1.HttpRequest({
807
- protocol,
808
- hostname,
809
- port,
810
- method: "GET",
811
- headers,
812
- path: resolvedPath,
813
- query,
814
- body,
815
- });
546
+ b.m("GET").h(headers).q(query).b(body);
547
+ return b.build();
816
548
  };
817
549
  exports.se_ListClustersCommand = se_ListClustersCommand;
818
550
  const se_ListEksAnywhereSubscriptionsCommand = async (input, context) => {
819
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
551
+ const b = (0, core_1.requestBuilder)(input, context);
820
552
  const headers = {};
821
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions";
553
+ b.bp("/eks-anywhere-subscriptions");
822
554
  const query = (0, smithy_client_1.map)({
823
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
824
- nextToken: [, input.nextToken],
825
- includeStatus: [
826
- () => input.includeStatus !== void 0,
827
- () => (input.includeStatus || []).map((_entry) => _entry),
828
- ],
555
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
556
+ [_nT]: [, input[_nT]],
557
+ [_iS]: [() => input.includeStatus !== void 0, () => (input[_iS] || []).map((_entry) => _entry)],
829
558
  });
830
559
  let body;
831
- return new protocol_http_1.HttpRequest({
832
- protocol,
833
- hostname,
834
- port,
835
- method: "GET",
836
- headers,
837
- path: resolvedPath,
838
- query,
839
- body,
840
- });
560
+ b.m("GET").h(headers).q(query).b(body);
561
+ return b.build();
841
562
  };
842
563
  exports.se_ListEksAnywhereSubscriptionsCommand = se_ListEksAnywhereSubscriptionsCommand;
843
564
  const se_ListFargateProfilesCommand = async (input, context) => {
844
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
565
+ const b = (0, core_1.requestBuilder)(input, context);
845
566
  const headers = {};
846
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/fargate-profiles";
847
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
567
+ b.bp("/clusters/{clusterName}/fargate-profiles");
568
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
848
569
  const query = (0, smithy_client_1.map)({
849
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
850
- nextToken: [, input.nextToken],
570
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
571
+ [_nT]: [, input[_nT]],
851
572
  });
852
573
  let body;
853
- return new protocol_http_1.HttpRequest({
854
- protocol,
855
- hostname,
856
- port,
857
- method: "GET",
858
- headers,
859
- path: resolvedPath,
860
- query,
861
- body,
862
- });
574
+ b.m("GET").h(headers).q(query).b(body);
575
+ return b.build();
863
576
  };
864
577
  exports.se_ListFargateProfilesCommand = se_ListFargateProfilesCommand;
865
578
  const se_ListIdentityProviderConfigsCommand = async (input, context) => {
866
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
579
+ const b = (0, core_1.requestBuilder)(input, context);
867
580
  const headers = {};
868
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
869
- "/clusters/{clusterName}/identity-provider-configs";
870
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
581
+ b.bp("/clusters/{clusterName}/identity-provider-configs");
582
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
871
583
  const query = (0, smithy_client_1.map)({
872
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
873
- nextToken: [, input.nextToken],
584
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
585
+ [_nT]: [, input[_nT]],
874
586
  });
875
587
  let body;
876
- return new protocol_http_1.HttpRequest({
877
- protocol,
878
- hostname,
879
- port,
880
- method: "GET",
881
- headers,
882
- path: resolvedPath,
883
- query,
884
- body,
885
- });
588
+ b.m("GET").h(headers).q(query).b(body);
589
+ return b.build();
886
590
  };
887
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;
888
609
  const se_ListNodegroupsCommand = async (input, context) => {
889
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
610
+ const b = (0, core_1.requestBuilder)(input, context);
890
611
  const headers = {};
891
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/node-groups";
892
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
612
+ b.bp("/clusters/{clusterName}/node-groups");
613
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
893
614
  const query = (0, smithy_client_1.map)({
894
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
895
- nextToken: [, input.nextToken],
615
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
616
+ [_nT]: [, input[_nT]],
896
617
  });
897
618
  let body;
898
- return new protocol_http_1.HttpRequest({
899
- protocol,
900
- hostname,
901
- port,
902
- method: "GET",
903
- headers,
904
- path: resolvedPath,
905
- query,
906
- body,
907
- });
619
+ b.m("GET").h(headers).q(query).b(body);
620
+ return b.build();
908
621
  };
909
622
  exports.se_ListNodegroupsCommand = se_ListNodegroupsCommand;
910
623
  const se_ListPodIdentityAssociationsCommand = async (input, context) => {
911
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
624
+ const b = (0, core_1.requestBuilder)(input, context);
912
625
  const headers = {};
913
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
914
- "/clusters/{clusterName}/pod-identity-associations";
915
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
626
+ b.bp("/clusters/{clusterName}/pod-identity-associations");
627
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
916
628
  const query = (0, smithy_client_1.map)({
917
- namespace: [, input.namespace],
918
- serviceAccount: [, input.serviceAccount],
919
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
920
- nextToken: [, input.nextToken],
629
+ [_n]: [, input[_n]],
630
+ [_sA]: [, input[_sA]],
631
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
632
+ [_nT]: [, input[_nT]],
921
633
  });
922
634
  let body;
923
- return new protocol_http_1.HttpRequest({
924
- protocol,
925
- hostname,
926
- port,
927
- method: "GET",
928
- headers,
929
- path: resolvedPath,
930
- query,
931
- body,
932
- });
635
+ b.m("GET").h(headers).q(query).b(body);
636
+ return b.build();
933
637
  };
934
638
  exports.se_ListPodIdentityAssociationsCommand = se_ListPodIdentityAssociationsCommand;
935
639
  const se_ListTagsForResourceCommand = async (input, context) => {
936
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
640
+ const b = (0, core_1.requestBuilder)(input, context);
937
641
  const headers = {};
938
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
939
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
642
+ b.bp("/tags/{resourceArn}");
643
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
940
644
  let body;
941
- return new protocol_http_1.HttpRequest({
942
- protocol,
943
- hostname,
944
- port,
945
- method: "GET",
946
- headers,
947
- path: resolvedPath,
948
- body,
949
- });
645
+ b.m("GET").h(headers).b(body);
646
+ return b.build();
950
647
  };
951
648
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
952
649
  const se_ListUpdatesCommand = async (input, context) => {
953
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
650
+ const b = (0, core_1.requestBuilder)(input, context);
954
651
  const headers = {};
955
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/updates";
956
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
652
+ b.bp("/clusters/{name}/updates");
653
+ b.p("name", () => input.name, "{name}", false);
957
654
  const query = (0, smithy_client_1.map)({
958
- nodegroupName: [, input.nodegroupName],
959
- addonName: [, input.addonName],
960
- nextToken: [, input.nextToken],
961
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
655
+ [_nN]: [, input[_nN]],
656
+ [_aN]: [, input[_aN]],
657
+ [_nT]: [, input[_nT]],
658
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
962
659
  });
963
660
  let body;
964
- return new protocol_http_1.HttpRequest({
965
- protocol,
966
- hostname,
967
- port,
968
- method: "GET",
969
- headers,
970
- path: resolvedPath,
971
- query,
972
- body,
973
- });
661
+ b.m("GET").h(headers).q(query).b(body);
662
+ return b.build();
974
663
  };
975
664
  exports.se_ListUpdatesCommand = se_ListUpdatesCommand;
976
665
  const se_RegisterClusterCommand = async (input, context) => {
977
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
666
+ const b = (0, core_1.requestBuilder)(input, context);
978
667
  const headers = {
979
668
  "content-type": "application/json",
980
669
  };
981
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-registrations";
670
+ b.bp("/cluster-registrations");
982
671
  let body;
983
672
  body = JSON.stringify((0, smithy_client_1.take)(input, {
984
673
  clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -986,98 +675,67 @@ const se_RegisterClusterCommand = async (input, context) => {
986
675
  name: [],
987
676
  tags: (_) => (0, smithy_client_1._json)(_),
988
677
  }));
989
- return new protocol_http_1.HttpRequest({
990
- protocol,
991
- hostname,
992
- port,
993
- method: "POST",
994
- headers,
995
- path: resolvedPath,
996
- body,
997
- });
678
+ b.m("POST").h(headers).b(body);
679
+ return b.build();
998
680
  };
999
681
  exports.se_RegisterClusterCommand = se_RegisterClusterCommand;
1000
682
  const se_TagResourceCommand = async (input, context) => {
1001
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
683
+ const b = (0, core_1.requestBuilder)(input, context);
1002
684
  const headers = {
1003
685
  "content-type": "application/json",
1004
686
  };
1005
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1006
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
687
+ b.bp("/tags/{resourceArn}");
688
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1007
689
  let body;
1008
690
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1009
691
  tags: (_) => (0, smithy_client_1._json)(_),
1010
692
  }));
1011
- return new protocol_http_1.HttpRequest({
1012
- protocol,
1013
- hostname,
1014
- port,
1015
- method: "POST",
1016
- headers,
1017
- path: resolvedPath,
1018
- body,
1019
- });
693
+ b.m("POST").h(headers).b(body);
694
+ return b.build();
1020
695
  };
1021
696
  exports.se_TagResourceCommand = se_TagResourceCommand;
1022
697
  const se_UntagResourceCommand = async (input, context) => {
1023
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
698
+ const b = (0, core_1.requestBuilder)(input, context);
1024
699
  const headers = {};
1025
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1026
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
700
+ b.bp("/tags/{resourceArn}");
701
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1027
702
  const query = (0, smithy_client_1.map)({
1028
- tagKeys: [
703
+ [_tK]: [
1029
704
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
1030
- () => (input.tagKeys || []).map((_entry) => _entry),
705
+ () => (input[_tK] || []).map((_entry) => _entry),
1031
706
  ],
1032
707
  });
1033
708
  let body;
1034
- return new protocol_http_1.HttpRequest({
1035
- protocol,
1036
- hostname,
1037
- port,
1038
- method: "DELETE",
1039
- headers,
1040
- path: resolvedPath,
1041
- query,
1042
- body,
1043
- });
709
+ b.m("DELETE").h(headers).q(query).b(body);
710
+ return b.build();
1044
711
  };
1045
712
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
1046
713
  const se_UpdateAccessEntryCommand = async (input, context) => {
1047
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
714
+ const b = (0, core_1.requestBuilder)(input, context);
1048
715
  const headers = {
1049
716
  "content-type": "application/json",
1050
717
  };
1051
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1052
- "/clusters/{clusterName}/access-entries/{principalArn}";
1053
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
1054
- 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);
1055
721
  let body;
1056
722
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1057
723
  clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1058
724
  kubernetesGroups: (_) => (0, smithy_client_1._json)(_),
1059
725
  username: [],
1060
726
  }));
1061
- return new protocol_http_1.HttpRequest({
1062
- protocol,
1063
- hostname,
1064
- port,
1065
- method: "POST",
1066
- headers,
1067
- path: resolvedPath,
1068
- body,
1069
- });
727
+ b.m("POST").h(headers).b(body);
728
+ return b.build();
1070
729
  };
1071
730
  exports.se_UpdateAccessEntryCommand = se_UpdateAccessEntryCommand;
1072
731
  const se_UpdateAddonCommand = async (input, context) => {
1073
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
732
+ const b = (0, core_1.requestBuilder)(input, context);
1074
733
  const headers = {
1075
734
  "content-type": "application/json",
1076
735
  };
1077
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1078
- "/clusters/{clusterName}/addons/{addonName}/update";
1079
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
1080
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "addonName", () => input.addonName, "{addonName}", false);
736
+ b.bp("/clusters/{clusterName}/addons/{addonName}/update");
737
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
738
+ b.p("addonName", () => input.addonName, "{addonName}", false);
1081
739
  let body;
1082
740
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1083
741
  addonVersion: [],
@@ -1086,24 +744,17 @@ const se_UpdateAddonCommand = async (input, context) => {
1086
744
  resolveConflicts: [],
1087
745
  serviceAccountRoleArn: [],
1088
746
  }));
1089
- return new protocol_http_1.HttpRequest({
1090
- protocol,
1091
- hostname,
1092
- port,
1093
- method: "POST",
1094
- headers,
1095
- path: resolvedPath,
1096
- body,
1097
- });
747
+ b.m("POST").h(headers).b(body);
748
+ return b.build();
1098
749
  };
1099
750
  exports.se_UpdateAddonCommand = se_UpdateAddonCommand;
1100
751
  const se_UpdateClusterConfigCommand = async (input, context) => {
1101
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
752
+ const b = (0, core_1.requestBuilder)(input, context);
1102
753
  const headers = {
1103
754
  "content-type": "application/json",
1104
755
  };
1105
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/update-config";
1106
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
756
+ b.bp("/clusters/{name}/update-config");
757
+ b.p("name", () => input.name, "{name}", false);
1107
758
  let body;
1108
759
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1109
760
  accessConfig: (_) => (0, smithy_client_1._json)(_),
@@ -1111,72 +762,50 @@ const se_UpdateClusterConfigCommand = async (input, context) => {
1111
762
  logging: (_) => (0, smithy_client_1._json)(_),
1112
763
  resourcesVpcConfig: (_) => (0, smithy_client_1._json)(_),
1113
764
  }));
1114
- return new protocol_http_1.HttpRequest({
1115
- protocol,
1116
- hostname,
1117
- port,
1118
- method: "POST",
1119
- headers,
1120
- path: resolvedPath,
1121
- body,
1122
- });
765
+ b.m("POST").h(headers).b(body);
766
+ return b.build();
1123
767
  };
1124
768
  exports.se_UpdateClusterConfigCommand = se_UpdateClusterConfigCommand;
1125
769
  const se_UpdateClusterVersionCommand = async (input, context) => {
1126
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
770
+ const b = (0, core_1.requestBuilder)(input, context);
1127
771
  const headers = {
1128
772
  "content-type": "application/json",
1129
773
  };
1130
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/updates";
1131
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
774
+ b.bp("/clusters/{name}/updates");
775
+ b.p("name", () => input.name, "{name}", false);
1132
776
  let body;
1133
777
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1134
778
  clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1135
779
  version: [],
1136
780
  }));
1137
- return new protocol_http_1.HttpRequest({
1138
- protocol,
1139
- hostname,
1140
- port,
1141
- method: "POST",
1142
- headers,
1143
- path: resolvedPath,
1144
- body,
1145
- });
781
+ b.m("POST").h(headers).b(body);
782
+ return b.build();
1146
783
  };
1147
784
  exports.se_UpdateClusterVersionCommand = se_UpdateClusterVersionCommand;
1148
785
  const se_UpdateEksAnywhereSubscriptionCommand = async (input, context) => {
1149
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
786
+ const b = (0, core_1.requestBuilder)(input, context);
1150
787
  const headers = {
1151
788
  "content-type": "application/json",
1152
789
  };
1153
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions/{id}";
1154
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
790
+ b.bp("/eks-anywhere-subscriptions/{id}");
791
+ b.p("id", () => input.id, "{id}", false);
1155
792
  let body;
1156
793
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1157
794
  autoRenew: [],
1158
795
  clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1159
796
  }));
1160
- return new protocol_http_1.HttpRequest({
1161
- protocol,
1162
- hostname,
1163
- port,
1164
- method: "POST",
1165
- headers,
1166
- path: resolvedPath,
1167
- body,
1168
- });
797
+ b.m("POST").h(headers).b(body);
798
+ return b.build();
1169
799
  };
1170
800
  exports.se_UpdateEksAnywhereSubscriptionCommand = se_UpdateEksAnywhereSubscriptionCommand;
1171
801
  const se_UpdateNodegroupConfigCommand = async (input, context) => {
1172
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
802
+ const b = (0, core_1.requestBuilder)(input, context);
1173
803
  const headers = {
1174
804
  "content-type": "application/json",
1175
805
  };
1176
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1177
- "/clusters/{clusterName}/node-groups/{nodegroupName}/update-config";
1178
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
1179
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
806
+ b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}/update-config");
807
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
808
+ b.p("nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
1180
809
  let body;
1181
810
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1182
811
  clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -1185,26 +814,18 @@ const se_UpdateNodegroupConfigCommand = async (input, context) => {
1185
814
  taints: (_) => (0, smithy_client_1._json)(_),
1186
815
  updateConfig: (_) => (0, smithy_client_1._json)(_),
1187
816
  }));
1188
- return new protocol_http_1.HttpRequest({
1189
- protocol,
1190
- hostname,
1191
- port,
1192
- method: "POST",
1193
- headers,
1194
- path: resolvedPath,
1195
- body,
1196
- });
817
+ b.m("POST").h(headers).b(body);
818
+ return b.build();
1197
819
  };
1198
820
  exports.se_UpdateNodegroupConfigCommand = se_UpdateNodegroupConfigCommand;
1199
821
  const se_UpdateNodegroupVersionCommand = async (input, context) => {
1200
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
822
+ const b = (0, core_1.requestBuilder)(input, context);
1201
823
  const headers = {
1202
824
  "content-type": "application/json",
1203
825
  };
1204
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1205
- "/clusters/{clusterName}/node-groups/{nodegroupName}/update-version";
1206
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
1207
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
826
+ b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}/update-version");
827
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
828
+ b.p("nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
1208
829
  let body;
1209
830
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1210
831
  clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -1213,40 +834,25 @@ const se_UpdateNodegroupVersionCommand = async (input, context) => {
1213
834
  releaseVersion: [],
1214
835
  version: [],
1215
836
  }));
1216
- return new protocol_http_1.HttpRequest({
1217
- protocol,
1218
- hostname,
1219
- port,
1220
- method: "POST",
1221
- headers,
1222
- path: resolvedPath,
1223
- body,
1224
- });
837
+ b.m("POST").h(headers).b(body);
838
+ return b.build();
1225
839
  };
1226
840
  exports.se_UpdateNodegroupVersionCommand = se_UpdateNodegroupVersionCommand;
1227
841
  const se_UpdatePodIdentityAssociationCommand = async (input, context) => {
1228
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
842
+ const b = (0, core_1.requestBuilder)(input, context);
1229
843
  const headers = {
1230
844
  "content-type": "application/json",
1231
845
  };
1232
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1233
- "/clusters/{clusterName}/pod-identity-associations/{associationId}";
1234
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
1235
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
846
+ b.bp("/clusters/{clusterName}/pod-identity-associations/{associationId}");
847
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
848
+ b.p("associationId", () => input.associationId, "{associationId}", false);
1236
849
  let body;
1237
850
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1238
851
  clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1239
852
  roleArn: [],
1240
853
  }));
1241
- return new protocol_http_1.HttpRequest({
1242
- protocol,
1243
- hostname,
1244
- port,
1245
- method: "POST",
1246
- headers,
1247
- path: resolvedPath,
1248
- body,
1249
- });
854
+ b.m("POST").h(headers).b(body);
855
+ return b.build();
1250
856
  };
1251
857
  exports.se_UpdatePodIdentityAssociationCommand = se_UpdatePodIdentityAssociationCommand;
1252
858
  const de_AssociateAccessPolicyCommand = async (output, context) => {
@@ -2438,6 +2044,49 @@ const de_DescribeIdentityProviderConfigCommandError = async (output, context) =>
2438
2044
  });
2439
2045
  }
2440
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
+ };
2441
2090
  const de_DescribeNodegroupCommand = async (output, context) => {
2442
2091
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2443
2092
  return de_DescribeNodegroupCommandError(output, context);
@@ -3003,6 +2652,50 @@ const de_ListIdentityProviderConfigsCommandError = async (output, context) => {
3003
2652
  });
3004
2653
  }
3005
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
+ };
3006
2699
  const de_ListNodegroupsCommand = async (output, context) => {
3007
2700
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3008
2701
  return de_ListNodegroupsCommandError(output, context);
@@ -3921,6 +3614,21 @@ const de_AssociatedAccessPolicy = (output, context) => {
3921
3614
  policyArn: smithy_client_1.expectString,
3922
3615
  });
3923
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
+ };
3924
3632
  const de_Cluster = (output, context) => {
3925
3633
  return (0, smithy_client_1.take)(output, {
3926
3634
  accessConfig: smithy_client_1._json,
@@ -3955,6 +3663,23 @@ const de_ConnectorConfigResponse = (output, context) => {
3955
3663
  roleArn: smithy_client_1.expectString,
3956
3664
  });
3957
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
+ };
3958
3683
  const de_EksAnywhereSubscription = (output, context) => {
3959
3684
  return (0, smithy_client_1.take)(output, {
3960
3685
  arn: smithy_client_1.expectString,
@@ -3992,6 +3717,47 @@ const de_FargateProfile = (output, context) => {
3992
3717
  tags: smithy_client_1._json,
3993
3718
  });
3994
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
+ };
3995
3761
  const de_Nodegroup = (output, context) => {
3996
3762
  return (0, smithy_client_1.take)(output, {
3997
3763
  amiType: smithy_client_1.expectString,
@@ -4054,6 +3820,22 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
4054
3820
  value !== "" &&
4055
3821
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
4056
3822
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
3823
+ const _aN = "addonName";
3824
+ const _aPA = "associatedPolicyArn";
3825
+ const _aV = "addonVersion";
3826
+ const _i = "include";
3827
+ const _iS = "includeStatus";
3828
+ const _kV = "kubernetesVersion";
3829
+ const _mR = "maxResults";
3830
+ const _n = "namespace";
3831
+ const _nN = "nodegroupName";
3832
+ const _nT = "nextToken";
3833
+ const _o = "owners";
3834
+ const _p = "preserve";
3835
+ const _pu = "publishers";
3836
+ const _sA = "serviceAccount";
3837
+ const _t = "types";
3838
+ const _tK = "tagKeys";
4057
3839
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
4058
3840
  if (encoded.length) {
4059
3841
  return JSON.parse(encoded);