@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.
- package/README.md +80 -40
- package/dist-cjs/EKS.js +10 -0
- package/dist-cjs/commands/CreatePodIdentityAssociationCommand.js +51 -0
- package/dist-cjs/commands/DeletePodIdentityAssociationCommand.js +51 -0
- package/dist-cjs/commands/DescribePodIdentityAssociationCommand.js +51 -0
- package/dist-cjs/commands/ListPodIdentityAssociationsCommand.js +51 -0
- package/dist-cjs/commands/UpdatePodIdentityAssociationCommand.js +51 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/pagination/ListEksAnywhereSubscriptionsPaginator.js +29 -0
- package/dist-cjs/pagination/ListPodIdentityAssociationsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +352 -2
- package/dist-es/EKS.js +10 -0
- package/dist-es/commands/CreatePodIdentityAssociationCommand.js +47 -0
- package/dist-es/commands/DeletePodIdentityAssociationCommand.js +47 -0
- package/dist-es/commands/DescribePodIdentityAssociationCommand.js +47 -0
- package/dist-es/commands/ListPodIdentityAssociationsCommand.js +47 -0
- package/dist-es/commands/UpdatePodIdentityAssociationCommand.js +47 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/pagination/ListEksAnywhereSubscriptionsPaginator.js +25 -0
- package/dist-es/pagination/ListPodIdentityAssociationsPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +340 -0
- package/dist-types/EKS.d.ts +35 -0
- package/dist-types/EKSClient.d.ts +7 -2
- package/dist-types/commands/CreateClusterCommand.d.ts +19 -0
- package/dist-types/commands/CreatePodIdentityAssociationCommand.d.ts +125 -0
- package/dist-types/commands/DeleteEksAnywhereSubscriptionCommand.d.ts +2 -2
- package/dist-types/commands/DeletePodIdentityAssociationCommand.d.ts +104 -0
- package/dist-types/commands/DescribePodIdentityAssociationCommand.d.ts +107 -0
- package/dist-types/commands/ListPodIdentityAssociationsCommand.d.ts +104 -0
- package/dist-types/commands/UpdateClusterConfigCommand.d.ts +8 -4
- package/dist-types/commands/UpdatePodIdentityAssociationCommand.d.ts +108 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +450 -22
- package/dist-types/pagination/ListEksAnywhereSubscriptionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPodIdentityAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/EKS.d.ts +85 -0
- package/dist-types/ts3.4/EKSClient.d.ts +32 -2
- package/dist-types/ts3.4/commands/CreatePodIdentityAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeletePodIdentityAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribePodIdentityAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListPodIdentityAssociationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdatePodIdentityAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +63 -0
- package/dist-types/ts3.4/pagination/ListEksAnywhereSubscriptionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPodIdentityAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UpdateNodegroupVersionCommand = exports.de_UpdateNodegroupConfigCommand = exports.de_UpdateEksAnywhereSubscriptionCommand = exports.de_UpdateClusterVersionCommand = exports.de_UpdateClusterConfigCommand = exports.de_UpdateAddonCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RegisterClusterCommand = exports.de_ListUpdatesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListNodegroupsCommand = exports.de_ListIdentityProviderConfigsCommand = exports.de_ListFargateProfilesCommand = exports.de_ListEksAnywhereSubscriptionsCommand = exports.de_ListClustersCommand = exports.de_ListAddonsCommand = exports.de_DisassociateIdentityProviderConfigCommand = exports.de_DescribeUpdateCommand = exports.de_DescribeNodegroupCommand = exports.de_DescribeIdentityProviderConfigCommand = exports.de_DescribeFargateProfileCommand = exports.de_DescribeEksAnywhereSubscriptionCommand = exports.de_DescribeClusterCommand = exports.de_DescribeAddonVersionsCommand = exports.de_DescribeAddonConfigurationCommand = exports.de_DescribeAddonCommand = exports.de_DeregisterClusterCommand = exports.de_DeleteNodegroupCommand = exports.de_DeleteFargateProfileCommand = void 0;
|
|
3
|
+
exports.de_CreateEksAnywhereSubscriptionCommand = exports.de_CreateClusterCommand = exports.de_CreateAddonCommand = exports.de_AssociateIdentityProviderConfigCommand = exports.de_AssociateEncryptionConfigCommand = exports.se_UpdatePodIdentityAssociationCommand = exports.se_UpdateNodegroupVersionCommand = exports.se_UpdateNodegroupConfigCommand = exports.se_UpdateEksAnywhereSubscriptionCommand = exports.se_UpdateClusterVersionCommand = exports.se_UpdateClusterConfigCommand = exports.se_UpdateAddonCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RegisterClusterCommand = exports.se_ListUpdatesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListPodIdentityAssociationsCommand = exports.se_ListNodegroupsCommand = exports.se_ListIdentityProviderConfigsCommand = exports.se_ListFargateProfilesCommand = exports.se_ListEksAnywhereSubscriptionsCommand = exports.se_ListClustersCommand = exports.se_ListAddonsCommand = exports.se_DisassociateIdentityProviderConfigCommand = exports.se_DescribeUpdateCommand = exports.se_DescribePodIdentityAssociationCommand = exports.se_DescribeNodegroupCommand = exports.se_DescribeIdentityProviderConfigCommand = exports.se_DescribeFargateProfileCommand = exports.se_DescribeEksAnywhereSubscriptionCommand = exports.se_DescribeClusterCommand = exports.se_DescribeAddonVersionsCommand = exports.se_DescribeAddonConfigurationCommand = exports.se_DescribeAddonCommand = exports.se_DeregisterClusterCommand = exports.se_DeletePodIdentityAssociationCommand = exports.se_DeleteNodegroupCommand = exports.se_DeleteFargateProfileCommand = exports.se_DeleteEksAnywhereSubscriptionCommand = exports.se_DeleteClusterCommand = exports.se_DeleteAddonCommand = exports.se_CreatePodIdentityAssociationCommand = exports.se_CreateNodegroupCommand = exports.se_CreateFargateProfileCommand = exports.se_CreateEksAnywhereSubscriptionCommand = exports.se_CreateClusterCommand = exports.se_CreateAddonCommand = exports.se_AssociateIdentityProviderConfigCommand = exports.se_AssociateEncryptionConfigCommand = void 0;
|
|
4
|
+
exports.de_UpdatePodIdentityAssociationCommand = exports.de_UpdateNodegroupVersionCommand = exports.de_UpdateNodegroupConfigCommand = exports.de_UpdateEksAnywhereSubscriptionCommand = exports.de_UpdateClusterVersionCommand = exports.de_UpdateClusterConfigCommand = exports.de_UpdateAddonCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RegisterClusterCommand = exports.de_ListUpdatesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListPodIdentityAssociationsCommand = exports.de_ListNodegroupsCommand = exports.de_ListIdentityProviderConfigsCommand = exports.de_ListFargateProfilesCommand = exports.de_ListEksAnywhereSubscriptionsCommand = exports.de_ListClustersCommand = exports.de_ListAddonsCommand = exports.de_DisassociateIdentityProviderConfigCommand = exports.de_DescribeUpdateCommand = exports.de_DescribePodIdentityAssociationCommand = exports.de_DescribeNodegroupCommand = exports.de_DescribeIdentityProviderConfigCommand = exports.de_DescribeFargateProfileCommand = exports.de_DescribeEksAnywhereSubscriptionCommand = exports.de_DescribeClusterCommand = exports.de_DescribeAddonVersionsCommand = exports.de_DescribeAddonConfigurationCommand = exports.de_DescribeAddonCommand = exports.de_DeregisterClusterCommand = exports.de_DeletePodIdentityAssociationCommand = exports.de_DeleteNodegroupCommand = exports.de_DeleteFargateProfileCommand = exports.de_DeleteEksAnywhereSubscriptionCommand = exports.de_DeleteClusterCommand = exports.de_DeleteAddonCommand = exports.de_CreatePodIdentityAssociationCommand = exports.de_CreateNodegroupCommand = exports.de_CreateFargateProfileCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
@@ -206,6 +206,33 @@ const se_CreateNodegroupCommand = async (input, context) => {
|
|
|
206
206
|
});
|
|
207
207
|
};
|
|
208
208
|
exports.se_CreateNodegroupCommand = se_CreateNodegroupCommand;
|
|
209
|
+
const se_CreatePodIdentityAssociationCommand = async (input, context) => {
|
|
210
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
211
|
+
const headers = {
|
|
212
|
+
"content-type": "application/json",
|
|
213
|
+
};
|
|
214
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
215
|
+
"/clusters/{clusterName}/pod-identity-associations";
|
|
216
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
217
|
+
let body;
|
|
218
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
219
|
+
clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
220
|
+
namespace: [],
|
|
221
|
+
roleArn: [],
|
|
222
|
+
serviceAccount: [],
|
|
223
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
224
|
+
}));
|
|
225
|
+
return new protocol_http_1.HttpRequest({
|
|
226
|
+
protocol,
|
|
227
|
+
hostname,
|
|
228
|
+
port,
|
|
229
|
+
method: "POST",
|
|
230
|
+
headers,
|
|
231
|
+
path: resolvedPath,
|
|
232
|
+
body,
|
|
233
|
+
});
|
|
234
|
+
};
|
|
235
|
+
exports.se_CreatePodIdentityAssociationCommand = se_CreatePodIdentityAssociationCommand;
|
|
209
236
|
const se_DeleteAddonCommand = async (input, context) => {
|
|
210
237
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
211
238
|
const headers = {};
|
|
@@ -301,6 +328,25 @@ const se_DeleteNodegroupCommand = async (input, context) => {
|
|
|
301
328
|
});
|
|
302
329
|
};
|
|
303
330
|
exports.se_DeleteNodegroupCommand = se_DeleteNodegroupCommand;
|
|
331
|
+
const se_DeletePodIdentityAssociationCommand = async (input, context) => {
|
|
332
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
333
|
+
const headers = {};
|
|
334
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
335
|
+
"/clusters/{clusterName}/pod-identity-associations/{associationId}";
|
|
336
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
337
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
|
|
338
|
+
let body;
|
|
339
|
+
return new protocol_http_1.HttpRequest({
|
|
340
|
+
protocol,
|
|
341
|
+
hostname,
|
|
342
|
+
port,
|
|
343
|
+
method: "DELETE",
|
|
344
|
+
headers,
|
|
345
|
+
path: resolvedPath,
|
|
346
|
+
body,
|
|
347
|
+
});
|
|
348
|
+
};
|
|
349
|
+
exports.se_DeletePodIdentityAssociationCommand = se_DeletePodIdentityAssociationCommand;
|
|
304
350
|
const se_DeregisterClusterCommand = async (input, context) => {
|
|
305
351
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
306
352
|
const headers = {};
|
|
@@ -479,6 +525,25 @@ const se_DescribeNodegroupCommand = async (input, context) => {
|
|
|
479
525
|
});
|
|
480
526
|
};
|
|
481
527
|
exports.se_DescribeNodegroupCommand = se_DescribeNodegroupCommand;
|
|
528
|
+
const se_DescribePodIdentityAssociationCommand = async (input, context) => {
|
|
529
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
530
|
+
const headers = {};
|
|
531
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
532
|
+
"/clusters/{clusterName}/pod-identity-associations/{associationId}";
|
|
533
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
534
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
|
|
535
|
+
let body;
|
|
536
|
+
return new protocol_http_1.HttpRequest({
|
|
537
|
+
protocol,
|
|
538
|
+
hostname,
|
|
539
|
+
port,
|
|
540
|
+
method: "GET",
|
|
541
|
+
headers,
|
|
542
|
+
path: resolvedPath,
|
|
543
|
+
body,
|
|
544
|
+
});
|
|
545
|
+
};
|
|
546
|
+
exports.se_DescribePodIdentityAssociationCommand = se_DescribePodIdentityAssociationCommand;
|
|
482
547
|
const se_DescribeUpdateCommand = async (input, context) => {
|
|
483
548
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
484
549
|
const headers = {};
|
|
@@ -662,6 +727,31 @@ const se_ListNodegroupsCommand = async (input, context) => {
|
|
|
662
727
|
});
|
|
663
728
|
};
|
|
664
729
|
exports.se_ListNodegroupsCommand = se_ListNodegroupsCommand;
|
|
730
|
+
const se_ListPodIdentityAssociationsCommand = async (input, context) => {
|
|
731
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
732
|
+
const headers = {};
|
|
733
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
734
|
+
"/clusters/{clusterName}/pod-identity-associations";
|
|
735
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
736
|
+
const query = (0, smithy_client_1.map)({
|
|
737
|
+
namespace: [, input.namespace],
|
|
738
|
+
serviceAccount: [, input.serviceAccount],
|
|
739
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
740
|
+
nextToken: [, input.nextToken],
|
|
741
|
+
});
|
|
742
|
+
let body;
|
|
743
|
+
return new protocol_http_1.HttpRequest({
|
|
744
|
+
protocol,
|
|
745
|
+
hostname,
|
|
746
|
+
port,
|
|
747
|
+
method: "GET",
|
|
748
|
+
headers,
|
|
749
|
+
path: resolvedPath,
|
|
750
|
+
query,
|
|
751
|
+
body,
|
|
752
|
+
});
|
|
753
|
+
};
|
|
754
|
+
exports.se_ListPodIdentityAssociationsCommand = se_ListPodIdentityAssociationsCommand;
|
|
665
755
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
666
756
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
667
757
|
const headers = {};
|
|
@@ -927,6 +1017,31 @@ const se_UpdateNodegroupVersionCommand = async (input, context) => {
|
|
|
927
1017
|
});
|
|
928
1018
|
};
|
|
929
1019
|
exports.se_UpdateNodegroupVersionCommand = se_UpdateNodegroupVersionCommand;
|
|
1020
|
+
const se_UpdatePodIdentityAssociationCommand = async (input, context) => {
|
|
1021
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1022
|
+
const headers = {
|
|
1023
|
+
"content-type": "application/json",
|
|
1024
|
+
};
|
|
1025
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1026
|
+
"/clusters/{clusterName}/pod-identity-associations/{associationId}";
|
|
1027
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
1028
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
|
|
1029
|
+
let body;
|
|
1030
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1031
|
+
clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1032
|
+
roleArn: [],
|
|
1033
|
+
}));
|
|
1034
|
+
return new protocol_http_1.HttpRequest({
|
|
1035
|
+
protocol,
|
|
1036
|
+
hostname,
|
|
1037
|
+
port,
|
|
1038
|
+
method: "POST",
|
|
1039
|
+
headers,
|
|
1040
|
+
path: resolvedPath,
|
|
1041
|
+
body,
|
|
1042
|
+
});
|
|
1043
|
+
};
|
|
1044
|
+
exports.se_UpdatePodIdentityAssociationCommand = se_UpdatePodIdentityAssociationCommand;
|
|
930
1045
|
const de_AssociateEncryptionConfigCommand = async (output, context) => {
|
|
931
1046
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
932
1047
|
return de_AssociateEncryptionConfigCommandError(output, context);
|
|
@@ -1274,6 +1389,55 @@ const de_CreateNodegroupCommandError = async (output, context) => {
|
|
|
1274
1389
|
});
|
|
1275
1390
|
}
|
|
1276
1391
|
};
|
|
1392
|
+
const de_CreatePodIdentityAssociationCommand = async (output, context) => {
|
|
1393
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1394
|
+
return de_CreatePodIdentityAssociationCommandError(output, context);
|
|
1395
|
+
}
|
|
1396
|
+
const contents = (0, smithy_client_1.map)({
|
|
1397
|
+
$metadata: deserializeMetadata(output),
|
|
1398
|
+
});
|
|
1399
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1400
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1401
|
+
association: (_) => de_PodIdentityAssociation(_, context),
|
|
1402
|
+
});
|
|
1403
|
+
Object.assign(contents, doc);
|
|
1404
|
+
return contents;
|
|
1405
|
+
};
|
|
1406
|
+
exports.de_CreatePodIdentityAssociationCommand = de_CreatePodIdentityAssociationCommand;
|
|
1407
|
+
const de_CreatePodIdentityAssociationCommandError = async (output, context) => {
|
|
1408
|
+
const parsedOutput = {
|
|
1409
|
+
...output,
|
|
1410
|
+
body: await parseErrorBody(output.body, context),
|
|
1411
|
+
};
|
|
1412
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1413
|
+
switch (errorCode) {
|
|
1414
|
+
case "InvalidParameterException":
|
|
1415
|
+
case "com.amazonaws.eks#InvalidParameterException":
|
|
1416
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1417
|
+
case "InvalidRequestException":
|
|
1418
|
+
case "com.amazonaws.eks#InvalidRequestException":
|
|
1419
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1420
|
+
case "ResourceInUseException":
|
|
1421
|
+
case "com.amazonaws.eks#ResourceInUseException":
|
|
1422
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1423
|
+
case "ResourceLimitExceededException":
|
|
1424
|
+
case "com.amazonaws.eks#ResourceLimitExceededException":
|
|
1425
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1426
|
+
case "ResourceNotFoundException":
|
|
1427
|
+
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1428
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1429
|
+
case "ServerException":
|
|
1430
|
+
case "com.amazonaws.eks#ServerException":
|
|
1431
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1432
|
+
default:
|
|
1433
|
+
const parsedBody = parsedOutput.body;
|
|
1434
|
+
return throwDefaultError({
|
|
1435
|
+
output,
|
|
1436
|
+
parsedBody,
|
|
1437
|
+
errorCode,
|
|
1438
|
+
});
|
|
1439
|
+
}
|
|
1440
|
+
};
|
|
1277
1441
|
const de_DeleteAddonCommand = async (output, context) => {
|
|
1278
1442
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1279
1443
|
return de_DeleteAddonCommandError(output, context);
|
|
@@ -1501,6 +1665,49 @@ const de_DeleteNodegroupCommandError = async (output, context) => {
|
|
|
1501
1665
|
});
|
|
1502
1666
|
}
|
|
1503
1667
|
};
|
|
1668
|
+
const de_DeletePodIdentityAssociationCommand = async (output, context) => {
|
|
1669
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1670
|
+
return de_DeletePodIdentityAssociationCommandError(output, context);
|
|
1671
|
+
}
|
|
1672
|
+
const contents = (0, smithy_client_1.map)({
|
|
1673
|
+
$metadata: deserializeMetadata(output),
|
|
1674
|
+
});
|
|
1675
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1676
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1677
|
+
association: (_) => de_PodIdentityAssociation(_, context),
|
|
1678
|
+
});
|
|
1679
|
+
Object.assign(contents, doc);
|
|
1680
|
+
return contents;
|
|
1681
|
+
};
|
|
1682
|
+
exports.de_DeletePodIdentityAssociationCommand = de_DeletePodIdentityAssociationCommand;
|
|
1683
|
+
const de_DeletePodIdentityAssociationCommandError = async (output, context) => {
|
|
1684
|
+
const parsedOutput = {
|
|
1685
|
+
...output,
|
|
1686
|
+
body: await parseErrorBody(output.body, context),
|
|
1687
|
+
};
|
|
1688
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1689
|
+
switch (errorCode) {
|
|
1690
|
+
case "InvalidParameterException":
|
|
1691
|
+
case "com.amazonaws.eks#InvalidParameterException":
|
|
1692
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1693
|
+
case "InvalidRequestException":
|
|
1694
|
+
case "com.amazonaws.eks#InvalidRequestException":
|
|
1695
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1696
|
+
case "ResourceNotFoundException":
|
|
1697
|
+
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1698
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1699
|
+
case "ServerException":
|
|
1700
|
+
case "com.amazonaws.eks#ServerException":
|
|
1701
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1702
|
+
default:
|
|
1703
|
+
const parsedBody = parsedOutput.body;
|
|
1704
|
+
return throwDefaultError({
|
|
1705
|
+
output,
|
|
1706
|
+
parsedBody,
|
|
1707
|
+
errorCode,
|
|
1708
|
+
});
|
|
1709
|
+
}
|
|
1710
|
+
};
|
|
1504
1711
|
const de_DeregisterClusterCommand = async (output, context) => {
|
|
1505
1712
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1506
1713
|
return de_DeregisterClusterCommandError(output, context);
|
|
@@ -1900,6 +2107,49 @@ const de_DescribeNodegroupCommandError = async (output, context) => {
|
|
|
1900
2107
|
});
|
|
1901
2108
|
}
|
|
1902
2109
|
};
|
|
2110
|
+
const de_DescribePodIdentityAssociationCommand = async (output, context) => {
|
|
2111
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2112
|
+
return de_DescribePodIdentityAssociationCommandError(output, context);
|
|
2113
|
+
}
|
|
2114
|
+
const contents = (0, smithy_client_1.map)({
|
|
2115
|
+
$metadata: deserializeMetadata(output),
|
|
2116
|
+
});
|
|
2117
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2118
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2119
|
+
association: (_) => de_PodIdentityAssociation(_, context),
|
|
2120
|
+
});
|
|
2121
|
+
Object.assign(contents, doc);
|
|
2122
|
+
return contents;
|
|
2123
|
+
};
|
|
2124
|
+
exports.de_DescribePodIdentityAssociationCommand = de_DescribePodIdentityAssociationCommand;
|
|
2125
|
+
const de_DescribePodIdentityAssociationCommandError = async (output, context) => {
|
|
2126
|
+
const parsedOutput = {
|
|
2127
|
+
...output,
|
|
2128
|
+
body: await parseErrorBody(output.body, context),
|
|
2129
|
+
};
|
|
2130
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2131
|
+
switch (errorCode) {
|
|
2132
|
+
case "InvalidParameterException":
|
|
2133
|
+
case "com.amazonaws.eks#InvalidParameterException":
|
|
2134
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2135
|
+
case "InvalidRequestException":
|
|
2136
|
+
case "com.amazonaws.eks#InvalidRequestException":
|
|
2137
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2138
|
+
case "ResourceNotFoundException":
|
|
2139
|
+
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2140
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2141
|
+
case "ServerException":
|
|
2142
|
+
case "com.amazonaws.eks#ServerException":
|
|
2143
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2144
|
+
default:
|
|
2145
|
+
const parsedBody = parsedOutput.body;
|
|
2146
|
+
return throwDefaultError({
|
|
2147
|
+
output,
|
|
2148
|
+
parsedBody,
|
|
2149
|
+
errorCode,
|
|
2150
|
+
});
|
|
2151
|
+
}
|
|
2152
|
+
};
|
|
1903
2153
|
const de_DescribeUpdateCommand = async (output, context) => {
|
|
1904
2154
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1905
2155
|
return de_DescribeUpdateCommandError(output, context);
|
|
@@ -2265,6 +2515,50 @@ const de_ListNodegroupsCommandError = async (output, context) => {
|
|
|
2265
2515
|
});
|
|
2266
2516
|
}
|
|
2267
2517
|
};
|
|
2518
|
+
const de_ListPodIdentityAssociationsCommand = async (output, context) => {
|
|
2519
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2520
|
+
return de_ListPodIdentityAssociationsCommandError(output, context);
|
|
2521
|
+
}
|
|
2522
|
+
const contents = (0, smithy_client_1.map)({
|
|
2523
|
+
$metadata: deserializeMetadata(output),
|
|
2524
|
+
});
|
|
2525
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2526
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2527
|
+
associations: smithy_client_1._json,
|
|
2528
|
+
nextToken: smithy_client_1.expectString,
|
|
2529
|
+
});
|
|
2530
|
+
Object.assign(contents, doc);
|
|
2531
|
+
return contents;
|
|
2532
|
+
};
|
|
2533
|
+
exports.de_ListPodIdentityAssociationsCommand = de_ListPodIdentityAssociationsCommand;
|
|
2534
|
+
const de_ListPodIdentityAssociationsCommandError = async (output, context) => {
|
|
2535
|
+
const parsedOutput = {
|
|
2536
|
+
...output,
|
|
2537
|
+
body: await parseErrorBody(output.body, context),
|
|
2538
|
+
};
|
|
2539
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2540
|
+
switch (errorCode) {
|
|
2541
|
+
case "InvalidParameterException":
|
|
2542
|
+
case "com.amazonaws.eks#InvalidParameterException":
|
|
2543
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2544
|
+
case "InvalidRequestException":
|
|
2545
|
+
case "com.amazonaws.eks#InvalidRequestException":
|
|
2546
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2547
|
+
case "ResourceNotFoundException":
|
|
2548
|
+
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2549
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2550
|
+
case "ServerException":
|
|
2551
|
+
case "com.amazonaws.eks#ServerException":
|
|
2552
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2553
|
+
default:
|
|
2554
|
+
const parsedBody = parsedOutput.body;
|
|
2555
|
+
return throwDefaultError({
|
|
2556
|
+
output,
|
|
2557
|
+
parsedBody,
|
|
2558
|
+
errorCode,
|
|
2559
|
+
});
|
|
2560
|
+
}
|
|
2561
|
+
};
|
|
2268
2562
|
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2269
2563
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2270
2564
|
return de_ListTagsForResourceCommandError(output, context);
|
|
@@ -2758,6 +3052,49 @@ const de_UpdateNodegroupVersionCommandError = async (output, context) => {
|
|
|
2758
3052
|
});
|
|
2759
3053
|
}
|
|
2760
3054
|
};
|
|
3055
|
+
const de_UpdatePodIdentityAssociationCommand = async (output, context) => {
|
|
3056
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3057
|
+
return de_UpdatePodIdentityAssociationCommandError(output, context);
|
|
3058
|
+
}
|
|
3059
|
+
const contents = (0, smithy_client_1.map)({
|
|
3060
|
+
$metadata: deserializeMetadata(output),
|
|
3061
|
+
});
|
|
3062
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3063
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3064
|
+
association: (_) => de_PodIdentityAssociation(_, context),
|
|
3065
|
+
});
|
|
3066
|
+
Object.assign(contents, doc);
|
|
3067
|
+
return contents;
|
|
3068
|
+
};
|
|
3069
|
+
exports.de_UpdatePodIdentityAssociationCommand = de_UpdatePodIdentityAssociationCommand;
|
|
3070
|
+
const de_UpdatePodIdentityAssociationCommandError = async (output, context) => {
|
|
3071
|
+
const parsedOutput = {
|
|
3072
|
+
...output,
|
|
3073
|
+
body: await parseErrorBody(output.body, context),
|
|
3074
|
+
};
|
|
3075
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3076
|
+
switch (errorCode) {
|
|
3077
|
+
case "InvalidParameterException":
|
|
3078
|
+
case "com.amazonaws.eks#InvalidParameterException":
|
|
3079
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3080
|
+
case "InvalidRequestException":
|
|
3081
|
+
case "com.amazonaws.eks#InvalidRequestException":
|
|
3082
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3083
|
+
case "ResourceNotFoundException":
|
|
3084
|
+
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3085
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3086
|
+
case "ServerException":
|
|
3087
|
+
case "com.amazonaws.eks#ServerException":
|
|
3088
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3089
|
+
default:
|
|
3090
|
+
const parsedBody = parsedOutput.body;
|
|
3091
|
+
return throwDefaultError({
|
|
3092
|
+
output,
|
|
3093
|
+
parsedBody,
|
|
3094
|
+
errorCode,
|
|
3095
|
+
});
|
|
3096
|
+
}
|
|
3097
|
+
};
|
|
2761
3098
|
const throwDefaultError = (0, smithy_client_1.withBaseException)(EKSServiceException_1.EKSServiceException);
|
|
2762
3099
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2763
3100
|
const contents = (0, smithy_client_1.map)({});
|
|
@@ -3074,6 +3411,19 @@ const de_Nodegroup = (output, context) => {
|
|
|
3074
3411
|
version: smithy_client_1.expectString,
|
|
3075
3412
|
});
|
|
3076
3413
|
};
|
|
3414
|
+
const de_PodIdentityAssociation = (output, context) => {
|
|
3415
|
+
return (0, smithy_client_1.take)(output, {
|
|
3416
|
+
associationArn: smithy_client_1.expectString,
|
|
3417
|
+
associationId: smithy_client_1.expectString,
|
|
3418
|
+
clusterName: smithy_client_1.expectString,
|
|
3419
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3420
|
+
modifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3421
|
+
namespace: smithy_client_1.expectString,
|
|
3422
|
+
roleArn: smithy_client_1.expectString,
|
|
3423
|
+
serviceAccount: smithy_client_1.expectString,
|
|
3424
|
+
tags: smithy_client_1._json,
|
|
3425
|
+
});
|
|
3426
|
+
};
|
|
3077
3427
|
const de_Update = (output, context) => {
|
|
3078
3428
|
return (0, smithy_client_1.take)(output, {
|
|
3079
3429
|
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
package/dist-es/EKS.js
CHANGED
|
@@ -6,11 +6,13 @@ import { CreateClusterCommand, } from "./commands/CreateClusterCommand";
|
|
|
6
6
|
import { CreateEksAnywhereSubscriptionCommand, } from "./commands/CreateEksAnywhereSubscriptionCommand";
|
|
7
7
|
import { CreateFargateProfileCommand, } from "./commands/CreateFargateProfileCommand";
|
|
8
8
|
import { CreateNodegroupCommand, } from "./commands/CreateNodegroupCommand";
|
|
9
|
+
import { CreatePodIdentityAssociationCommand, } from "./commands/CreatePodIdentityAssociationCommand";
|
|
9
10
|
import { DeleteAddonCommand } from "./commands/DeleteAddonCommand";
|
|
10
11
|
import { DeleteClusterCommand, } from "./commands/DeleteClusterCommand";
|
|
11
12
|
import { DeleteEksAnywhereSubscriptionCommand, } from "./commands/DeleteEksAnywhereSubscriptionCommand";
|
|
12
13
|
import { DeleteFargateProfileCommand, } from "./commands/DeleteFargateProfileCommand";
|
|
13
14
|
import { DeleteNodegroupCommand, } from "./commands/DeleteNodegroupCommand";
|
|
15
|
+
import { DeletePodIdentityAssociationCommand, } from "./commands/DeletePodIdentityAssociationCommand";
|
|
14
16
|
import { DeregisterClusterCommand, } from "./commands/DeregisterClusterCommand";
|
|
15
17
|
import { DescribeAddonCommand, } from "./commands/DescribeAddonCommand";
|
|
16
18
|
import { DescribeAddonConfigurationCommand, } from "./commands/DescribeAddonConfigurationCommand";
|
|
@@ -20,6 +22,7 @@ import { DescribeEksAnywhereSubscriptionCommand, } from "./commands/DescribeEksA
|
|
|
20
22
|
import { DescribeFargateProfileCommand, } from "./commands/DescribeFargateProfileCommand";
|
|
21
23
|
import { DescribeIdentityProviderConfigCommand, } from "./commands/DescribeIdentityProviderConfigCommand";
|
|
22
24
|
import { DescribeNodegroupCommand, } from "./commands/DescribeNodegroupCommand";
|
|
25
|
+
import { DescribePodIdentityAssociationCommand, } from "./commands/DescribePodIdentityAssociationCommand";
|
|
23
26
|
import { DescribeUpdateCommand, } from "./commands/DescribeUpdateCommand";
|
|
24
27
|
import { DisassociateIdentityProviderConfigCommand, } from "./commands/DisassociateIdentityProviderConfigCommand";
|
|
25
28
|
import { ListAddonsCommand } from "./commands/ListAddonsCommand";
|
|
@@ -28,6 +31,7 @@ import { ListEksAnywhereSubscriptionsCommand, } from "./commands/ListEksAnywhere
|
|
|
28
31
|
import { ListFargateProfilesCommand, } from "./commands/ListFargateProfilesCommand";
|
|
29
32
|
import { ListIdentityProviderConfigsCommand, } from "./commands/ListIdentityProviderConfigsCommand";
|
|
30
33
|
import { ListNodegroupsCommand, } from "./commands/ListNodegroupsCommand";
|
|
34
|
+
import { ListPodIdentityAssociationsCommand, } from "./commands/ListPodIdentityAssociationsCommand";
|
|
31
35
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
32
36
|
import { ListUpdatesCommand } from "./commands/ListUpdatesCommand";
|
|
33
37
|
import { RegisterClusterCommand, } from "./commands/RegisterClusterCommand";
|
|
@@ -39,6 +43,7 @@ import { UpdateClusterVersionCommand, } from "./commands/UpdateClusterVersionCom
|
|
|
39
43
|
import { UpdateEksAnywhereSubscriptionCommand, } from "./commands/UpdateEksAnywhereSubscriptionCommand";
|
|
40
44
|
import { UpdateNodegroupConfigCommand, } from "./commands/UpdateNodegroupConfigCommand";
|
|
41
45
|
import { UpdateNodegroupVersionCommand, } from "./commands/UpdateNodegroupVersionCommand";
|
|
46
|
+
import { UpdatePodIdentityAssociationCommand, } from "./commands/UpdatePodIdentityAssociationCommand";
|
|
42
47
|
import { EKSClient } from "./EKSClient";
|
|
43
48
|
const commands = {
|
|
44
49
|
AssociateEncryptionConfigCommand,
|
|
@@ -48,11 +53,13 @@ const commands = {
|
|
|
48
53
|
CreateEksAnywhereSubscriptionCommand,
|
|
49
54
|
CreateFargateProfileCommand,
|
|
50
55
|
CreateNodegroupCommand,
|
|
56
|
+
CreatePodIdentityAssociationCommand,
|
|
51
57
|
DeleteAddonCommand,
|
|
52
58
|
DeleteClusterCommand,
|
|
53
59
|
DeleteEksAnywhereSubscriptionCommand,
|
|
54
60
|
DeleteFargateProfileCommand,
|
|
55
61
|
DeleteNodegroupCommand,
|
|
62
|
+
DeletePodIdentityAssociationCommand,
|
|
56
63
|
DeregisterClusterCommand,
|
|
57
64
|
DescribeAddonCommand,
|
|
58
65
|
DescribeAddonConfigurationCommand,
|
|
@@ -62,6 +69,7 @@ const commands = {
|
|
|
62
69
|
DescribeFargateProfileCommand,
|
|
63
70
|
DescribeIdentityProviderConfigCommand,
|
|
64
71
|
DescribeNodegroupCommand,
|
|
72
|
+
DescribePodIdentityAssociationCommand,
|
|
65
73
|
DescribeUpdateCommand,
|
|
66
74
|
DisassociateIdentityProviderConfigCommand,
|
|
67
75
|
ListAddonsCommand,
|
|
@@ -70,6 +78,7 @@ const commands = {
|
|
|
70
78
|
ListFargateProfilesCommand,
|
|
71
79
|
ListIdentityProviderConfigsCommand,
|
|
72
80
|
ListNodegroupsCommand,
|
|
81
|
+
ListPodIdentityAssociationsCommand,
|
|
73
82
|
ListTagsForResourceCommand,
|
|
74
83
|
ListUpdatesCommand,
|
|
75
84
|
RegisterClusterCommand,
|
|
@@ -81,6 +90,7 @@ const commands = {
|
|
|
81
90
|
UpdateEksAnywhereSubscriptionCommand,
|
|
82
91
|
UpdateNodegroupConfigCommand,
|
|
83
92
|
UpdateNodegroupVersionCommand,
|
|
93
|
+
UpdatePodIdentityAssociationCommand,
|
|
84
94
|
};
|
|
85
95
|
export class EKS extends EKSClient {
|
|
86
96
|
}
|
|
@@ -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_CreatePodIdentityAssociationCommand, se_CreatePodIdentityAssociationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class CreatePodIdentityAssociationCommand 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, CreatePodIdentityAssociationCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "EKSClient";
|
|
26
|
+
const commandName = "CreatePodIdentityAssociationCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AWSWesleyFrontend",
|
|
35
|
+
operation: "CreatePodIdentityAssociation",
|
|
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_CreatePodIdentityAssociationCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_CreatePodIdentityAssociationCommand(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_DeletePodIdentityAssociationCommand, se_DeletePodIdentityAssociationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DeletePodIdentityAssociationCommand 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, DeletePodIdentityAssociationCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "EKSClient";
|
|
26
|
+
const commandName = "DeletePodIdentityAssociationCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AWSWesleyFrontend",
|
|
35
|
+
operation: "DeletePodIdentityAssociation",
|
|
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_DeletePodIdentityAssociationCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_DeletePodIdentityAssociationCommand(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_DescribePodIdentityAssociationCommand, se_DescribePodIdentityAssociationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DescribePodIdentityAssociationCommand 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, DescribePodIdentityAssociationCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "EKSClient";
|
|
26
|
+
const commandName = "DescribePodIdentityAssociationCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AWSWesleyFrontend",
|
|
35
|
+
operation: "DescribePodIdentityAssociation",
|
|
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_DescribePodIdentityAssociationCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_DescribePodIdentityAssociationCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|