@aws-sdk/client-eks 3.474.0 → 3.477.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 +75 -3
- package/dist-cjs/EKS.js +18 -0
- package/dist-cjs/commands/AssociateAccessPolicyCommand.js +51 -0
- package/dist-cjs/commands/CreateAccessEntryCommand.js +51 -0
- package/dist-cjs/commands/DeleteAccessEntryCommand.js +51 -0
- package/dist-cjs/commands/DescribeAccessEntryCommand.js +51 -0
- package/dist-cjs/commands/DisassociateAccessPolicyCommand.js +51 -0
- package/dist-cjs/commands/ListAccessEntriesCommand.js +51 -0
- package/dist-cjs/commands/ListAccessPoliciesCommand.js +51 -0
- package/dist-cjs/commands/ListAssociatedAccessPoliciesCommand.js +51 -0
- package/dist-cjs/commands/UpdateAccessEntryCommand.js +51 -0
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/models/models_0.js +87 -76
- package/dist-cjs/pagination/ListAccessEntriesPaginator.js +29 -0
- package/dist-cjs/pagination/ListAccessPoliciesPaginator.js +29 -0
- package/dist-cjs/pagination/ListAssociatedAccessPoliciesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +828 -554
- package/dist-es/EKS.js +18 -0
- package/dist-es/commands/AssociateAccessPolicyCommand.js +47 -0
- package/dist-es/commands/CreateAccessEntryCommand.js +47 -0
- package/dist-es/commands/DeleteAccessEntryCommand.js +47 -0
- package/dist-es/commands/DescribeAccessEntryCommand.js +47 -0
- package/dist-es/commands/DisassociateAccessPolicyCommand.js +47 -0
- package/dist-es/commands/ListAccessEntriesCommand.js +47 -0
- package/dist-es/commands/ListAccessPoliciesCommand.js +47 -0
- package/dist-es/commands/ListAssociatedAccessPoliciesCommand.js +47 -0
- package/dist-es/commands/UpdateAccessEntryCommand.js +47 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/models/models_0.js +81 -70
- package/dist-es/pagination/ListAccessEntriesPaginator.js +25 -0
- package/dist-es/pagination/ListAccessPoliciesPaginator.js +25 -0
- package/dist-es/pagination/ListAssociatedAccessPoliciesPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +803 -548
- package/dist-types/EKS.d.ts +66 -3
- package/dist-types/EKSClient.d.ts +14 -5
- package/dist-types/commands/AssociateAccessPolicyCommand.d.ts +111 -0
- package/dist-types/commands/AssociateEncryptionConfigCommand.d.ts +8 -9
- package/dist-types/commands/AssociateIdentityProviderConfigCommand.d.ts +9 -10
- package/dist-types/commands/CreateAccessEntryCommand.d.ts +131 -0
- package/dist-types/commands/CreateAddonCommand.d.ts +2 -3
- package/dist-types/commands/CreateClusterCommand.d.ts +9 -1
- package/dist-types/commands/CreateFargateProfileCommand.d.ts +1 -1
- package/dist-types/commands/CreateNodegroupCommand.d.ts +8 -5
- package/dist-types/commands/CreatePodIdentityAssociationCommand.d.ts +3 -4
- package/dist-types/commands/DeleteAccessEntryCommand.d.ts +87 -0
- package/dist-types/commands/DeleteAddonCommand.d.ts +5 -6
- package/dist-types/commands/DeleteClusterCommand.d.ts +10 -6
- package/dist-types/commands/DeleteEksAnywhereSubscriptionCommand.d.ts +2 -3
- package/dist-types/commands/DeleteFargateProfileCommand.d.ts +8 -7
- package/dist-types/commands/DeleteNodegroupCommand.d.ts +3 -4
- package/dist-types/commands/DeletePodIdentityAssociationCommand.d.ts +2 -3
- package/dist-types/commands/DeregisterClusterCommand.d.ts +8 -3
- package/dist-types/commands/DescribeAccessEntryCommand.d.ts +100 -0
- package/dist-types/commands/DescribeAddonCommand.d.ts +2 -3
- package/dist-types/commands/DescribeAddonConfigurationCommand.d.ts +2 -3
- package/dist-types/commands/DescribeAddonVersionsCommand.d.ts +6 -6
- package/dist-types/commands/DescribeClusterCommand.d.ts +10 -6
- package/dist-types/commands/DescribeEksAnywhereSubscriptionCommand.d.ts +2 -3
- package/dist-types/commands/DescribeFargateProfileCommand.d.ts +3 -4
- package/dist-types/commands/DescribeIdentityProviderConfigCommand.d.ts +3 -4
- package/dist-types/commands/DescribeNodegroupCommand.d.ts +3 -4
- package/dist-types/commands/DescribePodIdentityAssociationCommand.d.ts +2 -3
- package/dist-types/commands/DescribeUpdateCommand.d.ts +5 -7
- package/dist-types/commands/DisassociateAccessPolicyCommand.d.ts +85 -0
- package/dist-types/commands/DisassociateIdentityProviderConfigCommand.d.ts +8 -9
- package/dist-types/commands/ListAccessEntriesCommand.d.ts +95 -0
- package/dist-types/commands/ListAccessPoliciesCommand.d.ts +83 -0
- package/dist-types/commands/ListAddonsCommand.d.ts +2 -3
- package/dist-types/commands/ListAssociatedAccessPoliciesCommand.d.ts +103 -0
- package/dist-types/commands/ListClustersCommand.d.ts +1 -1
- package/dist-types/commands/ListFargateProfilesCommand.d.ts +3 -4
- package/dist-types/commands/ListIdentityProviderConfigsCommand.d.ts +3 -4
- package/dist-types/commands/ListNodegroupsCommand.d.ts +4 -6
- package/dist-types/commands/ListPodIdentityAssociationsCommand.d.ts +2 -3
- package/dist-types/commands/ListUpdatesCommand.d.ts +3 -5
- package/dist-types/commands/RegisterClusterCommand.d.ts +8 -3
- package/dist-types/commands/TagResourceCommand.d.ts +6 -5
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAccessEntryCommand.d.ts +109 -0
- package/dist-types/commands/UpdateAddonCommand.d.ts +4 -5
- package/dist-types/commands/UpdateClusterConfigCommand.d.ts +9 -8
- package/dist-types/commands/UpdateClusterVersionCommand.d.ts +4 -5
- package/dist-types/commands/UpdateEksAnywhereSubscriptionCommand.d.ts +2 -3
- package/dist-types/commands/UpdateNodegroupConfigCommand.d.ts +4 -5
- package/dist-types/commands/UpdateNodegroupVersionCommand.d.ts +8 -9
- package/dist-types/commands/UpdatePodIdentityAssociationCommand.d.ts +3 -4
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/index.d.ts +3 -3
- package/dist-types/models/models_0.d.ts +1256 -556
- package/dist-types/pagination/ListAccessEntriesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAccessPoliciesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAssociatedAccessPoliciesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
- package/dist-types/ts3.4/EKS.d.ts +153 -0
- package/dist-types/ts3.4/EKSClient.d.ts +54 -0
- package/dist-types/ts3.4/commands/AssociateAccessPolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateAccessEntryCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteAccessEntryCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DescribeAccessEntryCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DisassociateAccessPolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListAccessEntriesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListAccessPoliciesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListAssociatedAccessPoliciesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateAccessEntryCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/models/models_0.d.ts +189 -54
- package/dist-types/ts3.4/pagination/ListAccessEntriesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAccessPoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAssociatedAccessPoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
- package/package.json +5 -4
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.se_UpdateClusterVersionCommand = exports.se_UpdateClusterConfigCommand = exports.se_UpdateAddonCommand = exports.se_UpdateAccessEntryCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RegisterClusterCommand = exports.se_ListUpdatesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListPodIdentityAssociationsCommand = exports.se_ListNodegroupsCommand = exports.se_ListIdentityProviderConfigsCommand = exports.se_ListFargateProfilesCommand = exports.se_ListEksAnywhereSubscriptionsCommand = exports.se_ListClustersCommand = exports.se_ListAssociatedAccessPoliciesCommand = exports.se_ListAddonsCommand = exports.se_ListAccessPoliciesCommand = exports.se_ListAccessEntriesCommand = exports.se_DisassociateIdentityProviderConfigCommand = exports.se_DisassociateAccessPolicyCommand = exports.se_DescribeUpdateCommand = exports.se_DescribePodIdentityAssociationCommand = exports.se_DescribeNodegroupCommand = exports.se_DescribeIdentityProviderConfigCommand = exports.se_DescribeFargateProfileCommand = exports.se_DescribeEksAnywhereSubscriptionCommand = exports.se_DescribeClusterCommand = exports.se_DescribeAddonVersionsCommand = exports.se_DescribeAddonConfigurationCommand = exports.se_DescribeAddonCommand = exports.se_DescribeAccessEntryCommand = exports.se_DeregisterClusterCommand = exports.se_DeletePodIdentityAssociationCommand = exports.se_DeleteNodegroupCommand = exports.se_DeleteFargateProfileCommand = exports.se_DeleteEksAnywhereSubscriptionCommand = exports.se_DeleteClusterCommand = exports.se_DeleteAddonCommand = exports.se_DeleteAccessEntryCommand = exports.se_CreatePodIdentityAssociationCommand = exports.se_CreateNodegroupCommand = exports.se_CreateFargateProfileCommand = exports.se_CreateEksAnywhereSubscriptionCommand = exports.se_CreateClusterCommand = exports.se_CreateAddonCommand = exports.se_CreateAccessEntryCommand = exports.se_AssociateIdentityProviderConfigCommand = exports.se_AssociateEncryptionConfigCommand = exports.se_AssociateAccessPolicyCommand = void 0;
|
|
4
|
+
exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RegisterClusterCommand = exports.de_ListUpdatesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListPodIdentityAssociationsCommand = exports.de_ListNodegroupsCommand = exports.de_ListIdentityProviderConfigsCommand = exports.de_ListFargateProfilesCommand = exports.de_ListEksAnywhereSubscriptionsCommand = exports.de_ListClustersCommand = exports.de_ListAssociatedAccessPoliciesCommand = exports.de_ListAddonsCommand = exports.de_ListAccessPoliciesCommand = exports.de_ListAccessEntriesCommand = exports.de_DisassociateIdentityProviderConfigCommand = exports.de_DisassociateAccessPolicyCommand = exports.de_DescribeUpdateCommand = exports.de_DescribePodIdentityAssociationCommand = exports.de_DescribeNodegroupCommand = exports.de_DescribeIdentityProviderConfigCommand = exports.de_DescribeFargateProfileCommand = exports.de_DescribeEksAnywhereSubscriptionCommand = exports.de_DescribeClusterCommand = exports.de_DescribeAddonVersionsCommand = exports.de_DescribeAddonConfigurationCommand = exports.de_DescribeAddonCommand = exports.de_DescribeAccessEntryCommand = exports.de_DeregisterClusterCommand = exports.de_DeletePodIdentityAssociationCommand = exports.de_DeleteNodegroupCommand = exports.de_DeleteFargateProfileCommand = exports.de_DeleteEksAnywhereSubscriptionCommand = exports.de_DeleteClusterCommand = exports.de_DeleteAddonCommand = exports.de_DeleteAccessEntryCommand = exports.de_CreatePodIdentityAssociationCommand = exports.de_CreateNodegroupCommand = exports.de_CreateFargateProfileCommand = exports.de_CreateEksAnywhereSubscriptionCommand = exports.de_CreateClusterCommand = exports.de_CreateAddonCommand = exports.de_CreateAccessEntryCommand = exports.de_AssociateIdentityProviderConfigCommand = exports.de_AssociateEncryptionConfigCommand = exports.de_AssociateAccessPolicyCommand = exports.se_UpdatePodIdentityAssociationCommand = exports.se_UpdateNodegroupVersionCommand = exports.se_UpdateNodegroupConfigCommand = exports.se_UpdateEksAnywhereSubscriptionCommand = void 0;
|
|
5
|
+
exports.de_UpdatePodIdentityAssociationCommand = exports.de_UpdateNodegroupVersionCommand = exports.de_UpdateNodegroupConfigCommand = exports.de_UpdateEksAnywhereSubscriptionCommand = exports.de_UpdateClusterVersionCommand = exports.de_UpdateClusterConfigCommand = exports.de_UpdateAddonCommand = exports.de_UpdateAccessEntryCommand = void 0;
|
|
6
|
+
const core_1 = require("@smithy/core");
|
|
5
7
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
8
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
9
|
const uuid_1 = require("uuid");
|
|
8
10
|
const EKSServiceException_1 = require("../models/EKSServiceException");
|
|
9
11
|
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const
|
|
12
|
+
const se_AssociateAccessPolicyCommand = async (input, context) => {
|
|
11
13
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
12
14
|
const headers = {
|
|
13
15
|
"content-type": "application/json",
|
|
14
16
|
};
|
|
15
17
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
16
|
-
"/clusters/{clusterName}/
|
|
18
|
+
"/clusters/{clusterName}/access-entries/{principalArn}/access-policies";
|
|
17
19
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
20
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
|
|
18
21
|
let body;
|
|
19
22
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
accessScope: (_) => (0, smithy_client_1._json)(_),
|
|
24
|
+
policyArn: [],
|
|
22
25
|
}));
|
|
23
26
|
return new protocol_http_1.HttpRequest({
|
|
24
27
|
protocol,
|
|
@@ -30,20 +33,55 @@ const se_AssociateEncryptionConfigCommand = async (input, context) => {
|
|
|
30
33
|
body,
|
|
31
34
|
});
|
|
32
35
|
};
|
|
36
|
+
exports.se_AssociateAccessPolicyCommand = se_AssociateAccessPolicyCommand;
|
|
37
|
+
const se_AssociateEncryptionConfigCommand = async (input, context) => {
|
|
38
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
39
|
+
const headers = {
|
|
40
|
+
"content-type": "application/json",
|
|
41
|
+
};
|
|
42
|
+
b.bp("/clusters/{clusterName}/encryption-config/associate");
|
|
43
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
44
|
+
let body;
|
|
45
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
46
|
+
clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
47
|
+
encryptionConfig: (_) => (0, smithy_client_1._json)(_),
|
|
48
|
+
}));
|
|
49
|
+
b.m("POST").h(headers).b(body);
|
|
50
|
+
return b.build();
|
|
51
|
+
};
|
|
33
52
|
exports.se_AssociateEncryptionConfigCommand = se_AssociateEncryptionConfigCommand;
|
|
34
53
|
const se_AssociateIdentityProviderConfigCommand = async (input, context) => {
|
|
54
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
55
|
+
const headers = {
|
|
56
|
+
"content-type": "application/json",
|
|
57
|
+
};
|
|
58
|
+
b.bp("/clusters/{clusterName}/identity-provider-configs/associate");
|
|
59
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
60
|
+
let body;
|
|
61
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
62
|
+
clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
63
|
+
oidc: (_) => (0, smithy_client_1._json)(_),
|
|
64
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
65
|
+
}));
|
|
66
|
+
b.m("POST").h(headers).b(body);
|
|
67
|
+
return b.build();
|
|
68
|
+
};
|
|
69
|
+
exports.se_AssociateIdentityProviderConfigCommand = se_AssociateIdentityProviderConfigCommand;
|
|
70
|
+
const se_CreateAccessEntryCommand = async (input, context) => {
|
|
35
71
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
36
72
|
const headers = {
|
|
37
73
|
"content-type": "application/json",
|
|
38
74
|
};
|
|
39
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
40
|
-
"/clusters/{clusterName}/identity-provider-configs/associate";
|
|
75
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/access-entries";
|
|
41
76
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
42
77
|
let body;
|
|
43
78
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
44
79
|
clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
45
|
-
|
|
80
|
+
kubernetesGroups: (_) => (0, smithy_client_1._json)(_),
|
|
81
|
+
principalArn: [],
|
|
46
82
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
83
|
+
type: [],
|
|
84
|
+
username: [],
|
|
47
85
|
}));
|
|
48
86
|
return new protocol_http_1.HttpRequest({
|
|
49
87
|
protocol,
|
|
@@ -55,14 +93,14 @@ const se_AssociateIdentityProviderConfigCommand = async (input, context) => {
|
|
|
55
93
|
body,
|
|
56
94
|
});
|
|
57
95
|
};
|
|
58
|
-
exports.
|
|
96
|
+
exports.se_CreateAccessEntryCommand = se_CreateAccessEntryCommand;
|
|
59
97
|
const se_CreateAddonCommand = async (input, context) => {
|
|
60
|
-
const
|
|
98
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
61
99
|
const headers = {
|
|
62
100
|
"content-type": "application/json",
|
|
63
101
|
};
|
|
64
|
-
|
|
65
|
-
|
|
102
|
+
b.bp("/clusters/{clusterName}/addons");
|
|
103
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
66
104
|
let body;
|
|
67
105
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
68
106
|
addonName: [],
|
|
@@ -73,25 +111,19 @@ const se_CreateAddonCommand = async (input, context) => {
|
|
|
73
111
|
serviceAccountRoleArn: [],
|
|
74
112
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
75
113
|
}));
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
hostname,
|
|
79
|
-
port,
|
|
80
|
-
method: "POST",
|
|
81
|
-
headers,
|
|
82
|
-
path: resolvedPath,
|
|
83
|
-
body,
|
|
84
|
-
});
|
|
114
|
+
b.m("POST").h(headers).b(body);
|
|
115
|
+
return b.build();
|
|
85
116
|
};
|
|
86
117
|
exports.se_CreateAddonCommand = se_CreateAddonCommand;
|
|
87
118
|
const se_CreateClusterCommand = async (input, context) => {
|
|
88
|
-
const
|
|
119
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
89
120
|
const headers = {
|
|
90
121
|
"content-type": "application/json",
|
|
91
122
|
};
|
|
92
|
-
|
|
123
|
+
b.bp("/clusters");
|
|
93
124
|
let body;
|
|
94
125
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
126
|
+
accessConfig: (_) => (0, smithy_client_1._json)(_),
|
|
95
127
|
clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
96
128
|
encryptionConfig: (_) => (0, smithy_client_1._json)(_),
|
|
97
129
|
kubernetesNetworkConfig: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -103,23 +135,16 @@ const se_CreateClusterCommand = async (input, context) => {
|
|
|
103
135
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
104
136
|
version: [],
|
|
105
137
|
}));
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
hostname,
|
|
109
|
-
port,
|
|
110
|
-
method: "POST",
|
|
111
|
-
headers,
|
|
112
|
-
path: resolvedPath,
|
|
113
|
-
body,
|
|
114
|
-
});
|
|
138
|
+
b.m("POST").h(headers).b(body);
|
|
139
|
+
return b.build();
|
|
115
140
|
};
|
|
116
141
|
exports.se_CreateClusterCommand = se_CreateClusterCommand;
|
|
117
142
|
const se_CreateEksAnywhereSubscriptionCommand = async (input, context) => {
|
|
118
|
-
const
|
|
143
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
119
144
|
const headers = {
|
|
120
145
|
"content-type": "application/json",
|
|
121
146
|
};
|
|
122
|
-
|
|
147
|
+
b.bp("/eks-anywhere-subscriptions");
|
|
123
148
|
let body;
|
|
124
149
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
125
150
|
autoRenew: [],
|
|
@@ -130,24 +155,17 @@ const se_CreateEksAnywhereSubscriptionCommand = async (input, context) => {
|
|
|
130
155
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
131
156
|
term: (_) => (0, smithy_client_1._json)(_),
|
|
132
157
|
}));
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
hostname,
|
|
136
|
-
port,
|
|
137
|
-
method: "POST",
|
|
138
|
-
headers,
|
|
139
|
-
path: resolvedPath,
|
|
140
|
-
body,
|
|
141
|
-
});
|
|
158
|
+
b.m("POST").h(headers).b(body);
|
|
159
|
+
return b.build();
|
|
142
160
|
};
|
|
143
161
|
exports.se_CreateEksAnywhereSubscriptionCommand = se_CreateEksAnywhereSubscriptionCommand;
|
|
144
162
|
const se_CreateFargateProfileCommand = async (input, context) => {
|
|
145
|
-
const
|
|
163
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
146
164
|
const headers = {
|
|
147
165
|
"content-type": "application/json",
|
|
148
166
|
};
|
|
149
|
-
|
|
150
|
-
|
|
167
|
+
b.bp("/clusters/{clusterName}/fargate-profiles");
|
|
168
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
151
169
|
let body;
|
|
152
170
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
153
171
|
clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -157,24 +175,17 @@ const se_CreateFargateProfileCommand = async (input, context) => {
|
|
|
157
175
|
subnets: (_) => (0, smithy_client_1._json)(_),
|
|
158
176
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
159
177
|
}));
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
hostname,
|
|
163
|
-
port,
|
|
164
|
-
method: "POST",
|
|
165
|
-
headers,
|
|
166
|
-
path: resolvedPath,
|
|
167
|
-
body,
|
|
168
|
-
});
|
|
178
|
+
b.m("POST").h(headers).b(body);
|
|
179
|
+
return b.build();
|
|
169
180
|
};
|
|
170
181
|
exports.se_CreateFargateProfileCommand = se_CreateFargateProfileCommand;
|
|
171
182
|
const se_CreateNodegroupCommand = async (input, context) => {
|
|
172
|
-
const
|
|
183
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
173
184
|
const headers = {
|
|
174
185
|
"content-type": "application/json",
|
|
175
186
|
};
|
|
176
|
-
|
|
177
|
-
|
|
187
|
+
b.bp("/clusters/{clusterName}/node-groups");
|
|
188
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
178
189
|
let body;
|
|
179
190
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
180
191
|
amiType: [],
|
|
@@ -195,25 +206,17 @@ const se_CreateNodegroupCommand = async (input, context) => {
|
|
|
195
206
|
updateConfig: (_) => (0, smithy_client_1._json)(_),
|
|
196
207
|
version: [],
|
|
197
208
|
}));
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
hostname,
|
|
201
|
-
port,
|
|
202
|
-
method: "POST",
|
|
203
|
-
headers,
|
|
204
|
-
path: resolvedPath,
|
|
205
|
-
body,
|
|
206
|
-
});
|
|
209
|
+
b.m("POST").h(headers).b(body);
|
|
210
|
+
return b.build();
|
|
207
211
|
};
|
|
208
212
|
exports.se_CreateNodegroupCommand = se_CreateNodegroupCommand;
|
|
209
213
|
const se_CreatePodIdentityAssociationCommand = async (input, context) => {
|
|
210
|
-
const
|
|
214
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
211
215
|
const headers = {
|
|
212
216
|
"content-type": "application/json",
|
|
213
217
|
};
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
218
|
+
b.bp("/clusters/{clusterName}/pod-identity-associations");
|
|
219
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
217
220
|
let body;
|
|
218
221
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
219
222
|
clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -222,27 +225,17 @@ const se_CreatePodIdentityAssociationCommand = async (input, context) => {
|
|
|
222
225
|
serviceAccount: [],
|
|
223
226
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
224
227
|
}));
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
hostname,
|
|
228
|
-
port,
|
|
229
|
-
method: "POST",
|
|
230
|
-
headers,
|
|
231
|
-
path: resolvedPath,
|
|
232
|
-
body,
|
|
233
|
-
});
|
|
228
|
+
b.m("POST").h(headers).b(body);
|
|
229
|
+
return b.build();
|
|
234
230
|
};
|
|
235
231
|
exports.se_CreatePodIdentityAssociationCommand = se_CreatePodIdentityAssociationCommand;
|
|
236
|
-
const
|
|
232
|
+
const se_DeleteAccessEntryCommand = async (input, context) => {
|
|
237
233
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
238
234
|
const headers = {};
|
|
239
235
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
240
|
-
"/clusters/{clusterName}/
|
|
236
|
+
"/clusters/{clusterName}/access-entries/{principalArn}";
|
|
241
237
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
242
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "
|
|
243
|
-
const query = (0, smithy_client_1.map)({
|
|
244
|
-
preserve: [() => input.preserve !== void 0, () => input.preserve.toString()],
|
|
245
|
-
});
|
|
238
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
|
|
246
239
|
let body;
|
|
247
240
|
return new protocol_http_1.HttpRequest({
|
|
248
241
|
protocol,
|
|
@@ -251,126 +244,94 @@ const se_DeleteAddonCommand = async (input, context) => {
|
|
|
251
244
|
method: "DELETE",
|
|
252
245
|
headers,
|
|
253
246
|
path: resolvedPath,
|
|
254
|
-
query,
|
|
255
247
|
body,
|
|
256
248
|
});
|
|
257
249
|
};
|
|
250
|
+
exports.se_DeleteAccessEntryCommand = se_DeleteAccessEntryCommand;
|
|
251
|
+
const se_DeleteAddonCommand = async (input, context) => {
|
|
252
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
253
|
+
const headers = {};
|
|
254
|
+
b.bp("/clusters/{clusterName}/addons/{addonName}");
|
|
255
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
256
|
+
b.p("addonName", () => input.addonName, "{addonName}", false);
|
|
257
|
+
const query = (0, smithy_client_1.map)({
|
|
258
|
+
[_p]: [() => input.preserve !== void 0, () => input[_p].toString()],
|
|
259
|
+
});
|
|
260
|
+
let body;
|
|
261
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
262
|
+
return b.build();
|
|
263
|
+
};
|
|
258
264
|
exports.se_DeleteAddonCommand = se_DeleteAddonCommand;
|
|
259
265
|
const se_DeleteClusterCommand = async (input, context) => {
|
|
260
|
-
const
|
|
266
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
261
267
|
const headers = {};
|
|
262
|
-
|
|
263
|
-
|
|
268
|
+
b.bp("/clusters/{name}");
|
|
269
|
+
b.p("name", () => input.name, "{name}", false);
|
|
264
270
|
let body;
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
hostname,
|
|
268
|
-
port,
|
|
269
|
-
method: "DELETE",
|
|
270
|
-
headers,
|
|
271
|
-
path: resolvedPath,
|
|
272
|
-
body,
|
|
273
|
-
});
|
|
271
|
+
b.m("DELETE").h(headers).b(body);
|
|
272
|
+
return b.build();
|
|
274
273
|
};
|
|
275
274
|
exports.se_DeleteClusterCommand = se_DeleteClusterCommand;
|
|
276
275
|
const se_DeleteEksAnywhereSubscriptionCommand = async (input, context) => {
|
|
277
|
-
const
|
|
276
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
278
277
|
const headers = {};
|
|
279
|
-
|
|
280
|
-
|
|
278
|
+
b.bp("/eks-anywhere-subscriptions/{id}");
|
|
279
|
+
b.p("id", () => input.id, "{id}", false);
|
|
281
280
|
let body;
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
hostname,
|
|
285
|
-
port,
|
|
286
|
-
method: "DELETE",
|
|
287
|
-
headers,
|
|
288
|
-
path: resolvedPath,
|
|
289
|
-
body,
|
|
290
|
-
});
|
|
281
|
+
b.m("DELETE").h(headers).b(body);
|
|
282
|
+
return b.build();
|
|
291
283
|
};
|
|
292
284
|
exports.se_DeleteEksAnywhereSubscriptionCommand = se_DeleteEksAnywhereSubscriptionCommand;
|
|
293
285
|
const se_DeleteFargateProfileCommand = async (input, context) => {
|
|
294
|
-
const
|
|
286
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
295
287
|
const headers = {};
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
|
|
288
|
+
b.bp("/clusters/{clusterName}/fargate-profiles/{fargateProfileName}");
|
|
289
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
290
|
+
b.p("fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
|
|
300
291
|
let body;
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
hostname,
|
|
304
|
-
port,
|
|
305
|
-
method: "DELETE",
|
|
306
|
-
headers,
|
|
307
|
-
path: resolvedPath,
|
|
308
|
-
body,
|
|
309
|
-
});
|
|
292
|
+
b.m("DELETE").h(headers).b(body);
|
|
293
|
+
return b.build();
|
|
310
294
|
};
|
|
311
295
|
exports.se_DeleteFargateProfileCommand = se_DeleteFargateProfileCommand;
|
|
312
296
|
const se_DeleteNodegroupCommand = async (input, context) => {
|
|
313
|
-
const
|
|
297
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
314
298
|
const headers = {};
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
|
|
299
|
+
b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}");
|
|
300
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
301
|
+
b.p("nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
|
|
319
302
|
let body;
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
hostname,
|
|
323
|
-
port,
|
|
324
|
-
method: "DELETE",
|
|
325
|
-
headers,
|
|
326
|
-
path: resolvedPath,
|
|
327
|
-
body,
|
|
328
|
-
});
|
|
303
|
+
b.m("DELETE").h(headers).b(body);
|
|
304
|
+
return b.build();
|
|
329
305
|
};
|
|
330
306
|
exports.se_DeleteNodegroupCommand = se_DeleteNodegroupCommand;
|
|
331
307
|
const se_DeletePodIdentityAssociationCommand = async (input, context) => {
|
|
332
|
-
const
|
|
308
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
333
309
|
const headers = {};
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
|
|
310
|
+
b.bp("/clusters/{clusterName}/pod-identity-associations/{associationId}");
|
|
311
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
312
|
+
b.p("associationId", () => input.associationId, "{associationId}", false);
|
|
338
313
|
let body;
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
hostname,
|
|
342
|
-
port,
|
|
343
|
-
method: "DELETE",
|
|
344
|
-
headers,
|
|
345
|
-
path: resolvedPath,
|
|
346
|
-
body,
|
|
347
|
-
});
|
|
314
|
+
b.m("DELETE").h(headers).b(body);
|
|
315
|
+
return b.build();
|
|
348
316
|
};
|
|
349
317
|
exports.se_DeletePodIdentityAssociationCommand = se_DeletePodIdentityAssociationCommand;
|
|
350
318
|
const se_DeregisterClusterCommand = async (input, context) => {
|
|
351
|
-
const
|
|
319
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
352
320
|
const headers = {};
|
|
353
|
-
|
|
354
|
-
|
|
321
|
+
b.bp("/cluster-registrations/{name}");
|
|
322
|
+
b.p("name", () => input.name, "{name}", false);
|
|
355
323
|
let body;
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
hostname,
|
|
359
|
-
port,
|
|
360
|
-
method: "DELETE",
|
|
361
|
-
headers,
|
|
362
|
-
path: resolvedPath,
|
|
363
|
-
body,
|
|
364
|
-
});
|
|
324
|
+
b.m("DELETE").h(headers).b(body);
|
|
325
|
+
return b.build();
|
|
365
326
|
};
|
|
366
327
|
exports.se_DeregisterClusterCommand = se_DeregisterClusterCommand;
|
|
367
|
-
const
|
|
328
|
+
const se_DescribeAccessEntryCommand = async (input, context) => {
|
|
368
329
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
369
330
|
const headers = {};
|
|
370
331
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
371
|
-
"/clusters/{clusterName}/
|
|
332
|
+
"/clusters/{clusterName}/access-entries/{principalArn}";
|
|
372
333
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
373
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "
|
|
334
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
|
|
374
335
|
let body;
|
|
375
336
|
return new protocol_http_1.HttpRequest({
|
|
376
337
|
protocol,
|
|
@@ -382,221 +343,175 @@ const se_DescribeAddonCommand = async (input, context) => {
|
|
|
382
343
|
body,
|
|
383
344
|
});
|
|
384
345
|
};
|
|
346
|
+
exports.se_DescribeAccessEntryCommand = se_DescribeAccessEntryCommand;
|
|
347
|
+
const se_DescribeAddonCommand = async (input, context) => {
|
|
348
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
349
|
+
const headers = {};
|
|
350
|
+
b.bp("/clusters/{clusterName}/addons/{addonName}");
|
|
351
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
352
|
+
b.p("addonName", () => input.addonName, "{addonName}", false);
|
|
353
|
+
let body;
|
|
354
|
+
b.m("GET").h(headers).b(body);
|
|
355
|
+
return b.build();
|
|
356
|
+
};
|
|
385
357
|
exports.se_DescribeAddonCommand = se_DescribeAddonCommand;
|
|
386
358
|
const se_DescribeAddonConfigurationCommand = async (input, context) => {
|
|
387
|
-
const
|
|
359
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
388
360
|
const headers = {};
|
|
389
|
-
|
|
361
|
+
b.bp("/addons/configuration-schemas");
|
|
390
362
|
const query = (0, smithy_client_1.map)({
|
|
391
|
-
|
|
392
|
-
|
|
363
|
+
[_aN]: [, (0, smithy_client_1.expectNonNull)(input[_aN], `addonName`)],
|
|
364
|
+
[_aV]: [, (0, smithy_client_1.expectNonNull)(input[_aV], `addonVersion`)],
|
|
393
365
|
});
|
|
394
366
|
let body;
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
hostname,
|
|
398
|
-
port,
|
|
399
|
-
method: "GET",
|
|
400
|
-
headers,
|
|
401
|
-
path: resolvedPath,
|
|
402
|
-
query,
|
|
403
|
-
body,
|
|
404
|
-
});
|
|
367
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
368
|
+
return b.build();
|
|
405
369
|
};
|
|
406
370
|
exports.se_DescribeAddonConfigurationCommand = se_DescribeAddonConfigurationCommand;
|
|
407
371
|
const se_DescribeAddonVersionsCommand = async (input, context) => {
|
|
408
|
-
const
|
|
372
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
409
373
|
const headers = {};
|
|
410
|
-
|
|
374
|
+
b.bp("/addons/supported-versions");
|
|
411
375
|
const query = (0, smithy_client_1.map)({
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
376
|
+
[_kV]: [, input[_kV]],
|
|
377
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
378
|
+
[_nT]: [, input[_nT]],
|
|
379
|
+
[_aN]: [, input[_aN]],
|
|
380
|
+
[_t]: [() => input.types !== void 0, () => (input[_t] || []).map((_entry) => _entry)],
|
|
381
|
+
[_pu]: [() => input.publishers !== void 0, () => (input[_pu] || []).map((_entry) => _entry)],
|
|
382
|
+
[_o]: [() => input.owners !== void 0, () => (input[_o] || []).map((_entry) => _entry)],
|
|
419
383
|
});
|
|
420
384
|
let body;
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
hostname,
|
|
424
|
-
port,
|
|
425
|
-
method: "GET",
|
|
426
|
-
headers,
|
|
427
|
-
path: resolvedPath,
|
|
428
|
-
query,
|
|
429
|
-
body,
|
|
430
|
-
});
|
|
385
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
386
|
+
return b.build();
|
|
431
387
|
};
|
|
432
388
|
exports.se_DescribeAddonVersionsCommand = se_DescribeAddonVersionsCommand;
|
|
433
389
|
const se_DescribeClusterCommand = async (input, context) => {
|
|
434
|
-
const
|
|
390
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
435
391
|
const headers = {};
|
|
436
|
-
|
|
437
|
-
|
|
392
|
+
b.bp("/clusters/{name}");
|
|
393
|
+
b.p("name", () => input.name, "{name}", false);
|
|
438
394
|
let body;
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
hostname,
|
|
442
|
-
port,
|
|
443
|
-
method: "GET",
|
|
444
|
-
headers,
|
|
445
|
-
path: resolvedPath,
|
|
446
|
-
body,
|
|
447
|
-
});
|
|
395
|
+
b.m("GET").h(headers).b(body);
|
|
396
|
+
return b.build();
|
|
448
397
|
};
|
|
449
398
|
exports.se_DescribeClusterCommand = se_DescribeClusterCommand;
|
|
450
399
|
const se_DescribeEksAnywhereSubscriptionCommand = async (input, context) => {
|
|
451
|
-
const
|
|
400
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
452
401
|
const headers = {};
|
|
453
|
-
|
|
454
|
-
|
|
402
|
+
b.bp("/eks-anywhere-subscriptions/{id}");
|
|
403
|
+
b.p("id", () => input.id, "{id}", false);
|
|
455
404
|
let body;
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
hostname,
|
|
459
|
-
port,
|
|
460
|
-
method: "GET",
|
|
461
|
-
headers,
|
|
462
|
-
path: resolvedPath,
|
|
463
|
-
body,
|
|
464
|
-
});
|
|
405
|
+
b.m("GET").h(headers).b(body);
|
|
406
|
+
return b.build();
|
|
465
407
|
};
|
|
466
408
|
exports.se_DescribeEksAnywhereSubscriptionCommand = se_DescribeEksAnywhereSubscriptionCommand;
|
|
467
409
|
const se_DescribeFargateProfileCommand = async (input, context) => {
|
|
468
|
-
const
|
|
410
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
469
411
|
const headers = {};
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
|
|
412
|
+
b.bp("/clusters/{clusterName}/fargate-profiles/{fargateProfileName}");
|
|
413
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
414
|
+
b.p("fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
|
|
474
415
|
let body;
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
hostname,
|
|
478
|
-
port,
|
|
479
|
-
method: "GET",
|
|
480
|
-
headers,
|
|
481
|
-
path: resolvedPath,
|
|
482
|
-
body,
|
|
483
|
-
});
|
|
416
|
+
b.m("GET").h(headers).b(body);
|
|
417
|
+
return b.build();
|
|
484
418
|
};
|
|
485
419
|
exports.se_DescribeFargateProfileCommand = se_DescribeFargateProfileCommand;
|
|
486
420
|
const se_DescribeIdentityProviderConfigCommand = async (input, context) => {
|
|
487
|
-
const
|
|
421
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
488
422
|
const headers = {
|
|
489
423
|
"content-type": "application/json",
|
|
490
424
|
};
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
425
|
+
b.bp("/clusters/{clusterName}/identity-provider-configs/describe");
|
|
426
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
494
427
|
let body;
|
|
495
428
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
496
429
|
identityProviderConfig: (_) => (0, smithy_client_1._json)(_),
|
|
497
430
|
}));
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
hostname,
|
|
501
|
-
port,
|
|
502
|
-
method: "POST",
|
|
503
|
-
headers,
|
|
504
|
-
path: resolvedPath,
|
|
505
|
-
body,
|
|
506
|
-
});
|
|
431
|
+
b.m("POST").h(headers).b(body);
|
|
432
|
+
return b.build();
|
|
507
433
|
};
|
|
508
434
|
exports.se_DescribeIdentityProviderConfigCommand = se_DescribeIdentityProviderConfigCommand;
|
|
509
435
|
const se_DescribeNodegroupCommand = async (input, context) => {
|
|
510
|
-
const
|
|
436
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
511
437
|
const headers = {};
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
|
|
438
|
+
b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}");
|
|
439
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
440
|
+
b.p("nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
|
|
516
441
|
let body;
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
hostname,
|
|
520
|
-
port,
|
|
521
|
-
method: "GET",
|
|
522
|
-
headers,
|
|
523
|
-
path: resolvedPath,
|
|
524
|
-
body,
|
|
525
|
-
});
|
|
442
|
+
b.m("GET").h(headers).b(body);
|
|
443
|
+
return b.build();
|
|
526
444
|
};
|
|
527
445
|
exports.se_DescribeNodegroupCommand = se_DescribeNodegroupCommand;
|
|
528
446
|
const se_DescribePodIdentityAssociationCommand = async (input, context) => {
|
|
529
|
-
const
|
|
447
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
530
448
|
const headers = {};
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
|
|
449
|
+
b.bp("/clusters/{clusterName}/pod-identity-associations/{associationId}");
|
|
450
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
451
|
+
b.p("associationId", () => input.associationId, "{associationId}", false);
|
|
535
452
|
let body;
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
hostname,
|
|
539
|
-
port,
|
|
540
|
-
method: "GET",
|
|
541
|
-
headers,
|
|
542
|
-
path: resolvedPath,
|
|
543
|
-
body,
|
|
544
|
-
});
|
|
453
|
+
b.m("GET").h(headers).b(body);
|
|
454
|
+
return b.build();
|
|
545
455
|
};
|
|
546
456
|
exports.se_DescribePodIdentityAssociationCommand = se_DescribePodIdentityAssociationCommand;
|
|
547
457
|
const se_DescribeUpdateCommand = async (input, context) => {
|
|
548
|
-
const
|
|
458
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
549
459
|
const headers = {};
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
460
|
+
b.bp("/clusters/{name}/updates/{updateId}");
|
|
461
|
+
b.p("name", () => input.name, "{name}", false);
|
|
462
|
+
b.p("updateId", () => input.updateId, "{updateId}", false);
|
|
553
463
|
const query = (0, smithy_client_1.map)({
|
|
554
|
-
|
|
555
|
-
|
|
464
|
+
[_nN]: [, input[_nN]],
|
|
465
|
+
[_aN]: [, input[_aN]],
|
|
556
466
|
});
|
|
557
467
|
let body;
|
|
468
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
469
|
+
return b.build();
|
|
470
|
+
};
|
|
471
|
+
exports.se_DescribeUpdateCommand = se_DescribeUpdateCommand;
|
|
472
|
+
const se_DisassociateAccessPolicyCommand = async (input, context) => {
|
|
473
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
474
|
+
const headers = {};
|
|
475
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
476
|
+
"/clusters/{clusterName}/access-entries/{principalArn}/access-policies/{policyArn}";
|
|
477
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
478
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
|
|
479
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "policyArn", () => input.policyArn, "{policyArn}", false);
|
|
480
|
+
let body;
|
|
558
481
|
return new protocol_http_1.HttpRequest({
|
|
559
482
|
protocol,
|
|
560
483
|
hostname,
|
|
561
484
|
port,
|
|
562
|
-
method: "
|
|
485
|
+
method: "DELETE",
|
|
563
486
|
headers,
|
|
564
487
|
path: resolvedPath,
|
|
565
|
-
query,
|
|
566
488
|
body,
|
|
567
489
|
});
|
|
568
490
|
};
|
|
569
|
-
exports.
|
|
491
|
+
exports.se_DisassociateAccessPolicyCommand = se_DisassociateAccessPolicyCommand;
|
|
570
492
|
const se_DisassociateIdentityProviderConfigCommand = async (input, context) => {
|
|
571
|
-
const
|
|
493
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
572
494
|
const headers = {
|
|
573
495
|
"content-type": "application/json",
|
|
574
496
|
};
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
497
|
+
b.bp("/clusters/{clusterName}/identity-provider-configs/disassociate");
|
|
498
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
578
499
|
let body;
|
|
579
500
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
580
501
|
clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
581
502
|
identityProviderConfig: (_) => (0, smithy_client_1._json)(_),
|
|
582
503
|
}));
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
hostname,
|
|
586
|
-
port,
|
|
587
|
-
method: "POST",
|
|
588
|
-
headers,
|
|
589
|
-
path: resolvedPath,
|
|
590
|
-
body,
|
|
591
|
-
});
|
|
504
|
+
b.m("POST").h(headers).b(body);
|
|
505
|
+
return b.build();
|
|
592
506
|
};
|
|
593
507
|
exports.se_DisassociateIdentityProviderConfigCommand = se_DisassociateIdentityProviderConfigCommand;
|
|
594
|
-
const
|
|
508
|
+
const se_ListAccessEntriesCommand = async (input, context) => {
|
|
595
509
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
596
510
|
const headers = {};
|
|
597
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/
|
|
511
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/access-entries";
|
|
598
512
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
599
513
|
const query = (0, smithy_client_1.map)({
|
|
514
|
+
associatedPolicyArn: [, input.associatedPolicyArn],
|
|
600
515
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
601
516
|
nextToken: [, input.nextToken],
|
|
602
517
|
});
|
|
@@ -612,15 +527,14 @@ const se_ListAddonsCommand = async (input, context) => {
|
|
|
612
527
|
body,
|
|
613
528
|
});
|
|
614
529
|
};
|
|
615
|
-
exports.
|
|
616
|
-
const
|
|
530
|
+
exports.se_ListAccessEntriesCommand = se_ListAccessEntriesCommand;
|
|
531
|
+
const se_ListAccessPoliciesCommand = async (input, context) => {
|
|
617
532
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
618
533
|
const headers = {};
|
|
619
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/
|
|
534
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies";
|
|
620
535
|
const query = (0, smithy_client_1.map)({
|
|
621
536
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
622
537
|
nextToken: [, input.nextToken],
|
|
623
|
-
include: [() => input.include !== void 0, () => (input.include || []).map((_entry) => _entry)],
|
|
624
538
|
});
|
|
625
539
|
let body;
|
|
626
540
|
return new protocol_http_1.HttpRequest({
|
|
@@ -634,18 +548,31 @@ const se_ListClustersCommand = async (input, context) => {
|
|
|
634
548
|
body,
|
|
635
549
|
});
|
|
636
550
|
};
|
|
637
|
-
exports.
|
|
638
|
-
const
|
|
551
|
+
exports.se_ListAccessPoliciesCommand = se_ListAccessPoliciesCommand;
|
|
552
|
+
const se_ListAddonsCommand = async (input, context) => {
|
|
553
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
554
|
+
const headers = {};
|
|
555
|
+
b.bp("/clusters/{clusterName}/addons");
|
|
556
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
557
|
+
const query = (0, smithy_client_1.map)({
|
|
558
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
559
|
+
[_nT]: [, input[_nT]],
|
|
560
|
+
});
|
|
561
|
+
let body;
|
|
562
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
563
|
+
return b.build();
|
|
564
|
+
};
|
|
565
|
+
exports.se_ListAddonsCommand = se_ListAddonsCommand;
|
|
566
|
+
const se_ListAssociatedAccessPoliciesCommand = async (input, context) => {
|
|
639
567
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
640
568
|
const headers = {};
|
|
641
|
-
|
|
569
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
570
|
+
"/clusters/{clusterName}/access-entries/{principalArn}/access-policies";
|
|
571
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
572
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
|
|
642
573
|
const query = (0, smithy_client_1.map)({
|
|
643
574
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
644
575
|
nextToken: [, input.nextToken],
|
|
645
|
-
includeStatus: [
|
|
646
|
-
() => input.includeStatus !== void 0,
|
|
647
|
-
() => (input.includeStatus || []).map((_entry) => _entry),
|
|
648
|
-
],
|
|
649
576
|
});
|
|
650
577
|
let body;
|
|
651
578
|
return new protocol_http_1.HttpRequest({
|
|
@@ -659,146 +586,125 @@ const se_ListEksAnywhereSubscriptionsCommand = async (input, context) => {
|
|
|
659
586
|
body,
|
|
660
587
|
});
|
|
661
588
|
};
|
|
589
|
+
exports.se_ListAssociatedAccessPoliciesCommand = se_ListAssociatedAccessPoliciesCommand;
|
|
590
|
+
const se_ListClustersCommand = async (input, context) => {
|
|
591
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
592
|
+
const headers = {};
|
|
593
|
+
b.bp("/clusters");
|
|
594
|
+
const query = (0, smithy_client_1.map)({
|
|
595
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
596
|
+
[_nT]: [, input[_nT]],
|
|
597
|
+
[_i]: [() => input.include !== void 0, () => (input[_i] || []).map((_entry) => _entry)],
|
|
598
|
+
});
|
|
599
|
+
let body;
|
|
600
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
601
|
+
return b.build();
|
|
602
|
+
};
|
|
603
|
+
exports.se_ListClustersCommand = se_ListClustersCommand;
|
|
604
|
+
const se_ListEksAnywhereSubscriptionsCommand = async (input, context) => {
|
|
605
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
606
|
+
const headers = {};
|
|
607
|
+
b.bp("/eks-anywhere-subscriptions");
|
|
608
|
+
const query = (0, smithy_client_1.map)({
|
|
609
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
610
|
+
[_nT]: [, input[_nT]],
|
|
611
|
+
[_iS]: [() => input.includeStatus !== void 0, () => (input[_iS] || []).map((_entry) => _entry)],
|
|
612
|
+
});
|
|
613
|
+
let body;
|
|
614
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
615
|
+
return b.build();
|
|
616
|
+
};
|
|
662
617
|
exports.se_ListEksAnywhereSubscriptionsCommand = se_ListEksAnywhereSubscriptionsCommand;
|
|
663
618
|
const se_ListFargateProfilesCommand = async (input, context) => {
|
|
664
|
-
const
|
|
619
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
665
620
|
const headers = {};
|
|
666
|
-
|
|
667
|
-
|
|
621
|
+
b.bp("/clusters/{clusterName}/fargate-profiles");
|
|
622
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
668
623
|
const query = (0, smithy_client_1.map)({
|
|
669
|
-
|
|
670
|
-
|
|
624
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
625
|
+
[_nT]: [, input[_nT]],
|
|
671
626
|
});
|
|
672
627
|
let body;
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
hostname,
|
|
676
|
-
port,
|
|
677
|
-
method: "GET",
|
|
678
|
-
headers,
|
|
679
|
-
path: resolvedPath,
|
|
680
|
-
query,
|
|
681
|
-
body,
|
|
682
|
-
});
|
|
628
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
629
|
+
return b.build();
|
|
683
630
|
};
|
|
684
631
|
exports.se_ListFargateProfilesCommand = se_ListFargateProfilesCommand;
|
|
685
632
|
const se_ListIdentityProviderConfigsCommand = async (input, context) => {
|
|
686
|
-
const
|
|
633
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
687
634
|
const headers = {};
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
635
|
+
b.bp("/clusters/{clusterName}/identity-provider-configs");
|
|
636
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
691
637
|
const query = (0, smithy_client_1.map)({
|
|
692
|
-
|
|
693
|
-
|
|
638
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
639
|
+
[_nT]: [, input[_nT]],
|
|
694
640
|
});
|
|
695
641
|
let body;
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
hostname,
|
|
699
|
-
port,
|
|
700
|
-
method: "GET",
|
|
701
|
-
headers,
|
|
702
|
-
path: resolvedPath,
|
|
703
|
-
query,
|
|
704
|
-
body,
|
|
705
|
-
});
|
|
642
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
643
|
+
return b.build();
|
|
706
644
|
};
|
|
707
645
|
exports.se_ListIdentityProviderConfigsCommand = se_ListIdentityProviderConfigsCommand;
|
|
708
646
|
const se_ListNodegroupsCommand = async (input, context) => {
|
|
709
|
-
const
|
|
647
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
710
648
|
const headers = {};
|
|
711
|
-
|
|
712
|
-
|
|
649
|
+
b.bp("/clusters/{clusterName}/node-groups");
|
|
650
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
713
651
|
const query = (0, smithy_client_1.map)({
|
|
714
|
-
|
|
715
|
-
|
|
652
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
653
|
+
[_nT]: [, input[_nT]],
|
|
716
654
|
});
|
|
717
655
|
let body;
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
hostname,
|
|
721
|
-
port,
|
|
722
|
-
method: "GET",
|
|
723
|
-
headers,
|
|
724
|
-
path: resolvedPath,
|
|
725
|
-
query,
|
|
726
|
-
body,
|
|
727
|
-
});
|
|
656
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
657
|
+
return b.build();
|
|
728
658
|
};
|
|
729
659
|
exports.se_ListNodegroupsCommand = se_ListNodegroupsCommand;
|
|
730
660
|
const se_ListPodIdentityAssociationsCommand = async (input, context) => {
|
|
731
|
-
const
|
|
661
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
732
662
|
const headers = {};
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
663
|
+
b.bp("/clusters/{clusterName}/pod-identity-associations");
|
|
664
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
736
665
|
const query = (0, smithy_client_1.map)({
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
666
|
+
[_n]: [, input[_n]],
|
|
667
|
+
[_sA]: [, input[_sA]],
|
|
668
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
669
|
+
[_nT]: [, input[_nT]],
|
|
741
670
|
});
|
|
742
671
|
let body;
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
hostname,
|
|
746
|
-
port,
|
|
747
|
-
method: "GET",
|
|
748
|
-
headers,
|
|
749
|
-
path: resolvedPath,
|
|
750
|
-
query,
|
|
751
|
-
body,
|
|
752
|
-
});
|
|
672
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
673
|
+
return b.build();
|
|
753
674
|
};
|
|
754
675
|
exports.se_ListPodIdentityAssociationsCommand = se_ListPodIdentityAssociationsCommand;
|
|
755
676
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
756
|
-
const
|
|
677
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
757
678
|
const headers = {};
|
|
758
|
-
|
|
759
|
-
|
|
679
|
+
b.bp("/tags/{resourceArn}");
|
|
680
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
760
681
|
let body;
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
hostname,
|
|
764
|
-
port,
|
|
765
|
-
method: "GET",
|
|
766
|
-
headers,
|
|
767
|
-
path: resolvedPath,
|
|
768
|
-
body,
|
|
769
|
-
});
|
|
682
|
+
b.m("GET").h(headers).b(body);
|
|
683
|
+
return b.build();
|
|
770
684
|
};
|
|
771
685
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
772
686
|
const se_ListUpdatesCommand = async (input, context) => {
|
|
773
|
-
const
|
|
687
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
774
688
|
const headers = {};
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
const query = (0, smithy_client_1.map)({
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
689
|
+
b.bp("/clusters/{name}/updates");
|
|
690
|
+
b.p("name", () => input.name, "{name}", false);
|
|
691
|
+
const query = (0, smithy_client_1.map)({
|
|
692
|
+
[_nN]: [, input[_nN]],
|
|
693
|
+
[_aN]: [, input[_aN]],
|
|
694
|
+
[_nT]: [, input[_nT]],
|
|
695
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
782
696
|
});
|
|
783
697
|
let body;
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
hostname,
|
|
787
|
-
port,
|
|
788
|
-
method: "GET",
|
|
789
|
-
headers,
|
|
790
|
-
path: resolvedPath,
|
|
791
|
-
query,
|
|
792
|
-
body,
|
|
793
|
-
});
|
|
698
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
699
|
+
return b.build();
|
|
794
700
|
};
|
|
795
701
|
exports.se_ListUpdatesCommand = se_ListUpdatesCommand;
|
|
796
702
|
const se_RegisterClusterCommand = async (input, context) => {
|
|
797
|
-
const
|
|
703
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
798
704
|
const headers = {
|
|
799
705
|
"content-type": "application/json",
|
|
800
706
|
};
|
|
801
|
-
|
|
707
|
+
b.bp("/cluster-registrations");
|
|
802
708
|
let body;
|
|
803
709
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
804
710
|
clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -806,79 +712,55 @@ const se_RegisterClusterCommand = async (input, context) => {
|
|
|
806
712
|
name: [],
|
|
807
713
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
808
714
|
}));
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
hostname,
|
|
812
|
-
port,
|
|
813
|
-
method: "POST",
|
|
814
|
-
headers,
|
|
815
|
-
path: resolvedPath,
|
|
816
|
-
body,
|
|
817
|
-
});
|
|
715
|
+
b.m("POST").h(headers).b(body);
|
|
716
|
+
return b.build();
|
|
818
717
|
};
|
|
819
718
|
exports.se_RegisterClusterCommand = se_RegisterClusterCommand;
|
|
820
719
|
const se_TagResourceCommand = async (input, context) => {
|
|
821
|
-
const
|
|
720
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
822
721
|
const headers = {
|
|
823
722
|
"content-type": "application/json",
|
|
824
723
|
};
|
|
825
|
-
|
|
826
|
-
|
|
724
|
+
b.bp("/tags/{resourceArn}");
|
|
725
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
827
726
|
let body;
|
|
828
727
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
829
728
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
830
729
|
}));
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
hostname,
|
|
834
|
-
port,
|
|
835
|
-
method: "POST",
|
|
836
|
-
headers,
|
|
837
|
-
path: resolvedPath,
|
|
838
|
-
body,
|
|
839
|
-
});
|
|
730
|
+
b.m("POST").h(headers).b(body);
|
|
731
|
+
return b.build();
|
|
840
732
|
};
|
|
841
733
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
842
734
|
const se_UntagResourceCommand = async (input, context) => {
|
|
843
|
-
const
|
|
735
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
844
736
|
const headers = {};
|
|
845
|
-
|
|
846
|
-
|
|
737
|
+
b.bp("/tags/{resourceArn}");
|
|
738
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
847
739
|
const query = (0, smithy_client_1.map)({
|
|
848
|
-
|
|
740
|
+
[_tK]: [
|
|
849
741
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
850
|
-
() => (input
|
|
742
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
851
743
|
],
|
|
852
744
|
});
|
|
853
745
|
let body;
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
hostname,
|
|
857
|
-
port,
|
|
858
|
-
method: "DELETE",
|
|
859
|
-
headers,
|
|
860
|
-
path: resolvedPath,
|
|
861
|
-
query,
|
|
862
|
-
body,
|
|
863
|
-
});
|
|
746
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
747
|
+
return b.build();
|
|
864
748
|
};
|
|
865
749
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
866
|
-
const
|
|
750
|
+
const se_UpdateAccessEntryCommand = async (input, context) => {
|
|
867
751
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
868
752
|
const headers = {
|
|
869
753
|
"content-type": "application/json",
|
|
870
754
|
};
|
|
871
755
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
872
|
-
"/clusters/{clusterName}/
|
|
756
|
+
"/clusters/{clusterName}/access-entries/{principalArn}";
|
|
873
757
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
874
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "
|
|
758
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
|
|
875
759
|
let body;
|
|
876
760
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
877
|
-
addonVersion: [],
|
|
878
761
|
clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
serviceAccountRoleArn: [],
|
|
762
|
+
kubernetesGroups: (_) => (0, smithy_client_1._json)(_),
|
|
763
|
+
username: [],
|
|
882
764
|
}));
|
|
883
765
|
return new protocol_http_1.HttpRequest({
|
|
884
766
|
protocol,
|
|
@@ -890,86 +772,85 @@ const se_UpdateAddonCommand = async (input, context) => {
|
|
|
890
772
|
body,
|
|
891
773
|
});
|
|
892
774
|
};
|
|
775
|
+
exports.se_UpdateAccessEntryCommand = se_UpdateAccessEntryCommand;
|
|
776
|
+
const se_UpdateAddonCommand = async (input, context) => {
|
|
777
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
778
|
+
const headers = {
|
|
779
|
+
"content-type": "application/json",
|
|
780
|
+
};
|
|
781
|
+
b.bp("/clusters/{clusterName}/addons/{addonName}/update");
|
|
782
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
783
|
+
b.p("addonName", () => input.addonName, "{addonName}", false);
|
|
784
|
+
let body;
|
|
785
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
786
|
+
addonVersion: [],
|
|
787
|
+
clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
788
|
+
configurationValues: [],
|
|
789
|
+
resolveConflicts: [],
|
|
790
|
+
serviceAccountRoleArn: [],
|
|
791
|
+
}));
|
|
792
|
+
b.m("POST").h(headers).b(body);
|
|
793
|
+
return b.build();
|
|
794
|
+
};
|
|
893
795
|
exports.se_UpdateAddonCommand = se_UpdateAddonCommand;
|
|
894
796
|
const se_UpdateClusterConfigCommand = async (input, context) => {
|
|
895
|
-
const
|
|
797
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
896
798
|
const headers = {
|
|
897
799
|
"content-type": "application/json",
|
|
898
800
|
};
|
|
899
|
-
|
|
900
|
-
|
|
801
|
+
b.bp("/clusters/{name}/update-config");
|
|
802
|
+
b.p("name", () => input.name, "{name}", false);
|
|
901
803
|
let body;
|
|
902
804
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
805
|
+
accessConfig: (_) => (0, smithy_client_1._json)(_),
|
|
903
806
|
clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
904
807
|
logging: (_) => (0, smithy_client_1._json)(_),
|
|
905
808
|
resourcesVpcConfig: (_) => (0, smithy_client_1._json)(_),
|
|
906
809
|
}));
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
hostname,
|
|
910
|
-
port,
|
|
911
|
-
method: "POST",
|
|
912
|
-
headers,
|
|
913
|
-
path: resolvedPath,
|
|
914
|
-
body,
|
|
915
|
-
});
|
|
810
|
+
b.m("POST").h(headers).b(body);
|
|
811
|
+
return b.build();
|
|
916
812
|
};
|
|
917
813
|
exports.se_UpdateClusterConfigCommand = se_UpdateClusterConfigCommand;
|
|
918
814
|
const se_UpdateClusterVersionCommand = async (input, context) => {
|
|
919
|
-
const
|
|
815
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
920
816
|
const headers = {
|
|
921
817
|
"content-type": "application/json",
|
|
922
818
|
};
|
|
923
|
-
|
|
924
|
-
|
|
819
|
+
b.bp("/clusters/{name}/updates");
|
|
820
|
+
b.p("name", () => input.name, "{name}", false);
|
|
925
821
|
let body;
|
|
926
822
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
927
823
|
clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
928
824
|
version: [],
|
|
929
825
|
}));
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
hostname,
|
|
933
|
-
port,
|
|
934
|
-
method: "POST",
|
|
935
|
-
headers,
|
|
936
|
-
path: resolvedPath,
|
|
937
|
-
body,
|
|
938
|
-
});
|
|
826
|
+
b.m("POST").h(headers).b(body);
|
|
827
|
+
return b.build();
|
|
939
828
|
};
|
|
940
829
|
exports.se_UpdateClusterVersionCommand = se_UpdateClusterVersionCommand;
|
|
941
830
|
const se_UpdateEksAnywhereSubscriptionCommand = async (input, context) => {
|
|
942
|
-
const
|
|
831
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
943
832
|
const headers = {
|
|
944
833
|
"content-type": "application/json",
|
|
945
834
|
};
|
|
946
|
-
|
|
947
|
-
|
|
835
|
+
b.bp("/eks-anywhere-subscriptions/{id}");
|
|
836
|
+
b.p("id", () => input.id, "{id}", false);
|
|
948
837
|
let body;
|
|
949
838
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
950
839
|
autoRenew: [],
|
|
951
840
|
clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
952
841
|
}));
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
hostname,
|
|
956
|
-
port,
|
|
957
|
-
method: "POST",
|
|
958
|
-
headers,
|
|
959
|
-
path: resolvedPath,
|
|
960
|
-
body,
|
|
961
|
-
});
|
|
842
|
+
b.m("POST").h(headers).b(body);
|
|
843
|
+
return b.build();
|
|
962
844
|
};
|
|
963
845
|
exports.se_UpdateEksAnywhereSubscriptionCommand = se_UpdateEksAnywhereSubscriptionCommand;
|
|
964
846
|
const se_UpdateNodegroupConfigCommand = async (input, context) => {
|
|
965
|
-
const
|
|
847
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
966
848
|
const headers = {
|
|
967
849
|
"content-type": "application/json",
|
|
968
850
|
};
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
|
|
851
|
+
b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}/update-config");
|
|
852
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
853
|
+
b.p("nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
|
|
973
854
|
let body;
|
|
974
855
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
975
856
|
clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -978,26 +859,18 @@ const se_UpdateNodegroupConfigCommand = async (input, context) => {
|
|
|
978
859
|
taints: (_) => (0, smithy_client_1._json)(_),
|
|
979
860
|
updateConfig: (_) => (0, smithy_client_1._json)(_),
|
|
980
861
|
}));
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
hostname,
|
|
984
|
-
port,
|
|
985
|
-
method: "POST",
|
|
986
|
-
headers,
|
|
987
|
-
path: resolvedPath,
|
|
988
|
-
body,
|
|
989
|
-
});
|
|
862
|
+
b.m("POST").h(headers).b(body);
|
|
863
|
+
return b.build();
|
|
990
864
|
};
|
|
991
865
|
exports.se_UpdateNodegroupConfigCommand = se_UpdateNodegroupConfigCommand;
|
|
992
866
|
const se_UpdateNodegroupVersionCommand = async (input, context) => {
|
|
993
|
-
const
|
|
867
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
994
868
|
const headers = {
|
|
995
869
|
"content-type": "application/json",
|
|
996
870
|
};
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
|
|
871
|
+
b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}/update-version");
|
|
872
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
873
|
+
b.p("nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
|
|
1001
874
|
let body;
|
|
1002
875
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1003
876
|
clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -1006,42 +879,72 @@ const se_UpdateNodegroupVersionCommand = async (input, context) => {
|
|
|
1006
879
|
releaseVersion: [],
|
|
1007
880
|
version: [],
|
|
1008
881
|
}));
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
hostname,
|
|
1012
|
-
port,
|
|
1013
|
-
method: "POST",
|
|
1014
|
-
headers,
|
|
1015
|
-
path: resolvedPath,
|
|
1016
|
-
body,
|
|
1017
|
-
});
|
|
882
|
+
b.m("POST").h(headers).b(body);
|
|
883
|
+
return b.build();
|
|
1018
884
|
};
|
|
1019
885
|
exports.se_UpdateNodegroupVersionCommand = se_UpdateNodegroupVersionCommand;
|
|
1020
886
|
const se_UpdatePodIdentityAssociationCommand = async (input, context) => {
|
|
1021
|
-
const
|
|
887
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1022
888
|
const headers = {
|
|
1023
889
|
"content-type": "application/json",
|
|
1024
890
|
};
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
|
|
891
|
+
b.bp("/clusters/{clusterName}/pod-identity-associations/{associationId}");
|
|
892
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
893
|
+
b.p("associationId", () => input.associationId, "{associationId}", false);
|
|
1029
894
|
let body;
|
|
1030
895
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1031
896
|
clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1032
897
|
roleArn: [],
|
|
1033
898
|
}));
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
hostname,
|
|
1037
|
-
port,
|
|
1038
|
-
method: "POST",
|
|
1039
|
-
headers,
|
|
1040
|
-
path: resolvedPath,
|
|
1041
|
-
body,
|
|
1042
|
-
});
|
|
899
|
+
b.m("POST").h(headers).b(body);
|
|
900
|
+
return b.build();
|
|
1043
901
|
};
|
|
1044
902
|
exports.se_UpdatePodIdentityAssociationCommand = se_UpdatePodIdentityAssociationCommand;
|
|
903
|
+
const de_AssociateAccessPolicyCommand = async (output, context) => {
|
|
904
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
905
|
+
return de_AssociateAccessPolicyCommandError(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
|
+
associatedAccessPolicy: (_) => de_AssociatedAccessPolicy(_, context),
|
|
913
|
+
clusterName: smithy_client_1.expectString,
|
|
914
|
+
principalArn: smithy_client_1.expectString,
|
|
915
|
+
});
|
|
916
|
+
Object.assign(contents, doc);
|
|
917
|
+
return contents;
|
|
918
|
+
};
|
|
919
|
+
exports.de_AssociateAccessPolicyCommand = de_AssociateAccessPolicyCommand;
|
|
920
|
+
const de_AssociateAccessPolicyCommandError = async (output, context) => {
|
|
921
|
+
const parsedOutput = {
|
|
922
|
+
...output,
|
|
923
|
+
body: await parseErrorBody(output.body, context),
|
|
924
|
+
};
|
|
925
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
926
|
+
switch (errorCode) {
|
|
927
|
+
case "InvalidParameterException":
|
|
928
|
+
case "com.amazonaws.eks#InvalidParameterException":
|
|
929
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
930
|
+
case "InvalidRequestException":
|
|
931
|
+
case "com.amazonaws.eks#InvalidRequestException":
|
|
932
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
933
|
+
case "ResourceNotFoundException":
|
|
934
|
+
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
935
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
936
|
+
case "ServerException":
|
|
937
|
+
case "com.amazonaws.eks#ServerException":
|
|
938
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
939
|
+
default:
|
|
940
|
+
const parsedBody = parsedOutput.body;
|
|
941
|
+
return throwDefaultError({
|
|
942
|
+
output,
|
|
943
|
+
parsedBody,
|
|
944
|
+
errorCode,
|
|
945
|
+
});
|
|
946
|
+
}
|
|
947
|
+
};
|
|
1045
948
|
const de_AssociateEncryptionConfigCommand = async (output, context) => {
|
|
1046
949
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1047
950
|
return de_AssociateEncryptionConfigCommandError(output, context);
|
|
@@ -1141,6 +1044,55 @@ const de_AssociateIdentityProviderConfigCommandError = async (output, context) =
|
|
|
1141
1044
|
});
|
|
1142
1045
|
}
|
|
1143
1046
|
};
|
|
1047
|
+
const de_CreateAccessEntryCommand = async (output, context) => {
|
|
1048
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1049
|
+
return de_CreateAccessEntryCommandError(output, context);
|
|
1050
|
+
}
|
|
1051
|
+
const contents = (0, smithy_client_1.map)({
|
|
1052
|
+
$metadata: deserializeMetadata(output),
|
|
1053
|
+
});
|
|
1054
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1055
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1056
|
+
accessEntry: (_) => de_AccessEntry(_, context),
|
|
1057
|
+
});
|
|
1058
|
+
Object.assign(contents, doc);
|
|
1059
|
+
return contents;
|
|
1060
|
+
};
|
|
1061
|
+
exports.de_CreateAccessEntryCommand = de_CreateAccessEntryCommand;
|
|
1062
|
+
const de_CreateAccessEntryCommandError = async (output, context) => {
|
|
1063
|
+
const parsedOutput = {
|
|
1064
|
+
...output,
|
|
1065
|
+
body: await parseErrorBody(output.body, context),
|
|
1066
|
+
};
|
|
1067
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1068
|
+
switch (errorCode) {
|
|
1069
|
+
case "InvalidParameterException":
|
|
1070
|
+
case "com.amazonaws.eks#InvalidParameterException":
|
|
1071
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1072
|
+
case "InvalidRequestException":
|
|
1073
|
+
case "com.amazonaws.eks#InvalidRequestException":
|
|
1074
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1075
|
+
case "ResourceInUseException":
|
|
1076
|
+
case "com.amazonaws.eks#ResourceInUseException":
|
|
1077
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1078
|
+
case "ResourceLimitExceededException":
|
|
1079
|
+
case "com.amazonaws.eks#ResourceLimitExceededException":
|
|
1080
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1081
|
+
case "ResourceNotFoundException":
|
|
1082
|
+
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1083
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1084
|
+
case "ServerException":
|
|
1085
|
+
case "com.amazonaws.eks#ServerException":
|
|
1086
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1087
|
+
default:
|
|
1088
|
+
const parsedBody = parsedOutput.body;
|
|
1089
|
+
return throwDefaultError({
|
|
1090
|
+
output,
|
|
1091
|
+
parsedBody,
|
|
1092
|
+
errorCode,
|
|
1093
|
+
});
|
|
1094
|
+
}
|
|
1095
|
+
};
|
|
1144
1096
|
const de_CreateAddonCommand = async (output, context) => {
|
|
1145
1097
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1146
1098
|
return de_CreateAddonCommandError(output, context);
|
|
@@ -1377,9 +1329,58 @@ const de_CreateNodegroupCommandError = async (output, context) => {
|
|
|
1377
1329
|
case "ServerException":
|
|
1378
1330
|
case "com.amazonaws.eks#ServerException":
|
|
1379
1331
|
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "ServiceUnavailableException":
|
|
1381
|
-
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
1382
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1332
|
+
case "ServiceUnavailableException":
|
|
1333
|
+
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
1334
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1335
|
+
default:
|
|
1336
|
+
const parsedBody = parsedOutput.body;
|
|
1337
|
+
return throwDefaultError({
|
|
1338
|
+
output,
|
|
1339
|
+
parsedBody,
|
|
1340
|
+
errorCode,
|
|
1341
|
+
});
|
|
1342
|
+
}
|
|
1343
|
+
};
|
|
1344
|
+
const de_CreatePodIdentityAssociationCommand = async (output, context) => {
|
|
1345
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1346
|
+
return de_CreatePodIdentityAssociationCommandError(output, context);
|
|
1347
|
+
}
|
|
1348
|
+
const contents = (0, smithy_client_1.map)({
|
|
1349
|
+
$metadata: deserializeMetadata(output),
|
|
1350
|
+
});
|
|
1351
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1352
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1353
|
+
association: (_) => de_PodIdentityAssociation(_, context),
|
|
1354
|
+
});
|
|
1355
|
+
Object.assign(contents, doc);
|
|
1356
|
+
return contents;
|
|
1357
|
+
};
|
|
1358
|
+
exports.de_CreatePodIdentityAssociationCommand = de_CreatePodIdentityAssociationCommand;
|
|
1359
|
+
const de_CreatePodIdentityAssociationCommandError = 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 "InvalidParameterException":
|
|
1367
|
+
case "com.amazonaws.eks#InvalidParameterException":
|
|
1368
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1369
|
+
case "InvalidRequestException":
|
|
1370
|
+
case "com.amazonaws.eks#InvalidRequestException":
|
|
1371
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1372
|
+
case "ResourceInUseException":
|
|
1373
|
+
case "com.amazonaws.eks#ResourceInUseException":
|
|
1374
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1375
|
+
case "ResourceLimitExceededException":
|
|
1376
|
+
case "com.amazonaws.eks#ResourceLimitExceededException":
|
|
1377
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1378
|
+
case "ResourceNotFoundException":
|
|
1379
|
+
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1380
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1381
|
+
case "ServerException":
|
|
1382
|
+
case "com.amazonaws.eks#ServerException":
|
|
1383
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1383
1384
|
default:
|
|
1384
1385
|
const parsedBody = parsedOutput.body;
|
|
1385
1386
|
return throwDefaultError({
|
|
@@ -1389,40 +1390,27 @@ const de_CreateNodegroupCommandError = async (output, context) => {
|
|
|
1389
1390
|
});
|
|
1390
1391
|
}
|
|
1391
1392
|
};
|
|
1392
|
-
const
|
|
1393
|
+
const de_DeleteAccessEntryCommand = async (output, context) => {
|
|
1393
1394
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1394
|
-
return
|
|
1395
|
+
return de_DeleteAccessEntryCommandError(output, context);
|
|
1395
1396
|
}
|
|
1396
1397
|
const contents = (0, smithy_client_1.map)({
|
|
1397
1398
|
$metadata: deserializeMetadata(output),
|
|
1398
1399
|
});
|
|
1399
|
-
|
|
1400
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1401
|
-
association: (_) => de_PodIdentityAssociation(_, context),
|
|
1402
|
-
});
|
|
1403
|
-
Object.assign(contents, doc);
|
|
1400
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1404
1401
|
return contents;
|
|
1405
1402
|
};
|
|
1406
|
-
exports.
|
|
1407
|
-
const
|
|
1403
|
+
exports.de_DeleteAccessEntryCommand = de_DeleteAccessEntryCommand;
|
|
1404
|
+
const de_DeleteAccessEntryCommandError = async (output, context) => {
|
|
1408
1405
|
const parsedOutput = {
|
|
1409
1406
|
...output,
|
|
1410
1407
|
body: await parseErrorBody(output.body, context),
|
|
1411
1408
|
};
|
|
1412
1409
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1413
1410
|
switch (errorCode) {
|
|
1414
|
-
case "InvalidParameterException":
|
|
1415
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
1416
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1417
1411
|
case "InvalidRequestException":
|
|
1418
1412
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
1419
1413
|
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
1414
|
case "ResourceNotFoundException":
|
|
1427
1415
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1428
1416
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1757,6 +1745,46 @@ const de_DeregisterClusterCommandError = async (output, context) => {
|
|
|
1757
1745
|
});
|
|
1758
1746
|
}
|
|
1759
1747
|
};
|
|
1748
|
+
const de_DescribeAccessEntryCommand = async (output, context) => {
|
|
1749
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1750
|
+
return de_DescribeAccessEntryCommandError(output, context);
|
|
1751
|
+
}
|
|
1752
|
+
const contents = (0, smithy_client_1.map)({
|
|
1753
|
+
$metadata: deserializeMetadata(output),
|
|
1754
|
+
});
|
|
1755
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1756
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1757
|
+
accessEntry: (_) => de_AccessEntry(_, context),
|
|
1758
|
+
});
|
|
1759
|
+
Object.assign(contents, doc);
|
|
1760
|
+
return contents;
|
|
1761
|
+
};
|
|
1762
|
+
exports.de_DescribeAccessEntryCommand = de_DescribeAccessEntryCommand;
|
|
1763
|
+
const de_DescribeAccessEntryCommandError = async (output, context) => {
|
|
1764
|
+
const parsedOutput = {
|
|
1765
|
+
...output,
|
|
1766
|
+
body: await parseErrorBody(output.body, context),
|
|
1767
|
+
};
|
|
1768
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1769
|
+
switch (errorCode) {
|
|
1770
|
+
case "InvalidRequestException":
|
|
1771
|
+
case "com.amazonaws.eks#InvalidRequestException":
|
|
1772
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1773
|
+
case "ResourceNotFoundException":
|
|
1774
|
+
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1775
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1776
|
+
case "ServerException":
|
|
1777
|
+
case "com.amazonaws.eks#ServerException":
|
|
1778
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1779
|
+
default:
|
|
1780
|
+
const parsedBody = parsedOutput.body;
|
|
1781
|
+
return throwDefaultError({
|
|
1782
|
+
output,
|
|
1783
|
+
parsedBody,
|
|
1784
|
+
errorCode,
|
|
1785
|
+
});
|
|
1786
|
+
}
|
|
1787
|
+
};
|
|
1760
1788
|
const de_DescribeAddonCommand = async (output, context) => {
|
|
1761
1789
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1762
1790
|
return de_DescribeAddonCommandError(output, context);
|
|
@@ -2193,6 +2221,42 @@ const de_DescribeUpdateCommandError = async (output, context) => {
|
|
|
2193
2221
|
});
|
|
2194
2222
|
}
|
|
2195
2223
|
};
|
|
2224
|
+
const de_DisassociateAccessPolicyCommand = async (output, context) => {
|
|
2225
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2226
|
+
return de_DisassociateAccessPolicyCommandError(output, context);
|
|
2227
|
+
}
|
|
2228
|
+
const contents = (0, smithy_client_1.map)({
|
|
2229
|
+
$metadata: deserializeMetadata(output),
|
|
2230
|
+
});
|
|
2231
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2232
|
+
return contents;
|
|
2233
|
+
};
|
|
2234
|
+
exports.de_DisassociateAccessPolicyCommand = de_DisassociateAccessPolicyCommand;
|
|
2235
|
+
const de_DisassociateAccessPolicyCommandError = async (output, context) => {
|
|
2236
|
+
const parsedOutput = {
|
|
2237
|
+
...output,
|
|
2238
|
+
body: await parseErrorBody(output.body, context),
|
|
2239
|
+
};
|
|
2240
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2241
|
+
switch (errorCode) {
|
|
2242
|
+
case "InvalidRequestException":
|
|
2243
|
+
case "com.amazonaws.eks#InvalidRequestException":
|
|
2244
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2245
|
+
case "ResourceNotFoundException":
|
|
2246
|
+
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2247
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2248
|
+
case "ServerException":
|
|
2249
|
+
case "com.amazonaws.eks#ServerException":
|
|
2250
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2251
|
+
default:
|
|
2252
|
+
const parsedBody = parsedOutput.body;
|
|
2253
|
+
return throwDefaultError({
|
|
2254
|
+
output,
|
|
2255
|
+
parsedBody,
|
|
2256
|
+
errorCode,
|
|
2257
|
+
});
|
|
2258
|
+
}
|
|
2259
|
+
};
|
|
2196
2260
|
const de_DisassociateIdentityProviderConfigCommand = async (output, context) => {
|
|
2197
2261
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2198
2262
|
return de_DisassociateIdentityProviderConfigCommandError(output, context);
|
|
@@ -2242,6 +2306,85 @@ const de_DisassociateIdentityProviderConfigCommandError = async (output, context
|
|
|
2242
2306
|
});
|
|
2243
2307
|
}
|
|
2244
2308
|
};
|
|
2309
|
+
const de_ListAccessEntriesCommand = async (output, context) => {
|
|
2310
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2311
|
+
return de_ListAccessEntriesCommandError(output, context);
|
|
2312
|
+
}
|
|
2313
|
+
const contents = (0, smithy_client_1.map)({
|
|
2314
|
+
$metadata: deserializeMetadata(output),
|
|
2315
|
+
});
|
|
2316
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2317
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2318
|
+
accessEntries: smithy_client_1._json,
|
|
2319
|
+
nextToken: smithy_client_1.expectString,
|
|
2320
|
+
});
|
|
2321
|
+
Object.assign(contents, doc);
|
|
2322
|
+
return contents;
|
|
2323
|
+
};
|
|
2324
|
+
exports.de_ListAccessEntriesCommand = de_ListAccessEntriesCommand;
|
|
2325
|
+
const de_ListAccessEntriesCommandError = async (output, context) => {
|
|
2326
|
+
const parsedOutput = {
|
|
2327
|
+
...output,
|
|
2328
|
+
body: await parseErrorBody(output.body, context),
|
|
2329
|
+
};
|
|
2330
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2331
|
+
switch (errorCode) {
|
|
2332
|
+
case "InvalidParameterException":
|
|
2333
|
+
case "com.amazonaws.eks#InvalidParameterException":
|
|
2334
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2335
|
+
case "InvalidRequestException":
|
|
2336
|
+
case "com.amazonaws.eks#InvalidRequestException":
|
|
2337
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2338
|
+
case "ResourceNotFoundException":
|
|
2339
|
+
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2340
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2341
|
+
case "ServerException":
|
|
2342
|
+
case "com.amazonaws.eks#ServerException":
|
|
2343
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2344
|
+
default:
|
|
2345
|
+
const parsedBody = parsedOutput.body;
|
|
2346
|
+
return throwDefaultError({
|
|
2347
|
+
output,
|
|
2348
|
+
parsedBody,
|
|
2349
|
+
errorCode,
|
|
2350
|
+
});
|
|
2351
|
+
}
|
|
2352
|
+
};
|
|
2353
|
+
const de_ListAccessPoliciesCommand = async (output, context) => {
|
|
2354
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2355
|
+
return de_ListAccessPoliciesCommandError(output, context);
|
|
2356
|
+
}
|
|
2357
|
+
const contents = (0, smithy_client_1.map)({
|
|
2358
|
+
$metadata: deserializeMetadata(output),
|
|
2359
|
+
});
|
|
2360
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2361
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2362
|
+
accessPolicies: smithy_client_1._json,
|
|
2363
|
+
nextToken: smithy_client_1.expectString,
|
|
2364
|
+
});
|
|
2365
|
+
Object.assign(contents, doc);
|
|
2366
|
+
return contents;
|
|
2367
|
+
};
|
|
2368
|
+
exports.de_ListAccessPoliciesCommand = de_ListAccessPoliciesCommand;
|
|
2369
|
+
const de_ListAccessPoliciesCommandError = async (output, context) => {
|
|
2370
|
+
const parsedOutput = {
|
|
2371
|
+
...output,
|
|
2372
|
+
body: await parseErrorBody(output.body, context),
|
|
2373
|
+
};
|
|
2374
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2375
|
+
switch (errorCode) {
|
|
2376
|
+
case "ServerException":
|
|
2377
|
+
case "com.amazonaws.eks#ServerException":
|
|
2378
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2379
|
+
default:
|
|
2380
|
+
const parsedBody = parsedOutput.body;
|
|
2381
|
+
return throwDefaultError({
|
|
2382
|
+
output,
|
|
2383
|
+
parsedBody,
|
|
2384
|
+
errorCode,
|
|
2385
|
+
});
|
|
2386
|
+
}
|
|
2387
|
+
};
|
|
2245
2388
|
const de_ListAddonsCommand = async (output, context) => {
|
|
2246
2389
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2247
2390
|
return de_ListAddonsCommandError(output, context);
|
|
@@ -2289,6 +2432,49 @@ const de_ListAddonsCommandError = async (output, context) => {
|
|
|
2289
2432
|
});
|
|
2290
2433
|
}
|
|
2291
2434
|
};
|
|
2435
|
+
const de_ListAssociatedAccessPoliciesCommand = async (output, context) => {
|
|
2436
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2437
|
+
return de_ListAssociatedAccessPoliciesCommandError(output, context);
|
|
2438
|
+
}
|
|
2439
|
+
const contents = (0, smithy_client_1.map)({
|
|
2440
|
+
$metadata: deserializeMetadata(output),
|
|
2441
|
+
});
|
|
2442
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2443
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2444
|
+
associatedAccessPolicies: (_) => de_AssociatedAccessPoliciesList(_, context),
|
|
2445
|
+
clusterName: smithy_client_1.expectString,
|
|
2446
|
+
nextToken: smithy_client_1.expectString,
|
|
2447
|
+
principalArn: smithy_client_1.expectString,
|
|
2448
|
+
});
|
|
2449
|
+
Object.assign(contents, doc);
|
|
2450
|
+
return contents;
|
|
2451
|
+
};
|
|
2452
|
+
exports.de_ListAssociatedAccessPoliciesCommand = de_ListAssociatedAccessPoliciesCommand;
|
|
2453
|
+
const de_ListAssociatedAccessPoliciesCommandError = async (output, context) => {
|
|
2454
|
+
const parsedOutput = {
|
|
2455
|
+
...output,
|
|
2456
|
+
body: await parseErrorBody(output.body, context),
|
|
2457
|
+
};
|
|
2458
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2459
|
+
switch (errorCode) {
|
|
2460
|
+
case "InvalidRequestException":
|
|
2461
|
+
case "com.amazonaws.eks#InvalidRequestException":
|
|
2462
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2463
|
+
case "ResourceNotFoundException":
|
|
2464
|
+
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2465
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2466
|
+
case "ServerException":
|
|
2467
|
+
case "com.amazonaws.eks#ServerException":
|
|
2468
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2469
|
+
default:
|
|
2470
|
+
const parsedBody = parsedOutput.body;
|
|
2471
|
+
return throwDefaultError({
|
|
2472
|
+
output,
|
|
2473
|
+
parsedBody,
|
|
2474
|
+
errorCode,
|
|
2475
|
+
});
|
|
2476
|
+
}
|
|
2477
|
+
};
|
|
2292
2478
|
const de_ListClustersCommand = async (output, context) => {
|
|
2293
2479
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2294
2480
|
return de_ListClustersCommandError(output, context);
|
|
@@ -2761,6 +2947,49 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2761
2947
|
});
|
|
2762
2948
|
}
|
|
2763
2949
|
};
|
|
2950
|
+
const de_UpdateAccessEntryCommand = async (output, context) => {
|
|
2951
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2952
|
+
return de_UpdateAccessEntryCommandError(output, context);
|
|
2953
|
+
}
|
|
2954
|
+
const contents = (0, smithy_client_1.map)({
|
|
2955
|
+
$metadata: deserializeMetadata(output),
|
|
2956
|
+
});
|
|
2957
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2958
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2959
|
+
accessEntry: (_) => de_AccessEntry(_, context),
|
|
2960
|
+
});
|
|
2961
|
+
Object.assign(contents, doc);
|
|
2962
|
+
return contents;
|
|
2963
|
+
};
|
|
2964
|
+
exports.de_UpdateAccessEntryCommand = de_UpdateAccessEntryCommand;
|
|
2965
|
+
const de_UpdateAccessEntryCommandError = async (output, context) => {
|
|
2966
|
+
const parsedOutput = {
|
|
2967
|
+
...output,
|
|
2968
|
+
body: await parseErrorBody(output.body, context),
|
|
2969
|
+
};
|
|
2970
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2971
|
+
switch (errorCode) {
|
|
2972
|
+
case "InvalidParameterException":
|
|
2973
|
+
case "com.amazonaws.eks#InvalidParameterException":
|
|
2974
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2975
|
+
case "InvalidRequestException":
|
|
2976
|
+
case "com.amazonaws.eks#InvalidRequestException":
|
|
2977
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2978
|
+
case "ResourceNotFoundException":
|
|
2979
|
+
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2980
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2981
|
+
case "ServerException":
|
|
2982
|
+
case "com.amazonaws.eks#ServerException":
|
|
2983
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2984
|
+
default:
|
|
2985
|
+
const parsedBody = parsedOutput.body;
|
|
2986
|
+
return throwDefaultError({
|
|
2987
|
+
output,
|
|
2988
|
+
parsedBody,
|
|
2989
|
+
errorCode,
|
|
2990
|
+
});
|
|
2991
|
+
}
|
|
2992
|
+
};
|
|
2764
2993
|
const de_UpdateAddonCommand = async (output, context) => {
|
|
2765
2994
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2766
2995
|
return de_UpdateAddonCommandError(output, context);
|
|
@@ -3296,6 +3525,19 @@ const de_UnsupportedAvailabilityZoneExceptionRes = async (parsedOutput, context)
|
|
|
3296
3525
|
});
|
|
3297
3526
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3298
3527
|
};
|
|
3528
|
+
const de_AccessEntry = (output, context) => {
|
|
3529
|
+
return (0, smithy_client_1.take)(output, {
|
|
3530
|
+
accessEntryArn: smithy_client_1.expectString,
|
|
3531
|
+
clusterName: smithy_client_1.expectString,
|
|
3532
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3533
|
+
kubernetesGroups: smithy_client_1._json,
|
|
3534
|
+
modifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3535
|
+
principalArn: smithy_client_1.expectString,
|
|
3536
|
+
tags: smithy_client_1._json,
|
|
3537
|
+
type: smithy_client_1.expectString,
|
|
3538
|
+
username: smithy_client_1.expectString,
|
|
3539
|
+
});
|
|
3540
|
+
};
|
|
3299
3541
|
const de_Addon = (output, context) => {
|
|
3300
3542
|
return (0, smithy_client_1.take)(output, {
|
|
3301
3543
|
addonArn: smithy_client_1.expectString,
|
|
@@ -3314,8 +3556,25 @@ const de_Addon = (output, context) => {
|
|
|
3314
3556
|
tags: smithy_client_1._json,
|
|
3315
3557
|
});
|
|
3316
3558
|
};
|
|
3559
|
+
const de_AssociatedAccessPoliciesList = (output, context) => {
|
|
3560
|
+
const retVal = (output || [])
|
|
3561
|
+
.filter((e) => e != null)
|
|
3562
|
+
.map((entry) => {
|
|
3563
|
+
return de_AssociatedAccessPolicy(entry, context);
|
|
3564
|
+
});
|
|
3565
|
+
return retVal;
|
|
3566
|
+
};
|
|
3567
|
+
const de_AssociatedAccessPolicy = (output, context) => {
|
|
3568
|
+
return (0, smithy_client_1.take)(output, {
|
|
3569
|
+
accessScope: smithy_client_1._json,
|
|
3570
|
+
associatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3571
|
+
modifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3572
|
+
policyArn: smithy_client_1.expectString,
|
|
3573
|
+
});
|
|
3574
|
+
};
|
|
3317
3575
|
const de_Cluster = (output, context) => {
|
|
3318
3576
|
return (0, smithy_client_1.take)(output, {
|
|
3577
|
+
accessConfig: smithy_client_1._json,
|
|
3319
3578
|
arn: smithy_client_1.expectString,
|
|
3320
3579
|
certificateAuthority: smithy_client_1._json,
|
|
3321
3580
|
clientRequestToken: smithy_client_1.expectString,
|
|
@@ -3446,6 +3705,21 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
3446
3705
|
value !== "" &&
|
|
3447
3706
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
3448
3707
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
3708
|
+
const _aN = "addonName";
|
|
3709
|
+
const _aV = "addonVersion";
|
|
3710
|
+
const _i = "include";
|
|
3711
|
+
const _iS = "includeStatus";
|
|
3712
|
+
const _kV = "kubernetesVersion";
|
|
3713
|
+
const _mR = "maxResults";
|
|
3714
|
+
const _n = "namespace";
|
|
3715
|
+
const _nN = "nodegroupName";
|
|
3716
|
+
const _nT = "nextToken";
|
|
3717
|
+
const _o = "owners";
|
|
3718
|
+
const _p = "preserve";
|
|
3719
|
+
const _pu = "publishers";
|
|
3720
|
+
const _sA = "serviceAccount";
|
|
3721
|
+
const _t = "types";
|
|
3722
|
+
const _tK = "tagKeys";
|
|
3449
3723
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3450
3724
|
if (encoded.length) {
|
|
3451
3725
|
return JSON.parse(encoded);
|