@aws-sdk/client-route-53 3.43.0 → 3.47.1

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.
@@ -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
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
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(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
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),
@@ -66,6 +66,7 @@ var partitionHash = {
66
66
  "ap-south-1",
67
67
  "ap-southeast-1",
68
68
  "ap-southeast-2",
69
+ "ap-southeast-3",
69
70
  "aws-global",
70
71
  "ca-central-1",
71
72
  "eu-central-1",
@@ -15,30 +15,6 @@ export var ActivateKeySigningKeyResponse;
15
15
  (function (ActivateKeySigningKeyResponse) {
16
16
  ActivateKeySigningKeyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
17
17
  })(ActivateKeySigningKeyResponse || (ActivateKeySigningKeyResponse = {}));
18
- export var ConcurrentModification;
19
- (function (ConcurrentModification) {
20
- ConcurrentModification.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
21
- })(ConcurrentModification || (ConcurrentModification = {}));
22
- export var InvalidInput;
23
- (function (InvalidInput) {
24
- InvalidInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
25
- })(InvalidInput || (InvalidInput = {}));
26
- export var InvalidKeySigningKeyStatus;
27
- (function (InvalidKeySigningKeyStatus) {
28
- InvalidKeySigningKeyStatus.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
29
- })(InvalidKeySigningKeyStatus || (InvalidKeySigningKeyStatus = {}));
30
- export var InvalidKMSArn;
31
- (function (InvalidKMSArn) {
32
- InvalidKMSArn.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
33
- })(InvalidKMSArn || (InvalidKMSArn = {}));
34
- export var InvalidSigningStatus;
35
- (function (InvalidSigningStatus) {
36
- InvalidSigningStatus.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
37
- })(InvalidSigningStatus || (InvalidSigningStatus = {}));
38
- export var NoSuchKeySigningKey;
39
- (function (NoSuchKeySigningKey) {
40
- NoSuchKeySigningKey.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
41
- })(NoSuchKeySigningKey || (NoSuchKeySigningKey = {}));
42
18
  export var AlarmIdentifier;
43
19
  (function (AlarmIdentifier) {
44
20
  AlarmIdentifier.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -59,34 +35,6 @@ export var AssociateVPCWithHostedZoneResponse;
59
35
  (function (AssociateVPCWithHostedZoneResponse) {
60
36
  AssociateVPCWithHostedZoneResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
61
37
  })(AssociateVPCWithHostedZoneResponse || (AssociateVPCWithHostedZoneResponse = {}));
62
- export var ConflictingDomainExists;
63
- (function (ConflictingDomainExists) {
64
- ConflictingDomainExists.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
65
- })(ConflictingDomainExists || (ConflictingDomainExists = {}));
66
- export var InvalidVPCId;
67
- (function (InvalidVPCId) {
68
- InvalidVPCId.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
69
- })(InvalidVPCId || (InvalidVPCId = {}));
70
- export var LimitsExceeded;
71
- (function (LimitsExceeded) {
72
- LimitsExceeded.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
73
- })(LimitsExceeded || (LimitsExceeded = {}));
74
- export var NoSuchHostedZone;
75
- (function (NoSuchHostedZone) {
76
- NoSuchHostedZone.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
77
- })(NoSuchHostedZone || (NoSuchHostedZone = {}));
78
- export var NotAuthorizedException;
79
- (function (NotAuthorizedException) {
80
- NotAuthorizedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
81
- })(NotAuthorizedException || (NotAuthorizedException = {}));
82
- export var PriorRequestNotComplete;
83
- (function (PriorRequestNotComplete) {
84
- PriorRequestNotComplete.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
85
- })(PriorRequestNotComplete || (PriorRequestNotComplete = {}));
86
- export var PublicZoneVPCAssociation;
87
- (function (PublicZoneVPCAssociation) {
88
- PublicZoneVPCAssociation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
89
- })(PublicZoneVPCAssociation || (PublicZoneVPCAssociation = {}));
90
38
  export var GeoLocation;
91
39
  (function (GeoLocation) {
92
40
  GeoLocation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -115,14 +63,6 @@ export var ChangeResourceRecordSetsResponse;
115
63
  (function (ChangeResourceRecordSetsResponse) {
116
64
  ChangeResourceRecordSetsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
117
65
  })(ChangeResourceRecordSetsResponse || (ChangeResourceRecordSetsResponse = {}));
118
- export var InvalidChangeBatch;
119
- (function (InvalidChangeBatch) {
120
- InvalidChangeBatch.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
121
- })(InvalidChangeBatch || (InvalidChangeBatch = {}));
122
- export var NoSuchHealthCheck;
123
- (function (NoSuchHealthCheck) {
124
- NoSuchHealthCheck.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
125
- })(NoSuchHealthCheck || (NoSuchHealthCheck = {}));
126
66
  export var Tag;
127
67
  (function (Tag) {
128
68
  Tag.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -135,10 +75,6 @@ export var ChangeTagsForResourceResponse;
135
75
  (function (ChangeTagsForResourceResponse) {
136
76
  ChangeTagsForResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
137
77
  })(ChangeTagsForResourceResponse || (ChangeTagsForResourceResponse = {}));
138
- export var ThrottlingException;
139
- (function (ThrottlingException) {
140
- ThrottlingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
141
- })(ThrottlingException || (ThrottlingException = {}));
142
78
  export var HealthCheckType;
143
79
  (function (HealthCheckType) {
144
80
  HealthCheckType["CALCULATED"] = "CALCULATED";
@@ -178,14 +114,6 @@ export var CreateHealthCheckResponse;
178
114
  (function (CreateHealthCheckResponse) {
179
115
  CreateHealthCheckResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
180
116
  })(CreateHealthCheckResponse || (CreateHealthCheckResponse = {}));
181
- export var HealthCheckAlreadyExists;
182
- (function (HealthCheckAlreadyExists) {
183
- HealthCheckAlreadyExists.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
184
- })(HealthCheckAlreadyExists || (HealthCheckAlreadyExists = {}));
185
- export var TooManyHealthChecks;
186
- (function (TooManyHealthChecks) {
187
- TooManyHealthChecks.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
188
- })(TooManyHealthChecks || (TooManyHealthChecks = {}));
189
117
  export var HostedZoneConfig;
190
118
  (function (HostedZoneConfig) {
191
119
  HostedZoneConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -206,30 +134,6 @@ export var CreateHostedZoneResponse;
206
134
  (function (CreateHostedZoneResponse) {
207
135
  CreateHostedZoneResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
208
136
  })(CreateHostedZoneResponse || (CreateHostedZoneResponse = {}));
209
- export var DelegationSetNotAvailable;
210
- (function (DelegationSetNotAvailable) {
211
- DelegationSetNotAvailable.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
212
- })(DelegationSetNotAvailable || (DelegationSetNotAvailable = {}));
213
- export var DelegationSetNotReusable;
214
- (function (DelegationSetNotReusable) {
215
- DelegationSetNotReusable.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
216
- })(DelegationSetNotReusable || (DelegationSetNotReusable = {}));
217
- export var HostedZoneAlreadyExists;
218
- (function (HostedZoneAlreadyExists) {
219
- HostedZoneAlreadyExists.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
220
- })(HostedZoneAlreadyExists || (HostedZoneAlreadyExists = {}));
221
- export var InvalidDomainName;
222
- (function (InvalidDomainName) {
223
- InvalidDomainName.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
224
- })(InvalidDomainName || (InvalidDomainName = {}));
225
- export var NoSuchDelegationSet;
226
- (function (NoSuchDelegationSet) {
227
- NoSuchDelegationSet.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
228
- })(NoSuchDelegationSet || (NoSuchDelegationSet = {}));
229
- export var TooManyHostedZones;
230
- (function (TooManyHostedZones) {
231
- TooManyHostedZones.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
232
- })(TooManyHostedZones || (TooManyHostedZones = {}));
233
137
  export var CreateKeySigningKeyRequest;
234
138
  (function (CreateKeySigningKeyRequest) {
235
139
  CreateKeySigningKeyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -242,22 +146,6 @@ export var CreateKeySigningKeyResponse;
242
146
  (function (CreateKeySigningKeyResponse) {
243
147
  CreateKeySigningKeyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
244
148
  })(CreateKeySigningKeyResponse || (CreateKeySigningKeyResponse = {}));
245
- export var InvalidArgument;
246
- (function (InvalidArgument) {
247
- InvalidArgument.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
248
- })(InvalidArgument || (InvalidArgument = {}));
249
- export var InvalidKeySigningKeyName;
250
- (function (InvalidKeySigningKeyName) {
251
- InvalidKeySigningKeyName.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
252
- })(InvalidKeySigningKeyName || (InvalidKeySigningKeyName = {}));
253
- export var KeySigningKeyAlreadyExists;
254
- (function (KeySigningKeyAlreadyExists) {
255
- KeySigningKeyAlreadyExists.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
256
- })(KeySigningKeyAlreadyExists || (KeySigningKeyAlreadyExists = {}));
257
- export var TooManyKeySigningKeys;
258
- (function (TooManyKeySigningKeys) {
259
- TooManyKeySigningKeys.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
260
- })(TooManyKeySigningKeys || (TooManyKeySigningKeys = {}));
261
149
  export var CreateQueryLoggingConfigRequest;
262
150
  (function (CreateQueryLoggingConfigRequest) {
263
151
  CreateQueryLoggingConfigRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -270,18 +158,6 @@ export var CreateQueryLoggingConfigResponse;
270
158
  (function (CreateQueryLoggingConfigResponse) {
271
159
  CreateQueryLoggingConfigResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
272
160
  })(CreateQueryLoggingConfigResponse || (CreateQueryLoggingConfigResponse = {}));
273
- export var InsufficientCloudWatchLogsResourcePolicy;
274
- (function (InsufficientCloudWatchLogsResourcePolicy) {
275
- InsufficientCloudWatchLogsResourcePolicy.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
276
- })(InsufficientCloudWatchLogsResourcePolicy || (InsufficientCloudWatchLogsResourcePolicy = {}));
277
- export var NoSuchCloudWatchLogsLogGroup;
278
- (function (NoSuchCloudWatchLogsLogGroup) {
279
- NoSuchCloudWatchLogsLogGroup.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
280
- })(NoSuchCloudWatchLogsLogGroup || (NoSuchCloudWatchLogsLogGroup = {}));
281
- export var QueryLoggingConfigAlreadyExists;
282
- (function (QueryLoggingConfigAlreadyExists) {
283
- QueryLoggingConfigAlreadyExists.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
284
- })(QueryLoggingConfigAlreadyExists || (QueryLoggingConfigAlreadyExists = {}));
285
161
  export var CreateReusableDelegationSetRequest;
286
162
  (function (CreateReusableDelegationSetRequest) {
287
163
  CreateReusableDelegationSetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -290,18 +166,6 @@ export var CreateReusableDelegationSetResponse;
290
166
  (function (CreateReusableDelegationSetResponse) {
291
167
  CreateReusableDelegationSetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
292
168
  })(CreateReusableDelegationSetResponse || (CreateReusableDelegationSetResponse = {}));
293
- export var DelegationSetAlreadyCreated;
294
- (function (DelegationSetAlreadyCreated) {
295
- DelegationSetAlreadyCreated.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
296
- })(DelegationSetAlreadyCreated || (DelegationSetAlreadyCreated = {}));
297
- export var DelegationSetAlreadyReusable;
298
- (function (DelegationSetAlreadyReusable) {
299
- DelegationSetAlreadyReusable.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
300
- })(DelegationSetAlreadyReusable || (DelegationSetAlreadyReusable = {}));
301
- export var HostedZoneNotFound;
302
- (function (HostedZoneNotFound) {
303
- HostedZoneNotFound.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
304
- })(HostedZoneNotFound || (HostedZoneNotFound = {}));
305
169
  export var CreateTrafficPolicyRequest;
306
170
  (function (CreateTrafficPolicyRequest) {
307
171
  CreateTrafficPolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -314,18 +178,6 @@ export var CreateTrafficPolicyResponse;
314
178
  (function (CreateTrafficPolicyResponse) {
315
179
  CreateTrafficPolicyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
316
180
  })(CreateTrafficPolicyResponse || (CreateTrafficPolicyResponse = {}));
317
- export var InvalidTrafficPolicyDocument;
318
- (function (InvalidTrafficPolicyDocument) {
319
- InvalidTrafficPolicyDocument.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
320
- })(InvalidTrafficPolicyDocument || (InvalidTrafficPolicyDocument = {}));
321
- export var TooManyTrafficPolicies;
322
- (function (TooManyTrafficPolicies) {
323
- TooManyTrafficPolicies.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
324
- })(TooManyTrafficPolicies || (TooManyTrafficPolicies = {}));
325
- export var TrafficPolicyAlreadyExists;
326
- (function (TrafficPolicyAlreadyExists) {
327
- TrafficPolicyAlreadyExists.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
328
- })(TrafficPolicyAlreadyExists || (TrafficPolicyAlreadyExists = {}));
329
181
  export var CreateTrafficPolicyInstanceRequest;
330
182
  (function (CreateTrafficPolicyInstanceRequest) {
331
183
  CreateTrafficPolicyInstanceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -338,18 +190,6 @@ export var CreateTrafficPolicyInstanceResponse;
338
190
  (function (CreateTrafficPolicyInstanceResponse) {
339
191
  CreateTrafficPolicyInstanceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
340
192
  })(CreateTrafficPolicyInstanceResponse || (CreateTrafficPolicyInstanceResponse = {}));
341
- export var NoSuchTrafficPolicy;
342
- (function (NoSuchTrafficPolicy) {
343
- NoSuchTrafficPolicy.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
344
- })(NoSuchTrafficPolicy || (NoSuchTrafficPolicy = {}));
345
- export var TooManyTrafficPolicyInstances;
346
- (function (TooManyTrafficPolicyInstances) {
347
- TooManyTrafficPolicyInstances.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
348
- })(TooManyTrafficPolicyInstances || (TooManyTrafficPolicyInstances = {}));
349
- export var TrafficPolicyInstanceAlreadyExists;
350
- (function (TrafficPolicyInstanceAlreadyExists) {
351
- TrafficPolicyInstanceAlreadyExists.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
352
- })(TrafficPolicyInstanceAlreadyExists || (TrafficPolicyInstanceAlreadyExists = {}));
353
193
  export var CreateTrafficPolicyVersionRequest;
354
194
  (function (CreateTrafficPolicyVersionRequest) {
355
195
  CreateTrafficPolicyVersionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -358,10 +198,6 @@ export var CreateTrafficPolicyVersionResponse;
358
198
  (function (CreateTrafficPolicyVersionResponse) {
359
199
  CreateTrafficPolicyVersionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
360
200
  })(CreateTrafficPolicyVersionResponse || (CreateTrafficPolicyVersionResponse = {}));
361
- export var TooManyTrafficPolicyVersionsForCurrentPolicy;
362
- (function (TooManyTrafficPolicyVersionsForCurrentPolicy) {
363
- TooManyTrafficPolicyVersionsForCurrentPolicy.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
364
- })(TooManyTrafficPolicyVersionsForCurrentPolicy || (TooManyTrafficPolicyVersionsForCurrentPolicy = {}));
365
201
  export var CreateVPCAssociationAuthorizationRequest;
366
202
  (function (CreateVPCAssociationAuthorizationRequest) {
367
203
  CreateVPCAssociationAuthorizationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -370,10 +206,6 @@ export var CreateVPCAssociationAuthorizationResponse;
370
206
  (function (CreateVPCAssociationAuthorizationResponse) {
371
207
  CreateVPCAssociationAuthorizationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
372
208
  })(CreateVPCAssociationAuthorizationResponse || (CreateVPCAssociationAuthorizationResponse = {}));
373
- export var TooManyVPCAssociationAuthorizations;
374
- (function (TooManyVPCAssociationAuthorizations) {
375
- TooManyVPCAssociationAuthorizations.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
376
- })(TooManyVPCAssociationAuthorizations || (TooManyVPCAssociationAuthorizations = {}));
377
209
  export var DeactivateKeySigningKeyRequest;
378
210
  (function (DeactivateKeySigningKeyRequest) {
379
211
  DeactivateKeySigningKeyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -382,14 +214,6 @@ export var DeactivateKeySigningKeyResponse;
382
214
  (function (DeactivateKeySigningKeyResponse) {
383
215
  DeactivateKeySigningKeyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
384
216
  })(DeactivateKeySigningKeyResponse || (DeactivateKeySigningKeyResponse = {}));
385
- export var KeySigningKeyInParentDSRecord;
386
- (function (KeySigningKeyInParentDSRecord) {
387
- KeySigningKeyInParentDSRecord.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
388
- })(KeySigningKeyInParentDSRecord || (KeySigningKeyInParentDSRecord = {}));
389
- export var KeySigningKeyInUse;
390
- (function (KeySigningKeyInUse) {
391
- KeySigningKeyInUse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
392
- })(KeySigningKeyInUse || (KeySigningKeyInUse = {}));
393
217
  export var DeleteHealthCheckRequest;
394
218
  (function (DeleteHealthCheckRequest) {
395
219
  DeleteHealthCheckRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -398,10 +222,6 @@ export var DeleteHealthCheckResponse;
398
222
  (function (DeleteHealthCheckResponse) {
399
223
  DeleteHealthCheckResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
400
224
  })(DeleteHealthCheckResponse || (DeleteHealthCheckResponse = {}));
401
- export var HealthCheckInUse;
402
- (function (HealthCheckInUse) {
403
- HealthCheckInUse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
404
- })(HealthCheckInUse || (HealthCheckInUse = {}));
405
225
  export var DeleteHostedZoneRequest;
406
226
  (function (DeleteHostedZoneRequest) {
407
227
  DeleteHostedZoneRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -410,10 +230,6 @@ export var DeleteHostedZoneResponse;
410
230
  (function (DeleteHostedZoneResponse) {
411
231
  DeleteHostedZoneResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
412
232
  })(DeleteHostedZoneResponse || (DeleteHostedZoneResponse = {}));
413
- export var HostedZoneNotEmpty;
414
- (function (HostedZoneNotEmpty) {
415
- HostedZoneNotEmpty.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
416
- })(HostedZoneNotEmpty || (HostedZoneNotEmpty = {}));
417
233
  export var DeleteKeySigningKeyRequest;
418
234
  (function (DeleteKeySigningKeyRequest) {
419
235
  DeleteKeySigningKeyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -430,14 +246,6 @@ export var DeleteQueryLoggingConfigResponse;
430
246
  (function (DeleteQueryLoggingConfigResponse) {
431
247
  DeleteQueryLoggingConfigResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
432
248
  })(DeleteQueryLoggingConfigResponse || (DeleteQueryLoggingConfigResponse = {}));
433
- export var NoSuchQueryLoggingConfig;
434
- (function (NoSuchQueryLoggingConfig) {
435
- NoSuchQueryLoggingConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
436
- })(NoSuchQueryLoggingConfig || (NoSuchQueryLoggingConfig = {}));
437
- export var DelegationSetInUse;
438
- (function (DelegationSetInUse) {
439
- DelegationSetInUse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
440
- })(DelegationSetInUse || (DelegationSetInUse = {}));
441
249
  export var DeleteReusableDelegationSetRequest;
442
250
  (function (DeleteReusableDelegationSetRequest) {
443
251
  DeleteReusableDelegationSetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -454,10 +262,6 @@ export var DeleteTrafficPolicyResponse;
454
262
  (function (DeleteTrafficPolicyResponse) {
455
263
  DeleteTrafficPolicyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
456
264
  })(DeleteTrafficPolicyResponse || (DeleteTrafficPolicyResponse = {}));
457
- export var TrafficPolicyInUse;
458
- (function (TrafficPolicyInUse) {
459
- TrafficPolicyInUse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
460
- })(TrafficPolicyInUse || (TrafficPolicyInUse = {}));
461
265
  export var DeleteTrafficPolicyInstanceRequest;
462
266
  (function (DeleteTrafficPolicyInstanceRequest) {
463
267
  DeleteTrafficPolicyInstanceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -466,10 +270,6 @@ export var DeleteTrafficPolicyInstanceResponse;
466
270
  (function (DeleteTrafficPolicyInstanceResponse) {
467
271
  DeleteTrafficPolicyInstanceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
468
272
  })(DeleteTrafficPolicyInstanceResponse || (DeleteTrafficPolicyInstanceResponse = {}));
469
- export var NoSuchTrafficPolicyInstance;
470
- (function (NoSuchTrafficPolicyInstance) {
471
- NoSuchTrafficPolicyInstance.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
472
- })(NoSuchTrafficPolicyInstance || (NoSuchTrafficPolicyInstance = {}));
473
273
  export var DeleteVPCAssociationAuthorizationRequest;
474
274
  (function (DeleteVPCAssociationAuthorizationRequest) {
475
275
  DeleteVPCAssociationAuthorizationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -478,10 +278,6 @@ export var DeleteVPCAssociationAuthorizationResponse;
478
278
  (function (DeleteVPCAssociationAuthorizationResponse) {
479
279
  DeleteVPCAssociationAuthorizationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
480
280
  })(DeleteVPCAssociationAuthorizationResponse || (DeleteVPCAssociationAuthorizationResponse = {}));
481
- export var VPCAssociationAuthorizationNotFound;
482
- (function (VPCAssociationAuthorizationNotFound) {
483
- VPCAssociationAuthorizationNotFound.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
484
- })(VPCAssociationAuthorizationNotFound || (VPCAssociationAuthorizationNotFound = {}));
485
281
  export var DisableHostedZoneDNSSECRequest;
486
282
  (function (DisableHostedZoneDNSSECRequest) {
487
283
  DisableHostedZoneDNSSECRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -490,10 +286,6 @@ export var DisableHostedZoneDNSSECResponse;
490
286
  (function (DisableHostedZoneDNSSECResponse) {
491
287
  DisableHostedZoneDNSSECResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
492
288
  })(DisableHostedZoneDNSSECResponse || (DisableHostedZoneDNSSECResponse = {}));
493
- export var DNSSECNotFound;
494
- (function (DNSSECNotFound) {
495
- DNSSECNotFound.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
496
- })(DNSSECNotFound || (DNSSECNotFound = {}));
497
289
  export var DisassociateVPCFromHostedZoneRequest;
498
290
  (function (DisassociateVPCFromHostedZoneRequest) {
499
291
  DisassociateVPCFromHostedZoneRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -502,14 +294,6 @@ export var DisassociateVPCFromHostedZoneResponse;
502
294
  (function (DisassociateVPCFromHostedZoneResponse) {
503
295
  DisassociateVPCFromHostedZoneResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
504
296
  })(DisassociateVPCFromHostedZoneResponse || (DisassociateVPCFromHostedZoneResponse = {}));
505
- export var LastVPCAssociation;
506
- (function (LastVPCAssociation) {
507
- LastVPCAssociation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
508
- })(LastVPCAssociation || (LastVPCAssociation = {}));
509
- export var VPCAssociationNotFound;
510
- (function (VPCAssociationNotFound) {
511
- VPCAssociationNotFound.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
512
- })(VPCAssociationNotFound || (VPCAssociationNotFound = {}));
513
297
  export var EnableHostedZoneDNSSECRequest;
514
298
  (function (EnableHostedZoneDNSSECRequest) {
515
299
  EnableHostedZoneDNSSECRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -518,14 +302,6 @@ export var EnableHostedZoneDNSSECResponse;
518
302
  (function (EnableHostedZoneDNSSECResponse) {
519
303
  EnableHostedZoneDNSSECResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
520
304
  })(EnableHostedZoneDNSSECResponse || (EnableHostedZoneDNSSECResponse = {}));
521
- export var HostedZonePartiallyDelegated;
522
- (function (HostedZonePartiallyDelegated) {
523
- HostedZonePartiallyDelegated.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
524
- })(HostedZonePartiallyDelegated || (HostedZonePartiallyDelegated = {}));
525
- export var KeySigningKeyWithActiveStatusNotFound;
526
- (function (KeySigningKeyWithActiveStatusNotFound) {
527
- KeySigningKeyWithActiveStatusNotFound.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
528
- })(KeySigningKeyWithActiveStatusNotFound || (KeySigningKeyWithActiveStatusNotFound = {}));
529
305
  export var GetAccountLimitRequest;
530
306
  (function (GetAccountLimitRequest) {
531
307
  GetAccountLimitRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -542,10 +318,6 @@ export var GetChangeResponse;
542
318
  (function (GetChangeResponse) {
543
319
  GetChangeResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
544
320
  })(GetChangeResponse || (GetChangeResponse = {}));
545
- export var NoSuchChange;
546
- (function (NoSuchChange) {
547
- NoSuchChange.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
548
- })(NoSuchChange || (NoSuchChange = {}));
549
321
  export var GetCheckerIpRangesRequest;
550
322
  (function (GetCheckerIpRangesRequest) {
551
323
  GetCheckerIpRangesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -578,10 +350,6 @@ export var GetGeoLocationResponse;
578
350
  (function (GetGeoLocationResponse) {
579
351
  GetGeoLocationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
580
352
  })(GetGeoLocationResponse || (GetGeoLocationResponse = {}));
581
- export var NoSuchGeoLocation;
582
- (function (NoSuchGeoLocation) {
583
- NoSuchGeoLocation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
584
- })(NoSuchGeoLocation || (NoSuchGeoLocation = {}));
585
353
  export var GetHealthCheckRequest;
586
354
  (function (GetHealthCheckRequest) {
587
355
  GetHealthCheckRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -590,10 +358,6 @@ export var GetHealthCheckResponse;
590
358
  (function (GetHealthCheckResponse) {
591
359
  GetHealthCheckResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
592
360
  })(GetHealthCheckResponse || (GetHealthCheckResponse = {}));
593
- export var IncompatibleVersion;
594
- (function (IncompatibleVersion) {
595
- IncompatibleVersion.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
596
- })(IncompatibleVersion || (IncompatibleVersion = {}));
597
361
  export var GetHealthCheckCountRequest;
598
362
  (function (GetHealthCheckCountRequest) {
599
363
  GetHealthCheckCountRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -654,10 +418,6 @@ export var GetHostedZoneLimitResponse;
654
418
  (function (GetHostedZoneLimitResponse) {
655
419
  GetHostedZoneLimitResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
656
420
  })(GetHostedZoneLimitResponse || (GetHostedZoneLimitResponse = {}));
657
- export var HostedZoneNotPrivate;
658
- (function (HostedZoneNotPrivate) {
659
- HostedZoneNotPrivate.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
660
- })(HostedZoneNotPrivate || (HostedZoneNotPrivate = {}));
661
421
  export var GetQueryLoggingConfigRequest;
662
422
  (function (GetQueryLoggingConfigRequest) {
663
423
  GetQueryLoggingConfigRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -742,10 +502,6 @@ export var ListHostedZonesByNameResponse;
742
502
  (function (ListHostedZonesByNameResponse) {
743
503
  ListHostedZonesByNameResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
744
504
  })(ListHostedZonesByNameResponse || (ListHostedZonesByNameResponse = {}));
745
- export var InvalidPaginationToken;
746
- (function (InvalidPaginationToken) {
747
- InvalidPaginationToken.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
748
- })(InvalidPaginationToken || (InvalidPaginationToken = {}));
749
505
  export var ListHostedZonesByVPCRequest;
750
506
  (function (ListHostedZonesByVPCRequest) {
751
507
  ListHostedZonesByVPCRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -866,10 +622,6 @@ export var TestDNSAnswerResponse;
866
622
  (function (TestDNSAnswerResponse) {
867
623
  TestDNSAnswerResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
868
624
  })(TestDNSAnswerResponse || (TestDNSAnswerResponse = {}));
869
- export var HealthCheckVersionMismatch;
870
- (function (HealthCheckVersionMismatch) {
871
- HealthCheckVersionMismatch.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
872
- })(HealthCheckVersionMismatch || (HealthCheckVersionMismatch = {}));
873
625
  export var UpdateHealthCheckRequest;
874
626
  (function (UpdateHealthCheckRequest) {
875
627
  UpdateHealthCheckRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -894,10 +646,6 @@ export var UpdateTrafficPolicyCommentResponse;
894
646
  (function (UpdateTrafficPolicyCommentResponse) {
895
647
  UpdateTrafficPolicyCommentResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
896
648
  })(UpdateTrafficPolicyCommentResponse || (UpdateTrafficPolicyCommentResponse = {}));
897
- export var ConflictingTypes;
898
- (function (ConflictingTypes) {
899
- ConflictingTypes.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
900
- })(ConflictingTypes || (ConflictingTypes = {}));
901
649
  export var UpdateTrafficPolicyInstanceRequest;
902
650
  (function (UpdateTrafficPolicyInstanceRequest) {
903
651
  UpdateTrafficPolicyInstanceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -7700,16 +7700,16 @@ export var deserializeAws_restXmlUpdateHostedZoneCommentCommand = function (outp
7700
7700
  });
7701
7701
  }); };
7702
7702
  var deserializeAws_restXmlUpdateHostedZoneCommentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7703
- var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
7704
- var _e;
7705
- return __generator(this, function (_f) {
7706
- switch (_f.label) {
7703
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
7704
+ var _f;
7705
+ return __generator(this, function (_g) {
7706
+ switch (_g.label) {
7707
7707
  case 0:
7708
7708
  _a = [__assign({}, output)];
7709
- _e = {};
7709
+ _f = {};
7710
7710
  return [4, parseBody(output.body, context)];
7711
7711
  case 1:
7712
- parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
7712
+ parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
7713
7713
  errorCode = "UnknownError";
7714
7714
  errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
7715
7715
  _b = errorCode;
@@ -7718,26 +7718,34 @@ var deserializeAws_restXmlUpdateHostedZoneCommentCommandError = function (output
7718
7718
  case "com.amazonaws.route53#InvalidInput": return [3, 2];
7719
7719
  case "NoSuchHostedZone": return [3, 4];
7720
7720
  case "com.amazonaws.route53#NoSuchHostedZone": return [3, 4];
7721
+ case "PriorRequestNotComplete": return [3, 6];
7722
+ case "com.amazonaws.route53#PriorRequestNotComplete": return [3, 6];
7721
7723
  }
7722
- return [3, 6];
7724
+ return [3, 8];
7723
7725
  case 2:
7724
7726
  _c = [{}];
7725
7727
  return [4, deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)];
7726
7728
  case 3:
7727
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
7728
- return [3, 7];
7729
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
7730
+ return [3, 9];
7729
7731
  case 4:
7730
7732
  _d = [{}];
7731
7733
  return [4, deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)];
7732
7734
  case 5:
7733
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
7734
- return [3, 7];
7735
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
7736
+ return [3, 9];
7735
7737
  case 6:
7738
+ _e = [{}];
7739
+ return [4, deserializeAws_restXmlPriorRequestNotCompleteResponse(parsedOutput, context)];
7740
+ case 7:
7741
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
7742
+ return [3, 9];
7743
+ case 8:
7736
7744
  parsedBody = parsedOutput.body;
7737
7745
  errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
7738
7746
  response = __assign(__assign({}, parsedBody.Error), { name: "" + errorCode, message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
7739
- _f.label = 7;
7740
- case 7:
7747
+ _g.label = 9;
7748
+ case 9:
7741
7749
  message = response.message || response.Message || errorCode;
7742
7750
  response.message = message;
7743
7751
  delete response.Message;
@@ -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 FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), 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 });
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
  };