@aws-sdk/client-auto-scaling 3.41.0 → 3.46.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 +47 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +44 -8
- package/dist-cjs/protocols/Aws_query.js +247 -0
- package/dist-cjs/runtimeConfig.js +0 -2
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +28 -4
- package/dist-es/protocols/Aws_query.js +355 -87
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-types/AutoScaling.d.ts +25 -20
- package/dist-types/commands/AttachLoadBalancerTargetGroupsCommand.d.ts +2 -0
- package/dist-types/commands/AttachLoadBalancersCommand.d.ts +2 -0
- package/dist-types/commands/CompleteLifecycleActionCommand.d.ts +6 -5
- package/dist-types/commands/PutLifecycleHookCommand.d.ts +8 -8
- package/dist-types/commands/RecordLifecycleActionHeartbeatCommand.d.ts +5 -6
- package/dist-types/commands/SetInstanceProtectionCommand.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +273 -100
- package/dist-types/ts3.4/models/models_0.d.ts +87 -11
- package/package.json +37 -44
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,53 @@
|
|
|
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.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **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))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **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))
|
|
17
|
+
* 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))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* **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))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
|
|
39
|
+
* **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))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
46
|
+
|
|
47
|
+
**Note:** Version bump only for package @aws-sdk/client-auto-scaling
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
6
53
|
# [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
|
|
7
54
|
|
|
8
55
|
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
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
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.
|
|
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;
|
|
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;
|
|
7
7
|
var AcceleratorCountRequest;
|
|
8
8
|
(function (AcceleratorCountRequest) {
|
|
9
9
|
AcceleratorCountRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -758,6 +758,48 @@ var PredictiveScalingMaxCapacityBreachBehavior;
|
|
|
758
758
|
PredictiveScalingMaxCapacityBreachBehavior["HonorMaxCapacity"] = "HonorMaxCapacity";
|
|
759
759
|
PredictiveScalingMaxCapacityBreachBehavior["IncreaseMaxCapacity"] = "IncreaseMaxCapacity";
|
|
760
760
|
})(PredictiveScalingMaxCapacityBreachBehavior = exports.PredictiveScalingMaxCapacityBreachBehavior || (exports.PredictiveScalingMaxCapacityBreachBehavior = {}));
|
|
761
|
+
var MetricDimension;
|
|
762
|
+
(function (MetricDimension) {
|
|
763
|
+
MetricDimension.filterSensitiveLog = (obj) => ({
|
|
764
|
+
...obj,
|
|
765
|
+
});
|
|
766
|
+
})(MetricDimension = exports.MetricDimension || (exports.MetricDimension = {}));
|
|
767
|
+
var Metric;
|
|
768
|
+
(function (Metric) {
|
|
769
|
+
Metric.filterSensitiveLog = (obj) => ({
|
|
770
|
+
...obj,
|
|
771
|
+
});
|
|
772
|
+
})(Metric = exports.Metric || (exports.Metric = {}));
|
|
773
|
+
var MetricStat;
|
|
774
|
+
(function (MetricStat) {
|
|
775
|
+
MetricStat.filterSensitiveLog = (obj) => ({
|
|
776
|
+
...obj,
|
|
777
|
+
});
|
|
778
|
+
})(MetricStat = exports.MetricStat || (exports.MetricStat = {}));
|
|
779
|
+
var MetricDataQuery;
|
|
780
|
+
(function (MetricDataQuery) {
|
|
781
|
+
MetricDataQuery.filterSensitiveLog = (obj) => ({
|
|
782
|
+
...obj,
|
|
783
|
+
});
|
|
784
|
+
})(MetricDataQuery = exports.MetricDataQuery || (exports.MetricDataQuery = {}));
|
|
785
|
+
var PredictiveScalingCustomizedCapacityMetric;
|
|
786
|
+
(function (PredictiveScalingCustomizedCapacityMetric) {
|
|
787
|
+
PredictiveScalingCustomizedCapacityMetric.filterSensitiveLog = (obj) => ({
|
|
788
|
+
...obj,
|
|
789
|
+
});
|
|
790
|
+
})(PredictiveScalingCustomizedCapacityMetric = exports.PredictiveScalingCustomizedCapacityMetric || (exports.PredictiveScalingCustomizedCapacityMetric = {}));
|
|
791
|
+
var PredictiveScalingCustomizedLoadMetric;
|
|
792
|
+
(function (PredictiveScalingCustomizedLoadMetric) {
|
|
793
|
+
PredictiveScalingCustomizedLoadMetric.filterSensitiveLog = (obj) => ({
|
|
794
|
+
...obj,
|
|
795
|
+
});
|
|
796
|
+
})(PredictiveScalingCustomizedLoadMetric = exports.PredictiveScalingCustomizedLoadMetric || (exports.PredictiveScalingCustomizedLoadMetric = {}));
|
|
797
|
+
var PredictiveScalingCustomizedScalingMetric;
|
|
798
|
+
(function (PredictiveScalingCustomizedScalingMetric) {
|
|
799
|
+
PredictiveScalingCustomizedScalingMetric.filterSensitiveLog = (obj) => ({
|
|
800
|
+
...obj,
|
|
801
|
+
});
|
|
802
|
+
})(PredictiveScalingCustomizedScalingMetric = exports.PredictiveScalingCustomizedScalingMetric || (exports.PredictiveScalingCustomizedScalingMetric = {}));
|
|
761
803
|
var PredefinedLoadMetricType;
|
|
762
804
|
(function (PredefinedLoadMetricType) {
|
|
763
805
|
PredefinedLoadMetricType["ALBTargetGroupRequestCount"] = "ALBTargetGroupRequestCount";
|
|
@@ -820,12 +862,6 @@ var StepAdjustment;
|
|
|
820
862
|
...obj,
|
|
821
863
|
});
|
|
822
864
|
})(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
865
|
var MetricStatistic;
|
|
830
866
|
(function (MetricStatistic) {
|
|
831
867
|
MetricStatistic["Average"] = "Average";
|
|
@@ -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) => {
|
|
@@ -15,10 +15,8 @@ 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
18
|
const getRuntimeConfig = (config) => {
|
|
20
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
22
20
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
21
|
return {
|
|
24
22
|
...clientSharedValues,
|
package/dist-es/endpoints.js
CHANGED
|
@@ -545,6 +545,34 @@ export var PredictiveScalingMaxCapacityBreachBehavior;
|
|
|
545
545
|
PredictiveScalingMaxCapacityBreachBehavior["HonorMaxCapacity"] = "HonorMaxCapacity";
|
|
546
546
|
PredictiveScalingMaxCapacityBreachBehavior["IncreaseMaxCapacity"] = "IncreaseMaxCapacity";
|
|
547
547
|
})(PredictiveScalingMaxCapacityBreachBehavior || (PredictiveScalingMaxCapacityBreachBehavior = {}));
|
|
548
|
+
export var MetricDimension;
|
|
549
|
+
(function (MetricDimension) {
|
|
550
|
+
MetricDimension.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
551
|
+
})(MetricDimension || (MetricDimension = {}));
|
|
552
|
+
export var Metric;
|
|
553
|
+
(function (Metric) {
|
|
554
|
+
Metric.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
555
|
+
})(Metric || (Metric = {}));
|
|
556
|
+
export var MetricStat;
|
|
557
|
+
(function (MetricStat) {
|
|
558
|
+
MetricStat.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
559
|
+
})(MetricStat || (MetricStat = {}));
|
|
560
|
+
export var MetricDataQuery;
|
|
561
|
+
(function (MetricDataQuery) {
|
|
562
|
+
MetricDataQuery.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
563
|
+
})(MetricDataQuery || (MetricDataQuery = {}));
|
|
564
|
+
export var PredictiveScalingCustomizedCapacityMetric;
|
|
565
|
+
(function (PredictiveScalingCustomizedCapacityMetric) {
|
|
566
|
+
PredictiveScalingCustomizedCapacityMetric.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
567
|
+
})(PredictiveScalingCustomizedCapacityMetric || (PredictiveScalingCustomizedCapacityMetric = {}));
|
|
568
|
+
export var PredictiveScalingCustomizedLoadMetric;
|
|
569
|
+
(function (PredictiveScalingCustomizedLoadMetric) {
|
|
570
|
+
PredictiveScalingCustomizedLoadMetric.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
571
|
+
})(PredictiveScalingCustomizedLoadMetric || (PredictiveScalingCustomizedLoadMetric = {}));
|
|
572
|
+
export var PredictiveScalingCustomizedScalingMetric;
|
|
573
|
+
(function (PredictiveScalingCustomizedScalingMetric) {
|
|
574
|
+
PredictiveScalingCustomizedScalingMetric.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
575
|
+
})(PredictiveScalingCustomizedScalingMetric || (PredictiveScalingCustomizedScalingMetric = {}));
|
|
548
576
|
export var PredefinedLoadMetricType;
|
|
549
577
|
(function (PredefinedLoadMetricType) {
|
|
550
578
|
PredefinedLoadMetricType["ALBTargetGroupRequestCount"] = "ALBTargetGroupRequestCount";
|
|
@@ -595,10 +623,6 @@ export var StepAdjustment;
|
|
|
595
623
|
(function (StepAdjustment) {
|
|
596
624
|
StepAdjustment.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
597
625
|
})(StepAdjustment || (StepAdjustment = {}));
|
|
598
|
-
export var MetricDimension;
|
|
599
|
-
(function (MetricDimension) {
|
|
600
|
-
MetricDimension.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
601
|
-
})(MetricDimension || (MetricDimension = {}));
|
|
602
626
|
export var MetricStatistic;
|
|
603
627
|
(function (MetricStatistic) {
|
|
604
628
|
MetricStatistic["Average"] = "Average";
|