@aws-sdk/client-elastic-load-balancing-v2 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/dist-cjs/endpoints.js +0 -24
- package/dist-cjs/models/models_0.js +3 -226
- 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 +0 -148
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/ElasticLoadBalancingV2Client.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +0 -222
- 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/ElasticLoadBalancingV2Client.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -124
- 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
|
@@ -68,18 +68,6 @@ export var AddListenerCertificatesOutput;
|
|
|
68
68
|
(function (AddListenerCertificatesOutput) {
|
|
69
69
|
AddListenerCertificatesOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
70
70
|
})(AddListenerCertificatesOutput || (AddListenerCertificatesOutput = {}));
|
|
71
|
-
export var CertificateNotFoundException;
|
|
72
|
-
(function (CertificateNotFoundException) {
|
|
73
|
-
CertificateNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
74
|
-
})(CertificateNotFoundException || (CertificateNotFoundException = {}));
|
|
75
|
-
export var ListenerNotFoundException;
|
|
76
|
-
(function (ListenerNotFoundException) {
|
|
77
|
-
ListenerNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
78
|
-
})(ListenerNotFoundException || (ListenerNotFoundException = {}));
|
|
79
|
-
export var TooManyCertificatesException;
|
|
80
|
-
(function (TooManyCertificatesException) {
|
|
81
|
-
TooManyCertificatesException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
82
|
-
})(TooManyCertificatesException || (TooManyCertificatesException = {}));
|
|
83
71
|
export var Tag;
|
|
84
72
|
(function (Tag) {
|
|
85
73
|
Tag.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -92,34 +80,6 @@ export var AddTagsOutput;
|
|
|
92
80
|
(function (AddTagsOutput) {
|
|
93
81
|
AddTagsOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
94
82
|
})(AddTagsOutput || (AddTagsOutput = {}));
|
|
95
|
-
export var DuplicateTagKeysException;
|
|
96
|
-
(function (DuplicateTagKeysException) {
|
|
97
|
-
DuplicateTagKeysException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
98
|
-
})(DuplicateTagKeysException || (DuplicateTagKeysException = {}));
|
|
99
|
-
export var LoadBalancerNotFoundException;
|
|
100
|
-
(function (LoadBalancerNotFoundException) {
|
|
101
|
-
LoadBalancerNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
102
|
-
})(LoadBalancerNotFoundException || (LoadBalancerNotFoundException = {}));
|
|
103
|
-
export var RuleNotFoundException;
|
|
104
|
-
(function (RuleNotFoundException) {
|
|
105
|
-
RuleNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
106
|
-
})(RuleNotFoundException || (RuleNotFoundException = {}));
|
|
107
|
-
export var TargetGroupNotFoundException;
|
|
108
|
-
(function (TargetGroupNotFoundException) {
|
|
109
|
-
TargetGroupNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
110
|
-
})(TargetGroupNotFoundException || (TargetGroupNotFoundException = {}));
|
|
111
|
-
export var TooManyTagsException;
|
|
112
|
-
(function (TooManyTagsException) {
|
|
113
|
-
TooManyTagsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
114
|
-
})(TooManyTagsException || (TooManyTagsException = {}));
|
|
115
|
-
export var AllocationIdNotFoundException;
|
|
116
|
-
(function (AllocationIdNotFoundException) {
|
|
117
|
-
AllocationIdNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
118
|
-
})(AllocationIdNotFoundException || (AllocationIdNotFoundException = {}));
|
|
119
|
-
export var ALPNPolicyNotSupportedException;
|
|
120
|
-
(function (ALPNPolicyNotSupportedException) {
|
|
121
|
-
ALPNPolicyNotSupportedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
122
|
-
})(ALPNPolicyNotSupportedException || (ALPNPolicyNotSupportedException = {}));
|
|
123
83
|
export var LoadBalancerAddress;
|
|
124
84
|
(function (LoadBalancerAddress) {
|
|
125
85
|
LoadBalancerAddress.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -128,10 +88,6 @@ export var AvailabilityZone;
|
|
|
128
88
|
(function (AvailabilityZone) {
|
|
129
89
|
AvailabilityZone.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
130
90
|
})(AvailabilityZone || (AvailabilityZone = {}));
|
|
131
|
-
export var AvailabilityZoneNotSupportedException;
|
|
132
|
-
(function (AvailabilityZoneNotSupportedException) {
|
|
133
|
-
AvailabilityZoneNotSupportedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
134
|
-
})(AvailabilityZoneNotSupportedException || (AvailabilityZoneNotSupportedException = {}));
|
|
135
91
|
export var Cipher;
|
|
136
92
|
(function (Cipher) {
|
|
137
93
|
Cipher.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -148,54 +104,6 @@ export var CreateListenerOutput;
|
|
|
148
104
|
(function (CreateListenerOutput) {
|
|
149
105
|
CreateListenerOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
150
106
|
})(CreateListenerOutput || (CreateListenerOutput = {}));
|
|
151
|
-
export var DuplicateListenerException;
|
|
152
|
-
(function (DuplicateListenerException) {
|
|
153
|
-
DuplicateListenerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
154
|
-
})(DuplicateListenerException || (DuplicateListenerException = {}));
|
|
155
|
-
export var IncompatibleProtocolsException;
|
|
156
|
-
(function (IncompatibleProtocolsException) {
|
|
157
|
-
IncompatibleProtocolsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
158
|
-
})(IncompatibleProtocolsException || (IncompatibleProtocolsException = {}));
|
|
159
|
-
export var InvalidConfigurationRequestException;
|
|
160
|
-
(function (InvalidConfigurationRequestException) {
|
|
161
|
-
InvalidConfigurationRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
162
|
-
})(InvalidConfigurationRequestException || (InvalidConfigurationRequestException = {}));
|
|
163
|
-
export var InvalidLoadBalancerActionException;
|
|
164
|
-
(function (InvalidLoadBalancerActionException) {
|
|
165
|
-
InvalidLoadBalancerActionException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
166
|
-
})(InvalidLoadBalancerActionException || (InvalidLoadBalancerActionException = {}));
|
|
167
|
-
export var SSLPolicyNotFoundException;
|
|
168
|
-
(function (SSLPolicyNotFoundException) {
|
|
169
|
-
SSLPolicyNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
170
|
-
})(SSLPolicyNotFoundException || (SSLPolicyNotFoundException = {}));
|
|
171
|
-
export var TargetGroupAssociationLimitException;
|
|
172
|
-
(function (TargetGroupAssociationLimitException) {
|
|
173
|
-
TargetGroupAssociationLimitException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
174
|
-
})(TargetGroupAssociationLimitException || (TargetGroupAssociationLimitException = {}));
|
|
175
|
-
export var TooManyActionsException;
|
|
176
|
-
(function (TooManyActionsException) {
|
|
177
|
-
TooManyActionsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
178
|
-
})(TooManyActionsException || (TooManyActionsException = {}));
|
|
179
|
-
export var TooManyListenersException;
|
|
180
|
-
(function (TooManyListenersException) {
|
|
181
|
-
TooManyListenersException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
182
|
-
})(TooManyListenersException || (TooManyListenersException = {}));
|
|
183
|
-
export var TooManyRegistrationsForTargetIdException;
|
|
184
|
-
(function (TooManyRegistrationsForTargetIdException) {
|
|
185
|
-
TooManyRegistrationsForTargetIdException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
186
|
-
})(TooManyRegistrationsForTargetIdException || (TooManyRegistrationsForTargetIdException = {}));
|
|
187
|
-
export var TooManyTargetsException;
|
|
188
|
-
(function (TooManyTargetsException) {
|
|
189
|
-
TooManyTargetsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
190
|
-
})(TooManyTargetsException || (TooManyTargetsException = {}));
|
|
191
|
-
export var TooManyUniqueTargetGroupsPerLoadBalancerException;
|
|
192
|
-
(function (TooManyUniqueTargetGroupsPerLoadBalancerException) {
|
|
193
|
-
TooManyUniqueTargetGroupsPerLoadBalancerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
194
|
-
})(TooManyUniqueTargetGroupsPerLoadBalancerException || (TooManyUniqueTargetGroupsPerLoadBalancerException = {}));
|
|
195
|
-
export var UnsupportedProtocolException;
|
|
196
|
-
(function (UnsupportedProtocolException) {
|
|
197
|
-
UnsupportedProtocolException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
198
|
-
})(UnsupportedProtocolException || (UnsupportedProtocolException = {}));
|
|
199
107
|
export var IpAddressType;
|
|
200
108
|
(function (IpAddressType) {
|
|
201
109
|
IpAddressType["DUALSTACK"] = "dualstack";
|
|
@@ -239,38 +147,6 @@ export var CreateLoadBalancerOutput;
|
|
|
239
147
|
(function (CreateLoadBalancerOutput) {
|
|
240
148
|
CreateLoadBalancerOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
241
149
|
})(CreateLoadBalancerOutput || (CreateLoadBalancerOutput = {}));
|
|
242
|
-
export var DuplicateLoadBalancerNameException;
|
|
243
|
-
(function (DuplicateLoadBalancerNameException) {
|
|
244
|
-
DuplicateLoadBalancerNameException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
245
|
-
})(DuplicateLoadBalancerNameException || (DuplicateLoadBalancerNameException = {}));
|
|
246
|
-
export var InvalidSchemeException;
|
|
247
|
-
(function (InvalidSchemeException) {
|
|
248
|
-
InvalidSchemeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
249
|
-
})(InvalidSchemeException || (InvalidSchemeException = {}));
|
|
250
|
-
export var InvalidSecurityGroupException;
|
|
251
|
-
(function (InvalidSecurityGroupException) {
|
|
252
|
-
InvalidSecurityGroupException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
253
|
-
})(InvalidSecurityGroupException || (InvalidSecurityGroupException = {}));
|
|
254
|
-
export var InvalidSubnetException;
|
|
255
|
-
(function (InvalidSubnetException) {
|
|
256
|
-
InvalidSubnetException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
257
|
-
})(InvalidSubnetException || (InvalidSubnetException = {}));
|
|
258
|
-
export var OperationNotPermittedException;
|
|
259
|
-
(function (OperationNotPermittedException) {
|
|
260
|
-
OperationNotPermittedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
261
|
-
})(OperationNotPermittedException || (OperationNotPermittedException = {}));
|
|
262
|
-
export var ResourceInUseException;
|
|
263
|
-
(function (ResourceInUseException) {
|
|
264
|
-
ResourceInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
265
|
-
})(ResourceInUseException || (ResourceInUseException = {}));
|
|
266
|
-
export var SubnetNotFoundException;
|
|
267
|
-
(function (SubnetNotFoundException) {
|
|
268
|
-
SubnetNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
269
|
-
})(SubnetNotFoundException || (SubnetNotFoundException = {}));
|
|
270
|
-
export var TooManyLoadBalancersException;
|
|
271
|
-
(function (TooManyLoadBalancersException) {
|
|
272
|
-
TooManyLoadBalancersException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
273
|
-
})(TooManyLoadBalancersException || (TooManyLoadBalancersException = {}));
|
|
274
150
|
export var HostHeaderConditionConfig;
|
|
275
151
|
(function (HostHeaderConditionConfig) {
|
|
276
152
|
HostHeaderConditionConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -315,18 +191,6 @@ export var CreateRuleOutput;
|
|
|
315
191
|
(function (CreateRuleOutput) {
|
|
316
192
|
CreateRuleOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
317
193
|
})(CreateRuleOutput || (CreateRuleOutput = {}));
|
|
318
|
-
export var PriorityInUseException;
|
|
319
|
-
(function (PriorityInUseException) {
|
|
320
|
-
PriorityInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
321
|
-
})(PriorityInUseException || (PriorityInUseException = {}));
|
|
322
|
-
export var TooManyRulesException;
|
|
323
|
-
(function (TooManyRulesException) {
|
|
324
|
-
TooManyRulesException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
325
|
-
})(TooManyRulesException || (TooManyRulesException = {}));
|
|
326
|
-
export var TooManyTargetGroupsException;
|
|
327
|
-
(function (TooManyTargetGroupsException) {
|
|
328
|
-
TooManyTargetGroupsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
329
|
-
})(TooManyTargetGroupsException || (TooManyTargetGroupsException = {}));
|
|
330
194
|
export var TargetGroupIpAddressTypeEnum;
|
|
331
195
|
(function (TargetGroupIpAddressTypeEnum) {
|
|
332
196
|
TargetGroupIpAddressTypeEnum["IPV4"] = "ipv4";
|
|
@@ -355,10 +219,6 @@ export var CreateTargetGroupOutput;
|
|
|
355
219
|
(function (CreateTargetGroupOutput) {
|
|
356
220
|
CreateTargetGroupOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
357
221
|
})(CreateTargetGroupOutput || (CreateTargetGroupOutput = {}));
|
|
358
|
-
export var DuplicateTargetGroupNameException;
|
|
359
|
-
(function (DuplicateTargetGroupNameException) {
|
|
360
|
-
DuplicateTargetGroupNameException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
361
|
-
})(DuplicateTargetGroupNameException || (DuplicateTargetGroupNameException = {}));
|
|
362
222
|
export var DeleteListenerInput;
|
|
363
223
|
(function (DeleteListenerInput) {
|
|
364
224
|
DeleteListenerInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -403,10 +263,6 @@ export var DeregisterTargetsOutput;
|
|
|
403
263
|
(function (DeregisterTargetsOutput) {
|
|
404
264
|
DeregisterTargetsOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
405
265
|
})(DeregisterTargetsOutput || (DeregisterTargetsOutput = {}));
|
|
406
|
-
export var InvalidTargetException;
|
|
407
|
-
(function (InvalidTargetException) {
|
|
408
|
-
InvalidTargetException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
409
|
-
})(InvalidTargetException || (InvalidTargetException = {}));
|
|
410
266
|
export var DescribeAccountLimitsInput;
|
|
411
267
|
(function (DescribeAccountLimitsInput) {
|
|
412
268
|
DescribeAccountLimitsInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -547,10 +403,6 @@ export var DescribeTargetHealthOutput;
|
|
|
547
403
|
(function (DescribeTargetHealthOutput) {
|
|
548
404
|
DescribeTargetHealthOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
549
405
|
})(DescribeTargetHealthOutput || (DescribeTargetHealthOutput = {}));
|
|
550
|
-
export var HealthUnavailableException;
|
|
551
|
-
(function (HealthUnavailableException) {
|
|
552
|
-
HealthUnavailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
553
|
-
})(HealthUnavailableException || (HealthUnavailableException = {}));
|
|
554
406
|
export var ModifyListenerInput;
|
|
555
407
|
(function (ModifyListenerInput) {
|
|
556
408
|
ModifyListenerInput.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,21 +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 {
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
16
17
|
export var getRuntimeConfig = function (config) {
|
|
17
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
-
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
19
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
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 });
|
|
21
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 { AddListenerCertificatesCommandInput, AddListenerCertificatesCommandOutput } from "./commands/AddListenerCertificatesCommand";
|
|
10
10
|
import { AddTagsCommandInput, AddTagsCommandOutput } from "./commands/AddTagsCommand";
|
|
@@ -142,6 +142,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
142
142
|
* @internal
|
|
143
143
|
*/
|
|
144
144
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
145
|
+
/**
|
|
146
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
147
|
+
*/
|
|
148
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
145
149
|
}
|
|
146
150
|
declare type ElasticLoadBalancingV2ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
147
151
|
/**
|