@aws-sdk/client-auto-scaling 3.42.0 → 3.47.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,57 @@
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.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * **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))
12
+ * 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))
13
+
14
+
15
+
16
+
17
+
18
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
24
+
25
+
26
+ ### Features
27
+
28
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
29
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
30
+
31
+
32
+
33
+
34
+
35
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
36
+
37
+
38
+ ### Features
39
+
40
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
41
+
42
+
43
+
44
+
45
+
46
+ # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
47
+
48
+
49
+ ### Features
50
+
51
+ * **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
52
+
53
+
54
+
55
+
56
+
6
57
  # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
7
58
 
8
59
  **Note:** Version bump only for package @aws-sdk/client-auto-scaling
@@ -14,6 +14,7 @@ const partitionHash = {
14
14
  "ap-south-1",
15
15
  "ap-southeast-1",
16
16
  "ap-southeast-2",
17
+ "ap-southeast-3",
17
18
  "ca-central-1",
18
19
  "eu-central-1",
19
20
  "eu-north-1",
@@ -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.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.MetricDimension = exports.StepAdjustment = exports.PredictiveScalingConfiguration = exports.PredictiveScalingMode = exports.PredictiveScalingMetricSpecification = exports.PredictiveScalingPredefinedScalingMetric = exports.PredefinedScalingMetricType = exports.PredictiveScalingPredefinedMetricPair = exports.PredefinedMetricPairType = exports.PredictiveScalingPredefinedLoadMetric = exports.PredefinedLoadMetricType = 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 = 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) => ({
@@ -758,6 +710,48 @@ var PredictiveScalingMaxCapacityBreachBehavior;
758
710
  PredictiveScalingMaxCapacityBreachBehavior["HonorMaxCapacity"] = "HonorMaxCapacity";
759
711
  PredictiveScalingMaxCapacityBreachBehavior["IncreaseMaxCapacity"] = "IncreaseMaxCapacity";
760
712
  })(PredictiveScalingMaxCapacityBreachBehavior = exports.PredictiveScalingMaxCapacityBreachBehavior || (exports.PredictiveScalingMaxCapacityBreachBehavior = {}));
713
+ var MetricDimension;
714
+ (function (MetricDimension) {
715
+ MetricDimension.filterSensitiveLog = (obj) => ({
716
+ ...obj,
717
+ });
718
+ })(MetricDimension = exports.MetricDimension || (exports.MetricDimension = {}));
719
+ var Metric;
720
+ (function (Metric) {
721
+ Metric.filterSensitiveLog = (obj) => ({
722
+ ...obj,
723
+ });
724
+ })(Metric = exports.Metric || (exports.Metric = {}));
725
+ var MetricStat;
726
+ (function (MetricStat) {
727
+ MetricStat.filterSensitiveLog = (obj) => ({
728
+ ...obj,
729
+ });
730
+ })(MetricStat = exports.MetricStat || (exports.MetricStat = {}));
731
+ var MetricDataQuery;
732
+ (function (MetricDataQuery) {
733
+ MetricDataQuery.filterSensitiveLog = (obj) => ({
734
+ ...obj,
735
+ });
736
+ })(MetricDataQuery = exports.MetricDataQuery || (exports.MetricDataQuery = {}));
737
+ var PredictiveScalingCustomizedCapacityMetric;
738
+ (function (PredictiveScalingCustomizedCapacityMetric) {
739
+ PredictiveScalingCustomizedCapacityMetric.filterSensitiveLog = (obj) => ({
740
+ ...obj,
741
+ });
742
+ })(PredictiveScalingCustomizedCapacityMetric = exports.PredictiveScalingCustomizedCapacityMetric || (exports.PredictiveScalingCustomizedCapacityMetric = {}));
743
+ var PredictiveScalingCustomizedLoadMetric;
744
+ (function (PredictiveScalingCustomizedLoadMetric) {
745
+ PredictiveScalingCustomizedLoadMetric.filterSensitiveLog = (obj) => ({
746
+ ...obj,
747
+ });
748
+ })(PredictiveScalingCustomizedLoadMetric = exports.PredictiveScalingCustomizedLoadMetric || (exports.PredictiveScalingCustomizedLoadMetric = {}));
749
+ var PredictiveScalingCustomizedScalingMetric;
750
+ (function (PredictiveScalingCustomizedScalingMetric) {
751
+ PredictiveScalingCustomizedScalingMetric.filterSensitiveLog = (obj) => ({
752
+ ...obj,
753
+ });
754
+ })(PredictiveScalingCustomizedScalingMetric = exports.PredictiveScalingCustomizedScalingMetric || (exports.PredictiveScalingCustomizedScalingMetric = {}));
761
755
  var PredefinedLoadMetricType;
762
756
  (function (PredefinedLoadMetricType) {
763
757
  PredefinedLoadMetricType["ALBTargetGroupRequestCount"] = "ALBTargetGroupRequestCount";
@@ -820,12 +814,6 @@ var StepAdjustment;
820
814
  ...obj,
821
815
  });
822
816
  })(StepAdjustment = exports.StepAdjustment || (exports.StepAdjustment = {}));
823
- var MetricDimension;
824
- (function (MetricDimension) {
825
- MetricDimension.filterSensitiveLog = (obj) => ({
826
- ...obj,
827
- });
828
- })(MetricDimension = exports.MetricDimension || (exports.MetricDimension = {}));
829
817
  var MetricStatistic;
830
818
  (function (MetricStatistic) {
831
819
  MetricStatistic["Average"] = "Average";
@@ -1129,12 +1117,6 @@ var SetInstanceProtectionQuery;
1129
1117
  ...obj,
1130
1118
  });
1131
1119
  })(SetInstanceProtectionQuery = exports.SetInstanceProtectionQuery || (exports.SetInstanceProtectionQuery = {}));
1132
- var InstanceRefreshInProgressFault;
1133
- (function (InstanceRefreshInProgressFault) {
1134
- InstanceRefreshInProgressFault.filterSensitiveLog = (obj) => ({
1135
- ...obj,
1136
- });
1137
- })(InstanceRefreshInProgressFault = exports.InstanceRefreshInProgressFault || (exports.InstanceRefreshInProgressFault = {}));
1138
1120
  var StartInstanceRefreshAnswer;
1139
1121
  (function (StartInstanceRefreshAnswer) {
1140
1122
  StartInstanceRefreshAnswer.filterSensitiveLog = (obj) => ({
@@ -5554,6 +5554,61 @@ const serializeAws_queryMemoryMiBRequest = (input, context) => {
5554
5554
  }
5555
5555
  return entries;
5556
5556
  };
5557
+ const serializeAws_queryMetric = (input, context) => {
5558
+ const entries = {};
5559
+ if (input.Namespace !== undefined && input.Namespace !== null) {
5560
+ entries["Namespace"] = input.Namespace;
5561
+ }
5562
+ if (input.MetricName !== undefined && input.MetricName !== null) {
5563
+ entries["MetricName"] = input.MetricName;
5564
+ }
5565
+ if (input.Dimensions !== undefined && input.Dimensions !== null) {
5566
+ const memberEntries = serializeAws_queryMetricDimensions(input.Dimensions, context);
5567
+ Object.entries(memberEntries).forEach(([key, value]) => {
5568
+ const loc = `Dimensions.${key}`;
5569
+ entries[loc] = value;
5570
+ });
5571
+ }
5572
+ return entries;
5573
+ };
5574
+ const serializeAws_queryMetricDataQueries = (input, context) => {
5575
+ const entries = {};
5576
+ let counter = 1;
5577
+ for (const entry of input) {
5578
+ if (entry === null) {
5579
+ continue;
5580
+ }
5581
+ const memberEntries = serializeAws_queryMetricDataQuery(entry, context);
5582
+ Object.entries(memberEntries).forEach(([key, value]) => {
5583
+ entries[`member.${counter}.${key}`] = value;
5584
+ });
5585
+ counter++;
5586
+ }
5587
+ return entries;
5588
+ };
5589
+ const serializeAws_queryMetricDataQuery = (input, context) => {
5590
+ const entries = {};
5591
+ if (input.Id !== undefined && input.Id !== null) {
5592
+ entries["Id"] = input.Id;
5593
+ }
5594
+ if (input.Expression !== undefined && input.Expression !== null) {
5595
+ entries["Expression"] = input.Expression;
5596
+ }
5597
+ if (input.MetricStat !== undefined && input.MetricStat !== null) {
5598
+ const memberEntries = serializeAws_queryMetricStat(input.MetricStat, context);
5599
+ Object.entries(memberEntries).forEach(([key, value]) => {
5600
+ const loc = `MetricStat.${key}`;
5601
+ entries[loc] = value;
5602
+ });
5603
+ }
5604
+ if (input.Label !== undefined && input.Label !== null) {
5605
+ entries["Label"] = input.Label;
5606
+ }
5607
+ if (input.ReturnData !== undefined && input.ReturnData !== null) {
5608
+ entries["ReturnData"] = input.ReturnData;
5609
+ }
5610
+ return entries;
5611
+ };
5557
5612
  const serializeAws_queryMetricDimension = (input, context) => {
5558
5613
  const entries = {};
5559
5614
  if (input.Name !== undefined && input.Name !== null) {
@@ -5591,6 +5646,23 @@ const serializeAws_queryMetrics = (input, context) => {
5591
5646
  }
5592
5647
  return entries;
5593
5648
  };
5649
+ const serializeAws_queryMetricStat = (input, context) => {
5650
+ const entries = {};
5651
+ if (input.Metric !== undefined && input.Metric !== null) {
5652
+ const memberEntries = serializeAws_queryMetric(input.Metric, context);
5653
+ Object.entries(memberEntries).forEach(([key, value]) => {
5654
+ const loc = `Metric.${key}`;
5655
+ entries[loc] = value;
5656
+ });
5657
+ }
5658
+ if (input.Stat !== undefined && input.Stat !== null) {
5659
+ entries["Stat"] = input.Stat;
5660
+ }
5661
+ if (input.Unit !== undefined && input.Unit !== null) {
5662
+ entries["Unit"] = input.Unit;
5663
+ }
5664
+ return entries;
5665
+ };
5594
5666
  const serializeAws_queryMixedInstancesPolicy = (input, context) => {
5595
5667
  const entries = {};
5596
5668
  if (input.LaunchTemplate !== undefined && input.LaunchTemplate !== null) {
@@ -5691,6 +5763,39 @@ const serializeAws_queryPredictiveScalingConfiguration = (input, context) => {
5691
5763
  }
5692
5764
  return entries;
5693
5765
  };
5766
+ const serializeAws_queryPredictiveScalingCustomizedCapacityMetric = (input, context) => {
5767
+ const entries = {};
5768
+ if (input.MetricDataQueries !== undefined && input.MetricDataQueries !== null) {
5769
+ const memberEntries = serializeAws_queryMetricDataQueries(input.MetricDataQueries, context);
5770
+ Object.entries(memberEntries).forEach(([key, value]) => {
5771
+ const loc = `MetricDataQueries.${key}`;
5772
+ entries[loc] = value;
5773
+ });
5774
+ }
5775
+ return entries;
5776
+ };
5777
+ const serializeAws_queryPredictiveScalingCustomizedLoadMetric = (input, context) => {
5778
+ const entries = {};
5779
+ if (input.MetricDataQueries !== undefined && input.MetricDataQueries !== null) {
5780
+ const memberEntries = serializeAws_queryMetricDataQueries(input.MetricDataQueries, context);
5781
+ Object.entries(memberEntries).forEach(([key, value]) => {
5782
+ const loc = `MetricDataQueries.${key}`;
5783
+ entries[loc] = value;
5784
+ });
5785
+ }
5786
+ return entries;
5787
+ };
5788
+ const serializeAws_queryPredictiveScalingCustomizedScalingMetric = (input, context) => {
5789
+ const entries = {};
5790
+ if (input.MetricDataQueries !== undefined && input.MetricDataQueries !== null) {
5791
+ const memberEntries = serializeAws_queryMetricDataQueries(input.MetricDataQueries, context);
5792
+ Object.entries(memberEntries).forEach(([key, value]) => {
5793
+ const loc = `MetricDataQueries.${key}`;
5794
+ entries[loc] = value;
5795
+ });
5796
+ }
5797
+ return entries;
5798
+ };
5694
5799
  const serializeAws_queryPredictiveScalingMetricSpecification = (input, context) => {
5695
5800
  const entries = {};
5696
5801
  if (input.TargetValue !== undefined && input.TargetValue !== null) {
@@ -5717,6 +5822,28 @@ const serializeAws_queryPredictiveScalingMetricSpecification = (input, context)
5717
5822
  entries[loc] = value;
5718
5823
  });
5719
5824
  }
5825
+ if (input.CustomizedScalingMetricSpecification !== undefined && input.CustomizedScalingMetricSpecification !== null) {
5826
+ const memberEntries = serializeAws_queryPredictiveScalingCustomizedScalingMetric(input.CustomizedScalingMetricSpecification, context);
5827
+ Object.entries(memberEntries).forEach(([key, value]) => {
5828
+ const loc = `CustomizedScalingMetricSpecification.${key}`;
5829
+ entries[loc] = value;
5830
+ });
5831
+ }
5832
+ if (input.CustomizedLoadMetricSpecification !== undefined && input.CustomizedLoadMetricSpecification !== null) {
5833
+ const memberEntries = serializeAws_queryPredictiveScalingCustomizedLoadMetric(input.CustomizedLoadMetricSpecification, context);
5834
+ Object.entries(memberEntries).forEach(([key, value]) => {
5835
+ const loc = `CustomizedLoadMetricSpecification.${key}`;
5836
+ entries[loc] = value;
5837
+ });
5838
+ }
5839
+ if (input.CustomizedCapacityMetricSpecification !== undefined &&
5840
+ input.CustomizedCapacityMetricSpecification !== null) {
5841
+ const memberEntries = serializeAws_queryPredictiveScalingCustomizedCapacityMetric(input.CustomizedCapacityMetricSpecification, context);
5842
+ Object.entries(memberEntries).forEach(([key, value]) => {
5843
+ const loc = `CustomizedCapacityMetricSpecification.${key}`;
5844
+ entries[loc] = value;
5845
+ });
5846
+ }
5720
5847
  return entries;
5721
5848
  };
5722
5849
  const serializeAws_queryPredictiveScalingMetricSpecifications = (input, context) => {
@@ -8059,6 +8186,26 @@ const deserializeAws_queryMemoryMiBRequest = (output, context) => {
8059
8186
  }
8060
8187
  return contents;
8061
8188
  };
8189
+ const deserializeAws_queryMetric = (output, context) => {
8190
+ const contents = {
8191
+ Namespace: undefined,
8192
+ MetricName: undefined,
8193
+ Dimensions: undefined,
8194
+ };
8195
+ if (output["Namespace"] !== undefined) {
8196
+ contents.Namespace = smithy_client_1.expectString(output["Namespace"]);
8197
+ }
8198
+ if (output["MetricName"] !== undefined) {
8199
+ contents.MetricName = smithy_client_1.expectString(output["MetricName"]);
8200
+ }
8201
+ if (output.Dimensions === "") {
8202
+ contents.Dimensions = [];
8203
+ }
8204
+ if (output["Dimensions"] !== undefined && output["Dimensions"]["member"] !== undefined) {
8205
+ contents.Dimensions = deserializeAws_queryMetricDimensions(smithy_client_1.getArrayIfSingleItem(output["Dimensions"]["member"]), context);
8206
+ }
8207
+ return contents;
8208
+ };
8062
8209
  const deserializeAws_queryMetricCollectionType = (output, context) => {
8063
8210
  const contents = {
8064
8211
  Metric: undefined,
@@ -8078,6 +8225,41 @@ const deserializeAws_queryMetricCollectionTypes = (output, context) => {
8078
8225
  return deserializeAws_queryMetricCollectionType(entry, context);
8079
8226
  });
8080
8227
  };
8228
+ const deserializeAws_queryMetricDataQueries = (output, context) => {
8229
+ return (output || [])
8230
+ .filter((e) => e != null)
8231
+ .map((entry) => {
8232
+ if (entry === null) {
8233
+ return null;
8234
+ }
8235
+ return deserializeAws_queryMetricDataQuery(entry, context);
8236
+ });
8237
+ };
8238
+ const deserializeAws_queryMetricDataQuery = (output, context) => {
8239
+ const contents = {
8240
+ Id: undefined,
8241
+ Expression: undefined,
8242
+ MetricStat: undefined,
8243
+ Label: undefined,
8244
+ ReturnData: undefined,
8245
+ };
8246
+ if (output["Id"] !== undefined) {
8247
+ contents.Id = smithy_client_1.expectString(output["Id"]);
8248
+ }
8249
+ if (output["Expression"] !== undefined) {
8250
+ contents.Expression = smithy_client_1.expectString(output["Expression"]);
8251
+ }
8252
+ if (output["MetricStat"] !== undefined) {
8253
+ contents.MetricStat = deserializeAws_queryMetricStat(output["MetricStat"], context);
8254
+ }
8255
+ if (output["Label"] !== undefined) {
8256
+ contents.Label = smithy_client_1.expectString(output["Label"]);
8257
+ }
8258
+ if (output["ReturnData"] !== undefined) {
8259
+ contents.ReturnData = smithy_client_1.parseBoolean(output["ReturnData"]);
8260
+ }
8261
+ return contents;
8262
+ };
8081
8263
  const deserializeAws_queryMetricDimension = (output, context) => {
8082
8264
  const contents = {
8083
8265
  Name: undefined,
@@ -8120,6 +8302,23 @@ const deserializeAws_queryMetricGranularityTypes = (output, context) => {
8120
8302
  return deserializeAws_queryMetricGranularityType(entry, context);
8121
8303
  });
8122
8304
  };
8305
+ const deserializeAws_queryMetricStat = (output, context) => {
8306
+ const contents = {
8307
+ Metric: undefined,
8308
+ Stat: undefined,
8309
+ Unit: undefined,
8310
+ };
8311
+ if (output["Metric"] !== undefined) {
8312
+ contents.Metric = deserializeAws_queryMetric(output["Metric"], context);
8313
+ }
8314
+ if (output["Stat"] !== undefined) {
8315
+ contents.Stat = smithy_client_1.expectString(output["Stat"]);
8316
+ }
8317
+ if (output["Unit"] !== undefined) {
8318
+ contents.Unit = smithy_client_1.expectString(output["Unit"]);
8319
+ }
8320
+ return contents;
8321
+ };
8123
8322
  const deserializeAws_queryMixedInstancesPolicy = (output, context) => {
8124
8323
  const contents = {
8125
8324
  LaunchTemplate: undefined,
@@ -8256,6 +8455,42 @@ const deserializeAws_queryPredictiveScalingConfiguration = (output, context) =>
8256
8455
  }
8257
8456
  return contents;
8258
8457
  };
8458
+ const deserializeAws_queryPredictiveScalingCustomizedCapacityMetric = (output, context) => {
8459
+ const contents = {
8460
+ MetricDataQueries: undefined,
8461
+ };
8462
+ if (output.MetricDataQueries === "") {
8463
+ contents.MetricDataQueries = [];
8464
+ }
8465
+ if (output["MetricDataQueries"] !== undefined && output["MetricDataQueries"]["member"] !== undefined) {
8466
+ contents.MetricDataQueries = deserializeAws_queryMetricDataQueries(smithy_client_1.getArrayIfSingleItem(output["MetricDataQueries"]["member"]), context);
8467
+ }
8468
+ return contents;
8469
+ };
8470
+ const deserializeAws_queryPredictiveScalingCustomizedLoadMetric = (output, context) => {
8471
+ const contents = {
8472
+ MetricDataQueries: undefined,
8473
+ };
8474
+ if (output.MetricDataQueries === "") {
8475
+ contents.MetricDataQueries = [];
8476
+ }
8477
+ if (output["MetricDataQueries"] !== undefined && output["MetricDataQueries"]["member"] !== undefined) {
8478
+ contents.MetricDataQueries = deserializeAws_queryMetricDataQueries(smithy_client_1.getArrayIfSingleItem(output["MetricDataQueries"]["member"]), context);
8479
+ }
8480
+ return contents;
8481
+ };
8482
+ const deserializeAws_queryPredictiveScalingCustomizedScalingMetric = (output, context) => {
8483
+ const contents = {
8484
+ MetricDataQueries: undefined,
8485
+ };
8486
+ if (output.MetricDataQueries === "") {
8487
+ contents.MetricDataQueries = [];
8488
+ }
8489
+ if (output["MetricDataQueries"] !== undefined && output["MetricDataQueries"]["member"] !== undefined) {
8490
+ contents.MetricDataQueries = deserializeAws_queryMetricDataQueries(smithy_client_1.getArrayIfSingleItem(output["MetricDataQueries"]["member"]), context);
8491
+ }
8492
+ return contents;
8493
+ };
8259
8494
  const deserializeAws_queryPredictiveScalingForecastTimestamps = (output, context) => {
8260
8495
  return (output || [])
8261
8496
  .filter((e) => e != null)
@@ -8282,6 +8517,9 @@ const deserializeAws_queryPredictiveScalingMetricSpecification = (output, contex
8282
8517
  PredefinedMetricPairSpecification: undefined,
8283
8518
  PredefinedScalingMetricSpecification: undefined,
8284
8519
  PredefinedLoadMetricSpecification: undefined,
8520
+ CustomizedScalingMetricSpecification: undefined,
8521
+ CustomizedLoadMetricSpecification: undefined,
8522
+ CustomizedCapacityMetricSpecification: undefined,
8285
8523
  };
8286
8524
  if (output["TargetValue"] !== undefined) {
8287
8525
  contents.TargetValue = smithy_client_1.strictParseFloat(output["TargetValue"]);
@@ -8295,6 +8533,15 @@ const deserializeAws_queryPredictiveScalingMetricSpecification = (output, contex
8295
8533
  if (output["PredefinedLoadMetricSpecification"] !== undefined) {
8296
8534
  contents.PredefinedLoadMetricSpecification = deserializeAws_queryPredictiveScalingPredefinedLoadMetric(output["PredefinedLoadMetricSpecification"], context);
8297
8535
  }
8536
+ if (output["CustomizedScalingMetricSpecification"] !== undefined) {
8537
+ contents.CustomizedScalingMetricSpecification = deserializeAws_queryPredictiveScalingCustomizedScalingMetric(output["CustomizedScalingMetricSpecification"], context);
8538
+ }
8539
+ if (output["CustomizedLoadMetricSpecification"] !== undefined) {
8540
+ contents.CustomizedLoadMetricSpecification = deserializeAws_queryPredictiveScalingCustomizedLoadMetric(output["CustomizedLoadMetricSpecification"], context);
8541
+ }
8542
+ if (output["CustomizedCapacityMetricSpecification"] !== undefined) {
8543
+ contents.CustomizedCapacityMetricSpecification = deserializeAws_queryPredictiveScalingCustomizedCapacityMetric(output["CustomizedCapacityMetricSpecification"], context);
8544
+ }
8298
8545
  return contents;
8299
8546
  };
8300
8547
  const deserializeAws_queryPredictiveScalingMetricSpecifications = (output, context) => {
@@ -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)),
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
19
20
  const getRuntimeConfig = (config) => {
20
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
25
  return {
24
26
  ...clientSharedValues,
25
27
  ...config,
26
28
  runtime: "node",
29
+ defaultsMode,
27
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
28
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
29
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
31
34
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
35
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
33
36
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
34
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
35
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
37
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
39
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
+ }),
36
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
44
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
@@ -12,6 +12,7 @@ var partitionHash = {
12
12
  "ap-south-1",
13
13
  "ap-southeast-1",
14
14
  "ap-southeast-2",
15
+ "ap-southeast-3",
15
16
  "ca-central-1",
16
17
  "eu-central-1",
17
18
  "eu-north-1",