@aws-sdk/client-iot 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.
- package/CHANGELOG.md +35 -0
- package/dist-cjs/endpoints.js +0 -28
- package/dist-cjs/models/models_0.js +6 -144
- package/dist-cjs/models/models_1.js +5 -17
- package/dist-cjs/models/models_2.js +3 -39
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +10 -2
- package/dist-es/endpoints.js +0 -28
- package/dist-es/models/models_0.js +0 -92
- package/dist-es/models/models_1.js +0 -8
- package/dist-es/models/models_2.js +0 -24
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -4
- package/dist-types/IoTClient.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +0 -138
- package/dist-types/models/models_1.d.ts +0 -12
- package/dist-types/models/models_2.d.ts +0 -36
- 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/IoTClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -92
- package/dist-types/ts3.4/models/models_1.d.ts +0 -8
- package/dist-types/ts3.4/models/models_2.d.ts +0 -24
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +35 -35
|
@@ -15,13 +15,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
|
15
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
18
20
|
const getRuntimeConfig = (config) => {
|
|
19
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
20
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
21
25
|
return {
|
|
22
26
|
...clientSharedValues,
|
|
23
27
|
...config,
|
|
24
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
25
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
26
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
27
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -29,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
29
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
30
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
31
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
32
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
33
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
34
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
35
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
36
44
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
package/dist-es/endpoints.js
CHANGED
|
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
|
3
3
|
var regionHash = {
|
|
4
4
|
"ca-central-1": {
|
|
5
5
|
variants: [
|
|
6
|
-
{
|
|
7
|
-
hostname: "iot.ca-central-1.amazonaws.com",
|
|
8
|
-
tags: [],
|
|
9
|
-
},
|
|
10
6
|
{
|
|
11
7
|
hostname: "iot-fips.ca-central-1.amazonaws.com",
|
|
12
8
|
tags: ["fips"],
|
|
@@ -15,10 +11,6 @@ var regionHash = {
|
|
|
15
11
|
},
|
|
16
12
|
"us-east-1": {
|
|
17
13
|
variants: [
|
|
18
|
-
{
|
|
19
|
-
hostname: "iot.us-east-1.amazonaws.com",
|
|
20
|
-
tags: [],
|
|
21
|
-
},
|
|
22
14
|
{
|
|
23
15
|
hostname: "iot-fips.us-east-1.amazonaws.com",
|
|
24
16
|
tags: ["fips"],
|
|
@@ -27,10 +19,6 @@ var regionHash = {
|
|
|
27
19
|
},
|
|
28
20
|
"us-east-2": {
|
|
29
21
|
variants: [
|
|
30
|
-
{
|
|
31
|
-
hostname: "iot.us-east-2.amazonaws.com",
|
|
32
|
-
tags: [],
|
|
33
|
-
},
|
|
34
22
|
{
|
|
35
23
|
hostname: "iot-fips.us-east-2.amazonaws.com",
|
|
36
24
|
tags: ["fips"],
|
|
@@ -39,10 +27,6 @@ var regionHash = {
|
|
|
39
27
|
},
|
|
40
28
|
"us-gov-east-1": {
|
|
41
29
|
variants: [
|
|
42
|
-
{
|
|
43
|
-
hostname: "iot.us-gov-east-1.amazonaws.com",
|
|
44
|
-
tags: [],
|
|
45
|
-
},
|
|
46
30
|
{
|
|
47
31
|
hostname: "iot-fips.us-gov-east-1.amazonaws.com",
|
|
48
32
|
tags: ["fips"],
|
|
@@ -51,10 +35,6 @@ var regionHash = {
|
|
|
51
35
|
},
|
|
52
36
|
"us-gov-west-1": {
|
|
53
37
|
variants: [
|
|
54
|
-
{
|
|
55
|
-
hostname: "iot.us-gov-west-1.amazonaws.com",
|
|
56
|
-
tags: [],
|
|
57
|
-
},
|
|
58
38
|
{
|
|
59
39
|
hostname: "iot-fips.us-gov-west-1.amazonaws.com",
|
|
60
40
|
tags: ["fips"],
|
|
@@ -63,10 +43,6 @@ var regionHash = {
|
|
|
63
43
|
},
|
|
64
44
|
"us-west-1": {
|
|
65
45
|
variants: [
|
|
66
|
-
{
|
|
67
|
-
hostname: "iot.us-west-1.amazonaws.com",
|
|
68
|
-
tags: [],
|
|
69
|
-
},
|
|
70
46
|
{
|
|
71
47
|
hostname: "iot-fips.us-west-1.amazonaws.com",
|
|
72
48
|
tags: ["fips"],
|
|
@@ -75,10 +51,6 @@ var regionHash = {
|
|
|
75
51
|
},
|
|
76
52
|
"us-west-2": {
|
|
77
53
|
variants: [
|
|
78
|
-
{
|
|
79
|
-
hostname: "iot.us-west-2.amazonaws.com",
|
|
80
|
-
tags: [],
|
|
81
|
-
},
|
|
82
54
|
{
|
|
83
55
|
hostname: "iot-fips.us-west-2.amazonaws.com",
|
|
84
56
|
tags: ["fips"],
|
|
@@ -23,34 +23,6 @@ export var AcceptCertificateTransferRequest;
|
|
|
23
23
|
(function (AcceptCertificateTransferRequest) {
|
|
24
24
|
AcceptCertificateTransferRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
25
25
|
})(AcceptCertificateTransferRequest || (AcceptCertificateTransferRequest = {}));
|
|
26
|
-
export var InternalFailureException;
|
|
27
|
-
(function (InternalFailureException) {
|
|
28
|
-
InternalFailureException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
29
|
-
})(InternalFailureException || (InternalFailureException = {}));
|
|
30
|
-
export var InvalidRequestException;
|
|
31
|
-
(function (InvalidRequestException) {
|
|
32
|
-
InvalidRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
33
|
-
})(InvalidRequestException || (InvalidRequestException = {}));
|
|
34
|
-
export var ResourceNotFoundException;
|
|
35
|
-
(function (ResourceNotFoundException) {
|
|
36
|
-
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
37
|
-
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
38
|
-
export var ServiceUnavailableException;
|
|
39
|
-
(function (ServiceUnavailableException) {
|
|
40
|
-
ServiceUnavailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
41
|
-
})(ServiceUnavailableException || (ServiceUnavailableException = {}));
|
|
42
|
-
export var ThrottlingException;
|
|
43
|
-
(function (ThrottlingException) {
|
|
44
|
-
ThrottlingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
45
|
-
})(ThrottlingException || (ThrottlingException = {}));
|
|
46
|
-
export var TransferAlreadyCompletedException;
|
|
47
|
-
(function (TransferAlreadyCompletedException) {
|
|
48
|
-
TransferAlreadyCompletedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
49
|
-
})(TransferAlreadyCompletedException || (TransferAlreadyCompletedException = {}));
|
|
50
|
-
export var UnauthorizedException;
|
|
51
|
-
(function (UnauthorizedException) {
|
|
52
|
-
UnauthorizedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
53
|
-
})(UnauthorizedException || (UnauthorizedException = {}));
|
|
54
26
|
export var CloudwatchAlarmAction;
|
|
55
27
|
(function (CloudwatchAlarmAction) {
|
|
56
28
|
CloudwatchAlarmAction.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -357,10 +329,6 @@ export var AssociateTargetsWithJobResponse;
|
|
|
357
329
|
(function (AssociateTargetsWithJobResponse) {
|
|
358
330
|
AssociateTargetsWithJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
359
331
|
})(AssociateTargetsWithJobResponse || (AssociateTargetsWithJobResponse = {}));
|
|
360
|
-
export var LimitExceededException;
|
|
361
|
-
(function (LimitExceededException) {
|
|
362
|
-
LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
363
|
-
})(LimitExceededException || (LimitExceededException = {}));
|
|
364
332
|
export var AttachPolicyRequest;
|
|
365
333
|
(function (AttachPolicyRequest) {
|
|
366
334
|
AttachPolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -377,10 +345,6 @@ export var AttachSecurityProfileResponse;
|
|
|
377
345
|
(function (AttachSecurityProfileResponse) {
|
|
378
346
|
AttachSecurityProfileResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
379
347
|
})(AttachSecurityProfileResponse || (AttachSecurityProfileResponse = {}));
|
|
380
|
-
export var VersionConflictException;
|
|
381
|
-
(function (VersionConflictException) {
|
|
382
|
-
VersionConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
383
|
-
})(VersionConflictException || (VersionConflictException = {}));
|
|
384
348
|
export var AttachThingPrincipalRequest;
|
|
385
349
|
(function (AttachThingPrincipalRequest) {
|
|
386
350
|
AttachThingPrincipalRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -603,10 +567,6 @@ export var CancelJobExecutionRequest;
|
|
|
603
567
|
(function (CancelJobExecutionRequest) {
|
|
604
568
|
CancelJobExecutionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
605
569
|
})(CancelJobExecutionRequest || (CancelJobExecutionRequest = {}));
|
|
606
|
-
export var InvalidStateTransitionException;
|
|
607
|
-
(function (InvalidStateTransitionException) {
|
|
608
|
-
InvalidStateTransitionException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
609
|
-
})(InvalidStateTransitionException || (InvalidStateTransitionException = {}));
|
|
610
570
|
export var ClearDefaultAuthorizerRequest;
|
|
611
571
|
(function (ClearDefaultAuthorizerRequest) {
|
|
612
572
|
ClearDefaultAuthorizerRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -623,14 +583,6 @@ export var ConfirmTopicRuleDestinationResponse;
|
|
|
623
583
|
(function (ConfirmTopicRuleDestinationResponse) {
|
|
624
584
|
ConfirmTopicRuleDestinationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
625
585
|
})(ConfirmTopicRuleDestinationResponse || (ConfirmTopicRuleDestinationResponse = {}));
|
|
626
|
-
export var ConflictingResourceUpdateException;
|
|
627
|
-
(function (ConflictingResourceUpdateException) {
|
|
628
|
-
ConflictingResourceUpdateException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
629
|
-
})(ConflictingResourceUpdateException || (ConflictingResourceUpdateException = {}));
|
|
630
|
-
export var InternalException;
|
|
631
|
-
(function (InternalException) {
|
|
632
|
-
InternalException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
633
|
-
})(InternalException || (InternalException = {}));
|
|
634
586
|
export var CreateAuditSuppressionRequest;
|
|
635
587
|
(function (CreateAuditSuppressionRequest) {
|
|
636
588
|
CreateAuditSuppressionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -639,10 +591,6 @@ export var CreateAuditSuppressionResponse;
|
|
|
639
591
|
(function (CreateAuditSuppressionResponse) {
|
|
640
592
|
CreateAuditSuppressionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
641
593
|
})(CreateAuditSuppressionResponse || (CreateAuditSuppressionResponse = {}));
|
|
642
|
-
export var ResourceAlreadyExistsException;
|
|
643
|
-
(function (ResourceAlreadyExistsException) {
|
|
644
|
-
ResourceAlreadyExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
645
|
-
})(ResourceAlreadyExistsException || (ResourceAlreadyExistsException = {}));
|
|
646
594
|
export var Tag;
|
|
647
595
|
(function (Tag) {
|
|
648
596
|
Tag.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -702,10 +650,6 @@ export var CreateDimensionResponse;
|
|
|
702
650
|
(function (CreateDimensionResponse) {
|
|
703
651
|
CreateDimensionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
704
652
|
})(CreateDimensionResponse || (CreateDimensionResponse = {}));
|
|
705
|
-
export var CertificateValidationException;
|
|
706
|
-
(function (CertificateValidationException) {
|
|
707
|
-
CertificateValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
708
|
-
})(CertificateValidationException || (CertificateValidationException = {}));
|
|
709
653
|
export var ServiceType;
|
|
710
654
|
(function (ServiceType) {
|
|
711
655
|
ServiceType["CREDENTIAL_PROVIDER"] = "CREDENTIAL_PROVIDER";
|
|
@@ -732,10 +676,6 @@ export var CreateDynamicThingGroupResponse;
|
|
|
732
676
|
(function (CreateDynamicThingGroupResponse) {
|
|
733
677
|
CreateDynamicThingGroupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
734
678
|
})(CreateDynamicThingGroupResponse || (CreateDynamicThingGroupResponse = {}));
|
|
735
|
-
export var InvalidQueryException;
|
|
736
|
-
(function (InvalidQueryException) {
|
|
737
|
-
InvalidQueryException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
738
|
-
})(InvalidQueryException || (InvalidQueryException = {}));
|
|
739
679
|
export var FleetMetricUnit;
|
|
740
680
|
(function (FleetMetricUnit) {
|
|
741
681
|
FleetMetricUnit["Bits"] = "Bits";
|
|
@@ -774,14 +714,6 @@ export var CreateFleetMetricResponse;
|
|
|
774
714
|
(function (CreateFleetMetricResponse) {
|
|
775
715
|
CreateFleetMetricResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
776
716
|
})(CreateFleetMetricResponse || (CreateFleetMetricResponse = {}));
|
|
777
|
-
export var IndexNotReadyException;
|
|
778
|
-
(function (IndexNotReadyException) {
|
|
779
|
-
IndexNotReadyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
780
|
-
})(IndexNotReadyException || (IndexNotReadyException = {}));
|
|
781
|
-
export var InvalidAggregationException;
|
|
782
|
-
(function (InvalidAggregationException) {
|
|
783
|
-
InvalidAggregationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
784
|
-
})(InvalidAggregationException || (InvalidAggregationException = {}));
|
|
785
717
|
export var RetryableFailureType;
|
|
786
718
|
(function (RetryableFailureType) {
|
|
787
719
|
RetryableFailureType["ALL"] = "ALL";
|
|
@@ -829,10 +761,6 @@ export var CreateJobResponse;
|
|
|
829
761
|
(function (CreateJobResponse) {
|
|
830
762
|
CreateJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
831
763
|
})(CreateJobResponse || (CreateJobResponse = {}));
|
|
832
|
-
export var ConflictException;
|
|
833
|
-
(function (ConflictException) {
|
|
834
|
-
ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
835
|
-
})(ConflictException || (ConflictException = {}));
|
|
836
764
|
export var CreateJobTemplateRequest;
|
|
837
765
|
(function (CreateJobTemplateRequest) {
|
|
838
766
|
CreateJobTemplateRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1020,10 +948,6 @@ export var CreatePolicyResponse;
|
|
|
1020
948
|
(function (CreatePolicyResponse) {
|
|
1021
949
|
CreatePolicyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1022
950
|
})(CreatePolicyResponse || (CreatePolicyResponse = {}));
|
|
1023
|
-
export var MalformedPolicyException;
|
|
1024
|
-
(function (MalformedPolicyException) {
|
|
1025
|
-
MalformedPolicyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1026
|
-
})(MalformedPolicyException || (MalformedPolicyException = {}));
|
|
1027
951
|
export var CreatePolicyVersionRequest;
|
|
1028
952
|
(function (CreatePolicyVersionRequest) {
|
|
1029
953
|
CreatePolicyVersionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1032,10 +956,6 @@ export var CreatePolicyVersionResponse;
|
|
|
1032
956
|
(function (CreatePolicyVersionResponse) {
|
|
1033
957
|
CreatePolicyVersionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1034
958
|
})(CreatePolicyVersionResponse || (CreatePolicyVersionResponse = {}));
|
|
1035
|
-
export var VersionsLimitExceededException;
|
|
1036
|
-
(function (VersionsLimitExceededException) {
|
|
1037
|
-
VersionsLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1038
|
-
})(VersionsLimitExceededException || (VersionsLimitExceededException = {}));
|
|
1039
959
|
export var CreateProvisioningClaimRequest;
|
|
1040
960
|
(function (CreateProvisioningClaimRequest) {
|
|
1041
961
|
CreateProvisioningClaimRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1146,10 +1066,6 @@ export var CreateTopicRuleRequest;
|
|
|
1146
1066
|
(function (CreateTopicRuleRequest) {
|
|
1147
1067
|
CreateTopicRuleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1148
1068
|
})(CreateTopicRuleRequest || (CreateTopicRuleRequest = {}));
|
|
1149
|
-
export var SqlParseException;
|
|
1150
|
-
(function (SqlParseException) {
|
|
1151
|
-
SqlParseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1152
|
-
})(SqlParseException || (SqlParseException = {}));
|
|
1153
1069
|
export var HttpUrlDestinationConfiguration;
|
|
1154
1070
|
(function (HttpUrlDestinationConfiguration) {
|
|
1155
1071
|
HttpUrlDestinationConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1214,10 +1130,6 @@ export var DeleteAuthorizerResponse;
|
|
|
1214
1130
|
(function (DeleteAuthorizerResponse) {
|
|
1215
1131
|
DeleteAuthorizerResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1216
1132
|
})(DeleteAuthorizerResponse || (DeleteAuthorizerResponse = {}));
|
|
1217
|
-
export var DeleteConflictException;
|
|
1218
|
-
(function (DeleteConflictException) {
|
|
1219
|
-
DeleteConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1220
|
-
})(DeleteConflictException || (DeleteConflictException = {}));
|
|
1221
1133
|
export var DeleteBillingGroupRequest;
|
|
1222
1134
|
(function (DeleteBillingGroupRequest) {
|
|
1223
1135
|
DeleteBillingGroupRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1226,10 +1138,6 @@ export var DeleteBillingGroupResponse;
|
|
|
1226
1138
|
(function (DeleteBillingGroupResponse) {
|
|
1227
1139
|
DeleteBillingGroupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1228
1140
|
})(DeleteBillingGroupResponse || (DeleteBillingGroupResponse = {}));
|
|
1229
|
-
export var CertificateStateException;
|
|
1230
|
-
(function (CertificateStateException) {
|
|
1231
|
-
CertificateStateException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1232
|
-
})(CertificateStateException || (CertificateStateException = {}));
|
|
1233
1141
|
export var DeleteCACertificateRequest;
|
|
1234
1142
|
(function (DeleteCACertificateRequest) {
|
|
1235
1143
|
DeleteCACertificateRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -408,10 +408,6 @@ export var DescribeManagedJobTemplateResponse;
|
|
|
408
408
|
(function (DescribeManagedJobTemplateResponse) {
|
|
409
409
|
DescribeManagedJobTemplateResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
410
410
|
})(DescribeManagedJobTemplateResponse || (DescribeManagedJobTemplateResponse = {}));
|
|
411
|
-
export var InternalServerException;
|
|
412
|
-
(function (InternalServerException) {
|
|
413
|
-
InternalServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
414
|
-
})(InternalServerException || (InternalServerException = {}));
|
|
415
411
|
export var DescribeMitigationActionRequest;
|
|
416
412
|
(function (DescribeMitigationActionRequest) {
|
|
417
413
|
DescribeMitigationActionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -793,10 +789,6 @@ export var GetV2LoggingOptionsResponse;
|
|
|
793
789
|
(function (GetV2LoggingOptionsResponse) {
|
|
794
790
|
GetV2LoggingOptionsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
795
791
|
})(GetV2LoggingOptionsResponse || (GetV2LoggingOptionsResponse = {}));
|
|
796
|
-
export var NotConfiguredException;
|
|
797
|
-
(function (NotConfiguredException) {
|
|
798
|
-
NotConfiguredException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
799
|
-
})(NotConfiguredException || (NotConfiguredException = {}));
|
|
800
792
|
export var BehaviorCriteriaType;
|
|
801
793
|
(function (BehaviorCriteriaType) {
|
|
802
794
|
BehaviorCriteriaType["MACHINE_LEARNING"] = "MACHINE_LEARNING";
|
|
@@ -137,14 +137,6 @@ export var RegisterCACertificateResponse;
|
|
|
137
137
|
(function (RegisterCACertificateResponse) {
|
|
138
138
|
RegisterCACertificateResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
139
139
|
})(RegisterCACertificateResponse || (RegisterCACertificateResponse = {}));
|
|
140
|
-
export var RegistrationCodeValidationException;
|
|
141
|
-
(function (RegistrationCodeValidationException) {
|
|
142
|
-
RegistrationCodeValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
143
|
-
})(RegistrationCodeValidationException || (RegistrationCodeValidationException = {}));
|
|
144
|
-
export var CertificateConflictException;
|
|
145
|
-
(function (CertificateConflictException) {
|
|
146
|
-
CertificateConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
147
|
-
})(CertificateConflictException || (CertificateConflictException = {}));
|
|
148
140
|
export var RegisterCertificateRequest;
|
|
149
141
|
(function (RegisterCertificateRequest) {
|
|
150
142
|
RegisterCertificateRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -169,10 +161,6 @@ export var RegisterThingResponse;
|
|
|
169
161
|
(function (RegisterThingResponse) {
|
|
170
162
|
RegisterThingResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
171
163
|
})(RegisterThingResponse || (RegisterThingResponse = {}));
|
|
172
|
-
export var ResourceRegistrationFailureException;
|
|
173
|
-
(function (ResourceRegistrationFailureException) {
|
|
174
|
-
ResourceRegistrationFailureException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
175
|
-
})(ResourceRegistrationFailureException || (ResourceRegistrationFailureException = {}));
|
|
176
164
|
export var RejectCertificateTransferRequest;
|
|
177
165
|
(function (RejectCertificateTransferRequest) {
|
|
178
166
|
RejectCertificateTransferRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -253,10 +241,6 @@ export var StartAuditMitigationActionsTaskResponse;
|
|
|
253
241
|
(function (StartAuditMitigationActionsTaskResponse) {
|
|
254
242
|
StartAuditMitigationActionsTaskResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
255
243
|
})(StartAuditMitigationActionsTaskResponse || (StartAuditMitigationActionsTaskResponse = {}));
|
|
256
|
-
export var TaskAlreadyExistsException;
|
|
257
|
-
(function (TaskAlreadyExistsException) {
|
|
258
|
-
TaskAlreadyExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
259
|
-
})(TaskAlreadyExistsException || (TaskAlreadyExistsException = {}));
|
|
260
244
|
export var StartDetectMitigationActionsTaskRequest;
|
|
261
245
|
(function (StartDetectMitigationActionsTaskRequest) {
|
|
262
246
|
StartDetectMitigationActionsTaskRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -305,10 +289,6 @@ export var TestAuthorizationResponse;
|
|
|
305
289
|
(function (TestAuthorizationResponse) {
|
|
306
290
|
TestAuthorizationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
307
291
|
})(TestAuthorizationResponse || (TestAuthorizationResponse = {}));
|
|
308
|
-
export var InvalidResponseException;
|
|
309
|
-
(function (InvalidResponseException) {
|
|
310
|
-
InvalidResponseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
311
|
-
})(InvalidResponseException || (InvalidResponseException = {}));
|
|
312
292
|
export var HttpContext;
|
|
313
293
|
(function (HttpContext) {
|
|
314
294
|
HttpContext.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -337,10 +317,6 @@ export var TransferCertificateResponse;
|
|
|
337
317
|
(function (TransferCertificateResponse) {
|
|
338
318
|
TransferCertificateResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
339
319
|
})(TransferCertificateResponse || (TransferCertificateResponse = {}));
|
|
340
|
-
export var TransferConflictException;
|
|
341
|
-
(function (TransferConflictException) {
|
|
342
|
-
TransferConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
343
|
-
})(TransferConflictException || (TransferConflictException = {}));
|
|
344
320
|
export var UntagResourceRequest;
|
|
345
321
|
(function (UntagResourceRequest) {
|
|
346
322
|
UntagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
15
17
|
export var getRuntimeConfig = function (config) {
|
|
16
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
17
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
19
28
|
};
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { AcceptCertificateTransferCommandInput, AcceptCertificateTransferCommandOutput } from "./commands/AcceptCertificateTransferCommand";
|
|
10
10
|
import { AddThingToBillingGroupCommandInput, AddThingToBillingGroupCommandOutput } from "./commands/AddThingToBillingGroupCommand";
|
|
@@ -344,6 +344,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
344
344
|
* @internal
|
|
345
345
|
*/
|
|
346
346
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
347
|
+
/**
|
|
348
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
349
|
+
*/
|
|
350
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
347
351
|
}
|
|
348
352
|
declare type IoTClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
349
353
|
/**
|