@aws-sdk/client-eks 3.200.0 → 3.202.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/CHANGELOG.md +19 -0
- package/dist-cjs/endpoint/EndpointParameters.js +2 -3
- package/dist-cjs/protocols/Aws_restJson1.js +54 -71
- package/dist-cjs/runtimeConfig.browser.js +16 -16
- package/dist-cjs/runtimeConfig.js +20 -19
- package/dist-cjs/runtimeConfig.native.js +1 -2
- package/dist-cjs/runtimeConfig.shared.js +8 -11
- package/package.json +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.202.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.201.0...v3.202.0) (2022-11-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-eks
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* end support for Node.js 12.x ([#4123](https://github.com/aws/aws-sdk-js-v3/issues/4123)) ([83f913e](https://github.com/aws/aws-sdk-js-v3/commit/83f913ec2ac3878d8726c6964f585550dc5caf3e))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @aws-sdk/client-eks
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveClientEndpointParameters = void 0;
|
|
4
4
|
const resolveClientEndpointParameters = (options) => {
|
|
5
|
-
var _a, _b;
|
|
6
5
|
return {
|
|
7
6
|
...options,
|
|
8
|
-
useDualstackEndpoint:
|
|
9
|
-
useFipsEndpoint:
|
|
7
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
8
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
10
9
|
defaultSigningName: "eks",
|
|
11
10
|
};
|
|
12
11
|
};
|
|
@@ -8,17 +8,16 @@ const uuid_1 = require("uuid");
|
|
|
8
8
|
const EKSServiceException_1 = require("../models/EKSServiceException");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const serializeAws_restJson1AssociateEncryptionConfigCommand = async (input, context) => {
|
|
11
|
-
var _a;
|
|
12
11
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
13
12
|
const headers = {
|
|
14
13
|
"content-type": "application/json",
|
|
15
14
|
};
|
|
16
|
-
let resolvedPath = `${
|
|
15
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
17
16
|
"/clusters/{clusterName}/encryption-config/associate";
|
|
18
17
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
19
18
|
let body;
|
|
20
19
|
body = JSON.stringify({
|
|
21
|
-
clientRequestToken:
|
|
20
|
+
clientRequestToken: input.clientRequestToken ?? (0, uuid_1.v4)(),
|
|
22
21
|
...(input.encryptionConfig != null && {
|
|
23
22
|
encryptionConfig: serializeAws_restJson1EncryptionConfigList(input.encryptionConfig, context),
|
|
24
23
|
}),
|
|
@@ -35,17 +34,16 @@ const serializeAws_restJson1AssociateEncryptionConfigCommand = async (input, con
|
|
|
35
34
|
};
|
|
36
35
|
exports.serializeAws_restJson1AssociateEncryptionConfigCommand = serializeAws_restJson1AssociateEncryptionConfigCommand;
|
|
37
36
|
const serializeAws_restJson1AssociateIdentityProviderConfigCommand = async (input, context) => {
|
|
38
|
-
var _a;
|
|
39
37
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
40
38
|
const headers = {
|
|
41
39
|
"content-type": "application/json",
|
|
42
40
|
};
|
|
43
|
-
let resolvedPath = `${
|
|
41
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
44
42
|
"/clusters/{clusterName}/identity-provider-configs/associate";
|
|
45
43
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
46
44
|
let body;
|
|
47
45
|
body = JSON.stringify({
|
|
48
|
-
clientRequestToken:
|
|
46
|
+
clientRequestToken: input.clientRequestToken ?? (0, uuid_1.v4)(),
|
|
49
47
|
...(input.oidc != null && { oidc: serializeAws_restJson1OidcIdentityProviderConfigRequest(input.oidc, context) }),
|
|
50
48
|
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
51
49
|
});
|
|
@@ -61,18 +59,17 @@ const serializeAws_restJson1AssociateIdentityProviderConfigCommand = async (inpu
|
|
|
61
59
|
};
|
|
62
60
|
exports.serializeAws_restJson1AssociateIdentityProviderConfigCommand = serializeAws_restJson1AssociateIdentityProviderConfigCommand;
|
|
63
61
|
const serializeAws_restJson1CreateAddonCommand = async (input, context) => {
|
|
64
|
-
var _a;
|
|
65
62
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
66
63
|
const headers = {
|
|
67
64
|
"content-type": "application/json",
|
|
68
65
|
};
|
|
69
|
-
let resolvedPath = `${
|
|
66
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/addons";
|
|
70
67
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
71
68
|
let body;
|
|
72
69
|
body = JSON.stringify({
|
|
73
70
|
...(input.addonName != null && { addonName: input.addonName }),
|
|
74
71
|
...(input.addonVersion != null && { addonVersion: input.addonVersion }),
|
|
75
|
-
clientRequestToken:
|
|
72
|
+
clientRequestToken: input.clientRequestToken ?? (0, uuid_1.v4)(),
|
|
76
73
|
...(input.resolveConflicts != null && { resolveConflicts: input.resolveConflicts }),
|
|
77
74
|
...(input.serviceAccountRoleArn != null && { serviceAccountRoleArn: input.serviceAccountRoleArn }),
|
|
78
75
|
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
@@ -89,15 +86,14 @@ const serializeAws_restJson1CreateAddonCommand = async (input, context) => {
|
|
|
89
86
|
};
|
|
90
87
|
exports.serializeAws_restJson1CreateAddonCommand = serializeAws_restJson1CreateAddonCommand;
|
|
91
88
|
const serializeAws_restJson1CreateClusterCommand = async (input, context) => {
|
|
92
|
-
var _a;
|
|
93
89
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
94
90
|
const headers = {
|
|
95
91
|
"content-type": "application/json",
|
|
96
92
|
};
|
|
97
|
-
const resolvedPath = `${
|
|
93
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters";
|
|
98
94
|
let body;
|
|
99
95
|
body = JSON.stringify({
|
|
100
|
-
clientRequestToken:
|
|
96
|
+
clientRequestToken: input.clientRequestToken ?? (0, uuid_1.v4)(),
|
|
101
97
|
...(input.encryptionConfig != null && {
|
|
102
98
|
encryptionConfig: serializeAws_restJson1EncryptionConfigList(input.encryptionConfig, context),
|
|
103
99
|
}),
|
|
@@ -128,16 +124,15 @@ const serializeAws_restJson1CreateClusterCommand = async (input, context) => {
|
|
|
128
124
|
};
|
|
129
125
|
exports.serializeAws_restJson1CreateClusterCommand = serializeAws_restJson1CreateClusterCommand;
|
|
130
126
|
const serializeAws_restJson1CreateFargateProfileCommand = async (input, context) => {
|
|
131
|
-
var _a;
|
|
132
127
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
133
128
|
const headers = {
|
|
134
129
|
"content-type": "application/json",
|
|
135
130
|
};
|
|
136
|
-
let resolvedPath = `${
|
|
131
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/fargate-profiles";
|
|
137
132
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
138
133
|
let body;
|
|
139
134
|
body = JSON.stringify({
|
|
140
|
-
clientRequestToken:
|
|
135
|
+
clientRequestToken: input.clientRequestToken ?? (0, uuid_1.v4)(),
|
|
141
136
|
...(input.fargateProfileName != null && { fargateProfileName: input.fargateProfileName }),
|
|
142
137
|
...(input.podExecutionRoleArn != null && { podExecutionRoleArn: input.podExecutionRoleArn }),
|
|
143
138
|
...(input.selectors != null && {
|
|
@@ -158,18 +153,17 @@ const serializeAws_restJson1CreateFargateProfileCommand = async (input, context)
|
|
|
158
153
|
};
|
|
159
154
|
exports.serializeAws_restJson1CreateFargateProfileCommand = serializeAws_restJson1CreateFargateProfileCommand;
|
|
160
155
|
const serializeAws_restJson1CreateNodegroupCommand = async (input, context) => {
|
|
161
|
-
var _a;
|
|
162
156
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
163
157
|
const headers = {
|
|
164
158
|
"content-type": "application/json",
|
|
165
159
|
};
|
|
166
|
-
let resolvedPath = `${
|
|
160
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/node-groups";
|
|
167
161
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
168
162
|
let body;
|
|
169
163
|
body = JSON.stringify({
|
|
170
164
|
...(input.amiType != null && { amiType: input.amiType }),
|
|
171
165
|
...(input.capacityType != null && { capacityType: input.capacityType }),
|
|
172
|
-
clientRequestToken:
|
|
166
|
+
clientRequestToken: input.clientRequestToken ?? (0, uuid_1.v4)(),
|
|
173
167
|
...(input.diskSize != null && { diskSize: input.diskSize }),
|
|
174
168
|
...(input.instanceTypes != null && {
|
|
175
169
|
instanceTypes: serializeAws_restJson1StringList(input.instanceTypes, context),
|
|
@@ -209,7 +203,7 @@ exports.serializeAws_restJson1CreateNodegroupCommand = serializeAws_restJson1Cre
|
|
|
209
203
|
const serializeAws_restJson1DeleteAddonCommand = async (input, context) => {
|
|
210
204
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
211
205
|
const headers = {};
|
|
212
|
-
let resolvedPath = `${
|
|
206
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
213
207
|
"/clusters/{clusterName}/addons/{addonName}";
|
|
214
208
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
215
209
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "addonName", () => input.addonName, "{addonName}", false);
|
|
@@ -232,7 +226,7 @@ exports.serializeAws_restJson1DeleteAddonCommand = serializeAws_restJson1DeleteA
|
|
|
232
226
|
const serializeAws_restJson1DeleteClusterCommand = async (input, context) => {
|
|
233
227
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
234
228
|
const headers = {};
|
|
235
|
-
let resolvedPath = `${
|
|
229
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}";
|
|
236
230
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
237
231
|
let body;
|
|
238
232
|
return new protocol_http_1.HttpRequest({
|
|
@@ -249,7 +243,7 @@ exports.serializeAws_restJson1DeleteClusterCommand = serializeAws_restJson1Delet
|
|
|
249
243
|
const serializeAws_restJson1DeleteFargateProfileCommand = async (input, context) => {
|
|
250
244
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
251
245
|
const headers = {};
|
|
252
|
-
let resolvedPath = `${
|
|
246
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
253
247
|
"/clusters/{clusterName}/fargate-profiles/{fargateProfileName}";
|
|
254
248
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
255
249
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
|
|
@@ -268,7 +262,7 @@ exports.serializeAws_restJson1DeleteFargateProfileCommand = serializeAws_restJso
|
|
|
268
262
|
const serializeAws_restJson1DeleteNodegroupCommand = async (input, context) => {
|
|
269
263
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
270
264
|
const headers = {};
|
|
271
|
-
let resolvedPath = `${
|
|
265
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
272
266
|
"/clusters/{clusterName}/node-groups/{nodegroupName}";
|
|
273
267
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
274
268
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
|
|
@@ -287,7 +281,7 @@ exports.serializeAws_restJson1DeleteNodegroupCommand = serializeAws_restJson1Del
|
|
|
287
281
|
const serializeAws_restJson1DeregisterClusterCommand = async (input, context) => {
|
|
288
282
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
289
283
|
const headers = {};
|
|
290
|
-
let resolvedPath = `${
|
|
284
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-registrations/{name}";
|
|
291
285
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
292
286
|
let body;
|
|
293
287
|
return new protocol_http_1.HttpRequest({
|
|
@@ -304,7 +298,7 @@ exports.serializeAws_restJson1DeregisterClusterCommand = serializeAws_restJson1D
|
|
|
304
298
|
const serializeAws_restJson1DescribeAddonCommand = async (input, context) => {
|
|
305
299
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
306
300
|
const headers = {};
|
|
307
|
-
let resolvedPath = `${
|
|
301
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
308
302
|
"/clusters/{clusterName}/addons/{addonName}";
|
|
309
303
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
310
304
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "addonName", () => input.addonName, "{addonName}", false);
|
|
@@ -323,7 +317,7 @@ exports.serializeAws_restJson1DescribeAddonCommand = serializeAws_restJson1Descr
|
|
|
323
317
|
const serializeAws_restJson1DescribeAddonVersionsCommand = async (input, context) => {
|
|
324
318
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
325
319
|
const headers = {};
|
|
326
|
-
const resolvedPath = `${
|
|
320
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/addons/supported-versions";
|
|
327
321
|
const query = map({
|
|
328
322
|
kubernetesVersion: [, input.kubernetesVersion],
|
|
329
323
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -346,7 +340,7 @@ exports.serializeAws_restJson1DescribeAddonVersionsCommand = serializeAws_restJs
|
|
|
346
340
|
const serializeAws_restJson1DescribeClusterCommand = async (input, context) => {
|
|
347
341
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
348
342
|
const headers = {};
|
|
349
|
-
let resolvedPath = `${
|
|
343
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}";
|
|
350
344
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
351
345
|
let body;
|
|
352
346
|
return new protocol_http_1.HttpRequest({
|
|
@@ -363,7 +357,7 @@ exports.serializeAws_restJson1DescribeClusterCommand = serializeAws_restJson1Des
|
|
|
363
357
|
const serializeAws_restJson1DescribeFargateProfileCommand = async (input, context) => {
|
|
364
358
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
365
359
|
const headers = {};
|
|
366
|
-
let resolvedPath = `${
|
|
360
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
367
361
|
"/clusters/{clusterName}/fargate-profiles/{fargateProfileName}";
|
|
368
362
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
369
363
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
|
|
@@ -384,7 +378,7 @@ const serializeAws_restJson1DescribeIdentityProviderConfigCommand = async (input
|
|
|
384
378
|
const headers = {
|
|
385
379
|
"content-type": "application/json",
|
|
386
380
|
};
|
|
387
|
-
let resolvedPath = `${
|
|
381
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
388
382
|
"/clusters/{clusterName}/identity-provider-configs/describe";
|
|
389
383
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
390
384
|
let body;
|
|
@@ -407,7 +401,7 @@ exports.serializeAws_restJson1DescribeIdentityProviderConfigCommand = serializeA
|
|
|
407
401
|
const serializeAws_restJson1DescribeNodegroupCommand = async (input, context) => {
|
|
408
402
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
409
403
|
const headers = {};
|
|
410
|
-
let resolvedPath = `${
|
|
404
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
411
405
|
"/clusters/{clusterName}/node-groups/{nodegroupName}";
|
|
412
406
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
413
407
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
|
|
@@ -426,7 +420,7 @@ exports.serializeAws_restJson1DescribeNodegroupCommand = serializeAws_restJson1D
|
|
|
426
420
|
const serializeAws_restJson1DescribeUpdateCommand = async (input, context) => {
|
|
427
421
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
428
422
|
const headers = {};
|
|
429
|
-
let resolvedPath = `${
|
|
423
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/updates/{updateId}";
|
|
430
424
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
431
425
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "updateId", () => input.updateId, "{updateId}", false);
|
|
432
426
|
const query = map({
|
|
@@ -447,17 +441,16 @@ const serializeAws_restJson1DescribeUpdateCommand = async (input, context) => {
|
|
|
447
441
|
};
|
|
448
442
|
exports.serializeAws_restJson1DescribeUpdateCommand = serializeAws_restJson1DescribeUpdateCommand;
|
|
449
443
|
const serializeAws_restJson1DisassociateIdentityProviderConfigCommand = async (input, context) => {
|
|
450
|
-
var _a;
|
|
451
444
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
452
445
|
const headers = {
|
|
453
446
|
"content-type": "application/json",
|
|
454
447
|
};
|
|
455
|
-
let resolvedPath = `${
|
|
448
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
456
449
|
"/clusters/{clusterName}/identity-provider-configs/disassociate";
|
|
457
450
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
458
451
|
let body;
|
|
459
452
|
body = JSON.stringify({
|
|
460
|
-
clientRequestToken:
|
|
453
|
+
clientRequestToken: input.clientRequestToken ?? (0, uuid_1.v4)(),
|
|
461
454
|
...(input.identityProviderConfig != null && {
|
|
462
455
|
identityProviderConfig: serializeAws_restJson1IdentityProviderConfig(input.identityProviderConfig, context),
|
|
463
456
|
}),
|
|
@@ -476,7 +469,7 @@ exports.serializeAws_restJson1DisassociateIdentityProviderConfigCommand = serial
|
|
|
476
469
|
const serializeAws_restJson1ListAddonsCommand = async (input, context) => {
|
|
477
470
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
478
471
|
const headers = {};
|
|
479
|
-
let resolvedPath = `${
|
|
472
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/addons";
|
|
480
473
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
481
474
|
const query = map({
|
|
482
475
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -498,7 +491,7 @@ exports.serializeAws_restJson1ListAddonsCommand = serializeAws_restJson1ListAddo
|
|
|
498
491
|
const serializeAws_restJson1ListClustersCommand = async (input, context) => {
|
|
499
492
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
500
493
|
const headers = {};
|
|
501
|
-
const resolvedPath = `${
|
|
494
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters";
|
|
502
495
|
const query = map({
|
|
503
496
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
504
497
|
nextToken: [, input.nextToken],
|
|
@@ -520,7 +513,7 @@ exports.serializeAws_restJson1ListClustersCommand = serializeAws_restJson1ListCl
|
|
|
520
513
|
const serializeAws_restJson1ListFargateProfilesCommand = async (input, context) => {
|
|
521
514
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
522
515
|
const headers = {};
|
|
523
|
-
let resolvedPath = `${
|
|
516
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/fargate-profiles";
|
|
524
517
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
525
518
|
const query = map({
|
|
526
519
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -542,7 +535,7 @@ exports.serializeAws_restJson1ListFargateProfilesCommand = serializeAws_restJson
|
|
|
542
535
|
const serializeAws_restJson1ListIdentityProviderConfigsCommand = async (input, context) => {
|
|
543
536
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
544
537
|
const headers = {};
|
|
545
|
-
let resolvedPath = `${
|
|
538
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
546
539
|
"/clusters/{clusterName}/identity-provider-configs";
|
|
547
540
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
548
541
|
const query = map({
|
|
@@ -565,7 +558,7 @@ exports.serializeAws_restJson1ListIdentityProviderConfigsCommand = serializeAws_
|
|
|
565
558
|
const serializeAws_restJson1ListNodegroupsCommand = async (input, context) => {
|
|
566
559
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
567
560
|
const headers = {};
|
|
568
|
-
let resolvedPath = `${
|
|
561
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/node-groups";
|
|
569
562
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
570
563
|
const query = map({
|
|
571
564
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -587,7 +580,7 @@ exports.serializeAws_restJson1ListNodegroupsCommand = serializeAws_restJson1List
|
|
|
587
580
|
const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
588
581
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
589
582
|
const headers = {};
|
|
590
|
-
let resolvedPath = `${
|
|
583
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
591
584
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
592
585
|
let body;
|
|
593
586
|
return new protocol_http_1.HttpRequest({
|
|
@@ -604,7 +597,7 @@ exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson
|
|
|
604
597
|
const serializeAws_restJson1ListUpdatesCommand = async (input, context) => {
|
|
605
598
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
606
599
|
const headers = {};
|
|
607
|
-
let resolvedPath = `${
|
|
600
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/updates";
|
|
608
601
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
609
602
|
const query = map({
|
|
610
603
|
nodegroupName: [, input.nodegroupName],
|
|
@@ -626,15 +619,14 @@ const serializeAws_restJson1ListUpdatesCommand = async (input, context) => {
|
|
|
626
619
|
};
|
|
627
620
|
exports.serializeAws_restJson1ListUpdatesCommand = serializeAws_restJson1ListUpdatesCommand;
|
|
628
621
|
const serializeAws_restJson1RegisterClusterCommand = async (input, context) => {
|
|
629
|
-
var _a;
|
|
630
622
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
631
623
|
const headers = {
|
|
632
624
|
"content-type": "application/json",
|
|
633
625
|
};
|
|
634
|
-
const resolvedPath = `${
|
|
626
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-registrations";
|
|
635
627
|
let body;
|
|
636
628
|
body = JSON.stringify({
|
|
637
|
-
clientRequestToken:
|
|
629
|
+
clientRequestToken: input.clientRequestToken ?? (0, uuid_1.v4)(),
|
|
638
630
|
...(input.connectorConfig != null && {
|
|
639
631
|
connectorConfig: serializeAws_restJson1ConnectorConfigRequest(input.connectorConfig, context),
|
|
640
632
|
}),
|
|
@@ -657,7 +649,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
657
649
|
const headers = {
|
|
658
650
|
"content-type": "application/json",
|
|
659
651
|
};
|
|
660
|
-
let resolvedPath = `${
|
|
652
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
661
653
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
662
654
|
let body;
|
|
663
655
|
body = JSON.stringify({
|
|
@@ -677,7 +669,7 @@ exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagReso
|
|
|
677
669
|
const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
678
670
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
679
671
|
const headers = {};
|
|
680
|
-
let resolvedPath = `${
|
|
672
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
681
673
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
682
674
|
const query = map({
|
|
683
675
|
tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
|
|
@@ -696,19 +688,18 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
696
688
|
};
|
|
697
689
|
exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
|
|
698
690
|
const serializeAws_restJson1UpdateAddonCommand = async (input, context) => {
|
|
699
|
-
var _a;
|
|
700
691
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
701
692
|
const headers = {
|
|
702
693
|
"content-type": "application/json",
|
|
703
694
|
};
|
|
704
|
-
let resolvedPath = `${
|
|
695
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
705
696
|
"/clusters/{clusterName}/addons/{addonName}/update";
|
|
706
697
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
707
698
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "addonName", () => input.addonName, "{addonName}", false);
|
|
708
699
|
let body;
|
|
709
700
|
body = JSON.stringify({
|
|
710
701
|
...(input.addonVersion != null && { addonVersion: input.addonVersion }),
|
|
711
|
-
clientRequestToken:
|
|
702
|
+
clientRequestToken: input.clientRequestToken ?? (0, uuid_1.v4)(),
|
|
712
703
|
...(input.resolveConflicts != null && { resolveConflicts: input.resolveConflicts }),
|
|
713
704
|
...(input.serviceAccountRoleArn != null && { serviceAccountRoleArn: input.serviceAccountRoleArn }),
|
|
714
705
|
});
|
|
@@ -724,16 +715,15 @@ const serializeAws_restJson1UpdateAddonCommand = async (input, context) => {
|
|
|
724
715
|
};
|
|
725
716
|
exports.serializeAws_restJson1UpdateAddonCommand = serializeAws_restJson1UpdateAddonCommand;
|
|
726
717
|
const serializeAws_restJson1UpdateClusterConfigCommand = async (input, context) => {
|
|
727
|
-
var _a;
|
|
728
718
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
729
719
|
const headers = {
|
|
730
720
|
"content-type": "application/json",
|
|
731
721
|
};
|
|
732
|
-
let resolvedPath = `${
|
|
722
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/update-config";
|
|
733
723
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
734
724
|
let body;
|
|
735
725
|
body = JSON.stringify({
|
|
736
|
-
clientRequestToken:
|
|
726
|
+
clientRequestToken: input.clientRequestToken ?? (0, uuid_1.v4)(),
|
|
737
727
|
...(input.logging != null && { logging: serializeAws_restJson1Logging(input.logging, context) }),
|
|
738
728
|
...(input.resourcesVpcConfig != null && {
|
|
739
729
|
resourcesVpcConfig: serializeAws_restJson1VpcConfigRequest(input.resourcesVpcConfig, context),
|
|
@@ -751,16 +741,15 @@ const serializeAws_restJson1UpdateClusterConfigCommand = async (input, context)
|
|
|
751
741
|
};
|
|
752
742
|
exports.serializeAws_restJson1UpdateClusterConfigCommand = serializeAws_restJson1UpdateClusterConfigCommand;
|
|
753
743
|
const serializeAws_restJson1UpdateClusterVersionCommand = async (input, context) => {
|
|
754
|
-
var _a;
|
|
755
744
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
756
745
|
const headers = {
|
|
757
746
|
"content-type": "application/json",
|
|
758
747
|
};
|
|
759
|
-
let resolvedPath = `${
|
|
748
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/updates";
|
|
760
749
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
761
750
|
let body;
|
|
762
751
|
body = JSON.stringify({
|
|
763
|
-
clientRequestToken:
|
|
752
|
+
clientRequestToken: input.clientRequestToken ?? (0, uuid_1.v4)(),
|
|
764
753
|
...(input.version != null && { version: input.version }),
|
|
765
754
|
});
|
|
766
755
|
return new protocol_http_1.HttpRequest({
|
|
@@ -775,18 +764,17 @@ const serializeAws_restJson1UpdateClusterVersionCommand = async (input, context)
|
|
|
775
764
|
};
|
|
776
765
|
exports.serializeAws_restJson1UpdateClusterVersionCommand = serializeAws_restJson1UpdateClusterVersionCommand;
|
|
777
766
|
const serializeAws_restJson1UpdateNodegroupConfigCommand = async (input, context) => {
|
|
778
|
-
var _a;
|
|
779
767
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
780
768
|
const headers = {
|
|
781
769
|
"content-type": "application/json",
|
|
782
770
|
};
|
|
783
|
-
let resolvedPath = `${
|
|
771
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
784
772
|
"/clusters/{clusterName}/node-groups/{nodegroupName}/update-config";
|
|
785
773
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
786
774
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
|
|
787
775
|
let body;
|
|
788
776
|
body = JSON.stringify({
|
|
789
|
-
clientRequestToken:
|
|
777
|
+
clientRequestToken: input.clientRequestToken ?? (0, uuid_1.v4)(),
|
|
790
778
|
...(input.labels != null && { labels: serializeAws_restJson1UpdateLabelsPayload(input.labels, context) }),
|
|
791
779
|
...(input.scalingConfig != null && {
|
|
792
780
|
scalingConfig: serializeAws_restJson1NodegroupScalingConfig(input.scalingConfig, context),
|
|
@@ -808,18 +796,17 @@ const serializeAws_restJson1UpdateNodegroupConfigCommand = async (input, context
|
|
|
808
796
|
};
|
|
809
797
|
exports.serializeAws_restJson1UpdateNodegroupConfigCommand = serializeAws_restJson1UpdateNodegroupConfigCommand;
|
|
810
798
|
const serializeAws_restJson1UpdateNodegroupVersionCommand = async (input, context) => {
|
|
811
|
-
var _a;
|
|
812
799
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
813
800
|
const headers = {
|
|
814
801
|
"content-type": "application/json",
|
|
815
802
|
};
|
|
816
|
-
let resolvedPath = `${
|
|
803
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
817
804
|
"/clusters/{clusterName}/node-groups/{nodegroupName}/update-version";
|
|
818
805
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
819
806
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
|
|
820
807
|
let body;
|
|
821
808
|
body = JSON.stringify({
|
|
822
|
-
clientRequestToken:
|
|
809
|
+
clientRequestToken: input.clientRequestToken ?? (0, uuid_1.v4)(),
|
|
823
810
|
...(input.force != null && { force: input.force }),
|
|
824
811
|
...(input.launchTemplate != null && {
|
|
825
812
|
launchTemplate: serializeAws_restJson1LaunchTemplateSpecification(input.launchTemplate, context),
|
|
@@ -3445,15 +3432,12 @@ const deserializeAws_restJson1VpcConfigResponse = (output, context) => {
|
|
|
3445
3432
|
vpcId: (0, smithy_client_1.expectString)(output.vpcId),
|
|
3446
3433
|
};
|
|
3447
3434
|
};
|
|
3448
|
-
const deserializeMetadata = (output) => {
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3455
|
-
});
|
|
3456
|
-
};
|
|
3435
|
+
const deserializeMetadata = (output) => ({
|
|
3436
|
+
httpStatusCode: output.statusCode,
|
|
3437
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3438
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3439
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
3440
|
+
});
|
|
3457
3441
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
3458
3442
|
if (streamBody instanceof Uint8Array) {
|
|
3459
3443
|
return Promise.resolve(streamBody);
|
|
@@ -3473,9 +3457,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3473
3457
|
return {};
|
|
3474
3458
|
});
|
|
3475
3459
|
const parseErrorBody = async (errorBody, context) => {
|
|
3476
|
-
var _a;
|
|
3477
3460
|
const value = await parseBody(errorBody, context);
|
|
3478
|
-
value.message =
|
|
3461
|
+
value.message = value.message ?? value.Message;
|
|
3479
3462
|
return value;
|
|
3480
3463
|
};
|
|
3481
3464
|
const loadRestJsonErrorCode = (output, data) => {
|
|
@@ -16,7 +16,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
|
16
16
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
19
|
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
20
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
21
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
@@ -25,21 +24,22 @@ const getRuntimeConfig = (config) => {
|
|
|
25
24
|
...config,
|
|
26
25
|
runtime: "browser",
|
|
27
26
|
defaultsMode,
|
|
28
|
-
base64Decoder:
|
|
29
|
-
base64Encoder:
|
|
30
|
-
bodyLengthChecker:
|
|
31
|
-
credentialDefaultProvider:
|
|
32
|
-
defaultUserAgentProvider:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
27
|
+
base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
|
|
28
|
+
base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
|
|
29
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
30
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
31
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
+
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
|
+
maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
|
+
requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
38
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
39
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
40
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
41
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
|
|
42
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -19,7 +19,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const smithy_client_2 = require("@aws-sdk/smithy-client");
|
|
21
21
|
const getRuntimeConfig = (config) => {
|
|
22
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
23
22
|
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
24
23
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
25
24
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
@@ -29,24 +28,26 @@ const getRuntimeConfig = (config) => {
|
|
|
29
28
|
...config,
|
|
30
29
|
runtime: "node",
|
|
31
30
|
defaultsMode,
|
|
32
|
-
base64Decoder:
|
|
33
|
-
base64Encoder:
|
|
34
|
-
bodyLengthChecker:
|
|
35
|
-
credentialDefaultProvider:
|
|
36
|
-
defaultUserAgentProvider:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
31
|
+
base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
|
|
32
|
+
base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
|
|
33
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
34
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
35
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
36
|
+
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
38
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
39
|
+
requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
40
|
+
retryMode: config?.retryMode ??
|
|
41
|
+
(0, node_config_provider_1.loadConfig)({
|
|
42
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
43
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
44
|
+
}),
|
|
45
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
46
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
47
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
48
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
49
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
|
|
50
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
|
|
50
51
|
};
|
|
51
52
|
};
|
|
52
53
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -4,13 +4,12 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
|
-
var _a;
|
|
8
7
|
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
8
|
return {
|
|
10
9
|
...browserDefaults,
|
|
11
10
|
...config,
|
|
12
11
|
runtime: "react-native",
|
|
13
|
-
sha256:
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
14
13
|
};
|
|
15
14
|
};
|
|
16
15
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -3,15 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
5
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
6
|
-
const getRuntimeConfig = (config) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
|
-
});
|
|
16
|
-
};
|
|
6
|
+
const getRuntimeConfig = (config) => ({
|
|
7
|
+
apiVersion: "2017-11-01",
|
|
8
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
9
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
10
|
+
logger: config?.logger ?? {},
|
|
11
|
+
serviceId: config?.serviceId ?? "EKS",
|
|
12
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
13
|
+
});
|
|
17
14
|
exports.getRuntimeConfig = getRuntimeConfig;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-eks",
|
|
3
3
|
"description": "AWS SDK for JavaScript Eks Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.202.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,46 +19,46 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.202.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.201.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.202.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.201.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.201.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.201.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.201.0",
|
|
29
|
+
"@aws-sdk/middleware-endpoint": "3.201.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.201.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.201.0",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "3.201.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.201.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.201.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.201.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.201.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.201.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.201.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.201.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.201.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.201.0",
|
|
42
|
+
"@aws-sdk/types": "3.201.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.201.0",
|
|
44
44
|
"@aws-sdk/util-base64-browser": "3.188.0",
|
|
45
|
-
"@aws-sdk/util-base64-node": "3.
|
|
45
|
+
"@aws-sdk/util-base64-node": "3.201.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
47
|
+
"@aws-sdk/util-body-length-node": "3.201.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.201.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.201.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.202.0",
|
|
51
|
+
"@aws-sdk/util-user-agent-browser": "3.201.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-node": "3.201.0",
|
|
53
53
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
54
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
55
|
-
"@aws-sdk/util-waiter": "3.
|
|
54
|
+
"@aws-sdk/util-utf8-node": "3.201.0",
|
|
55
|
+
"@aws-sdk/util-waiter": "3.201.0",
|
|
56
56
|
"tslib": "^2.3.1",
|
|
57
57
|
"uuid": "^8.3.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@aws-sdk/service-client-documentation-generator": "3.188.0",
|
|
61
|
-
"@tsconfig/
|
|
61
|
+
"@tsconfig/node14": "1.0.3",
|
|
62
62
|
"@types/node": "^12.7.5",
|
|
63
63
|
"@types/uuid": "^8.3.0",
|
|
64
64
|
"concurrently": "7.0.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
"engines": {
|
|
76
|
-
"node": ">=
|
|
76
|
+
"node": ">=14.0.0"
|
|
77
77
|
},
|
|
78
78
|
"typesVersions": {
|
|
79
79
|
"<4.0": {
|