@aws-sdk/client-config-service 3.45.0 → 3.47.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/dist-cjs/endpoints.js +0 -24
- package/dist-cjs/models/models_0.js +5 -312
- package/dist-cjs/models/models_1.js +1 -13
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +0 -24
- package/dist-es/models/models_0.js +0 -204
- package/dist-es/models/models_1.js +0 -8
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/ConfigServiceClient.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +0 -306
- package/dist-types/models/models_1.d.ts +0 -12
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/ConfigServiceClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -204
- package/dist-types/ts3.4/models/models_1.d.ts +0 -8
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -46
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
32
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
19
20
|
const getRuntimeConfig = (config) => {
|
|
20
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
25
|
return {
|
|
24
26
|
...clientSharedValues,
|
|
25
27
|
...config,
|
|
26
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
27
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
28
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
29
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
31
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
33
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
34
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
35
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
36
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
44
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
package/dist-es/endpoints.js
CHANGED
|
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
|
3
3
|
var regionHash = {
|
|
4
4
|
"us-east-1": {
|
|
5
5
|
variants: [
|
|
6
|
-
{
|
|
7
|
-
hostname: "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"],
|
|
@@ -232,14 +232,6 @@ export var BatchGetAggregateResourceConfigResponse;
|
|
|
232
232
|
(function (BatchGetAggregateResourceConfigResponse) {
|
|
233
233
|
BatchGetAggregateResourceConfigResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
234
234
|
})(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
235
|
export var ResourceKey;
|
|
244
236
|
(function (ResourceKey) {
|
|
245
237
|
ResourceKey.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -252,10 +244,6 @@ export var BatchGetResourceConfigResponse;
|
|
|
252
244
|
(function (BatchGetResourceConfigResponse) {
|
|
253
245
|
BatchGetResourceConfigResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
254
246
|
})(BatchGetResourceConfigResponse || (BatchGetResourceConfigResponse = {}));
|
|
255
|
-
export var NoAvailableConfigurationRecorderException;
|
|
256
|
-
(function (NoAvailableConfigurationRecorderException) {
|
|
257
|
-
NoAvailableConfigurationRecorderException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
258
|
-
})(NoAvailableConfigurationRecorderException || (NoAvailableConfigurationRecorderException = {}));
|
|
259
247
|
export var ChronologicalOrder;
|
|
260
248
|
(function (ChronologicalOrder) {
|
|
261
249
|
ChronologicalOrder["Forward"] = "Forward";
|
|
@@ -429,30 +417,14 @@ export var ConformancePackStatusDetail;
|
|
|
429
417
|
(function (ConformancePackStatusDetail) {
|
|
430
418
|
ConformancePackStatusDetail.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
431
419
|
})(ConformancePackStatusDetail || (ConformancePackStatusDetail = {}));
|
|
432
|
-
export var ConformancePackTemplateValidationException;
|
|
433
|
-
(function (ConformancePackTemplateValidationException) {
|
|
434
|
-
ConformancePackTemplateValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
435
|
-
})(ConformancePackTemplateValidationException || (ConformancePackTemplateValidationException = {}));
|
|
436
420
|
export var DeleteAggregationAuthorizationRequest;
|
|
437
421
|
(function (DeleteAggregationAuthorizationRequest) {
|
|
438
422
|
DeleteAggregationAuthorizationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
439
423
|
})(DeleteAggregationAuthorizationRequest || (DeleteAggregationAuthorizationRequest = {}));
|
|
440
|
-
export var InvalidParameterValueException;
|
|
441
|
-
(function (InvalidParameterValueException) {
|
|
442
|
-
InvalidParameterValueException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
443
|
-
})(InvalidParameterValueException || (InvalidParameterValueException = {}));
|
|
444
424
|
export var DeleteConfigRuleRequest;
|
|
445
425
|
(function (DeleteConfigRuleRequest) {
|
|
446
426
|
DeleteConfigRuleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
447
427
|
})(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
428
|
export var DeleteConfigurationAggregatorRequest;
|
|
457
429
|
(function (DeleteConfigurationAggregatorRequest) {
|
|
458
430
|
DeleteConfigurationAggregatorRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -461,30 +433,14 @@ export var DeleteConfigurationRecorderRequest;
|
|
|
461
433
|
(function (DeleteConfigurationRecorderRequest) {
|
|
462
434
|
DeleteConfigurationRecorderRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
463
435
|
})(DeleteConfigurationRecorderRequest || (DeleteConfigurationRecorderRequest = {}));
|
|
464
|
-
export var NoSuchConfigurationRecorderException;
|
|
465
|
-
(function (NoSuchConfigurationRecorderException) {
|
|
466
|
-
NoSuchConfigurationRecorderException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
467
|
-
})(NoSuchConfigurationRecorderException || (NoSuchConfigurationRecorderException = {}));
|
|
468
436
|
export var DeleteConformancePackRequest;
|
|
469
437
|
(function (DeleteConformancePackRequest) {
|
|
470
438
|
DeleteConformancePackRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
471
439
|
})(DeleteConformancePackRequest || (DeleteConformancePackRequest = {}));
|
|
472
|
-
export var NoSuchConformancePackException;
|
|
473
|
-
(function (NoSuchConformancePackException) {
|
|
474
|
-
NoSuchConformancePackException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
475
|
-
})(NoSuchConformancePackException || (NoSuchConformancePackException = {}));
|
|
476
440
|
export var DeleteDeliveryChannelRequest;
|
|
477
441
|
(function (DeleteDeliveryChannelRequest) {
|
|
478
442
|
DeleteDeliveryChannelRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
479
443
|
})(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
444
|
export var DeleteEvaluationResultsRequest;
|
|
489
445
|
(function (DeleteEvaluationResultsRequest) {
|
|
490
446
|
DeleteEvaluationResultsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -497,22 +453,10 @@ export var DeleteOrganizationConfigRuleRequest;
|
|
|
497
453
|
(function (DeleteOrganizationConfigRuleRequest) {
|
|
498
454
|
DeleteOrganizationConfigRuleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
499
455
|
})(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
456
|
export var DeleteOrganizationConformancePackRequest;
|
|
509
457
|
(function (DeleteOrganizationConformancePackRequest) {
|
|
510
458
|
DeleteOrganizationConformancePackRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
511
459
|
})(DeleteOrganizationConformancePackRequest || (DeleteOrganizationConformancePackRequest = {}));
|
|
512
|
-
export var NoSuchOrganizationConformancePackException;
|
|
513
|
-
(function (NoSuchOrganizationConformancePackException) {
|
|
514
|
-
NoSuchOrganizationConformancePackException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
515
|
-
})(NoSuchOrganizationConformancePackException || (NoSuchOrganizationConformancePackException = {}));
|
|
516
460
|
export var DeletePendingAggregationRequestRequest;
|
|
517
461
|
(function (DeletePendingAggregationRequestRequest) {
|
|
518
462
|
DeletePendingAggregationRequestRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -525,18 +469,6 @@ export var DeleteRemediationConfigurationResponse;
|
|
|
525
469
|
(function (DeleteRemediationConfigurationResponse) {
|
|
526
470
|
DeleteRemediationConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
527
471
|
})(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
472
|
export var RemediationExceptionResourceKey;
|
|
541
473
|
(function (RemediationExceptionResourceKey) {
|
|
542
474
|
RemediationExceptionResourceKey.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -553,26 +485,14 @@ export var DeleteRemediationExceptionsResponse;
|
|
|
553
485
|
(function (DeleteRemediationExceptionsResponse) {
|
|
554
486
|
DeleteRemediationExceptionsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
555
487
|
})(DeleteRemediationExceptionsResponse || (DeleteRemediationExceptionsResponse = {}));
|
|
556
|
-
export var NoSuchRemediationExceptionException;
|
|
557
|
-
(function (NoSuchRemediationExceptionException) {
|
|
558
|
-
NoSuchRemediationExceptionException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
559
|
-
})(NoSuchRemediationExceptionException || (NoSuchRemediationExceptionException = {}));
|
|
560
488
|
export var DeleteResourceConfigRequest;
|
|
561
489
|
(function (DeleteResourceConfigRequest) {
|
|
562
490
|
DeleteResourceConfigRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
563
491
|
})(DeleteResourceConfigRequest || (DeleteResourceConfigRequest = {}));
|
|
564
|
-
export var NoRunningConfigurationRecorderException;
|
|
565
|
-
(function (NoRunningConfigurationRecorderException) {
|
|
566
|
-
NoRunningConfigurationRecorderException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
567
|
-
})(NoRunningConfigurationRecorderException || (NoRunningConfigurationRecorderException = {}));
|
|
568
492
|
export var DeleteRetentionConfigurationRequest;
|
|
569
493
|
(function (DeleteRetentionConfigurationRequest) {
|
|
570
494
|
DeleteRetentionConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
571
495
|
})(DeleteRetentionConfigurationRequest || (DeleteRetentionConfigurationRequest = {}));
|
|
572
|
-
export var NoSuchRetentionConfigurationException;
|
|
573
|
-
(function (NoSuchRetentionConfigurationException) {
|
|
574
|
-
NoSuchRetentionConfigurationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
575
|
-
})(NoSuchRetentionConfigurationException || (NoSuchRetentionConfigurationException = {}));
|
|
576
496
|
export var DeleteStoredQueryRequest;
|
|
577
497
|
(function (DeleteStoredQueryRequest) {
|
|
578
498
|
DeleteStoredQueryRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -581,10 +501,6 @@ export var DeleteStoredQueryResponse;
|
|
|
581
501
|
(function (DeleteStoredQueryResponse) {
|
|
582
502
|
DeleteStoredQueryResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
583
503
|
})(DeleteStoredQueryResponse || (DeleteStoredQueryResponse = {}));
|
|
584
|
-
export var ResourceNotFoundException;
|
|
585
|
-
(function (ResourceNotFoundException) {
|
|
586
|
-
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
587
|
-
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
588
504
|
export var DeliverConfigSnapshotRequest;
|
|
589
505
|
(function (DeliverConfigSnapshotRequest) {
|
|
590
506
|
DeliverConfigSnapshotRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -609,14 +525,6 @@ export var DescribeAggregateComplianceByConfigRulesResponse;
|
|
|
609
525
|
(function (DescribeAggregateComplianceByConfigRulesResponse) {
|
|
610
526
|
DescribeAggregateComplianceByConfigRulesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
611
527
|
})(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
528
|
export var DescribeAggregateComplianceByConformancePacksRequest;
|
|
621
529
|
(function (DescribeAggregateComplianceByConformancePacksRequest) {
|
|
622
530
|
DescribeAggregateComplianceByConformancePacksRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -705,10 +613,6 @@ export var DescribeConformancePackComplianceResponse;
|
|
|
705
613
|
(function (DescribeConformancePackComplianceResponse) {
|
|
706
614
|
DescribeConformancePackComplianceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
707
615
|
})(DescribeConformancePackComplianceResponse || (DescribeConformancePackComplianceResponse = {}));
|
|
708
|
-
export var NoSuchConfigRuleInConformancePackException;
|
|
709
|
-
(function (NoSuchConfigRuleInConformancePackException) {
|
|
710
|
-
NoSuchConfigRuleInConformancePackException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
711
|
-
})(NoSuchConfigRuleInConformancePackException || (NoSuchConfigRuleInConformancePackException = {}));
|
|
712
616
|
export var DescribeConformancePacksRequest;
|
|
713
617
|
(function (DescribeConformancePacksRequest) {
|
|
714
618
|
DescribeConformancePacksRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1010,14 +914,6 @@ export var GetAggregateResourceConfigResponse;
|
|
|
1010
914
|
(function (GetAggregateResourceConfigResponse) {
|
|
1011
915
|
GetAggregateResourceConfigResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1012
916
|
})(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
917
|
export var GetComplianceDetailsByConfigRuleRequest;
|
|
1022
918
|
(function (GetComplianceDetailsByConfigRuleRequest) {
|
|
1023
919
|
GetComplianceDetailsByConfigRuleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1138,10 +1034,6 @@ export var GetResourceConfigHistoryResponse;
|
|
|
1138
1034
|
(function (GetResourceConfigHistoryResponse) {
|
|
1139
1035
|
GetResourceConfigHistoryResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1140
1036
|
})(GetResourceConfigHistoryResponse || (GetResourceConfigHistoryResponse = {}));
|
|
1141
|
-
export var InvalidTimeRangeException;
|
|
1142
|
-
(function (InvalidTimeRangeException) {
|
|
1143
|
-
InvalidTimeRangeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1144
|
-
})(InvalidTimeRangeException || (InvalidTimeRangeException = {}));
|
|
1145
1037
|
export var GetStoredQueryRequest;
|
|
1146
1038
|
(function (GetStoredQueryRequest) {
|
|
1147
1039
|
GetStoredQueryRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1154,50 +1046,6 @@ export var GetStoredQueryResponse;
|
|
|
1154
1046
|
(function (GetStoredQueryResponse) {
|
|
1155
1047
|
GetStoredQueryResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1156
1048
|
})(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
1049
|
export var ResourceFilters;
|
|
1202
1050
|
(function (ResourceFilters) {
|
|
1203
1051
|
ResourceFilters.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1246,58 +1094,6 @@ export var ListTagsForResourceResponse;
|
|
|
1246
1094
|
(function (ListTagsForResourceResponse) {
|
|
1247
1095
|
ListTagsForResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1248
1096
|
})(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
1097
|
export var PutAggregationAuthorizationRequest;
|
|
1302
1098
|
(function (PutAggregationAuthorizationRequest) {
|
|
1303
1099
|
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
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
-
import {
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
16
17
|
export var getRuntimeConfig = function (config) {
|
|
17
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
-
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
19
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
28
|
};
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { BatchGetAggregateResourceConfigCommandInput, BatchGetAggregateResourceConfigCommandOutput } from "./commands/BatchGetAggregateResourceConfigCommand";
|
|
10
10
|
import { BatchGetResourceConfigCommandInput, BatchGetResourceConfigCommandOutput } from "./commands/BatchGetResourceConfigCommand";
|
|
@@ -194,6 +194,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
194
194
|
* @internal
|
|
195
195
|
*/
|
|
196
196
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
197
|
+
/**
|
|
198
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
199
|
+
*/
|
|
200
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
197
201
|
}
|
|
198
202
|
declare type ConfigServiceClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
199
203
|
/**
|