@aws-sdk/client-eks 3.489.0 → 3.495.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 (92) hide show
  1. package/dist-cjs/EKS.js +1 -123
  2. package/dist-cjs/EKSClient.js +1 -43
  3. package/dist-cjs/commands/AssociateAccessPolicyCommand.js +1 -28
  4. package/dist-cjs/commands/AssociateEncryptionConfigCommand.js +1 -28
  5. package/dist-cjs/commands/AssociateIdentityProviderConfigCommand.js +1 -28
  6. package/dist-cjs/commands/CreateAccessEntryCommand.js +1 -28
  7. package/dist-cjs/commands/CreateAddonCommand.js +1 -28
  8. package/dist-cjs/commands/CreateClusterCommand.js +1 -28
  9. package/dist-cjs/commands/CreateEksAnywhereSubscriptionCommand.js +1 -28
  10. package/dist-cjs/commands/CreateFargateProfileCommand.js +1 -28
  11. package/dist-cjs/commands/CreateNodegroupCommand.js +1 -28
  12. package/dist-cjs/commands/CreatePodIdentityAssociationCommand.js +1 -28
  13. package/dist-cjs/commands/DeleteAccessEntryCommand.js +1 -28
  14. package/dist-cjs/commands/DeleteAddonCommand.js +1 -28
  15. package/dist-cjs/commands/DeleteClusterCommand.js +1 -28
  16. package/dist-cjs/commands/DeleteEksAnywhereSubscriptionCommand.js +1 -28
  17. package/dist-cjs/commands/DeleteFargateProfileCommand.js +1 -28
  18. package/dist-cjs/commands/DeleteNodegroupCommand.js +1 -28
  19. package/dist-cjs/commands/DeletePodIdentityAssociationCommand.js +1 -28
  20. package/dist-cjs/commands/DeregisterClusterCommand.js +1 -28
  21. package/dist-cjs/commands/DescribeAccessEntryCommand.js +1 -28
  22. package/dist-cjs/commands/DescribeAddonCommand.js +1 -28
  23. package/dist-cjs/commands/DescribeAddonConfigurationCommand.js +1 -28
  24. package/dist-cjs/commands/DescribeAddonVersionsCommand.js +1 -28
  25. package/dist-cjs/commands/DescribeClusterCommand.js +1 -28
  26. package/dist-cjs/commands/DescribeEksAnywhereSubscriptionCommand.js +1 -28
  27. package/dist-cjs/commands/DescribeFargateProfileCommand.js +1 -28
  28. package/dist-cjs/commands/DescribeIdentityProviderConfigCommand.js +1 -28
  29. package/dist-cjs/commands/DescribeInsightCommand.js +1 -28
  30. package/dist-cjs/commands/DescribeNodegroupCommand.js +1 -28
  31. package/dist-cjs/commands/DescribePodIdentityAssociationCommand.js +1 -28
  32. package/dist-cjs/commands/DescribeUpdateCommand.js +1 -28
  33. package/dist-cjs/commands/DisassociateAccessPolicyCommand.js +1 -28
  34. package/dist-cjs/commands/DisassociateIdentityProviderConfigCommand.js +1 -28
  35. package/dist-cjs/commands/ListAccessEntriesCommand.js +1 -28
  36. package/dist-cjs/commands/ListAccessPoliciesCommand.js +1 -28
  37. package/dist-cjs/commands/ListAddonsCommand.js +1 -28
  38. package/dist-cjs/commands/ListAssociatedAccessPoliciesCommand.js +1 -28
  39. package/dist-cjs/commands/ListClustersCommand.js +1 -28
  40. package/dist-cjs/commands/ListEksAnywhereSubscriptionsCommand.js +1 -28
  41. package/dist-cjs/commands/ListFargateProfilesCommand.js +1 -28
  42. package/dist-cjs/commands/ListIdentityProviderConfigsCommand.js +1 -28
  43. package/dist-cjs/commands/ListInsightsCommand.js +1 -28
  44. package/dist-cjs/commands/ListNodegroupsCommand.js +1 -28
  45. package/dist-cjs/commands/ListPodIdentityAssociationsCommand.js +1 -28
  46. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  47. package/dist-cjs/commands/ListUpdatesCommand.js +1 -28
  48. package/dist-cjs/commands/RegisterClusterCommand.js +1 -28
  49. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  50. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  51. package/dist-cjs/commands/UpdateAccessEntryCommand.js +1 -28
  52. package/dist-cjs/commands/UpdateAddonCommand.js +1 -28
  53. package/dist-cjs/commands/UpdateClusterConfigCommand.js +1 -28
  54. package/dist-cjs/commands/UpdateClusterVersionCommand.js +1 -28
  55. package/dist-cjs/commands/UpdateEksAnywhereSubscriptionCommand.js +1 -28
  56. package/dist-cjs/commands/UpdateNodegroupConfigCommand.js +1 -28
  57. package/dist-cjs/commands/UpdateNodegroupVersionCommand.js +1 -28
  58. package/dist-cjs/commands/UpdatePodIdentityAssociationCommand.js +1 -28
  59. package/dist-cjs/commands/index.js +1 -59
  60. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  61. package/dist-cjs/extensionConfiguration.js +1 -2
  62. package/dist-cjs/index.js +6092 -12
  63. package/dist-cjs/models/EKSServiceException.js +1 -12
  64. package/dist-cjs/models/index.js +1 -4
  65. package/dist-cjs/models/models_0.js +1 -457
  66. package/dist-cjs/pagination/DescribeAddonVersionsPaginator.js +1 -7
  67. package/dist-cjs/pagination/Interfaces.js +1 -2
  68. package/dist-cjs/pagination/ListAccessEntriesPaginator.js +1 -7
  69. package/dist-cjs/pagination/ListAccessPoliciesPaginator.js +1 -7
  70. package/dist-cjs/pagination/ListAddonsPaginator.js +1 -7
  71. package/dist-cjs/pagination/ListAssociatedAccessPoliciesPaginator.js +1 -7
  72. package/dist-cjs/pagination/ListClustersPaginator.js +1 -7
  73. package/dist-cjs/pagination/ListEksAnywhereSubscriptionsPaginator.js +1 -7
  74. package/dist-cjs/pagination/ListFargateProfilesPaginator.js +1 -7
  75. package/dist-cjs/pagination/ListIdentityProviderConfigsPaginator.js +1 -7
  76. package/dist-cjs/pagination/ListInsightsPaginator.js +1 -7
  77. package/dist-cjs/pagination/ListNodegroupsPaginator.js +1 -7
  78. package/dist-cjs/pagination/ListPodIdentityAssociationsPaginator.js +1 -7
  79. package/dist-cjs/pagination/ListUpdatesPaginator.js +1 -7
  80. package/dist-cjs/pagination/index.js +1 -17
  81. package/dist-cjs/protocols/Aws_restJson1.js +1 -3878
  82. package/dist-cjs/runtimeExtensions.js +1 -22
  83. package/dist-cjs/waiters/index.js +1 -11
  84. package/dist-cjs/waiters/waitForAddonActive.js +1 -54
  85. package/dist-cjs/waiters/waitForAddonDeleted.js +1 -39
  86. package/dist-cjs/waiters/waitForClusterActive.js +1 -54
  87. package/dist-cjs/waiters/waitForClusterDeleted.js +1 -57
  88. package/dist-cjs/waiters/waitForFargateProfileActive.js +1 -45
  89. package/dist-cjs/waiters/waitForFargateProfileDeleted.js +1 -39
  90. package/dist-cjs/waiters/waitForNodegroupActive.js +1 -45
  91. package/dist-cjs/waiters/waitForNodegroupDeleted.js +1 -39
  92. package/package.json +41 -41
@@ -1,3878 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
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
- const smithy_client_1 = require("@smithy/smithy-client");
8
- const uuid_1 = require("uuid");
9
- const EKSServiceException_1 = require("../models/EKSServiceException");
10
- const models_0_1 = require("../models/models_0");
11
- const se_AssociateAccessPolicyCommand = async (input, context) => {
12
- const b = (0, core_1.requestBuilder)(input, context);
13
- const headers = {
14
- "content-type": "application/json",
15
- };
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);
19
- let body;
20
- body = JSON.stringify((0, smithy_client_1.take)(input, {
21
- accessScope: (_) => (0, smithy_client_1._json)(_),
22
- policyArn: [],
23
- }));
24
- b.m("POST").h(headers).b(body);
25
- return b.build();
26
- };
27
- exports.se_AssociateAccessPolicyCommand = se_AssociateAccessPolicyCommand;
28
- const se_AssociateEncryptionConfigCommand = async (input, context) => {
29
- const b = (0, core_1.requestBuilder)(input, context);
30
- const headers = {
31
- "content-type": "application/json",
32
- };
33
- b.bp("/clusters/{clusterName}/encryption-config/associate");
34
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
35
- let body;
36
- body = JSON.stringify((0, smithy_client_1.take)(input, {
37
- clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
38
- encryptionConfig: (_) => (0, smithy_client_1._json)(_),
39
- }));
40
- b.m("POST").h(headers).b(body);
41
- return b.build();
42
- };
43
- exports.se_AssociateEncryptionConfigCommand = se_AssociateEncryptionConfigCommand;
44
- const se_AssociateIdentityProviderConfigCommand = async (input, context) => {
45
- const b = (0, core_1.requestBuilder)(input, context);
46
- const headers = {
47
- "content-type": "application/json",
48
- };
49
- b.bp("/clusters/{clusterName}/identity-provider-configs/associate");
50
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
51
- let body;
52
- body = JSON.stringify((0, smithy_client_1.take)(input, {
53
- clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
54
- oidc: (_) => (0, smithy_client_1._json)(_),
55
- tags: (_) => (0, smithy_client_1._json)(_),
56
- }));
57
- b.m("POST").h(headers).b(body);
58
- return b.build();
59
- };
60
- exports.se_AssociateIdentityProviderConfigCommand = se_AssociateIdentityProviderConfigCommand;
61
- const se_CreateAccessEntryCommand = async (input, context) => {
62
- const b = (0, core_1.requestBuilder)(input, context);
63
- const headers = {
64
- "content-type": "application/json",
65
- };
66
- b.bp("/clusters/{clusterName}/access-entries");
67
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
68
- let body;
69
- body = JSON.stringify((0, smithy_client_1.take)(input, {
70
- clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
71
- kubernetesGroups: (_) => (0, smithy_client_1._json)(_),
72
- principalArn: [],
73
- tags: (_) => (0, smithy_client_1._json)(_),
74
- type: [],
75
- username: [],
76
- }));
77
- b.m("POST").h(headers).b(body);
78
- return b.build();
79
- };
80
- exports.se_CreateAccessEntryCommand = se_CreateAccessEntryCommand;
81
- const se_CreateAddonCommand = async (input, context) => {
82
- const b = (0, core_1.requestBuilder)(input, context);
83
- const headers = {
84
- "content-type": "application/json",
85
- };
86
- b.bp("/clusters/{clusterName}/addons");
87
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
88
- let body;
89
- body = JSON.stringify((0, smithy_client_1.take)(input, {
90
- addonName: [],
91
- addonVersion: [],
92
- clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
93
- configurationValues: [],
94
- resolveConflicts: [],
95
- serviceAccountRoleArn: [],
96
- tags: (_) => (0, smithy_client_1._json)(_),
97
- }));
98
- b.m("POST").h(headers).b(body);
99
- return b.build();
100
- };
101
- exports.se_CreateAddonCommand = se_CreateAddonCommand;
102
- const se_CreateClusterCommand = async (input, context) => {
103
- const b = (0, core_1.requestBuilder)(input, context);
104
- const headers = {
105
- "content-type": "application/json",
106
- };
107
- b.bp("/clusters");
108
- let body;
109
- body = JSON.stringify((0, smithy_client_1.take)(input, {
110
- accessConfig: (_) => (0, smithy_client_1._json)(_),
111
- clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
112
- encryptionConfig: (_) => (0, smithy_client_1._json)(_),
113
- kubernetesNetworkConfig: (_) => (0, smithy_client_1._json)(_),
114
- logging: (_) => (0, smithy_client_1._json)(_),
115
- name: [],
116
- outpostConfig: (_) => (0, smithy_client_1._json)(_),
117
- resourcesVpcConfig: (_) => (0, smithy_client_1._json)(_),
118
- roleArn: [],
119
- tags: (_) => (0, smithy_client_1._json)(_),
120
- version: [],
121
- }));
122
- b.m("POST").h(headers).b(body);
123
- return b.build();
124
- };
125
- exports.se_CreateClusterCommand = se_CreateClusterCommand;
126
- const se_CreateEksAnywhereSubscriptionCommand = async (input, context) => {
127
- const b = (0, core_1.requestBuilder)(input, context);
128
- const headers = {
129
- "content-type": "application/json",
130
- };
131
- b.bp("/eks-anywhere-subscriptions");
132
- let body;
133
- body = JSON.stringify((0, smithy_client_1.take)(input, {
134
- autoRenew: [],
135
- clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
136
- licenseQuantity: [],
137
- licenseType: [],
138
- name: [],
139
- tags: (_) => (0, smithy_client_1._json)(_),
140
- term: (_) => (0, smithy_client_1._json)(_),
141
- }));
142
- b.m("POST").h(headers).b(body);
143
- return b.build();
144
- };
145
- exports.se_CreateEksAnywhereSubscriptionCommand = se_CreateEksAnywhereSubscriptionCommand;
146
- const se_CreateFargateProfileCommand = async (input, context) => {
147
- const b = (0, core_1.requestBuilder)(input, context);
148
- const headers = {
149
- "content-type": "application/json",
150
- };
151
- b.bp("/clusters/{clusterName}/fargate-profiles");
152
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
153
- let body;
154
- body = JSON.stringify((0, smithy_client_1.take)(input, {
155
- clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
156
- fargateProfileName: [],
157
- podExecutionRoleArn: [],
158
- selectors: (_) => (0, smithy_client_1._json)(_),
159
- subnets: (_) => (0, smithy_client_1._json)(_),
160
- tags: (_) => (0, smithy_client_1._json)(_),
161
- }));
162
- b.m("POST").h(headers).b(body);
163
- return b.build();
164
- };
165
- exports.se_CreateFargateProfileCommand = se_CreateFargateProfileCommand;
166
- const se_CreateNodegroupCommand = async (input, context) => {
167
- const b = (0, core_1.requestBuilder)(input, context);
168
- const headers = {
169
- "content-type": "application/json",
170
- };
171
- b.bp("/clusters/{clusterName}/node-groups");
172
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
173
- let body;
174
- body = JSON.stringify((0, smithy_client_1.take)(input, {
175
- amiType: [],
176
- capacityType: [],
177
- clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
178
- diskSize: [],
179
- instanceTypes: (_) => (0, smithy_client_1._json)(_),
180
- labels: (_) => (0, smithy_client_1._json)(_),
181
- launchTemplate: (_) => (0, smithy_client_1._json)(_),
182
- nodeRole: [],
183
- nodegroupName: [],
184
- releaseVersion: [],
185
- remoteAccess: (_) => (0, smithy_client_1._json)(_),
186
- scalingConfig: (_) => (0, smithy_client_1._json)(_),
187
- subnets: (_) => (0, smithy_client_1._json)(_),
188
- tags: (_) => (0, smithy_client_1._json)(_),
189
- taints: (_) => (0, smithy_client_1._json)(_),
190
- updateConfig: (_) => (0, smithy_client_1._json)(_),
191
- version: [],
192
- }));
193
- b.m("POST").h(headers).b(body);
194
- return b.build();
195
- };
196
- exports.se_CreateNodegroupCommand = se_CreateNodegroupCommand;
197
- const se_CreatePodIdentityAssociationCommand = async (input, context) => {
198
- const b = (0, core_1.requestBuilder)(input, context);
199
- const headers = {
200
- "content-type": "application/json",
201
- };
202
- b.bp("/clusters/{clusterName}/pod-identity-associations");
203
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
204
- let body;
205
- body = JSON.stringify((0, smithy_client_1.take)(input, {
206
- clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
207
- namespace: [],
208
- roleArn: [],
209
- serviceAccount: [],
210
- tags: (_) => (0, smithy_client_1._json)(_),
211
- }));
212
- b.m("POST").h(headers).b(body);
213
- return b.build();
214
- };
215
- exports.se_CreatePodIdentityAssociationCommand = se_CreatePodIdentityAssociationCommand;
216
- const se_DeleteAccessEntryCommand = async (input, context) => {
217
- const b = (0, core_1.requestBuilder)(input, context);
218
- const headers = {};
219
- b.bp("/clusters/{clusterName}/access-entries/{principalArn}");
220
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
221
- b.p("principalArn", () => input.principalArn, "{principalArn}", false);
222
- let body;
223
- b.m("DELETE").h(headers).b(body);
224
- return b.build();
225
- };
226
- exports.se_DeleteAccessEntryCommand = se_DeleteAccessEntryCommand;
227
- const se_DeleteAddonCommand = async (input, context) => {
228
- const b = (0, core_1.requestBuilder)(input, context);
229
- const headers = {};
230
- b.bp("/clusters/{clusterName}/addons/{addonName}");
231
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
232
- b.p("addonName", () => input.addonName, "{addonName}", false);
233
- const query = (0, smithy_client_1.map)({
234
- [_p]: [() => input.preserve !== void 0, () => input[_p].toString()],
235
- });
236
- let body;
237
- b.m("DELETE").h(headers).q(query).b(body);
238
- return b.build();
239
- };
240
- exports.se_DeleteAddonCommand = se_DeleteAddonCommand;
241
- const se_DeleteClusterCommand = async (input, context) => {
242
- const b = (0, core_1.requestBuilder)(input, context);
243
- const headers = {};
244
- b.bp("/clusters/{name}");
245
- b.p("name", () => input.name, "{name}", false);
246
- let body;
247
- b.m("DELETE").h(headers).b(body);
248
- return b.build();
249
- };
250
- exports.se_DeleteClusterCommand = se_DeleteClusterCommand;
251
- const se_DeleteEksAnywhereSubscriptionCommand = async (input, context) => {
252
- const b = (0, core_1.requestBuilder)(input, context);
253
- const headers = {};
254
- b.bp("/eks-anywhere-subscriptions/{id}");
255
- b.p("id", () => input.id, "{id}", false);
256
- let body;
257
- b.m("DELETE").h(headers).b(body);
258
- return b.build();
259
- };
260
- exports.se_DeleteEksAnywhereSubscriptionCommand = se_DeleteEksAnywhereSubscriptionCommand;
261
- const se_DeleteFargateProfileCommand = async (input, context) => {
262
- const b = (0, core_1.requestBuilder)(input, context);
263
- const headers = {};
264
- b.bp("/clusters/{clusterName}/fargate-profiles/{fargateProfileName}");
265
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
266
- b.p("fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
267
- let body;
268
- b.m("DELETE").h(headers).b(body);
269
- return b.build();
270
- };
271
- exports.se_DeleteFargateProfileCommand = se_DeleteFargateProfileCommand;
272
- const se_DeleteNodegroupCommand = async (input, context) => {
273
- const b = (0, core_1.requestBuilder)(input, context);
274
- const headers = {};
275
- b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}");
276
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
277
- b.p("nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
278
- let body;
279
- b.m("DELETE").h(headers).b(body);
280
- return b.build();
281
- };
282
- exports.se_DeleteNodegroupCommand = se_DeleteNodegroupCommand;
283
- const se_DeletePodIdentityAssociationCommand = async (input, context) => {
284
- const b = (0, core_1.requestBuilder)(input, context);
285
- const headers = {};
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);
289
- let body;
290
- b.m("DELETE").h(headers).b(body);
291
- return b.build();
292
- };
293
- exports.se_DeletePodIdentityAssociationCommand = se_DeletePodIdentityAssociationCommand;
294
- const se_DeregisterClusterCommand = async (input, context) => {
295
- const b = (0, core_1.requestBuilder)(input, context);
296
- const headers = {};
297
- b.bp("/cluster-registrations/{name}");
298
- b.p("name", () => input.name, "{name}", false);
299
- let body;
300
- b.m("DELETE").h(headers).b(body);
301
- return b.build();
302
- };
303
- exports.se_DeregisterClusterCommand = se_DeregisterClusterCommand;
304
- const se_DescribeAccessEntryCommand = async (input, context) => {
305
- const b = (0, core_1.requestBuilder)(input, context);
306
- const headers = {};
307
- b.bp("/clusters/{clusterName}/access-entries/{principalArn}");
308
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
309
- b.p("principalArn", () => input.principalArn, "{principalArn}", false);
310
- let body;
311
- b.m("GET").h(headers).b(body);
312
- return b.build();
313
- };
314
- exports.se_DescribeAccessEntryCommand = se_DescribeAccessEntryCommand;
315
- const se_DescribeAddonCommand = async (input, context) => {
316
- const b = (0, core_1.requestBuilder)(input, context);
317
- const headers = {};
318
- b.bp("/clusters/{clusterName}/addons/{addonName}");
319
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
320
- b.p("addonName", () => input.addonName, "{addonName}", false);
321
- let body;
322
- b.m("GET").h(headers).b(body);
323
- return b.build();
324
- };
325
- exports.se_DescribeAddonCommand = se_DescribeAddonCommand;
326
- const se_DescribeAddonConfigurationCommand = async (input, context) => {
327
- const b = (0, core_1.requestBuilder)(input, context);
328
- const headers = {};
329
- b.bp("/addons/configuration-schemas");
330
- const query = (0, smithy_client_1.map)({
331
- [_aN]: [, (0, smithy_client_1.expectNonNull)(input[_aN], `addonName`)],
332
- [_aV]: [, (0, smithy_client_1.expectNonNull)(input[_aV], `addonVersion`)],
333
- });
334
- let body;
335
- b.m("GET").h(headers).q(query).b(body);
336
- return b.build();
337
- };
338
- exports.se_DescribeAddonConfigurationCommand = se_DescribeAddonConfigurationCommand;
339
- const se_DescribeAddonVersionsCommand = async (input, context) => {
340
- const b = (0, core_1.requestBuilder)(input, context);
341
- const headers = {};
342
- b.bp("/addons/supported-versions");
343
- const query = (0, smithy_client_1.map)({
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)],
351
- });
352
- let body;
353
- b.m("GET").h(headers).q(query).b(body);
354
- return b.build();
355
- };
356
- exports.se_DescribeAddonVersionsCommand = se_DescribeAddonVersionsCommand;
357
- const se_DescribeClusterCommand = async (input, context) => {
358
- const b = (0, core_1.requestBuilder)(input, context);
359
- const headers = {};
360
- b.bp("/clusters/{name}");
361
- b.p("name", () => input.name, "{name}", false);
362
- let body;
363
- b.m("GET").h(headers).b(body);
364
- return b.build();
365
- };
366
- exports.se_DescribeClusterCommand = se_DescribeClusterCommand;
367
- const se_DescribeEksAnywhereSubscriptionCommand = async (input, context) => {
368
- const b = (0, core_1.requestBuilder)(input, context);
369
- const headers = {};
370
- b.bp("/eks-anywhere-subscriptions/{id}");
371
- b.p("id", () => input.id, "{id}", false);
372
- let body;
373
- b.m("GET").h(headers).b(body);
374
- return b.build();
375
- };
376
- exports.se_DescribeEksAnywhereSubscriptionCommand = se_DescribeEksAnywhereSubscriptionCommand;
377
- const se_DescribeFargateProfileCommand = async (input, context) => {
378
- const b = (0, core_1.requestBuilder)(input, context);
379
- const headers = {};
380
- b.bp("/clusters/{clusterName}/fargate-profiles/{fargateProfileName}");
381
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
382
- b.p("fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
383
- let body;
384
- b.m("GET").h(headers).b(body);
385
- return b.build();
386
- };
387
- exports.se_DescribeFargateProfileCommand = se_DescribeFargateProfileCommand;
388
- const se_DescribeIdentityProviderConfigCommand = async (input, context) => {
389
- const b = (0, core_1.requestBuilder)(input, context);
390
- const headers = {
391
- "content-type": "application/json",
392
- };
393
- b.bp("/clusters/{clusterName}/identity-provider-configs/describe");
394
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
395
- let body;
396
- body = JSON.stringify((0, smithy_client_1.take)(input, {
397
- identityProviderConfig: (_) => (0, smithy_client_1._json)(_),
398
- }));
399
- b.m("POST").h(headers).b(body);
400
- return b.build();
401
- };
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;
414
- const se_DescribeNodegroupCommand = async (input, context) => {
415
- const b = (0, core_1.requestBuilder)(input, context);
416
- const headers = {};
417
- b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}");
418
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
419
- b.p("nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
420
- let body;
421
- b.m("GET").h(headers).b(body);
422
- return b.build();
423
- };
424
- exports.se_DescribeNodegroupCommand = se_DescribeNodegroupCommand;
425
- const se_DescribePodIdentityAssociationCommand = async (input, context) => {
426
- const b = (0, core_1.requestBuilder)(input, context);
427
- const headers = {};
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);
431
- let body;
432
- b.m("GET").h(headers).b(body);
433
- return b.build();
434
- };
435
- exports.se_DescribePodIdentityAssociationCommand = se_DescribePodIdentityAssociationCommand;
436
- const se_DescribeUpdateCommand = async (input, context) => {
437
- const b = (0, core_1.requestBuilder)(input, context);
438
- const headers = {};
439
- b.bp("/clusters/{name}/updates/{updateId}");
440
- b.p("name", () => input.name, "{name}", false);
441
- b.p("updateId", () => input.updateId, "{updateId}", false);
442
- const query = (0, smithy_client_1.map)({
443
- [_nN]: [, input[_nN]],
444
- [_aN]: [, input[_aN]],
445
- });
446
- let body;
447
- b.m("GET").h(headers).q(query).b(body);
448
- return b.build();
449
- };
450
- exports.se_DescribeUpdateCommand = se_DescribeUpdateCommand;
451
- const se_DisassociateAccessPolicyCommand = async (input, context) => {
452
- const b = (0, core_1.requestBuilder)(input, context);
453
- const headers = {};
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);
458
- let body;
459
- b.m("DELETE").h(headers).b(body);
460
- return b.build();
461
- };
462
- exports.se_DisassociateAccessPolicyCommand = se_DisassociateAccessPolicyCommand;
463
- const se_DisassociateIdentityProviderConfigCommand = async (input, context) => {
464
- const b = (0, core_1.requestBuilder)(input, context);
465
- const headers = {
466
- "content-type": "application/json",
467
- };
468
- b.bp("/clusters/{clusterName}/identity-provider-configs/disassociate");
469
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
470
- let body;
471
- body = JSON.stringify((0, smithy_client_1.take)(input, {
472
- clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
473
- identityProviderConfig: (_) => (0, smithy_client_1._json)(_),
474
- }));
475
- b.m("POST").h(headers).b(body);
476
- return b.build();
477
- };
478
- exports.se_DisassociateIdentityProviderConfigCommand = se_DisassociateIdentityProviderConfigCommand;
479
- const se_ListAccessEntriesCommand = async (input, context) => {
480
- const b = (0, core_1.requestBuilder)(input, context);
481
- const headers = {};
482
- b.bp("/clusters/{clusterName}/access-entries");
483
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
484
- const query = (0, smithy_client_1.map)({
485
- [_aPA]: [, input[_aPA]],
486
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
487
- [_nT]: [, input[_nT]],
488
- });
489
- let body;
490
- b.m("GET").h(headers).q(query).b(body);
491
- return b.build();
492
- };
493
- exports.se_ListAccessEntriesCommand = se_ListAccessEntriesCommand;
494
- const se_ListAccessPoliciesCommand = async (input, context) => {
495
- const b = (0, core_1.requestBuilder)(input, context);
496
- const headers = {};
497
- b.bp("/access-policies");
498
- const query = (0, smithy_client_1.map)({
499
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
500
- [_nT]: [, input[_nT]],
501
- });
502
- let body;
503
- b.m("GET").h(headers).q(query).b(body);
504
- return b.build();
505
- };
506
- exports.se_ListAccessPoliciesCommand = se_ListAccessPoliciesCommand;
507
- const se_ListAddonsCommand = async (input, context) => {
508
- const b = (0, core_1.requestBuilder)(input, context);
509
- const headers = {};
510
- b.bp("/clusters/{clusterName}/addons");
511
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
512
- const query = (0, smithy_client_1.map)({
513
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
514
- [_nT]: [, input[_nT]],
515
- });
516
- let body;
517
- b.m("GET").h(headers).q(query).b(body);
518
- return b.build();
519
- };
520
- exports.se_ListAddonsCommand = se_ListAddonsCommand;
521
- const se_ListAssociatedAccessPoliciesCommand = async (input, context) => {
522
- const b = (0, core_1.requestBuilder)(input, context);
523
- const headers = {};
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);
527
- const query = (0, smithy_client_1.map)({
528
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
529
- [_nT]: [, input[_nT]],
530
- });
531
- let body;
532
- b.m("GET").h(headers).q(query).b(body);
533
- return b.build();
534
- };
535
- exports.se_ListAssociatedAccessPoliciesCommand = se_ListAssociatedAccessPoliciesCommand;
536
- const se_ListClustersCommand = async (input, context) => {
537
- const b = (0, core_1.requestBuilder)(input, context);
538
- const headers = {};
539
- b.bp("/clusters");
540
- const query = (0, smithy_client_1.map)({
541
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
542
- [_nT]: [, input[_nT]],
543
- [_i]: [() => input.include !== void 0, () => (input[_i] || []).map((_entry) => _entry)],
544
- });
545
- let body;
546
- b.m("GET").h(headers).q(query).b(body);
547
- return b.build();
548
- };
549
- exports.se_ListClustersCommand = se_ListClustersCommand;
550
- const se_ListEksAnywhereSubscriptionsCommand = async (input, context) => {
551
- const b = (0, core_1.requestBuilder)(input, context);
552
- const headers = {};
553
- b.bp("/eks-anywhere-subscriptions");
554
- const query = (0, smithy_client_1.map)({
555
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
556
- [_nT]: [, input[_nT]],
557
- [_iS]: [() => input.includeStatus !== void 0, () => (input[_iS] || []).map((_entry) => _entry)],
558
- });
559
- let body;
560
- b.m("GET").h(headers).q(query).b(body);
561
- return b.build();
562
- };
563
- exports.se_ListEksAnywhereSubscriptionsCommand = se_ListEksAnywhereSubscriptionsCommand;
564
- const se_ListFargateProfilesCommand = async (input, context) => {
565
- const b = (0, core_1.requestBuilder)(input, context);
566
- const headers = {};
567
- b.bp("/clusters/{clusterName}/fargate-profiles");
568
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
569
- const query = (0, smithy_client_1.map)({
570
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
571
- [_nT]: [, input[_nT]],
572
- });
573
- let body;
574
- b.m("GET").h(headers).q(query).b(body);
575
- return b.build();
576
- };
577
- exports.se_ListFargateProfilesCommand = se_ListFargateProfilesCommand;
578
- const se_ListIdentityProviderConfigsCommand = async (input, context) => {
579
- const b = (0, core_1.requestBuilder)(input, context);
580
- const headers = {};
581
- b.bp("/clusters/{clusterName}/identity-provider-configs");
582
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
583
- const query = (0, smithy_client_1.map)({
584
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
585
- [_nT]: [, input[_nT]],
586
- });
587
- let body;
588
- b.m("GET").h(headers).q(query).b(body);
589
- return b.build();
590
- };
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;
609
- const se_ListNodegroupsCommand = async (input, context) => {
610
- const b = (0, core_1.requestBuilder)(input, context);
611
- const headers = {};
612
- b.bp("/clusters/{clusterName}/node-groups");
613
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
614
- const query = (0, smithy_client_1.map)({
615
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
616
- [_nT]: [, input[_nT]],
617
- });
618
- let body;
619
- b.m("GET").h(headers).q(query).b(body);
620
- return b.build();
621
- };
622
- exports.se_ListNodegroupsCommand = se_ListNodegroupsCommand;
623
- const se_ListPodIdentityAssociationsCommand = async (input, context) => {
624
- const b = (0, core_1.requestBuilder)(input, context);
625
- const headers = {};
626
- b.bp("/clusters/{clusterName}/pod-identity-associations");
627
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
628
- const query = (0, smithy_client_1.map)({
629
- [_n]: [, input[_n]],
630
- [_sA]: [, input[_sA]],
631
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
632
- [_nT]: [, input[_nT]],
633
- });
634
- let body;
635
- b.m("GET").h(headers).q(query).b(body);
636
- return b.build();
637
- };
638
- exports.se_ListPodIdentityAssociationsCommand = se_ListPodIdentityAssociationsCommand;
639
- const se_ListTagsForResourceCommand = async (input, context) => {
640
- const b = (0, core_1.requestBuilder)(input, context);
641
- const headers = {};
642
- b.bp("/tags/{resourceArn}");
643
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
644
- let body;
645
- b.m("GET").h(headers).b(body);
646
- return b.build();
647
- };
648
- exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
649
- const se_ListUpdatesCommand = async (input, context) => {
650
- const b = (0, core_1.requestBuilder)(input, context);
651
- const headers = {};
652
- b.bp("/clusters/{name}/updates");
653
- b.p("name", () => input.name, "{name}", false);
654
- const query = (0, smithy_client_1.map)({
655
- [_nN]: [, input[_nN]],
656
- [_aN]: [, input[_aN]],
657
- [_nT]: [, input[_nT]],
658
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
659
- });
660
- let body;
661
- b.m("GET").h(headers).q(query).b(body);
662
- return b.build();
663
- };
664
- exports.se_ListUpdatesCommand = se_ListUpdatesCommand;
665
- const se_RegisterClusterCommand = async (input, context) => {
666
- const b = (0, core_1.requestBuilder)(input, context);
667
- const headers = {
668
- "content-type": "application/json",
669
- };
670
- b.bp("/cluster-registrations");
671
- let body;
672
- body = JSON.stringify((0, smithy_client_1.take)(input, {
673
- clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
674
- connectorConfig: (_) => (0, smithy_client_1._json)(_),
675
- name: [],
676
- tags: (_) => (0, smithy_client_1._json)(_),
677
- }));
678
- b.m("POST").h(headers).b(body);
679
- return b.build();
680
- };
681
- exports.se_RegisterClusterCommand = se_RegisterClusterCommand;
682
- const se_TagResourceCommand = async (input, context) => {
683
- const b = (0, core_1.requestBuilder)(input, context);
684
- const headers = {
685
- "content-type": "application/json",
686
- };
687
- b.bp("/tags/{resourceArn}");
688
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
689
- let body;
690
- body = JSON.stringify((0, smithy_client_1.take)(input, {
691
- tags: (_) => (0, smithy_client_1._json)(_),
692
- }));
693
- b.m("POST").h(headers).b(body);
694
- return b.build();
695
- };
696
- exports.se_TagResourceCommand = se_TagResourceCommand;
697
- const se_UntagResourceCommand = async (input, context) => {
698
- const b = (0, core_1.requestBuilder)(input, context);
699
- const headers = {};
700
- b.bp("/tags/{resourceArn}");
701
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
702
- const query = (0, smithy_client_1.map)({
703
- [_tK]: [
704
- (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
705
- () => (input[_tK] || []).map((_entry) => _entry),
706
- ],
707
- });
708
- let body;
709
- b.m("DELETE").h(headers).q(query).b(body);
710
- return b.build();
711
- };
712
- exports.se_UntagResourceCommand = se_UntagResourceCommand;
713
- const se_UpdateAccessEntryCommand = async (input, context) => {
714
- const b = (0, core_1.requestBuilder)(input, context);
715
- const headers = {
716
- "content-type": "application/json",
717
- };
718
- b.bp("/clusters/{clusterName}/access-entries/{principalArn}");
719
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
720
- b.p("principalArn", () => input.principalArn, "{principalArn}", false);
721
- let body;
722
- body = JSON.stringify((0, smithy_client_1.take)(input, {
723
- clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
724
- kubernetesGroups: (_) => (0, smithy_client_1._json)(_),
725
- username: [],
726
- }));
727
- b.m("POST").h(headers).b(body);
728
- return b.build();
729
- };
730
- exports.se_UpdateAccessEntryCommand = se_UpdateAccessEntryCommand;
731
- const se_UpdateAddonCommand = async (input, context) => {
732
- const b = (0, core_1.requestBuilder)(input, context);
733
- const headers = {
734
- "content-type": "application/json",
735
- };
736
- b.bp("/clusters/{clusterName}/addons/{addonName}/update");
737
- b.p("clusterName", () => input.clusterName, "{clusterName}", false);
738
- b.p("addonName", () => input.addonName, "{addonName}", false);
739
- let body;
740
- body = JSON.stringify((0, smithy_client_1.take)(input, {
741
- addonVersion: [],
742
- clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
743
- configurationValues: [],
744
- resolveConflicts: [],
745
- serviceAccountRoleArn: [],
746
- }));
747
- b.m("POST").h(headers).b(body);
748
- return b.build();
749
- };
750
- exports.se_UpdateAddonCommand = se_UpdateAddonCommand;
751
- const se_UpdateClusterConfigCommand = async (input, context) => {
752
- const b = (0, core_1.requestBuilder)(input, context);
753
- const headers = {
754
- "content-type": "application/json",
755
- };
756
- b.bp("/clusters/{name}/update-config");
757
- b.p("name", () => input.name, "{name}", false);
758
- let body;
759
- body = JSON.stringify((0, smithy_client_1.take)(input, {
760
- accessConfig: (_) => (0, smithy_client_1._json)(_),
761
- clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
762
- logging: (_) => (0, smithy_client_1._json)(_),
763
- resourcesVpcConfig: (_) => (0, smithy_client_1._json)(_),
764
- }));
765
- b.m("POST").h(headers).b(body);
766
- return b.build();
767
- };
768
- exports.se_UpdateClusterConfigCommand = se_UpdateClusterConfigCommand;
769
- const se_UpdateClusterVersionCommand = async (input, context) => {
770
- const b = (0, core_1.requestBuilder)(input, context);
771
- const headers = {
772
- "content-type": "application/json",
773
- };
774
- b.bp("/clusters/{name}/updates");
775
- b.p("name", () => input.name, "{name}", false);
776
- let body;
777
- body = JSON.stringify((0, smithy_client_1.take)(input, {
778
- clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
779
- version: [],
780
- }));
781
- b.m("POST").h(headers).b(body);
782
- return b.build();
783
- };
784
- exports.se_UpdateClusterVersionCommand = se_UpdateClusterVersionCommand;
785
- const se_UpdateEksAnywhereSubscriptionCommand = async (input, context) => {
786
- const b = (0, core_1.requestBuilder)(input, context);
787
- const headers = {
788
- "content-type": "application/json",
789
- };
790
- b.bp("/eks-anywhere-subscriptions/{id}");
791
- b.p("id", () => input.id, "{id}", false);
792
- let body;
793
- body = JSON.stringify((0, smithy_client_1.take)(input, {
794
- autoRenew: [],
795
- clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
796
- }));
797
- b.m("POST").h(headers).b(body);
798
- return b.build();
799
- };
800
- exports.se_UpdateEksAnywhereSubscriptionCommand = se_UpdateEksAnywhereSubscriptionCommand;
801
- const se_UpdateNodegroupConfigCommand = async (input, context) => {
802
- const b = (0, core_1.requestBuilder)(input, context);
803
- const headers = {
804
- "content-type": "application/json",
805
- };
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);
809
- let body;
810
- body = JSON.stringify((0, smithy_client_1.take)(input, {
811
- clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
812
- labels: (_) => (0, smithy_client_1._json)(_),
813
- scalingConfig: (_) => (0, smithy_client_1._json)(_),
814
- taints: (_) => (0, smithy_client_1._json)(_),
815
- updateConfig: (_) => (0, smithy_client_1._json)(_),
816
- }));
817
- b.m("POST").h(headers).b(body);
818
- return b.build();
819
- };
820
- exports.se_UpdateNodegroupConfigCommand = se_UpdateNodegroupConfigCommand;
821
- const se_UpdateNodegroupVersionCommand = async (input, context) => {
822
- const b = (0, core_1.requestBuilder)(input, context);
823
- const headers = {
824
- "content-type": "application/json",
825
- };
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);
829
- let body;
830
- body = JSON.stringify((0, smithy_client_1.take)(input, {
831
- clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
832
- force: [],
833
- launchTemplate: (_) => (0, smithy_client_1._json)(_),
834
- releaseVersion: [],
835
- version: [],
836
- }));
837
- b.m("POST").h(headers).b(body);
838
- return b.build();
839
- };
840
- exports.se_UpdateNodegroupVersionCommand = se_UpdateNodegroupVersionCommand;
841
- const se_UpdatePodIdentityAssociationCommand = async (input, context) => {
842
- const b = (0, core_1.requestBuilder)(input, context);
843
- const headers = {
844
- "content-type": "application/json",
845
- };
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);
849
- let body;
850
- body = JSON.stringify((0, smithy_client_1.take)(input, {
851
- clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
852
- roleArn: [],
853
- }));
854
- b.m("POST").h(headers).b(body);
855
- return b.build();
856
- };
857
- exports.se_UpdatePodIdentityAssociationCommand = se_UpdatePodIdentityAssociationCommand;
858
- const de_AssociateAccessPolicyCommand = async (output, context) => {
859
- if (output.statusCode !== 200 && output.statusCode >= 300) {
860
- return de_AssociateAccessPolicyCommandError(output, context);
861
- }
862
- const contents = (0, smithy_client_1.map)({
863
- $metadata: deserializeMetadata(output),
864
- });
865
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
866
- const doc = (0, smithy_client_1.take)(data, {
867
- associatedAccessPolicy: (_) => de_AssociatedAccessPolicy(_, context),
868
- clusterName: smithy_client_1.expectString,
869
- principalArn: smithy_client_1.expectString,
870
- });
871
- Object.assign(contents, doc);
872
- return contents;
873
- };
874
- exports.de_AssociateAccessPolicyCommand = de_AssociateAccessPolicyCommand;
875
- const de_AssociateAccessPolicyCommandError = async (output, context) => {
876
- const parsedOutput = {
877
- ...output,
878
- body: await parseErrorBody(output.body, context),
879
- };
880
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
881
- switch (errorCode) {
882
- case "InvalidParameterException":
883
- case "com.amazonaws.eks#InvalidParameterException":
884
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
885
- case "InvalidRequestException":
886
- case "com.amazonaws.eks#InvalidRequestException":
887
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
888
- case "ResourceNotFoundException":
889
- case "com.amazonaws.eks#ResourceNotFoundException":
890
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
891
- case "ServerException":
892
- case "com.amazonaws.eks#ServerException":
893
- throw await de_ServerExceptionRes(parsedOutput, context);
894
- default:
895
- const parsedBody = parsedOutput.body;
896
- return throwDefaultError({
897
- output,
898
- parsedBody,
899
- errorCode,
900
- });
901
- }
902
- };
903
- const de_AssociateEncryptionConfigCommand = async (output, context) => {
904
- if (output.statusCode !== 200 && output.statusCode >= 300) {
905
- return de_AssociateEncryptionConfigCommandError(output, context);
906
- }
907
- const contents = (0, smithy_client_1.map)({
908
- $metadata: deserializeMetadata(output),
909
- });
910
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
911
- const doc = (0, smithy_client_1.take)(data, {
912
- update: (_) => de_Update(_, context),
913
- });
914
- Object.assign(contents, doc);
915
- return contents;
916
- };
917
- exports.de_AssociateEncryptionConfigCommand = de_AssociateEncryptionConfigCommand;
918
- const de_AssociateEncryptionConfigCommandError = async (output, context) => {
919
- const parsedOutput = {
920
- ...output,
921
- body: await parseErrorBody(output.body, context),
922
- };
923
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
924
- switch (errorCode) {
925
- case "ClientException":
926
- case "com.amazonaws.eks#ClientException":
927
- throw await de_ClientExceptionRes(parsedOutput, context);
928
- case "InvalidParameterException":
929
- case "com.amazonaws.eks#InvalidParameterException":
930
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
931
- case "InvalidRequestException":
932
- case "com.amazonaws.eks#InvalidRequestException":
933
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
934
- case "ResourceInUseException":
935
- case "com.amazonaws.eks#ResourceInUseException":
936
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
937
- case "ResourceNotFoundException":
938
- case "com.amazonaws.eks#ResourceNotFoundException":
939
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
940
- case "ServerException":
941
- case "com.amazonaws.eks#ServerException":
942
- throw await de_ServerExceptionRes(parsedOutput, context);
943
- default:
944
- const parsedBody = parsedOutput.body;
945
- return throwDefaultError({
946
- output,
947
- parsedBody,
948
- errorCode,
949
- });
950
- }
951
- };
952
- const de_AssociateIdentityProviderConfigCommand = async (output, context) => {
953
- if (output.statusCode !== 200 && output.statusCode >= 300) {
954
- return de_AssociateIdentityProviderConfigCommandError(output, context);
955
- }
956
- const contents = (0, smithy_client_1.map)({
957
- $metadata: deserializeMetadata(output),
958
- });
959
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
960
- const doc = (0, smithy_client_1.take)(data, {
961
- tags: smithy_client_1._json,
962
- update: (_) => de_Update(_, context),
963
- });
964
- Object.assign(contents, doc);
965
- return contents;
966
- };
967
- exports.de_AssociateIdentityProviderConfigCommand = de_AssociateIdentityProviderConfigCommand;
968
- const de_AssociateIdentityProviderConfigCommandError = async (output, context) => {
969
- const parsedOutput = {
970
- ...output,
971
- body: await parseErrorBody(output.body, context),
972
- };
973
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
974
- switch (errorCode) {
975
- case "ClientException":
976
- case "com.amazonaws.eks#ClientException":
977
- throw await de_ClientExceptionRes(parsedOutput, context);
978
- case "InvalidParameterException":
979
- case "com.amazonaws.eks#InvalidParameterException":
980
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
981
- case "InvalidRequestException":
982
- case "com.amazonaws.eks#InvalidRequestException":
983
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
984
- case "ResourceInUseException":
985
- case "com.amazonaws.eks#ResourceInUseException":
986
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
987
- case "ResourceNotFoundException":
988
- case "com.amazonaws.eks#ResourceNotFoundException":
989
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
990
- case "ServerException":
991
- case "com.amazonaws.eks#ServerException":
992
- throw await de_ServerExceptionRes(parsedOutput, context);
993
- default:
994
- const parsedBody = parsedOutput.body;
995
- return throwDefaultError({
996
- output,
997
- parsedBody,
998
- errorCode,
999
- });
1000
- }
1001
- };
1002
- const de_CreateAccessEntryCommand = async (output, context) => {
1003
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1004
- return de_CreateAccessEntryCommandError(output, context);
1005
- }
1006
- const contents = (0, smithy_client_1.map)({
1007
- $metadata: deserializeMetadata(output),
1008
- });
1009
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1010
- const doc = (0, smithy_client_1.take)(data, {
1011
- accessEntry: (_) => de_AccessEntry(_, context),
1012
- });
1013
- Object.assign(contents, doc);
1014
- return contents;
1015
- };
1016
- exports.de_CreateAccessEntryCommand = de_CreateAccessEntryCommand;
1017
- const de_CreateAccessEntryCommandError = async (output, context) => {
1018
- const parsedOutput = {
1019
- ...output,
1020
- body: await parseErrorBody(output.body, context),
1021
- };
1022
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1023
- switch (errorCode) {
1024
- case "InvalidParameterException":
1025
- case "com.amazonaws.eks#InvalidParameterException":
1026
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1027
- case "InvalidRequestException":
1028
- case "com.amazonaws.eks#InvalidRequestException":
1029
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1030
- case "ResourceInUseException":
1031
- case "com.amazonaws.eks#ResourceInUseException":
1032
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1033
- case "ResourceLimitExceededException":
1034
- case "com.amazonaws.eks#ResourceLimitExceededException":
1035
- throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1036
- case "ResourceNotFoundException":
1037
- case "com.amazonaws.eks#ResourceNotFoundException":
1038
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1039
- case "ServerException":
1040
- case "com.amazonaws.eks#ServerException":
1041
- throw await de_ServerExceptionRes(parsedOutput, context);
1042
- default:
1043
- const parsedBody = parsedOutput.body;
1044
- return throwDefaultError({
1045
- output,
1046
- parsedBody,
1047
- errorCode,
1048
- });
1049
- }
1050
- };
1051
- const de_CreateAddonCommand = async (output, context) => {
1052
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1053
- return de_CreateAddonCommandError(output, context);
1054
- }
1055
- const contents = (0, smithy_client_1.map)({
1056
- $metadata: deserializeMetadata(output),
1057
- });
1058
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1059
- const doc = (0, smithy_client_1.take)(data, {
1060
- addon: (_) => de_Addon(_, context),
1061
- });
1062
- Object.assign(contents, doc);
1063
- return contents;
1064
- };
1065
- exports.de_CreateAddonCommand = de_CreateAddonCommand;
1066
- const de_CreateAddonCommandError = async (output, context) => {
1067
- const parsedOutput = {
1068
- ...output,
1069
- body: await parseErrorBody(output.body, context),
1070
- };
1071
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1072
- switch (errorCode) {
1073
- case "ClientException":
1074
- case "com.amazonaws.eks#ClientException":
1075
- throw await de_ClientExceptionRes(parsedOutput, context);
1076
- case "InvalidParameterException":
1077
- case "com.amazonaws.eks#InvalidParameterException":
1078
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1079
- case "InvalidRequestException":
1080
- case "com.amazonaws.eks#InvalidRequestException":
1081
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1082
- case "ResourceInUseException":
1083
- case "com.amazonaws.eks#ResourceInUseException":
1084
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1085
- case "ResourceNotFoundException":
1086
- case "com.amazonaws.eks#ResourceNotFoundException":
1087
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1088
- case "ServerException":
1089
- case "com.amazonaws.eks#ServerException":
1090
- throw await de_ServerExceptionRes(parsedOutput, context);
1091
- default:
1092
- const parsedBody = parsedOutput.body;
1093
- return throwDefaultError({
1094
- output,
1095
- parsedBody,
1096
- errorCode,
1097
- });
1098
- }
1099
- };
1100
- const de_CreateClusterCommand = async (output, context) => {
1101
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1102
- return de_CreateClusterCommandError(output, context);
1103
- }
1104
- const contents = (0, smithy_client_1.map)({
1105
- $metadata: deserializeMetadata(output),
1106
- });
1107
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1108
- const doc = (0, smithy_client_1.take)(data, {
1109
- cluster: (_) => de_Cluster(_, context),
1110
- });
1111
- Object.assign(contents, doc);
1112
- return contents;
1113
- };
1114
- exports.de_CreateClusterCommand = de_CreateClusterCommand;
1115
- const de_CreateClusterCommandError = async (output, context) => {
1116
- const parsedOutput = {
1117
- ...output,
1118
- body: await parseErrorBody(output.body, context),
1119
- };
1120
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1121
- switch (errorCode) {
1122
- case "ClientException":
1123
- case "com.amazonaws.eks#ClientException":
1124
- throw await de_ClientExceptionRes(parsedOutput, context);
1125
- case "InvalidParameterException":
1126
- case "com.amazonaws.eks#InvalidParameterException":
1127
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1128
- case "ResourceInUseException":
1129
- case "com.amazonaws.eks#ResourceInUseException":
1130
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1131
- case "ResourceLimitExceededException":
1132
- case "com.amazonaws.eks#ResourceLimitExceededException":
1133
- throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1134
- case "ServerException":
1135
- case "com.amazonaws.eks#ServerException":
1136
- throw await de_ServerExceptionRes(parsedOutput, context);
1137
- case "ServiceUnavailableException":
1138
- case "com.amazonaws.eks#ServiceUnavailableException":
1139
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1140
- case "UnsupportedAvailabilityZoneException":
1141
- case "com.amazonaws.eks#UnsupportedAvailabilityZoneException":
1142
- throw await de_UnsupportedAvailabilityZoneExceptionRes(parsedOutput, context);
1143
- default:
1144
- const parsedBody = parsedOutput.body;
1145
- return throwDefaultError({
1146
- output,
1147
- parsedBody,
1148
- errorCode,
1149
- });
1150
- }
1151
- };
1152
- const de_CreateEksAnywhereSubscriptionCommand = async (output, context) => {
1153
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1154
- return de_CreateEksAnywhereSubscriptionCommandError(output, context);
1155
- }
1156
- const contents = (0, smithy_client_1.map)({
1157
- $metadata: deserializeMetadata(output),
1158
- });
1159
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1160
- const doc = (0, smithy_client_1.take)(data, {
1161
- subscription: (_) => de_EksAnywhereSubscription(_, context),
1162
- });
1163
- Object.assign(contents, doc);
1164
- return contents;
1165
- };
1166
- exports.de_CreateEksAnywhereSubscriptionCommand = de_CreateEksAnywhereSubscriptionCommand;
1167
- const de_CreateEksAnywhereSubscriptionCommandError = async (output, context) => {
1168
- const parsedOutput = {
1169
- ...output,
1170
- body: await parseErrorBody(output.body, context),
1171
- };
1172
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1173
- switch (errorCode) {
1174
- case "ClientException":
1175
- case "com.amazonaws.eks#ClientException":
1176
- throw await de_ClientExceptionRes(parsedOutput, context);
1177
- case "InvalidParameterException":
1178
- case "com.amazonaws.eks#InvalidParameterException":
1179
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1180
- case "ResourceLimitExceededException":
1181
- case "com.amazonaws.eks#ResourceLimitExceededException":
1182
- throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1183
- case "ServerException":
1184
- case "com.amazonaws.eks#ServerException":
1185
- throw await de_ServerExceptionRes(parsedOutput, context);
1186
- case "ServiceUnavailableException":
1187
- case "com.amazonaws.eks#ServiceUnavailableException":
1188
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1189
- default:
1190
- const parsedBody = parsedOutput.body;
1191
- return throwDefaultError({
1192
- output,
1193
- parsedBody,
1194
- errorCode,
1195
- });
1196
- }
1197
- };
1198
- const de_CreateFargateProfileCommand = async (output, context) => {
1199
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1200
- return de_CreateFargateProfileCommandError(output, context);
1201
- }
1202
- const contents = (0, smithy_client_1.map)({
1203
- $metadata: deserializeMetadata(output),
1204
- });
1205
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1206
- const doc = (0, smithy_client_1.take)(data, {
1207
- fargateProfile: (_) => de_FargateProfile(_, context),
1208
- });
1209
- Object.assign(contents, doc);
1210
- return contents;
1211
- };
1212
- exports.de_CreateFargateProfileCommand = de_CreateFargateProfileCommand;
1213
- const de_CreateFargateProfileCommandError = async (output, context) => {
1214
- const parsedOutput = {
1215
- ...output,
1216
- body: await parseErrorBody(output.body, context),
1217
- };
1218
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1219
- switch (errorCode) {
1220
- case "ClientException":
1221
- case "com.amazonaws.eks#ClientException":
1222
- throw await de_ClientExceptionRes(parsedOutput, context);
1223
- case "InvalidParameterException":
1224
- case "com.amazonaws.eks#InvalidParameterException":
1225
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1226
- case "InvalidRequestException":
1227
- case "com.amazonaws.eks#InvalidRequestException":
1228
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1229
- case "ResourceLimitExceededException":
1230
- case "com.amazonaws.eks#ResourceLimitExceededException":
1231
- throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1232
- case "ServerException":
1233
- case "com.amazonaws.eks#ServerException":
1234
- throw await de_ServerExceptionRes(parsedOutput, context);
1235
- case "UnsupportedAvailabilityZoneException":
1236
- case "com.amazonaws.eks#UnsupportedAvailabilityZoneException":
1237
- throw await de_UnsupportedAvailabilityZoneExceptionRes(parsedOutput, context);
1238
- default:
1239
- const parsedBody = parsedOutput.body;
1240
- return throwDefaultError({
1241
- output,
1242
- parsedBody,
1243
- errorCode,
1244
- });
1245
- }
1246
- };
1247
- const de_CreateNodegroupCommand = async (output, context) => {
1248
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1249
- return de_CreateNodegroupCommandError(output, context);
1250
- }
1251
- const contents = (0, smithy_client_1.map)({
1252
- $metadata: deserializeMetadata(output),
1253
- });
1254
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1255
- const doc = (0, smithy_client_1.take)(data, {
1256
- nodegroup: (_) => de_Nodegroup(_, context),
1257
- });
1258
- Object.assign(contents, doc);
1259
- return contents;
1260
- };
1261
- exports.de_CreateNodegroupCommand = de_CreateNodegroupCommand;
1262
- const de_CreateNodegroupCommandError = async (output, context) => {
1263
- const parsedOutput = {
1264
- ...output,
1265
- body: await parseErrorBody(output.body, context),
1266
- };
1267
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1268
- switch (errorCode) {
1269
- case "ClientException":
1270
- case "com.amazonaws.eks#ClientException":
1271
- throw await de_ClientExceptionRes(parsedOutput, context);
1272
- case "InvalidParameterException":
1273
- case "com.amazonaws.eks#InvalidParameterException":
1274
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1275
- case "InvalidRequestException":
1276
- case "com.amazonaws.eks#InvalidRequestException":
1277
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1278
- case "ResourceInUseException":
1279
- case "com.amazonaws.eks#ResourceInUseException":
1280
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1281
- case "ResourceLimitExceededException":
1282
- case "com.amazonaws.eks#ResourceLimitExceededException":
1283
- throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1284
- case "ServerException":
1285
- case "com.amazonaws.eks#ServerException":
1286
- throw await de_ServerExceptionRes(parsedOutput, context);
1287
- case "ServiceUnavailableException":
1288
- case "com.amazonaws.eks#ServiceUnavailableException":
1289
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1290
- default:
1291
- const parsedBody = parsedOutput.body;
1292
- return throwDefaultError({
1293
- output,
1294
- parsedBody,
1295
- errorCode,
1296
- });
1297
- }
1298
- };
1299
- const de_CreatePodIdentityAssociationCommand = async (output, context) => {
1300
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1301
- return de_CreatePodIdentityAssociationCommandError(output, context);
1302
- }
1303
- const contents = (0, smithy_client_1.map)({
1304
- $metadata: deserializeMetadata(output),
1305
- });
1306
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1307
- const doc = (0, smithy_client_1.take)(data, {
1308
- association: (_) => de_PodIdentityAssociation(_, context),
1309
- });
1310
- Object.assign(contents, doc);
1311
- return contents;
1312
- };
1313
- exports.de_CreatePodIdentityAssociationCommand = de_CreatePodIdentityAssociationCommand;
1314
- const de_CreatePodIdentityAssociationCommandError = async (output, context) => {
1315
- const parsedOutput = {
1316
- ...output,
1317
- body: await parseErrorBody(output.body, context),
1318
- };
1319
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1320
- switch (errorCode) {
1321
- case "InvalidParameterException":
1322
- case "com.amazonaws.eks#InvalidParameterException":
1323
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1324
- case "InvalidRequestException":
1325
- case "com.amazonaws.eks#InvalidRequestException":
1326
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1327
- case "ResourceInUseException":
1328
- case "com.amazonaws.eks#ResourceInUseException":
1329
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1330
- case "ResourceLimitExceededException":
1331
- case "com.amazonaws.eks#ResourceLimitExceededException":
1332
- throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1333
- case "ResourceNotFoundException":
1334
- case "com.amazonaws.eks#ResourceNotFoundException":
1335
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1336
- case "ServerException":
1337
- case "com.amazonaws.eks#ServerException":
1338
- throw await de_ServerExceptionRes(parsedOutput, context);
1339
- default:
1340
- const parsedBody = parsedOutput.body;
1341
- return throwDefaultError({
1342
- output,
1343
- parsedBody,
1344
- errorCode,
1345
- });
1346
- }
1347
- };
1348
- const de_DeleteAccessEntryCommand = async (output, context) => {
1349
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1350
- return de_DeleteAccessEntryCommandError(output, context);
1351
- }
1352
- const contents = (0, smithy_client_1.map)({
1353
- $metadata: deserializeMetadata(output),
1354
- });
1355
- await (0, smithy_client_1.collectBody)(output.body, context);
1356
- return contents;
1357
- };
1358
- exports.de_DeleteAccessEntryCommand = de_DeleteAccessEntryCommand;
1359
- const de_DeleteAccessEntryCommandError = async (output, context) => {
1360
- const parsedOutput = {
1361
- ...output,
1362
- body: await parseErrorBody(output.body, context),
1363
- };
1364
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1365
- switch (errorCode) {
1366
- case "InvalidRequestException":
1367
- case "com.amazonaws.eks#InvalidRequestException":
1368
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1369
- case "ResourceNotFoundException":
1370
- case "com.amazonaws.eks#ResourceNotFoundException":
1371
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1372
- case "ServerException":
1373
- case "com.amazonaws.eks#ServerException":
1374
- throw await de_ServerExceptionRes(parsedOutput, context);
1375
- default:
1376
- const parsedBody = parsedOutput.body;
1377
- return throwDefaultError({
1378
- output,
1379
- parsedBody,
1380
- errorCode,
1381
- });
1382
- }
1383
- };
1384
- const de_DeleteAddonCommand = async (output, context) => {
1385
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1386
- return de_DeleteAddonCommandError(output, context);
1387
- }
1388
- const contents = (0, smithy_client_1.map)({
1389
- $metadata: deserializeMetadata(output),
1390
- });
1391
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1392
- const doc = (0, smithy_client_1.take)(data, {
1393
- addon: (_) => de_Addon(_, context),
1394
- });
1395
- Object.assign(contents, doc);
1396
- return contents;
1397
- };
1398
- exports.de_DeleteAddonCommand = de_DeleteAddonCommand;
1399
- const de_DeleteAddonCommandError = async (output, context) => {
1400
- const parsedOutput = {
1401
- ...output,
1402
- body: await parseErrorBody(output.body, context),
1403
- };
1404
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1405
- switch (errorCode) {
1406
- case "ClientException":
1407
- case "com.amazonaws.eks#ClientException":
1408
- throw await de_ClientExceptionRes(parsedOutput, context);
1409
- case "InvalidParameterException":
1410
- case "com.amazonaws.eks#InvalidParameterException":
1411
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1412
- case "InvalidRequestException":
1413
- case "com.amazonaws.eks#InvalidRequestException":
1414
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1415
- case "ResourceNotFoundException":
1416
- case "com.amazonaws.eks#ResourceNotFoundException":
1417
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1418
- case "ServerException":
1419
- case "com.amazonaws.eks#ServerException":
1420
- throw await de_ServerExceptionRes(parsedOutput, context);
1421
- default:
1422
- const parsedBody = parsedOutput.body;
1423
- return throwDefaultError({
1424
- output,
1425
- parsedBody,
1426
- errorCode,
1427
- });
1428
- }
1429
- };
1430
- const de_DeleteClusterCommand = async (output, context) => {
1431
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1432
- return de_DeleteClusterCommandError(output, context);
1433
- }
1434
- const contents = (0, smithy_client_1.map)({
1435
- $metadata: deserializeMetadata(output),
1436
- });
1437
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1438
- const doc = (0, smithy_client_1.take)(data, {
1439
- cluster: (_) => de_Cluster(_, context),
1440
- });
1441
- Object.assign(contents, doc);
1442
- return contents;
1443
- };
1444
- exports.de_DeleteClusterCommand = de_DeleteClusterCommand;
1445
- const de_DeleteClusterCommandError = async (output, context) => {
1446
- const parsedOutput = {
1447
- ...output,
1448
- body: await parseErrorBody(output.body, context),
1449
- };
1450
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1451
- switch (errorCode) {
1452
- case "ClientException":
1453
- case "com.amazonaws.eks#ClientException":
1454
- throw await de_ClientExceptionRes(parsedOutput, context);
1455
- case "ResourceInUseException":
1456
- case "com.amazonaws.eks#ResourceInUseException":
1457
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1458
- case "ResourceNotFoundException":
1459
- case "com.amazonaws.eks#ResourceNotFoundException":
1460
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1461
- case "ServerException":
1462
- case "com.amazonaws.eks#ServerException":
1463
- throw await de_ServerExceptionRes(parsedOutput, context);
1464
- case "ServiceUnavailableException":
1465
- case "com.amazonaws.eks#ServiceUnavailableException":
1466
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1467
- default:
1468
- const parsedBody = parsedOutput.body;
1469
- return throwDefaultError({
1470
- output,
1471
- parsedBody,
1472
- errorCode,
1473
- });
1474
- }
1475
- };
1476
- const de_DeleteEksAnywhereSubscriptionCommand = async (output, context) => {
1477
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1478
- return de_DeleteEksAnywhereSubscriptionCommandError(output, context);
1479
- }
1480
- const contents = (0, smithy_client_1.map)({
1481
- $metadata: deserializeMetadata(output),
1482
- });
1483
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1484
- const doc = (0, smithy_client_1.take)(data, {
1485
- subscription: (_) => de_EksAnywhereSubscription(_, context),
1486
- });
1487
- Object.assign(contents, doc);
1488
- return contents;
1489
- };
1490
- exports.de_DeleteEksAnywhereSubscriptionCommand = de_DeleteEksAnywhereSubscriptionCommand;
1491
- const de_DeleteEksAnywhereSubscriptionCommandError = async (output, context) => {
1492
- const parsedOutput = {
1493
- ...output,
1494
- body: await parseErrorBody(output.body, context),
1495
- };
1496
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1497
- switch (errorCode) {
1498
- case "ClientException":
1499
- case "com.amazonaws.eks#ClientException":
1500
- throw await de_ClientExceptionRes(parsedOutput, context);
1501
- case "InvalidRequestException":
1502
- case "com.amazonaws.eks#InvalidRequestException":
1503
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1504
- case "ResourceNotFoundException":
1505
- case "com.amazonaws.eks#ResourceNotFoundException":
1506
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1507
- case "ServerException":
1508
- case "com.amazonaws.eks#ServerException":
1509
- throw await de_ServerExceptionRes(parsedOutput, context);
1510
- default:
1511
- const parsedBody = parsedOutput.body;
1512
- return throwDefaultError({
1513
- output,
1514
- parsedBody,
1515
- errorCode,
1516
- });
1517
- }
1518
- };
1519
- const de_DeleteFargateProfileCommand = async (output, context) => {
1520
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1521
- return de_DeleteFargateProfileCommandError(output, context);
1522
- }
1523
- const contents = (0, smithy_client_1.map)({
1524
- $metadata: deserializeMetadata(output),
1525
- });
1526
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1527
- const doc = (0, smithy_client_1.take)(data, {
1528
- fargateProfile: (_) => de_FargateProfile(_, context),
1529
- });
1530
- Object.assign(contents, doc);
1531
- return contents;
1532
- };
1533
- exports.de_DeleteFargateProfileCommand = de_DeleteFargateProfileCommand;
1534
- const de_DeleteFargateProfileCommandError = async (output, context) => {
1535
- const parsedOutput = {
1536
- ...output,
1537
- body: await parseErrorBody(output.body, context),
1538
- };
1539
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1540
- switch (errorCode) {
1541
- case "ClientException":
1542
- case "com.amazonaws.eks#ClientException":
1543
- throw await de_ClientExceptionRes(parsedOutput, context);
1544
- case "InvalidParameterException":
1545
- case "com.amazonaws.eks#InvalidParameterException":
1546
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1547
- case "ResourceNotFoundException":
1548
- case "com.amazonaws.eks#ResourceNotFoundException":
1549
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1550
- case "ServerException":
1551
- case "com.amazonaws.eks#ServerException":
1552
- throw await de_ServerExceptionRes(parsedOutput, context);
1553
- default:
1554
- const parsedBody = parsedOutput.body;
1555
- return throwDefaultError({
1556
- output,
1557
- parsedBody,
1558
- errorCode,
1559
- });
1560
- }
1561
- };
1562
- const de_DeleteNodegroupCommand = async (output, context) => {
1563
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1564
- return de_DeleteNodegroupCommandError(output, context);
1565
- }
1566
- const contents = (0, smithy_client_1.map)({
1567
- $metadata: deserializeMetadata(output),
1568
- });
1569
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1570
- const doc = (0, smithy_client_1.take)(data, {
1571
- nodegroup: (_) => de_Nodegroup(_, context),
1572
- });
1573
- Object.assign(contents, doc);
1574
- return contents;
1575
- };
1576
- exports.de_DeleteNodegroupCommand = de_DeleteNodegroupCommand;
1577
- const de_DeleteNodegroupCommandError = async (output, context) => {
1578
- const parsedOutput = {
1579
- ...output,
1580
- body: await parseErrorBody(output.body, context),
1581
- };
1582
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1583
- switch (errorCode) {
1584
- case "ClientException":
1585
- case "com.amazonaws.eks#ClientException":
1586
- throw await de_ClientExceptionRes(parsedOutput, context);
1587
- case "InvalidParameterException":
1588
- case "com.amazonaws.eks#InvalidParameterException":
1589
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1590
- case "ResourceInUseException":
1591
- case "com.amazonaws.eks#ResourceInUseException":
1592
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1593
- case "ResourceNotFoundException":
1594
- case "com.amazonaws.eks#ResourceNotFoundException":
1595
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1596
- case "ServerException":
1597
- case "com.amazonaws.eks#ServerException":
1598
- throw await de_ServerExceptionRes(parsedOutput, context);
1599
- case "ServiceUnavailableException":
1600
- case "com.amazonaws.eks#ServiceUnavailableException":
1601
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1602
- default:
1603
- const parsedBody = parsedOutput.body;
1604
- return throwDefaultError({
1605
- output,
1606
- parsedBody,
1607
- errorCode,
1608
- });
1609
- }
1610
- };
1611
- const de_DeletePodIdentityAssociationCommand = async (output, context) => {
1612
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1613
- return de_DeletePodIdentityAssociationCommandError(output, context);
1614
- }
1615
- const contents = (0, smithy_client_1.map)({
1616
- $metadata: deserializeMetadata(output),
1617
- });
1618
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1619
- const doc = (0, smithy_client_1.take)(data, {
1620
- association: (_) => de_PodIdentityAssociation(_, context),
1621
- });
1622
- Object.assign(contents, doc);
1623
- return contents;
1624
- };
1625
- exports.de_DeletePodIdentityAssociationCommand = de_DeletePodIdentityAssociationCommand;
1626
- const de_DeletePodIdentityAssociationCommandError = async (output, context) => {
1627
- const parsedOutput = {
1628
- ...output,
1629
- body: await parseErrorBody(output.body, context),
1630
- };
1631
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1632
- switch (errorCode) {
1633
- case "InvalidParameterException":
1634
- case "com.amazonaws.eks#InvalidParameterException":
1635
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1636
- case "InvalidRequestException":
1637
- case "com.amazonaws.eks#InvalidRequestException":
1638
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1639
- case "ResourceNotFoundException":
1640
- case "com.amazonaws.eks#ResourceNotFoundException":
1641
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1642
- case "ServerException":
1643
- case "com.amazonaws.eks#ServerException":
1644
- throw await de_ServerExceptionRes(parsedOutput, context);
1645
- default:
1646
- const parsedBody = parsedOutput.body;
1647
- return throwDefaultError({
1648
- output,
1649
- parsedBody,
1650
- errorCode,
1651
- });
1652
- }
1653
- };
1654
- const de_DeregisterClusterCommand = async (output, context) => {
1655
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1656
- return de_DeregisterClusterCommandError(output, context);
1657
- }
1658
- const contents = (0, smithy_client_1.map)({
1659
- $metadata: deserializeMetadata(output),
1660
- });
1661
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1662
- const doc = (0, smithy_client_1.take)(data, {
1663
- cluster: (_) => de_Cluster(_, context),
1664
- });
1665
- Object.assign(contents, doc);
1666
- return contents;
1667
- };
1668
- exports.de_DeregisterClusterCommand = de_DeregisterClusterCommand;
1669
- const de_DeregisterClusterCommandError = async (output, context) => {
1670
- const parsedOutput = {
1671
- ...output,
1672
- body: await parseErrorBody(output.body, context),
1673
- };
1674
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1675
- switch (errorCode) {
1676
- case "AccessDeniedException":
1677
- case "com.amazonaws.eks#AccessDeniedException":
1678
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1679
- case "ClientException":
1680
- case "com.amazonaws.eks#ClientException":
1681
- throw await de_ClientExceptionRes(parsedOutput, context);
1682
- case "ResourceInUseException":
1683
- case "com.amazonaws.eks#ResourceInUseException":
1684
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1685
- case "ResourceNotFoundException":
1686
- case "com.amazonaws.eks#ResourceNotFoundException":
1687
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1688
- case "ServerException":
1689
- case "com.amazonaws.eks#ServerException":
1690
- throw await de_ServerExceptionRes(parsedOutput, context);
1691
- case "ServiceUnavailableException":
1692
- case "com.amazonaws.eks#ServiceUnavailableException":
1693
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1694
- default:
1695
- const parsedBody = parsedOutput.body;
1696
- return throwDefaultError({
1697
- output,
1698
- parsedBody,
1699
- errorCode,
1700
- });
1701
- }
1702
- };
1703
- const de_DescribeAccessEntryCommand = async (output, context) => {
1704
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1705
- return de_DescribeAccessEntryCommandError(output, context);
1706
- }
1707
- const contents = (0, smithy_client_1.map)({
1708
- $metadata: deserializeMetadata(output),
1709
- });
1710
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1711
- const doc = (0, smithy_client_1.take)(data, {
1712
- accessEntry: (_) => de_AccessEntry(_, context),
1713
- });
1714
- Object.assign(contents, doc);
1715
- return contents;
1716
- };
1717
- exports.de_DescribeAccessEntryCommand = de_DescribeAccessEntryCommand;
1718
- const de_DescribeAccessEntryCommandError = async (output, context) => {
1719
- const parsedOutput = {
1720
- ...output,
1721
- body: await parseErrorBody(output.body, context),
1722
- };
1723
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1724
- switch (errorCode) {
1725
- case "InvalidRequestException":
1726
- case "com.amazonaws.eks#InvalidRequestException":
1727
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1728
- case "ResourceNotFoundException":
1729
- case "com.amazonaws.eks#ResourceNotFoundException":
1730
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1731
- case "ServerException":
1732
- case "com.amazonaws.eks#ServerException":
1733
- throw await de_ServerExceptionRes(parsedOutput, context);
1734
- default:
1735
- const parsedBody = parsedOutput.body;
1736
- return throwDefaultError({
1737
- output,
1738
- parsedBody,
1739
- errorCode,
1740
- });
1741
- }
1742
- };
1743
- const de_DescribeAddonCommand = async (output, context) => {
1744
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1745
- return de_DescribeAddonCommandError(output, context);
1746
- }
1747
- const contents = (0, smithy_client_1.map)({
1748
- $metadata: deserializeMetadata(output),
1749
- });
1750
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1751
- const doc = (0, smithy_client_1.take)(data, {
1752
- addon: (_) => de_Addon(_, context),
1753
- });
1754
- Object.assign(contents, doc);
1755
- return contents;
1756
- };
1757
- exports.de_DescribeAddonCommand = de_DescribeAddonCommand;
1758
- const de_DescribeAddonCommandError = async (output, context) => {
1759
- const parsedOutput = {
1760
- ...output,
1761
- body: await parseErrorBody(output.body, context),
1762
- };
1763
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1764
- switch (errorCode) {
1765
- case "ClientException":
1766
- case "com.amazonaws.eks#ClientException":
1767
- throw await de_ClientExceptionRes(parsedOutput, context);
1768
- case "InvalidParameterException":
1769
- case "com.amazonaws.eks#InvalidParameterException":
1770
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1771
- case "InvalidRequestException":
1772
- case "com.amazonaws.eks#InvalidRequestException":
1773
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1774
- case "ResourceNotFoundException":
1775
- case "com.amazonaws.eks#ResourceNotFoundException":
1776
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1777
- case "ServerException":
1778
- case "com.amazonaws.eks#ServerException":
1779
- throw await de_ServerExceptionRes(parsedOutput, context);
1780
- default:
1781
- const parsedBody = parsedOutput.body;
1782
- return throwDefaultError({
1783
- output,
1784
- parsedBody,
1785
- errorCode,
1786
- });
1787
- }
1788
- };
1789
- const de_DescribeAddonConfigurationCommand = async (output, context) => {
1790
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1791
- return de_DescribeAddonConfigurationCommandError(output, context);
1792
- }
1793
- const contents = (0, smithy_client_1.map)({
1794
- $metadata: deserializeMetadata(output),
1795
- });
1796
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1797
- const doc = (0, smithy_client_1.take)(data, {
1798
- addonName: smithy_client_1.expectString,
1799
- addonVersion: smithy_client_1.expectString,
1800
- configurationSchema: smithy_client_1.expectString,
1801
- });
1802
- Object.assign(contents, doc);
1803
- return contents;
1804
- };
1805
- exports.de_DescribeAddonConfigurationCommand = de_DescribeAddonConfigurationCommand;
1806
- const de_DescribeAddonConfigurationCommandError = async (output, context) => {
1807
- const parsedOutput = {
1808
- ...output,
1809
- body: await parseErrorBody(output.body, context),
1810
- };
1811
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1812
- switch (errorCode) {
1813
- case "InvalidParameterException":
1814
- case "com.amazonaws.eks#InvalidParameterException":
1815
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1816
- case "ResourceNotFoundException":
1817
- case "com.amazonaws.eks#ResourceNotFoundException":
1818
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1819
- case "ServerException":
1820
- case "com.amazonaws.eks#ServerException":
1821
- throw await de_ServerExceptionRes(parsedOutput, context);
1822
- default:
1823
- const parsedBody = parsedOutput.body;
1824
- return throwDefaultError({
1825
- output,
1826
- parsedBody,
1827
- errorCode,
1828
- });
1829
- }
1830
- };
1831
- const de_DescribeAddonVersionsCommand = async (output, context) => {
1832
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1833
- return de_DescribeAddonVersionsCommandError(output, context);
1834
- }
1835
- const contents = (0, smithy_client_1.map)({
1836
- $metadata: deserializeMetadata(output),
1837
- });
1838
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1839
- const doc = (0, smithy_client_1.take)(data, {
1840
- addons: smithy_client_1._json,
1841
- nextToken: smithy_client_1.expectString,
1842
- });
1843
- Object.assign(contents, doc);
1844
- return contents;
1845
- };
1846
- exports.de_DescribeAddonVersionsCommand = de_DescribeAddonVersionsCommand;
1847
- const de_DescribeAddonVersionsCommandError = async (output, context) => {
1848
- const parsedOutput = {
1849
- ...output,
1850
- body: await parseErrorBody(output.body, context),
1851
- };
1852
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1853
- switch (errorCode) {
1854
- case "InvalidParameterException":
1855
- case "com.amazonaws.eks#InvalidParameterException":
1856
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1857
- case "ResourceNotFoundException":
1858
- case "com.amazonaws.eks#ResourceNotFoundException":
1859
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1860
- case "ServerException":
1861
- case "com.amazonaws.eks#ServerException":
1862
- throw await de_ServerExceptionRes(parsedOutput, context);
1863
- default:
1864
- const parsedBody = parsedOutput.body;
1865
- return throwDefaultError({
1866
- output,
1867
- parsedBody,
1868
- errorCode,
1869
- });
1870
- }
1871
- };
1872
- const de_DescribeClusterCommand = async (output, context) => {
1873
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1874
- return de_DescribeClusterCommandError(output, context);
1875
- }
1876
- const contents = (0, smithy_client_1.map)({
1877
- $metadata: deserializeMetadata(output),
1878
- });
1879
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1880
- const doc = (0, smithy_client_1.take)(data, {
1881
- cluster: (_) => de_Cluster(_, context),
1882
- });
1883
- Object.assign(contents, doc);
1884
- return contents;
1885
- };
1886
- exports.de_DescribeClusterCommand = de_DescribeClusterCommand;
1887
- const de_DescribeClusterCommandError = async (output, context) => {
1888
- const parsedOutput = {
1889
- ...output,
1890
- body: await parseErrorBody(output.body, context),
1891
- };
1892
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1893
- switch (errorCode) {
1894
- case "ClientException":
1895
- case "com.amazonaws.eks#ClientException":
1896
- throw await de_ClientExceptionRes(parsedOutput, context);
1897
- case "ResourceNotFoundException":
1898
- case "com.amazonaws.eks#ResourceNotFoundException":
1899
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1900
- case "ServerException":
1901
- case "com.amazonaws.eks#ServerException":
1902
- throw await de_ServerExceptionRes(parsedOutput, context);
1903
- case "ServiceUnavailableException":
1904
- case "com.amazonaws.eks#ServiceUnavailableException":
1905
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1906
- default:
1907
- const parsedBody = parsedOutput.body;
1908
- return throwDefaultError({
1909
- output,
1910
- parsedBody,
1911
- errorCode,
1912
- });
1913
- }
1914
- };
1915
- const de_DescribeEksAnywhereSubscriptionCommand = async (output, context) => {
1916
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1917
- return de_DescribeEksAnywhereSubscriptionCommandError(output, context);
1918
- }
1919
- const contents = (0, smithy_client_1.map)({
1920
- $metadata: deserializeMetadata(output),
1921
- });
1922
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1923
- const doc = (0, smithy_client_1.take)(data, {
1924
- subscription: (_) => de_EksAnywhereSubscription(_, context),
1925
- });
1926
- Object.assign(contents, doc);
1927
- return contents;
1928
- };
1929
- exports.de_DescribeEksAnywhereSubscriptionCommand = de_DescribeEksAnywhereSubscriptionCommand;
1930
- const de_DescribeEksAnywhereSubscriptionCommandError = async (output, context) => {
1931
- const parsedOutput = {
1932
- ...output,
1933
- body: await parseErrorBody(output.body, context),
1934
- };
1935
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1936
- switch (errorCode) {
1937
- case "ClientException":
1938
- case "com.amazonaws.eks#ClientException":
1939
- throw await de_ClientExceptionRes(parsedOutput, context);
1940
- case "ResourceNotFoundException":
1941
- case "com.amazonaws.eks#ResourceNotFoundException":
1942
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1943
- case "ServerException":
1944
- case "com.amazonaws.eks#ServerException":
1945
- throw await de_ServerExceptionRes(parsedOutput, context);
1946
- case "ServiceUnavailableException":
1947
- case "com.amazonaws.eks#ServiceUnavailableException":
1948
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1949
- default:
1950
- const parsedBody = parsedOutput.body;
1951
- return throwDefaultError({
1952
- output,
1953
- parsedBody,
1954
- errorCode,
1955
- });
1956
- }
1957
- };
1958
- const de_DescribeFargateProfileCommand = async (output, context) => {
1959
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1960
- return de_DescribeFargateProfileCommandError(output, context);
1961
- }
1962
- const contents = (0, smithy_client_1.map)({
1963
- $metadata: deserializeMetadata(output),
1964
- });
1965
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1966
- const doc = (0, smithy_client_1.take)(data, {
1967
- fargateProfile: (_) => de_FargateProfile(_, context),
1968
- });
1969
- Object.assign(contents, doc);
1970
- return contents;
1971
- };
1972
- exports.de_DescribeFargateProfileCommand = de_DescribeFargateProfileCommand;
1973
- const de_DescribeFargateProfileCommandError = async (output, context) => {
1974
- const parsedOutput = {
1975
- ...output,
1976
- body: await parseErrorBody(output.body, context),
1977
- };
1978
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1979
- switch (errorCode) {
1980
- case "ClientException":
1981
- case "com.amazonaws.eks#ClientException":
1982
- throw await de_ClientExceptionRes(parsedOutput, context);
1983
- case "InvalidParameterException":
1984
- case "com.amazonaws.eks#InvalidParameterException":
1985
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1986
- case "ResourceNotFoundException":
1987
- case "com.amazonaws.eks#ResourceNotFoundException":
1988
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1989
- case "ServerException":
1990
- case "com.amazonaws.eks#ServerException":
1991
- throw await de_ServerExceptionRes(parsedOutput, context);
1992
- default:
1993
- const parsedBody = parsedOutput.body;
1994
- return throwDefaultError({
1995
- output,
1996
- parsedBody,
1997
- errorCode,
1998
- });
1999
- }
2000
- };
2001
- const de_DescribeIdentityProviderConfigCommand = async (output, context) => {
2002
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2003
- return de_DescribeIdentityProviderConfigCommandError(output, context);
2004
- }
2005
- const contents = (0, smithy_client_1.map)({
2006
- $metadata: deserializeMetadata(output),
2007
- });
2008
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2009
- const doc = (0, smithy_client_1.take)(data, {
2010
- identityProviderConfig: smithy_client_1._json,
2011
- });
2012
- Object.assign(contents, doc);
2013
- return contents;
2014
- };
2015
- exports.de_DescribeIdentityProviderConfigCommand = de_DescribeIdentityProviderConfigCommand;
2016
- const de_DescribeIdentityProviderConfigCommandError = async (output, context) => {
2017
- const parsedOutput = {
2018
- ...output,
2019
- body: await parseErrorBody(output.body, context),
2020
- };
2021
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2022
- switch (errorCode) {
2023
- case "ClientException":
2024
- case "com.amazonaws.eks#ClientException":
2025
- throw await de_ClientExceptionRes(parsedOutput, context);
2026
- case "InvalidParameterException":
2027
- case "com.amazonaws.eks#InvalidParameterException":
2028
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2029
- case "ResourceNotFoundException":
2030
- case "com.amazonaws.eks#ResourceNotFoundException":
2031
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2032
- case "ServerException":
2033
- case "com.amazonaws.eks#ServerException":
2034
- throw await de_ServerExceptionRes(parsedOutput, context);
2035
- case "ServiceUnavailableException":
2036
- case "com.amazonaws.eks#ServiceUnavailableException":
2037
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2038
- default:
2039
- const parsedBody = parsedOutput.body;
2040
- return throwDefaultError({
2041
- output,
2042
- parsedBody,
2043
- errorCode,
2044
- });
2045
- }
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
- };
2090
- const de_DescribeNodegroupCommand = async (output, context) => {
2091
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2092
- return de_DescribeNodegroupCommandError(output, context);
2093
- }
2094
- const contents = (0, smithy_client_1.map)({
2095
- $metadata: deserializeMetadata(output),
2096
- });
2097
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2098
- const doc = (0, smithy_client_1.take)(data, {
2099
- nodegroup: (_) => de_Nodegroup(_, context),
2100
- });
2101
- Object.assign(contents, doc);
2102
- return contents;
2103
- };
2104
- exports.de_DescribeNodegroupCommand = de_DescribeNodegroupCommand;
2105
- const de_DescribeNodegroupCommandError = async (output, context) => {
2106
- const parsedOutput = {
2107
- ...output,
2108
- body: await parseErrorBody(output.body, context),
2109
- };
2110
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2111
- switch (errorCode) {
2112
- case "ClientException":
2113
- case "com.amazonaws.eks#ClientException":
2114
- throw await de_ClientExceptionRes(parsedOutput, context);
2115
- case "InvalidParameterException":
2116
- case "com.amazonaws.eks#InvalidParameterException":
2117
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2118
- case "ResourceNotFoundException":
2119
- case "com.amazonaws.eks#ResourceNotFoundException":
2120
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2121
- case "ServerException":
2122
- case "com.amazonaws.eks#ServerException":
2123
- throw await de_ServerExceptionRes(parsedOutput, context);
2124
- case "ServiceUnavailableException":
2125
- case "com.amazonaws.eks#ServiceUnavailableException":
2126
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2127
- default:
2128
- const parsedBody = parsedOutput.body;
2129
- return throwDefaultError({
2130
- output,
2131
- parsedBody,
2132
- errorCode,
2133
- });
2134
- }
2135
- };
2136
- const de_DescribePodIdentityAssociationCommand = async (output, context) => {
2137
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2138
- return de_DescribePodIdentityAssociationCommandError(output, context);
2139
- }
2140
- const contents = (0, smithy_client_1.map)({
2141
- $metadata: deserializeMetadata(output),
2142
- });
2143
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2144
- const doc = (0, smithy_client_1.take)(data, {
2145
- association: (_) => de_PodIdentityAssociation(_, context),
2146
- });
2147
- Object.assign(contents, doc);
2148
- return contents;
2149
- };
2150
- exports.de_DescribePodIdentityAssociationCommand = de_DescribePodIdentityAssociationCommand;
2151
- const de_DescribePodIdentityAssociationCommandError = async (output, context) => {
2152
- const parsedOutput = {
2153
- ...output,
2154
- body: await parseErrorBody(output.body, context),
2155
- };
2156
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2157
- switch (errorCode) {
2158
- case "InvalidParameterException":
2159
- case "com.amazonaws.eks#InvalidParameterException":
2160
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2161
- case "InvalidRequestException":
2162
- case "com.amazonaws.eks#InvalidRequestException":
2163
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2164
- case "ResourceNotFoundException":
2165
- case "com.amazonaws.eks#ResourceNotFoundException":
2166
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2167
- case "ServerException":
2168
- case "com.amazonaws.eks#ServerException":
2169
- throw await de_ServerExceptionRes(parsedOutput, context);
2170
- default:
2171
- const parsedBody = parsedOutput.body;
2172
- return throwDefaultError({
2173
- output,
2174
- parsedBody,
2175
- errorCode,
2176
- });
2177
- }
2178
- };
2179
- const de_DescribeUpdateCommand = async (output, context) => {
2180
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2181
- return de_DescribeUpdateCommandError(output, context);
2182
- }
2183
- const contents = (0, smithy_client_1.map)({
2184
- $metadata: deserializeMetadata(output),
2185
- });
2186
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2187
- const doc = (0, smithy_client_1.take)(data, {
2188
- update: (_) => de_Update(_, context),
2189
- });
2190
- Object.assign(contents, doc);
2191
- return contents;
2192
- };
2193
- exports.de_DescribeUpdateCommand = de_DescribeUpdateCommand;
2194
- const de_DescribeUpdateCommandError = async (output, context) => {
2195
- const parsedOutput = {
2196
- ...output,
2197
- body: await parseErrorBody(output.body, context),
2198
- };
2199
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2200
- switch (errorCode) {
2201
- case "ClientException":
2202
- case "com.amazonaws.eks#ClientException":
2203
- throw await de_ClientExceptionRes(parsedOutput, context);
2204
- case "InvalidParameterException":
2205
- case "com.amazonaws.eks#InvalidParameterException":
2206
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2207
- case "ResourceNotFoundException":
2208
- case "com.amazonaws.eks#ResourceNotFoundException":
2209
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2210
- case "ServerException":
2211
- case "com.amazonaws.eks#ServerException":
2212
- throw await de_ServerExceptionRes(parsedOutput, context);
2213
- default:
2214
- const parsedBody = parsedOutput.body;
2215
- return throwDefaultError({
2216
- output,
2217
- parsedBody,
2218
- errorCode,
2219
- });
2220
- }
2221
- };
2222
- const de_DisassociateAccessPolicyCommand = async (output, context) => {
2223
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2224
- return de_DisassociateAccessPolicyCommandError(output, context);
2225
- }
2226
- const contents = (0, smithy_client_1.map)({
2227
- $metadata: deserializeMetadata(output),
2228
- });
2229
- await (0, smithy_client_1.collectBody)(output.body, context);
2230
- return contents;
2231
- };
2232
- exports.de_DisassociateAccessPolicyCommand = de_DisassociateAccessPolicyCommand;
2233
- const de_DisassociateAccessPolicyCommandError = async (output, context) => {
2234
- const parsedOutput = {
2235
- ...output,
2236
- body: await parseErrorBody(output.body, context),
2237
- };
2238
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2239
- switch (errorCode) {
2240
- case "InvalidRequestException":
2241
- case "com.amazonaws.eks#InvalidRequestException":
2242
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2243
- case "ResourceNotFoundException":
2244
- case "com.amazonaws.eks#ResourceNotFoundException":
2245
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2246
- case "ServerException":
2247
- case "com.amazonaws.eks#ServerException":
2248
- throw await de_ServerExceptionRes(parsedOutput, context);
2249
- default:
2250
- const parsedBody = parsedOutput.body;
2251
- return throwDefaultError({
2252
- output,
2253
- parsedBody,
2254
- errorCode,
2255
- });
2256
- }
2257
- };
2258
- const de_DisassociateIdentityProviderConfigCommand = async (output, context) => {
2259
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2260
- return de_DisassociateIdentityProviderConfigCommandError(output, context);
2261
- }
2262
- const contents = (0, smithy_client_1.map)({
2263
- $metadata: deserializeMetadata(output),
2264
- });
2265
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2266
- const doc = (0, smithy_client_1.take)(data, {
2267
- update: (_) => de_Update(_, context),
2268
- });
2269
- Object.assign(contents, doc);
2270
- return contents;
2271
- };
2272
- exports.de_DisassociateIdentityProviderConfigCommand = de_DisassociateIdentityProviderConfigCommand;
2273
- const de_DisassociateIdentityProviderConfigCommandError = async (output, context) => {
2274
- const parsedOutput = {
2275
- ...output,
2276
- body: await parseErrorBody(output.body, context),
2277
- };
2278
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2279
- switch (errorCode) {
2280
- case "ClientException":
2281
- case "com.amazonaws.eks#ClientException":
2282
- throw await de_ClientExceptionRes(parsedOutput, context);
2283
- case "InvalidParameterException":
2284
- case "com.amazonaws.eks#InvalidParameterException":
2285
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2286
- case "InvalidRequestException":
2287
- case "com.amazonaws.eks#InvalidRequestException":
2288
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2289
- case "ResourceInUseException":
2290
- case "com.amazonaws.eks#ResourceInUseException":
2291
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2292
- case "ResourceNotFoundException":
2293
- case "com.amazonaws.eks#ResourceNotFoundException":
2294
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2295
- case "ServerException":
2296
- case "com.amazonaws.eks#ServerException":
2297
- throw await de_ServerExceptionRes(parsedOutput, context);
2298
- default:
2299
- const parsedBody = parsedOutput.body;
2300
- return throwDefaultError({
2301
- output,
2302
- parsedBody,
2303
- errorCode,
2304
- });
2305
- }
2306
- };
2307
- const de_ListAccessEntriesCommand = async (output, context) => {
2308
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2309
- return de_ListAccessEntriesCommandError(output, context);
2310
- }
2311
- const contents = (0, smithy_client_1.map)({
2312
- $metadata: deserializeMetadata(output),
2313
- });
2314
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2315
- const doc = (0, smithy_client_1.take)(data, {
2316
- accessEntries: smithy_client_1._json,
2317
- nextToken: smithy_client_1.expectString,
2318
- });
2319
- Object.assign(contents, doc);
2320
- return contents;
2321
- };
2322
- exports.de_ListAccessEntriesCommand = de_ListAccessEntriesCommand;
2323
- const de_ListAccessEntriesCommandError = async (output, context) => {
2324
- const parsedOutput = {
2325
- ...output,
2326
- body: await parseErrorBody(output.body, context),
2327
- };
2328
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2329
- switch (errorCode) {
2330
- case "InvalidParameterException":
2331
- case "com.amazonaws.eks#InvalidParameterException":
2332
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2333
- case "InvalidRequestException":
2334
- case "com.amazonaws.eks#InvalidRequestException":
2335
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2336
- case "ResourceNotFoundException":
2337
- case "com.amazonaws.eks#ResourceNotFoundException":
2338
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2339
- case "ServerException":
2340
- case "com.amazonaws.eks#ServerException":
2341
- throw await de_ServerExceptionRes(parsedOutput, context);
2342
- default:
2343
- const parsedBody = parsedOutput.body;
2344
- return throwDefaultError({
2345
- output,
2346
- parsedBody,
2347
- errorCode,
2348
- });
2349
- }
2350
- };
2351
- const de_ListAccessPoliciesCommand = async (output, context) => {
2352
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2353
- return de_ListAccessPoliciesCommandError(output, context);
2354
- }
2355
- const contents = (0, smithy_client_1.map)({
2356
- $metadata: deserializeMetadata(output),
2357
- });
2358
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2359
- const doc = (0, smithy_client_1.take)(data, {
2360
- accessPolicies: smithy_client_1._json,
2361
- nextToken: smithy_client_1.expectString,
2362
- });
2363
- Object.assign(contents, doc);
2364
- return contents;
2365
- };
2366
- exports.de_ListAccessPoliciesCommand = de_ListAccessPoliciesCommand;
2367
- const de_ListAccessPoliciesCommandError = async (output, context) => {
2368
- const parsedOutput = {
2369
- ...output,
2370
- body: await parseErrorBody(output.body, context),
2371
- };
2372
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2373
- switch (errorCode) {
2374
- case "ServerException":
2375
- case "com.amazonaws.eks#ServerException":
2376
- throw await de_ServerExceptionRes(parsedOutput, context);
2377
- default:
2378
- const parsedBody = parsedOutput.body;
2379
- return throwDefaultError({
2380
- output,
2381
- parsedBody,
2382
- errorCode,
2383
- });
2384
- }
2385
- };
2386
- const de_ListAddonsCommand = async (output, context) => {
2387
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2388
- return de_ListAddonsCommandError(output, context);
2389
- }
2390
- const contents = (0, smithy_client_1.map)({
2391
- $metadata: deserializeMetadata(output),
2392
- });
2393
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2394
- const doc = (0, smithy_client_1.take)(data, {
2395
- addons: smithy_client_1._json,
2396
- nextToken: smithy_client_1.expectString,
2397
- });
2398
- Object.assign(contents, doc);
2399
- return contents;
2400
- };
2401
- exports.de_ListAddonsCommand = de_ListAddonsCommand;
2402
- const de_ListAddonsCommandError = async (output, context) => {
2403
- const parsedOutput = {
2404
- ...output,
2405
- body: await parseErrorBody(output.body, context),
2406
- };
2407
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2408
- switch (errorCode) {
2409
- case "ClientException":
2410
- case "com.amazonaws.eks#ClientException":
2411
- throw await de_ClientExceptionRes(parsedOutput, context);
2412
- case "InvalidParameterException":
2413
- case "com.amazonaws.eks#InvalidParameterException":
2414
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2415
- case "InvalidRequestException":
2416
- case "com.amazonaws.eks#InvalidRequestException":
2417
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2418
- case "ResourceNotFoundException":
2419
- case "com.amazonaws.eks#ResourceNotFoundException":
2420
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2421
- case "ServerException":
2422
- case "com.amazonaws.eks#ServerException":
2423
- throw await de_ServerExceptionRes(parsedOutput, context);
2424
- default:
2425
- const parsedBody = parsedOutput.body;
2426
- return throwDefaultError({
2427
- output,
2428
- parsedBody,
2429
- errorCode,
2430
- });
2431
- }
2432
- };
2433
- const de_ListAssociatedAccessPoliciesCommand = async (output, context) => {
2434
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2435
- return de_ListAssociatedAccessPoliciesCommandError(output, context);
2436
- }
2437
- const contents = (0, smithy_client_1.map)({
2438
- $metadata: deserializeMetadata(output),
2439
- });
2440
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2441
- const doc = (0, smithy_client_1.take)(data, {
2442
- associatedAccessPolicies: (_) => de_AssociatedAccessPoliciesList(_, context),
2443
- clusterName: smithy_client_1.expectString,
2444
- nextToken: smithy_client_1.expectString,
2445
- principalArn: smithy_client_1.expectString,
2446
- });
2447
- Object.assign(contents, doc);
2448
- return contents;
2449
- };
2450
- exports.de_ListAssociatedAccessPoliciesCommand = de_ListAssociatedAccessPoliciesCommand;
2451
- const de_ListAssociatedAccessPoliciesCommandError = async (output, context) => {
2452
- const parsedOutput = {
2453
- ...output,
2454
- body: await parseErrorBody(output.body, context),
2455
- };
2456
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2457
- switch (errorCode) {
2458
- case "InvalidRequestException":
2459
- case "com.amazonaws.eks#InvalidRequestException":
2460
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2461
- case "ResourceNotFoundException":
2462
- case "com.amazonaws.eks#ResourceNotFoundException":
2463
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2464
- case "ServerException":
2465
- case "com.amazonaws.eks#ServerException":
2466
- throw await de_ServerExceptionRes(parsedOutput, context);
2467
- default:
2468
- const parsedBody = parsedOutput.body;
2469
- return throwDefaultError({
2470
- output,
2471
- parsedBody,
2472
- errorCode,
2473
- });
2474
- }
2475
- };
2476
- const de_ListClustersCommand = async (output, context) => {
2477
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2478
- return de_ListClustersCommandError(output, context);
2479
- }
2480
- const contents = (0, smithy_client_1.map)({
2481
- $metadata: deserializeMetadata(output),
2482
- });
2483
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2484
- const doc = (0, smithy_client_1.take)(data, {
2485
- clusters: smithy_client_1._json,
2486
- nextToken: smithy_client_1.expectString,
2487
- });
2488
- Object.assign(contents, doc);
2489
- return contents;
2490
- };
2491
- exports.de_ListClustersCommand = de_ListClustersCommand;
2492
- const de_ListClustersCommandError = async (output, context) => {
2493
- const parsedOutput = {
2494
- ...output,
2495
- body: await parseErrorBody(output.body, context),
2496
- };
2497
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2498
- switch (errorCode) {
2499
- case "ClientException":
2500
- case "com.amazonaws.eks#ClientException":
2501
- throw await de_ClientExceptionRes(parsedOutput, context);
2502
- case "InvalidParameterException":
2503
- case "com.amazonaws.eks#InvalidParameterException":
2504
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2505
- case "ServerException":
2506
- case "com.amazonaws.eks#ServerException":
2507
- throw await de_ServerExceptionRes(parsedOutput, context);
2508
- case "ServiceUnavailableException":
2509
- case "com.amazonaws.eks#ServiceUnavailableException":
2510
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2511
- default:
2512
- const parsedBody = parsedOutput.body;
2513
- return throwDefaultError({
2514
- output,
2515
- parsedBody,
2516
- errorCode,
2517
- });
2518
- }
2519
- };
2520
- const de_ListEksAnywhereSubscriptionsCommand = async (output, context) => {
2521
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2522
- return de_ListEksAnywhereSubscriptionsCommandError(output, context);
2523
- }
2524
- const contents = (0, smithy_client_1.map)({
2525
- $metadata: deserializeMetadata(output),
2526
- });
2527
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2528
- const doc = (0, smithy_client_1.take)(data, {
2529
- nextToken: smithy_client_1.expectString,
2530
- subscriptions: (_) => de_EksAnywhereSubscriptionList(_, context),
2531
- });
2532
- Object.assign(contents, doc);
2533
- return contents;
2534
- };
2535
- exports.de_ListEksAnywhereSubscriptionsCommand = de_ListEksAnywhereSubscriptionsCommand;
2536
- const de_ListEksAnywhereSubscriptionsCommandError = async (output, context) => {
2537
- const parsedOutput = {
2538
- ...output,
2539
- body: await parseErrorBody(output.body, context),
2540
- };
2541
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2542
- switch (errorCode) {
2543
- case "ClientException":
2544
- case "com.amazonaws.eks#ClientException":
2545
- throw await de_ClientExceptionRes(parsedOutput, context);
2546
- case "InvalidParameterException":
2547
- case "com.amazonaws.eks#InvalidParameterException":
2548
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2549
- case "ServerException":
2550
- case "com.amazonaws.eks#ServerException":
2551
- throw await de_ServerExceptionRes(parsedOutput, context);
2552
- case "ServiceUnavailableException":
2553
- case "com.amazonaws.eks#ServiceUnavailableException":
2554
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2555
- default:
2556
- const parsedBody = parsedOutput.body;
2557
- return throwDefaultError({
2558
- output,
2559
- parsedBody,
2560
- errorCode,
2561
- });
2562
- }
2563
- };
2564
- const de_ListFargateProfilesCommand = async (output, context) => {
2565
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2566
- return de_ListFargateProfilesCommandError(output, context);
2567
- }
2568
- const contents = (0, smithy_client_1.map)({
2569
- $metadata: deserializeMetadata(output),
2570
- });
2571
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2572
- const doc = (0, smithy_client_1.take)(data, {
2573
- fargateProfileNames: smithy_client_1._json,
2574
- nextToken: smithy_client_1.expectString,
2575
- });
2576
- Object.assign(contents, doc);
2577
- return contents;
2578
- };
2579
- exports.de_ListFargateProfilesCommand = de_ListFargateProfilesCommand;
2580
- const de_ListFargateProfilesCommandError = async (output, context) => {
2581
- const parsedOutput = {
2582
- ...output,
2583
- body: await parseErrorBody(output.body, context),
2584
- };
2585
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2586
- switch (errorCode) {
2587
- case "ClientException":
2588
- case "com.amazonaws.eks#ClientException":
2589
- throw await de_ClientExceptionRes(parsedOutput, context);
2590
- case "InvalidParameterException":
2591
- case "com.amazonaws.eks#InvalidParameterException":
2592
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2593
- case "ResourceNotFoundException":
2594
- case "com.amazonaws.eks#ResourceNotFoundException":
2595
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2596
- case "ServerException":
2597
- case "com.amazonaws.eks#ServerException":
2598
- throw await de_ServerExceptionRes(parsedOutput, context);
2599
- default:
2600
- const parsedBody = parsedOutput.body;
2601
- return throwDefaultError({
2602
- output,
2603
- parsedBody,
2604
- errorCode,
2605
- });
2606
- }
2607
- };
2608
- const de_ListIdentityProviderConfigsCommand = async (output, context) => {
2609
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2610
- return de_ListIdentityProviderConfigsCommandError(output, context);
2611
- }
2612
- const contents = (0, smithy_client_1.map)({
2613
- $metadata: deserializeMetadata(output),
2614
- });
2615
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2616
- const doc = (0, smithy_client_1.take)(data, {
2617
- identityProviderConfigs: smithy_client_1._json,
2618
- nextToken: smithy_client_1.expectString,
2619
- });
2620
- Object.assign(contents, doc);
2621
- return contents;
2622
- };
2623
- exports.de_ListIdentityProviderConfigsCommand = de_ListIdentityProviderConfigsCommand;
2624
- const de_ListIdentityProviderConfigsCommandError = async (output, context) => {
2625
- const parsedOutput = {
2626
- ...output,
2627
- body: await parseErrorBody(output.body, context),
2628
- };
2629
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2630
- switch (errorCode) {
2631
- case "ClientException":
2632
- case "com.amazonaws.eks#ClientException":
2633
- throw await de_ClientExceptionRes(parsedOutput, context);
2634
- case "InvalidParameterException":
2635
- case "com.amazonaws.eks#InvalidParameterException":
2636
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2637
- case "ResourceNotFoundException":
2638
- case "com.amazonaws.eks#ResourceNotFoundException":
2639
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2640
- case "ServerException":
2641
- case "com.amazonaws.eks#ServerException":
2642
- throw await de_ServerExceptionRes(parsedOutput, context);
2643
- case "ServiceUnavailableException":
2644
- case "com.amazonaws.eks#ServiceUnavailableException":
2645
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2646
- default:
2647
- const parsedBody = parsedOutput.body;
2648
- return throwDefaultError({
2649
- output,
2650
- parsedBody,
2651
- errorCode,
2652
- });
2653
- }
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
- };
2699
- const de_ListNodegroupsCommand = async (output, context) => {
2700
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2701
- return de_ListNodegroupsCommandError(output, context);
2702
- }
2703
- const contents = (0, smithy_client_1.map)({
2704
- $metadata: deserializeMetadata(output),
2705
- });
2706
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2707
- const doc = (0, smithy_client_1.take)(data, {
2708
- nextToken: smithy_client_1.expectString,
2709
- nodegroups: smithy_client_1._json,
2710
- });
2711
- Object.assign(contents, doc);
2712
- return contents;
2713
- };
2714
- exports.de_ListNodegroupsCommand = de_ListNodegroupsCommand;
2715
- const de_ListNodegroupsCommandError = async (output, context) => {
2716
- const parsedOutput = {
2717
- ...output,
2718
- body: await parseErrorBody(output.body, context),
2719
- };
2720
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2721
- switch (errorCode) {
2722
- case "ClientException":
2723
- case "com.amazonaws.eks#ClientException":
2724
- throw await de_ClientExceptionRes(parsedOutput, context);
2725
- case "InvalidParameterException":
2726
- case "com.amazonaws.eks#InvalidParameterException":
2727
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2728
- case "ResourceNotFoundException":
2729
- case "com.amazonaws.eks#ResourceNotFoundException":
2730
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2731
- case "ServerException":
2732
- case "com.amazonaws.eks#ServerException":
2733
- throw await de_ServerExceptionRes(parsedOutput, context);
2734
- case "ServiceUnavailableException":
2735
- case "com.amazonaws.eks#ServiceUnavailableException":
2736
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2737
- default:
2738
- const parsedBody = parsedOutput.body;
2739
- return throwDefaultError({
2740
- output,
2741
- parsedBody,
2742
- errorCode,
2743
- });
2744
- }
2745
- };
2746
- const de_ListPodIdentityAssociationsCommand = async (output, context) => {
2747
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2748
- return de_ListPodIdentityAssociationsCommandError(output, context);
2749
- }
2750
- const contents = (0, smithy_client_1.map)({
2751
- $metadata: deserializeMetadata(output),
2752
- });
2753
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2754
- const doc = (0, smithy_client_1.take)(data, {
2755
- associations: smithy_client_1._json,
2756
- nextToken: smithy_client_1.expectString,
2757
- });
2758
- Object.assign(contents, doc);
2759
- return contents;
2760
- };
2761
- exports.de_ListPodIdentityAssociationsCommand = de_ListPodIdentityAssociationsCommand;
2762
- const de_ListPodIdentityAssociationsCommandError = async (output, context) => {
2763
- const parsedOutput = {
2764
- ...output,
2765
- body: await parseErrorBody(output.body, context),
2766
- };
2767
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2768
- switch (errorCode) {
2769
- case "InvalidParameterException":
2770
- case "com.amazonaws.eks#InvalidParameterException":
2771
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2772
- case "InvalidRequestException":
2773
- case "com.amazonaws.eks#InvalidRequestException":
2774
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2775
- case "ResourceNotFoundException":
2776
- case "com.amazonaws.eks#ResourceNotFoundException":
2777
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2778
- case "ServerException":
2779
- case "com.amazonaws.eks#ServerException":
2780
- throw await de_ServerExceptionRes(parsedOutput, context);
2781
- default:
2782
- const parsedBody = parsedOutput.body;
2783
- return throwDefaultError({
2784
- output,
2785
- parsedBody,
2786
- errorCode,
2787
- });
2788
- }
2789
- };
2790
- const de_ListTagsForResourceCommand = async (output, context) => {
2791
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2792
- return de_ListTagsForResourceCommandError(output, context);
2793
- }
2794
- const contents = (0, smithy_client_1.map)({
2795
- $metadata: deserializeMetadata(output),
2796
- });
2797
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2798
- const doc = (0, smithy_client_1.take)(data, {
2799
- tags: smithy_client_1._json,
2800
- });
2801
- Object.assign(contents, doc);
2802
- return contents;
2803
- };
2804
- exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
2805
- const de_ListTagsForResourceCommandError = async (output, context) => {
2806
- const parsedOutput = {
2807
- ...output,
2808
- body: await parseErrorBody(output.body, context),
2809
- };
2810
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2811
- switch (errorCode) {
2812
- case "BadRequestException":
2813
- case "com.amazonaws.eks#BadRequestException":
2814
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2815
- case "NotFoundException":
2816
- case "com.amazonaws.eks#NotFoundException":
2817
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2818
- default:
2819
- const parsedBody = parsedOutput.body;
2820
- return throwDefaultError({
2821
- output,
2822
- parsedBody,
2823
- errorCode,
2824
- });
2825
- }
2826
- };
2827
- const de_ListUpdatesCommand = async (output, context) => {
2828
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2829
- return de_ListUpdatesCommandError(output, context);
2830
- }
2831
- const contents = (0, smithy_client_1.map)({
2832
- $metadata: deserializeMetadata(output),
2833
- });
2834
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2835
- const doc = (0, smithy_client_1.take)(data, {
2836
- nextToken: smithy_client_1.expectString,
2837
- updateIds: smithy_client_1._json,
2838
- });
2839
- Object.assign(contents, doc);
2840
- return contents;
2841
- };
2842
- exports.de_ListUpdatesCommand = de_ListUpdatesCommand;
2843
- const de_ListUpdatesCommandError = async (output, context) => {
2844
- const parsedOutput = {
2845
- ...output,
2846
- body: await parseErrorBody(output.body, context),
2847
- };
2848
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2849
- switch (errorCode) {
2850
- case "ClientException":
2851
- case "com.amazonaws.eks#ClientException":
2852
- throw await de_ClientExceptionRes(parsedOutput, context);
2853
- case "InvalidParameterException":
2854
- case "com.amazonaws.eks#InvalidParameterException":
2855
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2856
- case "ResourceNotFoundException":
2857
- case "com.amazonaws.eks#ResourceNotFoundException":
2858
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2859
- case "ServerException":
2860
- case "com.amazonaws.eks#ServerException":
2861
- throw await de_ServerExceptionRes(parsedOutput, context);
2862
- default:
2863
- const parsedBody = parsedOutput.body;
2864
- return throwDefaultError({
2865
- output,
2866
- parsedBody,
2867
- errorCode,
2868
- });
2869
- }
2870
- };
2871
- const de_RegisterClusterCommand = async (output, context) => {
2872
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2873
- return de_RegisterClusterCommandError(output, context);
2874
- }
2875
- const contents = (0, smithy_client_1.map)({
2876
- $metadata: deserializeMetadata(output),
2877
- });
2878
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2879
- const doc = (0, smithy_client_1.take)(data, {
2880
- cluster: (_) => de_Cluster(_, context),
2881
- });
2882
- Object.assign(contents, doc);
2883
- return contents;
2884
- };
2885
- exports.de_RegisterClusterCommand = de_RegisterClusterCommand;
2886
- const de_RegisterClusterCommandError = async (output, context) => {
2887
- const parsedOutput = {
2888
- ...output,
2889
- body: await parseErrorBody(output.body, context),
2890
- };
2891
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2892
- switch (errorCode) {
2893
- case "AccessDeniedException":
2894
- case "com.amazonaws.eks#AccessDeniedException":
2895
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2896
- case "ClientException":
2897
- case "com.amazonaws.eks#ClientException":
2898
- throw await de_ClientExceptionRes(parsedOutput, context);
2899
- case "InvalidParameterException":
2900
- case "com.amazonaws.eks#InvalidParameterException":
2901
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2902
- case "ResourceInUseException":
2903
- case "com.amazonaws.eks#ResourceInUseException":
2904
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2905
- case "ResourceLimitExceededException":
2906
- case "com.amazonaws.eks#ResourceLimitExceededException":
2907
- throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
2908
- case "ResourcePropagationDelayException":
2909
- case "com.amazonaws.eks#ResourcePropagationDelayException":
2910
- throw await de_ResourcePropagationDelayExceptionRes(parsedOutput, context);
2911
- case "ServerException":
2912
- case "com.amazonaws.eks#ServerException":
2913
- throw await de_ServerExceptionRes(parsedOutput, context);
2914
- case "ServiceUnavailableException":
2915
- case "com.amazonaws.eks#ServiceUnavailableException":
2916
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2917
- default:
2918
- const parsedBody = parsedOutput.body;
2919
- return throwDefaultError({
2920
- output,
2921
- parsedBody,
2922
- errorCode,
2923
- });
2924
- }
2925
- };
2926
- const de_TagResourceCommand = async (output, context) => {
2927
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2928
- return de_TagResourceCommandError(output, context);
2929
- }
2930
- const contents = (0, smithy_client_1.map)({
2931
- $metadata: deserializeMetadata(output),
2932
- });
2933
- await (0, smithy_client_1.collectBody)(output.body, context);
2934
- return contents;
2935
- };
2936
- exports.de_TagResourceCommand = de_TagResourceCommand;
2937
- const de_TagResourceCommandError = async (output, context) => {
2938
- const parsedOutput = {
2939
- ...output,
2940
- body: await parseErrorBody(output.body, context),
2941
- };
2942
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2943
- switch (errorCode) {
2944
- case "BadRequestException":
2945
- case "com.amazonaws.eks#BadRequestException":
2946
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2947
- case "NotFoundException":
2948
- case "com.amazonaws.eks#NotFoundException":
2949
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2950
- default:
2951
- const parsedBody = parsedOutput.body;
2952
- return throwDefaultError({
2953
- output,
2954
- parsedBody,
2955
- errorCode,
2956
- });
2957
- }
2958
- };
2959
- const de_UntagResourceCommand = async (output, context) => {
2960
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2961
- return de_UntagResourceCommandError(output, context);
2962
- }
2963
- const contents = (0, smithy_client_1.map)({
2964
- $metadata: deserializeMetadata(output),
2965
- });
2966
- await (0, smithy_client_1.collectBody)(output.body, context);
2967
- return contents;
2968
- };
2969
- exports.de_UntagResourceCommand = de_UntagResourceCommand;
2970
- const de_UntagResourceCommandError = async (output, context) => {
2971
- const parsedOutput = {
2972
- ...output,
2973
- body: await parseErrorBody(output.body, context),
2974
- };
2975
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2976
- switch (errorCode) {
2977
- case "BadRequestException":
2978
- case "com.amazonaws.eks#BadRequestException":
2979
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2980
- case "NotFoundException":
2981
- case "com.amazonaws.eks#NotFoundException":
2982
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2983
- default:
2984
- const parsedBody = parsedOutput.body;
2985
- return throwDefaultError({
2986
- output,
2987
- parsedBody,
2988
- errorCode,
2989
- });
2990
- }
2991
- };
2992
- const de_UpdateAccessEntryCommand = async (output, context) => {
2993
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2994
- return de_UpdateAccessEntryCommandError(output, context);
2995
- }
2996
- const contents = (0, smithy_client_1.map)({
2997
- $metadata: deserializeMetadata(output),
2998
- });
2999
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3000
- const doc = (0, smithy_client_1.take)(data, {
3001
- accessEntry: (_) => de_AccessEntry(_, context),
3002
- });
3003
- Object.assign(contents, doc);
3004
- return contents;
3005
- };
3006
- exports.de_UpdateAccessEntryCommand = de_UpdateAccessEntryCommand;
3007
- const de_UpdateAccessEntryCommandError = async (output, context) => {
3008
- const parsedOutput = {
3009
- ...output,
3010
- body: await parseErrorBody(output.body, context),
3011
- };
3012
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3013
- switch (errorCode) {
3014
- case "InvalidParameterException":
3015
- case "com.amazonaws.eks#InvalidParameterException":
3016
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
3017
- case "InvalidRequestException":
3018
- case "com.amazonaws.eks#InvalidRequestException":
3019
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3020
- case "ResourceNotFoundException":
3021
- case "com.amazonaws.eks#ResourceNotFoundException":
3022
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3023
- case "ServerException":
3024
- case "com.amazonaws.eks#ServerException":
3025
- throw await de_ServerExceptionRes(parsedOutput, context);
3026
- default:
3027
- const parsedBody = parsedOutput.body;
3028
- return throwDefaultError({
3029
- output,
3030
- parsedBody,
3031
- errorCode,
3032
- });
3033
- }
3034
- };
3035
- const de_UpdateAddonCommand = async (output, context) => {
3036
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3037
- return de_UpdateAddonCommandError(output, context);
3038
- }
3039
- const contents = (0, smithy_client_1.map)({
3040
- $metadata: deserializeMetadata(output),
3041
- });
3042
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3043
- const doc = (0, smithy_client_1.take)(data, {
3044
- update: (_) => de_Update(_, context),
3045
- });
3046
- Object.assign(contents, doc);
3047
- return contents;
3048
- };
3049
- exports.de_UpdateAddonCommand = de_UpdateAddonCommand;
3050
- const de_UpdateAddonCommandError = async (output, context) => {
3051
- const parsedOutput = {
3052
- ...output,
3053
- body: await parseErrorBody(output.body, context),
3054
- };
3055
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3056
- switch (errorCode) {
3057
- case "ClientException":
3058
- case "com.amazonaws.eks#ClientException":
3059
- throw await de_ClientExceptionRes(parsedOutput, context);
3060
- case "InvalidParameterException":
3061
- case "com.amazonaws.eks#InvalidParameterException":
3062
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
3063
- case "InvalidRequestException":
3064
- case "com.amazonaws.eks#InvalidRequestException":
3065
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3066
- case "ResourceInUseException":
3067
- case "com.amazonaws.eks#ResourceInUseException":
3068
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
3069
- case "ResourceNotFoundException":
3070
- case "com.amazonaws.eks#ResourceNotFoundException":
3071
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3072
- case "ServerException":
3073
- case "com.amazonaws.eks#ServerException":
3074
- throw await de_ServerExceptionRes(parsedOutput, context);
3075
- default:
3076
- const parsedBody = parsedOutput.body;
3077
- return throwDefaultError({
3078
- output,
3079
- parsedBody,
3080
- errorCode,
3081
- });
3082
- }
3083
- };
3084
- const de_UpdateClusterConfigCommand = async (output, context) => {
3085
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3086
- return de_UpdateClusterConfigCommandError(output, context);
3087
- }
3088
- const contents = (0, smithy_client_1.map)({
3089
- $metadata: deserializeMetadata(output),
3090
- });
3091
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3092
- const doc = (0, smithy_client_1.take)(data, {
3093
- update: (_) => de_Update(_, context),
3094
- });
3095
- Object.assign(contents, doc);
3096
- return contents;
3097
- };
3098
- exports.de_UpdateClusterConfigCommand = de_UpdateClusterConfigCommand;
3099
- const de_UpdateClusterConfigCommandError = async (output, context) => {
3100
- const parsedOutput = {
3101
- ...output,
3102
- body: await parseErrorBody(output.body, context),
3103
- };
3104
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3105
- switch (errorCode) {
3106
- case "ClientException":
3107
- case "com.amazonaws.eks#ClientException":
3108
- throw await de_ClientExceptionRes(parsedOutput, context);
3109
- case "InvalidParameterException":
3110
- case "com.amazonaws.eks#InvalidParameterException":
3111
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
3112
- case "InvalidRequestException":
3113
- case "com.amazonaws.eks#InvalidRequestException":
3114
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3115
- case "ResourceInUseException":
3116
- case "com.amazonaws.eks#ResourceInUseException":
3117
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
3118
- case "ResourceNotFoundException":
3119
- case "com.amazonaws.eks#ResourceNotFoundException":
3120
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3121
- case "ServerException":
3122
- case "com.amazonaws.eks#ServerException":
3123
- throw await de_ServerExceptionRes(parsedOutput, context);
3124
- default:
3125
- const parsedBody = parsedOutput.body;
3126
- return throwDefaultError({
3127
- output,
3128
- parsedBody,
3129
- errorCode,
3130
- });
3131
- }
3132
- };
3133
- const de_UpdateClusterVersionCommand = async (output, context) => {
3134
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3135
- return de_UpdateClusterVersionCommandError(output, context);
3136
- }
3137
- const contents = (0, smithy_client_1.map)({
3138
- $metadata: deserializeMetadata(output),
3139
- });
3140
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3141
- const doc = (0, smithy_client_1.take)(data, {
3142
- update: (_) => de_Update(_, context),
3143
- });
3144
- Object.assign(contents, doc);
3145
- return contents;
3146
- };
3147
- exports.de_UpdateClusterVersionCommand = de_UpdateClusterVersionCommand;
3148
- const de_UpdateClusterVersionCommandError = async (output, context) => {
3149
- const parsedOutput = {
3150
- ...output,
3151
- body: await parseErrorBody(output.body, context),
3152
- };
3153
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3154
- switch (errorCode) {
3155
- case "ClientException":
3156
- case "com.amazonaws.eks#ClientException":
3157
- throw await de_ClientExceptionRes(parsedOutput, context);
3158
- case "InvalidParameterException":
3159
- case "com.amazonaws.eks#InvalidParameterException":
3160
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
3161
- case "InvalidRequestException":
3162
- case "com.amazonaws.eks#InvalidRequestException":
3163
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3164
- case "ResourceInUseException":
3165
- case "com.amazonaws.eks#ResourceInUseException":
3166
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
3167
- case "ResourceNotFoundException":
3168
- case "com.amazonaws.eks#ResourceNotFoundException":
3169
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3170
- case "ServerException":
3171
- case "com.amazonaws.eks#ServerException":
3172
- throw await de_ServerExceptionRes(parsedOutput, context);
3173
- default:
3174
- const parsedBody = parsedOutput.body;
3175
- return throwDefaultError({
3176
- output,
3177
- parsedBody,
3178
- errorCode,
3179
- });
3180
- }
3181
- };
3182
- const de_UpdateEksAnywhereSubscriptionCommand = async (output, context) => {
3183
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3184
- return de_UpdateEksAnywhereSubscriptionCommandError(output, context);
3185
- }
3186
- const contents = (0, smithy_client_1.map)({
3187
- $metadata: deserializeMetadata(output),
3188
- });
3189
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3190
- const doc = (0, smithy_client_1.take)(data, {
3191
- subscription: (_) => de_EksAnywhereSubscription(_, context),
3192
- });
3193
- Object.assign(contents, doc);
3194
- return contents;
3195
- };
3196
- exports.de_UpdateEksAnywhereSubscriptionCommand = de_UpdateEksAnywhereSubscriptionCommand;
3197
- const de_UpdateEksAnywhereSubscriptionCommandError = async (output, context) => {
3198
- const parsedOutput = {
3199
- ...output,
3200
- body: await parseErrorBody(output.body, context),
3201
- };
3202
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3203
- switch (errorCode) {
3204
- case "ClientException":
3205
- case "com.amazonaws.eks#ClientException":
3206
- throw await de_ClientExceptionRes(parsedOutput, context);
3207
- case "InvalidParameterException":
3208
- case "com.amazonaws.eks#InvalidParameterException":
3209
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
3210
- case "InvalidRequestException":
3211
- case "com.amazonaws.eks#InvalidRequestException":
3212
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3213
- case "ResourceNotFoundException":
3214
- case "com.amazonaws.eks#ResourceNotFoundException":
3215
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3216
- case "ServerException":
3217
- case "com.amazonaws.eks#ServerException":
3218
- throw await de_ServerExceptionRes(parsedOutput, context);
3219
- default:
3220
- const parsedBody = parsedOutput.body;
3221
- return throwDefaultError({
3222
- output,
3223
- parsedBody,
3224
- errorCode,
3225
- });
3226
- }
3227
- };
3228
- const de_UpdateNodegroupConfigCommand = async (output, context) => {
3229
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3230
- return de_UpdateNodegroupConfigCommandError(output, context);
3231
- }
3232
- const contents = (0, smithy_client_1.map)({
3233
- $metadata: deserializeMetadata(output),
3234
- });
3235
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3236
- const doc = (0, smithy_client_1.take)(data, {
3237
- update: (_) => de_Update(_, context),
3238
- });
3239
- Object.assign(contents, doc);
3240
- return contents;
3241
- };
3242
- exports.de_UpdateNodegroupConfigCommand = de_UpdateNodegroupConfigCommand;
3243
- const de_UpdateNodegroupConfigCommandError = async (output, context) => {
3244
- const parsedOutput = {
3245
- ...output,
3246
- body: await parseErrorBody(output.body, context),
3247
- };
3248
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3249
- switch (errorCode) {
3250
- case "ClientException":
3251
- case "com.amazonaws.eks#ClientException":
3252
- throw await de_ClientExceptionRes(parsedOutput, context);
3253
- case "InvalidParameterException":
3254
- case "com.amazonaws.eks#InvalidParameterException":
3255
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
3256
- case "InvalidRequestException":
3257
- case "com.amazonaws.eks#InvalidRequestException":
3258
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3259
- case "ResourceInUseException":
3260
- case "com.amazonaws.eks#ResourceInUseException":
3261
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
3262
- case "ResourceNotFoundException":
3263
- case "com.amazonaws.eks#ResourceNotFoundException":
3264
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3265
- case "ServerException":
3266
- case "com.amazonaws.eks#ServerException":
3267
- throw await de_ServerExceptionRes(parsedOutput, context);
3268
- default:
3269
- const parsedBody = parsedOutput.body;
3270
- return throwDefaultError({
3271
- output,
3272
- parsedBody,
3273
- errorCode,
3274
- });
3275
- }
3276
- };
3277
- const de_UpdateNodegroupVersionCommand = async (output, context) => {
3278
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3279
- return de_UpdateNodegroupVersionCommandError(output, context);
3280
- }
3281
- const contents = (0, smithy_client_1.map)({
3282
- $metadata: deserializeMetadata(output),
3283
- });
3284
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3285
- const doc = (0, smithy_client_1.take)(data, {
3286
- update: (_) => de_Update(_, context),
3287
- });
3288
- Object.assign(contents, doc);
3289
- return contents;
3290
- };
3291
- exports.de_UpdateNodegroupVersionCommand = de_UpdateNodegroupVersionCommand;
3292
- const de_UpdateNodegroupVersionCommandError = async (output, context) => {
3293
- const parsedOutput = {
3294
- ...output,
3295
- body: await parseErrorBody(output.body, context),
3296
- };
3297
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3298
- switch (errorCode) {
3299
- case "ClientException":
3300
- case "com.amazonaws.eks#ClientException":
3301
- throw await de_ClientExceptionRes(parsedOutput, context);
3302
- case "InvalidParameterException":
3303
- case "com.amazonaws.eks#InvalidParameterException":
3304
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
3305
- case "InvalidRequestException":
3306
- case "com.amazonaws.eks#InvalidRequestException":
3307
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3308
- case "ResourceInUseException":
3309
- case "com.amazonaws.eks#ResourceInUseException":
3310
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
3311
- case "ResourceNotFoundException":
3312
- case "com.amazonaws.eks#ResourceNotFoundException":
3313
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3314
- case "ServerException":
3315
- case "com.amazonaws.eks#ServerException":
3316
- throw await de_ServerExceptionRes(parsedOutput, context);
3317
- default:
3318
- const parsedBody = parsedOutput.body;
3319
- return throwDefaultError({
3320
- output,
3321
- parsedBody,
3322
- errorCode,
3323
- });
3324
- }
3325
- };
3326
- const de_UpdatePodIdentityAssociationCommand = async (output, context) => {
3327
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3328
- return de_UpdatePodIdentityAssociationCommandError(output, context);
3329
- }
3330
- const contents = (0, smithy_client_1.map)({
3331
- $metadata: deserializeMetadata(output),
3332
- });
3333
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3334
- const doc = (0, smithy_client_1.take)(data, {
3335
- association: (_) => de_PodIdentityAssociation(_, context),
3336
- });
3337
- Object.assign(contents, doc);
3338
- return contents;
3339
- };
3340
- exports.de_UpdatePodIdentityAssociationCommand = de_UpdatePodIdentityAssociationCommand;
3341
- const de_UpdatePodIdentityAssociationCommandError = async (output, context) => {
3342
- const parsedOutput = {
3343
- ...output,
3344
- body: await parseErrorBody(output.body, context),
3345
- };
3346
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3347
- switch (errorCode) {
3348
- case "InvalidParameterException":
3349
- case "com.amazonaws.eks#InvalidParameterException":
3350
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
3351
- case "InvalidRequestException":
3352
- case "com.amazonaws.eks#InvalidRequestException":
3353
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3354
- case "ResourceNotFoundException":
3355
- case "com.amazonaws.eks#ResourceNotFoundException":
3356
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3357
- case "ServerException":
3358
- case "com.amazonaws.eks#ServerException":
3359
- throw await de_ServerExceptionRes(parsedOutput, context);
3360
- default:
3361
- const parsedBody = parsedOutput.body;
3362
- return throwDefaultError({
3363
- output,
3364
- parsedBody,
3365
- errorCode,
3366
- });
3367
- }
3368
- };
3369
- const throwDefaultError = (0, smithy_client_1.withBaseException)(EKSServiceException_1.EKSServiceException);
3370
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
3371
- const contents = (0, smithy_client_1.map)({});
3372
- const data = parsedOutput.body;
3373
- const doc = (0, smithy_client_1.take)(data, {
3374
- message: smithy_client_1.expectString,
3375
- });
3376
- Object.assign(contents, doc);
3377
- const exception = new models_0_1.AccessDeniedException({
3378
- $metadata: deserializeMetadata(parsedOutput),
3379
- ...contents,
3380
- });
3381
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3382
- };
3383
- const de_BadRequestExceptionRes = async (parsedOutput, context) => {
3384
- const contents = (0, smithy_client_1.map)({});
3385
- const data = parsedOutput.body;
3386
- const doc = (0, smithy_client_1.take)(data, {
3387
- message: smithy_client_1.expectString,
3388
- });
3389
- Object.assign(contents, doc);
3390
- const exception = new models_0_1.BadRequestException({
3391
- $metadata: deserializeMetadata(parsedOutput),
3392
- ...contents,
3393
- });
3394
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3395
- };
3396
- const de_ClientExceptionRes = async (parsedOutput, context) => {
3397
- const contents = (0, smithy_client_1.map)({});
3398
- const data = parsedOutput.body;
3399
- const doc = (0, smithy_client_1.take)(data, {
3400
- addonName: smithy_client_1.expectString,
3401
- clusterName: smithy_client_1.expectString,
3402
- message: smithy_client_1.expectString,
3403
- nodegroupName: smithy_client_1.expectString,
3404
- subscriptionId: smithy_client_1.expectString,
3405
- });
3406
- Object.assign(contents, doc);
3407
- const exception = new models_0_1.ClientException({
3408
- $metadata: deserializeMetadata(parsedOutput),
3409
- ...contents,
3410
- });
3411
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3412
- };
3413
- const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
3414
- const contents = (0, smithy_client_1.map)({});
3415
- const data = parsedOutput.body;
3416
- const doc = (0, smithy_client_1.take)(data, {
3417
- addonName: smithy_client_1.expectString,
3418
- clusterName: smithy_client_1.expectString,
3419
- fargateProfileName: smithy_client_1.expectString,
3420
- message: smithy_client_1.expectString,
3421
- nodegroupName: smithy_client_1.expectString,
3422
- subscriptionId: smithy_client_1.expectString,
3423
- });
3424
- Object.assign(contents, doc);
3425
- const exception = new models_0_1.InvalidParameterException({
3426
- $metadata: deserializeMetadata(parsedOutput),
3427
- ...contents,
3428
- });
3429
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3430
- };
3431
- const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
3432
- const contents = (0, smithy_client_1.map)({});
3433
- const data = parsedOutput.body;
3434
- const doc = (0, smithy_client_1.take)(data, {
3435
- addonName: smithy_client_1.expectString,
3436
- clusterName: smithy_client_1.expectString,
3437
- message: smithy_client_1.expectString,
3438
- nodegroupName: smithy_client_1.expectString,
3439
- subscriptionId: smithy_client_1.expectString,
3440
- });
3441
- Object.assign(contents, doc);
3442
- const exception = new models_0_1.InvalidRequestException({
3443
- $metadata: deserializeMetadata(parsedOutput),
3444
- ...contents,
3445
- });
3446
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3447
- };
3448
- const de_NotFoundExceptionRes = async (parsedOutput, context) => {
3449
- const contents = (0, smithy_client_1.map)({});
3450
- const data = parsedOutput.body;
3451
- const doc = (0, smithy_client_1.take)(data, {
3452
- message: smithy_client_1.expectString,
3453
- });
3454
- Object.assign(contents, doc);
3455
- const exception = new models_0_1.NotFoundException({
3456
- $metadata: deserializeMetadata(parsedOutput),
3457
- ...contents,
3458
- });
3459
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3460
- };
3461
- const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
3462
- const contents = (0, smithy_client_1.map)({});
3463
- const data = parsedOutput.body;
3464
- const doc = (0, smithy_client_1.take)(data, {
3465
- addonName: smithy_client_1.expectString,
3466
- clusterName: smithy_client_1.expectString,
3467
- message: smithy_client_1.expectString,
3468
- nodegroupName: smithy_client_1.expectString,
3469
- });
3470
- Object.assign(contents, doc);
3471
- const exception = new models_0_1.ResourceInUseException({
3472
- $metadata: deserializeMetadata(parsedOutput),
3473
- ...contents,
3474
- });
3475
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3476
- };
3477
- const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
3478
- const contents = (0, smithy_client_1.map)({});
3479
- const data = parsedOutput.body;
3480
- const doc = (0, smithy_client_1.take)(data, {
3481
- clusterName: smithy_client_1.expectString,
3482
- message: smithy_client_1.expectString,
3483
- nodegroupName: smithy_client_1.expectString,
3484
- subscriptionId: smithy_client_1.expectString,
3485
- });
3486
- Object.assign(contents, doc);
3487
- const exception = new models_0_1.ResourceLimitExceededException({
3488
- $metadata: deserializeMetadata(parsedOutput),
3489
- ...contents,
3490
- });
3491
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3492
- };
3493
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
3494
- const contents = (0, smithy_client_1.map)({});
3495
- const data = parsedOutput.body;
3496
- const doc = (0, smithy_client_1.take)(data, {
3497
- addonName: smithy_client_1.expectString,
3498
- clusterName: smithy_client_1.expectString,
3499
- fargateProfileName: smithy_client_1.expectString,
3500
- message: smithy_client_1.expectString,
3501
- nodegroupName: smithy_client_1.expectString,
3502
- subscriptionId: smithy_client_1.expectString,
3503
- });
3504
- Object.assign(contents, doc);
3505
- const exception = new models_0_1.ResourceNotFoundException({
3506
- $metadata: deserializeMetadata(parsedOutput),
3507
- ...contents,
3508
- });
3509
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3510
- };
3511
- const de_ResourcePropagationDelayExceptionRes = async (parsedOutput, context) => {
3512
- const contents = (0, smithy_client_1.map)({});
3513
- const data = parsedOutput.body;
3514
- const doc = (0, smithy_client_1.take)(data, {
3515
- message: smithy_client_1.expectString,
3516
- });
3517
- Object.assign(contents, doc);
3518
- const exception = new models_0_1.ResourcePropagationDelayException({
3519
- $metadata: deserializeMetadata(parsedOutput),
3520
- ...contents,
3521
- });
3522
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3523
- };
3524
- const de_ServerExceptionRes = async (parsedOutput, context) => {
3525
- const contents = (0, smithy_client_1.map)({});
3526
- const data = parsedOutput.body;
3527
- const doc = (0, smithy_client_1.take)(data, {
3528
- addonName: smithy_client_1.expectString,
3529
- clusterName: smithy_client_1.expectString,
3530
- message: smithy_client_1.expectString,
3531
- nodegroupName: smithy_client_1.expectString,
3532
- subscriptionId: smithy_client_1.expectString,
3533
- });
3534
- Object.assign(contents, doc);
3535
- const exception = new models_0_1.ServerException({
3536
- $metadata: deserializeMetadata(parsedOutput),
3537
- ...contents,
3538
- });
3539
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3540
- };
3541
- const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
3542
- const contents = (0, smithy_client_1.map)({});
3543
- const data = parsedOutput.body;
3544
- const doc = (0, smithy_client_1.take)(data, {
3545
- message: smithy_client_1.expectString,
3546
- });
3547
- Object.assign(contents, doc);
3548
- const exception = new models_0_1.ServiceUnavailableException({
3549
- $metadata: deserializeMetadata(parsedOutput),
3550
- ...contents,
3551
- });
3552
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3553
- };
3554
- const de_UnsupportedAvailabilityZoneExceptionRes = async (parsedOutput, context) => {
3555
- const contents = (0, smithy_client_1.map)({});
3556
- const data = parsedOutput.body;
3557
- const doc = (0, smithy_client_1.take)(data, {
3558
- clusterName: smithy_client_1.expectString,
3559
- message: smithy_client_1.expectString,
3560
- nodegroupName: smithy_client_1.expectString,
3561
- validZones: smithy_client_1._json,
3562
- });
3563
- Object.assign(contents, doc);
3564
- const exception = new models_0_1.UnsupportedAvailabilityZoneException({
3565
- $metadata: deserializeMetadata(parsedOutput),
3566
- ...contents,
3567
- });
3568
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3569
- };
3570
- const de_AccessEntry = (output, context) => {
3571
- return (0, smithy_client_1.take)(output, {
3572
- accessEntryArn: smithy_client_1.expectString,
3573
- clusterName: smithy_client_1.expectString,
3574
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3575
- kubernetesGroups: smithy_client_1._json,
3576
- modifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3577
- principalArn: smithy_client_1.expectString,
3578
- tags: smithy_client_1._json,
3579
- type: smithy_client_1.expectString,
3580
- username: smithy_client_1.expectString,
3581
- });
3582
- };
3583
- const de_Addon = (output, context) => {
3584
- return (0, smithy_client_1.take)(output, {
3585
- addonArn: smithy_client_1.expectString,
3586
- addonName: smithy_client_1.expectString,
3587
- addonVersion: smithy_client_1.expectString,
3588
- clusterName: smithy_client_1.expectString,
3589
- configurationValues: smithy_client_1.expectString,
3590
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3591
- health: smithy_client_1._json,
3592
- marketplaceInformation: smithy_client_1._json,
3593
- modifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3594
- owner: smithy_client_1.expectString,
3595
- publisher: smithy_client_1.expectString,
3596
- serviceAccountRoleArn: smithy_client_1.expectString,
3597
- status: smithy_client_1.expectString,
3598
- tags: smithy_client_1._json,
3599
- });
3600
- };
3601
- const de_AssociatedAccessPoliciesList = (output, context) => {
3602
- const retVal = (output || [])
3603
- .filter((e) => e != null)
3604
- .map((entry) => {
3605
- return de_AssociatedAccessPolicy(entry, context);
3606
- });
3607
- return retVal;
3608
- };
3609
- const de_AssociatedAccessPolicy = (output, context) => {
3610
- return (0, smithy_client_1.take)(output, {
3611
- accessScope: smithy_client_1._json,
3612
- associatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3613
- modifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3614
- policyArn: smithy_client_1.expectString,
3615
- });
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
- };
3632
- const de_Cluster = (output, context) => {
3633
- return (0, smithy_client_1.take)(output, {
3634
- accessConfig: smithy_client_1._json,
3635
- arn: smithy_client_1.expectString,
3636
- certificateAuthority: smithy_client_1._json,
3637
- clientRequestToken: smithy_client_1.expectString,
3638
- connectorConfig: (_) => de_ConnectorConfigResponse(_, context),
3639
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3640
- encryptionConfig: smithy_client_1._json,
3641
- endpoint: smithy_client_1.expectString,
3642
- health: smithy_client_1._json,
3643
- id: smithy_client_1.expectString,
3644
- identity: smithy_client_1._json,
3645
- kubernetesNetworkConfig: smithy_client_1._json,
3646
- logging: smithy_client_1._json,
3647
- name: smithy_client_1.expectString,
3648
- outpostConfig: smithy_client_1._json,
3649
- platformVersion: smithy_client_1.expectString,
3650
- resourcesVpcConfig: smithy_client_1._json,
3651
- roleArn: smithy_client_1.expectString,
3652
- status: smithy_client_1.expectString,
3653
- tags: smithy_client_1._json,
3654
- version: smithy_client_1.expectString,
3655
- });
3656
- };
3657
- const de_ConnectorConfigResponse = (output, context) => {
3658
- return (0, smithy_client_1.take)(output, {
3659
- activationCode: smithy_client_1.expectString,
3660
- activationExpiry: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3661
- activationId: smithy_client_1.expectString,
3662
- provider: smithy_client_1.expectString,
3663
- roleArn: smithy_client_1.expectString,
3664
- });
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
- };
3683
- const de_EksAnywhereSubscription = (output, context) => {
3684
- return (0, smithy_client_1.take)(output, {
3685
- arn: smithy_client_1.expectString,
3686
- autoRenew: smithy_client_1.expectBoolean,
3687
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3688
- effectiveDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3689
- expirationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3690
- id: smithy_client_1.expectString,
3691
- licenseArns: smithy_client_1._json,
3692
- licenseQuantity: smithy_client_1.expectInt32,
3693
- licenseType: smithy_client_1.expectString,
3694
- status: smithy_client_1.expectString,
3695
- tags: smithy_client_1._json,
3696
- term: smithy_client_1._json,
3697
- });
3698
- };
3699
- const de_EksAnywhereSubscriptionList = (output, context) => {
3700
- const retVal = (output || [])
3701
- .filter((e) => e != null)
3702
- .map((entry) => {
3703
- return de_EksAnywhereSubscription(entry, context);
3704
- });
3705
- return retVal;
3706
- };
3707
- const de_FargateProfile = (output, context) => {
3708
- return (0, smithy_client_1.take)(output, {
3709
- clusterName: smithy_client_1.expectString,
3710
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3711
- fargateProfileArn: smithy_client_1.expectString,
3712
- fargateProfileName: smithy_client_1.expectString,
3713
- podExecutionRoleArn: smithy_client_1.expectString,
3714
- selectors: smithy_client_1._json,
3715
- status: smithy_client_1.expectString,
3716
- subnets: smithy_client_1._json,
3717
- tags: smithy_client_1._json,
3718
- });
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
- };
3761
- const de_Nodegroup = (output, context) => {
3762
- return (0, smithy_client_1.take)(output, {
3763
- amiType: smithy_client_1.expectString,
3764
- capacityType: smithy_client_1.expectString,
3765
- clusterName: smithy_client_1.expectString,
3766
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3767
- diskSize: smithy_client_1.expectInt32,
3768
- health: smithy_client_1._json,
3769
- instanceTypes: smithy_client_1._json,
3770
- labels: smithy_client_1._json,
3771
- launchTemplate: smithy_client_1._json,
3772
- modifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3773
- nodeRole: smithy_client_1.expectString,
3774
- nodegroupArn: smithy_client_1.expectString,
3775
- nodegroupName: smithy_client_1.expectString,
3776
- releaseVersion: smithy_client_1.expectString,
3777
- remoteAccess: smithy_client_1._json,
3778
- resources: smithy_client_1._json,
3779
- scalingConfig: smithy_client_1._json,
3780
- status: smithy_client_1.expectString,
3781
- subnets: smithy_client_1._json,
3782
- tags: smithy_client_1._json,
3783
- taints: smithy_client_1._json,
3784
- updateConfig: smithy_client_1._json,
3785
- version: smithy_client_1.expectString,
3786
- });
3787
- };
3788
- const de_PodIdentityAssociation = (output, context) => {
3789
- return (0, smithy_client_1.take)(output, {
3790
- associationArn: smithy_client_1.expectString,
3791
- associationId: smithy_client_1.expectString,
3792
- clusterName: smithy_client_1.expectString,
3793
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3794
- modifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3795
- namespace: smithy_client_1.expectString,
3796
- roleArn: smithy_client_1.expectString,
3797
- serviceAccount: smithy_client_1.expectString,
3798
- tags: smithy_client_1._json,
3799
- });
3800
- };
3801
- const de_Update = (output, context) => {
3802
- return (0, smithy_client_1.take)(output, {
3803
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3804
- errors: smithy_client_1._json,
3805
- id: smithy_client_1.expectString,
3806
- params: smithy_client_1._json,
3807
- status: smithy_client_1.expectString,
3808
- type: smithy_client_1.expectString,
3809
- });
3810
- };
3811
- const deserializeMetadata = (output) => ({
3812
- httpStatusCode: output.statusCode,
3813
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
3814
- extendedRequestId: output.headers["x-amz-id-2"],
3815
- cfId: output.headers["x-amz-cf-id"],
3816
- });
3817
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
3818
- const isSerializableHeaderValue = (value) => value !== undefined &&
3819
- value !== null &&
3820
- value !== "" &&
3821
- (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
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";
3839
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3840
- if (encoded.length) {
3841
- return JSON.parse(encoded);
3842
- }
3843
- return {};
3844
- });
3845
- const parseErrorBody = async (errorBody, context) => {
3846
- const value = await parseBody(errorBody, context);
3847
- value.message = value.message ?? value.Message;
3848
- return value;
3849
- };
3850
- const loadRestJsonErrorCode = (output, data) => {
3851
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
3852
- const sanitizeErrorCode = (rawValue) => {
3853
- let cleanValue = rawValue;
3854
- if (typeof cleanValue === "number") {
3855
- cleanValue = cleanValue.toString();
3856
- }
3857
- if (cleanValue.indexOf(",") >= 0) {
3858
- cleanValue = cleanValue.split(",")[0];
3859
- }
3860
- if (cleanValue.indexOf(":") >= 0) {
3861
- cleanValue = cleanValue.split(":")[0];
3862
- }
3863
- if (cleanValue.indexOf("#") >= 0) {
3864
- cleanValue = cleanValue.split("#")[1];
3865
- }
3866
- return cleanValue;
3867
- };
3868
- const headerKey = findKey(output.headers, "x-amzn-errortype");
3869
- if (headerKey !== undefined) {
3870
- return sanitizeErrorCode(output.headers[headerKey]);
3871
- }
3872
- if (data.code !== undefined) {
3873
- return sanitizeErrorCode(data.code);
3874
- }
3875
- if (data["__type"] !== undefined) {
3876
- return sanitizeErrorCode(data["__type"]);
3877
- }
3878
- };
1
+ module.exports = require("../index.js");