@aws-sdk/client-config-service 3.46.0 → 3.48.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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UntagResourceRequest = exports.TagResourceRequest = exports.StopConfigurationRecorderRequest = exports.StartRemediationExecutionResponse = exports.StartRemediationExecutionRequest = exports.StartConfigurationRecorderRequest = exports.StartConfigRulesEvaluationResponse = exports.StartConfigRulesEvaluationRequest = exports.SelectResourceConfigResponse = exports.SelectResourceConfigRequest = exports.SelectAggregateResourceConfigResponse = exports.SelectAggregateResourceConfigRequest = exports.QueryInfo = exports.TooManyTagsException = exports.ResourceConcurrentModificationException = exports.PutStoredQueryResponse = exports.PutStoredQueryRequest = exports.PutRetentionConfigurationResponse = exports.PutRetentionConfigurationRequest = exports.PutResourceConfigRequest = void 0;
3
+ exports.UntagResourceRequest = exports.TagResourceRequest = exports.StopConfigurationRecorderRequest = exports.StartRemediationExecutionResponse = exports.StartRemediationExecutionRequest = exports.StartConfigurationRecorderRequest = exports.StartConfigRulesEvaluationResponse = exports.StartConfigRulesEvaluationRequest = exports.SelectResourceConfigResponse = exports.SelectResourceConfigRequest = exports.SelectAggregateResourceConfigResponse = exports.SelectAggregateResourceConfigRequest = exports.QueryInfo = exports.PutStoredQueryResponse = exports.PutStoredQueryRequest = exports.PutRetentionConfigurationResponse = exports.PutRetentionConfigurationRequest = exports.PutResourceConfigRequest = void 0;
4
4
  var PutResourceConfigRequest;
5
5
  (function (PutResourceConfigRequest) {
6
6
  PutResourceConfigRequest.filterSensitiveLog = (obj) => ({
@@ -31,18 +31,6 @@ var PutStoredQueryResponse;
31
31
  ...obj,
32
32
  });
33
33
  })(PutStoredQueryResponse = exports.PutStoredQueryResponse || (exports.PutStoredQueryResponse = {}));
34
- var ResourceConcurrentModificationException;
35
- (function (ResourceConcurrentModificationException) {
36
- ResourceConcurrentModificationException.filterSensitiveLog = (obj) => ({
37
- ...obj,
38
- });
39
- })(ResourceConcurrentModificationException = exports.ResourceConcurrentModificationException || (exports.ResourceConcurrentModificationException = {}));
40
- var TooManyTagsException;
41
- (function (TooManyTagsException) {
42
- TooManyTagsException.filterSensitiveLog = (obj) => ({
43
- ...obj,
44
- });
45
- })(TooManyTagsException = exports.TooManyTagsException || (exports.TooManyTagsException = {}));
46
34
  var QueryInfo;
47
35
  (function (QueryInfo) {
48
36
  QueryInfo.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 : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
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(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
+ }),
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),
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
3
3
  var regionHash = {
4
4
  "us-east-1": {
5
5
  variants: [
6
- {
7
- hostname: "config.us-east-1.amazonaws.com",
8
- tags: [],
9
- },
10
6
  {
11
7
  hostname: "config-fips.us-east-1.amazonaws.com",
12
8
  tags: ["fips"],
@@ -15,10 +11,6 @@ var regionHash = {
15
11
  },
16
12
  "us-east-2": {
17
13
  variants: [
18
- {
19
- hostname: "config.us-east-2.amazonaws.com",
20
- tags: [],
21
- },
22
14
  {
23
15
  hostname: "config-fips.us-east-2.amazonaws.com",
24
16
  tags: ["fips"],
@@ -27,10 +19,6 @@ var regionHash = {
27
19
  },
28
20
  "us-gov-east-1": {
29
21
  variants: [
30
- {
31
- hostname: "config.us-gov-east-1.amazonaws.com",
32
- tags: [],
33
- },
34
22
  {
35
23
  hostname: "config.us-gov-east-1.amazonaws.com",
36
24
  tags: ["fips"],
@@ -39,10 +27,6 @@ var regionHash = {
39
27
  },
40
28
  "us-gov-west-1": {
41
29
  variants: [
42
- {
43
- hostname: "config.us-gov-west-1.amazonaws.com",
44
- tags: [],
45
- },
46
30
  {
47
31
  hostname: "config.us-gov-west-1.amazonaws.com",
48
32
  tags: ["fips"],
@@ -51,10 +35,6 @@ var regionHash = {
51
35
  },
52
36
  "us-west-1": {
53
37
  variants: [
54
- {
55
- hostname: "config.us-west-1.amazonaws.com",
56
- tags: [],
57
- },
58
38
  {
59
39
  hostname: "config-fips.us-west-1.amazonaws.com",
60
40
  tags: ["fips"],
@@ -63,10 +43,6 @@ var regionHash = {
63
43
  },
64
44
  "us-west-2": {
65
45
  variants: [
66
- {
67
- hostname: "config.us-west-2.amazonaws.com",
68
- tags: [],
69
- },
70
46
  {
71
47
  hostname: "config-fips.us-west-2.amazonaws.com",
72
48
  tags: ["fips"],
@@ -114,6 +114,9 @@ export var ResourceType;
114
114
  ResourceType["ClusterSecurityGroup"] = "AWS::Redshift::ClusterSecurityGroup";
115
115
  ResourceType["ClusterSnapshot"] = "AWS::Redshift::ClusterSnapshot";
116
116
  ResourceType["ClusterSubnetGroup"] = "AWS::Redshift::ClusterSubnetGroup";
117
+ ResourceType["CodeDeployApplication"] = "AWS::CodeDeploy::Application";
118
+ ResourceType["CodeDeployDeploymentConfig"] = "AWS::CodeDeploy::DeploymentConfig";
119
+ ResourceType["CodeDeployDeploymentGroup"] = "AWS::CodeDeploy::DeploymentGroup";
117
120
  ResourceType["ConformancePackCompliance"] = "AWS::Config::ConformancePackCompliance";
118
121
  ResourceType["CustomerGateway"] = "AWS::EC2::CustomerGateway";
119
122
  ResourceType["DBCluster"] = "AWS::RDS::DBCluster";
@@ -145,6 +148,8 @@ export var ResourceType;
145
148
  ResourceType["Instance"] = "AWS::EC2::Instance";
146
149
  ResourceType["InternetGateway"] = "AWS::EC2::InternetGateway";
147
150
  ResourceType["Key"] = "AWS::KMS::Key";
151
+ ResourceType["KinesisStream"] = "AWS::Kinesis::Stream";
152
+ ResourceType["KinesisStreamConsumer"] = "AWS::Kinesis::StreamConsumer";
148
153
  ResourceType["LaunchConfiguration"] = "AWS::AutoScaling::LaunchConfiguration";
149
154
  ResourceType["LoadBalancer"] = "AWS::ElasticLoadBalancing::LoadBalancer";
150
155
  ResourceType["LoadBalancerV2"] = "AWS::ElasticLoadBalancingV2::LoadBalancer";
@@ -193,6 +198,7 @@ export var ResourceType;
193
198
  ResourceType["Table"] = "AWS::DynamoDB::Table";
194
199
  ResourceType["Topic"] = "AWS::SNS::Topic";
195
200
  ResourceType["Trail"] = "AWS::CloudTrail::Trail";
201
+ ResourceType["TransitGateway"] = "AWS::EC2::TransitGateway";
196
202
  ResourceType["User"] = "AWS::IAM::User";
197
203
  ResourceType["VPC"] = "AWS::EC2::VPC";
198
204
  ResourceType["VPCEndpoint"] = "AWS::EC2::VPCEndpoint";
@@ -232,14 +238,6 @@ export var BatchGetAggregateResourceConfigResponse;
232
238
  (function (BatchGetAggregateResourceConfigResponse) {
233
239
  BatchGetAggregateResourceConfigResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
234
240
  })(BatchGetAggregateResourceConfigResponse || (BatchGetAggregateResourceConfigResponse = {}));
235
- export var NoSuchConfigurationAggregatorException;
236
- (function (NoSuchConfigurationAggregatorException) {
237
- NoSuchConfigurationAggregatorException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
238
- })(NoSuchConfigurationAggregatorException || (NoSuchConfigurationAggregatorException = {}));
239
- export var ValidationException;
240
- (function (ValidationException) {
241
- ValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
242
- })(ValidationException || (ValidationException = {}));
243
241
  export var ResourceKey;
244
242
  (function (ResourceKey) {
245
243
  ResourceKey.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -252,10 +250,6 @@ export var BatchGetResourceConfigResponse;
252
250
  (function (BatchGetResourceConfigResponse) {
253
251
  BatchGetResourceConfigResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
254
252
  })(BatchGetResourceConfigResponse || (BatchGetResourceConfigResponse = {}));
255
- export var NoAvailableConfigurationRecorderException;
256
- (function (NoAvailableConfigurationRecorderException) {
257
- NoAvailableConfigurationRecorderException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
258
- })(NoAvailableConfigurationRecorderException || (NoAvailableConfigurationRecorderException = {}));
259
253
  export var ChronologicalOrder;
260
254
  (function (ChronologicalOrder) {
261
255
  ChronologicalOrder["Forward"] = "Forward";
@@ -429,30 +423,14 @@ export var ConformancePackStatusDetail;
429
423
  (function (ConformancePackStatusDetail) {
430
424
  ConformancePackStatusDetail.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
431
425
  })(ConformancePackStatusDetail || (ConformancePackStatusDetail = {}));
432
- export var ConformancePackTemplateValidationException;
433
- (function (ConformancePackTemplateValidationException) {
434
- ConformancePackTemplateValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
435
- })(ConformancePackTemplateValidationException || (ConformancePackTemplateValidationException = {}));
436
426
  export var DeleteAggregationAuthorizationRequest;
437
427
  (function (DeleteAggregationAuthorizationRequest) {
438
428
  DeleteAggregationAuthorizationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
439
429
  })(DeleteAggregationAuthorizationRequest || (DeleteAggregationAuthorizationRequest = {}));
440
- export var InvalidParameterValueException;
441
- (function (InvalidParameterValueException) {
442
- InvalidParameterValueException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
443
- })(InvalidParameterValueException || (InvalidParameterValueException = {}));
444
430
  export var DeleteConfigRuleRequest;
445
431
  (function (DeleteConfigRuleRequest) {
446
432
  DeleteConfigRuleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
447
433
  })(DeleteConfigRuleRequest || (DeleteConfigRuleRequest = {}));
448
- export var NoSuchConfigRuleException;
449
- (function (NoSuchConfigRuleException) {
450
- NoSuchConfigRuleException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
451
- })(NoSuchConfigRuleException || (NoSuchConfigRuleException = {}));
452
- export var ResourceInUseException;
453
- (function (ResourceInUseException) {
454
- ResourceInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
455
- })(ResourceInUseException || (ResourceInUseException = {}));
456
434
  export var DeleteConfigurationAggregatorRequest;
457
435
  (function (DeleteConfigurationAggregatorRequest) {
458
436
  DeleteConfigurationAggregatorRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -461,30 +439,14 @@ export var DeleteConfigurationRecorderRequest;
461
439
  (function (DeleteConfigurationRecorderRequest) {
462
440
  DeleteConfigurationRecorderRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
463
441
  })(DeleteConfigurationRecorderRequest || (DeleteConfigurationRecorderRequest = {}));
464
- export var NoSuchConfigurationRecorderException;
465
- (function (NoSuchConfigurationRecorderException) {
466
- NoSuchConfigurationRecorderException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
467
- })(NoSuchConfigurationRecorderException || (NoSuchConfigurationRecorderException = {}));
468
442
  export var DeleteConformancePackRequest;
469
443
  (function (DeleteConformancePackRequest) {
470
444
  DeleteConformancePackRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
471
445
  })(DeleteConformancePackRequest || (DeleteConformancePackRequest = {}));
472
- export var NoSuchConformancePackException;
473
- (function (NoSuchConformancePackException) {
474
- NoSuchConformancePackException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
475
- })(NoSuchConformancePackException || (NoSuchConformancePackException = {}));
476
446
  export var DeleteDeliveryChannelRequest;
477
447
  (function (DeleteDeliveryChannelRequest) {
478
448
  DeleteDeliveryChannelRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
479
449
  })(DeleteDeliveryChannelRequest || (DeleteDeliveryChannelRequest = {}));
480
- export var LastDeliveryChannelDeleteFailedException;
481
- (function (LastDeliveryChannelDeleteFailedException) {
482
- LastDeliveryChannelDeleteFailedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
483
- })(LastDeliveryChannelDeleteFailedException || (LastDeliveryChannelDeleteFailedException = {}));
484
- export var NoSuchDeliveryChannelException;
485
- (function (NoSuchDeliveryChannelException) {
486
- NoSuchDeliveryChannelException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
487
- })(NoSuchDeliveryChannelException || (NoSuchDeliveryChannelException = {}));
488
450
  export var DeleteEvaluationResultsRequest;
489
451
  (function (DeleteEvaluationResultsRequest) {
490
452
  DeleteEvaluationResultsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -497,22 +459,10 @@ export var DeleteOrganizationConfigRuleRequest;
497
459
  (function (DeleteOrganizationConfigRuleRequest) {
498
460
  DeleteOrganizationConfigRuleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
499
461
  })(DeleteOrganizationConfigRuleRequest || (DeleteOrganizationConfigRuleRequest = {}));
500
- export var NoSuchOrganizationConfigRuleException;
501
- (function (NoSuchOrganizationConfigRuleException) {
502
- NoSuchOrganizationConfigRuleException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
503
- })(NoSuchOrganizationConfigRuleException || (NoSuchOrganizationConfigRuleException = {}));
504
- export var OrganizationAccessDeniedException;
505
- (function (OrganizationAccessDeniedException) {
506
- OrganizationAccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
507
- })(OrganizationAccessDeniedException || (OrganizationAccessDeniedException = {}));
508
462
  export var DeleteOrganizationConformancePackRequest;
509
463
  (function (DeleteOrganizationConformancePackRequest) {
510
464
  DeleteOrganizationConformancePackRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
511
465
  })(DeleteOrganizationConformancePackRequest || (DeleteOrganizationConformancePackRequest = {}));
512
- export var NoSuchOrganizationConformancePackException;
513
- (function (NoSuchOrganizationConformancePackException) {
514
- NoSuchOrganizationConformancePackException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
515
- })(NoSuchOrganizationConformancePackException || (NoSuchOrganizationConformancePackException = {}));
516
466
  export var DeletePendingAggregationRequestRequest;
517
467
  (function (DeletePendingAggregationRequestRequest) {
518
468
  DeletePendingAggregationRequestRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -525,18 +475,6 @@ export var DeleteRemediationConfigurationResponse;
525
475
  (function (DeleteRemediationConfigurationResponse) {
526
476
  DeleteRemediationConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
527
477
  })(DeleteRemediationConfigurationResponse || (DeleteRemediationConfigurationResponse = {}));
528
- export var InsufficientPermissionsException;
529
- (function (InsufficientPermissionsException) {
530
- InsufficientPermissionsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
531
- })(InsufficientPermissionsException || (InsufficientPermissionsException = {}));
532
- export var NoSuchRemediationConfigurationException;
533
- (function (NoSuchRemediationConfigurationException) {
534
- NoSuchRemediationConfigurationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
535
- })(NoSuchRemediationConfigurationException || (NoSuchRemediationConfigurationException = {}));
536
- export var RemediationInProgressException;
537
- (function (RemediationInProgressException) {
538
- RemediationInProgressException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
539
- })(RemediationInProgressException || (RemediationInProgressException = {}));
540
478
  export var RemediationExceptionResourceKey;
541
479
  (function (RemediationExceptionResourceKey) {
542
480
  RemediationExceptionResourceKey.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -553,26 +491,14 @@ export var DeleteRemediationExceptionsResponse;
553
491
  (function (DeleteRemediationExceptionsResponse) {
554
492
  DeleteRemediationExceptionsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
555
493
  })(DeleteRemediationExceptionsResponse || (DeleteRemediationExceptionsResponse = {}));
556
- export var NoSuchRemediationExceptionException;
557
- (function (NoSuchRemediationExceptionException) {
558
- NoSuchRemediationExceptionException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
559
- })(NoSuchRemediationExceptionException || (NoSuchRemediationExceptionException = {}));
560
494
  export var DeleteResourceConfigRequest;
561
495
  (function (DeleteResourceConfigRequest) {
562
496
  DeleteResourceConfigRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
563
497
  })(DeleteResourceConfigRequest || (DeleteResourceConfigRequest = {}));
564
- export var NoRunningConfigurationRecorderException;
565
- (function (NoRunningConfigurationRecorderException) {
566
- NoRunningConfigurationRecorderException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
567
- })(NoRunningConfigurationRecorderException || (NoRunningConfigurationRecorderException = {}));
568
498
  export var DeleteRetentionConfigurationRequest;
569
499
  (function (DeleteRetentionConfigurationRequest) {
570
500
  DeleteRetentionConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
571
501
  })(DeleteRetentionConfigurationRequest || (DeleteRetentionConfigurationRequest = {}));
572
- export var NoSuchRetentionConfigurationException;
573
- (function (NoSuchRetentionConfigurationException) {
574
- NoSuchRetentionConfigurationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
575
- })(NoSuchRetentionConfigurationException || (NoSuchRetentionConfigurationException = {}));
576
502
  export var DeleteStoredQueryRequest;
577
503
  (function (DeleteStoredQueryRequest) {
578
504
  DeleteStoredQueryRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -581,10 +507,6 @@ export var DeleteStoredQueryResponse;
581
507
  (function (DeleteStoredQueryResponse) {
582
508
  DeleteStoredQueryResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
583
509
  })(DeleteStoredQueryResponse || (DeleteStoredQueryResponse = {}));
584
- export var ResourceNotFoundException;
585
- (function (ResourceNotFoundException) {
586
- ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
587
- })(ResourceNotFoundException || (ResourceNotFoundException = {}));
588
510
  export var DeliverConfigSnapshotRequest;
589
511
  (function (DeliverConfigSnapshotRequest) {
590
512
  DeliverConfigSnapshotRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -609,14 +531,6 @@ export var DescribeAggregateComplianceByConfigRulesResponse;
609
531
  (function (DescribeAggregateComplianceByConfigRulesResponse) {
610
532
  DescribeAggregateComplianceByConfigRulesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
611
533
  })(DescribeAggregateComplianceByConfigRulesResponse || (DescribeAggregateComplianceByConfigRulesResponse = {}));
612
- export var InvalidLimitException;
613
- (function (InvalidLimitException) {
614
- InvalidLimitException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
615
- })(InvalidLimitException || (InvalidLimitException = {}));
616
- export var InvalidNextTokenException;
617
- (function (InvalidNextTokenException) {
618
- InvalidNextTokenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
619
- })(InvalidNextTokenException || (InvalidNextTokenException = {}));
620
534
  export var DescribeAggregateComplianceByConformancePacksRequest;
621
535
  (function (DescribeAggregateComplianceByConformancePacksRequest) {
622
536
  DescribeAggregateComplianceByConformancePacksRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -705,10 +619,6 @@ export var DescribeConformancePackComplianceResponse;
705
619
  (function (DescribeConformancePackComplianceResponse) {
706
620
  DescribeConformancePackComplianceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
707
621
  })(DescribeConformancePackComplianceResponse || (DescribeConformancePackComplianceResponse = {}));
708
- export var NoSuchConfigRuleInConformancePackException;
709
- (function (NoSuchConfigRuleInConformancePackException) {
710
- NoSuchConfigRuleInConformancePackException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
711
- })(NoSuchConfigRuleInConformancePackException || (NoSuchConfigRuleInConformancePackException = {}));
712
622
  export var DescribeConformancePacksRequest;
713
623
  (function (DescribeConformancePacksRequest) {
714
624
  DescribeConformancePacksRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1010,14 +920,6 @@ export var GetAggregateResourceConfigResponse;
1010
920
  (function (GetAggregateResourceConfigResponse) {
1011
921
  GetAggregateResourceConfigResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1012
922
  })(GetAggregateResourceConfigResponse || (GetAggregateResourceConfigResponse = {}));
1013
- export var OversizedConfigurationItemException;
1014
- (function (OversizedConfigurationItemException) {
1015
- OversizedConfigurationItemException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1016
- })(OversizedConfigurationItemException || (OversizedConfigurationItemException = {}));
1017
- export var ResourceNotDiscoveredException;
1018
- (function (ResourceNotDiscoveredException) {
1019
- ResourceNotDiscoveredException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1020
- })(ResourceNotDiscoveredException || (ResourceNotDiscoveredException = {}));
1021
923
  export var GetComplianceDetailsByConfigRuleRequest;
1022
924
  (function (GetComplianceDetailsByConfigRuleRequest) {
1023
925
  GetComplianceDetailsByConfigRuleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1138,10 +1040,6 @@ export var GetResourceConfigHistoryResponse;
1138
1040
  (function (GetResourceConfigHistoryResponse) {
1139
1041
  GetResourceConfigHistoryResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1140
1042
  })(GetResourceConfigHistoryResponse || (GetResourceConfigHistoryResponse = {}));
1141
- export var InvalidTimeRangeException;
1142
- (function (InvalidTimeRangeException) {
1143
- InvalidTimeRangeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1144
- })(InvalidTimeRangeException || (InvalidTimeRangeException = {}));
1145
1043
  export var GetStoredQueryRequest;
1146
1044
  (function (GetStoredQueryRequest) {
1147
1045
  GetStoredQueryRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1154,50 +1052,6 @@ export var GetStoredQueryResponse;
1154
1052
  (function (GetStoredQueryResponse) {
1155
1053
  GetStoredQueryResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1156
1054
  })(GetStoredQueryResponse || (GetStoredQueryResponse = {}));
1157
- export var InsufficientDeliveryPolicyException;
1158
- (function (InsufficientDeliveryPolicyException) {
1159
- InsufficientDeliveryPolicyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1160
- })(InsufficientDeliveryPolicyException || (InsufficientDeliveryPolicyException = {}));
1161
- export var InvalidConfigurationRecorderNameException;
1162
- (function (InvalidConfigurationRecorderNameException) {
1163
- InvalidConfigurationRecorderNameException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1164
- })(InvalidConfigurationRecorderNameException || (InvalidConfigurationRecorderNameException = {}));
1165
- export var InvalidDeliveryChannelNameException;
1166
- (function (InvalidDeliveryChannelNameException) {
1167
- InvalidDeliveryChannelNameException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1168
- })(InvalidDeliveryChannelNameException || (InvalidDeliveryChannelNameException = {}));
1169
- export var InvalidExpressionException;
1170
- (function (InvalidExpressionException) {
1171
- InvalidExpressionException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1172
- })(InvalidExpressionException || (InvalidExpressionException = {}));
1173
- export var InvalidRecordingGroupException;
1174
- (function (InvalidRecordingGroupException) {
1175
- InvalidRecordingGroupException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1176
- })(InvalidRecordingGroupException || (InvalidRecordingGroupException = {}));
1177
- export var InvalidResultTokenException;
1178
- (function (InvalidResultTokenException) {
1179
- InvalidResultTokenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1180
- })(InvalidResultTokenException || (InvalidResultTokenException = {}));
1181
- export var InvalidRoleException;
1182
- (function (InvalidRoleException) {
1183
- InvalidRoleException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1184
- })(InvalidRoleException || (InvalidRoleException = {}));
1185
- export var InvalidS3KeyPrefixException;
1186
- (function (InvalidS3KeyPrefixException) {
1187
- InvalidS3KeyPrefixException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1188
- })(InvalidS3KeyPrefixException || (InvalidS3KeyPrefixException = {}));
1189
- export var InvalidS3KmsKeyArnException;
1190
- (function (InvalidS3KmsKeyArnException) {
1191
- InvalidS3KmsKeyArnException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1192
- })(InvalidS3KmsKeyArnException || (InvalidS3KmsKeyArnException = {}));
1193
- export var InvalidSNSTopicARNException;
1194
- (function (InvalidSNSTopicARNException) {
1195
- InvalidSNSTopicARNException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1196
- })(InvalidSNSTopicARNException || (InvalidSNSTopicARNException = {}));
1197
- export var LimitExceededException;
1198
- (function (LimitExceededException) {
1199
- LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1200
- })(LimitExceededException || (LimitExceededException = {}));
1201
1055
  export var ResourceFilters;
1202
1056
  (function (ResourceFilters) {
1203
1057
  ResourceFilters.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1246,58 +1100,6 @@ export var ListTagsForResourceResponse;
1246
1100
  (function (ListTagsForResourceResponse) {
1247
1101
  ListTagsForResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1248
1102
  })(ListTagsForResourceResponse || (ListTagsForResourceResponse = {}));
1249
- export var MaxActiveResourcesExceededException;
1250
- (function (MaxActiveResourcesExceededException) {
1251
- MaxActiveResourcesExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1252
- })(MaxActiveResourcesExceededException || (MaxActiveResourcesExceededException = {}));
1253
- export var MaxNumberOfConfigRulesExceededException;
1254
- (function (MaxNumberOfConfigRulesExceededException) {
1255
- MaxNumberOfConfigRulesExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1256
- })(MaxNumberOfConfigRulesExceededException || (MaxNumberOfConfigRulesExceededException = {}));
1257
- export var MaxNumberOfConfigurationRecordersExceededException;
1258
- (function (MaxNumberOfConfigurationRecordersExceededException) {
1259
- MaxNumberOfConfigurationRecordersExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1260
- })(MaxNumberOfConfigurationRecordersExceededException || (MaxNumberOfConfigurationRecordersExceededException = {}));
1261
- export var MaxNumberOfConformancePacksExceededException;
1262
- (function (MaxNumberOfConformancePacksExceededException) {
1263
- MaxNumberOfConformancePacksExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1264
- })(MaxNumberOfConformancePacksExceededException || (MaxNumberOfConformancePacksExceededException = {}));
1265
- export var MaxNumberOfDeliveryChannelsExceededException;
1266
- (function (MaxNumberOfDeliveryChannelsExceededException) {
1267
- MaxNumberOfDeliveryChannelsExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1268
- })(MaxNumberOfDeliveryChannelsExceededException || (MaxNumberOfDeliveryChannelsExceededException = {}));
1269
- export var MaxNumberOfOrganizationConfigRulesExceededException;
1270
- (function (MaxNumberOfOrganizationConfigRulesExceededException) {
1271
- MaxNumberOfOrganizationConfigRulesExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1272
- })(MaxNumberOfOrganizationConfigRulesExceededException || (MaxNumberOfOrganizationConfigRulesExceededException = {}));
1273
- export var MaxNumberOfOrganizationConformancePacksExceededException;
1274
- (function (MaxNumberOfOrganizationConformancePacksExceededException) {
1275
- MaxNumberOfOrganizationConformancePacksExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1276
- })(MaxNumberOfOrganizationConformancePacksExceededException || (MaxNumberOfOrganizationConformancePacksExceededException = {}));
1277
- export var MaxNumberOfRetentionConfigurationsExceededException;
1278
- (function (MaxNumberOfRetentionConfigurationsExceededException) {
1279
- MaxNumberOfRetentionConfigurationsExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1280
- })(MaxNumberOfRetentionConfigurationsExceededException || (MaxNumberOfRetentionConfigurationsExceededException = {}));
1281
- export var NoAvailableDeliveryChannelException;
1282
- (function (NoAvailableDeliveryChannelException) {
1283
- NoAvailableDeliveryChannelException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1284
- })(NoAvailableDeliveryChannelException || (NoAvailableDeliveryChannelException = {}));
1285
- export var NoAvailableOrganizationException;
1286
- (function (NoAvailableOrganizationException) {
1287
- NoAvailableOrganizationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1288
- })(NoAvailableOrganizationException || (NoAvailableOrganizationException = {}));
1289
- export var NoSuchBucketException;
1290
- (function (NoSuchBucketException) {
1291
- NoSuchBucketException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1292
- })(NoSuchBucketException || (NoSuchBucketException = {}));
1293
- export var OrganizationAllFeaturesNotEnabledException;
1294
- (function (OrganizationAllFeaturesNotEnabledException) {
1295
- OrganizationAllFeaturesNotEnabledException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1296
- })(OrganizationAllFeaturesNotEnabledException || (OrganizationAllFeaturesNotEnabledException = {}));
1297
- export var OrganizationConformancePackTemplateValidationException;
1298
- (function (OrganizationConformancePackTemplateValidationException) {
1299
- OrganizationConformancePackTemplateValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1300
- })(OrganizationConformancePackTemplateValidationException || (OrganizationConformancePackTemplateValidationException = {}));
1301
1103
  export var PutAggregationAuthorizationRequest;
1302
1104
  (function (PutAggregationAuthorizationRequest) {
1303
1105
  PutAggregationAuthorizationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -19,14 +19,6 @@ export var PutStoredQueryResponse;
19
19
  (function (PutStoredQueryResponse) {
20
20
  PutStoredQueryResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
21
21
  })(PutStoredQueryResponse || (PutStoredQueryResponse = {}));
22
- export var ResourceConcurrentModificationException;
23
- (function (ResourceConcurrentModificationException) {
24
- ResourceConcurrentModificationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
25
- })(ResourceConcurrentModificationException || (ResourceConcurrentModificationException = {}));
26
- export var TooManyTagsException;
27
- (function (TooManyTagsException) {
28
- TooManyTagsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
29
- })(TooManyTagsException || (TooManyTagsException = {}));
30
22
  export var QueryInfo;
31
23
  (function (QueryInfo) {
32
24
  QueryInfo.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 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
  };
@@ -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 NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), 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 });
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
  };