@aws-sdk/client-eks 3.451.0 → 3.458.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/README.md +80 -40
  2. package/dist-cjs/EKS.js +10 -0
  3. package/dist-cjs/commands/CreatePodIdentityAssociationCommand.js +51 -0
  4. package/dist-cjs/commands/DeletePodIdentityAssociationCommand.js +51 -0
  5. package/dist-cjs/commands/DescribePodIdentityAssociationCommand.js +51 -0
  6. package/dist-cjs/commands/ListPodIdentityAssociationsCommand.js +51 -0
  7. package/dist-cjs/commands/UpdatePodIdentityAssociationCommand.js +51 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/pagination/ListEksAnywhereSubscriptionsPaginator.js +29 -0
  10. package/dist-cjs/pagination/ListPodIdentityAssociationsPaginator.js +29 -0
  11. package/dist-cjs/pagination/index.js +2 -0
  12. package/dist-cjs/protocols/Aws_restJson1.js +352 -2
  13. package/dist-es/EKS.js +10 -0
  14. package/dist-es/commands/CreatePodIdentityAssociationCommand.js +47 -0
  15. package/dist-es/commands/DeletePodIdentityAssociationCommand.js +47 -0
  16. package/dist-es/commands/DescribePodIdentityAssociationCommand.js +47 -0
  17. package/dist-es/commands/ListPodIdentityAssociationsCommand.js +47 -0
  18. package/dist-es/commands/UpdatePodIdentityAssociationCommand.js +47 -0
  19. package/dist-es/commands/index.js +5 -0
  20. package/dist-es/pagination/ListEksAnywhereSubscriptionsPaginator.js +25 -0
  21. package/dist-es/pagination/ListPodIdentityAssociationsPaginator.js +25 -0
  22. package/dist-es/pagination/index.js +2 -0
  23. package/dist-es/protocols/Aws_restJson1.js +340 -0
  24. package/dist-types/EKS.d.ts +35 -0
  25. package/dist-types/EKSClient.d.ts +7 -2
  26. package/dist-types/commands/CreateClusterCommand.d.ts +19 -0
  27. package/dist-types/commands/CreatePodIdentityAssociationCommand.d.ts +125 -0
  28. package/dist-types/commands/DeleteEksAnywhereSubscriptionCommand.d.ts +2 -2
  29. package/dist-types/commands/DeletePodIdentityAssociationCommand.d.ts +104 -0
  30. package/dist-types/commands/DescribePodIdentityAssociationCommand.d.ts +107 -0
  31. package/dist-types/commands/ListPodIdentityAssociationsCommand.d.ts +104 -0
  32. package/dist-types/commands/UpdateClusterConfigCommand.d.ts +8 -4
  33. package/dist-types/commands/UpdatePodIdentityAssociationCommand.d.ts +108 -0
  34. package/dist-types/commands/index.d.ts +5 -0
  35. package/dist-types/models/models_0.d.ts +450 -22
  36. package/dist-types/pagination/ListEksAnywhereSubscriptionsPaginator.d.ts +7 -0
  37. package/dist-types/pagination/ListPodIdentityAssociationsPaginator.d.ts +7 -0
  38. package/dist-types/pagination/index.d.ts +2 -0
  39. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  40. package/dist-types/ts3.4/EKS.d.ts +85 -0
  41. package/dist-types/ts3.4/EKSClient.d.ts +32 -2
  42. package/dist-types/ts3.4/commands/CreatePodIdentityAssociationCommand.d.ts +42 -0
  43. package/dist-types/ts3.4/commands/DeletePodIdentityAssociationCommand.d.ts +42 -0
  44. package/dist-types/ts3.4/commands/DescribePodIdentityAssociationCommand.d.ts +42 -0
  45. package/dist-types/ts3.4/commands/ListPodIdentityAssociationsCommand.d.ts +42 -0
  46. package/dist-types/ts3.4/commands/UpdatePodIdentityAssociationCommand.d.ts +42 -0
  47. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +63 -0
  49. package/dist-types/ts3.4/pagination/ListEksAnywhereSubscriptionsPaginator.d.ts +11 -0
  50. package/dist-types/ts3.4/pagination/ListPodIdentityAssociationsPaginator.d.ts +11 -0
  51. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  52. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  53. package/package.json +3 -3
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_ListPodIdentityAssociationsCommand, se_ListPodIdentityAssociationsCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListPodIdentityAssociationsCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListPodIdentityAssociationsCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "EKSClient";
26
+ const commandName = "ListPodIdentityAssociationsCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AWSWesleyFrontend",
35
+ operation: "ListPodIdentityAssociations",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_ListPodIdentityAssociationsCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_ListPodIdentityAssociationsCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_UpdatePodIdentityAssociationCommand, se_UpdatePodIdentityAssociationCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UpdatePodIdentityAssociationCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdatePodIdentityAssociationCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "EKSClient";
26
+ const commandName = "UpdatePodIdentityAssociationCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AWSWesleyFrontend",
35
+ operation: "UpdatePodIdentityAssociation",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_UpdatePodIdentityAssociationCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_UpdatePodIdentityAssociationCommand(output, context);
46
+ }
47
+ }
@@ -5,11 +5,13 @@ export * from "./CreateClusterCommand";
5
5
  export * from "./CreateEksAnywhereSubscriptionCommand";
6
6
  export * from "./CreateFargateProfileCommand";
7
7
  export * from "./CreateNodegroupCommand";
8
+ export * from "./CreatePodIdentityAssociationCommand";
8
9
  export * from "./DeleteAddonCommand";
9
10
  export * from "./DeleteClusterCommand";
10
11
  export * from "./DeleteEksAnywhereSubscriptionCommand";
11
12
  export * from "./DeleteFargateProfileCommand";
12
13
  export * from "./DeleteNodegroupCommand";
14
+ export * from "./DeletePodIdentityAssociationCommand";
13
15
  export * from "./DeregisterClusterCommand";
14
16
  export * from "./DescribeAddonCommand";
15
17
  export * from "./DescribeAddonConfigurationCommand";
@@ -19,6 +21,7 @@ export * from "./DescribeEksAnywhereSubscriptionCommand";
19
21
  export * from "./DescribeFargateProfileCommand";
20
22
  export * from "./DescribeIdentityProviderConfigCommand";
21
23
  export * from "./DescribeNodegroupCommand";
24
+ export * from "./DescribePodIdentityAssociationCommand";
22
25
  export * from "./DescribeUpdateCommand";
23
26
  export * from "./DisassociateIdentityProviderConfigCommand";
24
27
  export * from "./ListAddonsCommand";
@@ -27,6 +30,7 @@ export * from "./ListEksAnywhereSubscriptionsCommand";
27
30
  export * from "./ListFargateProfilesCommand";
28
31
  export * from "./ListIdentityProviderConfigsCommand";
29
32
  export * from "./ListNodegroupsCommand";
33
+ export * from "./ListPodIdentityAssociationsCommand";
30
34
  export * from "./ListTagsForResourceCommand";
31
35
  export * from "./ListUpdatesCommand";
32
36
  export * from "./RegisterClusterCommand";
@@ -38,3 +42,4 @@ export * from "./UpdateClusterVersionCommand";
38
42
  export * from "./UpdateEksAnywhereSubscriptionCommand";
39
43
  export * from "./UpdateNodegroupConfigCommand";
40
44
  export * from "./UpdateNodegroupVersionCommand";
45
+ export * from "./UpdatePodIdentityAssociationCommand";
@@ -0,0 +1,25 @@
1
+ import { ListEksAnywhereSubscriptionsCommand, } from "../commands/ListEksAnywhereSubscriptionsCommand";
2
+ import { EKSClient } from "../EKSClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListEksAnywhereSubscriptionsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListEksAnywhereSubscriptions(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.nextToken = token;
12
+ input["maxResults"] = config.pageSize;
13
+ if (config.client instanceof EKSClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected EKS | EKSClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.nextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,25 @@
1
+ import { ListPodIdentityAssociationsCommand, } from "../commands/ListPodIdentityAssociationsCommand";
2
+ import { EKSClient } from "../EKSClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListPodIdentityAssociationsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListPodIdentityAssociations(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.nextToken = token;
12
+ input["maxResults"] = config.pageSize;
13
+ if (config.client instanceof EKSClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected EKS | EKSClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.nextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -2,7 +2,9 @@ export * from "./DescribeAddonVersionsPaginator";
2
2
  export * from "./Interfaces";
3
3
  export * from "./ListAddonsPaginator";
4
4
  export * from "./ListClustersPaginator";
5
+ export * from "./ListEksAnywhereSubscriptionsPaginator";
5
6
  export * from "./ListFargateProfilesPaginator";
6
7
  export * from "./ListIdentityProviderConfigsPaginator";
7
8
  export * from "./ListNodegroupsPaginator";
9
+ export * from "./ListPodIdentityAssociationsPaginator";
8
10
  export * from "./ListUpdatesPaginator";
@@ -195,6 +195,32 @@ export const se_CreateNodegroupCommand = async (input, context) => {
195
195
  body,
196
196
  });
197
197
  };
198
+ export const se_CreatePodIdentityAssociationCommand = async (input, context) => {
199
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
200
+ const headers = {
201
+ "content-type": "application/json",
202
+ };
203
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
204
+ "/clusters/{clusterName}/pod-identity-associations";
205
+ resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
206
+ let body;
207
+ body = JSON.stringify(take(input, {
208
+ clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
209
+ namespace: [],
210
+ roleArn: [],
211
+ serviceAccount: [],
212
+ tags: (_) => _json(_),
213
+ }));
214
+ return new __HttpRequest({
215
+ protocol,
216
+ hostname,
217
+ port,
218
+ method: "POST",
219
+ headers,
220
+ path: resolvedPath,
221
+ body,
222
+ });
223
+ };
198
224
  export const se_DeleteAddonCommand = async (input, context) => {
199
225
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
200
226
  const headers = {};
@@ -285,6 +311,24 @@ export const se_DeleteNodegroupCommand = async (input, context) => {
285
311
  body,
286
312
  });
287
313
  };
314
+ export const se_DeletePodIdentityAssociationCommand = async (input, context) => {
315
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
316
+ const headers = {};
317
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
318
+ "/clusters/{clusterName}/pod-identity-associations/{associationId}";
319
+ resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
320
+ resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
321
+ let body;
322
+ return new __HttpRequest({
323
+ protocol,
324
+ hostname,
325
+ port,
326
+ method: "DELETE",
327
+ headers,
328
+ path: resolvedPath,
329
+ body,
330
+ });
331
+ };
288
332
  export const se_DeregisterClusterCommand = async (input, context) => {
289
333
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
290
334
  const headers = {};
@@ -454,6 +498,24 @@ export const se_DescribeNodegroupCommand = async (input, context) => {
454
498
  body,
455
499
  });
456
500
  };
501
+ export const se_DescribePodIdentityAssociationCommand = async (input, context) => {
502
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
503
+ const headers = {};
504
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
505
+ "/clusters/{clusterName}/pod-identity-associations/{associationId}";
506
+ resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
507
+ resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
508
+ let body;
509
+ return new __HttpRequest({
510
+ protocol,
511
+ hostname,
512
+ port,
513
+ method: "GET",
514
+ headers,
515
+ path: resolvedPath,
516
+ body,
517
+ });
518
+ };
457
519
  export const se_DescribeUpdateCommand = async (input, context) => {
458
520
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
459
521
  const headers = {};
@@ -629,6 +691,30 @@ export const se_ListNodegroupsCommand = async (input, context) => {
629
691
  body,
630
692
  });
631
693
  };
694
+ export const se_ListPodIdentityAssociationsCommand = async (input, context) => {
695
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
696
+ const headers = {};
697
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
698
+ "/clusters/{clusterName}/pod-identity-associations";
699
+ resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
700
+ const query = map({
701
+ namespace: [, input.namespace],
702
+ serviceAccount: [, input.serviceAccount],
703
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
704
+ nextToken: [, input.nextToken],
705
+ });
706
+ let body;
707
+ return new __HttpRequest({
708
+ protocol,
709
+ hostname,
710
+ port,
711
+ method: "GET",
712
+ headers,
713
+ path: resolvedPath,
714
+ query,
715
+ body,
716
+ });
717
+ };
632
718
  export const se_ListTagsForResourceCommand = async (input, context) => {
633
719
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
634
720
  const headers = {};
@@ -883,6 +969,30 @@ export const se_UpdateNodegroupVersionCommand = async (input, context) => {
883
969
  body,
884
970
  });
885
971
  };
972
+ export const se_UpdatePodIdentityAssociationCommand = async (input, context) => {
973
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
974
+ const headers = {
975
+ "content-type": "application/json",
976
+ };
977
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
978
+ "/clusters/{clusterName}/pod-identity-associations/{associationId}";
979
+ resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
980
+ resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
981
+ let body;
982
+ body = JSON.stringify(take(input, {
983
+ clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
984
+ roleArn: [],
985
+ }));
986
+ return new __HttpRequest({
987
+ protocol,
988
+ hostname,
989
+ port,
990
+ method: "POST",
991
+ headers,
992
+ path: resolvedPath,
993
+ body,
994
+ });
995
+ };
886
996
  export const de_AssociateEncryptionConfigCommand = async (output, context) => {
887
997
  if (output.statusCode !== 200 && output.statusCode >= 300) {
888
998
  return de_AssociateEncryptionConfigCommandError(output, context);
@@ -1223,6 +1333,54 @@ const de_CreateNodegroupCommandError = async (output, context) => {
1223
1333
  });
1224
1334
  }
1225
1335
  };
1336
+ export const de_CreatePodIdentityAssociationCommand = async (output, context) => {
1337
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1338
+ return de_CreatePodIdentityAssociationCommandError(output, context);
1339
+ }
1340
+ const contents = map({
1341
+ $metadata: deserializeMetadata(output),
1342
+ });
1343
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1344
+ const doc = take(data, {
1345
+ association: (_) => de_PodIdentityAssociation(_, context),
1346
+ });
1347
+ Object.assign(contents, doc);
1348
+ return contents;
1349
+ };
1350
+ const de_CreatePodIdentityAssociationCommandError = async (output, context) => {
1351
+ const parsedOutput = {
1352
+ ...output,
1353
+ body: await parseErrorBody(output.body, context),
1354
+ };
1355
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1356
+ switch (errorCode) {
1357
+ case "InvalidParameterException":
1358
+ case "com.amazonaws.eks#InvalidParameterException":
1359
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1360
+ case "InvalidRequestException":
1361
+ case "com.amazonaws.eks#InvalidRequestException":
1362
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1363
+ case "ResourceInUseException":
1364
+ case "com.amazonaws.eks#ResourceInUseException":
1365
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1366
+ case "ResourceLimitExceededException":
1367
+ case "com.amazonaws.eks#ResourceLimitExceededException":
1368
+ throw await de_ResourceLimitExceededExceptionRes(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
+ };
1226
1384
  export const de_DeleteAddonCommand = async (output, context) => {
1227
1385
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1228
1386
  return de_DeleteAddonCommandError(output, context);
@@ -1445,6 +1603,48 @@ const de_DeleteNodegroupCommandError = async (output, context) => {
1445
1603
  });
1446
1604
  }
1447
1605
  };
1606
+ export const de_DeletePodIdentityAssociationCommand = async (output, context) => {
1607
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1608
+ return de_DeletePodIdentityAssociationCommandError(output, context);
1609
+ }
1610
+ const contents = map({
1611
+ $metadata: deserializeMetadata(output),
1612
+ });
1613
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1614
+ const doc = take(data, {
1615
+ association: (_) => de_PodIdentityAssociation(_, context),
1616
+ });
1617
+ Object.assign(contents, doc);
1618
+ return contents;
1619
+ };
1620
+ const de_DeletePodIdentityAssociationCommandError = async (output, context) => {
1621
+ const parsedOutput = {
1622
+ ...output,
1623
+ body: await parseErrorBody(output.body, context),
1624
+ };
1625
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1626
+ switch (errorCode) {
1627
+ case "InvalidParameterException":
1628
+ case "com.amazonaws.eks#InvalidParameterException":
1629
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1630
+ case "InvalidRequestException":
1631
+ case "com.amazonaws.eks#InvalidRequestException":
1632
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1633
+ case "ResourceNotFoundException":
1634
+ case "com.amazonaws.eks#ResourceNotFoundException":
1635
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1636
+ case "ServerException":
1637
+ case "com.amazonaws.eks#ServerException":
1638
+ throw await de_ServerExceptionRes(parsedOutput, context);
1639
+ default:
1640
+ const parsedBody = parsedOutput.body;
1641
+ return throwDefaultError({
1642
+ output,
1643
+ parsedBody,
1644
+ errorCode,
1645
+ });
1646
+ }
1647
+ };
1448
1648
  export const de_DeregisterClusterCommand = async (output, context) => {
1449
1649
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1450
1650
  return de_DeregisterClusterCommandError(output, context);
@@ -1835,6 +2035,48 @@ const de_DescribeNodegroupCommandError = async (output, context) => {
1835
2035
  });
1836
2036
  }
1837
2037
  };
2038
+ export const de_DescribePodIdentityAssociationCommand = async (output, context) => {
2039
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2040
+ return de_DescribePodIdentityAssociationCommandError(output, context);
2041
+ }
2042
+ const contents = map({
2043
+ $metadata: deserializeMetadata(output),
2044
+ });
2045
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2046
+ const doc = take(data, {
2047
+ association: (_) => de_PodIdentityAssociation(_, context),
2048
+ });
2049
+ Object.assign(contents, doc);
2050
+ return contents;
2051
+ };
2052
+ const de_DescribePodIdentityAssociationCommandError = async (output, context) => {
2053
+ const parsedOutput = {
2054
+ ...output,
2055
+ body: await parseErrorBody(output.body, context),
2056
+ };
2057
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2058
+ switch (errorCode) {
2059
+ case "InvalidParameterException":
2060
+ case "com.amazonaws.eks#InvalidParameterException":
2061
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2062
+ case "InvalidRequestException":
2063
+ case "com.amazonaws.eks#InvalidRequestException":
2064
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2065
+ case "ResourceNotFoundException":
2066
+ case "com.amazonaws.eks#ResourceNotFoundException":
2067
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2068
+ case "ServerException":
2069
+ case "com.amazonaws.eks#ServerException":
2070
+ throw await de_ServerExceptionRes(parsedOutput, context);
2071
+ default:
2072
+ const parsedBody = parsedOutput.body;
2073
+ return throwDefaultError({
2074
+ output,
2075
+ parsedBody,
2076
+ errorCode,
2077
+ });
2078
+ }
2079
+ };
1838
2080
  export const de_DescribeUpdateCommand = async (output, context) => {
1839
2081
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1840
2082
  return de_DescribeUpdateCommandError(output, context);
@@ -2192,6 +2434,49 @@ const de_ListNodegroupsCommandError = async (output, context) => {
2192
2434
  });
2193
2435
  }
2194
2436
  };
2437
+ export const de_ListPodIdentityAssociationsCommand = async (output, context) => {
2438
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2439
+ return de_ListPodIdentityAssociationsCommandError(output, context);
2440
+ }
2441
+ const contents = map({
2442
+ $metadata: deserializeMetadata(output),
2443
+ });
2444
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2445
+ const doc = take(data, {
2446
+ associations: _json,
2447
+ nextToken: __expectString,
2448
+ });
2449
+ Object.assign(contents, doc);
2450
+ return contents;
2451
+ };
2452
+ const de_ListPodIdentityAssociationsCommandError = async (output, context) => {
2453
+ const parsedOutput = {
2454
+ ...output,
2455
+ body: await parseErrorBody(output.body, context),
2456
+ };
2457
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2458
+ switch (errorCode) {
2459
+ case "InvalidParameterException":
2460
+ case "com.amazonaws.eks#InvalidParameterException":
2461
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2462
+ case "InvalidRequestException":
2463
+ case "com.amazonaws.eks#InvalidRequestException":
2464
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2465
+ case "ResourceNotFoundException":
2466
+ case "com.amazonaws.eks#ResourceNotFoundException":
2467
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2468
+ case "ServerException":
2469
+ case "com.amazonaws.eks#ServerException":
2470
+ throw await de_ServerExceptionRes(parsedOutput, context);
2471
+ default:
2472
+ const parsedBody = parsedOutput.body;
2473
+ return throwDefaultError({
2474
+ output,
2475
+ parsedBody,
2476
+ errorCode,
2477
+ });
2478
+ }
2479
+ };
2195
2480
  export const de_ListTagsForResourceCommand = async (output, context) => {
2196
2481
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2197
2482
  return de_ListTagsForResourceCommandError(output, context);
@@ -2674,6 +2959,48 @@ const de_UpdateNodegroupVersionCommandError = async (output, context) => {
2674
2959
  });
2675
2960
  }
2676
2961
  };
2962
+ export const de_UpdatePodIdentityAssociationCommand = async (output, context) => {
2963
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2964
+ return de_UpdatePodIdentityAssociationCommandError(output, context);
2965
+ }
2966
+ const contents = map({
2967
+ $metadata: deserializeMetadata(output),
2968
+ });
2969
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2970
+ const doc = take(data, {
2971
+ association: (_) => de_PodIdentityAssociation(_, context),
2972
+ });
2973
+ Object.assign(contents, doc);
2974
+ return contents;
2975
+ };
2976
+ const de_UpdatePodIdentityAssociationCommandError = async (output, context) => {
2977
+ const parsedOutput = {
2978
+ ...output,
2979
+ body: await parseErrorBody(output.body, context),
2980
+ };
2981
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2982
+ switch (errorCode) {
2983
+ case "InvalidParameterException":
2984
+ case "com.amazonaws.eks#InvalidParameterException":
2985
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2986
+ case "InvalidRequestException":
2987
+ case "com.amazonaws.eks#InvalidRequestException":
2988
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2989
+ case "ResourceNotFoundException":
2990
+ case "com.amazonaws.eks#ResourceNotFoundException":
2991
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2992
+ case "ServerException":
2993
+ case "com.amazonaws.eks#ServerException":
2994
+ throw await de_ServerExceptionRes(parsedOutput, context);
2995
+ default:
2996
+ const parsedBody = parsedOutput.body;
2997
+ return throwDefaultError({
2998
+ output,
2999
+ parsedBody,
3000
+ errorCode,
3001
+ });
3002
+ }
3003
+ };
2677
3004
  const throwDefaultError = withBaseException(__BaseException);
2678
3005
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2679
3006
  const contents = map({});
@@ -2990,6 +3317,19 @@ const de_Nodegroup = (output, context) => {
2990
3317
  version: __expectString,
2991
3318
  });
2992
3319
  };
3320
+ const de_PodIdentityAssociation = (output, context) => {
3321
+ return take(output, {
3322
+ associationArn: __expectString,
3323
+ associationId: __expectString,
3324
+ clusterName: __expectString,
3325
+ createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3326
+ modifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3327
+ namespace: __expectString,
3328
+ roleArn: __expectString,
3329
+ serviceAccount: __expectString,
3330
+ tags: _json,
3331
+ });
3332
+ };
2993
3333
  const de_Update = (output, context) => {
2994
3334
  return take(output, {
2995
3335
  createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),