@aws-sdk/client-auto-scaling 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 CHANGED
@@ -3,6 +3,42 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-auto-scaling
9
+
10
+
11
+
12
+
13
+
14
+ ## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-auto-scaling
17
+
18
+
19
+
20
+
21
+
22
+ ## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
23
+
24
+ **Note:** Version bump only for package @aws-sdk/client-auto-scaling
25
+
26
+
27
+
28
+
29
+
30
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
31
+
32
+
33
+ ### Features
34
+
35
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
36
+ * Support awsQueryError trait ([#3174](https://github.com/aws/aws-sdk-js-v3/issues/3174)) ([351bd3a](https://github.com/aws/aws-sdk-js-v3/commit/351bd3a40ad37be79d823d6a0e4e48304728ea6f))
37
+
38
+
39
+
40
+
41
+
6
42
  # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
7
43
 
8
44
 
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MixedInstancesPolicy = exports.LaunchTemplate = exports.LaunchTemplateOverrides = exports.InstanceRequirements = exports.VCpuCountRequest = exports.TotalLocalStorageGBRequest = exports.NetworkInterfaceCountRequest = exports.MemoryMiBRequest = exports.MemoryGiBPerVCpuRequest = exports.LocalStorageType = exports.LocalStorage = exports.InstanceGeneration = exports.CpuManufacturer = exports.BurstablePerformance = exports.BaselineEbsBandwidthMbpsRequest = exports.BareMetal = exports.InstancesDistribution = exports.LifecycleHookSpecification = exports.LaunchTemplateSpecification = exports.CompleteLifecycleActionType = exports.CompleteLifecycleActionAnswer = exports.CancelInstanceRefreshType = exports.CancelInstanceRefreshAnswer = exports.LimitExceededFault = exports.BatchPutScheduledUpdateGroupActionType = exports.ScheduledUpdateGroupActionRequest = exports.BatchPutScheduledUpdateGroupActionAnswer = exports.BatchDeleteScheduledActionType = exports.BatchDeleteScheduledActionAnswer = exports.FailedScheduledUpdateGroupActionRequest = exports.AttachLoadBalancerTargetGroupsType = exports.AttachLoadBalancerTargetGroupsResultType = exports.AttachLoadBalancersType = exports.AttachLoadBalancersResultType = exports.ServiceLinkedRoleFailure = exports.ResourceContentionFault = exports.AttachInstancesQuery = exports.AlreadyExistsFault = exports.Alarm = exports.AdjustmentType = exports.ActivityType = exports.ActivitiesType = exports.Activity = exports.ScalingActivityStatusCode = exports.ActiveInstanceRefreshNotFoundFault = exports.AcceleratorType = exports.AcceleratorTotalMemoryMiBRequest = exports.AcceleratorName = exports.AcceleratorManufacturer = exports.AcceleratorCountRequest = void 0;
4
- exports.DescribeInstanceRefreshesType = exports.DescribeInstanceRefreshesAnswer = exports.InstanceRefresh = exports.InstanceRefreshStatus = exports.InstanceRefreshProgressDetails = exports.InstanceRefreshWarmPoolProgress = exports.InstanceRefreshLivePoolProgress = exports.RefreshPreferences = exports.DesiredConfiguration = exports.DescribeAutoScalingNotificationTypesAnswer = exports.DescribeAutoScalingInstancesType = exports.AutoScalingInstancesType = exports.AutoScalingInstanceDetails = exports.InvalidNextToken = exports.AutoScalingGroupsType = exports.AutoScalingGroup = exports.WarmPoolConfiguration = exports.WarmPoolStatus = exports.WarmPoolState = exports.TagDescription = exports.SuspendedProcess = exports.Instance = exports.LifecycleState = exports.EnabledMetric = exports.AutoScalingGroupNamesType = exports.Filter = exports.DescribeAdjustmentTypesAnswer = exports.DescribeAccountLimitsAnswer = exports.DeleteWarmPoolType = exports.DeleteWarmPoolAnswer = exports.DeleteTagsType = exports.DeleteScheduledActionType = exports.DeletePolicyType = exports.DeleteNotificationConfigurationType = exports.DeleteLifecycleHookType = exports.DeleteLifecycleHookAnswer = exports.LaunchConfigurationNameType = exports.ScalingActivityInProgressFault = exports.DeleteAutoScalingGroupType = exports.ResourceInUseFault = exports.CreateOrUpdateTagsType = exports.CreateLaunchConfigurationType = exports.InstanceMetadataOptions = exports.InstanceMetadataHttpTokensState = exports.InstanceMetadataEndpointState = exports.InstanceMonitoring = exports.BlockDeviceMapping = exports.Ebs = exports.CreateAutoScalingGroupType = exports.Tag = void 0;
5
- exports.ScheduledUpdateGroupAction = exports.DescribeScheduledActionsType = exports.ProcessesType = exports.ProcessType = exports.DescribeScalingActivitiesType = exports.PoliciesType = exports.ScalingPolicy = exports.TargetTrackingConfiguration = exports.PredefinedMetricSpecification = exports.MetricType = exports.CustomizedMetricSpecification = exports.MetricStatistic = exports.StepAdjustment = exports.PredictiveScalingConfiguration = exports.PredictiveScalingMode = exports.PredictiveScalingMetricSpecification = exports.PredictiveScalingPredefinedScalingMetric = exports.PredefinedScalingMetricType = exports.PredictiveScalingPredefinedMetricPair = exports.PredefinedMetricPairType = exports.PredictiveScalingPredefinedLoadMetric = exports.PredefinedLoadMetricType = exports.PredictiveScalingCustomizedScalingMetric = exports.PredictiveScalingCustomizedLoadMetric = exports.PredictiveScalingCustomizedCapacityMetric = exports.MetricDataQuery = exports.MetricStat = exports.Metric = exports.MetricDimension = exports.PredictiveScalingMaxCapacityBreachBehavior = exports.DescribePoliciesType = exports.DescribeNotificationConfigurationsType = exports.DescribeNotificationConfigurationsAnswer = exports.NotificationConfiguration = exports.DescribeMetricCollectionTypesAnswer = exports.MetricCollectionType = exports.MetricGranularityType = exports.DescribeLoadBalancerTargetGroupsResponse = exports.LoadBalancerTargetGroupState = exports.DescribeLoadBalancerTargetGroupsRequest = exports.DescribeLoadBalancersResponse = exports.LoadBalancerState = exports.DescribeLoadBalancersRequest = exports.DescribeLifecycleHookTypesAnswer = exports.DescribeLifecycleHooksType = exports.DescribeLifecycleHooksAnswer = exports.LifecycleHook = exports.LaunchConfigurationsType = exports.LaunchConfiguration = exports.LaunchConfigurationNamesType = void 0;
6
- exports.UpdateAutoScalingGroupType = exports.TerminateInstanceInAutoScalingGroupType = exports.StartInstanceRefreshType = exports.RefreshStrategy = exports.StartInstanceRefreshAnswer = exports.InstanceRefreshInProgressFault = exports.SetInstanceProtectionQuery = exports.SetInstanceProtectionAnswer = exports.SetInstanceHealthQuery = exports.SetDesiredCapacityType = exports.ScalingProcessQuery = exports.RecordLifecycleActionHeartbeatType = exports.RecordLifecycleActionHeartbeatAnswer = exports.PutWarmPoolType = exports.PutWarmPoolAnswer = exports.PutScheduledUpdateGroupActionType = exports.PutScalingPolicyType = exports.PolicyARNType = exports.PutNotificationConfigurationType = exports.PutLifecycleHookType = exports.PutLifecycleHookAnswer = exports.GetPredictiveScalingForecastType = exports.GetPredictiveScalingForecastAnswer = exports.LoadForecast = exports.CapacityForecast = exports.ExitStandbyQuery = exports.ExitStandbyAnswer = exports.ExecutePolicyType = exports.EnterStandbyQuery = exports.EnterStandbyAnswer = exports.EnableMetricsCollectionQuery = exports.DisableMetricsCollectionQuery = exports.DetachLoadBalancerTargetGroupsType = exports.DetachLoadBalancerTargetGroupsResultType = exports.DetachLoadBalancersType = exports.DetachLoadBalancersResultType = exports.DetachInstancesQuery = exports.DetachInstancesAnswer = exports.DescribeWarmPoolType = exports.DescribeWarmPoolAnswer = exports.DescribeTerminationPolicyTypesAnswer = exports.TagsType = exports.DescribeTagsType = exports.ScheduledActionsType = void 0;
3
+ exports.InstanceMonitoring = exports.BlockDeviceMapping = exports.Ebs = exports.CreateAutoScalingGroupType = exports.Tag = exports.MixedInstancesPolicy = exports.LaunchTemplate = exports.LaunchTemplateOverrides = exports.InstanceRequirements = exports.VCpuCountRequest = exports.TotalLocalStorageGBRequest = exports.NetworkInterfaceCountRequest = exports.MemoryMiBRequest = exports.MemoryGiBPerVCpuRequest = exports.LocalStorageType = exports.LocalStorage = exports.InstanceGeneration = exports.CpuManufacturer = exports.BurstablePerformance = exports.BaselineEbsBandwidthMbpsRequest = exports.BareMetal = exports.InstancesDistribution = exports.LifecycleHookSpecification = exports.LaunchTemplateSpecification = exports.CompleteLifecycleActionType = exports.CompleteLifecycleActionAnswer = exports.CancelInstanceRefreshType = exports.CancelInstanceRefreshAnswer = exports.BatchPutScheduledUpdateGroupActionType = exports.ScheduledUpdateGroupActionRequest = exports.BatchPutScheduledUpdateGroupActionAnswer = exports.BatchDeleteScheduledActionType = exports.BatchDeleteScheduledActionAnswer = exports.FailedScheduledUpdateGroupActionRequest = exports.AttachLoadBalancerTargetGroupsType = exports.AttachLoadBalancerTargetGroupsResultType = exports.AttachLoadBalancersType = exports.AttachLoadBalancersResultType = exports.AttachInstancesQuery = exports.Alarm = exports.AdjustmentType = exports.ActivityType = exports.ActivitiesType = exports.Activity = exports.ScalingActivityStatusCode = exports.AcceleratorType = exports.AcceleratorTotalMemoryMiBRequest = exports.AcceleratorName = exports.AcceleratorManufacturer = exports.AcceleratorCountRequest = void 0;
4
+ exports.DescribeLoadBalancersRequest = exports.DescribeLifecycleHookTypesAnswer = exports.DescribeLifecycleHooksType = exports.DescribeLifecycleHooksAnswer = exports.LifecycleHook = exports.LaunchConfigurationsType = exports.LaunchConfiguration = exports.LaunchConfigurationNamesType = exports.DescribeInstanceRefreshesType = exports.DescribeInstanceRefreshesAnswer = exports.InstanceRefresh = exports.InstanceRefreshStatus = exports.InstanceRefreshProgressDetails = exports.InstanceRefreshWarmPoolProgress = exports.InstanceRefreshLivePoolProgress = exports.RefreshPreferences = exports.DesiredConfiguration = exports.DescribeAutoScalingNotificationTypesAnswer = exports.DescribeAutoScalingInstancesType = exports.AutoScalingInstancesType = exports.AutoScalingInstanceDetails = exports.AutoScalingGroupsType = exports.AutoScalingGroup = exports.WarmPoolConfiguration = exports.WarmPoolStatus = exports.WarmPoolState = exports.TagDescription = exports.SuspendedProcess = exports.Instance = exports.LifecycleState = exports.EnabledMetric = exports.AutoScalingGroupNamesType = exports.Filter = exports.DescribeAdjustmentTypesAnswer = exports.DescribeAccountLimitsAnswer = exports.DeleteWarmPoolType = exports.DeleteWarmPoolAnswer = exports.DeleteTagsType = exports.DeleteScheduledActionType = exports.DeletePolicyType = exports.DeleteNotificationConfigurationType = exports.DeleteLifecycleHookType = exports.DeleteLifecycleHookAnswer = exports.LaunchConfigurationNameType = exports.DeleteAutoScalingGroupType = exports.CreateOrUpdateTagsType = exports.CreateLaunchConfigurationType = exports.InstanceMetadataOptions = exports.InstanceMetadataHttpTokensState = exports.InstanceMetadataEndpointState = void 0;
5
+ exports.DetachInstancesQuery = exports.DetachInstancesAnswer = exports.DescribeWarmPoolType = exports.DescribeWarmPoolAnswer = exports.DescribeTerminationPolicyTypesAnswer = exports.TagsType = exports.DescribeTagsType = exports.ScheduledActionsType = exports.ScheduledUpdateGroupAction = exports.DescribeScheduledActionsType = exports.ProcessesType = exports.ProcessType = exports.DescribeScalingActivitiesType = exports.PoliciesType = exports.ScalingPolicy = exports.TargetTrackingConfiguration = exports.PredefinedMetricSpecification = exports.MetricType = exports.CustomizedMetricSpecification = exports.MetricStatistic = exports.StepAdjustment = exports.PredictiveScalingConfiguration = exports.PredictiveScalingMode = exports.PredictiveScalingMetricSpecification = exports.PredictiveScalingPredefinedScalingMetric = exports.PredefinedScalingMetricType = exports.PredictiveScalingPredefinedMetricPair = exports.PredefinedMetricPairType = exports.PredictiveScalingPredefinedLoadMetric = exports.PredefinedLoadMetricType = exports.PredictiveScalingCustomizedScalingMetric = exports.PredictiveScalingCustomizedLoadMetric = exports.PredictiveScalingCustomizedCapacityMetric = exports.MetricDataQuery = exports.MetricStat = exports.Metric = exports.MetricDimension = exports.PredictiveScalingMaxCapacityBreachBehavior = exports.DescribePoliciesType = exports.DescribeNotificationConfigurationsType = exports.DescribeNotificationConfigurationsAnswer = exports.NotificationConfiguration = exports.DescribeMetricCollectionTypesAnswer = exports.MetricCollectionType = exports.MetricGranularityType = exports.DescribeLoadBalancerTargetGroupsResponse = exports.LoadBalancerTargetGroupState = exports.DescribeLoadBalancerTargetGroupsRequest = exports.DescribeLoadBalancersResponse = exports.LoadBalancerState = void 0;
6
+ exports.UpdateAutoScalingGroupType = exports.TerminateInstanceInAutoScalingGroupType = exports.StartInstanceRefreshType = exports.RefreshStrategy = exports.StartInstanceRefreshAnswer = exports.SetInstanceProtectionQuery = exports.SetInstanceProtectionAnswer = exports.SetInstanceHealthQuery = exports.SetDesiredCapacityType = exports.ScalingProcessQuery = exports.RecordLifecycleActionHeartbeatType = exports.RecordLifecycleActionHeartbeatAnswer = exports.PutWarmPoolType = exports.PutWarmPoolAnswer = exports.PutScheduledUpdateGroupActionType = exports.PutScalingPolicyType = exports.PolicyARNType = exports.PutNotificationConfigurationType = exports.PutLifecycleHookType = exports.PutLifecycleHookAnswer = exports.GetPredictiveScalingForecastType = exports.GetPredictiveScalingForecastAnswer = exports.LoadForecast = exports.CapacityForecast = exports.ExitStandbyQuery = exports.ExitStandbyAnswer = exports.ExecutePolicyType = exports.EnterStandbyQuery = exports.EnterStandbyAnswer = exports.EnableMetricsCollectionQuery = exports.DisableMetricsCollectionQuery = exports.DetachLoadBalancerTargetGroupsType = exports.DetachLoadBalancerTargetGroupsResultType = exports.DetachLoadBalancersType = exports.DetachLoadBalancersResultType = void 0;
7
7
  var AcceleratorCountRequest;
8
8
  (function (AcceleratorCountRequest) {
9
9
  AcceleratorCountRequest.filterSensitiveLog = (obj) => ({
@@ -39,12 +39,6 @@ var AcceleratorType;
39
39
  AcceleratorType["GPU"] = "gpu";
40
40
  AcceleratorType["INFERENCE"] = "inference";
41
41
  })(AcceleratorType = exports.AcceleratorType || (exports.AcceleratorType = {}));
42
- var ActiveInstanceRefreshNotFoundFault;
43
- (function (ActiveInstanceRefreshNotFoundFault) {
44
- ActiveInstanceRefreshNotFoundFault.filterSensitiveLog = (obj) => ({
45
- ...obj,
46
- });
47
- })(ActiveInstanceRefreshNotFoundFault = exports.ActiveInstanceRefreshNotFoundFault || (exports.ActiveInstanceRefreshNotFoundFault = {}));
48
42
  var ScalingActivityStatusCode;
49
43
  (function (ScalingActivityStatusCode) {
50
44
  ScalingActivityStatusCode["Cancelled"] = "Cancelled";
@@ -90,30 +84,12 @@ var Alarm;
90
84
  ...obj,
91
85
  });
92
86
  })(Alarm = exports.Alarm || (exports.Alarm = {}));
93
- var AlreadyExistsFault;
94
- (function (AlreadyExistsFault) {
95
- AlreadyExistsFault.filterSensitiveLog = (obj) => ({
96
- ...obj,
97
- });
98
- })(AlreadyExistsFault = exports.AlreadyExistsFault || (exports.AlreadyExistsFault = {}));
99
87
  var AttachInstancesQuery;
100
88
  (function (AttachInstancesQuery) {
101
89
  AttachInstancesQuery.filterSensitiveLog = (obj) => ({
102
90
  ...obj,
103
91
  });
104
92
  })(AttachInstancesQuery = exports.AttachInstancesQuery || (exports.AttachInstancesQuery = {}));
105
- var ResourceContentionFault;
106
- (function (ResourceContentionFault) {
107
- ResourceContentionFault.filterSensitiveLog = (obj) => ({
108
- ...obj,
109
- });
110
- })(ResourceContentionFault = exports.ResourceContentionFault || (exports.ResourceContentionFault = {}));
111
- var ServiceLinkedRoleFailure;
112
- (function (ServiceLinkedRoleFailure) {
113
- ServiceLinkedRoleFailure.filterSensitiveLog = (obj) => ({
114
- ...obj,
115
- });
116
- })(ServiceLinkedRoleFailure = exports.ServiceLinkedRoleFailure || (exports.ServiceLinkedRoleFailure = {}));
117
93
  var AttachLoadBalancersResultType;
118
94
  (function (AttachLoadBalancersResultType) {
119
95
  AttachLoadBalancersResultType.filterSensitiveLog = (obj) => ({
@@ -174,12 +150,6 @@ var BatchPutScheduledUpdateGroupActionType;
174
150
  ...obj,
175
151
  });
176
152
  })(BatchPutScheduledUpdateGroupActionType = exports.BatchPutScheduledUpdateGroupActionType || (exports.BatchPutScheduledUpdateGroupActionType = {}));
177
- var LimitExceededFault;
178
- (function (LimitExceededFault) {
179
- LimitExceededFault.filterSensitiveLog = (obj) => ({
180
- ...obj,
181
- });
182
- })(LimitExceededFault = exports.LimitExceededFault || (exports.LimitExceededFault = {}));
183
153
  var CancelInstanceRefreshAnswer;
184
154
  (function (CancelInstanceRefreshAnswer) {
185
155
  CancelInstanceRefreshAnswer.filterSensitiveLog = (obj) => ({
@@ -374,24 +344,12 @@ var CreateOrUpdateTagsType;
374
344
  ...obj,
375
345
  });
376
346
  })(CreateOrUpdateTagsType = exports.CreateOrUpdateTagsType || (exports.CreateOrUpdateTagsType = {}));
377
- var ResourceInUseFault;
378
- (function (ResourceInUseFault) {
379
- ResourceInUseFault.filterSensitiveLog = (obj) => ({
380
- ...obj,
381
- });
382
- })(ResourceInUseFault = exports.ResourceInUseFault || (exports.ResourceInUseFault = {}));
383
347
  var DeleteAutoScalingGroupType;
384
348
  (function (DeleteAutoScalingGroupType) {
385
349
  DeleteAutoScalingGroupType.filterSensitiveLog = (obj) => ({
386
350
  ...obj,
387
351
  });
388
352
  })(DeleteAutoScalingGroupType = exports.DeleteAutoScalingGroupType || (exports.DeleteAutoScalingGroupType = {}));
389
- var ScalingActivityInProgressFault;
390
- (function (ScalingActivityInProgressFault) {
391
- ScalingActivityInProgressFault.filterSensitiveLog = (obj) => ({
392
- ...obj,
393
- });
394
- })(ScalingActivityInProgressFault = exports.ScalingActivityInProgressFault || (exports.ScalingActivityInProgressFault = {}));
395
353
  var LaunchConfigurationNameType;
396
354
  (function (LaunchConfigurationNameType) {
397
355
  LaunchConfigurationNameType.filterSensitiveLog = (obj) => ({
@@ -546,12 +504,6 @@ var AutoScalingGroupsType;
546
504
  ...obj,
547
505
  });
548
506
  })(AutoScalingGroupsType = exports.AutoScalingGroupsType || (exports.AutoScalingGroupsType = {}));
549
- var InvalidNextToken;
550
- (function (InvalidNextToken) {
551
- InvalidNextToken.filterSensitiveLog = (obj) => ({
552
- ...obj,
553
- });
554
- })(InvalidNextToken = exports.InvalidNextToken || (exports.InvalidNextToken = {}));
555
507
  var AutoScalingInstanceDetails;
556
508
  (function (AutoScalingInstanceDetails) {
557
509
  AutoScalingInstanceDetails.filterSensitiveLog = (obj) => ({
@@ -1165,12 +1117,6 @@ var SetInstanceProtectionQuery;
1165
1117
  ...obj,
1166
1118
  });
1167
1119
  })(SetInstanceProtectionQuery = exports.SetInstanceProtectionQuery || (exports.SetInstanceProtectionQuery = {}));
1168
- var InstanceRefreshInProgressFault;
1169
- (function (InstanceRefreshInProgressFault) {
1170
- InstanceRefreshInProgressFault.filterSensitiveLog = (obj) => ({
1171
- ...obj,
1172
- });
1173
- })(InstanceRefreshInProgressFault = exports.InstanceRefreshInProgressFault || (exports.InstanceRefreshInProgressFault = {}));
1174
1120
  var StartInstanceRefreshAnswer;
1175
1121
  (function (StartInstanceRefreshAnswer) {
1176
1122
  StartInstanceRefreshAnswer.filterSensitiveLog = (obj) => ({
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
13
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
16
18
  const getRuntimeConfig = (config) => {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
+ const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
21
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
18
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
23
  return {
20
24
  ...clientSharedValues,
21
25
  ...config,
22
26
  runtime: "browser",
27
+ defaultsMode,
23
28
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
24
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
25
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
27
32
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
28
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
29
34
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
30
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
31
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
35
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
32
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
33
38
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
34
39
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -15,13 +15,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
15
15
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
18
20
  const getRuntimeConfig = (config) => {
19
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
22
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
20
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
21
25
  return {
22
26
  ...clientSharedValues,
23
27
  ...config,
24
28
  runtime: "node",
29
+ defaultsMode,
25
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
26
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
27
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -29,8 +34,11 @@ const getRuntimeConfig = (config) => {
29
34
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
30
35
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
31
36
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
32
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
33
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
37
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
39
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
+ }),
34
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
35
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
36
44
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
@@ -30,10 +30,6 @@ export var AcceleratorType;
30
30
  AcceleratorType["GPU"] = "gpu";
31
31
  AcceleratorType["INFERENCE"] = "inference";
32
32
  })(AcceleratorType || (AcceleratorType = {}));
33
- export var ActiveInstanceRefreshNotFoundFault;
34
- (function (ActiveInstanceRefreshNotFoundFault) {
35
- ActiveInstanceRefreshNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
36
- })(ActiveInstanceRefreshNotFoundFault || (ActiveInstanceRefreshNotFoundFault = {}));
37
33
  export var ScalingActivityStatusCode;
38
34
  (function (ScalingActivityStatusCode) {
39
35
  ScalingActivityStatusCode["Cancelled"] = "Cancelled";
@@ -69,22 +65,10 @@ export var Alarm;
69
65
  (function (Alarm) {
70
66
  Alarm.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
71
67
  })(Alarm || (Alarm = {}));
72
- export var AlreadyExistsFault;
73
- (function (AlreadyExistsFault) {
74
- AlreadyExistsFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
75
- })(AlreadyExistsFault || (AlreadyExistsFault = {}));
76
68
  export var AttachInstancesQuery;
77
69
  (function (AttachInstancesQuery) {
78
70
  AttachInstancesQuery.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
79
71
  })(AttachInstancesQuery || (AttachInstancesQuery = {}));
80
- export var ResourceContentionFault;
81
- (function (ResourceContentionFault) {
82
- ResourceContentionFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
83
- })(ResourceContentionFault || (ResourceContentionFault = {}));
84
- export var ServiceLinkedRoleFailure;
85
- (function (ServiceLinkedRoleFailure) {
86
- ServiceLinkedRoleFailure.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
87
- })(ServiceLinkedRoleFailure || (ServiceLinkedRoleFailure = {}));
88
72
  export var AttachLoadBalancersResultType;
89
73
  (function (AttachLoadBalancersResultType) {
90
74
  AttachLoadBalancersResultType.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -125,10 +109,6 @@ export var BatchPutScheduledUpdateGroupActionType;
125
109
  (function (BatchPutScheduledUpdateGroupActionType) {
126
110
  BatchPutScheduledUpdateGroupActionType.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
127
111
  })(BatchPutScheduledUpdateGroupActionType || (BatchPutScheduledUpdateGroupActionType = {}));
128
- export var LimitExceededFault;
129
- (function (LimitExceededFault) {
130
- LimitExceededFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
131
- })(LimitExceededFault || (LimitExceededFault = {}));
132
112
  export var CancelInstanceRefreshAnswer;
133
113
  (function (CancelInstanceRefreshAnswer) {
134
114
  CancelInstanceRefreshAnswer.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -273,18 +253,10 @@ export var CreateOrUpdateTagsType;
273
253
  (function (CreateOrUpdateTagsType) {
274
254
  CreateOrUpdateTagsType.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
275
255
  })(CreateOrUpdateTagsType || (CreateOrUpdateTagsType = {}));
276
- export var ResourceInUseFault;
277
- (function (ResourceInUseFault) {
278
- ResourceInUseFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
279
- })(ResourceInUseFault || (ResourceInUseFault = {}));
280
256
  export var DeleteAutoScalingGroupType;
281
257
  (function (DeleteAutoScalingGroupType) {
282
258
  DeleteAutoScalingGroupType.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
283
259
  })(DeleteAutoScalingGroupType || (DeleteAutoScalingGroupType = {}));
284
- export var ScalingActivityInProgressFault;
285
- (function (ScalingActivityInProgressFault) {
286
- ScalingActivityInProgressFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
287
- })(ScalingActivityInProgressFault || (ScalingActivityInProgressFault = {}));
288
260
  export var LaunchConfigurationNameType;
289
261
  (function (LaunchConfigurationNameType) {
290
262
  LaunchConfigurationNameType.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -399,10 +371,6 @@ export var AutoScalingGroupsType;
399
371
  (function (AutoScalingGroupsType) {
400
372
  AutoScalingGroupsType.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
401
373
  })(AutoScalingGroupsType || (AutoScalingGroupsType = {}));
402
- export var InvalidNextToken;
403
- (function (InvalidNextToken) {
404
- InvalidNextToken.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
405
- })(InvalidNextToken || (InvalidNextToken = {}));
406
374
  export var AutoScalingInstanceDetails;
407
375
  (function (AutoScalingInstanceDetails) {
408
376
  AutoScalingInstanceDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -830,10 +798,6 @@ export var SetInstanceProtectionQuery;
830
798
  (function (SetInstanceProtectionQuery) {
831
799
  SetInstanceProtectionQuery.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
832
800
  })(SetInstanceProtectionQuery || (SetInstanceProtectionQuery = {}));
833
- export var InstanceRefreshInProgressFault;
834
- (function (InstanceRefreshInProgressFault) {
835
- InstanceRefreshInProgressFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
836
- })(InstanceRefreshInProgressFault || (InstanceRefreshInProgressFault = {}));
837
801
  export var StartInstanceRefreshAnswer;
838
802
  (function (StartInstanceRefreshAnswer) {
839
803
  StartInstanceRefreshAnswer.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1,8 +1,8 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
- import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
7
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
8
8
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
10
10
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
11
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
13
15
  export var getRuntimeConfig = function (config) {
14
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
15
19
  var clientSharedValues = getSharedRuntimeConfig(config);
16
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
17
26
  };
@@ -1,19 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
15
17
  export var getRuntimeConfig = function (config) {
16
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
17
21
  var clientSharedValues = getSharedRuntimeConfig(config);
18
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
19
28
  };
@@ -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 { AttachInstancesCommandInput, AttachInstancesCommandOutput } from "./commands/AttachInstancesCommand";
10
10
  import { AttachLoadBalancersCommandInput, AttachLoadBalancersCommandOutput } from "./commands/AttachLoadBalancersCommand";
@@ -169,6 +169,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
169
169
  * @internal
170
170
  */
171
171
  defaultUserAgentProvider?: Provider<__UserAgent>;
172
+ /**
173
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
174
+ */
175
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
172
176
  }
173
177
  declare type AutoScalingClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
174
178
  /**
@@ -68,12 +68,6 @@ export interface ActiveInstanceRefreshNotFoundFault extends __SmithyException, $
68
68
  $fault: "client";
69
69
  message?: string;
70
70
  }
71
- export declare namespace ActiveInstanceRefreshNotFoundFault {
72
- /**
73
- * @internal
74
- */
75
- const filterSensitiveLog: (obj: ActiveInstanceRefreshNotFoundFault) => any;
76
- }
77
71
  export declare enum ScalingActivityStatusCode {
78
72
  Cancelled = "Cancelled",
79
73
  Failed = "Failed",
@@ -227,12 +221,6 @@ export interface AlreadyExistsFault extends __SmithyException, $MetadataBearer {
227
221
  */
228
222
  message?: string;
229
223
  }
230
- export declare namespace AlreadyExistsFault {
231
- /**
232
- * @internal
233
- */
234
- const filterSensitiveLog: (obj: AlreadyExistsFault) => any;
235
- }
236
224
  export interface AttachInstancesQuery {
237
225
  /**
238
226
  * <p>The IDs of the instances. You can specify up to 20 instances.</p>
@@ -261,12 +249,6 @@ export interface ResourceContentionFault extends __SmithyException, $MetadataBea
261
249
  */
262
250
  message?: string;
263
251
  }
264
- export declare namespace ResourceContentionFault {
265
- /**
266
- * @internal
267
- */
268
- const filterSensitiveLog: (obj: ResourceContentionFault) => any;
269
- }
270
252
  /**
271
253
  * <p>The service-linked role is not yet ready for use.</p>
272
254
  */
@@ -275,12 +257,6 @@ export interface ServiceLinkedRoleFailure extends __SmithyException, $MetadataBe
275
257
  $fault: "server";
276
258
  message?: string;
277
259
  }
278
- export declare namespace ServiceLinkedRoleFailure {
279
- /**
280
- * @internal
281
- */
282
- const filterSensitiveLog: (obj: ServiceLinkedRoleFailure) => any;
283
- }
284
260
  export interface AttachLoadBalancersResultType {
285
261
  }
286
262
  export declare namespace AttachLoadBalancersResultType {
@@ -487,12 +463,6 @@ export interface LimitExceededFault extends __SmithyException, $MetadataBearer {
487
463
  */
488
464
  message?: string;
489
465
  }
490
- export declare namespace LimitExceededFault {
491
- /**
492
- * @internal
493
- */
494
- const filterSensitiveLog: (obj: LimitExceededFault) => any;
495
- }
496
466
  export interface CancelInstanceRefreshAnswer {
497
467
  /**
498
468
  * <p>The instance refresh ID.</p>
@@ -1870,12 +1840,6 @@ export interface ResourceInUseFault extends __SmithyException, $MetadataBearer {
1870
1840
  */
1871
1841
  message?: string;
1872
1842
  }
1873
- export declare namespace ResourceInUseFault {
1874
- /**
1875
- * @internal
1876
- */
1877
- const filterSensitiveLog: (obj: ResourceInUseFault) => any;
1878
- }
1879
1843
  export interface DeleteAutoScalingGroupType {
1880
1844
  /**
1881
1845
  * <p>The name of the Auto Scaling group.</p>
@@ -1906,12 +1870,6 @@ export interface ScalingActivityInProgressFault extends __SmithyException, $Meta
1906
1870
  */
1907
1871
  message?: string;
1908
1872
  }
1909
- export declare namespace ScalingActivityInProgressFault {
1910
- /**
1911
- * @internal
1912
- */
1913
- const filterSensitiveLog: (obj: ScalingActivityInProgressFault) => any;
1914
- }
1915
1873
  export interface LaunchConfigurationNameType {
1916
1874
  /**
1917
1875
  * <p>The name of the launch configuration.</p>
@@ -2658,12 +2616,6 @@ export interface InvalidNextToken extends __SmithyException, $MetadataBearer {
2658
2616
  */
2659
2617
  message?: string;
2660
2618
  }
2661
- export declare namespace InvalidNextToken {
2662
- /**
2663
- * @internal
2664
- */
2665
- const filterSensitiveLog: (obj: InvalidNextToken) => any;
2666
- }
2667
2619
  /**
2668
2620
  * <p>Describes an EC2 instance associated with an Auto Scaling group.</p>
2669
2621
  */
@@ -6134,12 +6086,6 @@ export interface InstanceRefreshInProgressFault extends __SmithyException, $Meta
6134
6086
  $fault: "client";
6135
6087
  message?: string;
6136
6088
  }
6137
- export declare namespace InstanceRefreshInProgressFault {
6138
- /**
6139
- * @internal
6140
- */
6141
- const filterSensitiveLog: (obj: InstanceRefreshInProgressFault) => any;
6142
- }
6143
6089
  export interface StartInstanceRefreshAnswer {
6144
6090
  /**
6145
6091
  * <p>A unique ID for tracking the progress of the request.</p>
@@ -1,10 +1,11 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { AutoScalingClientConfig } from "./AutoScalingClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<any>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,18 +1,19 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { AutoScalingClientConfig } from "./AutoScalingClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<string>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
30
  tls?: boolean | undefined;
30
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -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 { AttachInstancesCommandInput, AttachInstancesCommandOutput } from "./commands/AttachInstancesCommand";
10
10
  import { AttachLoadBalancersCommandInput, AttachLoadBalancersCommandOutput } from "./commands/AttachLoadBalancersCommand";
@@ -112,6 +112,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
112
112
  regionInfoProvider?: RegionInfoProvider;
113
113
 
114
114
  defaultUserAgentProvider?: Provider<__UserAgent>;
115
+
116
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
115
117
  }
116
118
  declare type AutoScalingClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
117
119
 
@@ -47,10 +47,6 @@ export interface ActiveInstanceRefreshNotFoundFault extends __SmithyException, $
47
47
  $fault: "client";
48
48
  message?: string;
49
49
  }
50
- export declare namespace ActiveInstanceRefreshNotFoundFault {
51
-
52
- const filterSensitiveLog: (obj: ActiveInstanceRefreshNotFoundFault) => any;
53
- }
54
50
  export declare enum ScalingActivityStatusCode {
55
51
  Cancelled = "Cancelled",
56
52
  Failed = "Failed",
@@ -141,10 +137,6 @@ export interface AlreadyExistsFault extends __SmithyException, $MetadataBearer {
141
137
 
142
138
  message?: string;
143
139
  }
144
- export declare namespace AlreadyExistsFault {
145
-
146
- const filterSensitiveLog: (obj: AlreadyExistsFault) => any;
147
- }
148
140
  export interface AttachInstancesQuery {
149
141
 
150
142
  InstanceIds?: string[];
@@ -162,20 +154,12 @@ export interface ResourceContentionFault extends __SmithyException, $MetadataBea
162
154
 
163
155
  message?: string;
164
156
  }
165
- export declare namespace ResourceContentionFault {
166
-
167
- const filterSensitiveLog: (obj: ResourceContentionFault) => any;
168
- }
169
157
 
170
158
  export interface ServiceLinkedRoleFailure extends __SmithyException, $MetadataBearer {
171
159
  name: "ServiceLinkedRoleFailure";
172
160
  $fault: "server";
173
161
  message?: string;
174
162
  }
175
- export declare namespace ServiceLinkedRoleFailure {
176
-
177
- const filterSensitiveLog: (obj: ServiceLinkedRoleFailure) => any;
178
- }
179
163
  export interface AttachLoadBalancersResultType {
180
164
  }
181
165
  export declare namespace AttachLoadBalancersResultType {
@@ -287,10 +271,6 @@ export interface LimitExceededFault extends __SmithyException, $MetadataBearer {
287
271
 
288
272
  message?: string;
289
273
  }
290
- export declare namespace LimitExceededFault {
291
-
292
- const filterSensitiveLog: (obj: LimitExceededFault) => any;
293
- }
294
274
  export interface CancelInstanceRefreshAnswer {
295
275
 
296
276
  InstanceRefreshId?: string;
@@ -760,10 +740,6 @@ export interface ResourceInUseFault extends __SmithyException, $MetadataBearer {
760
740
 
761
741
  message?: string;
762
742
  }
763
- export declare namespace ResourceInUseFault {
764
-
765
- const filterSensitiveLog: (obj: ResourceInUseFault) => any;
766
- }
767
743
  export interface DeleteAutoScalingGroupType {
768
744
 
769
745
  AutoScalingGroupName: string | undefined;
@@ -781,10 +757,6 @@ export interface ScalingActivityInProgressFault extends __SmithyException, $Meta
781
757
 
782
758
  message?: string;
783
759
  }
784
- export declare namespace ScalingActivityInProgressFault {
785
-
786
- const filterSensitiveLog: (obj: ScalingActivityInProgressFault) => any;
787
- }
788
760
  export interface LaunchConfigurationNameType {
789
761
 
790
762
  LaunchConfigurationName: string | undefined;
@@ -1108,10 +1080,6 @@ export interface InvalidNextToken extends __SmithyException, $MetadataBearer {
1108
1080
 
1109
1081
  message?: string;
1110
1082
  }
1111
- export declare namespace InvalidNextToken {
1112
-
1113
- const filterSensitiveLog: (obj: InvalidNextToken) => any;
1114
- }
1115
1083
 
1116
1084
  export interface AutoScalingInstanceDetails {
1117
1085
 
@@ -2383,10 +2351,6 @@ export interface InstanceRefreshInProgressFault extends __SmithyException, $Meta
2383
2351
  $fault: "client";
2384
2352
  message?: string;
2385
2353
  }
2386
- export declare namespace InstanceRefreshInProgressFault {
2387
-
2388
- const filterSensitiveLog: (obj: InstanceRefreshInProgressFault) => any;
2389
- }
2390
2354
  export interface StartInstanceRefreshAnswer {
2391
2355
 
2392
2356
  InstanceRefreshId?: string;
@@ -1,8 +1,9 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { AutoScalingClientConfig } from "./AutoScalingClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
@@ -10,7 +11,7 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<any>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,16 +1,17 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { AutoScalingClientConfig } from "./AutoScalingClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
9
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
10
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<string>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
23
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
26
27
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
27
28
  tls?: boolean | undefined;
28
29
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
package/package.json CHANGED
@@ -1,17 +1,15 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-auto-scaling",
3
3
  "description": "AWS SDK for JavaScript Auto Scaling Client for Node.js, Browser and React Native",
4
- "version": "3.46.0",
4
+ "version": "3.48.0",
5
5
  "scripts": {
6
- "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
- "build:cjs": "tsc -p tsconfig.json",
6
+ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
+ "build:cjs": "tsc -p tsconfig.cjs.json",
8
8
  "build:docs": "typedoc",
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "yarn clean:dist && yarn clean:docs",
13
- "clean:dist": "rimraf ./dist-*",
14
- "clean:docs": "rimraf ./docs"
12
+ "clean": "rimraf ./dist-*"
15
13
  },
16
14
  "main": "./dist-cjs/index.js",
17
15
  "types": "./dist-types/index.d.ts",
@@ -20,41 +18,43 @@
20
18
  "dependencies": {
21
19
  "@aws-crypto/sha256-browser": "2.0.0",
22
20
  "@aws-crypto/sha256-js": "2.0.0",
23
- "@aws-sdk/client-sts": "3.46.0",
24
- "@aws-sdk/config-resolver": "3.46.0",
25
- "@aws-sdk/credential-provider-node": "3.46.0",
26
- "@aws-sdk/fetch-http-handler": "3.46.0",
27
- "@aws-sdk/hash-node": "3.46.0",
28
- "@aws-sdk/invalid-dependency": "3.46.0",
29
- "@aws-sdk/middleware-content-length": "3.46.0",
30
- "@aws-sdk/middleware-host-header": "3.46.0",
31
- "@aws-sdk/middleware-logger": "3.46.0",
32
- "@aws-sdk/middleware-retry": "3.46.0",
33
- "@aws-sdk/middleware-serde": "3.46.0",
34
- "@aws-sdk/middleware-signing": "3.46.0",
35
- "@aws-sdk/middleware-stack": "3.46.0",
36
- "@aws-sdk/middleware-user-agent": "3.46.0",
37
- "@aws-sdk/node-config-provider": "3.46.0",
38
- "@aws-sdk/node-http-handler": "3.46.0",
39
- "@aws-sdk/protocol-http": "3.46.0",
40
- "@aws-sdk/smithy-client": "3.46.0",
41
- "@aws-sdk/types": "3.46.0",
42
- "@aws-sdk/url-parser": "3.46.0",
43
- "@aws-sdk/util-base64-browser": "3.46.0",
44
- "@aws-sdk/util-base64-node": "3.46.0",
45
- "@aws-sdk/util-body-length-browser": "3.46.0",
46
- "@aws-sdk/util-body-length-node": "3.46.0",
47
- "@aws-sdk/util-user-agent-browser": "3.46.0",
48
- "@aws-sdk/util-user-agent-node": "3.46.0",
49
- "@aws-sdk/util-utf8-browser": "3.46.0",
50
- "@aws-sdk/util-utf8-node": "3.46.0",
51
- "@aws-sdk/util-waiter": "3.46.0",
21
+ "@aws-sdk/client-sts": "3.48.0",
22
+ "@aws-sdk/config-resolver": "3.47.2",
23
+ "@aws-sdk/credential-provider-node": "3.48.0",
24
+ "@aws-sdk/fetch-http-handler": "3.47.2",
25
+ "@aws-sdk/hash-node": "3.47.2",
26
+ "@aws-sdk/invalid-dependency": "3.47.2",
27
+ "@aws-sdk/middleware-content-length": "3.47.2",
28
+ "@aws-sdk/middleware-host-header": "3.47.2",
29
+ "@aws-sdk/middleware-logger": "3.47.2",
30
+ "@aws-sdk/middleware-retry": "3.47.2",
31
+ "@aws-sdk/middleware-serde": "3.47.2",
32
+ "@aws-sdk/middleware-signing": "3.47.2",
33
+ "@aws-sdk/middleware-stack": "3.47.2",
34
+ "@aws-sdk/middleware-user-agent": "3.47.2",
35
+ "@aws-sdk/node-config-provider": "3.47.2",
36
+ "@aws-sdk/node-http-handler": "3.47.2",
37
+ "@aws-sdk/protocol-http": "3.47.2",
38
+ "@aws-sdk/smithy-client": "3.47.2",
39
+ "@aws-sdk/types": "3.47.1",
40
+ "@aws-sdk/url-parser": "3.47.2",
41
+ "@aws-sdk/util-base64-browser": "3.47.1",
42
+ "@aws-sdk/util-base64-node": "3.47.2",
43
+ "@aws-sdk/util-body-length-browser": "3.47.1",
44
+ "@aws-sdk/util-body-length-node": "3.47.1",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.47.2",
46
+ "@aws-sdk/util-defaults-mode-node": "3.47.2",
47
+ "@aws-sdk/util-user-agent-browser": "3.47.2",
48
+ "@aws-sdk/util-user-agent-node": "3.47.2",
49
+ "@aws-sdk/util-utf8-browser": "3.47.1",
50
+ "@aws-sdk/util-utf8-node": "3.47.2",
51
+ "@aws-sdk/util-waiter": "3.47.2",
52
52
  "entities": "2.2.0",
53
53
  "fast-xml-parser": "3.19.0",
54
54
  "tslib": "^2.3.0"
55
55
  },
56
56
  "devDependencies": {
57
- "@aws-sdk/service-client-documentation-generator": "3.46.0",
57
+ "@aws-sdk/service-client-documentation-generator": "3.47.1",
58
58
  "@types/node": "^12.7.5"
59
59
  },
60
60
  "engines": {