@aws-sdk/client-application-auto-scaling 3.121.0 → 3.127.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 +8 -0
- package/dist-cjs/protocols/Aws_json1_1.js +105 -171
- package/dist-es/protocols/Aws_json1_1.js +48 -114
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-application-auto-scaling
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
15
|
|
|
8
16
|
|
|
@@ -642,103 +642,84 @@ const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, c
|
|
|
642
642
|
};
|
|
643
643
|
const serializeAws_json1_1CustomizedMetricSpecification = (input, context) => {
|
|
644
644
|
return {
|
|
645
|
-
...(input.Dimensions
|
|
646
|
-
|
|
647
|
-
...(input.
|
|
648
|
-
...(input.
|
|
649
|
-
...(input.
|
|
650
|
-
...(input.Unit !== undefined && input.Unit !== null && { Unit: input.Unit }),
|
|
645
|
+
...(input.Dimensions != null && { Dimensions: serializeAws_json1_1MetricDimensions(input.Dimensions, context) }),
|
|
646
|
+
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
647
|
+
...(input.Namespace != null && { Namespace: input.Namespace }),
|
|
648
|
+
...(input.Statistic != null && { Statistic: input.Statistic }),
|
|
649
|
+
...(input.Unit != null && { Unit: input.Unit }),
|
|
651
650
|
};
|
|
652
651
|
};
|
|
653
652
|
const serializeAws_json1_1DeleteScalingPolicyRequest = (input, context) => {
|
|
654
653
|
return {
|
|
655
|
-
...(input.PolicyName
|
|
656
|
-
...(input.ResourceId
|
|
657
|
-
...(input.ScalableDimension
|
|
658
|
-
|
|
659
|
-
...(input.ServiceNamespace !== undefined &&
|
|
660
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }),
|
|
654
|
+
...(input.PolicyName != null && { PolicyName: input.PolicyName }),
|
|
655
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
656
|
+
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
657
|
+
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
661
658
|
};
|
|
662
659
|
};
|
|
663
660
|
const serializeAws_json1_1DeleteScheduledActionRequest = (input, context) => {
|
|
664
661
|
return {
|
|
665
|
-
...(input.ResourceId
|
|
666
|
-
...(input.ScalableDimension
|
|
667
|
-
|
|
668
|
-
...(input.
|
|
669
|
-
input.ScheduledActionName !== null && { ScheduledActionName: input.ScheduledActionName }),
|
|
670
|
-
...(input.ServiceNamespace !== undefined &&
|
|
671
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }),
|
|
662
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
663
|
+
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
664
|
+
...(input.ScheduledActionName != null && { ScheduledActionName: input.ScheduledActionName }),
|
|
665
|
+
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
672
666
|
};
|
|
673
667
|
};
|
|
674
668
|
const serializeAws_json1_1DeregisterScalableTargetRequest = (input, context) => {
|
|
675
669
|
return {
|
|
676
|
-
...(input.ResourceId
|
|
677
|
-
...(input.ScalableDimension
|
|
678
|
-
|
|
679
|
-
...(input.ServiceNamespace !== undefined &&
|
|
680
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }),
|
|
670
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
671
|
+
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
672
|
+
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
681
673
|
};
|
|
682
674
|
};
|
|
683
675
|
const serializeAws_json1_1DescribeScalableTargetsRequest = (input, context) => {
|
|
684
676
|
return {
|
|
685
|
-
...(input.MaxResults
|
|
686
|
-
...(input.NextToken
|
|
687
|
-
...(input.ResourceIds
|
|
688
|
-
input.ResourceIds !== null && {
|
|
677
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
678
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
679
|
+
...(input.ResourceIds != null && {
|
|
689
680
|
ResourceIds: serializeAws_json1_1ResourceIdsMaxLen1600(input.ResourceIds, context),
|
|
690
681
|
}),
|
|
691
|
-
...(input.ScalableDimension
|
|
692
|
-
|
|
693
|
-
...(input.ServiceNamespace !== undefined &&
|
|
694
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }),
|
|
682
|
+
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
683
|
+
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
695
684
|
};
|
|
696
685
|
};
|
|
697
686
|
const serializeAws_json1_1DescribeScalingActivitiesRequest = (input, context) => {
|
|
698
687
|
return {
|
|
699
|
-
...(input.MaxResults
|
|
700
|
-
...(input.NextToken
|
|
701
|
-
...(input.ResourceId
|
|
702
|
-
...(input.ScalableDimension
|
|
703
|
-
|
|
704
|
-
...(input.ServiceNamespace !== undefined &&
|
|
705
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }),
|
|
688
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
689
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
690
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
691
|
+
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
692
|
+
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
706
693
|
};
|
|
707
694
|
};
|
|
708
695
|
const serializeAws_json1_1DescribeScalingPoliciesRequest = (input, context) => {
|
|
709
696
|
return {
|
|
710
|
-
...(input.MaxResults
|
|
711
|
-
...(input.NextToken
|
|
712
|
-
...(input.PolicyNames
|
|
713
|
-
input.PolicyNames !== null && {
|
|
697
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
698
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
699
|
+
...(input.PolicyNames != null && {
|
|
714
700
|
PolicyNames: serializeAws_json1_1ResourceIdsMaxLen1600(input.PolicyNames, context),
|
|
715
701
|
}),
|
|
716
|
-
...(input.ResourceId
|
|
717
|
-
...(input.ScalableDimension
|
|
718
|
-
|
|
719
|
-
...(input.ServiceNamespace !== undefined &&
|
|
720
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }),
|
|
702
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
703
|
+
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
704
|
+
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
721
705
|
};
|
|
722
706
|
};
|
|
723
707
|
const serializeAws_json1_1DescribeScheduledActionsRequest = (input, context) => {
|
|
724
708
|
return {
|
|
725
|
-
...(input.MaxResults
|
|
726
|
-
...(input.NextToken
|
|
727
|
-
...(input.ResourceId
|
|
728
|
-
...(input.ScalableDimension
|
|
729
|
-
|
|
730
|
-
...(input.ScheduledActionNames !== undefined &&
|
|
731
|
-
input.ScheduledActionNames !== null && {
|
|
709
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
710
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
711
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
712
|
+
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
713
|
+
...(input.ScheduledActionNames != null && {
|
|
732
714
|
ScheduledActionNames: serializeAws_json1_1ResourceIdsMaxLen1600(input.ScheduledActionNames, context),
|
|
733
715
|
}),
|
|
734
|
-
...(input.ServiceNamespace
|
|
735
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }),
|
|
716
|
+
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
736
717
|
};
|
|
737
718
|
};
|
|
738
719
|
const serializeAws_json1_1MetricDimension = (input, context) => {
|
|
739
720
|
return {
|
|
740
|
-
...(input.Name
|
|
741
|
-
...(input.Value
|
|
721
|
+
...(input.Name != null && { Name: input.Name }),
|
|
722
|
+
...(input.Value != null && { Value: input.Value }),
|
|
742
723
|
};
|
|
743
724
|
};
|
|
744
725
|
const serializeAws_json1_1MetricDimensions = (input, context) => {
|
|
@@ -753,63 +734,49 @@ const serializeAws_json1_1MetricDimensions = (input, context) => {
|
|
|
753
734
|
};
|
|
754
735
|
const serializeAws_json1_1PredefinedMetricSpecification = (input, context) => {
|
|
755
736
|
return {
|
|
756
|
-
...(input.PredefinedMetricType
|
|
757
|
-
|
|
758
|
-
...(input.ResourceLabel !== undefined && input.ResourceLabel !== null && { ResourceLabel: input.ResourceLabel }),
|
|
737
|
+
...(input.PredefinedMetricType != null && { PredefinedMetricType: input.PredefinedMetricType }),
|
|
738
|
+
...(input.ResourceLabel != null && { ResourceLabel: input.ResourceLabel }),
|
|
759
739
|
};
|
|
760
740
|
};
|
|
761
741
|
const serializeAws_json1_1PutScalingPolicyRequest = (input, context) => {
|
|
762
742
|
return {
|
|
763
|
-
...(input.PolicyName
|
|
764
|
-
...(input.PolicyType
|
|
765
|
-
...(input.ResourceId
|
|
766
|
-
...(input.ScalableDimension
|
|
767
|
-
|
|
768
|
-
...(input.
|
|
769
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }),
|
|
770
|
-
...(input.StepScalingPolicyConfiguration !== undefined &&
|
|
771
|
-
input.StepScalingPolicyConfiguration !== null && {
|
|
743
|
+
...(input.PolicyName != null && { PolicyName: input.PolicyName }),
|
|
744
|
+
...(input.PolicyType != null && { PolicyType: input.PolicyType }),
|
|
745
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
746
|
+
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
747
|
+
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
748
|
+
...(input.StepScalingPolicyConfiguration != null && {
|
|
772
749
|
StepScalingPolicyConfiguration: serializeAws_json1_1StepScalingPolicyConfiguration(input.StepScalingPolicyConfiguration, context),
|
|
773
750
|
}),
|
|
774
|
-
...(input.TargetTrackingScalingPolicyConfiguration
|
|
775
|
-
input.TargetTrackingScalingPolicyConfiguration !== null && {
|
|
751
|
+
...(input.TargetTrackingScalingPolicyConfiguration != null && {
|
|
776
752
|
TargetTrackingScalingPolicyConfiguration: serializeAws_json1_1TargetTrackingScalingPolicyConfiguration(input.TargetTrackingScalingPolicyConfiguration, context),
|
|
777
753
|
}),
|
|
778
754
|
};
|
|
779
755
|
};
|
|
780
756
|
const serializeAws_json1_1PutScheduledActionRequest = (input, context) => {
|
|
781
757
|
return {
|
|
782
|
-
...(input.EndTime
|
|
783
|
-
|
|
784
|
-
...(input.
|
|
785
|
-
...(input.
|
|
786
|
-
input.ScalableDimension !== null && { ScalableDimension: input.ScalableDimension }),
|
|
787
|
-
...(input.ScalableTargetAction !== undefined &&
|
|
788
|
-
input.ScalableTargetAction !== null && {
|
|
758
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
759
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
760
|
+
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
761
|
+
...(input.ScalableTargetAction != null && {
|
|
789
762
|
ScalableTargetAction: serializeAws_json1_1ScalableTargetAction(input.ScalableTargetAction, context),
|
|
790
763
|
}),
|
|
791
|
-
...(input.Schedule
|
|
792
|
-
...(input.ScheduledActionName
|
|
793
|
-
|
|
794
|
-
...(input.
|
|
795
|
-
|
|
796
|
-
...(input.StartTime !== undefined &&
|
|
797
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
798
|
-
...(input.Timezone !== undefined && input.Timezone !== null && { Timezone: input.Timezone }),
|
|
764
|
+
...(input.Schedule != null && { Schedule: input.Schedule }),
|
|
765
|
+
...(input.ScheduledActionName != null && { ScheduledActionName: input.ScheduledActionName }),
|
|
766
|
+
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
767
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
768
|
+
...(input.Timezone != null && { Timezone: input.Timezone }),
|
|
799
769
|
};
|
|
800
770
|
};
|
|
801
771
|
const serializeAws_json1_1RegisterScalableTargetRequest = (input, context) => {
|
|
802
772
|
return {
|
|
803
|
-
...(input.MaxCapacity
|
|
804
|
-
...(input.MinCapacity
|
|
805
|
-
...(input.ResourceId
|
|
806
|
-
...(input.RoleARN
|
|
807
|
-
...(input.ScalableDimension
|
|
808
|
-
|
|
809
|
-
...(input.
|
|
810
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }),
|
|
811
|
-
...(input.SuspendedState !== undefined &&
|
|
812
|
-
input.SuspendedState !== null && {
|
|
773
|
+
...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
|
|
774
|
+
...(input.MinCapacity != null && { MinCapacity: input.MinCapacity }),
|
|
775
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
776
|
+
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
777
|
+
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
778
|
+
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
779
|
+
...(input.SuspendedState != null && {
|
|
813
780
|
SuspendedState: serializeAws_json1_1SuspendedState(input.SuspendedState, context),
|
|
814
781
|
}),
|
|
815
782
|
};
|
|
@@ -826,22 +793,19 @@ const serializeAws_json1_1ResourceIdsMaxLen1600 = (input, context) => {
|
|
|
826
793
|
};
|
|
827
794
|
const serializeAws_json1_1ScalableTargetAction = (input, context) => {
|
|
828
795
|
return {
|
|
829
|
-
...(input.MaxCapacity
|
|
830
|
-
...(input.MinCapacity
|
|
796
|
+
...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
|
|
797
|
+
...(input.MinCapacity != null && { MinCapacity: input.MinCapacity }),
|
|
831
798
|
};
|
|
832
799
|
};
|
|
833
800
|
const serializeAws_json1_1StepAdjustment = (input, context) => {
|
|
834
801
|
return {
|
|
835
|
-
...(input.MetricIntervalLowerBound
|
|
836
|
-
input.MetricIntervalLowerBound !== null && {
|
|
802
|
+
...(input.MetricIntervalLowerBound != null && {
|
|
837
803
|
MetricIntervalLowerBound: (0, smithy_client_1.serializeFloat)(input.MetricIntervalLowerBound),
|
|
838
804
|
}),
|
|
839
|
-
...(input.MetricIntervalUpperBound
|
|
840
|
-
input.MetricIntervalUpperBound !== null && {
|
|
805
|
+
...(input.MetricIntervalUpperBound != null && {
|
|
841
806
|
MetricIntervalUpperBound: (0, smithy_client_1.serializeFloat)(input.MetricIntervalUpperBound),
|
|
842
807
|
}),
|
|
843
|
-
...(input.ScalingAdjustment
|
|
844
|
-
input.ScalingAdjustment !== null && { ScalingAdjustment: input.ScalingAdjustment }),
|
|
808
|
+
...(input.ScalingAdjustment != null && { ScalingAdjustment: input.ScalingAdjustment }),
|
|
845
809
|
};
|
|
846
810
|
};
|
|
847
811
|
const serializeAws_json1_1StepAdjustments = (input, context) => {
|
|
@@ -856,47 +820,34 @@ const serializeAws_json1_1StepAdjustments = (input, context) => {
|
|
|
856
820
|
};
|
|
857
821
|
const serializeAws_json1_1StepScalingPolicyConfiguration = (input, context) => {
|
|
858
822
|
return {
|
|
859
|
-
...(input.AdjustmentType
|
|
860
|
-
|
|
861
|
-
...(input.
|
|
862
|
-
...(input.
|
|
863
|
-
|
|
864
|
-
...(input.MinAdjustmentMagnitude !== undefined &&
|
|
865
|
-
input.MinAdjustmentMagnitude !== null && { MinAdjustmentMagnitude: input.MinAdjustmentMagnitude }),
|
|
866
|
-
...(input.StepAdjustments !== undefined &&
|
|
867
|
-
input.StepAdjustments !== null && {
|
|
823
|
+
...(input.AdjustmentType != null && { AdjustmentType: input.AdjustmentType }),
|
|
824
|
+
...(input.Cooldown != null && { Cooldown: input.Cooldown }),
|
|
825
|
+
...(input.MetricAggregationType != null && { MetricAggregationType: input.MetricAggregationType }),
|
|
826
|
+
...(input.MinAdjustmentMagnitude != null && { MinAdjustmentMagnitude: input.MinAdjustmentMagnitude }),
|
|
827
|
+
...(input.StepAdjustments != null && {
|
|
868
828
|
StepAdjustments: serializeAws_json1_1StepAdjustments(input.StepAdjustments, context),
|
|
869
829
|
}),
|
|
870
830
|
};
|
|
871
831
|
};
|
|
872
832
|
const serializeAws_json1_1SuspendedState = (input, context) => {
|
|
873
833
|
return {
|
|
874
|
-
...(input.DynamicScalingInSuspended
|
|
875
|
-
|
|
876
|
-
...(input.
|
|
877
|
-
input.DynamicScalingOutSuspended !== null && { DynamicScalingOutSuspended: input.DynamicScalingOutSuspended }),
|
|
878
|
-
...(input.ScheduledScalingSuspended !== undefined &&
|
|
879
|
-
input.ScheduledScalingSuspended !== null && { ScheduledScalingSuspended: input.ScheduledScalingSuspended }),
|
|
834
|
+
...(input.DynamicScalingInSuspended != null && { DynamicScalingInSuspended: input.DynamicScalingInSuspended }),
|
|
835
|
+
...(input.DynamicScalingOutSuspended != null && { DynamicScalingOutSuspended: input.DynamicScalingOutSuspended }),
|
|
836
|
+
...(input.ScheduledScalingSuspended != null && { ScheduledScalingSuspended: input.ScheduledScalingSuspended }),
|
|
880
837
|
};
|
|
881
838
|
};
|
|
882
839
|
const serializeAws_json1_1TargetTrackingScalingPolicyConfiguration = (input, context) => {
|
|
883
840
|
return {
|
|
884
|
-
...(input.CustomizedMetricSpecification
|
|
885
|
-
input.CustomizedMetricSpecification !== null && {
|
|
841
|
+
...(input.CustomizedMetricSpecification != null && {
|
|
886
842
|
CustomizedMetricSpecification: serializeAws_json1_1CustomizedMetricSpecification(input.CustomizedMetricSpecification, context),
|
|
887
843
|
}),
|
|
888
|
-
...(input.DisableScaleIn
|
|
889
|
-
|
|
890
|
-
...(input.PredefinedMetricSpecification !== undefined &&
|
|
891
|
-
input.PredefinedMetricSpecification !== null && {
|
|
844
|
+
...(input.DisableScaleIn != null && { DisableScaleIn: input.DisableScaleIn }),
|
|
845
|
+
...(input.PredefinedMetricSpecification != null && {
|
|
892
846
|
PredefinedMetricSpecification: serializeAws_json1_1PredefinedMetricSpecification(input.PredefinedMetricSpecification, context),
|
|
893
847
|
}),
|
|
894
|
-
...(input.ScaleInCooldown
|
|
895
|
-
|
|
896
|
-
...(input.
|
|
897
|
-
input.ScaleOutCooldown !== null && { ScaleOutCooldown: input.ScaleOutCooldown }),
|
|
898
|
-
...(input.TargetValue !== undefined &&
|
|
899
|
-
input.TargetValue !== null && { TargetValue: (0, smithy_client_1.serializeFloat)(input.TargetValue) }),
|
|
848
|
+
...(input.ScaleInCooldown != null && { ScaleInCooldown: input.ScaleInCooldown }),
|
|
849
|
+
...(input.ScaleOutCooldown != null && { ScaleOutCooldown: input.ScaleOutCooldown }),
|
|
850
|
+
...(input.TargetValue != null && { TargetValue: (0, smithy_client_1.serializeFloat)(input.TargetValue) }),
|
|
900
851
|
};
|
|
901
852
|
};
|
|
902
853
|
const deserializeAws_json1_1Alarm = (output, context) => {
|
|
@@ -923,9 +874,7 @@ const deserializeAws_json1_1ConcurrentUpdateException = (output, context) => {
|
|
|
923
874
|
};
|
|
924
875
|
const deserializeAws_json1_1CustomizedMetricSpecification = (output, context) => {
|
|
925
876
|
return {
|
|
926
|
-
Dimensions: output.Dimensions
|
|
927
|
-
? deserializeAws_json1_1MetricDimensions(output.Dimensions, context)
|
|
928
|
-
: undefined,
|
|
877
|
+
Dimensions: output.Dimensions != null ? deserializeAws_json1_1MetricDimensions(output.Dimensions, context) : undefined,
|
|
929
878
|
MetricName: (0, smithy_client_1.expectString)(output.MetricName),
|
|
930
879
|
Namespace: (0, smithy_client_1.expectString)(output.Namespace),
|
|
931
880
|
Statistic: (0, smithy_client_1.expectString)(output.Statistic),
|
|
@@ -944,7 +893,7 @@ const deserializeAws_json1_1DeregisterScalableTargetResponse = (output, context)
|
|
|
944
893
|
const deserializeAws_json1_1DescribeScalableTargetsResponse = (output, context) => {
|
|
945
894
|
return {
|
|
946
895
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
947
|
-
ScalableTargets: output.ScalableTargets
|
|
896
|
+
ScalableTargets: output.ScalableTargets != null
|
|
948
897
|
? deserializeAws_json1_1ScalableTargets(output.ScalableTargets, context)
|
|
949
898
|
: undefined,
|
|
950
899
|
};
|
|
@@ -952,7 +901,7 @@ const deserializeAws_json1_1DescribeScalableTargetsResponse = (output, context)
|
|
|
952
901
|
const deserializeAws_json1_1DescribeScalingActivitiesResponse = (output, context) => {
|
|
953
902
|
return {
|
|
954
903
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
955
|
-
ScalingActivities: output.ScalingActivities
|
|
904
|
+
ScalingActivities: output.ScalingActivities != null
|
|
956
905
|
? deserializeAws_json1_1ScalingActivities(output.ScalingActivities, context)
|
|
957
906
|
: undefined,
|
|
958
907
|
};
|
|
@@ -960,7 +909,7 @@ const deserializeAws_json1_1DescribeScalingActivitiesResponse = (output, context
|
|
|
960
909
|
const deserializeAws_json1_1DescribeScalingPoliciesResponse = (output, context) => {
|
|
961
910
|
return {
|
|
962
911
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
963
|
-
ScalingPolicies: output.ScalingPolicies
|
|
912
|
+
ScalingPolicies: output.ScalingPolicies != null
|
|
964
913
|
? deserializeAws_json1_1ScalingPolicies(output.ScalingPolicies, context)
|
|
965
914
|
: undefined,
|
|
966
915
|
};
|
|
@@ -968,7 +917,7 @@ const deserializeAws_json1_1DescribeScalingPoliciesResponse = (output, context)
|
|
|
968
917
|
const deserializeAws_json1_1DescribeScheduledActionsResponse = (output, context) => {
|
|
969
918
|
return {
|
|
970
919
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
971
|
-
ScheduledActions: output.ScheduledActions
|
|
920
|
+
ScheduledActions: output.ScheduledActions != null
|
|
972
921
|
? deserializeAws_json1_1ScheduledActions(output.ScheduledActions, context)
|
|
973
922
|
: undefined,
|
|
974
923
|
};
|
|
@@ -1023,9 +972,7 @@ const deserializeAws_json1_1PredefinedMetricSpecification = (output, context) =>
|
|
|
1023
972
|
};
|
|
1024
973
|
const deserializeAws_json1_1PutScalingPolicyResponse = (output, context) => {
|
|
1025
974
|
return {
|
|
1026
|
-
Alarms: output.Alarms
|
|
1027
|
-
? deserializeAws_json1_1Alarms(output.Alarms, context)
|
|
1028
|
-
: undefined,
|
|
975
|
+
Alarms: output.Alarms != null ? deserializeAws_json1_1Alarms(output.Alarms, context) : undefined,
|
|
1029
976
|
PolicyARN: (0, smithy_client_1.expectString)(output.PolicyARN),
|
|
1030
977
|
};
|
|
1031
978
|
};
|
|
@@ -1037,7 +984,7 @@ const deserializeAws_json1_1RegisterScalableTargetResponse = (output, context) =
|
|
|
1037
984
|
};
|
|
1038
985
|
const deserializeAws_json1_1ScalableTarget = (output, context) => {
|
|
1039
986
|
return {
|
|
1040
|
-
CreationTime: output.CreationTime
|
|
987
|
+
CreationTime: output.CreationTime != null
|
|
1041
988
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
1042
989
|
: undefined,
|
|
1043
990
|
MaxCapacity: (0, smithy_client_1.expectInt32)(output.MaxCapacity),
|
|
@@ -1046,9 +993,7 @@ const deserializeAws_json1_1ScalableTarget = (output, context) => {
|
|
|
1046
993
|
RoleARN: (0, smithy_client_1.expectString)(output.RoleARN),
|
|
1047
994
|
ScalableDimension: (0, smithy_client_1.expectString)(output.ScalableDimension),
|
|
1048
995
|
ServiceNamespace: (0, smithy_client_1.expectString)(output.ServiceNamespace),
|
|
1049
|
-
SuspendedState: output.SuspendedState
|
|
1050
|
-
? deserializeAws_json1_1SuspendedState(output.SuspendedState, context)
|
|
1051
|
-
: undefined,
|
|
996
|
+
SuspendedState: output.SuspendedState != null ? deserializeAws_json1_1SuspendedState(output.SuspendedState, context) : undefined,
|
|
1052
997
|
};
|
|
1053
998
|
};
|
|
1054
999
|
const deserializeAws_json1_1ScalableTargetAction = (output, context) => {
|
|
@@ -1085,15 +1030,11 @@ const deserializeAws_json1_1ScalingActivity = (output, context) => {
|
|
|
1085
1030
|
Cause: (0, smithy_client_1.expectString)(output.Cause),
|
|
1086
1031
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
1087
1032
|
Details: (0, smithy_client_1.expectString)(output.Details),
|
|
1088
|
-
EndTime: output.EndTime
|
|
1089
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
|
|
1090
|
-
: undefined,
|
|
1033
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
1091
1034
|
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
1092
1035
|
ScalableDimension: (0, smithy_client_1.expectString)(output.ScalableDimension),
|
|
1093
1036
|
ServiceNamespace: (0, smithy_client_1.expectString)(output.ServiceNamespace),
|
|
1094
|
-
StartTime: output.StartTime
|
|
1095
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
1096
|
-
: undefined,
|
|
1037
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
1097
1038
|
StatusCode: (0, smithy_client_1.expectString)(output.StatusCode),
|
|
1098
1039
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1099
1040
|
};
|
|
@@ -1111,10 +1052,8 @@ const deserializeAws_json1_1ScalingPolicies = (output, context) => {
|
|
|
1111
1052
|
};
|
|
1112
1053
|
const deserializeAws_json1_1ScalingPolicy = (output, context) => {
|
|
1113
1054
|
return {
|
|
1114
|
-
Alarms: output.Alarms
|
|
1115
|
-
|
|
1116
|
-
: undefined,
|
|
1117
|
-
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
1055
|
+
Alarms: output.Alarms != null ? deserializeAws_json1_1Alarms(output.Alarms, context) : undefined,
|
|
1056
|
+
CreationTime: output.CreationTime != null
|
|
1118
1057
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
1119
1058
|
: undefined,
|
|
1120
1059
|
PolicyARN: (0, smithy_client_1.expectString)(output.PolicyARN),
|
|
@@ -1123,35 +1062,30 @@ const deserializeAws_json1_1ScalingPolicy = (output, context) => {
|
|
|
1123
1062
|
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
1124
1063
|
ScalableDimension: (0, smithy_client_1.expectString)(output.ScalableDimension),
|
|
1125
1064
|
ServiceNamespace: (0, smithy_client_1.expectString)(output.ServiceNamespace),
|
|
1126
|
-
StepScalingPolicyConfiguration: output.StepScalingPolicyConfiguration
|
|
1065
|
+
StepScalingPolicyConfiguration: output.StepScalingPolicyConfiguration != null
|
|
1127
1066
|
? deserializeAws_json1_1StepScalingPolicyConfiguration(output.StepScalingPolicyConfiguration, context)
|
|
1128
1067
|
: undefined,
|
|
1129
|
-
TargetTrackingScalingPolicyConfiguration: output.TargetTrackingScalingPolicyConfiguration
|
|
1130
|
-
output.TargetTrackingScalingPolicyConfiguration !== null
|
|
1068
|
+
TargetTrackingScalingPolicyConfiguration: output.TargetTrackingScalingPolicyConfiguration != null
|
|
1131
1069
|
? deserializeAws_json1_1TargetTrackingScalingPolicyConfiguration(output.TargetTrackingScalingPolicyConfiguration, context)
|
|
1132
1070
|
: undefined,
|
|
1133
1071
|
};
|
|
1134
1072
|
};
|
|
1135
1073
|
const deserializeAws_json1_1ScheduledAction = (output, context) => {
|
|
1136
1074
|
return {
|
|
1137
|
-
CreationTime: output.CreationTime
|
|
1075
|
+
CreationTime: output.CreationTime != null
|
|
1138
1076
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
1139
1077
|
: undefined,
|
|
1140
|
-
EndTime: output.EndTime
|
|
1141
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
|
|
1142
|
-
: undefined,
|
|
1078
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
1143
1079
|
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
1144
1080
|
ScalableDimension: (0, smithy_client_1.expectString)(output.ScalableDimension),
|
|
1145
|
-
ScalableTargetAction: output.ScalableTargetAction
|
|
1081
|
+
ScalableTargetAction: output.ScalableTargetAction != null
|
|
1146
1082
|
? deserializeAws_json1_1ScalableTargetAction(output.ScalableTargetAction, context)
|
|
1147
1083
|
: undefined,
|
|
1148
1084
|
Schedule: (0, smithy_client_1.expectString)(output.Schedule),
|
|
1149
1085
|
ScheduledActionARN: (0, smithy_client_1.expectString)(output.ScheduledActionARN),
|
|
1150
1086
|
ScheduledActionName: (0, smithy_client_1.expectString)(output.ScheduledActionName),
|
|
1151
1087
|
ServiceNamespace: (0, smithy_client_1.expectString)(output.ServiceNamespace),
|
|
1152
|
-
StartTime: output.StartTime
|
|
1153
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
1154
|
-
: undefined,
|
|
1088
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
1155
1089
|
Timezone: (0, smithy_client_1.expectString)(output.Timezone),
|
|
1156
1090
|
};
|
|
1157
1091
|
};
|
|
@@ -1190,7 +1124,7 @@ const deserializeAws_json1_1StepScalingPolicyConfiguration = (output, context) =
|
|
|
1190
1124
|
Cooldown: (0, smithy_client_1.expectInt32)(output.Cooldown),
|
|
1191
1125
|
MetricAggregationType: (0, smithy_client_1.expectString)(output.MetricAggregationType),
|
|
1192
1126
|
MinAdjustmentMagnitude: (0, smithy_client_1.expectInt32)(output.MinAdjustmentMagnitude),
|
|
1193
|
-
StepAdjustments: output.StepAdjustments
|
|
1127
|
+
StepAdjustments: output.StepAdjustments != null
|
|
1194
1128
|
? deserializeAws_json1_1StepAdjustments(output.StepAdjustments, context)
|
|
1195
1129
|
: undefined,
|
|
1196
1130
|
};
|
|
@@ -1204,11 +1138,11 @@ const deserializeAws_json1_1SuspendedState = (output, context) => {
|
|
|
1204
1138
|
};
|
|
1205
1139
|
const deserializeAws_json1_1TargetTrackingScalingPolicyConfiguration = (output, context) => {
|
|
1206
1140
|
return {
|
|
1207
|
-
CustomizedMetricSpecification: output.CustomizedMetricSpecification
|
|
1141
|
+
CustomizedMetricSpecification: output.CustomizedMetricSpecification != null
|
|
1208
1142
|
? deserializeAws_json1_1CustomizedMetricSpecification(output.CustomizedMetricSpecification, context)
|
|
1209
1143
|
: undefined,
|
|
1210
1144
|
DisableScaleIn: (0, smithy_client_1.expectBoolean)(output.DisableScaleIn),
|
|
1211
|
-
PredefinedMetricSpecification: output.PredefinedMetricSpecification
|
|
1145
|
+
PredefinedMetricSpecification: output.PredefinedMetricSpecification != null
|
|
1212
1146
|
? deserializeAws_json1_1PredefinedMetricSpecification(output.PredefinedMetricSpecification, context)
|
|
1213
1147
|
: undefined,
|
|
1214
1148
|
ScaleInCooldown: (0, smithy_client_1.expectInt32)(output.ScaleInCooldown),
|
|
@@ -823,56 +823,37 @@ var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput,
|
|
|
823
823
|
});
|
|
824
824
|
}); };
|
|
825
825
|
var serializeAws_json1_1CustomizedMetricSpecification = function (input, context) {
|
|
826
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.Dimensions
|
|
827
|
-
input.Dimensions !== null && { Dimensions: serializeAws_json1_1MetricDimensions(input.Dimensions, context) })), (input.MetricName !== undefined && input.MetricName !== null && { MetricName: input.MetricName })), (input.Namespace !== undefined && input.Namespace !== null && { Namespace: input.Namespace })), (input.Statistic !== undefined && input.Statistic !== null && { Statistic: input.Statistic })), (input.Unit !== undefined && input.Unit !== null && { Unit: input.Unit }));
|
|
826
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Dimensions != null && { Dimensions: serializeAws_json1_1MetricDimensions(input.Dimensions, context) })), (input.MetricName != null && { MetricName: input.MetricName })), (input.Namespace != null && { Namespace: input.Namespace })), (input.Statistic != null && { Statistic: input.Statistic })), (input.Unit != null && { Unit: input.Unit }));
|
|
828
827
|
};
|
|
829
828
|
var serializeAws_json1_1DeleteScalingPolicyRequest = function (input, context) {
|
|
830
|
-
return __assign(__assign(__assign(__assign({}, (input.PolicyName
|
|
831
|
-
input.ScalableDimension !== null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace !== undefined &&
|
|
832
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }));
|
|
829
|
+
return __assign(__assign(__assign(__assign({}, (input.PolicyName != null && { PolicyName: input.PolicyName })), (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }));
|
|
833
830
|
};
|
|
834
831
|
var serializeAws_json1_1DeleteScheduledActionRequest = function (input, context) {
|
|
835
|
-
return __assign(__assign(__assign(__assign({}, (input.ResourceId
|
|
836
|
-
input.ScalableDimension !== null && { ScalableDimension: input.ScalableDimension })), (input.ScheduledActionName !== undefined &&
|
|
837
|
-
input.ScheduledActionName !== null && { ScheduledActionName: input.ScheduledActionName })), (input.ServiceNamespace !== undefined &&
|
|
838
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }));
|
|
832
|
+
return __assign(__assign(__assign(__assign({}, (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension })), (input.ScheduledActionName != null && { ScheduledActionName: input.ScheduledActionName })), (input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }));
|
|
839
833
|
};
|
|
840
834
|
var serializeAws_json1_1DeregisterScalableTargetRequest = function (input, context) {
|
|
841
|
-
return __assign(__assign(__assign({}, (input.ResourceId
|
|
842
|
-
input.ScalableDimension !== null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace !== undefined &&
|
|
843
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }));
|
|
835
|
+
return __assign(__assign(__assign({}, (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }));
|
|
844
836
|
};
|
|
845
837
|
var serializeAws_json1_1DescribeScalableTargetsRequest = function (input, context) {
|
|
846
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.MaxResults
|
|
847
|
-
input.ResourceIds !== null && {
|
|
838
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceIds != null && {
|
|
848
839
|
ResourceIds: serializeAws_json1_1ResourceIdsMaxLen1600(input.ResourceIds, context),
|
|
849
|
-
})), (input.ScalableDimension
|
|
850
|
-
input.ScalableDimension !== null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace !== undefined &&
|
|
851
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }));
|
|
840
|
+
})), (input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }));
|
|
852
841
|
};
|
|
853
842
|
var serializeAws_json1_1DescribeScalingActivitiesRequest = function (input, context) {
|
|
854
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.MaxResults
|
|
855
|
-
input.ScalableDimension !== null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace !== undefined &&
|
|
856
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }));
|
|
843
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }));
|
|
857
844
|
};
|
|
858
845
|
var serializeAws_json1_1DescribeScalingPoliciesRequest = function (input, context) {
|
|
859
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.MaxResults
|
|
860
|
-
input.PolicyNames !== null && {
|
|
846
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.PolicyNames != null && {
|
|
861
847
|
PolicyNames: serializeAws_json1_1ResourceIdsMaxLen1600(input.PolicyNames, context),
|
|
862
|
-
})), (input.ResourceId
|
|
863
|
-
input.ScalableDimension !== null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace !== undefined &&
|
|
864
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }));
|
|
848
|
+
})), (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }));
|
|
865
849
|
};
|
|
866
850
|
var serializeAws_json1_1DescribeScheduledActionsRequest = function (input, context) {
|
|
867
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.MaxResults
|
|
868
|
-
input.ScalableDimension !== null && { ScalableDimension: input.ScalableDimension })), (input.ScheduledActionNames !== undefined &&
|
|
869
|
-
input.ScheduledActionNames !== null && {
|
|
851
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension })), (input.ScheduledActionNames != null && {
|
|
870
852
|
ScheduledActionNames: serializeAws_json1_1ResourceIdsMaxLen1600(input.ScheduledActionNames, context),
|
|
871
|
-
})), (input.ServiceNamespace
|
|
872
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }));
|
|
853
|
+
})), (input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }));
|
|
873
854
|
};
|
|
874
855
|
var serializeAws_json1_1MetricDimension = function (input, context) {
|
|
875
|
-
return __assign(__assign({}, (input.Name
|
|
856
|
+
return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Value != null && { Value: input.Value }));
|
|
876
857
|
};
|
|
877
858
|
var serializeAws_json1_1MetricDimensions = function (input, context) {
|
|
878
859
|
return input
|
|
@@ -885,36 +866,22 @@ var serializeAws_json1_1MetricDimensions = function (input, context) {
|
|
|
885
866
|
});
|
|
886
867
|
};
|
|
887
868
|
var serializeAws_json1_1PredefinedMetricSpecification = function (input, context) {
|
|
888
|
-
return __assign(__assign({}, (input.PredefinedMetricType
|
|
889
|
-
input.PredefinedMetricType !== null && { PredefinedMetricType: input.PredefinedMetricType })), (input.ResourceLabel !== undefined && input.ResourceLabel !== null && { ResourceLabel: input.ResourceLabel }));
|
|
869
|
+
return __assign(__assign({}, (input.PredefinedMetricType != null && { PredefinedMetricType: input.PredefinedMetricType })), (input.ResourceLabel != null && { ResourceLabel: input.ResourceLabel }));
|
|
890
870
|
};
|
|
891
871
|
var serializeAws_json1_1PutScalingPolicyRequest = function (input, context) {
|
|
892
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.PolicyName
|
|
893
|
-
input.ScalableDimension !== null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace !== undefined &&
|
|
894
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace })), (input.StepScalingPolicyConfiguration !== undefined &&
|
|
895
|
-
input.StepScalingPolicyConfiguration !== null && {
|
|
872
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.PolicyName != null && { PolicyName: input.PolicyName })), (input.PolicyType != null && { PolicyType: input.PolicyType })), (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace })), (input.StepScalingPolicyConfiguration != null && {
|
|
896
873
|
StepScalingPolicyConfiguration: serializeAws_json1_1StepScalingPolicyConfiguration(input.StepScalingPolicyConfiguration, context),
|
|
897
|
-
})), (input.TargetTrackingScalingPolicyConfiguration
|
|
898
|
-
input.TargetTrackingScalingPolicyConfiguration !== null && {
|
|
874
|
+
})), (input.TargetTrackingScalingPolicyConfiguration != null && {
|
|
899
875
|
TargetTrackingScalingPolicyConfiguration: serializeAws_json1_1TargetTrackingScalingPolicyConfiguration(input.TargetTrackingScalingPolicyConfiguration, context),
|
|
900
876
|
}));
|
|
901
877
|
};
|
|
902
878
|
var serializeAws_json1_1PutScheduledActionRequest = function (input, context) {
|
|
903
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.EndTime
|
|
904
|
-
input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId })), (input.ScalableDimension !== undefined &&
|
|
905
|
-
input.ScalableDimension !== null && { ScalableDimension: input.ScalableDimension })), (input.ScalableTargetAction !== undefined &&
|
|
906
|
-
input.ScalableTargetAction !== null && {
|
|
879
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension })), (input.ScalableTargetAction != null && {
|
|
907
880
|
ScalableTargetAction: serializeAws_json1_1ScalableTargetAction(input.ScalableTargetAction, context),
|
|
908
|
-
})), (input.Schedule
|
|
909
|
-
input.ScheduledActionName !== null && { ScheduledActionName: input.ScheduledActionName })), (input.ServiceNamespace !== undefined &&
|
|
910
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace })), (input.StartTime !== undefined &&
|
|
911
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) })), (input.Timezone !== undefined && input.Timezone !== null && { Timezone: input.Timezone }));
|
|
881
|
+
})), (input.Schedule != null && { Schedule: input.Schedule })), (input.ScheduledActionName != null && { ScheduledActionName: input.ScheduledActionName })), (input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace })), (input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) })), (input.Timezone != null && { Timezone: input.Timezone }));
|
|
912
882
|
};
|
|
913
883
|
var serializeAws_json1_1RegisterScalableTargetRequest = function (input, context) {
|
|
914
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.MaxCapacity
|
|
915
|
-
input.ScalableDimension !== null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace !== undefined &&
|
|
916
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace })), (input.SuspendedState !== undefined &&
|
|
917
|
-
input.SuspendedState !== null && {
|
|
884
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity })), (input.MinCapacity != null && { MinCapacity: input.MinCapacity })), (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.RoleARN != null && { RoleARN: input.RoleARN })), (input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace })), (input.SuspendedState != null && {
|
|
918
885
|
SuspendedState: serializeAws_json1_1SuspendedState(input.SuspendedState, context),
|
|
919
886
|
}));
|
|
920
887
|
};
|
|
@@ -929,17 +896,14 @@ var serializeAws_json1_1ResourceIdsMaxLen1600 = function (input, context) {
|
|
|
929
896
|
});
|
|
930
897
|
};
|
|
931
898
|
var serializeAws_json1_1ScalableTargetAction = function (input, context) {
|
|
932
|
-
return __assign(__assign({}, (input.MaxCapacity
|
|
899
|
+
return __assign(__assign({}, (input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity })), (input.MinCapacity != null && { MinCapacity: input.MinCapacity }));
|
|
933
900
|
};
|
|
934
901
|
var serializeAws_json1_1StepAdjustment = function (input, context) {
|
|
935
|
-
return __assign(__assign(__assign({}, (input.MetricIntervalLowerBound
|
|
936
|
-
input.MetricIntervalLowerBound !== null && {
|
|
902
|
+
return __assign(__assign(__assign({}, (input.MetricIntervalLowerBound != null && {
|
|
937
903
|
MetricIntervalLowerBound: __serializeFloat(input.MetricIntervalLowerBound),
|
|
938
|
-
})), (input.MetricIntervalUpperBound
|
|
939
|
-
input.MetricIntervalUpperBound !== null && {
|
|
904
|
+
})), (input.MetricIntervalUpperBound != null && {
|
|
940
905
|
MetricIntervalUpperBound: __serializeFloat(input.MetricIntervalUpperBound),
|
|
941
|
-
})), (input.ScalingAdjustment
|
|
942
|
-
input.ScalingAdjustment !== null && { ScalingAdjustment: input.ScalingAdjustment }));
|
|
906
|
+
})), (input.ScalingAdjustment != null && { ScalingAdjustment: input.ScalingAdjustment }));
|
|
943
907
|
};
|
|
944
908
|
var serializeAws_json1_1StepAdjustments = function (input, context) {
|
|
945
909
|
return input
|
|
@@ -952,32 +916,19 @@ var serializeAws_json1_1StepAdjustments = function (input, context) {
|
|
|
952
916
|
});
|
|
953
917
|
};
|
|
954
918
|
var serializeAws_json1_1StepScalingPolicyConfiguration = function (input, context) {
|
|
955
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.AdjustmentType
|
|
956
|
-
input.AdjustmentType !== null && { AdjustmentType: input.AdjustmentType })), (input.Cooldown !== undefined && input.Cooldown !== null && { Cooldown: input.Cooldown })), (input.MetricAggregationType !== undefined &&
|
|
957
|
-
input.MetricAggregationType !== null && { MetricAggregationType: input.MetricAggregationType })), (input.MinAdjustmentMagnitude !== undefined &&
|
|
958
|
-
input.MinAdjustmentMagnitude !== null && { MinAdjustmentMagnitude: input.MinAdjustmentMagnitude })), (input.StepAdjustments !== undefined &&
|
|
959
|
-
input.StepAdjustments !== null && {
|
|
919
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.AdjustmentType != null && { AdjustmentType: input.AdjustmentType })), (input.Cooldown != null && { Cooldown: input.Cooldown })), (input.MetricAggregationType != null && { MetricAggregationType: input.MetricAggregationType })), (input.MinAdjustmentMagnitude != null && { MinAdjustmentMagnitude: input.MinAdjustmentMagnitude })), (input.StepAdjustments != null && {
|
|
960
920
|
StepAdjustments: serializeAws_json1_1StepAdjustments(input.StepAdjustments, context),
|
|
961
921
|
}));
|
|
962
922
|
};
|
|
963
923
|
var serializeAws_json1_1SuspendedState = function (input, context) {
|
|
964
|
-
return __assign(__assign(__assign({}, (input.DynamicScalingInSuspended
|
|
965
|
-
input.DynamicScalingInSuspended !== null && { DynamicScalingInSuspended: input.DynamicScalingInSuspended })), (input.DynamicScalingOutSuspended !== undefined &&
|
|
966
|
-
input.DynamicScalingOutSuspended !== null && { DynamicScalingOutSuspended: input.DynamicScalingOutSuspended })), (input.ScheduledScalingSuspended !== undefined &&
|
|
967
|
-
input.ScheduledScalingSuspended !== null && { ScheduledScalingSuspended: input.ScheduledScalingSuspended }));
|
|
924
|
+
return __assign(__assign(__assign({}, (input.DynamicScalingInSuspended != null && { DynamicScalingInSuspended: input.DynamicScalingInSuspended })), (input.DynamicScalingOutSuspended != null && { DynamicScalingOutSuspended: input.DynamicScalingOutSuspended })), (input.ScheduledScalingSuspended != null && { ScheduledScalingSuspended: input.ScheduledScalingSuspended }));
|
|
968
925
|
};
|
|
969
926
|
var serializeAws_json1_1TargetTrackingScalingPolicyConfiguration = function (input, context) {
|
|
970
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.CustomizedMetricSpecification
|
|
971
|
-
input.CustomizedMetricSpecification !== null && {
|
|
927
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.CustomizedMetricSpecification != null && {
|
|
972
928
|
CustomizedMetricSpecification: serializeAws_json1_1CustomizedMetricSpecification(input.CustomizedMetricSpecification, context),
|
|
973
|
-
})), (input.DisableScaleIn
|
|
974
|
-
input.DisableScaleIn !== null && { DisableScaleIn: input.DisableScaleIn })), (input.PredefinedMetricSpecification !== undefined &&
|
|
975
|
-
input.PredefinedMetricSpecification !== null && {
|
|
929
|
+
})), (input.DisableScaleIn != null && { DisableScaleIn: input.DisableScaleIn })), (input.PredefinedMetricSpecification != null && {
|
|
976
930
|
PredefinedMetricSpecification: serializeAws_json1_1PredefinedMetricSpecification(input.PredefinedMetricSpecification, context),
|
|
977
|
-
})), (input.ScaleInCooldown
|
|
978
|
-
input.ScaleInCooldown !== null && { ScaleInCooldown: input.ScaleInCooldown })), (input.ScaleOutCooldown !== undefined &&
|
|
979
|
-
input.ScaleOutCooldown !== null && { ScaleOutCooldown: input.ScaleOutCooldown })), (input.TargetValue !== undefined &&
|
|
980
|
-
input.TargetValue !== null && { TargetValue: __serializeFloat(input.TargetValue) }));
|
|
931
|
+
})), (input.ScaleInCooldown != null && { ScaleInCooldown: input.ScaleInCooldown })), (input.ScaleOutCooldown != null && { ScaleOutCooldown: input.ScaleOutCooldown })), (input.TargetValue != null && { TargetValue: __serializeFloat(input.TargetValue) }));
|
|
981
932
|
};
|
|
982
933
|
var deserializeAws_json1_1Alarm = function (output, context) {
|
|
983
934
|
return {
|
|
@@ -1003,9 +954,7 @@ var deserializeAws_json1_1ConcurrentUpdateException = function (output, context)
|
|
|
1003
954
|
};
|
|
1004
955
|
var deserializeAws_json1_1CustomizedMetricSpecification = function (output, context) {
|
|
1005
956
|
return {
|
|
1006
|
-
Dimensions: output.Dimensions
|
|
1007
|
-
? deserializeAws_json1_1MetricDimensions(output.Dimensions, context)
|
|
1008
|
-
: undefined,
|
|
957
|
+
Dimensions: output.Dimensions != null ? deserializeAws_json1_1MetricDimensions(output.Dimensions, context) : undefined,
|
|
1009
958
|
MetricName: __expectString(output.MetricName),
|
|
1010
959
|
Namespace: __expectString(output.Namespace),
|
|
1011
960
|
Statistic: __expectString(output.Statistic),
|
|
@@ -1024,7 +973,7 @@ var deserializeAws_json1_1DeregisterScalableTargetResponse = function (output, c
|
|
|
1024
973
|
var deserializeAws_json1_1DescribeScalableTargetsResponse = function (output, context) {
|
|
1025
974
|
return {
|
|
1026
975
|
NextToken: __expectString(output.NextToken),
|
|
1027
|
-
ScalableTargets: output.ScalableTargets
|
|
976
|
+
ScalableTargets: output.ScalableTargets != null
|
|
1028
977
|
? deserializeAws_json1_1ScalableTargets(output.ScalableTargets, context)
|
|
1029
978
|
: undefined,
|
|
1030
979
|
};
|
|
@@ -1032,7 +981,7 @@ var deserializeAws_json1_1DescribeScalableTargetsResponse = function (output, co
|
|
|
1032
981
|
var deserializeAws_json1_1DescribeScalingActivitiesResponse = function (output, context) {
|
|
1033
982
|
return {
|
|
1034
983
|
NextToken: __expectString(output.NextToken),
|
|
1035
|
-
ScalingActivities: output.ScalingActivities
|
|
984
|
+
ScalingActivities: output.ScalingActivities != null
|
|
1036
985
|
? deserializeAws_json1_1ScalingActivities(output.ScalingActivities, context)
|
|
1037
986
|
: undefined,
|
|
1038
987
|
};
|
|
@@ -1040,7 +989,7 @@ var deserializeAws_json1_1DescribeScalingActivitiesResponse = function (output,
|
|
|
1040
989
|
var deserializeAws_json1_1DescribeScalingPoliciesResponse = function (output, context) {
|
|
1041
990
|
return {
|
|
1042
991
|
NextToken: __expectString(output.NextToken),
|
|
1043
|
-
ScalingPolicies: output.ScalingPolicies
|
|
992
|
+
ScalingPolicies: output.ScalingPolicies != null
|
|
1044
993
|
? deserializeAws_json1_1ScalingPolicies(output.ScalingPolicies, context)
|
|
1045
994
|
: undefined,
|
|
1046
995
|
};
|
|
@@ -1048,7 +997,7 @@ var deserializeAws_json1_1DescribeScalingPoliciesResponse = function (output, co
|
|
|
1048
997
|
var deserializeAws_json1_1DescribeScheduledActionsResponse = function (output, context) {
|
|
1049
998
|
return {
|
|
1050
999
|
NextToken: __expectString(output.NextToken),
|
|
1051
|
-
ScheduledActions: output.ScheduledActions
|
|
1000
|
+
ScheduledActions: output.ScheduledActions != null
|
|
1052
1001
|
? deserializeAws_json1_1ScheduledActions(output.ScheduledActions, context)
|
|
1053
1002
|
: undefined,
|
|
1054
1003
|
};
|
|
@@ -1103,9 +1052,7 @@ var deserializeAws_json1_1PredefinedMetricSpecification = function (output, cont
|
|
|
1103
1052
|
};
|
|
1104
1053
|
var deserializeAws_json1_1PutScalingPolicyResponse = function (output, context) {
|
|
1105
1054
|
return {
|
|
1106
|
-
Alarms: output.Alarms
|
|
1107
|
-
? deserializeAws_json1_1Alarms(output.Alarms, context)
|
|
1108
|
-
: undefined,
|
|
1055
|
+
Alarms: output.Alarms != null ? deserializeAws_json1_1Alarms(output.Alarms, context) : undefined,
|
|
1109
1056
|
PolicyARN: __expectString(output.PolicyARN),
|
|
1110
1057
|
};
|
|
1111
1058
|
};
|
|
@@ -1117,7 +1064,7 @@ var deserializeAws_json1_1RegisterScalableTargetResponse = function (output, con
|
|
|
1117
1064
|
};
|
|
1118
1065
|
var deserializeAws_json1_1ScalableTarget = function (output, context) {
|
|
1119
1066
|
return {
|
|
1120
|
-
CreationTime: output.CreationTime
|
|
1067
|
+
CreationTime: output.CreationTime != null
|
|
1121
1068
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
1122
1069
|
: undefined,
|
|
1123
1070
|
MaxCapacity: __expectInt32(output.MaxCapacity),
|
|
@@ -1126,9 +1073,7 @@ var deserializeAws_json1_1ScalableTarget = function (output, context) {
|
|
|
1126
1073
|
RoleARN: __expectString(output.RoleARN),
|
|
1127
1074
|
ScalableDimension: __expectString(output.ScalableDimension),
|
|
1128
1075
|
ServiceNamespace: __expectString(output.ServiceNamespace),
|
|
1129
|
-
SuspendedState: output.SuspendedState
|
|
1130
|
-
? deserializeAws_json1_1SuspendedState(output.SuspendedState, context)
|
|
1131
|
-
: undefined,
|
|
1076
|
+
SuspendedState: output.SuspendedState != null ? deserializeAws_json1_1SuspendedState(output.SuspendedState, context) : undefined,
|
|
1132
1077
|
};
|
|
1133
1078
|
};
|
|
1134
1079
|
var deserializeAws_json1_1ScalableTargetAction = function (output, context) {
|
|
@@ -1165,15 +1110,11 @@ var deserializeAws_json1_1ScalingActivity = function (output, context) {
|
|
|
1165
1110
|
Cause: __expectString(output.Cause),
|
|
1166
1111
|
Description: __expectString(output.Description),
|
|
1167
1112
|
Details: __expectString(output.Details),
|
|
1168
|
-
EndTime: output.EndTime
|
|
1169
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
1170
|
-
: undefined,
|
|
1113
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
1171
1114
|
ResourceId: __expectString(output.ResourceId),
|
|
1172
1115
|
ScalableDimension: __expectString(output.ScalableDimension),
|
|
1173
1116
|
ServiceNamespace: __expectString(output.ServiceNamespace),
|
|
1174
|
-
StartTime: output.StartTime
|
|
1175
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
1176
|
-
: undefined,
|
|
1117
|
+
StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
|
|
1177
1118
|
StatusCode: __expectString(output.StatusCode),
|
|
1178
1119
|
StatusMessage: __expectString(output.StatusMessage),
|
|
1179
1120
|
};
|
|
@@ -1191,10 +1132,8 @@ var deserializeAws_json1_1ScalingPolicies = function (output, context) {
|
|
|
1191
1132
|
};
|
|
1192
1133
|
var deserializeAws_json1_1ScalingPolicy = function (output, context) {
|
|
1193
1134
|
return {
|
|
1194
|
-
Alarms: output.Alarms
|
|
1195
|
-
|
|
1196
|
-
: undefined,
|
|
1197
|
-
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
1135
|
+
Alarms: output.Alarms != null ? deserializeAws_json1_1Alarms(output.Alarms, context) : undefined,
|
|
1136
|
+
CreationTime: output.CreationTime != null
|
|
1198
1137
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
1199
1138
|
: undefined,
|
|
1200
1139
|
PolicyARN: __expectString(output.PolicyARN),
|
|
@@ -1203,35 +1142,30 @@ var deserializeAws_json1_1ScalingPolicy = function (output, context) {
|
|
|
1203
1142
|
ResourceId: __expectString(output.ResourceId),
|
|
1204
1143
|
ScalableDimension: __expectString(output.ScalableDimension),
|
|
1205
1144
|
ServiceNamespace: __expectString(output.ServiceNamespace),
|
|
1206
|
-
StepScalingPolicyConfiguration: output.StepScalingPolicyConfiguration
|
|
1145
|
+
StepScalingPolicyConfiguration: output.StepScalingPolicyConfiguration != null
|
|
1207
1146
|
? deserializeAws_json1_1StepScalingPolicyConfiguration(output.StepScalingPolicyConfiguration, context)
|
|
1208
1147
|
: undefined,
|
|
1209
|
-
TargetTrackingScalingPolicyConfiguration: output.TargetTrackingScalingPolicyConfiguration
|
|
1210
|
-
output.TargetTrackingScalingPolicyConfiguration !== null
|
|
1148
|
+
TargetTrackingScalingPolicyConfiguration: output.TargetTrackingScalingPolicyConfiguration != null
|
|
1211
1149
|
? deserializeAws_json1_1TargetTrackingScalingPolicyConfiguration(output.TargetTrackingScalingPolicyConfiguration, context)
|
|
1212
1150
|
: undefined,
|
|
1213
1151
|
};
|
|
1214
1152
|
};
|
|
1215
1153
|
var deserializeAws_json1_1ScheduledAction = function (output, context) {
|
|
1216
1154
|
return {
|
|
1217
|
-
CreationTime: output.CreationTime
|
|
1155
|
+
CreationTime: output.CreationTime != null
|
|
1218
1156
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
1219
1157
|
: undefined,
|
|
1220
|
-
EndTime: output.EndTime
|
|
1221
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
1222
|
-
: undefined,
|
|
1158
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
1223
1159
|
ResourceId: __expectString(output.ResourceId),
|
|
1224
1160
|
ScalableDimension: __expectString(output.ScalableDimension),
|
|
1225
|
-
ScalableTargetAction: output.ScalableTargetAction
|
|
1161
|
+
ScalableTargetAction: output.ScalableTargetAction != null
|
|
1226
1162
|
? deserializeAws_json1_1ScalableTargetAction(output.ScalableTargetAction, context)
|
|
1227
1163
|
: undefined,
|
|
1228
1164
|
Schedule: __expectString(output.Schedule),
|
|
1229
1165
|
ScheduledActionARN: __expectString(output.ScheduledActionARN),
|
|
1230
1166
|
ScheduledActionName: __expectString(output.ScheduledActionName),
|
|
1231
1167
|
ServiceNamespace: __expectString(output.ServiceNamespace),
|
|
1232
|
-
StartTime: output.StartTime
|
|
1233
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
1234
|
-
: undefined,
|
|
1168
|
+
StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
|
|
1235
1169
|
Timezone: __expectString(output.Timezone),
|
|
1236
1170
|
};
|
|
1237
1171
|
};
|
|
@@ -1270,7 +1204,7 @@ var deserializeAws_json1_1StepScalingPolicyConfiguration = function (output, con
|
|
|
1270
1204
|
Cooldown: __expectInt32(output.Cooldown),
|
|
1271
1205
|
MetricAggregationType: __expectString(output.MetricAggregationType),
|
|
1272
1206
|
MinAdjustmentMagnitude: __expectInt32(output.MinAdjustmentMagnitude),
|
|
1273
|
-
StepAdjustments: output.StepAdjustments
|
|
1207
|
+
StepAdjustments: output.StepAdjustments != null
|
|
1274
1208
|
? deserializeAws_json1_1StepAdjustments(output.StepAdjustments, context)
|
|
1275
1209
|
: undefined,
|
|
1276
1210
|
};
|
|
@@ -1284,11 +1218,11 @@ var deserializeAws_json1_1SuspendedState = function (output, context) {
|
|
|
1284
1218
|
};
|
|
1285
1219
|
var deserializeAws_json1_1TargetTrackingScalingPolicyConfiguration = function (output, context) {
|
|
1286
1220
|
return {
|
|
1287
|
-
CustomizedMetricSpecification: output.CustomizedMetricSpecification
|
|
1221
|
+
CustomizedMetricSpecification: output.CustomizedMetricSpecification != null
|
|
1288
1222
|
? deserializeAws_json1_1CustomizedMetricSpecification(output.CustomizedMetricSpecification, context)
|
|
1289
1223
|
: undefined,
|
|
1290
1224
|
DisableScaleIn: __expectBoolean(output.DisableScaleIn),
|
|
1291
|
-
PredefinedMetricSpecification: output.PredefinedMetricSpecification
|
|
1225
|
+
PredefinedMetricSpecification: output.PredefinedMetricSpecification != null
|
|
1292
1226
|
? deserializeAws_json1_1PredefinedMetricSpecification(output.PredefinedMetricSpecification, context)
|
|
1293
1227
|
: undefined,
|
|
1294
1228
|
ScaleInCooldown: __expectInt32(output.ScaleInCooldown),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-application-auto-scaling",
|
|
3
3
|
"description": "AWS SDK for JavaScript Application Auto Scaling Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.127.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.127.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.127.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.127.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.127.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.127.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|