@aws-sdk/client-application-auto-scaling 3.504.0 → 3.507.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/dist-cjs/index.js +39 -354
- package/dist-es/protocols/Aws_json1_1.js +38 -353
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -516,7 +516,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
516
516
|
}, "se_UntagResourceCommand");
|
|
517
517
|
var de_DeleteScalingPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
518
518
|
if (output.statusCode >= 300) {
|
|
519
|
-
return
|
|
519
|
+
return de_CommandError(output, context);
|
|
520
520
|
}
|
|
521
521
|
const data = await parseBody(output.body, context);
|
|
522
522
|
let contents = {};
|
|
@@ -527,37 +527,9 @@ var de_DeleteScalingPolicyCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
527
527
|
};
|
|
528
528
|
return response;
|
|
529
529
|
}, "de_DeleteScalingPolicyCommand");
|
|
530
|
-
var de_DeleteScalingPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
531
|
-
const parsedOutput = {
|
|
532
|
-
...output,
|
|
533
|
-
body: await parseErrorBody(output.body, context)
|
|
534
|
-
};
|
|
535
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
536
|
-
switch (errorCode) {
|
|
537
|
-
case "ConcurrentUpdateException":
|
|
538
|
-
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
539
|
-
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
540
|
-
case "InternalServiceException":
|
|
541
|
-
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
542
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
543
|
-
case "ObjectNotFoundException":
|
|
544
|
-
case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
|
|
545
|
-
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
546
|
-
case "ValidationException":
|
|
547
|
-
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
548
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
549
|
-
default:
|
|
550
|
-
const parsedBody = parsedOutput.body;
|
|
551
|
-
return throwDefaultError({
|
|
552
|
-
output,
|
|
553
|
-
parsedBody,
|
|
554
|
-
errorCode
|
|
555
|
-
});
|
|
556
|
-
}
|
|
557
|
-
}, "de_DeleteScalingPolicyCommandError");
|
|
558
530
|
var de_DeleteScheduledActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
559
531
|
if (output.statusCode >= 300) {
|
|
560
|
-
return
|
|
532
|
+
return de_CommandError(output, context);
|
|
561
533
|
}
|
|
562
534
|
const data = await parseBody(output.body, context);
|
|
563
535
|
let contents = {};
|
|
@@ -568,37 +540,9 @@ var de_DeleteScheduledActionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
568
540
|
};
|
|
569
541
|
return response;
|
|
570
542
|
}, "de_DeleteScheduledActionCommand");
|
|
571
|
-
var de_DeleteScheduledActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
572
|
-
const parsedOutput = {
|
|
573
|
-
...output,
|
|
574
|
-
body: await parseErrorBody(output.body, context)
|
|
575
|
-
};
|
|
576
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
577
|
-
switch (errorCode) {
|
|
578
|
-
case "ConcurrentUpdateException":
|
|
579
|
-
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
580
|
-
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
581
|
-
case "InternalServiceException":
|
|
582
|
-
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
583
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
584
|
-
case "ObjectNotFoundException":
|
|
585
|
-
case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
|
|
586
|
-
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
587
|
-
case "ValidationException":
|
|
588
|
-
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
589
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
590
|
-
default:
|
|
591
|
-
const parsedBody = parsedOutput.body;
|
|
592
|
-
return throwDefaultError({
|
|
593
|
-
output,
|
|
594
|
-
parsedBody,
|
|
595
|
-
errorCode
|
|
596
|
-
});
|
|
597
|
-
}
|
|
598
|
-
}, "de_DeleteScheduledActionCommandError");
|
|
599
543
|
var de_DeregisterScalableTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
600
544
|
if (output.statusCode >= 300) {
|
|
601
|
-
return
|
|
545
|
+
return de_CommandError(output, context);
|
|
602
546
|
}
|
|
603
547
|
const data = await parseBody(output.body, context);
|
|
604
548
|
let contents = {};
|
|
@@ -609,37 +553,9 @@ var de_DeregisterScalableTargetCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
609
553
|
};
|
|
610
554
|
return response;
|
|
611
555
|
}, "de_DeregisterScalableTargetCommand");
|
|
612
|
-
var de_DeregisterScalableTargetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
613
|
-
const parsedOutput = {
|
|
614
|
-
...output,
|
|
615
|
-
body: await parseErrorBody(output.body, context)
|
|
616
|
-
};
|
|
617
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
618
|
-
switch (errorCode) {
|
|
619
|
-
case "ConcurrentUpdateException":
|
|
620
|
-
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
621
|
-
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
622
|
-
case "InternalServiceException":
|
|
623
|
-
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
624
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
625
|
-
case "ObjectNotFoundException":
|
|
626
|
-
case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
|
|
627
|
-
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
628
|
-
case "ValidationException":
|
|
629
|
-
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
630
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
631
|
-
default:
|
|
632
|
-
const parsedBody = parsedOutput.body;
|
|
633
|
-
return throwDefaultError({
|
|
634
|
-
output,
|
|
635
|
-
parsedBody,
|
|
636
|
-
errorCode
|
|
637
|
-
});
|
|
638
|
-
}
|
|
639
|
-
}, "de_DeregisterScalableTargetCommandError");
|
|
640
556
|
var de_DescribeScalableTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
641
557
|
if (output.statusCode >= 300) {
|
|
642
|
-
return
|
|
558
|
+
return de_CommandError(output, context);
|
|
643
559
|
}
|
|
644
560
|
const data = await parseBody(output.body, context);
|
|
645
561
|
let contents = {};
|
|
@@ -650,37 +566,9 @@ var de_DescribeScalableTargetsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
650
566
|
};
|
|
651
567
|
return response;
|
|
652
568
|
}, "de_DescribeScalableTargetsCommand");
|
|
653
|
-
var de_DescribeScalableTargetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
654
|
-
const parsedOutput = {
|
|
655
|
-
...output,
|
|
656
|
-
body: await parseErrorBody(output.body, context)
|
|
657
|
-
};
|
|
658
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
659
|
-
switch (errorCode) {
|
|
660
|
-
case "ConcurrentUpdateException":
|
|
661
|
-
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
662
|
-
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
663
|
-
case "InternalServiceException":
|
|
664
|
-
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
665
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
666
|
-
case "InvalidNextTokenException":
|
|
667
|
-
case "com.amazonaws.applicationautoscaling#InvalidNextTokenException":
|
|
668
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
669
|
-
case "ValidationException":
|
|
670
|
-
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
671
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
672
|
-
default:
|
|
673
|
-
const parsedBody = parsedOutput.body;
|
|
674
|
-
return throwDefaultError({
|
|
675
|
-
output,
|
|
676
|
-
parsedBody,
|
|
677
|
-
errorCode
|
|
678
|
-
});
|
|
679
|
-
}
|
|
680
|
-
}, "de_DescribeScalableTargetsCommandError");
|
|
681
569
|
var de_DescribeScalingActivitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
682
570
|
if (output.statusCode >= 300) {
|
|
683
|
-
return
|
|
571
|
+
return de_CommandError(output, context);
|
|
684
572
|
}
|
|
685
573
|
const data = await parseBody(output.body, context);
|
|
686
574
|
let contents = {};
|
|
@@ -691,37 +579,9 @@ var de_DescribeScalingActivitiesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
691
579
|
};
|
|
692
580
|
return response;
|
|
693
581
|
}, "de_DescribeScalingActivitiesCommand");
|
|
694
|
-
var de_DescribeScalingActivitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
695
|
-
const parsedOutput = {
|
|
696
|
-
...output,
|
|
697
|
-
body: await parseErrorBody(output.body, context)
|
|
698
|
-
};
|
|
699
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
700
|
-
switch (errorCode) {
|
|
701
|
-
case "ConcurrentUpdateException":
|
|
702
|
-
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
703
|
-
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
704
|
-
case "InternalServiceException":
|
|
705
|
-
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
706
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
707
|
-
case "InvalidNextTokenException":
|
|
708
|
-
case "com.amazonaws.applicationautoscaling#InvalidNextTokenException":
|
|
709
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
710
|
-
case "ValidationException":
|
|
711
|
-
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
712
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
713
|
-
default:
|
|
714
|
-
const parsedBody = parsedOutput.body;
|
|
715
|
-
return throwDefaultError({
|
|
716
|
-
output,
|
|
717
|
-
parsedBody,
|
|
718
|
-
errorCode
|
|
719
|
-
});
|
|
720
|
-
}
|
|
721
|
-
}, "de_DescribeScalingActivitiesCommandError");
|
|
722
582
|
var de_DescribeScalingPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
723
583
|
if (output.statusCode >= 300) {
|
|
724
|
-
return
|
|
584
|
+
return de_CommandError(output, context);
|
|
725
585
|
}
|
|
726
586
|
const data = await parseBody(output.body, context);
|
|
727
587
|
let contents = {};
|
|
@@ -732,40 +592,9 @@ var de_DescribeScalingPoliciesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
732
592
|
};
|
|
733
593
|
return response;
|
|
734
594
|
}, "de_DescribeScalingPoliciesCommand");
|
|
735
|
-
var de_DescribeScalingPoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
736
|
-
const parsedOutput = {
|
|
737
|
-
...output,
|
|
738
|
-
body: await parseErrorBody(output.body, context)
|
|
739
|
-
};
|
|
740
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
741
|
-
switch (errorCode) {
|
|
742
|
-
case "ConcurrentUpdateException":
|
|
743
|
-
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
744
|
-
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
745
|
-
case "FailedResourceAccessException":
|
|
746
|
-
case "com.amazonaws.applicationautoscaling#FailedResourceAccessException":
|
|
747
|
-
throw await de_FailedResourceAccessExceptionRes(parsedOutput, context);
|
|
748
|
-
case "InternalServiceException":
|
|
749
|
-
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
750
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
751
|
-
case "InvalidNextTokenException":
|
|
752
|
-
case "com.amazonaws.applicationautoscaling#InvalidNextTokenException":
|
|
753
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
754
|
-
case "ValidationException":
|
|
755
|
-
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
756
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
757
|
-
default:
|
|
758
|
-
const parsedBody = parsedOutput.body;
|
|
759
|
-
return throwDefaultError({
|
|
760
|
-
output,
|
|
761
|
-
parsedBody,
|
|
762
|
-
errorCode
|
|
763
|
-
});
|
|
764
|
-
}
|
|
765
|
-
}, "de_DescribeScalingPoliciesCommandError");
|
|
766
595
|
var de_DescribeScheduledActionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
767
596
|
if (output.statusCode >= 300) {
|
|
768
|
-
return
|
|
597
|
+
return de_CommandError(output, context);
|
|
769
598
|
}
|
|
770
599
|
const data = await parseBody(output.body, context);
|
|
771
600
|
let contents = {};
|
|
@@ -776,37 +605,9 @@ var de_DescribeScheduledActionsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
776
605
|
};
|
|
777
606
|
return response;
|
|
778
607
|
}, "de_DescribeScheduledActionsCommand");
|
|
779
|
-
var de_DescribeScheduledActionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
780
|
-
const parsedOutput = {
|
|
781
|
-
...output,
|
|
782
|
-
body: await parseErrorBody(output.body, context)
|
|
783
|
-
};
|
|
784
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
785
|
-
switch (errorCode) {
|
|
786
|
-
case "ConcurrentUpdateException":
|
|
787
|
-
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
788
|
-
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
789
|
-
case "InternalServiceException":
|
|
790
|
-
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
791
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
792
|
-
case "InvalidNextTokenException":
|
|
793
|
-
case "com.amazonaws.applicationautoscaling#InvalidNextTokenException":
|
|
794
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
795
|
-
case "ValidationException":
|
|
796
|
-
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
797
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
798
|
-
default:
|
|
799
|
-
const parsedBody = parsedOutput.body;
|
|
800
|
-
return throwDefaultError({
|
|
801
|
-
output,
|
|
802
|
-
parsedBody,
|
|
803
|
-
errorCode
|
|
804
|
-
});
|
|
805
|
-
}
|
|
806
|
-
}, "de_DescribeScheduledActionsCommandError");
|
|
807
608
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
808
609
|
if (output.statusCode >= 300) {
|
|
809
|
-
return
|
|
610
|
+
return de_CommandError(output, context);
|
|
810
611
|
}
|
|
811
612
|
const data = await parseBody(output.body, context);
|
|
812
613
|
let contents = {};
|
|
@@ -817,28 +618,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
817
618
|
};
|
|
818
619
|
return response;
|
|
819
620
|
}, "de_ListTagsForResourceCommand");
|
|
820
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
821
|
-
const parsedOutput = {
|
|
822
|
-
...output,
|
|
823
|
-
body: await parseErrorBody(output.body, context)
|
|
824
|
-
};
|
|
825
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
826
|
-
switch (errorCode) {
|
|
827
|
-
case "ResourceNotFoundException":
|
|
828
|
-
case "com.amazonaws.applicationautoscaling#ResourceNotFoundException":
|
|
829
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
830
|
-
default:
|
|
831
|
-
const parsedBody = parsedOutput.body;
|
|
832
|
-
return throwDefaultError({
|
|
833
|
-
output,
|
|
834
|
-
parsedBody,
|
|
835
|
-
errorCode
|
|
836
|
-
});
|
|
837
|
-
}
|
|
838
|
-
}, "de_ListTagsForResourceCommandError");
|
|
839
621
|
var de_PutScalingPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
840
622
|
if (output.statusCode >= 300) {
|
|
841
|
-
return
|
|
623
|
+
return de_CommandError(output, context);
|
|
842
624
|
}
|
|
843
625
|
const data = await parseBody(output.body, context);
|
|
844
626
|
let contents = {};
|
|
@@ -849,43 +631,9 @@ var de_PutScalingPolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
849
631
|
};
|
|
850
632
|
return response;
|
|
851
633
|
}, "de_PutScalingPolicyCommand");
|
|
852
|
-
var de_PutScalingPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
853
|
-
const parsedOutput = {
|
|
854
|
-
...output,
|
|
855
|
-
body: await parseErrorBody(output.body, context)
|
|
856
|
-
};
|
|
857
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
858
|
-
switch (errorCode) {
|
|
859
|
-
case "ConcurrentUpdateException":
|
|
860
|
-
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
861
|
-
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
862
|
-
case "FailedResourceAccessException":
|
|
863
|
-
case "com.amazonaws.applicationautoscaling#FailedResourceAccessException":
|
|
864
|
-
throw await de_FailedResourceAccessExceptionRes(parsedOutput, context);
|
|
865
|
-
case "InternalServiceException":
|
|
866
|
-
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
867
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
868
|
-
case "LimitExceededException":
|
|
869
|
-
case "com.amazonaws.applicationautoscaling#LimitExceededException":
|
|
870
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
871
|
-
case "ObjectNotFoundException":
|
|
872
|
-
case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
|
|
873
|
-
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
874
|
-
case "ValidationException":
|
|
875
|
-
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
876
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
877
|
-
default:
|
|
878
|
-
const parsedBody = parsedOutput.body;
|
|
879
|
-
return throwDefaultError({
|
|
880
|
-
output,
|
|
881
|
-
parsedBody,
|
|
882
|
-
errorCode
|
|
883
|
-
});
|
|
884
|
-
}
|
|
885
|
-
}, "de_PutScalingPolicyCommandError");
|
|
886
634
|
var de_PutScheduledActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
887
635
|
if (output.statusCode >= 300) {
|
|
888
|
-
return
|
|
636
|
+
return de_CommandError(output, context);
|
|
889
637
|
}
|
|
890
638
|
const data = await parseBody(output.body, context);
|
|
891
639
|
let contents = {};
|
|
@@ -896,40 +644,9 @@ var de_PutScheduledActionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
896
644
|
};
|
|
897
645
|
return response;
|
|
898
646
|
}, "de_PutScheduledActionCommand");
|
|
899
|
-
var de_PutScheduledActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
900
|
-
const parsedOutput = {
|
|
901
|
-
...output,
|
|
902
|
-
body: await parseErrorBody(output.body, context)
|
|
903
|
-
};
|
|
904
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
905
|
-
switch (errorCode) {
|
|
906
|
-
case "ConcurrentUpdateException":
|
|
907
|
-
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
908
|
-
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
909
|
-
case "InternalServiceException":
|
|
910
|
-
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
911
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
912
|
-
case "LimitExceededException":
|
|
913
|
-
case "com.amazonaws.applicationautoscaling#LimitExceededException":
|
|
914
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
915
|
-
case "ObjectNotFoundException":
|
|
916
|
-
case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
|
|
917
|
-
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
918
|
-
case "ValidationException":
|
|
919
|
-
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
920
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
921
|
-
default:
|
|
922
|
-
const parsedBody = parsedOutput.body;
|
|
923
|
-
return throwDefaultError({
|
|
924
|
-
output,
|
|
925
|
-
parsedBody,
|
|
926
|
-
errorCode
|
|
927
|
-
});
|
|
928
|
-
}
|
|
929
|
-
}, "de_PutScheduledActionCommandError");
|
|
930
647
|
var de_RegisterScalableTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
931
648
|
if (output.statusCode >= 300) {
|
|
932
|
-
return
|
|
649
|
+
return de_CommandError(output, context);
|
|
933
650
|
}
|
|
934
651
|
const data = await parseBody(output.body, context);
|
|
935
652
|
let contents = {};
|
|
@@ -940,37 +657,9 @@ var de_RegisterScalableTargetCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
940
657
|
};
|
|
941
658
|
return response;
|
|
942
659
|
}, "de_RegisterScalableTargetCommand");
|
|
943
|
-
var de_RegisterScalableTargetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
944
|
-
const parsedOutput = {
|
|
945
|
-
...output,
|
|
946
|
-
body: await parseErrorBody(output.body, context)
|
|
947
|
-
};
|
|
948
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
949
|
-
switch (errorCode) {
|
|
950
|
-
case "ConcurrentUpdateException":
|
|
951
|
-
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
952
|
-
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
953
|
-
case "InternalServiceException":
|
|
954
|
-
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
955
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
956
|
-
case "LimitExceededException":
|
|
957
|
-
case "com.amazonaws.applicationautoscaling#LimitExceededException":
|
|
958
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
959
|
-
case "ValidationException":
|
|
960
|
-
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
961
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
962
|
-
default:
|
|
963
|
-
const parsedBody = parsedOutput.body;
|
|
964
|
-
return throwDefaultError({
|
|
965
|
-
output,
|
|
966
|
-
parsedBody,
|
|
967
|
-
errorCode
|
|
968
|
-
});
|
|
969
|
-
}
|
|
970
|
-
}, "de_RegisterScalableTargetCommandError");
|
|
971
660
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
972
661
|
if (output.statusCode >= 300) {
|
|
973
|
-
return
|
|
662
|
+
return de_CommandError(output, context);
|
|
974
663
|
}
|
|
975
664
|
const data = await parseBody(output.body, context);
|
|
976
665
|
let contents = {};
|
|
@@ -981,34 +670,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
981
670
|
};
|
|
982
671
|
return response;
|
|
983
672
|
}, "de_TagResourceCommand");
|
|
984
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
985
|
-
const parsedOutput = {
|
|
986
|
-
...output,
|
|
987
|
-
body: await parseErrorBody(output.body, context)
|
|
988
|
-
};
|
|
989
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
990
|
-
switch (errorCode) {
|
|
991
|
-
case "ResourceNotFoundException":
|
|
992
|
-
case "com.amazonaws.applicationautoscaling#ResourceNotFoundException":
|
|
993
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
994
|
-
case "TooManyTagsException":
|
|
995
|
-
case "com.amazonaws.applicationautoscaling#TooManyTagsException":
|
|
996
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
997
|
-
case "ValidationException":
|
|
998
|
-
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
999
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1000
|
-
default:
|
|
1001
|
-
const parsedBody = parsedOutput.body;
|
|
1002
|
-
return throwDefaultError({
|
|
1003
|
-
output,
|
|
1004
|
-
parsedBody,
|
|
1005
|
-
errorCode
|
|
1006
|
-
});
|
|
1007
|
-
}
|
|
1008
|
-
}, "de_TagResourceCommandError");
|
|
1009
673
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1010
674
|
if (output.statusCode >= 300) {
|
|
1011
|
-
return
|
|
675
|
+
return de_CommandError(output, context);
|
|
1012
676
|
}
|
|
1013
677
|
const data = await parseBody(output.body, context);
|
|
1014
678
|
let contents = {};
|
|
@@ -1019,19 +683,40 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1019
683
|
};
|
|
1020
684
|
return response;
|
|
1021
685
|
}, "de_UntagResourceCommand");
|
|
1022
|
-
var
|
|
686
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1023
687
|
const parsedOutput = {
|
|
1024
688
|
...output,
|
|
1025
689
|
body: await parseErrorBody(output.body, context)
|
|
1026
690
|
};
|
|
1027
691
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1028
692
|
switch (errorCode) {
|
|
1029
|
-
case "
|
|
1030
|
-
case "com.amazonaws.applicationautoscaling#
|
|
1031
|
-
throw await
|
|
693
|
+
case "ConcurrentUpdateException":
|
|
694
|
+
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
695
|
+
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
696
|
+
case "InternalServiceException":
|
|
697
|
+
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
698
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
699
|
+
case "ObjectNotFoundException":
|
|
700
|
+
case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
|
|
701
|
+
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
1032
702
|
case "ValidationException":
|
|
1033
703
|
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
1034
704
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
705
|
+
case "InvalidNextTokenException":
|
|
706
|
+
case "com.amazonaws.applicationautoscaling#InvalidNextTokenException":
|
|
707
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
708
|
+
case "FailedResourceAccessException":
|
|
709
|
+
case "com.amazonaws.applicationautoscaling#FailedResourceAccessException":
|
|
710
|
+
throw await de_FailedResourceAccessExceptionRes(parsedOutput, context);
|
|
711
|
+
case "ResourceNotFoundException":
|
|
712
|
+
case "com.amazonaws.applicationautoscaling#ResourceNotFoundException":
|
|
713
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
714
|
+
case "LimitExceededException":
|
|
715
|
+
case "com.amazonaws.applicationautoscaling#LimitExceededException":
|
|
716
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
717
|
+
case "TooManyTagsException":
|
|
718
|
+
case "com.amazonaws.applicationautoscaling#TooManyTagsException":
|
|
719
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1035
720
|
default:
|
|
1036
721
|
const parsedBody = parsedOutput.body;
|
|
1037
722
|
return throwDefaultError({
|
|
@@ -1040,7 +725,7 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
1040
725
|
errorCode
|
|
1041
726
|
});
|
|
1042
727
|
}
|
|
1043
|
-
}, "
|
|
728
|
+
}, "de_CommandError");
|
|
1044
729
|
var de_ConcurrentUpdateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1045
730
|
const body = parsedOutput.body;
|
|
1046
731
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -82,7 +82,7 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
82
82
|
};
|
|
83
83
|
export const de_DeleteScalingPolicyCommand = async (output, context) => {
|
|
84
84
|
if (output.statusCode >= 300) {
|
|
85
|
-
return
|
|
85
|
+
return de_CommandError(output, context);
|
|
86
86
|
}
|
|
87
87
|
const data = await parseBody(output.body, context);
|
|
88
88
|
let contents = {};
|
|
@@ -93,37 +93,9 @@ export const de_DeleteScalingPolicyCommand = async (output, context) => {
|
|
|
93
93
|
};
|
|
94
94
|
return response;
|
|
95
95
|
};
|
|
96
|
-
const de_DeleteScalingPolicyCommandError = async (output, context) => {
|
|
97
|
-
const parsedOutput = {
|
|
98
|
-
...output,
|
|
99
|
-
body: await parseErrorBody(output.body, context),
|
|
100
|
-
};
|
|
101
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
102
|
-
switch (errorCode) {
|
|
103
|
-
case "ConcurrentUpdateException":
|
|
104
|
-
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
105
|
-
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
106
|
-
case "InternalServiceException":
|
|
107
|
-
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
108
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
109
|
-
case "ObjectNotFoundException":
|
|
110
|
-
case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
|
|
111
|
-
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
112
|
-
case "ValidationException":
|
|
113
|
-
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
114
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
115
|
-
default:
|
|
116
|
-
const parsedBody = parsedOutput.body;
|
|
117
|
-
return throwDefaultError({
|
|
118
|
-
output,
|
|
119
|
-
parsedBody,
|
|
120
|
-
errorCode,
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
96
|
export const de_DeleteScheduledActionCommand = async (output, context) => {
|
|
125
97
|
if (output.statusCode >= 300) {
|
|
126
|
-
return
|
|
98
|
+
return de_CommandError(output, context);
|
|
127
99
|
}
|
|
128
100
|
const data = await parseBody(output.body, context);
|
|
129
101
|
let contents = {};
|
|
@@ -134,37 +106,9 @@ export const de_DeleteScheduledActionCommand = async (output, context) => {
|
|
|
134
106
|
};
|
|
135
107
|
return response;
|
|
136
108
|
};
|
|
137
|
-
const de_DeleteScheduledActionCommandError = async (output, context) => {
|
|
138
|
-
const parsedOutput = {
|
|
139
|
-
...output,
|
|
140
|
-
body: await parseErrorBody(output.body, context),
|
|
141
|
-
};
|
|
142
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
143
|
-
switch (errorCode) {
|
|
144
|
-
case "ConcurrentUpdateException":
|
|
145
|
-
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
146
|
-
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
147
|
-
case "InternalServiceException":
|
|
148
|
-
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
149
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
150
|
-
case "ObjectNotFoundException":
|
|
151
|
-
case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
|
|
152
|
-
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
153
|
-
case "ValidationException":
|
|
154
|
-
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
155
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
156
|
-
default:
|
|
157
|
-
const parsedBody = parsedOutput.body;
|
|
158
|
-
return throwDefaultError({
|
|
159
|
-
output,
|
|
160
|
-
parsedBody,
|
|
161
|
-
errorCode,
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
109
|
export const de_DeregisterScalableTargetCommand = async (output, context) => {
|
|
166
110
|
if (output.statusCode >= 300) {
|
|
167
|
-
return
|
|
111
|
+
return de_CommandError(output, context);
|
|
168
112
|
}
|
|
169
113
|
const data = await parseBody(output.body, context);
|
|
170
114
|
let contents = {};
|
|
@@ -175,37 +119,9 @@ export const de_DeregisterScalableTargetCommand = async (output, context) => {
|
|
|
175
119
|
};
|
|
176
120
|
return response;
|
|
177
121
|
};
|
|
178
|
-
const de_DeregisterScalableTargetCommandError = async (output, context) => {
|
|
179
|
-
const parsedOutput = {
|
|
180
|
-
...output,
|
|
181
|
-
body: await parseErrorBody(output.body, context),
|
|
182
|
-
};
|
|
183
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
184
|
-
switch (errorCode) {
|
|
185
|
-
case "ConcurrentUpdateException":
|
|
186
|
-
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
187
|
-
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
188
|
-
case "InternalServiceException":
|
|
189
|
-
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
190
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
191
|
-
case "ObjectNotFoundException":
|
|
192
|
-
case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
|
|
193
|
-
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
194
|
-
case "ValidationException":
|
|
195
|
-
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
196
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
197
|
-
default:
|
|
198
|
-
const parsedBody = parsedOutput.body;
|
|
199
|
-
return throwDefaultError({
|
|
200
|
-
output,
|
|
201
|
-
parsedBody,
|
|
202
|
-
errorCode,
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
};
|
|
206
122
|
export const de_DescribeScalableTargetsCommand = async (output, context) => {
|
|
207
123
|
if (output.statusCode >= 300) {
|
|
208
|
-
return
|
|
124
|
+
return de_CommandError(output, context);
|
|
209
125
|
}
|
|
210
126
|
const data = await parseBody(output.body, context);
|
|
211
127
|
let contents = {};
|
|
@@ -216,37 +132,9 @@ export const de_DescribeScalableTargetsCommand = async (output, context) => {
|
|
|
216
132
|
};
|
|
217
133
|
return response;
|
|
218
134
|
};
|
|
219
|
-
const de_DescribeScalableTargetsCommandError = async (output, context) => {
|
|
220
|
-
const parsedOutput = {
|
|
221
|
-
...output,
|
|
222
|
-
body: await parseErrorBody(output.body, context),
|
|
223
|
-
};
|
|
224
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
225
|
-
switch (errorCode) {
|
|
226
|
-
case "ConcurrentUpdateException":
|
|
227
|
-
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
228
|
-
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
229
|
-
case "InternalServiceException":
|
|
230
|
-
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
231
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
232
|
-
case "InvalidNextTokenException":
|
|
233
|
-
case "com.amazonaws.applicationautoscaling#InvalidNextTokenException":
|
|
234
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
235
|
-
case "ValidationException":
|
|
236
|
-
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
237
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
238
|
-
default:
|
|
239
|
-
const parsedBody = parsedOutput.body;
|
|
240
|
-
return throwDefaultError({
|
|
241
|
-
output,
|
|
242
|
-
parsedBody,
|
|
243
|
-
errorCode,
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
};
|
|
247
135
|
export const de_DescribeScalingActivitiesCommand = async (output, context) => {
|
|
248
136
|
if (output.statusCode >= 300) {
|
|
249
|
-
return
|
|
137
|
+
return de_CommandError(output, context);
|
|
250
138
|
}
|
|
251
139
|
const data = await parseBody(output.body, context);
|
|
252
140
|
let contents = {};
|
|
@@ -257,37 +145,9 @@ export const de_DescribeScalingActivitiesCommand = async (output, context) => {
|
|
|
257
145
|
};
|
|
258
146
|
return response;
|
|
259
147
|
};
|
|
260
|
-
const de_DescribeScalingActivitiesCommandError = async (output, context) => {
|
|
261
|
-
const parsedOutput = {
|
|
262
|
-
...output,
|
|
263
|
-
body: await parseErrorBody(output.body, context),
|
|
264
|
-
};
|
|
265
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
266
|
-
switch (errorCode) {
|
|
267
|
-
case "ConcurrentUpdateException":
|
|
268
|
-
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
269
|
-
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
270
|
-
case "InternalServiceException":
|
|
271
|
-
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
272
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
273
|
-
case "InvalidNextTokenException":
|
|
274
|
-
case "com.amazonaws.applicationautoscaling#InvalidNextTokenException":
|
|
275
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
276
|
-
case "ValidationException":
|
|
277
|
-
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
278
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
279
|
-
default:
|
|
280
|
-
const parsedBody = parsedOutput.body;
|
|
281
|
-
return throwDefaultError({
|
|
282
|
-
output,
|
|
283
|
-
parsedBody,
|
|
284
|
-
errorCode,
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
148
|
export const de_DescribeScalingPoliciesCommand = async (output, context) => {
|
|
289
149
|
if (output.statusCode >= 300) {
|
|
290
|
-
return
|
|
150
|
+
return de_CommandError(output, context);
|
|
291
151
|
}
|
|
292
152
|
const data = await parseBody(output.body, context);
|
|
293
153
|
let contents = {};
|
|
@@ -298,40 +158,9 @@ export const de_DescribeScalingPoliciesCommand = async (output, context) => {
|
|
|
298
158
|
};
|
|
299
159
|
return response;
|
|
300
160
|
};
|
|
301
|
-
const de_DescribeScalingPoliciesCommandError = async (output, context) => {
|
|
302
|
-
const parsedOutput = {
|
|
303
|
-
...output,
|
|
304
|
-
body: await parseErrorBody(output.body, context),
|
|
305
|
-
};
|
|
306
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
307
|
-
switch (errorCode) {
|
|
308
|
-
case "ConcurrentUpdateException":
|
|
309
|
-
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
310
|
-
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
311
|
-
case "FailedResourceAccessException":
|
|
312
|
-
case "com.amazonaws.applicationautoscaling#FailedResourceAccessException":
|
|
313
|
-
throw await de_FailedResourceAccessExceptionRes(parsedOutput, context);
|
|
314
|
-
case "InternalServiceException":
|
|
315
|
-
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
316
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
317
|
-
case "InvalidNextTokenException":
|
|
318
|
-
case "com.amazonaws.applicationautoscaling#InvalidNextTokenException":
|
|
319
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
320
|
-
case "ValidationException":
|
|
321
|
-
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
322
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
323
|
-
default:
|
|
324
|
-
const parsedBody = parsedOutput.body;
|
|
325
|
-
return throwDefaultError({
|
|
326
|
-
output,
|
|
327
|
-
parsedBody,
|
|
328
|
-
errorCode,
|
|
329
|
-
});
|
|
330
|
-
}
|
|
331
|
-
};
|
|
332
161
|
export const de_DescribeScheduledActionsCommand = async (output, context) => {
|
|
333
162
|
if (output.statusCode >= 300) {
|
|
334
|
-
return
|
|
163
|
+
return de_CommandError(output, context);
|
|
335
164
|
}
|
|
336
165
|
const data = await parseBody(output.body, context);
|
|
337
166
|
let contents = {};
|
|
@@ -342,37 +171,9 @@ export const de_DescribeScheduledActionsCommand = async (output, context) => {
|
|
|
342
171
|
};
|
|
343
172
|
return response;
|
|
344
173
|
};
|
|
345
|
-
const de_DescribeScheduledActionsCommandError = async (output, context) => {
|
|
346
|
-
const parsedOutput = {
|
|
347
|
-
...output,
|
|
348
|
-
body: await parseErrorBody(output.body, context),
|
|
349
|
-
};
|
|
350
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
351
|
-
switch (errorCode) {
|
|
352
|
-
case "ConcurrentUpdateException":
|
|
353
|
-
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
354
|
-
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
355
|
-
case "InternalServiceException":
|
|
356
|
-
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
357
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
358
|
-
case "InvalidNextTokenException":
|
|
359
|
-
case "com.amazonaws.applicationautoscaling#InvalidNextTokenException":
|
|
360
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
361
|
-
case "ValidationException":
|
|
362
|
-
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
363
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
364
|
-
default:
|
|
365
|
-
const parsedBody = parsedOutput.body;
|
|
366
|
-
return throwDefaultError({
|
|
367
|
-
output,
|
|
368
|
-
parsedBody,
|
|
369
|
-
errorCode,
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
};
|
|
373
174
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
374
175
|
if (output.statusCode >= 300) {
|
|
375
|
-
return
|
|
176
|
+
return de_CommandError(output, context);
|
|
376
177
|
}
|
|
377
178
|
const data = await parseBody(output.body, context);
|
|
378
179
|
let contents = {};
|
|
@@ -383,28 +184,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
383
184
|
};
|
|
384
185
|
return response;
|
|
385
186
|
};
|
|
386
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
387
|
-
const parsedOutput = {
|
|
388
|
-
...output,
|
|
389
|
-
body: await parseErrorBody(output.body, context),
|
|
390
|
-
};
|
|
391
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
392
|
-
switch (errorCode) {
|
|
393
|
-
case "ResourceNotFoundException":
|
|
394
|
-
case "com.amazonaws.applicationautoscaling#ResourceNotFoundException":
|
|
395
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
396
|
-
default:
|
|
397
|
-
const parsedBody = parsedOutput.body;
|
|
398
|
-
return throwDefaultError({
|
|
399
|
-
output,
|
|
400
|
-
parsedBody,
|
|
401
|
-
errorCode,
|
|
402
|
-
});
|
|
403
|
-
}
|
|
404
|
-
};
|
|
405
187
|
export const de_PutScalingPolicyCommand = async (output, context) => {
|
|
406
188
|
if (output.statusCode >= 300) {
|
|
407
|
-
return
|
|
189
|
+
return de_CommandError(output, context);
|
|
408
190
|
}
|
|
409
191
|
const data = await parseBody(output.body, context);
|
|
410
192
|
let contents = {};
|
|
@@ -415,43 +197,9 @@ export const de_PutScalingPolicyCommand = async (output, context) => {
|
|
|
415
197
|
};
|
|
416
198
|
return response;
|
|
417
199
|
};
|
|
418
|
-
const de_PutScalingPolicyCommandError = async (output, context) => {
|
|
419
|
-
const parsedOutput = {
|
|
420
|
-
...output,
|
|
421
|
-
body: await parseErrorBody(output.body, context),
|
|
422
|
-
};
|
|
423
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
424
|
-
switch (errorCode) {
|
|
425
|
-
case "ConcurrentUpdateException":
|
|
426
|
-
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
427
|
-
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
428
|
-
case "FailedResourceAccessException":
|
|
429
|
-
case "com.amazonaws.applicationautoscaling#FailedResourceAccessException":
|
|
430
|
-
throw await de_FailedResourceAccessExceptionRes(parsedOutput, context);
|
|
431
|
-
case "InternalServiceException":
|
|
432
|
-
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
433
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
434
|
-
case "LimitExceededException":
|
|
435
|
-
case "com.amazonaws.applicationautoscaling#LimitExceededException":
|
|
436
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
437
|
-
case "ObjectNotFoundException":
|
|
438
|
-
case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
|
|
439
|
-
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
440
|
-
case "ValidationException":
|
|
441
|
-
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
442
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
443
|
-
default:
|
|
444
|
-
const parsedBody = parsedOutput.body;
|
|
445
|
-
return throwDefaultError({
|
|
446
|
-
output,
|
|
447
|
-
parsedBody,
|
|
448
|
-
errorCode,
|
|
449
|
-
});
|
|
450
|
-
}
|
|
451
|
-
};
|
|
452
200
|
export const de_PutScheduledActionCommand = async (output, context) => {
|
|
453
201
|
if (output.statusCode >= 300) {
|
|
454
|
-
return
|
|
202
|
+
return de_CommandError(output, context);
|
|
455
203
|
}
|
|
456
204
|
const data = await parseBody(output.body, context);
|
|
457
205
|
let contents = {};
|
|
@@ -462,40 +210,9 @@ export const de_PutScheduledActionCommand = async (output, context) => {
|
|
|
462
210
|
};
|
|
463
211
|
return response;
|
|
464
212
|
};
|
|
465
|
-
const de_PutScheduledActionCommandError = async (output, context) => {
|
|
466
|
-
const parsedOutput = {
|
|
467
|
-
...output,
|
|
468
|
-
body: await parseErrorBody(output.body, context),
|
|
469
|
-
};
|
|
470
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
471
|
-
switch (errorCode) {
|
|
472
|
-
case "ConcurrentUpdateException":
|
|
473
|
-
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
474
|
-
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
475
|
-
case "InternalServiceException":
|
|
476
|
-
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
477
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
478
|
-
case "LimitExceededException":
|
|
479
|
-
case "com.amazonaws.applicationautoscaling#LimitExceededException":
|
|
480
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
481
|
-
case "ObjectNotFoundException":
|
|
482
|
-
case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
|
|
483
|
-
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
484
|
-
case "ValidationException":
|
|
485
|
-
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
486
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
487
|
-
default:
|
|
488
|
-
const parsedBody = parsedOutput.body;
|
|
489
|
-
return throwDefaultError({
|
|
490
|
-
output,
|
|
491
|
-
parsedBody,
|
|
492
|
-
errorCode,
|
|
493
|
-
});
|
|
494
|
-
}
|
|
495
|
-
};
|
|
496
213
|
export const de_RegisterScalableTargetCommand = async (output, context) => {
|
|
497
214
|
if (output.statusCode >= 300) {
|
|
498
|
-
return
|
|
215
|
+
return de_CommandError(output, context);
|
|
499
216
|
}
|
|
500
217
|
const data = await parseBody(output.body, context);
|
|
501
218
|
let contents = {};
|
|
@@ -506,37 +223,9 @@ export const de_RegisterScalableTargetCommand = async (output, context) => {
|
|
|
506
223
|
};
|
|
507
224
|
return response;
|
|
508
225
|
};
|
|
509
|
-
const de_RegisterScalableTargetCommandError = async (output, context) => {
|
|
510
|
-
const parsedOutput = {
|
|
511
|
-
...output,
|
|
512
|
-
body: await parseErrorBody(output.body, context),
|
|
513
|
-
};
|
|
514
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
515
|
-
switch (errorCode) {
|
|
516
|
-
case "ConcurrentUpdateException":
|
|
517
|
-
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
518
|
-
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
519
|
-
case "InternalServiceException":
|
|
520
|
-
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
521
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
522
|
-
case "LimitExceededException":
|
|
523
|
-
case "com.amazonaws.applicationautoscaling#LimitExceededException":
|
|
524
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
525
|
-
case "ValidationException":
|
|
526
|
-
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
527
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
528
|
-
default:
|
|
529
|
-
const parsedBody = parsedOutput.body;
|
|
530
|
-
return throwDefaultError({
|
|
531
|
-
output,
|
|
532
|
-
parsedBody,
|
|
533
|
-
errorCode,
|
|
534
|
-
});
|
|
535
|
-
}
|
|
536
|
-
};
|
|
537
226
|
export const de_TagResourceCommand = async (output, context) => {
|
|
538
227
|
if (output.statusCode >= 300) {
|
|
539
|
-
return
|
|
228
|
+
return de_CommandError(output, context);
|
|
540
229
|
}
|
|
541
230
|
const data = await parseBody(output.body, context);
|
|
542
231
|
let contents = {};
|
|
@@ -547,34 +236,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
547
236
|
};
|
|
548
237
|
return response;
|
|
549
238
|
};
|
|
550
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
551
|
-
const parsedOutput = {
|
|
552
|
-
...output,
|
|
553
|
-
body: await parseErrorBody(output.body, context),
|
|
554
|
-
};
|
|
555
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
556
|
-
switch (errorCode) {
|
|
557
|
-
case "ResourceNotFoundException":
|
|
558
|
-
case "com.amazonaws.applicationautoscaling#ResourceNotFoundException":
|
|
559
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
560
|
-
case "TooManyTagsException":
|
|
561
|
-
case "com.amazonaws.applicationautoscaling#TooManyTagsException":
|
|
562
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
563
|
-
case "ValidationException":
|
|
564
|
-
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
565
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
566
|
-
default:
|
|
567
|
-
const parsedBody = parsedOutput.body;
|
|
568
|
-
return throwDefaultError({
|
|
569
|
-
output,
|
|
570
|
-
parsedBody,
|
|
571
|
-
errorCode,
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
};
|
|
575
239
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
576
240
|
if (output.statusCode >= 300) {
|
|
577
|
-
return
|
|
241
|
+
return de_CommandError(output, context);
|
|
578
242
|
}
|
|
579
243
|
const data = await parseBody(output.body, context);
|
|
580
244
|
let contents = {};
|
|
@@ -585,19 +249,40 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
585
249
|
};
|
|
586
250
|
return response;
|
|
587
251
|
};
|
|
588
|
-
const
|
|
252
|
+
const de_CommandError = async (output, context) => {
|
|
589
253
|
const parsedOutput = {
|
|
590
254
|
...output,
|
|
591
255
|
body: await parseErrorBody(output.body, context),
|
|
592
256
|
};
|
|
593
257
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
594
258
|
switch (errorCode) {
|
|
595
|
-
case "
|
|
596
|
-
case "com.amazonaws.applicationautoscaling#
|
|
597
|
-
throw await
|
|
259
|
+
case "ConcurrentUpdateException":
|
|
260
|
+
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
261
|
+
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
262
|
+
case "InternalServiceException":
|
|
263
|
+
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
264
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
265
|
+
case "ObjectNotFoundException":
|
|
266
|
+
case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
|
|
267
|
+
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
598
268
|
case "ValidationException":
|
|
599
269
|
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
600
270
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
271
|
+
case "InvalidNextTokenException":
|
|
272
|
+
case "com.amazonaws.applicationautoscaling#InvalidNextTokenException":
|
|
273
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
274
|
+
case "FailedResourceAccessException":
|
|
275
|
+
case "com.amazonaws.applicationautoscaling#FailedResourceAccessException":
|
|
276
|
+
throw await de_FailedResourceAccessExceptionRes(parsedOutput, context);
|
|
277
|
+
case "ResourceNotFoundException":
|
|
278
|
+
case "com.amazonaws.applicationautoscaling#ResourceNotFoundException":
|
|
279
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
280
|
+
case "LimitExceededException":
|
|
281
|
+
case "com.amazonaws.applicationautoscaling#LimitExceededException":
|
|
282
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
283
|
+
case "TooManyTagsException":
|
|
284
|
+
case "com.amazonaws.applicationautoscaling#TooManyTagsException":
|
|
285
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
601
286
|
default:
|
|
602
287
|
const parsedBody = parsedOutput.body;
|
|
603
288
|
return throwDefaultError({
|
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.507.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-application-auto-scaling",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|