@aws-sdk/client-eks 3.45.0 → 3.47.2
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 +45 -0
- package/README.md +10 -10
- package/dist-cjs/endpoints.js +0 -24
- package/dist-cjs/models/models_0.js +8 -81
- package/dist-cjs/protocols/Aws_restJson1.js +3 -0
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +0 -24
- package/dist-es/models/models_0.js +5 -52
- package/dist-es/protocols/Aws_restJson1.js +3 -1
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/EKS.d.ts +112 -99
- package/dist-types/EKSClient.d.ts +15 -11
- package/dist-types/commands/CreateClusterCommand.d.ts +2 -1
- package/dist-types/commands/CreateFargateProfileCommand.d.ts +28 -24
- package/dist-types/commands/CreateNodegroupCommand.d.ts +9 -8
- package/dist-types/commands/DeleteClusterCommand.d.ts +2 -2
- package/dist-types/commands/DeleteFargateProfileCommand.d.ts +8 -7
- package/dist-types/commands/DeregisterClusterCommand.d.ts +2 -1
- package/dist-types/commands/DescribeUpdateCommand.d.ts +2 -2
- package/dist-types/commands/DisassociateIdentityProviderConfigCommand.d.ts +2 -2
- package/dist-types/commands/ListClustersCommand.d.ts +2 -1
- package/dist-types/commands/ListFargateProfilesCommand.d.ts +2 -2
- package/dist-types/commands/ListNodegroupsCommand.d.ts +3 -2
- package/dist-types/commands/ListUpdatesCommand.d.ts +2 -2
- package/dist-types/commands/RegisterClusterCommand.d.ts +9 -5
- package/dist-types/commands/TagResourceCommand.d.ts +3 -4
- package/dist-types/commands/UpdateClusterConfigCommand.d.ts +12 -11
- package/dist-types/commands/UpdateClusterVersionCommand.d.ts +3 -4
- package/dist-types/commands/UpdateNodegroupConfigCommand.d.ts +4 -5
- package/dist-types/commands/UpdateNodegroupVersionCommand.d.ts +7 -6
- package/dist-types/models/models_0.d.ts +252 -265
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/EKSClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +10 -52
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +40 -47
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,51 @@
|
|
|
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.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-eks
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-eks
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
|
|
38
|
+
* **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Features
|
|
42
|
+
|
|
43
|
+
* **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
|
|
44
|
+
* **clients:** update clients as of 2021/01/07 ([#3163](https://github.com/aws/aws-sdk-js-v3/issues/3163)) ([6648b07](https://github.com/aws/aws-sdk-js-v3/commit/6648b07ea97691d2fed55eab49831646543b648b))
|
|
45
|
+
* end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
6
51
|
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
7
52
|
|
|
8
53
|
|
package/README.md
CHANGED
|
@@ -7,16 +7,16 @@
|
|
|
7
7
|
|
|
8
8
|
AWS SDK for JavaScript EKS Client for Node.js, Browser and React Native.
|
|
9
9
|
|
|
10
|
-
<p>Amazon Elastic Kubernetes Service (Amazon EKS) is a managed service that makes it easy
|
|
11
|
-
Amazon Web Services without needing to stand up or maintain
|
|
12
|
-
Kubernetes is an open-source system for automating
|
|
13
|
-
management of containerized applications. </p>
|
|
14
|
-
<p>Amazon EKS runs up-to-date versions of the open-source Kubernetes software, so
|
|
15
|
-
all the existing plugins and tooling from the Kubernetes community.
|
|
16
|
-
on Amazon EKS are fully compatible with applications
|
|
17
|
-
environment, whether running in on-premises data
|
|
18
|
-
that you can easily migrate any standard Kubernetes
|
|
19
|
-
code modification required.</p>
|
|
10
|
+
<p>Amazon Elastic Kubernetes Service (Amazon EKS) is a managed service that makes it easy
|
|
11
|
+
for you to run Kubernetes on Amazon Web Services without needing to stand up or maintain
|
|
12
|
+
your own Kubernetes control plane. Kubernetes is an open-source system for automating
|
|
13
|
+
the deployment, scaling, and management of containerized applications. </p>
|
|
14
|
+
<p>Amazon EKS runs up-to-date versions of the open-source Kubernetes software, so
|
|
15
|
+
you can use all the existing plugins and tooling from the Kubernetes community.
|
|
16
|
+
Applications running on Amazon EKS are fully compatible with applications
|
|
17
|
+
running on any standard Kubernetes environment, whether running in on-premises data
|
|
18
|
+
centers or public clouds. This means that you can easily migrate any standard Kubernetes
|
|
19
|
+
application to Amazon EKS without any code modification required.</p>
|
|
20
20
|
|
|
21
21
|
## Installing
|
|
22
22
|
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
|
5
5
|
const regionHash = {
|
|
6
6
|
"us-east-1": {
|
|
7
7
|
variants: [
|
|
8
|
-
{
|
|
9
|
-
hostname: "eks.us-east-1.amazonaws.com",
|
|
10
|
-
tags: [],
|
|
11
|
-
},
|
|
12
8
|
{
|
|
13
9
|
hostname: "fips.eks.us-east-1.amazonaws.com",
|
|
14
10
|
tags: ["fips"],
|
|
@@ -17,10 +13,6 @@ const regionHash = {
|
|
|
17
13
|
},
|
|
18
14
|
"us-east-2": {
|
|
19
15
|
variants: [
|
|
20
|
-
{
|
|
21
|
-
hostname: "eks.us-east-2.amazonaws.com",
|
|
22
|
-
tags: [],
|
|
23
|
-
},
|
|
24
16
|
{
|
|
25
17
|
hostname: "fips.eks.us-east-2.amazonaws.com",
|
|
26
18
|
tags: ["fips"],
|
|
@@ -29,10 +21,6 @@ const regionHash = {
|
|
|
29
21
|
},
|
|
30
22
|
"us-gov-east-1": {
|
|
31
23
|
variants: [
|
|
32
|
-
{
|
|
33
|
-
hostname: "eks.us-gov-east-1.amazonaws.com",
|
|
34
|
-
tags: [],
|
|
35
|
-
},
|
|
36
24
|
{
|
|
37
25
|
hostname: "eks.us-gov-east-1.amazonaws.com",
|
|
38
26
|
tags: ["fips"],
|
|
@@ -41,10 +29,6 @@ const regionHash = {
|
|
|
41
29
|
},
|
|
42
30
|
"us-gov-west-1": {
|
|
43
31
|
variants: [
|
|
44
|
-
{
|
|
45
|
-
hostname: "eks.us-gov-west-1.amazonaws.com",
|
|
46
|
-
tags: [],
|
|
47
|
-
},
|
|
48
32
|
{
|
|
49
33
|
hostname: "eks.us-gov-west-1.amazonaws.com",
|
|
50
34
|
tags: ["fips"],
|
|
@@ -53,10 +37,6 @@ const regionHash = {
|
|
|
53
37
|
},
|
|
54
38
|
"us-west-1": {
|
|
55
39
|
variants: [
|
|
56
|
-
{
|
|
57
|
-
hostname: "eks.us-west-1.amazonaws.com",
|
|
58
|
-
tags: [],
|
|
59
|
-
},
|
|
60
40
|
{
|
|
61
41
|
hostname: "fips.eks.us-west-1.amazonaws.com",
|
|
62
42
|
tags: ["fips"],
|
|
@@ -65,10 +45,6 @@ const regionHash = {
|
|
|
65
45
|
},
|
|
66
46
|
"us-west-2": {
|
|
67
47
|
variants: [
|
|
68
|
-
{
|
|
69
|
-
hostname: "eks.us-west-2.amazonaws.com",
|
|
70
|
-
tags: [],
|
|
71
|
-
},
|
|
72
48
|
{
|
|
73
49
|
hostname: "fips.eks.us-west-2.amazonaws.com",
|
|
74
50
|
tags: ["fips"],
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UpdateNodegroupVersionResponse = exports.UpdateNodegroupVersionRequest = exports.UpdateNodegroupConfigResponse = exports.UpdateNodegroupConfigRequest = exports.UpdateTaintsPayload = exports.UpdateLabelsPayload = exports.UpdateClusterVersionResponse = exports.UpdateClusterVersionRequest = exports.UpdateClusterConfigResponse = exports.UpdateClusterConfigRequest = exports.UpdateAddonResponse = exports.UpdateAddonRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.
|
|
6
|
-
var AccessDeniedException;
|
|
7
|
-
(function (AccessDeniedException) {
|
|
8
|
-
AccessDeniedException.filterSensitiveLog = (obj) => ({
|
|
9
|
-
...obj,
|
|
10
|
-
});
|
|
11
|
-
})(AccessDeniedException = exports.AccessDeniedException || (exports.AccessDeniedException = {}));
|
|
3
|
+
exports.CreateNodegroupRequest = exports.NodegroupUpdateConfig = exports.Taint = exports.TaintEffect = exports.NodegroupScalingConfig = exports.RemoteAccessConfig = exports.LaunchTemplateSpecification = exports.CreateFargateProfileResponse = exports.FargateProfile = exports.CreateFargateProfileRequest = exports.FargateProfileSelector = exports.CreateClusterResponse = exports.Cluster = exports.VpcConfigResponse = exports.KubernetesNetworkConfigResponse = exports.Identity = exports.OIDC = exports.ConnectorConfigResponse = exports.Certificate = exports.CreateClusterRequest = exports.VpcConfigRequest = exports.Logging = exports.LogSetup = exports.LogType = exports.KubernetesNetworkConfigRequest = exports.IpFamily = exports.CreateAddonResponse = exports.CreateAddonRequest = exports.AutoScalingGroup = exports.AssociateIdentityProviderConfigResponse = exports.AssociateIdentityProviderConfigRequest = exports.OidcIdentityProviderConfigRequest = exports.AssociateEncryptionConfigResponse = exports.Update = exports.UpdateType = exports.UpdateStatus = exports.UpdateParam = exports.UpdateParamType = exports.ErrorDetail = exports.ErrorCode = exports.AssociateEncryptionConfigRequest = exports.EncryptionConfig = exports.Provider = exports.AddonInfo = exports.AddonVersionInfo = exports.Compatibility = exports.Addon = exports.AddonHealth = exports.AddonIssue = exports.AddonIssueCode = void 0;
|
|
4
|
+
exports.ListUpdatesResponse = exports.ListUpdatesRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListNodegroupsResponse = exports.ListNodegroupsRequest = exports.ListIdentityProviderConfigsResponse = exports.ListIdentityProviderConfigsRequest = exports.ListFargateProfilesResponse = exports.ListFargateProfilesRequest = exports.ListClustersResponse = exports.ListClustersRequest = exports.ListAddonsResponse = exports.ListAddonsRequest = exports.DisassociateIdentityProviderConfigResponse = exports.DisassociateIdentityProviderConfigRequest = exports.DescribeUpdateResponse = exports.DescribeUpdateRequest = exports.DescribeNodegroupResponse = exports.DescribeNodegroupRequest = exports.DescribeIdentityProviderConfigResponse = exports.IdentityProviderConfigResponse = exports.OidcIdentityProviderConfig = exports.ConfigStatus = exports.DescribeIdentityProviderConfigRequest = exports.IdentityProviderConfig = exports.DescribeFargateProfileResponse = exports.DescribeFargateProfileRequest = exports.DescribeClusterResponse = exports.DescribeClusterRequest = exports.DescribeAddonVersionsResponse = exports.DescribeAddonVersionsRequest = exports.DescribeAddonResponse = exports.DescribeAddonRequest = exports.DeregisterClusterResponse = exports.DeregisterClusterRequest = exports.DeleteNodegroupResponse = exports.DeleteNodegroupRequest = exports.DeleteFargateProfileResponse = exports.DeleteFargateProfileRequest = exports.DeleteClusterResponse = exports.DeleteClusterRequest = exports.DeleteAddonResponse = exports.DeleteAddonRequest = exports.CreateNodegroupResponse = exports.Nodegroup = exports.NodegroupResources = exports.NodegroupHealth = exports.Issue = exports.NodegroupIssueCode = void 0;
|
|
5
|
+
exports.UpdateNodegroupVersionResponse = exports.UpdateNodegroupVersionRequest = exports.UpdateNodegroupConfigResponse = exports.UpdateNodegroupConfigRequest = exports.UpdateTaintsPayload = exports.UpdateLabelsPayload = exports.UpdateClusterVersionResponse = exports.UpdateClusterVersionRequest = exports.UpdateClusterConfigResponse = exports.UpdateClusterConfigRequest = exports.UpdateAddonResponse = exports.UpdateAddonRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.RegisterClusterResponse = exports.RegisterClusterRequest = exports.ConnectorConfigRequest = exports.ConnectorConfigProvider = void 0;
|
|
12
6
|
var AddonIssueCode;
|
|
13
7
|
(function (AddonIssueCode) {
|
|
14
8
|
AddonIssueCode["ACCESS_DENIED"] = "AccessDenied";
|
|
@@ -162,42 +156,6 @@ var AssociateEncryptionConfigResponse;
|
|
|
162
156
|
...obj,
|
|
163
157
|
});
|
|
164
158
|
})(AssociateEncryptionConfigResponse = exports.AssociateEncryptionConfigResponse || (exports.AssociateEncryptionConfigResponse = {}));
|
|
165
|
-
var ClientException;
|
|
166
|
-
(function (ClientException) {
|
|
167
|
-
ClientException.filterSensitiveLog = (obj) => ({
|
|
168
|
-
...obj,
|
|
169
|
-
});
|
|
170
|
-
})(ClientException = exports.ClientException || (exports.ClientException = {}));
|
|
171
|
-
var InvalidParameterException;
|
|
172
|
-
(function (InvalidParameterException) {
|
|
173
|
-
InvalidParameterException.filterSensitiveLog = (obj) => ({
|
|
174
|
-
...obj,
|
|
175
|
-
});
|
|
176
|
-
})(InvalidParameterException = exports.InvalidParameterException || (exports.InvalidParameterException = {}));
|
|
177
|
-
var InvalidRequestException;
|
|
178
|
-
(function (InvalidRequestException) {
|
|
179
|
-
InvalidRequestException.filterSensitiveLog = (obj) => ({
|
|
180
|
-
...obj,
|
|
181
|
-
});
|
|
182
|
-
})(InvalidRequestException = exports.InvalidRequestException || (exports.InvalidRequestException = {}));
|
|
183
|
-
var ResourceInUseException;
|
|
184
|
-
(function (ResourceInUseException) {
|
|
185
|
-
ResourceInUseException.filterSensitiveLog = (obj) => ({
|
|
186
|
-
...obj,
|
|
187
|
-
});
|
|
188
|
-
})(ResourceInUseException = exports.ResourceInUseException || (exports.ResourceInUseException = {}));
|
|
189
|
-
var ResourceNotFoundException;
|
|
190
|
-
(function (ResourceNotFoundException) {
|
|
191
|
-
ResourceNotFoundException.filterSensitiveLog = (obj) => ({
|
|
192
|
-
...obj,
|
|
193
|
-
});
|
|
194
|
-
})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
|
|
195
|
-
var ServerException;
|
|
196
|
-
(function (ServerException) {
|
|
197
|
-
ServerException.filterSensitiveLog = (obj) => ({
|
|
198
|
-
...obj,
|
|
199
|
-
});
|
|
200
|
-
})(ServerException = exports.ServerException || (exports.ServerException = {}));
|
|
201
159
|
var OidcIdentityProviderConfigRequest;
|
|
202
160
|
(function (OidcIdentityProviderConfigRequest) {
|
|
203
161
|
OidcIdentityProviderConfigRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -234,6 +192,11 @@ var CreateAddonResponse;
|
|
|
234
192
|
...obj,
|
|
235
193
|
});
|
|
236
194
|
})(CreateAddonResponse = exports.CreateAddonResponse || (exports.CreateAddonResponse = {}));
|
|
195
|
+
var IpFamily;
|
|
196
|
+
(function (IpFamily) {
|
|
197
|
+
IpFamily["IPV4"] = "ipv4";
|
|
198
|
+
IpFamily["IPV6"] = "ipv6";
|
|
199
|
+
})(IpFamily = exports.IpFamily || (exports.IpFamily = {}));
|
|
237
200
|
var KubernetesNetworkConfigRequest;
|
|
238
201
|
(function (KubernetesNetworkConfigRequest) {
|
|
239
202
|
KubernetesNetworkConfigRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -320,24 +283,6 @@ var CreateClusterResponse;
|
|
|
320
283
|
...obj,
|
|
321
284
|
});
|
|
322
285
|
})(CreateClusterResponse = exports.CreateClusterResponse || (exports.CreateClusterResponse = {}));
|
|
323
|
-
var ResourceLimitExceededException;
|
|
324
|
-
(function (ResourceLimitExceededException) {
|
|
325
|
-
ResourceLimitExceededException.filterSensitiveLog = (obj) => ({
|
|
326
|
-
...obj,
|
|
327
|
-
});
|
|
328
|
-
})(ResourceLimitExceededException = exports.ResourceLimitExceededException || (exports.ResourceLimitExceededException = {}));
|
|
329
|
-
var ServiceUnavailableException;
|
|
330
|
-
(function (ServiceUnavailableException) {
|
|
331
|
-
ServiceUnavailableException.filterSensitiveLog = (obj) => ({
|
|
332
|
-
...obj,
|
|
333
|
-
});
|
|
334
|
-
})(ServiceUnavailableException = exports.ServiceUnavailableException || (exports.ServiceUnavailableException = {}));
|
|
335
|
-
var UnsupportedAvailabilityZoneException;
|
|
336
|
-
(function (UnsupportedAvailabilityZoneException) {
|
|
337
|
-
UnsupportedAvailabilityZoneException.filterSensitiveLog = (obj) => ({
|
|
338
|
-
...obj,
|
|
339
|
-
});
|
|
340
|
-
})(UnsupportedAvailabilityZoneException = exports.UnsupportedAvailabilityZoneException || (exports.UnsupportedAvailabilityZoneException = {}));
|
|
341
286
|
var FargateProfileSelector;
|
|
342
287
|
(function (FargateProfileSelector) {
|
|
343
288
|
FargateProfileSelector.filterSensitiveLog = (obj) => ({
|
|
@@ -695,12 +640,6 @@ var ListNodegroupsResponse;
|
|
|
695
640
|
...obj,
|
|
696
641
|
});
|
|
697
642
|
})(ListNodegroupsResponse = exports.ListNodegroupsResponse || (exports.ListNodegroupsResponse = {}));
|
|
698
|
-
var BadRequestException;
|
|
699
|
-
(function (BadRequestException) {
|
|
700
|
-
BadRequestException.filterSensitiveLog = (obj) => ({
|
|
701
|
-
...obj,
|
|
702
|
-
});
|
|
703
|
-
})(BadRequestException = exports.BadRequestException || (exports.BadRequestException = {}));
|
|
704
643
|
var ListTagsForResourceRequest;
|
|
705
644
|
(function (ListTagsForResourceRequest) {
|
|
706
645
|
ListTagsForResourceRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -713,12 +652,6 @@ var ListTagsForResourceResponse;
|
|
|
713
652
|
...obj,
|
|
714
653
|
});
|
|
715
654
|
})(ListTagsForResourceResponse = exports.ListTagsForResourceResponse || (exports.ListTagsForResourceResponse = {}));
|
|
716
|
-
var NotFoundException;
|
|
717
|
-
(function (NotFoundException) {
|
|
718
|
-
NotFoundException.filterSensitiveLog = (obj) => ({
|
|
719
|
-
...obj,
|
|
720
|
-
});
|
|
721
|
-
})(NotFoundException = exports.NotFoundException || (exports.NotFoundException = {}));
|
|
722
655
|
var ListUpdatesRequest;
|
|
723
656
|
(function (ListUpdatesRequest) {
|
|
724
657
|
ListUpdatesRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -761,12 +694,6 @@ var RegisterClusterResponse;
|
|
|
761
694
|
...obj,
|
|
762
695
|
});
|
|
763
696
|
})(RegisterClusterResponse = exports.RegisterClusterResponse || (exports.RegisterClusterResponse = {}));
|
|
764
|
-
var ResourcePropagationDelayException;
|
|
765
|
-
(function (ResourcePropagationDelayException) {
|
|
766
|
-
ResourcePropagationDelayException.filterSensitiveLog = (obj) => ({
|
|
767
|
-
...obj,
|
|
768
|
-
});
|
|
769
|
-
})(ResourcePropagationDelayException = exports.ResourcePropagationDelayException || (exports.ResourcePropagationDelayException = {}));
|
|
770
697
|
var TagResourceRequest;
|
|
771
698
|
(function (TagResourceRequest) {
|
|
772
699
|
TagResourceRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -4308,6 +4308,7 @@ const serializeAws_restJson1IdentityProviderConfig = (input, context) => {
|
|
|
4308
4308
|
};
|
|
4309
4309
|
const serializeAws_restJson1KubernetesNetworkConfigRequest = (input, context) => {
|
|
4310
4310
|
return {
|
|
4311
|
+
...(input.ipFamily !== undefined && input.ipFamily !== null && { ipFamily: input.ipFamily }),
|
|
4311
4312
|
...(input.serviceIpv4Cidr !== undefined &&
|
|
4312
4313
|
input.serviceIpv4Cidr !== null && { serviceIpv4Cidr: input.serviceIpv4Cidr }),
|
|
4313
4314
|
};
|
|
@@ -4827,7 +4828,9 @@ const deserializeAws_restJson1IssueList = (output, context) => {
|
|
|
4827
4828
|
};
|
|
4828
4829
|
const deserializeAws_restJson1KubernetesNetworkConfigResponse = (output, context) => {
|
|
4829
4830
|
return {
|
|
4831
|
+
ipFamily: smithy_client_1.expectString(output.ipFamily),
|
|
4830
4832
|
serviceIpv4Cidr: smithy_client_1.expectString(output.serviceIpv4Cidr),
|
|
4833
|
+
serviceIpv6Cidr: smithy_client_1.expectString(output.serviceIpv6Cidr),
|
|
4831
4834
|
};
|
|
4832
4835
|
};
|
|
4833
4836
|
const deserializeAws_restJson1labelsMap = (output, context) => {
|
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
32
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
19
20
|
const getRuntimeConfig = (config) => {
|
|
20
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
25
|
return {
|
|
24
26
|
...clientSharedValues,
|
|
25
27
|
...config,
|
|
26
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
27
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
28
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
29
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
31
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
33
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
34
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
35
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
36
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
44
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
package/dist-es/endpoints.js
CHANGED
|
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
|
3
3
|
var regionHash = {
|
|
4
4
|
"us-east-1": {
|
|
5
5
|
variants: [
|
|
6
|
-
{
|
|
7
|
-
hostname: "eks.us-east-1.amazonaws.com",
|
|
8
|
-
tags: [],
|
|
9
|
-
},
|
|
10
6
|
{
|
|
11
7
|
hostname: "fips.eks.us-east-1.amazonaws.com",
|
|
12
8
|
tags: ["fips"],
|
|
@@ -15,10 +11,6 @@ var regionHash = {
|
|
|
15
11
|
},
|
|
16
12
|
"us-east-2": {
|
|
17
13
|
variants: [
|
|
18
|
-
{
|
|
19
|
-
hostname: "eks.us-east-2.amazonaws.com",
|
|
20
|
-
tags: [],
|
|
21
|
-
},
|
|
22
14
|
{
|
|
23
15
|
hostname: "fips.eks.us-east-2.amazonaws.com",
|
|
24
16
|
tags: ["fips"],
|
|
@@ -27,10 +19,6 @@ var regionHash = {
|
|
|
27
19
|
},
|
|
28
20
|
"us-gov-east-1": {
|
|
29
21
|
variants: [
|
|
30
|
-
{
|
|
31
|
-
hostname: "eks.us-gov-east-1.amazonaws.com",
|
|
32
|
-
tags: [],
|
|
33
|
-
},
|
|
34
22
|
{
|
|
35
23
|
hostname: "eks.us-gov-east-1.amazonaws.com",
|
|
36
24
|
tags: ["fips"],
|
|
@@ -39,10 +27,6 @@ var regionHash = {
|
|
|
39
27
|
},
|
|
40
28
|
"us-gov-west-1": {
|
|
41
29
|
variants: [
|
|
42
|
-
{
|
|
43
|
-
hostname: "eks.us-gov-west-1.amazonaws.com",
|
|
44
|
-
tags: [],
|
|
45
|
-
},
|
|
46
30
|
{
|
|
47
31
|
hostname: "eks.us-gov-west-1.amazonaws.com",
|
|
48
32
|
tags: ["fips"],
|
|
@@ -51,10 +35,6 @@ var regionHash = {
|
|
|
51
35
|
},
|
|
52
36
|
"us-west-1": {
|
|
53
37
|
variants: [
|
|
54
|
-
{
|
|
55
|
-
hostname: "eks.us-west-1.amazonaws.com",
|
|
56
|
-
tags: [],
|
|
57
|
-
},
|
|
58
38
|
{
|
|
59
39
|
hostname: "fips.eks.us-west-1.amazonaws.com",
|
|
60
40
|
tags: ["fips"],
|
|
@@ -63,10 +43,6 @@ var regionHash = {
|
|
|
63
43
|
},
|
|
64
44
|
"us-west-2": {
|
|
65
45
|
variants: [
|
|
66
|
-
{
|
|
67
|
-
hostname: "eks.us-west-2.amazonaws.com",
|
|
68
|
-
tags: [],
|
|
69
|
-
},
|
|
70
46
|
{
|
|
71
47
|
hostname: "fips.eks.us-west-2.amazonaws.com",
|
|
72
48
|
tags: ["fips"],
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
-
export var AccessDeniedException;
|
|
3
|
-
(function (AccessDeniedException) {
|
|
4
|
-
AccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
5
|
-
})(AccessDeniedException || (AccessDeniedException = {}));
|
|
6
2
|
export var AddonIssueCode;
|
|
7
3
|
(function (AddonIssueCode) {
|
|
8
4
|
AddonIssueCode["ACCESS_DENIED"] = "AccessDenied";
|
|
@@ -130,30 +126,6 @@ export var AssociateEncryptionConfigResponse;
|
|
|
130
126
|
(function (AssociateEncryptionConfigResponse) {
|
|
131
127
|
AssociateEncryptionConfigResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
132
128
|
})(AssociateEncryptionConfigResponse || (AssociateEncryptionConfigResponse = {}));
|
|
133
|
-
export var ClientException;
|
|
134
|
-
(function (ClientException) {
|
|
135
|
-
ClientException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
136
|
-
})(ClientException || (ClientException = {}));
|
|
137
|
-
export var InvalidParameterException;
|
|
138
|
-
(function (InvalidParameterException) {
|
|
139
|
-
InvalidParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
140
|
-
})(InvalidParameterException || (InvalidParameterException = {}));
|
|
141
|
-
export var InvalidRequestException;
|
|
142
|
-
(function (InvalidRequestException) {
|
|
143
|
-
InvalidRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
144
|
-
})(InvalidRequestException || (InvalidRequestException = {}));
|
|
145
|
-
export var ResourceInUseException;
|
|
146
|
-
(function (ResourceInUseException) {
|
|
147
|
-
ResourceInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
148
|
-
})(ResourceInUseException || (ResourceInUseException = {}));
|
|
149
|
-
export var ResourceNotFoundException;
|
|
150
|
-
(function (ResourceNotFoundException) {
|
|
151
|
-
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
152
|
-
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
153
|
-
export var ServerException;
|
|
154
|
-
(function (ServerException) {
|
|
155
|
-
ServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
156
|
-
})(ServerException || (ServerException = {}));
|
|
157
129
|
export var OidcIdentityProviderConfigRequest;
|
|
158
130
|
(function (OidcIdentityProviderConfigRequest) {
|
|
159
131
|
OidcIdentityProviderConfigRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -178,6 +150,11 @@ export var CreateAddonResponse;
|
|
|
178
150
|
(function (CreateAddonResponse) {
|
|
179
151
|
CreateAddonResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
180
152
|
})(CreateAddonResponse || (CreateAddonResponse = {}));
|
|
153
|
+
export var IpFamily;
|
|
154
|
+
(function (IpFamily) {
|
|
155
|
+
IpFamily["IPV4"] = "ipv4";
|
|
156
|
+
IpFamily["IPV6"] = "ipv6";
|
|
157
|
+
})(IpFamily || (IpFamily = {}));
|
|
181
158
|
export var KubernetesNetworkConfigRequest;
|
|
182
159
|
(function (KubernetesNetworkConfigRequest) {
|
|
183
160
|
KubernetesNetworkConfigRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -238,18 +215,6 @@ export var CreateClusterResponse;
|
|
|
238
215
|
(function (CreateClusterResponse) {
|
|
239
216
|
CreateClusterResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
240
217
|
})(CreateClusterResponse || (CreateClusterResponse = {}));
|
|
241
|
-
export var ResourceLimitExceededException;
|
|
242
|
-
(function (ResourceLimitExceededException) {
|
|
243
|
-
ResourceLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
244
|
-
})(ResourceLimitExceededException || (ResourceLimitExceededException = {}));
|
|
245
|
-
export var ServiceUnavailableException;
|
|
246
|
-
(function (ServiceUnavailableException) {
|
|
247
|
-
ServiceUnavailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
248
|
-
})(ServiceUnavailableException || (ServiceUnavailableException = {}));
|
|
249
|
-
export var UnsupportedAvailabilityZoneException;
|
|
250
|
-
(function (UnsupportedAvailabilityZoneException) {
|
|
251
|
-
UnsupportedAvailabilityZoneException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
252
|
-
})(UnsupportedAvailabilityZoneException || (UnsupportedAvailabilityZoneException = {}));
|
|
253
218
|
export var FargateProfileSelector;
|
|
254
219
|
(function (FargateProfileSelector) {
|
|
255
220
|
FargateProfileSelector.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -499,10 +464,6 @@ export var ListNodegroupsResponse;
|
|
|
499
464
|
(function (ListNodegroupsResponse) {
|
|
500
465
|
ListNodegroupsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
501
466
|
})(ListNodegroupsResponse || (ListNodegroupsResponse = {}));
|
|
502
|
-
export var BadRequestException;
|
|
503
|
-
(function (BadRequestException) {
|
|
504
|
-
BadRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
505
|
-
})(BadRequestException || (BadRequestException = {}));
|
|
506
467
|
export var ListTagsForResourceRequest;
|
|
507
468
|
(function (ListTagsForResourceRequest) {
|
|
508
469
|
ListTagsForResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -511,10 +472,6 @@ export var ListTagsForResourceResponse;
|
|
|
511
472
|
(function (ListTagsForResourceResponse) {
|
|
512
473
|
ListTagsForResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
513
474
|
})(ListTagsForResourceResponse || (ListTagsForResourceResponse = {}));
|
|
514
|
-
export var NotFoundException;
|
|
515
|
-
(function (NotFoundException) {
|
|
516
|
-
NotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
517
|
-
})(NotFoundException || (NotFoundException = {}));
|
|
518
475
|
export var ListUpdatesRequest;
|
|
519
476
|
(function (ListUpdatesRequest) {
|
|
520
477
|
ListUpdatesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -547,10 +504,6 @@ export var RegisterClusterResponse;
|
|
|
547
504
|
(function (RegisterClusterResponse) {
|
|
548
505
|
RegisterClusterResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
549
506
|
})(RegisterClusterResponse || (RegisterClusterResponse = {}));
|
|
550
|
-
export var ResourcePropagationDelayException;
|
|
551
|
-
(function (ResourcePropagationDelayException) {
|
|
552
|
-
ResourcePropagationDelayException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
553
|
-
})(ResourcePropagationDelayException || (ResourcePropagationDelayException = {}));
|
|
554
507
|
export var TagResourceRequest;
|
|
555
508
|
(function (TagResourceRequest) {
|
|
556
509
|
TagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -4854,7 +4854,7 @@ var serializeAws_restJson1IdentityProviderConfig = function (input, context) {
|
|
|
4854
4854
|
return __assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.type !== undefined && input.type !== null && { type: input.type }));
|
|
4855
4855
|
};
|
|
4856
4856
|
var serializeAws_restJson1KubernetesNetworkConfigRequest = function (input, context) {
|
|
4857
|
-
return __assign({}, (input.serviceIpv4Cidr !== undefined &&
|
|
4857
|
+
return __assign(__assign({}, (input.ipFamily !== undefined && input.ipFamily !== null && { ipFamily: input.ipFamily })), (input.serviceIpv4Cidr !== undefined &&
|
|
4858
4858
|
input.serviceIpv4Cidr !== null && { serviceIpv4Cidr: input.serviceIpv4Cidr }));
|
|
4859
4859
|
};
|
|
4860
4860
|
var serializeAws_restJson1labelsKeyList = function (input, context) {
|
|
@@ -5322,7 +5322,9 @@ var deserializeAws_restJson1IssueList = function (output, context) {
|
|
|
5322
5322
|
};
|
|
5323
5323
|
var deserializeAws_restJson1KubernetesNetworkConfigResponse = function (output, context) {
|
|
5324
5324
|
return {
|
|
5325
|
+
ipFamily: __expectString(output.ipFamily),
|
|
5325
5326
|
serviceIpv4Cidr: __expectString(output.serviceIpv4Cidr),
|
|
5327
|
+
serviceIpv6Cidr: __expectString(output.serviceIpv6Cidr),
|
|
5326
5328
|
};
|
|
5327
5329
|
};
|
|
5328
5330
|
var deserializeAws_restJson1labelsMap = function (output, context) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
17
26
|
};
|