@aws-sdk/client-cloudcontrol 3.46.0 → 3.47.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 +11 -0
- package/dist-cjs/endpoints.js +0 -28
- package/dist-cjs/models/models_0.js +1 -127
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +10 -2
- package/dist-es/endpoints.js +0 -28
- package/dist-es/models/models_0.js +0 -84
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -4
- package/dist-types/CloudControlClient.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +0 -126
- 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/CloudControlClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -84
- 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 +35 -35
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **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))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
18
|
|
|
8
19
|
|
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
|
"ca-central-1": {
|
|
7
7
|
variants: [
|
|
8
|
-
{
|
|
9
|
-
hostname: "cloudcontrolapi.ca-central-1.amazonaws.com",
|
|
10
|
-
tags: [],
|
|
11
|
-
},
|
|
12
8
|
{
|
|
13
9
|
hostname: "cloudcontrolapi-fips.ca-central-1.amazonaws.com",
|
|
14
10
|
tags: ["fips"],
|
|
@@ -17,10 +13,6 @@ const regionHash = {
|
|
|
17
13
|
},
|
|
18
14
|
"us-east-1": {
|
|
19
15
|
variants: [
|
|
20
|
-
{
|
|
21
|
-
hostname: "cloudcontrolapi.us-east-1.amazonaws.com",
|
|
22
|
-
tags: [],
|
|
23
|
-
},
|
|
24
16
|
{
|
|
25
17
|
hostname: "cloudcontrolapi-fips.us-east-1.amazonaws.com",
|
|
26
18
|
tags: ["fips"],
|
|
@@ -29,10 +21,6 @@ const regionHash = {
|
|
|
29
21
|
},
|
|
30
22
|
"us-east-2": {
|
|
31
23
|
variants: [
|
|
32
|
-
{
|
|
33
|
-
hostname: "cloudcontrolapi.us-east-2.amazonaws.com",
|
|
34
|
-
tags: [],
|
|
35
|
-
},
|
|
36
24
|
{
|
|
37
25
|
hostname: "cloudcontrolapi-fips.us-east-2.amazonaws.com",
|
|
38
26
|
tags: ["fips"],
|
|
@@ -41,10 +29,6 @@ const regionHash = {
|
|
|
41
29
|
},
|
|
42
30
|
"us-gov-east-1": {
|
|
43
31
|
variants: [
|
|
44
|
-
{
|
|
45
|
-
hostname: "cloudcontrolapi.us-gov-east-1.amazonaws.com",
|
|
46
|
-
tags: [],
|
|
47
|
-
},
|
|
48
32
|
{
|
|
49
33
|
hostname: "cloudcontrolapi-fips.us-gov-east-1.amazonaws.com",
|
|
50
34
|
tags: ["fips"],
|
|
@@ -53,10 +37,6 @@ const regionHash = {
|
|
|
53
37
|
},
|
|
54
38
|
"us-gov-west-1": {
|
|
55
39
|
variants: [
|
|
56
|
-
{
|
|
57
|
-
hostname: "cloudcontrolapi.us-gov-west-1.amazonaws.com",
|
|
58
|
-
tags: [],
|
|
59
|
-
},
|
|
60
40
|
{
|
|
61
41
|
hostname: "cloudcontrolapi-fips.us-gov-west-1.amazonaws.com",
|
|
62
42
|
tags: ["fips"],
|
|
@@ -65,10 +45,6 @@ const regionHash = {
|
|
|
65
45
|
},
|
|
66
46
|
"us-west-1": {
|
|
67
47
|
variants: [
|
|
68
|
-
{
|
|
69
|
-
hostname: "cloudcontrolapi.us-west-1.amazonaws.com",
|
|
70
|
-
tags: [],
|
|
71
|
-
},
|
|
72
48
|
{
|
|
73
49
|
hostname: "cloudcontrolapi-fips.us-west-1.amazonaws.com",
|
|
74
50
|
tags: ["fips"],
|
|
@@ -77,10 +53,6 @@ const regionHash = {
|
|
|
77
53
|
},
|
|
78
54
|
"us-west-2": {
|
|
79
55
|
variants: [
|
|
80
|
-
{
|
|
81
|
-
hostname: "cloudcontrolapi.us-west-2.amazonaws.com",
|
|
82
|
-
tags: [],
|
|
83
|
-
},
|
|
84
56
|
{
|
|
85
57
|
hostname: "cloudcontrolapi-fips.us-west-2.amazonaws.com",
|
|
86
58
|
tags: ["fips"],
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateResourceOutput = exports.UpdateResourceInput = exports.ListResourcesOutput = exports.ListResourcesInput = exports.ListResourceRequestsOutput = exports.ListResourceRequestsInput = exports.ResourceRequestStatusFilter = exports.GetResourceRequestStatusOutput = exports.GetResourceRequestStatusInput = exports.GetResourceOutput = exports.ResourceDescription = exports.GetResourceInput = exports.DeleteResourceOutput = exports.DeleteResourceInput = exports.
|
|
3
|
+
exports.UpdateResourceOutput = exports.UpdateResourceInput = exports.ListResourcesOutput = exports.ListResourcesInput = exports.ListResourceRequestsOutput = exports.ListResourceRequestsInput = exports.ResourceRequestStatusFilter = exports.GetResourceRequestStatusOutput = exports.GetResourceRequestStatusInput = exports.GetResourceOutput = exports.ResourceDescription = exports.GetResourceInput = exports.DeleteResourceOutput = exports.DeleteResourceInput = exports.CreateResourceOutput = exports.CreateResourceInput = exports.CancelResourceRequestOutput = exports.ProgressEvent = exports.OperationStatus = exports.Operation = exports.HandlerErrorCode = exports.CancelResourceRequestInput = void 0;
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
-
var AlreadyExistsException;
|
|
6
|
-
(function (AlreadyExistsException) {
|
|
7
|
-
AlreadyExistsException.filterSensitiveLog = (obj) => ({
|
|
8
|
-
...obj,
|
|
9
|
-
});
|
|
10
|
-
})(AlreadyExistsException = exports.AlreadyExistsException || (exports.AlreadyExistsException = {}));
|
|
11
5
|
var CancelResourceRequestInput;
|
|
12
6
|
(function (CancelResourceRequestInput) {
|
|
13
7
|
CancelResourceRequestInput.filterSensitiveLog = (obj) => ({
|
|
@@ -61,30 +55,6 @@ var CancelResourceRequestOutput;
|
|
|
61
55
|
...(obj.ProgressEvent && { ProgressEvent: ProgressEvent.filterSensitiveLog(obj.ProgressEvent) }),
|
|
62
56
|
});
|
|
63
57
|
})(CancelResourceRequestOutput = exports.CancelResourceRequestOutput || (exports.CancelResourceRequestOutput = {}));
|
|
64
|
-
var ConcurrentModificationException;
|
|
65
|
-
(function (ConcurrentModificationException) {
|
|
66
|
-
ConcurrentModificationException.filterSensitiveLog = (obj) => ({
|
|
67
|
-
...obj,
|
|
68
|
-
});
|
|
69
|
-
})(ConcurrentModificationException = exports.ConcurrentModificationException || (exports.ConcurrentModificationException = {}));
|
|
70
|
-
var RequestTokenNotFoundException;
|
|
71
|
-
(function (RequestTokenNotFoundException) {
|
|
72
|
-
RequestTokenNotFoundException.filterSensitiveLog = (obj) => ({
|
|
73
|
-
...obj,
|
|
74
|
-
});
|
|
75
|
-
})(RequestTokenNotFoundException = exports.RequestTokenNotFoundException || (exports.RequestTokenNotFoundException = {}));
|
|
76
|
-
var ClientTokenConflictException;
|
|
77
|
-
(function (ClientTokenConflictException) {
|
|
78
|
-
ClientTokenConflictException.filterSensitiveLog = (obj) => ({
|
|
79
|
-
...obj,
|
|
80
|
-
});
|
|
81
|
-
})(ClientTokenConflictException = exports.ClientTokenConflictException || (exports.ClientTokenConflictException = {}));
|
|
82
|
-
var ConcurrentOperationException;
|
|
83
|
-
(function (ConcurrentOperationException) {
|
|
84
|
-
ConcurrentOperationException.filterSensitiveLog = (obj) => ({
|
|
85
|
-
...obj,
|
|
86
|
-
});
|
|
87
|
-
})(ConcurrentOperationException = exports.ConcurrentOperationException || (exports.ConcurrentOperationException = {}));
|
|
88
58
|
var CreateResourceInput;
|
|
89
59
|
(function (CreateResourceInput) {
|
|
90
60
|
CreateResourceInput.filterSensitiveLog = (obj) => ({
|
|
@@ -99,102 +69,6 @@ var CreateResourceOutput;
|
|
|
99
69
|
...(obj.ProgressEvent && { ProgressEvent: ProgressEvent.filterSensitiveLog(obj.ProgressEvent) }),
|
|
100
70
|
});
|
|
101
71
|
})(CreateResourceOutput = exports.CreateResourceOutput || (exports.CreateResourceOutput = {}));
|
|
102
|
-
var GeneralServiceException;
|
|
103
|
-
(function (GeneralServiceException) {
|
|
104
|
-
GeneralServiceException.filterSensitiveLog = (obj) => ({
|
|
105
|
-
...obj,
|
|
106
|
-
});
|
|
107
|
-
})(GeneralServiceException = exports.GeneralServiceException || (exports.GeneralServiceException = {}));
|
|
108
|
-
var HandlerFailureException;
|
|
109
|
-
(function (HandlerFailureException) {
|
|
110
|
-
HandlerFailureException.filterSensitiveLog = (obj) => ({
|
|
111
|
-
...obj,
|
|
112
|
-
});
|
|
113
|
-
})(HandlerFailureException = exports.HandlerFailureException || (exports.HandlerFailureException = {}));
|
|
114
|
-
var HandlerInternalFailureException;
|
|
115
|
-
(function (HandlerInternalFailureException) {
|
|
116
|
-
HandlerInternalFailureException.filterSensitiveLog = (obj) => ({
|
|
117
|
-
...obj,
|
|
118
|
-
});
|
|
119
|
-
})(HandlerInternalFailureException = exports.HandlerInternalFailureException || (exports.HandlerInternalFailureException = {}));
|
|
120
|
-
var InvalidCredentialsException;
|
|
121
|
-
(function (InvalidCredentialsException) {
|
|
122
|
-
InvalidCredentialsException.filterSensitiveLog = (obj) => ({
|
|
123
|
-
...obj,
|
|
124
|
-
});
|
|
125
|
-
})(InvalidCredentialsException = exports.InvalidCredentialsException || (exports.InvalidCredentialsException = {}));
|
|
126
|
-
var InvalidRequestException;
|
|
127
|
-
(function (InvalidRequestException) {
|
|
128
|
-
InvalidRequestException.filterSensitiveLog = (obj) => ({
|
|
129
|
-
...obj,
|
|
130
|
-
});
|
|
131
|
-
})(InvalidRequestException = exports.InvalidRequestException || (exports.InvalidRequestException = {}));
|
|
132
|
-
var NetworkFailureException;
|
|
133
|
-
(function (NetworkFailureException) {
|
|
134
|
-
NetworkFailureException.filterSensitiveLog = (obj) => ({
|
|
135
|
-
...obj,
|
|
136
|
-
});
|
|
137
|
-
})(NetworkFailureException = exports.NetworkFailureException || (exports.NetworkFailureException = {}));
|
|
138
|
-
var NotStabilizedException;
|
|
139
|
-
(function (NotStabilizedException) {
|
|
140
|
-
NotStabilizedException.filterSensitiveLog = (obj) => ({
|
|
141
|
-
...obj,
|
|
142
|
-
});
|
|
143
|
-
})(NotStabilizedException = exports.NotStabilizedException || (exports.NotStabilizedException = {}));
|
|
144
|
-
var NotUpdatableException;
|
|
145
|
-
(function (NotUpdatableException) {
|
|
146
|
-
NotUpdatableException.filterSensitiveLog = (obj) => ({
|
|
147
|
-
...obj,
|
|
148
|
-
});
|
|
149
|
-
})(NotUpdatableException = exports.NotUpdatableException || (exports.NotUpdatableException = {}));
|
|
150
|
-
var PrivateTypeException;
|
|
151
|
-
(function (PrivateTypeException) {
|
|
152
|
-
PrivateTypeException.filterSensitiveLog = (obj) => ({
|
|
153
|
-
...obj,
|
|
154
|
-
});
|
|
155
|
-
})(PrivateTypeException = exports.PrivateTypeException || (exports.PrivateTypeException = {}));
|
|
156
|
-
var ResourceConflictException;
|
|
157
|
-
(function (ResourceConflictException) {
|
|
158
|
-
ResourceConflictException.filterSensitiveLog = (obj) => ({
|
|
159
|
-
...obj,
|
|
160
|
-
});
|
|
161
|
-
})(ResourceConflictException = exports.ResourceConflictException || (exports.ResourceConflictException = {}));
|
|
162
|
-
var ResourceNotFoundException;
|
|
163
|
-
(function (ResourceNotFoundException) {
|
|
164
|
-
ResourceNotFoundException.filterSensitiveLog = (obj) => ({
|
|
165
|
-
...obj,
|
|
166
|
-
});
|
|
167
|
-
})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
|
|
168
|
-
var ServiceInternalErrorException;
|
|
169
|
-
(function (ServiceInternalErrorException) {
|
|
170
|
-
ServiceInternalErrorException.filterSensitiveLog = (obj) => ({
|
|
171
|
-
...obj,
|
|
172
|
-
});
|
|
173
|
-
})(ServiceInternalErrorException = exports.ServiceInternalErrorException || (exports.ServiceInternalErrorException = {}));
|
|
174
|
-
var ServiceLimitExceededException;
|
|
175
|
-
(function (ServiceLimitExceededException) {
|
|
176
|
-
ServiceLimitExceededException.filterSensitiveLog = (obj) => ({
|
|
177
|
-
...obj,
|
|
178
|
-
});
|
|
179
|
-
})(ServiceLimitExceededException = exports.ServiceLimitExceededException || (exports.ServiceLimitExceededException = {}));
|
|
180
|
-
var ThrottlingException;
|
|
181
|
-
(function (ThrottlingException) {
|
|
182
|
-
ThrottlingException.filterSensitiveLog = (obj) => ({
|
|
183
|
-
...obj,
|
|
184
|
-
});
|
|
185
|
-
})(ThrottlingException = exports.ThrottlingException || (exports.ThrottlingException = {}));
|
|
186
|
-
var TypeNotFoundException;
|
|
187
|
-
(function (TypeNotFoundException) {
|
|
188
|
-
TypeNotFoundException.filterSensitiveLog = (obj) => ({
|
|
189
|
-
...obj,
|
|
190
|
-
});
|
|
191
|
-
})(TypeNotFoundException = exports.TypeNotFoundException || (exports.TypeNotFoundException = {}));
|
|
192
|
-
var UnsupportedActionException;
|
|
193
|
-
(function (UnsupportedActionException) {
|
|
194
|
-
UnsupportedActionException.filterSensitiveLog = (obj) => ({
|
|
195
|
-
...obj,
|
|
196
|
-
});
|
|
197
|
-
})(UnsupportedActionException = exports.UnsupportedActionException || (exports.UnsupportedActionException = {}));
|
|
198
72
|
var DeleteResourceInput;
|
|
199
73
|
(function (DeleteResourceInput) {
|
|
200
74
|
DeleteResourceInput.filterSensitiveLog = (obj) => ({
|
|
@@ -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)),
|
|
@@ -15,13 +15,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
|
15
15
|
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
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
18
20
|
const getRuntimeConfig = (config) => {
|
|
19
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
20
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
21
25
|
return {
|
|
22
26
|
...clientSharedValues,
|
|
23
27
|
...config,
|
|
24
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
25
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
26
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
27
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -29,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
29
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 }),
|
|
30
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),
|
|
31
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),
|
|
32
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
33
|
-
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
|
+
}),
|
|
34
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
35
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
36
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
|
"ca-central-1": {
|
|
5
5
|
variants: [
|
|
6
|
-
{
|
|
7
|
-
hostname: "cloudcontrolapi.ca-central-1.amazonaws.com",
|
|
8
|
-
tags: [],
|
|
9
|
-
},
|
|
10
6
|
{
|
|
11
7
|
hostname: "cloudcontrolapi-fips.ca-central-1.amazonaws.com",
|
|
12
8
|
tags: ["fips"],
|
|
@@ -15,10 +11,6 @@ var regionHash = {
|
|
|
15
11
|
},
|
|
16
12
|
"us-east-1": {
|
|
17
13
|
variants: [
|
|
18
|
-
{
|
|
19
|
-
hostname: "cloudcontrolapi.us-east-1.amazonaws.com",
|
|
20
|
-
tags: [],
|
|
21
|
-
},
|
|
22
14
|
{
|
|
23
15
|
hostname: "cloudcontrolapi-fips.us-east-1.amazonaws.com",
|
|
24
16
|
tags: ["fips"],
|
|
@@ -27,10 +19,6 @@ var regionHash = {
|
|
|
27
19
|
},
|
|
28
20
|
"us-east-2": {
|
|
29
21
|
variants: [
|
|
30
|
-
{
|
|
31
|
-
hostname: "cloudcontrolapi.us-east-2.amazonaws.com",
|
|
32
|
-
tags: [],
|
|
33
|
-
},
|
|
34
22
|
{
|
|
35
23
|
hostname: "cloudcontrolapi-fips.us-east-2.amazonaws.com",
|
|
36
24
|
tags: ["fips"],
|
|
@@ -39,10 +27,6 @@ var regionHash = {
|
|
|
39
27
|
},
|
|
40
28
|
"us-gov-east-1": {
|
|
41
29
|
variants: [
|
|
42
|
-
{
|
|
43
|
-
hostname: "cloudcontrolapi.us-gov-east-1.amazonaws.com",
|
|
44
|
-
tags: [],
|
|
45
|
-
},
|
|
46
30
|
{
|
|
47
31
|
hostname: "cloudcontrolapi-fips.us-gov-east-1.amazonaws.com",
|
|
48
32
|
tags: ["fips"],
|
|
@@ -51,10 +35,6 @@ var regionHash = {
|
|
|
51
35
|
},
|
|
52
36
|
"us-gov-west-1": {
|
|
53
37
|
variants: [
|
|
54
|
-
{
|
|
55
|
-
hostname: "cloudcontrolapi.us-gov-west-1.amazonaws.com",
|
|
56
|
-
tags: [],
|
|
57
|
-
},
|
|
58
38
|
{
|
|
59
39
|
hostname: "cloudcontrolapi-fips.us-gov-west-1.amazonaws.com",
|
|
60
40
|
tags: ["fips"],
|
|
@@ -63,10 +43,6 @@ var regionHash = {
|
|
|
63
43
|
},
|
|
64
44
|
"us-west-1": {
|
|
65
45
|
variants: [
|
|
66
|
-
{
|
|
67
|
-
hostname: "cloudcontrolapi.us-west-1.amazonaws.com",
|
|
68
|
-
tags: [],
|
|
69
|
-
},
|
|
70
46
|
{
|
|
71
47
|
hostname: "cloudcontrolapi-fips.us-west-1.amazonaws.com",
|
|
72
48
|
tags: ["fips"],
|
|
@@ -75,10 +51,6 @@ var regionHash = {
|
|
|
75
51
|
},
|
|
76
52
|
"us-west-2": {
|
|
77
53
|
variants: [
|
|
78
|
-
{
|
|
79
|
-
hostname: "cloudcontrolapi.us-west-2.amazonaws.com",
|
|
80
|
-
tags: [],
|
|
81
|
-
},
|
|
82
54
|
{
|
|
83
55
|
hostname: "cloudcontrolapi-fips.us-west-2.amazonaws.com",
|
|
84
56
|
tags: ["fips"],
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
|
-
export var AlreadyExistsException;
|
|
4
|
-
(function (AlreadyExistsException) {
|
|
5
|
-
AlreadyExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
6
|
-
})(AlreadyExistsException || (AlreadyExistsException = {}));
|
|
7
3
|
export var CancelResourceRequestInput;
|
|
8
4
|
(function (CancelResourceRequestInput) {
|
|
9
5
|
CancelResourceRequestInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -49,22 +45,6 @@ export var CancelResourceRequestOutput;
|
|
|
49
45
|
(function (CancelResourceRequestOutput) {
|
|
50
46
|
CancelResourceRequestOutput.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.ProgressEvent && { ProgressEvent: ProgressEvent.filterSensitiveLog(obj.ProgressEvent) }))); };
|
|
51
47
|
})(CancelResourceRequestOutput || (CancelResourceRequestOutput = {}));
|
|
52
|
-
export var ConcurrentModificationException;
|
|
53
|
-
(function (ConcurrentModificationException) {
|
|
54
|
-
ConcurrentModificationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
55
|
-
})(ConcurrentModificationException || (ConcurrentModificationException = {}));
|
|
56
|
-
export var RequestTokenNotFoundException;
|
|
57
|
-
(function (RequestTokenNotFoundException) {
|
|
58
|
-
RequestTokenNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
59
|
-
})(RequestTokenNotFoundException || (RequestTokenNotFoundException = {}));
|
|
60
|
-
export var ClientTokenConflictException;
|
|
61
|
-
(function (ClientTokenConflictException) {
|
|
62
|
-
ClientTokenConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
63
|
-
})(ClientTokenConflictException || (ClientTokenConflictException = {}));
|
|
64
|
-
export var ConcurrentOperationException;
|
|
65
|
-
(function (ConcurrentOperationException) {
|
|
66
|
-
ConcurrentOperationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
67
|
-
})(ConcurrentOperationException || (ConcurrentOperationException = {}));
|
|
68
48
|
export var CreateResourceInput;
|
|
69
49
|
(function (CreateResourceInput) {
|
|
70
50
|
CreateResourceInput.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.DesiredState && { DesiredState: SENSITIVE_STRING }))); };
|
|
@@ -73,70 +53,6 @@ export var CreateResourceOutput;
|
|
|
73
53
|
(function (CreateResourceOutput) {
|
|
74
54
|
CreateResourceOutput.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.ProgressEvent && { ProgressEvent: ProgressEvent.filterSensitiveLog(obj.ProgressEvent) }))); };
|
|
75
55
|
})(CreateResourceOutput || (CreateResourceOutput = {}));
|
|
76
|
-
export var GeneralServiceException;
|
|
77
|
-
(function (GeneralServiceException) {
|
|
78
|
-
GeneralServiceException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
79
|
-
})(GeneralServiceException || (GeneralServiceException = {}));
|
|
80
|
-
export var HandlerFailureException;
|
|
81
|
-
(function (HandlerFailureException) {
|
|
82
|
-
HandlerFailureException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
83
|
-
})(HandlerFailureException || (HandlerFailureException = {}));
|
|
84
|
-
export var HandlerInternalFailureException;
|
|
85
|
-
(function (HandlerInternalFailureException) {
|
|
86
|
-
HandlerInternalFailureException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
87
|
-
})(HandlerInternalFailureException || (HandlerInternalFailureException = {}));
|
|
88
|
-
export var InvalidCredentialsException;
|
|
89
|
-
(function (InvalidCredentialsException) {
|
|
90
|
-
InvalidCredentialsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
91
|
-
})(InvalidCredentialsException || (InvalidCredentialsException = {}));
|
|
92
|
-
export var InvalidRequestException;
|
|
93
|
-
(function (InvalidRequestException) {
|
|
94
|
-
InvalidRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
95
|
-
})(InvalidRequestException || (InvalidRequestException = {}));
|
|
96
|
-
export var NetworkFailureException;
|
|
97
|
-
(function (NetworkFailureException) {
|
|
98
|
-
NetworkFailureException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
99
|
-
})(NetworkFailureException || (NetworkFailureException = {}));
|
|
100
|
-
export var NotStabilizedException;
|
|
101
|
-
(function (NotStabilizedException) {
|
|
102
|
-
NotStabilizedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
103
|
-
})(NotStabilizedException || (NotStabilizedException = {}));
|
|
104
|
-
export var NotUpdatableException;
|
|
105
|
-
(function (NotUpdatableException) {
|
|
106
|
-
NotUpdatableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
107
|
-
})(NotUpdatableException || (NotUpdatableException = {}));
|
|
108
|
-
export var PrivateTypeException;
|
|
109
|
-
(function (PrivateTypeException) {
|
|
110
|
-
PrivateTypeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
111
|
-
})(PrivateTypeException || (PrivateTypeException = {}));
|
|
112
|
-
export var ResourceConflictException;
|
|
113
|
-
(function (ResourceConflictException) {
|
|
114
|
-
ResourceConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
115
|
-
})(ResourceConflictException || (ResourceConflictException = {}));
|
|
116
|
-
export var ResourceNotFoundException;
|
|
117
|
-
(function (ResourceNotFoundException) {
|
|
118
|
-
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
119
|
-
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
120
|
-
export var ServiceInternalErrorException;
|
|
121
|
-
(function (ServiceInternalErrorException) {
|
|
122
|
-
ServiceInternalErrorException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
123
|
-
})(ServiceInternalErrorException || (ServiceInternalErrorException = {}));
|
|
124
|
-
export var ServiceLimitExceededException;
|
|
125
|
-
(function (ServiceLimitExceededException) {
|
|
126
|
-
ServiceLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
127
|
-
})(ServiceLimitExceededException || (ServiceLimitExceededException = {}));
|
|
128
|
-
export var ThrottlingException;
|
|
129
|
-
(function (ThrottlingException) {
|
|
130
|
-
ThrottlingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
131
|
-
})(ThrottlingException || (ThrottlingException = {}));
|
|
132
|
-
export var TypeNotFoundException;
|
|
133
|
-
(function (TypeNotFoundException) {
|
|
134
|
-
TypeNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
135
|
-
})(TypeNotFoundException || (TypeNotFoundException = {}));
|
|
136
|
-
export var UnsupportedActionException;
|
|
137
|
-
(function (UnsupportedActionException) {
|
|
138
|
-
UnsupportedActionException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
139
|
-
})(UnsupportedActionException || (UnsupportedActionException = {}));
|
|
140
56
|
export var DeleteResourceInput;
|
|
141
57
|
(function (DeleteResourceInput) {
|
|
142
58
|
DeleteResourceInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -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
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
15
17
|
export var getRuntimeConfig = function (config) {
|
|
16
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
17
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", 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 : decorateDefaultCredentialProvider(credentialDefaultProvider), 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 : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", 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 : decorateDefaultCredentialProvider(credentialDefaultProvider), 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 : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), 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 : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "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 : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), 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 });
|
|
19
28
|
};
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { CancelResourceRequestCommandInput, CancelResourceRequestCommandOutput } from "./commands/CancelResourceRequestCommand";
|
|
10
10
|
import { CreateResourceCommandInput, CreateResourceCommandOutput } from "./commands/CreateResourceCommand";
|
|
@@ -116,6 +116,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
116
116
|
* @internal
|
|
117
117
|
*/
|
|
118
118
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
119
|
+
/**
|
|
120
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
121
|
+
*/
|
|
122
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
119
123
|
}
|
|
120
124
|
declare type CloudControlClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
121
125
|
/**
|