@aws-sdk/client-config-service 3.504.0 → 3.509.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 +316 -2423
- package/dist-es/protocols/Aws_json1_1.js +290 -2397
- package/package.json +3 -3
|
@@ -556,7 +556,7 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
556
556
|
};
|
|
557
557
|
export const de_BatchGetAggregateResourceConfigCommand = async (output, context) => {
|
|
558
558
|
if (output.statusCode >= 300) {
|
|
559
|
-
return
|
|
559
|
+
return de_CommandError(output, context);
|
|
560
560
|
}
|
|
561
561
|
const data = await parseBody(output.body, context);
|
|
562
562
|
let contents = {};
|
|
@@ -567,31 +567,9 @@ export const de_BatchGetAggregateResourceConfigCommand = async (output, context)
|
|
|
567
567
|
};
|
|
568
568
|
return response;
|
|
569
569
|
};
|
|
570
|
-
const de_BatchGetAggregateResourceConfigCommandError = async (output, context) => {
|
|
571
|
-
const parsedOutput = {
|
|
572
|
-
...output,
|
|
573
|
-
body: await parseErrorBody(output.body, context),
|
|
574
|
-
};
|
|
575
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
576
|
-
switch (errorCode) {
|
|
577
|
-
case "NoSuchConfigurationAggregatorException":
|
|
578
|
-
case "com.amazonaws.configservice#NoSuchConfigurationAggregatorException":
|
|
579
|
-
throw await de_NoSuchConfigurationAggregatorExceptionRes(parsedOutput, context);
|
|
580
|
-
case "ValidationException":
|
|
581
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
582
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
583
|
-
default:
|
|
584
|
-
const parsedBody = parsedOutput.body;
|
|
585
|
-
return throwDefaultError({
|
|
586
|
-
output,
|
|
587
|
-
parsedBody,
|
|
588
|
-
errorCode,
|
|
589
|
-
});
|
|
590
|
-
}
|
|
591
|
-
};
|
|
592
570
|
export const de_BatchGetResourceConfigCommand = async (output, context) => {
|
|
593
571
|
if (output.statusCode >= 300) {
|
|
594
|
-
return
|
|
572
|
+
return de_CommandError(output, context);
|
|
595
573
|
}
|
|
596
574
|
const data = await parseBody(output.body, context);
|
|
597
575
|
let contents = {};
|
|
@@ -602,31 +580,9 @@ export const de_BatchGetResourceConfigCommand = async (output, context) => {
|
|
|
602
580
|
};
|
|
603
581
|
return response;
|
|
604
582
|
};
|
|
605
|
-
const de_BatchGetResourceConfigCommandError = async (output, context) => {
|
|
606
|
-
const parsedOutput = {
|
|
607
|
-
...output,
|
|
608
|
-
body: await parseErrorBody(output.body, context),
|
|
609
|
-
};
|
|
610
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
611
|
-
switch (errorCode) {
|
|
612
|
-
case "NoAvailableConfigurationRecorderException":
|
|
613
|
-
case "com.amazonaws.configservice#NoAvailableConfigurationRecorderException":
|
|
614
|
-
throw await de_NoAvailableConfigurationRecorderExceptionRes(parsedOutput, context);
|
|
615
|
-
case "ValidationException":
|
|
616
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
617
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
618
|
-
default:
|
|
619
|
-
const parsedBody = parsedOutput.body;
|
|
620
|
-
return throwDefaultError({
|
|
621
|
-
output,
|
|
622
|
-
parsedBody,
|
|
623
|
-
errorCode,
|
|
624
|
-
});
|
|
625
|
-
}
|
|
626
|
-
};
|
|
627
583
|
export const de_DeleteAggregationAuthorizationCommand = async (output, context) => {
|
|
628
584
|
if (output.statusCode >= 300) {
|
|
629
|
-
return
|
|
585
|
+
return de_CommandError(output, context);
|
|
630
586
|
}
|
|
631
587
|
await collectBody(output.body, context);
|
|
632
588
|
const response = {
|
|
@@ -634,28 +590,9 @@ export const de_DeleteAggregationAuthorizationCommand = async (output, context)
|
|
|
634
590
|
};
|
|
635
591
|
return response;
|
|
636
592
|
};
|
|
637
|
-
const de_DeleteAggregationAuthorizationCommandError = async (output, context) => {
|
|
638
|
-
const parsedOutput = {
|
|
639
|
-
...output,
|
|
640
|
-
body: await parseErrorBody(output.body, context),
|
|
641
|
-
};
|
|
642
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
643
|
-
switch (errorCode) {
|
|
644
|
-
case "InvalidParameterValueException":
|
|
645
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
646
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
647
|
-
default:
|
|
648
|
-
const parsedBody = parsedOutput.body;
|
|
649
|
-
return throwDefaultError({
|
|
650
|
-
output,
|
|
651
|
-
parsedBody,
|
|
652
|
-
errorCode,
|
|
653
|
-
});
|
|
654
|
-
}
|
|
655
|
-
};
|
|
656
593
|
export const de_DeleteConfigRuleCommand = async (output, context) => {
|
|
657
594
|
if (output.statusCode >= 300) {
|
|
658
|
-
return
|
|
595
|
+
return de_CommandError(output, context);
|
|
659
596
|
}
|
|
660
597
|
await collectBody(output.body, context);
|
|
661
598
|
const response = {
|
|
@@ -663,31 +600,9 @@ export const de_DeleteConfigRuleCommand = async (output, context) => {
|
|
|
663
600
|
};
|
|
664
601
|
return response;
|
|
665
602
|
};
|
|
666
|
-
const de_DeleteConfigRuleCommandError = async (output, context) => {
|
|
667
|
-
const parsedOutput = {
|
|
668
|
-
...output,
|
|
669
|
-
body: await parseErrorBody(output.body, context),
|
|
670
|
-
};
|
|
671
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
672
|
-
switch (errorCode) {
|
|
673
|
-
case "NoSuchConfigRuleException":
|
|
674
|
-
case "com.amazonaws.configservice#NoSuchConfigRuleException":
|
|
675
|
-
throw await de_NoSuchConfigRuleExceptionRes(parsedOutput, context);
|
|
676
|
-
case "ResourceInUseException":
|
|
677
|
-
case "com.amazonaws.configservice#ResourceInUseException":
|
|
678
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
679
|
-
default:
|
|
680
|
-
const parsedBody = parsedOutput.body;
|
|
681
|
-
return throwDefaultError({
|
|
682
|
-
output,
|
|
683
|
-
parsedBody,
|
|
684
|
-
errorCode,
|
|
685
|
-
});
|
|
686
|
-
}
|
|
687
|
-
};
|
|
688
603
|
export const de_DeleteConfigurationAggregatorCommand = async (output, context) => {
|
|
689
604
|
if (output.statusCode >= 300) {
|
|
690
|
-
return
|
|
605
|
+
return de_CommandError(output, context);
|
|
691
606
|
}
|
|
692
607
|
await collectBody(output.body, context);
|
|
693
608
|
const response = {
|
|
@@ -695,28 +610,9 @@ export const de_DeleteConfigurationAggregatorCommand = async (output, context) =
|
|
|
695
610
|
};
|
|
696
611
|
return response;
|
|
697
612
|
};
|
|
698
|
-
const de_DeleteConfigurationAggregatorCommandError = async (output, context) => {
|
|
699
|
-
const parsedOutput = {
|
|
700
|
-
...output,
|
|
701
|
-
body: await parseErrorBody(output.body, context),
|
|
702
|
-
};
|
|
703
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
704
|
-
switch (errorCode) {
|
|
705
|
-
case "NoSuchConfigurationAggregatorException":
|
|
706
|
-
case "com.amazonaws.configservice#NoSuchConfigurationAggregatorException":
|
|
707
|
-
throw await de_NoSuchConfigurationAggregatorExceptionRes(parsedOutput, context);
|
|
708
|
-
default:
|
|
709
|
-
const parsedBody = parsedOutput.body;
|
|
710
|
-
return throwDefaultError({
|
|
711
|
-
output,
|
|
712
|
-
parsedBody,
|
|
713
|
-
errorCode,
|
|
714
|
-
});
|
|
715
|
-
}
|
|
716
|
-
};
|
|
717
613
|
export const de_DeleteConfigurationRecorderCommand = async (output, context) => {
|
|
718
614
|
if (output.statusCode >= 300) {
|
|
719
|
-
return
|
|
615
|
+
return de_CommandError(output, context);
|
|
720
616
|
}
|
|
721
617
|
await collectBody(output.body, context);
|
|
722
618
|
const response = {
|
|
@@ -724,28 +620,9 @@ export const de_DeleteConfigurationRecorderCommand = async (output, context) =>
|
|
|
724
620
|
};
|
|
725
621
|
return response;
|
|
726
622
|
};
|
|
727
|
-
const de_DeleteConfigurationRecorderCommandError = async (output, context) => {
|
|
728
|
-
const parsedOutput = {
|
|
729
|
-
...output,
|
|
730
|
-
body: await parseErrorBody(output.body, context),
|
|
731
|
-
};
|
|
732
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
733
|
-
switch (errorCode) {
|
|
734
|
-
case "NoSuchConfigurationRecorderException":
|
|
735
|
-
case "com.amazonaws.configservice#NoSuchConfigurationRecorderException":
|
|
736
|
-
throw await de_NoSuchConfigurationRecorderExceptionRes(parsedOutput, context);
|
|
737
|
-
default:
|
|
738
|
-
const parsedBody = parsedOutput.body;
|
|
739
|
-
return throwDefaultError({
|
|
740
|
-
output,
|
|
741
|
-
parsedBody,
|
|
742
|
-
errorCode,
|
|
743
|
-
});
|
|
744
|
-
}
|
|
745
|
-
};
|
|
746
623
|
export const de_DeleteConformancePackCommand = async (output, context) => {
|
|
747
624
|
if (output.statusCode >= 300) {
|
|
748
|
-
return
|
|
625
|
+
return de_CommandError(output, context);
|
|
749
626
|
}
|
|
750
627
|
await collectBody(output.body, context);
|
|
751
628
|
const response = {
|
|
@@ -753,31 +630,9 @@ export const de_DeleteConformancePackCommand = async (output, context) => {
|
|
|
753
630
|
};
|
|
754
631
|
return response;
|
|
755
632
|
};
|
|
756
|
-
const de_DeleteConformancePackCommandError = async (output, context) => {
|
|
757
|
-
const parsedOutput = {
|
|
758
|
-
...output,
|
|
759
|
-
body: await parseErrorBody(output.body, context),
|
|
760
|
-
};
|
|
761
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
762
|
-
switch (errorCode) {
|
|
763
|
-
case "NoSuchConformancePackException":
|
|
764
|
-
case "com.amazonaws.configservice#NoSuchConformancePackException":
|
|
765
|
-
throw await de_NoSuchConformancePackExceptionRes(parsedOutput, context);
|
|
766
|
-
case "ResourceInUseException":
|
|
767
|
-
case "com.amazonaws.configservice#ResourceInUseException":
|
|
768
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
769
|
-
default:
|
|
770
|
-
const parsedBody = parsedOutput.body;
|
|
771
|
-
return throwDefaultError({
|
|
772
|
-
output,
|
|
773
|
-
parsedBody,
|
|
774
|
-
errorCode,
|
|
775
|
-
});
|
|
776
|
-
}
|
|
777
|
-
};
|
|
778
633
|
export const de_DeleteDeliveryChannelCommand = async (output, context) => {
|
|
779
634
|
if (output.statusCode >= 300) {
|
|
780
|
-
return
|
|
635
|
+
return de_CommandError(output, context);
|
|
781
636
|
}
|
|
782
637
|
await collectBody(output.body, context);
|
|
783
638
|
const response = {
|
|
@@ -785,31 +640,9 @@ export const de_DeleteDeliveryChannelCommand = async (output, context) => {
|
|
|
785
640
|
};
|
|
786
641
|
return response;
|
|
787
642
|
};
|
|
788
|
-
const de_DeleteDeliveryChannelCommandError = async (output, context) => {
|
|
789
|
-
const parsedOutput = {
|
|
790
|
-
...output,
|
|
791
|
-
body: await parseErrorBody(output.body, context),
|
|
792
|
-
};
|
|
793
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
794
|
-
switch (errorCode) {
|
|
795
|
-
case "LastDeliveryChannelDeleteFailedException":
|
|
796
|
-
case "com.amazonaws.configservice#LastDeliveryChannelDeleteFailedException":
|
|
797
|
-
throw await de_LastDeliveryChannelDeleteFailedExceptionRes(parsedOutput, context);
|
|
798
|
-
case "NoSuchDeliveryChannelException":
|
|
799
|
-
case "com.amazonaws.configservice#NoSuchDeliveryChannelException":
|
|
800
|
-
throw await de_NoSuchDeliveryChannelExceptionRes(parsedOutput, context);
|
|
801
|
-
default:
|
|
802
|
-
const parsedBody = parsedOutput.body;
|
|
803
|
-
return throwDefaultError({
|
|
804
|
-
output,
|
|
805
|
-
parsedBody,
|
|
806
|
-
errorCode,
|
|
807
|
-
});
|
|
808
|
-
}
|
|
809
|
-
};
|
|
810
643
|
export const de_DeleteEvaluationResultsCommand = async (output, context) => {
|
|
811
644
|
if (output.statusCode >= 300) {
|
|
812
|
-
return
|
|
645
|
+
return de_CommandError(output, context);
|
|
813
646
|
}
|
|
814
647
|
const data = await parseBody(output.body, context);
|
|
815
648
|
let contents = {};
|
|
@@ -820,31 +653,9 @@ export const de_DeleteEvaluationResultsCommand = async (output, context) => {
|
|
|
820
653
|
};
|
|
821
654
|
return response;
|
|
822
655
|
};
|
|
823
|
-
const de_DeleteEvaluationResultsCommandError = async (output, context) => {
|
|
824
|
-
const parsedOutput = {
|
|
825
|
-
...output,
|
|
826
|
-
body: await parseErrorBody(output.body, context),
|
|
827
|
-
};
|
|
828
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
829
|
-
switch (errorCode) {
|
|
830
|
-
case "NoSuchConfigRuleException":
|
|
831
|
-
case "com.amazonaws.configservice#NoSuchConfigRuleException":
|
|
832
|
-
throw await de_NoSuchConfigRuleExceptionRes(parsedOutput, context);
|
|
833
|
-
case "ResourceInUseException":
|
|
834
|
-
case "com.amazonaws.configservice#ResourceInUseException":
|
|
835
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
836
|
-
default:
|
|
837
|
-
const parsedBody = parsedOutput.body;
|
|
838
|
-
return throwDefaultError({
|
|
839
|
-
output,
|
|
840
|
-
parsedBody,
|
|
841
|
-
errorCode,
|
|
842
|
-
});
|
|
843
|
-
}
|
|
844
|
-
};
|
|
845
656
|
export const de_DeleteOrganizationConfigRuleCommand = async (output, context) => {
|
|
846
657
|
if (output.statusCode >= 300) {
|
|
847
|
-
return
|
|
658
|
+
return de_CommandError(output, context);
|
|
848
659
|
}
|
|
849
660
|
await collectBody(output.body, context);
|
|
850
661
|
const response = {
|
|
@@ -852,34 +663,9 @@ export const de_DeleteOrganizationConfigRuleCommand = async (output, context) =>
|
|
|
852
663
|
};
|
|
853
664
|
return response;
|
|
854
665
|
};
|
|
855
|
-
const de_DeleteOrganizationConfigRuleCommandError = async (output, context) => {
|
|
856
|
-
const parsedOutput = {
|
|
857
|
-
...output,
|
|
858
|
-
body: await parseErrorBody(output.body, context),
|
|
859
|
-
};
|
|
860
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
861
|
-
switch (errorCode) {
|
|
862
|
-
case "NoSuchOrganizationConfigRuleException":
|
|
863
|
-
case "com.amazonaws.configservice#NoSuchOrganizationConfigRuleException":
|
|
864
|
-
throw await de_NoSuchOrganizationConfigRuleExceptionRes(parsedOutput, context);
|
|
865
|
-
case "OrganizationAccessDeniedException":
|
|
866
|
-
case "com.amazonaws.configservice#OrganizationAccessDeniedException":
|
|
867
|
-
throw await de_OrganizationAccessDeniedExceptionRes(parsedOutput, context);
|
|
868
|
-
case "ResourceInUseException":
|
|
869
|
-
case "com.amazonaws.configservice#ResourceInUseException":
|
|
870
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
871
|
-
default:
|
|
872
|
-
const parsedBody = parsedOutput.body;
|
|
873
|
-
return throwDefaultError({
|
|
874
|
-
output,
|
|
875
|
-
parsedBody,
|
|
876
|
-
errorCode,
|
|
877
|
-
});
|
|
878
|
-
}
|
|
879
|
-
};
|
|
880
666
|
export const de_DeleteOrganizationConformancePackCommand = async (output, context) => {
|
|
881
667
|
if (output.statusCode >= 300) {
|
|
882
|
-
return
|
|
668
|
+
return de_CommandError(output, context);
|
|
883
669
|
}
|
|
884
670
|
await collectBody(output.body, context);
|
|
885
671
|
const response = {
|
|
@@ -887,34 +673,9 @@ export const de_DeleteOrganizationConformancePackCommand = async (output, contex
|
|
|
887
673
|
};
|
|
888
674
|
return response;
|
|
889
675
|
};
|
|
890
|
-
const de_DeleteOrganizationConformancePackCommandError = async (output, context) => {
|
|
891
|
-
const parsedOutput = {
|
|
892
|
-
...output,
|
|
893
|
-
body: await parseErrorBody(output.body, context),
|
|
894
|
-
};
|
|
895
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
896
|
-
switch (errorCode) {
|
|
897
|
-
case "NoSuchOrganizationConformancePackException":
|
|
898
|
-
case "com.amazonaws.configservice#NoSuchOrganizationConformancePackException":
|
|
899
|
-
throw await de_NoSuchOrganizationConformancePackExceptionRes(parsedOutput, context);
|
|
900
|
-
case "OrganizationAccessDeniedException":
|
|
901
|
-
case "com.amazonaws.configservice#OrganizationAccessDeniedException":
|
|
902
|
-
throw await de_OrganizationAccessDeniedExceptionRes(parsedOutput, context);
|
|
903
|
-
case "ResourceInUseException":
|
|
904
|
-
case "com.amazonaws.configservice#ResourceInUseException":
|
|
905
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
906
|
-
default:
|
|
907
|
-
const parsedBody = parsedOutput.body;
|
|
908
|
-
return throwDefaultError({
|
|
909
|
-
output,
|
|
910
|
-
parsedBody,
|
|
911
|
-
errorCode,
|
|
912
|
-
});
|
|
913
|
-
}
|
|
914
|
-
};
|
|
915
676
|
export const de_DeletePendingAggregationRequestCommand = async (output, context) => {
|
|
916
677
|
if (output.statusCode >= 300) {
|
|
917
|
-
return
|
|
678
|
+
return de_CommandError(output, context);
|
|
918
679
|
}
|
|
919
680
|
await collectBody(output.body, context);
|
|
920
681
|
const response = {
|
|
@@ -922,28 +683,22 @@ export const de_DeletePendingAggregationRequestCommand = async (output, context)
|
|
|
922
683
|
};
|
|
923
684
|
return response;
|
|
924
685
|
};
|
|
925
|
-
const
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
body: await parseErrorBody(output.body, context),
|
|
929
|
-
};
|
|
930
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
931
|
-
switch (errorCode) {
|
|
932
|
-
case "InvalidParameterValueException":
|
|
933
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
934
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
935
|
-
default:
|
|
936
|
-
const parsedBody = parsedOutput.body;
|
|
937
|
-
return throwDefaultError({
|
|
938
|
-
output,
|
|
939
|
-
parsedBody,
|
|
940
|
-
errorCode,
|
|
941
|
-
});
|
|
686
|
+
export const de_DeleteRemediationConfigurationCommand = async (output, context) => {
|
|
687
|
+
if (output.statusCode >= 300) {
|
|
688
|
+
return de_CommandError(output, context);
|
|
942
689
|
}
|
|
690
|
+
const data = await parseBody(output.body, context);
|
|
691
|
+
let contents = {};
|
|
692
|
+
contents = _json(data);
|
|
693
|
+
const response = {
|
|
694
|
+
$metadata: deserializeMetadata(output),
|
|
695
|
+
...contents,
|
|
696
|
+
};
|
|
697
|
+
return response;
|
|
943
698
|
};
|
|
944
|
-
export const
|
|
699
|
+
export const de_DeleteRemediationExceptionsCommand = async (output, context) => {
|
|
945
700
|
if (output.statusCode >= 300) {
|
|
946
|
-
return
|
|
701
|
+
return de_CommandError(output, context);
|
|
947
702
|
}
|
|
948
703
|
const data = await parseBody(output.body, context);
|
|
949
704
|
let contents = {};
|
|
@@ -954,69 +709,9 @@ export const de_DeleteRemediationConfigurationCommand = async (output, context)
|
|
|
954
709
|
};
|
|
955
710
|
return response;
|
|
956
711
|
};
|
|
957
|
-
const de_DeleteRemediationConfigurationCommandError = async (output, context) => {
|
|
958
|
-
const parsedOutput = {
|
|
959
|
-
...output,
|
|
960
|
-
body: await parseErrorBody(output.body, context),
|
|
961
|
-
};
|
|
962
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
963
|
-
switch (errorCode) {
|
|
964
|
-
case "InsufficientPermissionsException":
|
|
965
|
-
case "com.amazonaws.configservice#InsufficientPermissionsException":
|
|
966
|
-
throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
|
|
967
|
-
case "InvalidParameterValueException":
|
|
968
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
969
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
970
|
-
case "NoSuchRemediationConfigurationException":
|
|
971
|
-
case "com.amazonaws.configservice#NoSuchRemediationConfigurationException":
|
|
972
|
-
throw await de_NoSuchRemediationConfigurationExceptionRes(parsedOutput, context);
|
|
973
|
-
case "RemediationInProgressException":
|
|
974
|
-
case "com.amazonaws.configservice#RemediationInProgressException":
|
|
975
|
-
throw await de_RemediationInProgressExceptionRes(parsedOutput, context);
|
|
976
|
-
default:
|
|
977
|
-
const parsedBody = parsedOutput.body;
|
|
978
|
-
return throwDefaultError({
|
|
979
|
-
output,
|
|
980
|
-
parsedBody,
|
|
981
|
-
errorCode,
|
|
982
|
-
});
|
|
983
|
-
}
|
|
984
|
-
};
|
|
985
|
-
export const de_DeleteRemediationExceptionsCommand = async (output, context) => {
|
|
986
|
-
if (output.statusCode >= 300) {
|
|
987
|
-
return de_DeleteRemediationExceptionsCommandError(output, context);
|
|
988
|
-
}
|
|
989
|
-
const data = await parseBody(output.body, context);
|
|
990
|
-
let contents = {};
|
|
991
|
-
contents = _json(data);
|
|
992
|
-
const response = {
|
|
993
|
-
$metadata: deserializeMetadata(output),
|
|
994
|
-
...contents,
|
|
995
|
-
};
|
|
996
|
-
return response;
|
|
997
|
-
};
|
|
998
|
-
const de_DeleteRemediationExceptionsCommandError = async (output, context) => {
|
|
999
|
-
const parsedOutput = {
|
|
1000
|
-
...output,
|
|
1001
|
-
body: await parseErrorBody(output.body, context),
|
|
1002
|
-
};
|
|
1003
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1004
|
-
switch (errorCode) {
|
|
1005
|
-
case "NoSuchRemediationExceptionException":
|
|
1006
|
-
case "com.amazonaws.configservice#NoSuchRemediationExceptionException":
|
|
1007
|
-
throw await de_NoSuchRemediationExceptionExceptionRes(parsedOutput, context);
|
|
1008
|
-
default:
|
|
1009
|
-
const parsedBody = parsedOutput.body;
|
|
1010
|
-
return throwDefaultError({
|
|
1011
|
-
output,
|
|
1012
|
-
parsedBody,
|
|
1013
|
-
errorCode,
|
|
1014
|
-
});
|
|
1015
|
-
}
|
|
1016
|
-
};
|
|
1017
712
|
export const de_DeleteResourceConfigCommand = async (output, context) => {
|
|
1018
713
|
if (output.statusCode >= 300) {
|
|
1019
|
-
return
|
|
714
|
+
return de_CommandError(output, context);
|
|
1020
715
|
}
|
|
1021
716
|
await collectBody(output.body, context);
|
|
1022
717
|
const response = {
|
|
@@ -1024,31 +719,9 @@ export const de_DeleteResourceConfigCommand = async (output, context) => {
|
|
|
1024
719
|
};
|
|
1025
720
|
return response;
|
|
1026
721
|
};
|
|
1027
|
-
const de_DeleteResourceConfigCommandError = async (output, context) => {
|
|
1028
|
-
const parsedOutput = {
|
|
1029
|
-
...output,
|
|
1030
|
-
body: await parseErrorBody(output.body, context),
|
|
1031
|
-
};
|
|
1032
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1033
|
-
switch (errorCode) {
|
|
1034
|
-
case "NoRunningConfigurationRecorderException":
|
|
1035
|
-
case "com.amazonaws.configservice#NoRunningConfigurationRecorderException":
|
|
1036
|
-
throw await de_NoRunningConfigurationRecorderExceptionRes(parsedOutput, context);
|
|
1037
|
-
case "ValidationException":
|
|
1038
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
1039
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1040
|
-
default:
|
|
1041
|
-
const parsedBody = parsedOutput.body;
|
|
1042
|
-
return throwDefaultError({
|
|
1043
|
-
output,
|
|
1044
|
-
parsedBody,
|
|
1045
|
-
errorCode,
|
|
1046
|
-
});
|
|
1047
|
-
}
|
|
1048
|
-
};
|
|
1049
722
|
export const de_DeleteRetentionConfigurationCommand = async (output, context) => {
|
|
1050
723
|
if (output.statusCode >= 300) {
|
|
1051
|
-
return
|
|
724
|
+
return de_CommandError(output, context);
|
|
1052
725
|
}
|
|
1053
726
|
await collectBody(output.body, context);
|
|
1054
727
|
const response = {
|
|
@@ -1056,31 +729,9 @@ export const de_DeleteRetentionConfigurationCommand = async (output, context) =>
|
|
|
1056
729
|
};
|
|
1057
730
|
return response;
|
|
1058
731
|
};
|
|
1059
|
-
const de_DeleteRetentionConfigurationCommandError = async (output, context) => {
|
|
1060
|
-
const parsedOutput = {
|
|
1061
|
-
...output,
|
|
1062
|
-
body: await parseErrorBody(output.body, context),
|
|
1063
|
-
};
|
|
1064
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1065
|
-
switch (errorCode) {
|
|
1066
|
-
case "InvalidParameterValueException":
|
|
1067
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
1068
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1069
|
-
case "NoSuchRetentionConfigurationException":
|
|
1070
|
-
case "com.amazonaws.configservice#NoSuchRetentionConfigurationException":
|
|
1071
|
-
throw await de_NoSuchRetentionConfigurationExceptionRes(parsedOutput, context);
|
|
1072
|
-
default:
|
|
1073
|
-
const parsedBody = parsedOutput.body;
|
|
1074
|
-
return throwDefaultError({
|
|
1075
|
-
output,
|
|
1076
|
-
parsedBody,
|
|
1077
|
-
errorCode,
|
|
1078
|
-
});
|
|
1079
|
-
}
|
|
1080
|
-
};
|
|
1081
732
|
export const de_DeleteStoredQueryCommand = async (output, context) => {
|
|
1082
733
|
if (output.statusCode >= 300) {
|
|
1083
|
-
return
|
|
734
|
+
return de_CommandError(output, context);
|
|
1084
735
|
}
|
|
1085
736
|
const data = await parseBody(output.body, context);
|
|
1086
737
|
let contents = {};
|
|
@@ -1091,31 +742,9 @@ export const de_DeleteStoredQueryCommand = async (output, context) => {
|
|
|
1091
742
|
};
|
|
1092
743
|
return response;
|
|
1093
744
|
};
|
|
1094
|
-
const de_DeleteStoredQueryCommandError = async (output, context) => {
|
|
1095
|
-
const parsedOutput = {
|
|
1096
|
-
...output,
|
|
1097
|
-
body: await parseErrorBody(output.body, context),
|
|
1098
|
-
};
|
|
1099
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1100
|
-
switch (errorCode) {
|
|
1101
|
-
case "ResourceNotFoundException":
|
|
1102
|
-
case "com.amazonaws.configservice#ResourceNotFoundException":
|
|
1103
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "ValidationException":
|
|
1105
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
1106
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1107
|
-
default:
|
|
1108
|
-
const parsedBody = parsedOutput.body;
|
|
1109
|
-
return throwDefaultError({
|
|
1110
|
-
output,
|
|
1111
|
-
parsedBody,
|
|
1112
|
-
errorCode,
|
|
1113
|
-
});
|
|
1114
|
-
}
|
|
1115
|
-
};
|
|
1116
745
|
export const de_DeliverConfigSnapshotCommand = async (output, context) => {
|
|
1117
746
|
if (output.statusCode >= 300) {
|
|
1118
|
-
return
|
|
747
|
+
return de_CommandError(output, context);
|
|
1119
748
|
}
|
|
1120
749
|
const data = await parseBody(output.body, context);
|
|
1121
750
|
let contents = {};
|
|
@@ -1126,34 +755,9 @@ export const de_DeliverConfigSnapshotCommand = async (output, context) => {
|
|
|
1126
755
|
};
|
|
1127
756
|
return response;
|
|
1128
757
|
};
|
|
1129
|
-
const de_DeliverConfigSnapshotCommandError = async (output, context) => {
|
|
1130
|
-
const parsedOutput = {
|
|
1131
|
-
...output,
|
|
1132
|
-
body: await parseErrorBody(output.body, context),
|
|
1133
|
-
};
|
|
1134
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1135
|
-
switch (errorCode) {
|
|
1136
|
-
case "NoAvailableConfigurationRecorderException":
|
|
1137
|
-
case "com.amazonaws.configservice#NoAvailableConfigurationRecorderException":
|
|
1138
|
-
throw await de_NoAvailableConfigurationRecorderExceptionRes(parsedOutput, context);
|
|
1139
|
-
case "NoRunningConfigurationRecorderException":
|
|
1140
|
-
case "com.amazonaws.configservice#NoRunningConfigurationRecorderException":
|
|
1141
|
-
throw await de_NoRunningConfigurationRecorderExceptionRes(parsedOutput, context);
|
|
1142
|
-
case "NoSuchDeliveryChannelException":
|
|
1143
|
-
case "com.amazonaws.configservice#NoSuchDeliveryChannelException":
|
|
1144
|
-
throw await de_NoSuchDeliveryChannelExceptionRes(parsedOutput, context);
|
|
1145
|
-
default:
|
|
1146
|
-
const parsedBody = parsedOutput.body;
|
|
1147
|
-
return throwDefaultError({
|
|
1148
|
-
output,
|
|
1149
|
-
parsedBody,
|
|
1150
|
-
errorCode,
|
|
1151
|
-
});
|
|
1152
|
-
}
|
|
1153
|
-
};
|
|
1154
758
|
export const de_DescribeAggregateComplianceByConfigRulesCommand = async (output, context) => {
|
|
1155
759
|
if (output.statusCode >= 300) {
|
|
1156
|
-
return
|
|
760
|
+
return de_CommandError(output, context);
|
|
1157
761
|
}
|
|
1158
762
|
const data = await parseBody(output.body, context);
|
|
1159
763
|
let contents = {};
|
|
@@ -1164,37 +768,9 @@ export const de_DescribeAggregateComplianceByConfigRulesCommand = async (output,
|
|
|
1164
768
|
};
|
|
1165
769
|
return response;
|
|
1166
770
|
};
|
|
1167
|
-
const de_DescribeAggregateComplianceByConfigRulesCommandError = async (output, context) => {
|
|
1168
|
-
const parsedOutput = {
|
|
1169
|
-
...output,
|
|
1170
|
-
body: await parseErrorBody(output.body, context),
|
|
1171
|
-
};
|
|
1172
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1173
|
-
switch (errorCode) {
|
|
1174
|
-
case "InvalidLimitException":
|
|
1175
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
1176
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
1177
|
-
case "InvalidNextTokenException":
|
|
1178
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
1179
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1180
|
-
case "NoSuchConfigurationAggregatorException":
|
|
1181
|
-
case "com.amazonaws.configservice#NoSuchConfigurationAggregatorException":
|
|
1182
|
-
throw await de_NoSuchConfigurationAggregatorExceptionRes(parsedOutput, context);
|
|
1183
|
-
case "ValidationException":
|
|
1184
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
1185
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1186
|
-
default:
|
|
1187
|
-
const parsedBody = parsedOutput.body;
|
|
1188
|
-
return throwDefaultError({
|
|
1189
|
-
output,
|
|
1190
|
-
parsedBody,
|
|
1191
|
-
errorCode,
|
|
1192
|
-
});
|
|
1193
|
-
}
|
|
1194
|
-
};
|
|
1195
771
|
export const de_DescribeAggregateComplianceByConformancePacksCommand = async (output, context) => {
|
|
1196
772
|
if (output.statusCode >= 300) {
|
|
1197
|
-
return
|
|
773
|
+
return de_CommandError(output, context);
|
|
1198
774
|
}
|
|
1199
775
|
const data = await parseBody(output.body, context);
|
|
1200
776
|
let contents = {};
|
|
@@ -1205,37 +781,9 @@ export const de_DescribeAggregateComplianceByConformancePacksCommand = async (ou
|
|
|
1205
781
|
};
|
|
1206
782
|
return response;
|
|
1207
783
|
};
|
|
1208
|
-
const de_DescribeAggregateComplianceByConformancePacksCommandError = async (output, context) => {
|
|
1209
|
-
const parsedOutput = {
|
|
1210
|
-
...output,
|
|
1211
|
-
body: await parseErrorBody(output.body, context),
|
|
1212
|
-
};
|
|
1213
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1214
|
-
switch (errorCode) {
|
|
1215
|
-
case "InvalidLimitException":
|
|
1216
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
1217
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
1218
|
-
case "InvalidNextTokenException":
|
|
1219
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
1220
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1221
|
-
case "NoSuchConfigurationAggregatorException":
|
|
1222
|
-
case "com.amazonaws.configservice#NoSuchConfigurationAggregatorException":
|
|
1223
|
-
throw await de_NoSuchConfigurationAggregatorExceptionRes(parsedOutput, context);
|
|
1224
|
-
case "ValidationException":
|
|
1225
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
1226
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1227
|
-
default:
|
|
1228
|
-
const parsedBody = parsedOutput.body;
|
|
1229
|
-
return throwDefaultError({
|
|
1230
|
-
output,
|
|
1231
|
-
parsedBody,
|
|
1232
|
-
errorCode,
|
|
1233
|
-
});
|
|
1234
|
-
}
|
|
1235
|
-
};
|
|
1236
784
|
export const de_DescribeAggregationAuthorizationsCommand = async (output, context) => {
|
|
1237
785
|
if (output.statusCode >= 300) {
|
|
1238
|
-
return
|
|
786
|
+
return de_CommandError(output, context);
|
|
1239
787
|
}
|
|
1240
788
|
const data = await parseBody(output.body, context);
|
|
1241
789
|
let contents = {};
|
|
@@ -1246,34 +794,9 @@ export const de_DescribeAggregationAuthorizationsCommand = async (output, contex
|
|
|
1246
794
|
};
|
|
1247
795
|
return response;
|
|
1248
796
|
};
|
|
1249
|
-
const de_DescribeAggregationAuthorizationsCommandError = async (output, context) => {
|
|
1250
|
-
const parsedOutput = {
|
|
1251
|
-
...output,
|
|
1252
|
-
body: await parseErrorBody(output.body, context),
|
|
1253
|
-
};
|
|
1254
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1255
|
-
switch (errorCode) {
|
|
1256
|
-
case "InvalidLimitException":
|
|
1257
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
1258
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
1259
|
-
case "InvalidNextTokenException":
|
|
1260
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
1261
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1262
|
-
case "InvalidParameterValueException":
|
|
1263
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
1264
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1265
|
-
default:
|
|
1266
|
-
const parsedBody = parsedOutput.body;
|
|
1267
|
-
return throwDefaultError({
|
|
1268
|
-
output,
|
|
1269
|
-
parsedBody,
|
|
1270
|
-
errorCode,
|
|
1271
|
-
});
|
|
1272
|
-
}
|
|
1273
|
-
};
|
|
1274
797
|
export const de_DescribeComplianceByConfigRuleCommand = async (output, context) => {
|
|
1275
798
|
if (output.statusCode >= 300) {
|
|
1276
|
-
return
|
|
799
|
+
return de_CommandError(output, context);
|
|
1277
800
|
}
|
|
1278
801
|
const data = await parseBody(output.body, context);
|
|
1279
802
|
let contents = {};
|
|
@@ -1284,34 +807,9 @@ export const de_DescribeComplianceByConfigRuleCommand = async (output, context)
|
|
|
1284
807
|
};
|
|
1285
808
|
return response;
|
|
1286
809
|
};
|
|
1287
|
-
const de_DescribeComplianceByConfigRuleCommandError = async (output, context) => {
|
|
1288
|
-
const parsedOutput = {
|
|
1289
|
-
...output,
|
|
1290
|
-
body: await parseErrorBody(output.body, context),
|
|
1291
|
-
};
|
|
1292
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1293
|
-
switch (errorCode) {
|
|
1294
|
-
case "InvalidNextTokenException":
|
|
1295
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
1296
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1297
|
-
case "InvalidParameterValueException":
|
|
1298
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
1299
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1300
|
-
case "NoSuchConfigRuleException":
|
|
1301
|
-
case "com.amazonaws.configservice#NoSuchConfigRuleException":
|
|
1302
|
-
throw await de_NoSuchConfigRuleExceptionRes(parsedOutput, context);
|
|
1303
|
-
default:
|
|
1304
|
-
const parsedBody = parsedOutput.body;
|
|
1305
|
-
return throwDefaultError({
|
|
1306
|
-
output,
|
|
1307
|
-
parsedBody,
|
|
1308
|
-
errorCode,
|
|
1309
|
-
});
|
|
1310
|
-
}
|
|
1311
|
-
};
|
|
1312
810
|
export const de_DescribeComplianceByResourceCommand = async (output, context) => {
|
|
1313
811
|
if (output.statusCode >= 300) {
|
|
1314
|
-
return
|
|
812
|
+
return de_CommandError(output, context);
|
|
1315
813
|
}
|
|
1316
814
|
const data = await parseBody(output.body, context);
|
|
1317
815
|
let contents = {};
|
|
@@ -1322,31 +820,9 @@ export const de_DescribeComplianceByResourceCommand = async (output, context) =>
|
|
|
1322
820
|
};
|
|
1323
821
|
return response;
|
|
1324
822
|
};
|
|
1325
|
-
const de_DescribeComplianceByResourceCommandError = async (output, context) => {
|
|
1326
|
-
const parsedOutput = {
|
|
1327
|
-
...output,
|
|
1328
|
-
body: await parseErrorBody(output.body, context),
|
|
1329
|
-
};
|
|
1330
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1331
|
-
switch (errorCode) {
|
|
1332
|
-
case "InvalidNextTokenException":
|
|
1333
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
1334
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1335
|
-
case "InvalidParameterValueException":
|
|
1336
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
1337
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1338
|
-
default:
|
|
1339
|
-
const parsedBody = parsedOutput.body;
|
|
1340
|
-
return throwDefaultError({
|
|
1341
|
-
output,
|
|
1342
|
-
parsedBody,
|
|
1343
|
-
errorCode,
|
|
1344
|
-
});
|
|
1345
|
-
}
|
|
1346
|
-
};
|
|
1347
823
|
export const de_DescribeConfigRuleEvaluationStatusCommand = async (output, context) => {
|
|
1348
824
|
if (output.statusCode >= 300) {
|
|
1349
|
-
return
|
|
825
|
+
return de_CommandError(output, context);
|
|
1350
826
|
}
|
|
1351
827
|
const data = await parseBody(output.body, context);
|
|
1352
828
|
let contents = {};
|
|
@@ -1357,34 +833,9 @@ export const de_DescribeConfigRuleEvaluationStatusCommand = async (output, conte
|
|
|
1357
833
|
};
|
|
1358
834
|
return response;
|
|
1359
835
|
};
|
|
1360
|
-
const de_DescribeConfigRuleEvaluationStatusCommandError = async (output, context) => {
|
|
1361
|
-
const parsedOutput = {
|
|
1362
|
-
...output,
|
|
1363
|
-
body: await parseErrorBody(output.body, context),
|
|
1364
|
-
};
|
|
1365
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1366
|
-
switch (errorCode) {
|
|
1367
|
-
case "InvalidNextTokenException":
|
|
1368
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
1369
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1370
|
-
case "InvalidParameterValueException":
|
|
1371
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
1372
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1373
|
-
case "NoSuchConfigRuleException":
|
|
1374
|
-
case "com.amazonaws.configservice#NoSuchConfigRuleException":
|
|
1375
|
-
throw await de_NoSuchConfigRuleExceptionRes(parsedOutput, context);
|
|
1376
|
-
default:
|
|
1377
|
-
const parsedBody = parsedOutput.body;
|
|
1378
|
-
return throwDefaultError({
|
|
1379
|
-
output,
|
|
1380
|
-
parsedBody,
|
|
1381
|
-
errorCode,
|
|
1382
|
-
});
|
|
1383
|
-
}
|
|
1384
|
-
};
|
|
1385
836
|
export const de_DescribeConfigRulesCommand = async (output, context) => {
|
|
1386
837
|
if (output.statusCode >= 300) {
|
|
1387
|
-
return
|
|
838
|
+
return de_CommandError(output, context);
|
|
1388
839
|
}
|
|
1389
840
|
const data = await parseBody(output.body, context);
|
|
1390
841
|
let contents = {};
|
|
@@ -1395,34 +846,9 @@ export const de_DescribeConfigRulesCommand = async (output, context) => {
|
|
|
1395
846
|
};
|
|
1396
847
|
return response;
|
|
1397
848
|
};
|
|
1398
|
-
const de_DescribeConfigRulesCommandError = async (output, context) => {
|
|
1399
|
-
const parsedOutput = {
|
|
1400
|
-
...output,
|
|
1401
|
-
body: await parseErrorBody(output.body, context),
|
|
1402
|
-
};
|
|
1403
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1404
|
-
switch (errorCode) {
|
|
1405
|
-
case "InvalidNextTokenException":
|
|
1406
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
1407
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1408
|
-
case "InvalidParameterValueException":
|
|
1409
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
1410
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1411
|
-
case "NoSuchConfigRuleException":
|
|
1412
|
-
case "com.amazonaws.configservice#NoSuchConfigRuleException":
|
|
1413
|
-
throw await de_NoSuchConfigRuleExceptionRes(parsedOutput, context);
|
|
1414
|
-
default:
|
|
1415
|
-
const parsedBody = parsedOutput.body;
|
|
1416
|
-
return throwDefaultError({
|
|
1417
|
-
output,
|
|
1418
|
-
parsedBody,
|
|
1419
|
-
errorCode,
|
|
1420
|
-
});
|
|
1421
|
-
}
|
|
1422
|
-
};
|
|
1423
849
|
export const de_DescribeConfigurationAggregatorsCommand = async (output, context) => {
|
|
1424
850
|
if (output.statusCode >= 300) {
|
|
1425
|
-
return
|
|
851
|
+
return de_CommandError(output, context);
|
|
1426
852
|
}
|
|
1427
853
|
const data = await parseBody(output.body, context);
|
|
1428
854
|
let contents = {};
|
|
@@ -1433,37 +859,9 @@ export const de_DescribeConfigurationAggregatorsCommand = async (output, context
|
|
|
1433
859
|
};
|
|
1434
860
|
return response;
|
|
1435
861
|
};
|
|
1436
|
-
const de_DescribeConfigurationAggregatorsCommandError = async (output, context) => {
|
|
1437
|
-
const parsedOutput = {
|
|
1438
|
-
...output,
|
|
1439
|
-
body: await parseErrorBody(output.body, context),
|
|
1440
|
-
};
|
|
1441
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1442
|
-
switch (errorCode) {
|
|
1443
|
-
case "InvalidLimitException":
|
|
1444
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
1445
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
1446
|
-
case "InvalidNextTokenException":
|
|
1447
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
1448
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1449
|
-
case "InvalidParameterValueException":
|
|
1450
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
1451
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1452
|
-
case "NoSuchConfigurationAggregatorException":
|
|
1453
|
-
case "com.amazonaws.configservice#NoSuchConfigurationAggregatorException":
|
|
1454
|
-
throw await de_NoSuchConfigurationAggregatorExceptionRes(parsedOutput, context);
|
|
1455
|
-
default:
|
|
1456
|
-
const parsedBody = parsedOutput.body;
|
|
1457
|
-
return throwDefaultError({
|
|
1458
|
-
output,
|
|
1459
|
-
parsedBody,
|
|
1460
|
-
errorCode,
|
|
1461
|
-
});
|
|
1462
|
-
}
|
|
1463
|
-
};
|
|
1464
862
|
export const de_DescribeConfigurationAggregatorSourcesStatusCommand = async (output, context) => {
|
|
1465
863
|
if (output.statusCode >= 300) {
|
|
1466
|
-
return
|
|
864
|
+
return de_CommandError(output, context);
|
|
1467
865
|
}
|
|
1468
866
|
const data = await parseBody(output.body, context);
|
|
1469
867
|
let contents = {};
|
|
@@ -1474,37 +872,9 @@ export const de_DescribeConfigurationAggregatorSourcesStatusCommand = async (out
|
|
|
1474
872
|
};
|
|
1475
873
|
return response;
|
|
1476
874
|
};
|
|
1477
|
-
const de_DescribeConfigurationAggregatorSourcesStatusCommandError = async (output, context) => {
|
|
1478
|
-
const parsedOutput = {
|
|
1479
|
-
...output,
|
|
1480
|
-
body: await parseErrorBody(output.body, context),
|
|
1481
|
-
};
|
|
1482
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1483
|
-
switch (errorCode) {
|
|
1484
|
-
case "InvalidLimitException":
|
|
1485
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
1486
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
1487
|
-
case "InvalidNextTokenException":
|
|
1488
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
1489
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1490
|
-
case "InvalidParameterValueException":
|
|
1491
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
1492
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1493
|
-
case "NoSuchConfigurationAggregatorException":
|
|
1494
|
-
case "com.amazonaws.configservice#NoSuchConfigurationAggregatorException":
|
|
1495
|
-
throw await de_NoSuchConfigurationAggregatorExceptionRes(parsedOutput, context);
|
|
1496
|
-
default:
|
|
1497
|
-
const parsedBody = parsedOutput.body;
|
|
1498
|
-
return throwDefaultError({
|
|
1499
|
-
output,
|
|
1500
|
-
parsedBody,
|
|
1501
|
-
errorCode,
|
|
1502
|
-
});
|
|
1503
|
-
}
|
|
1504
|
-
};
|
|
1505
875
|
export const de_DescribeConfigurationRecordersCommand = async (output, context) => {
|
|
1506
876
|
if (output.statusCode >= 300) {
|
|
1507
|
-
return
|
|
877
|
+
return de_CommandError(output, context);
|
|
1508
878
|
}
|
|
1509
879
|
const data = await parseBody(output.body, context);
|
|
1510
880
|
let contents = {};
|
|
@@ -1515,28 +885,9 @@ export const de_DescribeConfigurationRecordersCommand = async (output, context)
|
|
|
1515
885
|
};
|
|
1516
886
|
return response;
|
|
1517
887
|
};
|
|
1518
|
-
const de_DescribeConfigurationRecordersCommandError = async (output, context) => {
|
|
1519
|
-
const parsedOutput = {
|
|
1520
|
-
...output,
|
|
1521
|
-
body: await parseErrorBody(output.body, context),
|
|
1522
|
-
};
|
|
1523
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1524
|
-
switch (errorCode) {
|
|
1525
|
-
case "NoSuchConfigurationRecorderException":
|
|
1526
|
-
case "com.amazonaws.configservice#NoSuchConfigurationRecorderException":
|
|
1527
|
-
throw await de_NoSuchConfigurationRecorderExceptionRes(parsedOutput, context);
|
|
1528
|
-
default:
|
|
1529
|
-
const parsedBody = parsedOutput.body;
|
|
1530
|
-
return throwDefaultError({
|
|
1531
|
-
output,
|
|
1532
|
-
parsedBody,
|
|
1533
|
-
errorCode,
|
|
1534
|
-
});
|
|
1535
|
-
}
|
|
1536
|
-
};
|
|
1537
888
|
export const de_DescribeConfigurationRecorderStatusCommand = async (output, context) => {
|
|
1538
889
|
if (output.statusCode >= 300) {
|
|
1539
|
-
return
|
|
890
|
+
return de_CommandError(output, context);
|
|
1540
891
|
}
|
|
1541
892
|
const data = await parseBody(output.body, context);
|
|
1542
893
|
let contents = {};
|
|
@@ -1547,28 +898,9 @@ export const de_DescribeConfigurationRecorderStatusCommand = async (output, cont
|
|
|
1547
898
|
};
|
|
1548
899
|
return response;
|
|
1549
900
|
};
|
|
1550
|
-
const de_DescribeConfigurationRecorderStatusCommandError = async (output, context) => {
|
|
1551
|
-
const parsedOutput = {
|
|
1552
|
-
...output,
|
|
1553
|
-
body: await parseErrorBody(output.body, context),
|
|
1554
|
-
};
|
|
1555
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1556
|
-
switch (errorCode) {
|
|
1557
|
-
case "NoSuchConfigurationRecorderException":
|
|
1558
|
-
case "com.amazonaws.configservice#NoSuchConfigurationRecorderException":
|
|
1559
|
-
throw await de_NoSuchConfigurationRecorderExceptionRes(parsedOutput, context);
|
|
1560
|
-
default:
|
|
1561
|
-
const parsedBody = parsedOutput.body;
|
|
1562
|
-
return throwDefaultError({
|
|
1563
|
-
output,
|
|
1564
|
-
parsedBody,
|
|
1565
|
-
errorCode,
|
|
1566
|
-
});
|
|
1567
|
-
}
|
|
1568
|
-
};
|
|
1569
901
|
export const de_DescribeConformancePackComplianceCommand = async (output, context) => {
|
|
1570
902
|
if (output.statusCode >= 300) {
|
|
1571
|
-
return
|
|
903
|
+
return de_CommandError(output, context);
|
|
1572
904
|
}
|
|
1573
905
|
const data = await parseBody(output.body, context);
|
|
1574
906
|
let contents = {};
|
|
@@ -1579,40 +911,9 @@ export const de_DescribeConformancePackComplianceCommand = async (output, contex
|
|
|
1579
911
|
};
|
|
1580
912
|
return response;
|
|
1581
913
|
};
|
|
1582
|
-
const de_DescribeConformancePackComplianceCommandError = async (output, context) => {
|
|
1583
|
-
const parsedOutput = {
|
|
1584
|
-
...output,
|
|
1585
|
-
body: await parseErrorBody(output.body, context),
|
|
1586
|
-
};
|
|
1587
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1588
|
-
switch (errorCode) {
|
|
1589
|
-
case "InvalidLimitException":
|
|
1590
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
1591
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "InvalidNextTokenException":
|
|
1593
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
1594
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "InvalidParameterValueException":
|
|
1596
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
1597
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1598
|
-
case "NoSuchConfigRuleInConformancePackException":
|
|
1599
|
-
case "com.amazonaws.configservice#NoSuchConfigRuleInConformancePackException":
|
|
1600
|
-
throw await de_NoSuchConfigRuleInConformancePackExceptionRes(parsedOutput, context);
|
|
1601
|
-
case "NoSuchConformancePackException":
|
|
1602
|
-
case "com.amazonaws.configservice#NoSuchConformancePackException":
|
|
1603
|
-
throw await de_NoSuchConformancePackExceptionRes(parsedOutput, context);
|
|
1604
|
-
default:
|
|
1605
|
-
const parsedBody = parsedOutput.body;
|
|
1606
|
-
return throwDefaultError({
|
|
1607
|
-
output,
|
|
1608
|
-
parsedBody,
|
|
1609
|
-
errorCode,
|
|
1610
|
-
});
|
|
1611
|
-
}
|
|
1612
|
-
};
|
|
1613
914
|
export const de_DescribeConformancePacksCommand = async (output, context) => {
|
|
1614
915
|
if (output.statusCode >= 300) {
|
|
1615
|
-
return
|
|
916
|
+
return de_CommandError(output, context);
|
|
1616
917
|
}
|
|
1617
918
|
const data = await parseBody(output.body, context);
|
|
1618
919
|
let contents = {};
|
|
@@ -1623,37 +924,9 @@ export const de_DescribeConformancePacksCommand = async (output, context) => {
|
|
|
1623
924
|
};
|
|
1624
925
|
return response;
|
|
1625
926
|
};
|
|
1626
|
-
const de_DescribeConformancePacksCommandError = async (output, context) => {
|
|
1627
|
-
const parsedOutput = {
|
|
1628
|
-
...output,
|
|
1629
|
-
body: await parseErrorBody(output.body, context),
|
|
1630
|
-
};
|
|
1631
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1632
|
-
switch (errorCode) {
|
|
1633
|
-
case "InvalidLimitException":
|
|
1634
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
1635
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
1636
|
-
case "InvalidNextTokenException":
|
|
1637
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
1638
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1639
|
-
case "InvalidParameterValueException":
|
|
1640
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
1641
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1642
|
-
case "NoSuchConformancePackException":
|
|
1643
|
-
case "com.amazonaws.configservice#NoSuchConformancePackException":
|
|
1644
|
-
throw await de_NoSuchConformancePackExceptionRes(parsedOutput, context);
|
|
1645
|
-
default:
|
|
1646
|
-
const parsedBody = parsedOutput.body;
|
|
1647
|
-
return throwDefaultError({
|
|
1648
|
-
output,
|
|
1649
|
-
parsedBody,
|
|
1650
|
-
errorCode,
|
|
1651
|
-
});
|
|
1652
|
-
}
|
|
1653
|
-
};
|
|
1654
927
|
export const de_DescribeConformancePackStatusCommand = async (output, context) => {
|
|
1655
928
|
if (output.statusCode >= 300) {
|
|
1656
|
-
return
|
|
929
|
+
return de_CommandError(output, context);
|
|
1657
930
|
}
|
|
1658
931
|
const data = await parseBody(output.body, context);
|
|
1659
932
|
let contents = {};
|
|
@@ -1664,34 +937,9 @@ export const de_DescribeConformancePackStatusCommand = async (output, context) =
|
|
|
1664
937
|
};
|
|
1665
938
|
return response;
|
|
1666
939
|
};
|
|
1667
|
-
const de_DescribeConformancePackStatusCommandError = async (output, context) => {
|
|
1668
|
-
const parsedOutput = {
|
|
1669
|
-
...output,
|
|
1670
|
-
body: await parseErrorBody(output.body, context),
|
|
1671
|
-
};
|
|
1672
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1673
|
-
switch (errorCode) {
|
|
1674
|
-
case "InvalidLimitException":
|
|
1675
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
1676
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
1677
|
-
case "InvalidNextTokenException":
|
|
1678
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
1679
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1680
|
-
case "InvalidParameterValueException":
|
|
1681
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
1682
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1683
|
-
default:
|
|
1684
|
-
const parsedBody = parsedOutput.body;
|
|
1685
|
-
return throwDefaultError({
|
|
1686
|
-
output,
|
|
1687
|
-
parsedBody,
|
|
1688
|
-
errorCode,
|
|
1689
|
-
});
|
|
1690
|
-
}
|
|
1691
|
-
};
|
|
1692
940
|
export const de_DescribeDeliveryChannelsCommand = async (output, context) => {
|
|
1693
941
|
if (output.statusCode >= 300) {
|
|
1694
|
-
return
|
|
942
|
+
return de_CommandError(output, context);
|
|
1695
943
|
}
|
|
1696
944
|
const data = await parseBody(output.body, context);
|
|
1697
945
|
let contents = {};
|
|
@@ -1702,28 +950,9 @@ export const de_DescribeDeliveryChannelsCommand = async (output, context) => {
|
|
|
1702
950
|
};
|
|
1703
951
|
return response;
|
|
1704
952
|
};
|
|
1705
|
-
const de_DescribeDeliveryChannelsCommandError = async (output, context) => {
|
|
1706
|
-
const parsedOutput = {
|
|
1707
|
-
...output,
|
|
1708
|
-
body: await parseErrorBody(output.body, context),
|
|
1709
|
-
};
|
|
1710
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1711
|
-
switch (errorCode) {
|
|
1712
|
-
case "NoSuchDeliveryChannelException":
|
|
1713
|
-
case "com.amazonaws.configservice#NoSuchDeliveryChannelException":
|
|
1714
|
-
throw await de_NoSuchDeliveryChannelExceptionRes(parsedOutput, context);
|
|
1715
|
-
default:
|
|
1716
|
-
const parsedBody = parsedOutput.body;
|
|
1717
|
-
return throwDefaultError({
|
|
1718
|
-
output,
|
|
1719
|
-
parsedBody,
|
|
1720
|
-
errorCode,
|
|
1721
|
-
});
|
|
1722
|
-
}
|
|
1723
|
-
};
|
|
1724
953
|
export const de_DescribeDeliveryChannelStatusCommand = async (output, context) => {
|
|
1725
954
|
if (output.statusCode >= 300) {
|
|
1726
|
-
return
|
|
955
|
+
return de_CommandError(output, context);
|
|
1727
956
|
}
|
|
1728
957
|
const data = await parseBody(output.body, context);
|
|
1729
958
|
let contents = {};
|
|
@@ -1734,28 +963,9 @@ export const de_DescribeDeliveryChannelStatusCommand = async (output, context) =
|
|
|
1734
963
|
};
|
|
1735
964
|
return response;
|
|
1736
965
|
};
|
|
1737
|
-
const de_DescribeDeliveryChannelStatusCommandError = async (output, context) => {
|
|
1738
|
-
const parsedOutput = {
|
|
1739
|
-
...output,
|
|
1740
|
-
body: await parseErrorBody(output.body, context),
|
|
1741
|
-
};
|
|
1742
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1743
|
-
switch (errorCode) {
|
|
1744
|
-
case "NoSuchDeliveryChannelException":
|
|
1745
|
-
case "com.amazonaws.configservice#NoSuchDeliveryChannelException":
|
|
1746
|
-
throw await de_NoSuchDeliveryChannelExceptionRes(parsedOutput, context);
|
|
1747
|
-
default:
|
|
1748
|
-
const parsedBody = parsedOutput.body;
|
|
1749
|
-
return throwDefaultError({
|
|
1750
|
-
output,
|
|
1751
|
-
parsedBody,
|
|
1752
|
-
errorCode,
|
|
1753
|
-
});
|
|
1754
|
-
}
|
|
1755
|
-
};
|
|
1756
966
|
export const de_DescribeOrganizationConfigRulesCommand = async (output, context) => {
|
|
1757
967
|
if (output.statusCode >= 300) {
|
|
1758
|
-
return
|
|
968
|
+
return de_CommandError(output, context);
|
|
1759
969
|
}
|
|
1760
970
|
const data = await parseBody(output.body, context);
|
|
1761
971
|
let contents = {};
|
|
@@ -1766,37 +976,9 @@ export const de_DescribeOrganizationConfigRulesCommand = async (output, context)
|
|
|
1766
976
|
};
|
|
1767
977
|
return response;
|
|
1768
978
|
};
|
|
1769
|
-
const de_DescribeOrganizationConfigRulesCommandError = async (output, context) => {
|
|
1770
|
-
const parsedOutput = {
|
|
1771
|
-
...output,
|
|
1772
|
-
body: await parseErrorBody(output.body, context),
|
|
1773
|
-
};
|
|
1774
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1775
|
-
switch (errorCode) {
|
|
1776
|
-
case "InvalidLimitException":
|
|
1777
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
1778
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
1779
|
-
case "InvalidNextTokenException":
|
|
1780
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
1781
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1782
|
-
case "NoSuchOrganizationConfigRuleException":
|
|
1783
|
-
case "com.amazonaws.configservice#NoSuchOrganizationConfigRuleException":
|
|
1784
|
-
throw await de_NoSuchOrganizationConfigRuleExceptionRes(parsedOutput, context);
|
|
1785
|
-
case "OrganizationAccessDeniedException":
|
|
1786
|
-
case "com.amazonaws.configservice#OrganizationAccessDeniedException":
|
|
1787
|
-
throw await de_OrganizationAccessDeniedExceptionRes(parsedOutput, context);
|
|
1788
|
-
default:
|
|
1789
|
-
const parsedBody = parsedOutput.body;
|
|
1790
|
-
return throwDefaultError({
|
|
1791
|
-
output,
|
|
1792
|
-
parsedBody,
|
|
1793
|
-
errorCode,
|
|
1794
|
-
});
|
|
1795
|
-
}
|
|
1796
|
-
};
|
|
1797
979
|
export const de_DescribeOrganizationConfigRuleStatusesCommand = async (output, context) => {
|
|
1798
980
|
if (output.statusCode >= 300) {
|
|
1799
|
-
return
|
|
981
|
+
return de_CommandError(output, context);
|
|
1800
982
|
}
|
|
1801
983
|
const data = await parseBody(output.body, context);
|
|
1802
984
|
let contents = {};
|
|
@@ -1807,37 +989,9 @@ export const de_DescribeOrganizationConfigRuleStatusesCommand = async (output, c
|
|
|
1807
989
|
};
|
|
1808
990
|
return response;
|
|
1809
991
|
};
|
|
1810
|
-
const de_DescribeOrganizationConfigRuleStatusesCommandError = async (output, context) => {
|
|
1811
|
-
const parsedOutput = {
|
|
1812
|
-
...output,
|
|
1813
|
-
body: await parseErrorBody(output.body, context),
|
|
1814
|
-
};
|
|
1815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1816
|
-
switch (errorCode) {
|
|
1817
|
-
case "InvalidLimitException":
|
|
1818
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
1819
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
1820
|
-
case "InvalidNextTokenException":
|
|
1821
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
1822
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1823
|
-
case "NoSuchOrganizationConfigRuleException":
|
|
1824
|
-
case "com.amazonaws.configservice#NoSuchOrganizationConfigRuleException":
|
|
1825
|
-
throw await de_NoSuchOrganizationConfigRuleExceptionRes(parsedOutput, context);
|
|
1826
|
-
case "OrganizationAccessDeniedException":
|
|
1827
|
-
case "com.amazonaws.configservice#OrganizationAccessDeniedException":
|
|
1828
|
-
throw await de_OrganizationAccessDeniedExceptionRes(parsedOutput, context);
|
|
1829
|
-
default:
|
|
1830
|
-
const parsedBody = parsedOutput.body;
|
|
1831
|
-
return throwDefaultError({
|
|
1832
|
-
output,
|
|
1833
|
-
parsedBody,
|
|
1834
|
-
errorCode,
|
|
1835
|
-
});
|
|
1836
|
-
}
|
|
1837
|
-
};
|
|
1838
992
|
export const de_DescribeOrganizationConformancePacksCommand = async (output, context) => {
|
|
1839
993
|
if (output.statusCode >= 300) {
|
|
1840
|
-
return
|
|
994
|
+
return de_CommandError(output, context);
|
|
1841
995
|
}
|
|
1842
996
|
const data = await parseBody(output.body, context);
|
|
1843
997
|
let contents = {};
|
|
@@ -1848,37 +1002,9 @@ export const de_DescribeOrganizationConformancePacksCommand = async (output, con
|
|
|
1848
1002
|
};
|
|
1849
1003
|
return response;
|
|
1850
1004
|
};
|
|
1851
|
-
const de_DescribeOrganizationConformancePacksCommandError = async (output, context) => {
|
|
1852
|
-
const parsedOutput = {
|
|
1853
|
-
...output,
|
|
1854
|
-
body: await parseErrorBody(output.body, context),
|
|
1855
|
-
};
|
|
1856
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1857
|
-
switch (errorCode) {
|
|
1858
|
-
case "InvalidLimitException":
|
|
1859
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
1860
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
1861
|
-
case "InvalidNextTokenException":
|
|
1862
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
1863
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1864
|
-
case "NoSuchOrganizationConformancePackException":
|
|
1865
|
-
case "com.amazonaws.configservice#NoSuchOrganizationConformancePackException":
|
|
1866
|
-
throw await de_NoSuchOrganizationConformancePackExceptionRes(parsedOutput, context);
|
|
1867
|
-
case "OrganizationAccessDeniedException":
|
|
1868
|
-
case "com.amazonaws.configservice#OrganizationAccessDeniedException":
|
|
1869
|
-
throw await de_OrganizationAccessDeniedExceptionRes(parsedOutput, context);
|
|
1870
|
-
default:
|
|
1871
|
-
const parsedBody = parsedOutput.body;
|
|
1872
|
-
return throwDefaultError({
|
|
1873
|
-
output,
|
|
1874
|
-
parsedBody,
|
|
1875
|
-
errorCode,
|
|
1876
|
-
});
|
|
1877
|
-
}
|
|
1878
|
-
};
|
|
1879
1005
|
export const de_DescribeOrganizationConformancePackStatusesCommand = async (output, context) => {
|
|
1880
1006
|
if (output.statusCode >= 300) {
|
|
1881
|
-
return
|
|
1007
|
+
return de_CommandError(output, context);
|
|
1882
1008
|
}
|
|
1883
1009
|
const data = await parseBody(output.body, context);
|
|
1884
1010
|
let contents = {};
|
|
@@ -1889,37 +1015,9 @@ export const de_DescribeOrganizationConformancePackStatusesCommand = async (outp
|
|
|
1889
1015
|
};
|
|
1890
1016
|
return response;
|
|
1891
1017
|
};
|
|
1892
|
-
const de_DescribeOrganizationConformancePackStatusesCommandError = async (output, context) => {
|
|
1893
|
-
const parsedOutput = {
|
|
1894
|
-
...output,
|
|
1895
|
-
body: await parseErrorBody(output.body, context),
|
|
1896
|
-
};
|
|
1897
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1898
|
-
switch (errorCode) {
|
|
1899
|
-
case "InvalidLimitException":
|
|
1900
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
1901
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
1902
|
-
case "InvalidNextTokenException":
|
|
1903
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
1904
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1905
|
-
case "NoSuchOrganizationConformancePackException":
|
|
1906
|
-
case "com.amazonaws.configservice#NoSuchOrganizationConformancePackException":
|
|
1907
|
-
throw await de_NoSuchOrganizationConformancePackExceptionRes(parsedOutput, context);
|
|
1908
|
-
case "OrganizationAccessDeniedException":
|
|
1909
|
-
case "com.amazonaws.configservice#OrganizationAccessDeniedException":
|
|
1910
|
-
throw await de_OrganizationAccessDeniedExceptionRes(parsedOutput, context);
|
|
1911
|
-
default:
|
|
1912
|
-
const parsedBody = parsedOutput.body;
|
|
1913
|
-
return throwDefaultError({
|
|
1914
|
-
output,
|
|
1915
|
-
parsedBody,
|
|
1916
|
-
errorCode,
|
|
1917
|
-
});
|
|
1918
|
-
}
|
|
1919
|
-
};
|
|
1920
1018
|
export const de_DescribePendingAggregationRequestsCommand = async (output, context) => {
|
|
1921
1019
|
if (output.statusCode >= 300) {
|
|
1922
|
-
return
|
|
1020
|
+
return de_CommandError(output, context);
|
|
1923
1021
|
}
|
|
1924
1022
|
const data = await parseBody(output.body, context);
|
|
1925
1023
|
let contents = {};
|
|
@@ -1930,34 +1028,9 @@ export const de_DescribePendingAggregationRequestsCommand = async (output, conte
|
|
|
1930
1028
|
};
|
|
1931
1029
|
return response;
|
|
1932
1030
|
};
|
|
1933
|
-
const de_DescribePendingAggregationRequestsCommandError = async (output, context) => {
|
|
1934
|
-
const parsedOutput = {
|
|
1935
|
-
...output,
|
|
1936
|
-
body: await parseErrorBody(output.body, context),
|
|
1937
|
-
};
|
|
1938
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1939
|
-
switch (errorCode) {
|
|
1940
|
-
case "InvalidLimitException":
|
|
1941
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
1942
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
1943
|
-
case "InvalidNextTokenException":
|
|
1944
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
1945
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1946
|
-
case "InvalidParameterValueException":
|
|
1947
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
1948
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1949
|
-
default:
|
|
1950
|
-
const parsedBody = parsedOutput.body;
|
|
1951
|
-
return throwDefaultError({
|
|
1952
|
-
output,
|
|
1953
|
-
parsedBody,
|
|
1954
|
-
errorCode,
|
|
1955
|
-
});
|
|
1956
|
-
}
|
|
1957
|
-
};
|
|
1958
1031
|
export const de_DescribeRemediationConfigurationsCommand = async (output, context) => {
|
|
1959
1032
|
if (output.statusCode >= 300) {
|
|
1960
|
-
return
|
|
1033
|
+
return de_CommandError(output, context);
|
|
1961
1034
|
}
|
|
1962
1035
|
const data = await parseBody(output.body, context);
|
|
1963
1036
|
let contents = {};
|
|
@@ -1968,22 +1041,9 @@ export const de_DescribeRemediationConfigurationsCommand = async (output, contex
|
|
|
1968
1041
|
};
|
|
1969
1042
|
return response;
|
|
1970
1043
|
};
|
|
1971
|
-
const de_DescribeRemediationConfigurationsCommandError = async (output, context) => {
|
|
1972
|
-
const parsedOutput = {
|
|
1973
|
-
...output,
|
|
1974
|
-
body: await parseErrorBody(output.body, context),
|
|
1975
|
-
};
|
|
1976
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1977
|
-
const parsedBody = parsedOutput.body;
|
|
1978
|
-
return throwDefaultError({
|
|
1979
|
-
output,
|
|
1980
|
-
parsedBody,
|
|
1981
|
-
errorCode,
|
|
1982
|
-
});
|
|
1983
|
-
};
|
|
1984
1044
|
export const de_DescribeRemediationExceptionsCommand = async (output, context) => {
|
|
1985
1045
|
if (output.statusCode >= 300) {
|
|
1986
|
-
return
|
|
1046
|
+
return de_CommandError(output, context);
|
|
1987
1047
|
}
|
|
1988
1048
|
const data = await parseBody(output.body, context);
|
|
1989
1049
|
let contents = {};
|
|
@@ -1994,31 +1054,9 @@ export const de_DescribeRemediationExceptionsCommand = async (output, context) =
|
|
|
1994
1054
|
};
|
|
1995
1055
|
return response;
|
|
1996
1056
|
};
|
|
1997
|
-
const de_DescribeRemediationExceptionsCommandError = async (output, context) => {
|
|
1998
|
-
const parsedOutput = {
|
|
1999
|
-
...output,
|
|
2000
|
-
body: await parseErrorBody(output.body, context),
|
|
2001
|
-
};
|
|
2002
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2003
|
-
switch (errorCode) {
|
|
2004
|
-
case "InvalidNextTokenException":
|
|
2005
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
2006
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2007
|
-
case "InvalidParameterValueException":
|
|
2008
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
2009
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2010
|
-
default:
|
|
2011
|
-
const parsedBody = parsedOutput.body;
|
|
2012
|
-
return throwDefaultError({
|
|
2013
|
-
output,
|
|
2014
|
-
parsedBody,
|
|
2015
|
-
errorCode,
|
|
2016
|
-
});
|
|
2017
|
-
}
|
|
2018
|
-
};
|
|
2019
1057
|
export const de_DescribeRemediationExecutionStatusCommand = async (output, context) => {
|
|
2020
1058
|
if (output.statusCode >= 300) {
|
|
2021
|
-
return
|
|
1059
|
+
return de_CommandError(output, context);
|
|
2022
1060
|
}
|
|
2023
1061
|
const data = await parseBody(output.body, context);
|
|
2024
1062
|
let contents = {};
|
|
@@ -2029,34 +1067,9 @@ export const de_DescribeRemediationExecutionStatusCommand = async (output, conte
|
|
|
2029
1067
|
};
|
|
2030
1068
|
return response;
|
|
2031
1069
|
};
|
|
2032
|
-
const de_DescribeRemediationExecutionStatusCommandError = async (output, context) => {
|
|
2033
|
-
const parsedOutput = {
|
|
2034
|
-
...output,
|
|
2035
|
-
body: await parseErrorBody(output.body, context),
|
|
2036
|
-
};
|
|
2037
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2038
|
-
switch (errorCode) {
|
|
2039
|
-
case "InvalidNextTokenException":
|
|
2040
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
2041
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2042
|
-
case "InvalidParameterValueException":
|
|
2043
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
2044
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2045
|
-
case "NoSuchRemediationConfigurationException":
|
|
2046
|
-
case "com.amazonaws.configservice#NoSuchRemediationConfigurationException":
|
|
2047
|
-
throw await de_NoSuchRemediationConfigurationExceptionRes(parsedOutput, context);
|
|
2048
|
-
default:
|
|
2049
|
-
const parsedBody = parsedOutput.body;
|
|
2050
|
-
return throwDefaultError({
|
|
2051
|
-
output,
|
|
2052
|
-
parsedBody,
|
|
2053
|
-
errorCode,
|
|
2054
|
-
});
|
|
2055
|
-
}
|
|
2056
|
-
};
|
|
2057
1070
|
export const de_DescribeRetentionConfigurationsCommand = async (output, context) => {
|
|
2058
1071
|
if (output.statusCode >= 300) {
|
|
2059
|
-
return
|
|
1072
|
+
return de_CommandError(output, context);
|
|
2060
1073
|
}
|
|
2061
1074
|
const data = await parseBody(output.body, context);
|
|
2062
1075
|
let contents = {};
|
|
@@ -2067,34 +1080,9 @@ export const de_DescribeRetentionConfigurationsCommand = async (output, context)
|
|
|
2067
1080
|
};
|
|
2068
1081
|
return response;
|
|
2069
1082
|
};
|
|
2070
|
-
const de_DescribeRetentionConfigurationsCommandError = async (output, context) => {
|
|
2071
|
-
const parsedOutput = {
|
|
2072
|
-
...output,
|
|
2073
|
-
body: await parseErrorBody(output.body, context),
|
|
2074
|
-
};
|
|
2075
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2076
|
-
switch (errorCode) {
|
|
2077
|
-
case "InvalidNextTokenException":
|
|
2078
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
2079
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2080
|
-
case "InvalidParameterValueException":
|
|
2081
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
2082
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2083
|
-
case "NoSuchRetentionConfigurationException":
|
|
2084
|
-
case "com.amazonaws.configservice#NoSuchRetentionConfigurationException":
|
|
2085
|
-
throw await de_NoSuchRetentionConfigurationExceptionRes(parsedOutput, context);
|
|
2086
|
-
default:
|
|
2087
|
-
const parsedBody = parsedOutput.body;
|
|
2088
|
-
return throwDefaultError({
|
|
2089
|
-
output,
|
|
2090
|
-
parsedBody,
|
|
2091
|
-
errorCode,
|
|
2092
|
-
});
|
|
2093
|
-
}
|
|
2094
|
-
};
|
|
2095
1083
|
export const de_GetAggregateComplianceDetailsByConfigRuleCommand = async (output, context) => {
|
|
2096
1084
|
if (output.statusCode >= 300) {
|
|
2097
|
-
return
|
|
1085
|
+
return de_CommandError(output, context);
|
|
2098
1086
|
}
|
|
2099
1087
|
const data = await parseBody(output.body, context);
|
|
2100
1088
|
let contents = {};
|
|
@@ -2105,37 +1093,9 @@ export const de_GetAggregateComplianceDetailsByConfigRuleCommand = async (output
|
|
|
2105
1093
|
};
|
|
2106
1094
|
return response;
|
|
2107
1095
|
};
|
|
2108
|
-
const de_GetAggregateComplianceDetailsByConfigRuleCommandError = async (output, context) => {
|
|
2109
|
-
const parsedOutput = {
|
|
2110
|
-
...output,
|
|
2111
|
-
body: await parseErrorBody(output.body, context),
|
|
2112
|
-
};
|
|
2113
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2114
|
-
switch (errorCode) {
|
|
2115
|
-
case "InvalidLimitException":
|
|
2116
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
2117
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
2118
|
-
case "InvalidNextTokenException":
|
|
2119
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
2120
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2121
|
-
case "NoSuchConfigurationAggregatorException":
|
|
2122
|
-
case "com.amazonaws.configservice#NoSuchConfigurationAggregatorException":
|
|
2123
|
-
throw await de_NoSuchConfigurationAggregatorExceptionRes(parsedOutput, context);
|
|
2124
|
-
case "ValidationException":
|
|
2125
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
2126
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2127
|
-
default:
|
|
2128
|
-
const parsedBody = parsedOutput.body;
|
|
2129
|
-
return throwDefaultError({
|
|
2130
|
-
output,
|
|
2131
|
-
parsedBody,
|
|
2132
|
-
errorCode,
|
|
2133
|
-
});
|
|
2134
|
-
}
|
|
2135
|
-
};
|
|
2136
1096
|
export const de_GetAggregateConfigRuleComplianceSummaryCommand = async (output, context) => {
|
|
2137
1097
|
if (output.statusCode >= 300) {
|
|
2138
|
-
return
|
|
1098
|
+
return de_CommandError(output, context);
|
|
2139
1099
|
}
|
|
2140
1100
|
const data = await parseBody(output.body, context);
|
|
2141
1101
|
let contents = {};
|
|
@@ -2146,37 +1106,9 @@ export const de_GetAggregateConfigRuleComplianceSummaryCommand = async (output,
|
|
|
2146
1106
|
};
|
|
2147
1107
|
return response;
|
|
2148
1108
|
};
|
|
2149
|
-
const de_GetAggregateConfigRuleComplianceSummaryCommandError = async (output, context) => {
|
|
2150
|
-
const parsedOutput = {
|
|
2151
|
-
...output,
|
|
2152
|
-
body: await parseErrorBody(output.body, context),
|
|
2153
|
-
};
|
|
2154
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2155
|
-
switch (errorCode) {
|
|
2156
|
-
case "InvalidLimitException":
|
|
2157
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
2158
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
2159
|
-
case "InvalidNextTokenException":
|
|
2160
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
2161
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2162
|
-
case "NoSuchConfigurationAggregatorException":
|
|
2163
|
-
case "com.amazonaws.configservice#NoSuchConfigurationAggregatorException":
|
|
2164
|
-
throw await de_NoSuchConfigurationAggregatorExceptionRes(parsedOutput, context);
|
|
2165
|
-
case "ValidationException":
|
|
2166
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
2167
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2168
|
-
default:
|
|
2169
|
-
const parsedBody = parsedOutput.body;
|
|
2170
|
-
return throwDefaultError({
|
|
2171
|
-
output,
|
|
2172
|
-
parsedBody,
|
|
2173
|
-
errorCode,
|
|
2174
|
-
});
|
|
2175
|
-
}
|
|
2176
|
-
};
|
|
2177
1109
|
export const de_GetAggregateConformancePackComplianceSummaryCommand = async (output, context) => {
|
|
2178
1110
|
if (output.statusCode >= 300) {
|
|
2179
|
-
return
|
|
1111
|
+
return de_CommandError(output, context);
|
|
2180
1112
|
}
|
|
2181
1113
|
const data = await parseBody(output.body, context);
|
|
2182
1114
|
let contents = {};
|
|
@@ -2187,37 +1119,9 @@ export const de_GetAggregateConformancePackComplianceSummaryCommand = async (out
|
|
|
2187
1119
|
};
|
|
2188
1120
|
return response;
|
|
2189
1121
|
};
|
|
2190
|
-
const de_GetAggregateConformancePackComplianceSummaryCommandError = async (output, context) => {
|
|
2191
|
-
const parsedOutput = {
|
|
2192
|
-
...output,
|
|
2193
|
-
body: await parseErrorBody(output.body, context),
|
|
2194
|
-
};
|
|
2195
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2196
|
-
switch (errorCode) {
|
|
2197
|
-
case "InvalidLimitException":
|
|
2198
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
2199
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
2200
|
-
case "InvalidNextTokenException":
|
|
2201
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
2202
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2203
|
-
case "NoSuchConfigurationAggregatorException":
|
|
2204
|
-
case "com.amazonaws.configservice#NoSuchConfigurationAggregatorException":
|
|
2205
|
-
throw await de_NoSuchConfigurationAggregatorExceptionRes(parsedOutput, context);
|
|
2206
|
-
case "ValidationException":
|
|
2207
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
2208
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2209
|
-
default:
|
|
2210
|
-
const parsedBody = parsedOutput.body;
|
|
2211
|
-
return throwDefaultError({
|
|
2212
|
-
output,
|
|
2213
|
-
parsedBody,
|
|
2214
|
-
errorCode,
|
|
2215
|
-
});
|
|
2216
|
-
}
|
|
2217
|
-
};
|
|
2218
1122
|
export const de_GetAggregateDiscoveredResourceCountsCommand = async (output, context) => {
|
|
2219
1123
|
if (output.statusCode >= 300) {
|
|
2220
|
-
return
|
|
1124
|
+
return de_CommandError(output, context);
|
|
2221
1125
|
}
|
|
2222
1126
|
const data = await parseBody(output.body, context);
|
|
2223
1127
|
let contents = {};
|
|
@@ -2228,37 +1132,9 @@ export const de_GetAggregateDiscoveredResourceCountsCommand = async (output, con
|
|
|
2228
1132
|
};
|
|
2229
1133
|
return response;
|
|
2230
1134
|
};
|
|
2231
|
-
const de_GetAggregateDiscoveredResourceCountsCommandError = async (output, context) => {
|
|
2232
|
-
const parsedOutput = {
|
|
2233
|
-
...output,
|
|
2234
|
-
body: await parseErrorBody(output.body, context),
|
|
2235
|
-
};
|
|
2236
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2237
|
-
switch (errorCode) {
|
|
2238
|
-
case "InvalidLimitException":
|
|
2239
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
2240
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
2241
|
-
case "InvalidNextTokenException":
|
|
2242
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
2243
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2244
|
-
case "NoSuchConfigurationAggregatorException":
|
|
2245
|
-
case "com.amazonaws.configservice#NoSuchConfigurationAggregatorException":
|
|
2246
|
-
throw await de_NoSuchConfigurationAggregatorExceptionRes(parsedOutput, context);
|
|
2247
|
-
case "ValidationException":
|
|
2248
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
2249
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2250
|
-
default:
|
|
2251
|
-
const parsedBody = parsedOutput.body;
|
|
2252
|
-
return throwDefaultError({
|
|
2253
|
-
output,
|
|
2254
|
-
parsedBody,
|
|
2255
|
-
errorCode,
|
|
2256
|
-
});
|
|
2257
|
-
}
|
|
2258
|
-
};
|
|
2259
1135
|
export const de_GetAggregateResourceConfigCommand = async (output, context) => {
|
|
2260
1136
|
if (output.statusCode >= 300) {
|
|
2261
|
-
return
|
|
1137
|
+
return de_CommandError(output, context);
|
|
2262
1138
|
}
|
|
2263
1139
|
const data = await parseBody(output.body, context);
|
|
2264
1140
|
let contents = {};
|
|
@@ -2269,37 +1145,9 @@ export const de_GetAggregateResourceConfigCommand = async (output, context) => {
|
|
|
2269
1145
|
};
|
|
2270
1146
|
return response;
|
|
2271
1147
|
};
|
|
2272
|
-
const de_GetAggregateResourceConfigCommandError = async (output, context) => {
|
|
2273
|
-
const parsedOutput = {
|
|
2274
|
-
...output,
|
|
2275
|
-
body: await parseErrorBody(output.body, context),
|
|
2276
|
-
};
|
|
2277
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2278
|
-
switch (errorCode) {
|
|
2279
|
-
case "NoSuchConfigurationAggregatorException":
|
|
2280
|
-
case "com.amazonaws.configservice#NoSuchConfigurationAggregatorException":
|
|
2281
|
-
throw await de_NoSuchConfigurationAggregatorExceptionRes(parsedOutput, context);
|
|
2282
|
-
case "OversizedConfigurationItemException":
|
|
2283
|
-
case "com.amazonaws.configservice#OversizedConfigurationItemException":
|
|
2284
|
-
throw await de_OversizedConfigurationItemExceptionRes(parsedOutput, context);
|
|
2285
|
-
case "ResourceNotDiscoveredException":
|
|
2286
|
-
case "com.amazonaws.configservice#ResourceNotDiscoveredException":
|
|
2287
|
-
throw await de_ResourceNotDiscoveredExceptionRes(parsedOutput, context);
|
|
2288
|
-
case "ValidationException":
|
|
2289
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
2290
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2291
|
-
default:
|
|
2292
|
-
const parsedBody = parsedOutput.body;
|
|
2293
|
-
return throwDefaultError({
|
|
2294
|
-
output,
|
|
2295
|
-
parsedBody,
|
|
2296
|
-
errorCode,
|
|
2297
|
-
});
|
|
2298
|
-
}
|
|
2299
|
-
};
|
|
2300
1148
|
export const de_GetComplianceDetailsByConfigRuleCommand = async (output, context) => {
|
|
2301
1149
|
if (output.statusCode >= 300) {
|
|
2302
|
-
return
|
|
1150
|
+
return de_CommandError(output, context);
|
|
2303
1151
|
}
|
|
2304
1152
|
const data = await parseBody(output.body, context);
|
|
2305
1153
|
let contents = {};
|
|
@@ -2310,34 +1158,9 @@ export const de_GetComplianceDetailsByConfigRuleCommand = async (output, context
|
|
|
2310
1158
|
};
|
|
2311
1159
|
return response;
|
|
2312
1160
|
};
|
|
2313
|
-
const de_GetComplianceDetailsByConfigRuleCommandError = async (output, context) => {
|
|
2314
|
-
const parsedOutput = {
|
|
2315
|
-
...output,
|
|
2316
|
-
body: await parseErrorBody(output.body, context),
|
|
2317
|
-
};
|
|
2318
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2319
|
-
switch (errorCode) {
|
|
2320
|
-
case "InvalidNextTokenException":
|
|
2321
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
2322
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2323
|
-
case "InvalidParameterValueException":
|
|
2324
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
2325
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2326
|
-
case "NoSuchConfigRuleException":
|
|
2327
|
-
case "com.amazonaws.configservice#NoSuchConfigRuleException":
|
|
2328
|
-
throw await de_NoSuchConfigRuleExceptionRes(parsedOutput, context);
|
|
2329
|
-
default:
|
|
2330
|
-
const parsedBody = parsedOutput.body;
|
|
2331
|
-
return throwDefaultError({
|
|
2332
|
-
output,
|
|
2333
|
-
parsedBody,
|
|
2334
|
-
errorCode,
|
|
2335
|
-
});
|
|
2336
|
-
}
|
|
2337
|
-
};
|
|
2338
1161
|
export const de_GetComplianceDetailsByResourceCommand = async (output, context) => {
|
|
2339
1162
|
if (output.statusCode >= 300) {
|
|
2340
|
-
return
|
|
1163
|
+
return de_CommandError(output, context);
|
|
2341
1164
|
}
|
|
2342
1165
|
const data = await parseBody(output.body, context);
|
|
2343
1166
|
let contents = {};
|
|
@@ -2348,28 +1171,9 @@ export const de_GetComplianceDetailsByResourceCommand = async (output, context)
|
|
|
2348
1171
|
};
|
|
2349
1172
|
return response;
|
|
2350
1173
|
};
|
|
2351
|
-
const de_GetComplianceDetailsByResourceCommandError = async (output, context) => {
|
|
2352
|
-
const parsedOutput = {
|
|
2353
|
-
...output,
|
|
2354
|
-
body: await parseErrorBody(output.body, context),
|
|
2355
|
-
};
|
|
2356
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2357
|
-
switch (errorCode) {
|
|
2358
|
-
case "InvalidParameterValueException":
|
|
2359
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
2360
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2361
|
-
default:
|
|
2362
|
-
const parsedBody = parsedOutput.body;
|
|
2363
|
-
return throwDefaultError({
|
|
2364
|
-
output,
|
|
2365
|
-
parsedBody,
|
|
2366
|
-
errorCode,
|
|
2367
|
-
});
|
|
2368
|
-
}
|
|
2369
|
-
};
|
|
2370
1174
|
export const de_GetComplianceSummaryByConfigRuleCommand = async (output, context) => {
|
|
2371
1175
|
if (output.statusCode >= 300) {
|
|
2372
|
-
return
|
|
1176
|
+
return de_CommandError(output, context);
|
|
2373
1177
|
}
|
|
2374
1178
|
const data = await parseBody(output.body, context);
|
|
2375
1179
|
let contents = {};
|
|
@@ -2380,22 +1184,9 @@ export const de_GetComplianceSummaryByConfigRuleCommand = async (output, context
|
|
|
2380
1184
|
};
|
|
2381
1185
|
return response;
|
|
2382
1186
|
};
|
|
2383
|
-
const de_GetComplianceSummaryByConfigRuleCommandError = async (output, context) => {
|
|
2384
|
-
const parsedOutput = {
|
|
2385
|
-
...output,
|
|
2386
|
-
body: await parseErrorBody(output.body, context),
|
|
2387
|
-
};
|
|
2388
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2389
|
-
const parsedBody = parsedOutput.body;
|
|
2390
|
-
return throwDefaultError({
|
|
2391
|
-
output,
|
|
2392
|
-
parsedBody,
|
|
2393
|
-
errorCode,
|
|
2394
|
-
});
|
|
2395
|
-
};
|
|
2396
1187
|
export const de_GetComplianceSummaryByResourceTypeCommand = async (output, context) => {
|
|
2397
1188
|
if (output.statusCode >= 300) {
|
|
2398
|
-
return
|
|
1189
|
+
return de_CommandError(output, context);
|
|
2399
1190
|
}
|
|
2400
1191
|
const data = await parseBody(output.body, context);
|
|
2401
1192
|
let contents = {};
|
|
@@ -2406,28 +1197,9 @@ export const de_GetComplianceSummaryByResourceTypeCommand = async (output, conte
|
|
|
2406
1197
|
};
|
|
2407
1198
|
return response;
|
|
2408
1199
|
};
|
|
2409
|
-
const de_GetComplianceSummaryByResourceTypeCommandError = async (output, context) => {
|
|
2410
|
-
const parsedOutput = {
|
|
2411
|
-
...output,
|
|
2412
|
-
body: await parseErrorBody(output.body, context),
|
|
2413
|
-
};
|
|
2414
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2415
|
-
switch (errorCode) {
|
|
2416
|
-
case "InvalidParameterValueException":
|
|
2417
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
2418
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2419
|
-
default:
|
|
2420
|
-
const parsedBody = parsedOutput.body;
|
|
2421
|
-
return throwDefaultError({
|
|
2422
|
-
output,
|
|
2423
|
-
parsedBody,
|
|
2424
|
-
errorCode,
|
|
2425
|
-
});
|
|
2426
|
-
}
|
|
2427
|
-
};
|
|
2428
1200
|
export const de_GetConformancePackComplianceDetailsCommand = async (output, context) => {
|
|
2429
1201
|
if (output.statusCode >= 300) {
|
|
2430
|
-
return
|
|
1202
|
+
return de_CommandError(output, context);
|
|
2431
1203
|
}
|
|
2432
1204
|
const data = await parseBody(output.body, context);
|
|
2433
1205
|
let contents = {};
|
|
@@ -2438,40 +1210,9 @@ export const de_GetConformancePackComplianceDetailsCommand = async (output, cont
|
|
|
2438
1210
|
};
|
|
2439
1211
|
return response;
|
|
2440
1212
|
};
|
|
2441
|
-
const de_GetConformancePackComplianceDetailsCommandError = async (output, context) => {
|
|
2442
|
-
const parsedOutput = {
|
|
2443
|
-
...output,
|
|
2444
|
-
body: await parseErrorBody(output.body, context),
|
|
2445
|
-
};
|
|
2446
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2447
|
-
switch (errorCode) {
|
|
2448
|
-
case "InvalidLimitException":
|
|
2449
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
2450
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
2451
|
-
case "InvalidNextTokenException":
|
|
2452
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
2453
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2454
|
-
case "InvalidParameterValueException":
|
|
2455
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
2456
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2457
|
-
case "NoSuchConfigRuleInConformancePackException":
|
|
2458
|
-
case "com.amazonaws.configservice#NoSuchConfigRuleInConformancePackException":
|
|
2459
|
-
throw await de_NoSuchConfigRuleInConformancePackExceptionRes(parsedOutput, context);
|
|
2460
|
-
case "NoSuchConformancePackException":
|
|
2461
|
-
case "com.amazonaws.configservice#NoSuchConformancePackException":
|
|
2462
|
-
throw await de_NoSuchConformancePackExceptionRes(parsedOutput, context);
|
|
2463
|
-
default:
|
|
2464
|
-
const parsedBody = parsedOutput.body;
|
|
2465
|
-
return throwDefaultError({
|
|
2466
|
-
output,
|
|
2467
|
-
parsedBody,
|
|
2468
|
-
errorCode,
|
|
2469
|
-
});
|
|
2470
|
-
}
|
|
2471
|
-
};
|
|
2472
1213
|
export const de_GetConformancePackComplianceSummaryCommand = async (output, context) => {
|
|
2473
1214
|
if (output.statusCode >= 300) {
|
|
2474
|
-
return
|
|
1215
|
+
return de_CommandError(output, context);
|
|
2475
1216
|
}
|
|
2476
1217
|
const data = await parseBody(output.body, context);
|
|
2477
1218
|
let contents = {};
|
|
@@ -2482,34 +1223,9 @@ export const de_GetConformancePackComplianceSummaryCommand = async (output, cont
|
|
|
2482
1223
|
};
|
|
2483
1224
|
return response;
|
|
2484
1225
|
};
|
|
2485
|
-
const de_GetConformancePackComplianceSummaryCommandError = async (output, context) => {
|
|
2486
|
-
const parsedOutput = {
|
|
2487
|
-
...output,
|
|
2488
|
-
body: await parseErrorBody(output.body, context),
|
|
2489
|
-
};
|
|
2490
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2491
|
-
switch (errorCode) {
|
|
2492
|
-
case "InvalidLimitException":
|
|
2493
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
2494
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
2495
|
-
case "InvalidNextTokenException":
|
|
2496
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
2497
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2498
|
-
case "NoSuchConformancePackException":
|
|
2499
|
-
case "com.amazonaws.configservice#NoSuchConformancePackException":
|
|
2500
|
-
throw await de_NoSuchConformancePackExceptionRes(parsedOutput, context);
|
|
2501
|
-
default:
|
|
2502
|
-
const parsedBody = parsedOutput.body;
|
|
2503
|
-
return throwDefaultError({
|
|
2504
|
-
output,
|
|
2505
|
-
parsedBody,
|
|
2506
|
-
errorCode,
|
|
2507
|
-
});
|
|
2508
|
-
}
|
|
2509
|
-
};
|
|
2510
1226
|
export const de_GetCustomRulePolicyCommand = async (output, context) => {
|
|
2511
1227
|
if (output.statusCode >= 300) {
|
|
2512
|
-
return
|
|
1228
|
+
return de_CommandError(output, context);
|
|
2513
1229
|
}
|
|
2514
1230
|
const data = await parseBody(output.body, context);
|
|
2515
1231
|
let contents = {};
|
|
@@ -2520,28 +1236,9 @@ export const de_GetCustomRulePolicyCommand = async (output, context) => {
|
|
|
2520
1236
|
};
|
|
2521
1237
|
return response;
|
|
2522
1238
|
};
|
|
2523
|
-
const de_GetCustomRulePolicyCommandError = async (output, context) => {
|
|
2524
|
-
const parsedOutput = {
|
|
2525
|
-
...output,
|
|
2526
|
-
body: await parseErrorBody(output.body, context),
|
|
2527
|
-
};
|
|
2528
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2529
|
-
switch (errorCode) {
|
|
2530
|
-
case "NoSuchConfigRuleException":
|
|
2531
|
-
case "com.amazonaws.configservice#NoSuchConfigRuleException":
|
|
2532
|
-
throw await de_NoSuchConfigRuleExceptionRes(parsedOutput, context);
|
|
2533
|
-
default:
|
|
2534
|
-
const parsedBody = parsedOutput.body;
|
|
2535
|
-
return throwDefaultError({
|
|
2536
|
-
output,
|
|
2537
|
-
parsedBody,
|
|
2538
|
-
errorCode,
|
|
2539
|
-
});
|
|
2540
|
-
}
|
|
2541
|
-
};
|
|
2542
1239
|
export const de_GetDiscoveredResourceCountsCommand = async (output, context) => {
|
|
2543
1240
|
if (output.statusCode >= 300) {
|
|
2544
|
-
return
|
|
1241
|
+
return de_CommandError(output, context);
|
|
2545
1242
|
}
|
|
2546
1243
|
const data = await parseBody(output.body, context);
|
|
2547
1244
|
let contents = {};
|
|
@@ -2552,75 +1249,22 @@ export const de_GetDiscoveredResourceCountsCommand = async (output, context) =>
|
|
|
2552
1249
|
};
|
|
2553
1250
|
return response;
|
|
2554
1251
|
};
|
|
2555
|
-
const
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
case "InvalidNextTokenException":
|
|
2566
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
2567
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2568
|
-
case "ValidationException":
|
|
2569
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
2570
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2571
|
-
default:
|
|
2572
|
-
const parsedBody = parsedOutput.body;
|
|
2573
|
-
return throwDefaultError({
|
|
2574
|
-
output,
|
|
2575
|
-
parsedBody,
|
|
2576
|
-
errorCode,
|
|
2577
|
-
});
|
|
2578
|
-
}
|
|
2579
|
-
};
|
|
2580
|
-
export const de_GetOrganizationConfigRuleDetailedStatusCommand = async (output, context) => {
|
|
2581
|
-
if (output.statusCode >= 300) {
|
|
2582
|
-
return de_GetOrganizationConfigRuleDetailedStatusCommandError(output, context);
|
|
2583
|
-
}
|
|
2584
|
-
const data = await parseBody(output.body, context);
|
|
2585
|
-
let contents = {};
|
|
2586
|
-
contents = de_GetOrganizationConfigRuleDetailedStatusResponse(data, context);
|
|
2587
|
-
const response = {
|
|
2588
|
-
$metadata: deserializeMetadata(output),
|
|
2589
|
-
...contents,
|
|
1252
|
+
export const de_GetOrganizationConfigRuleDetailedStatusCommand = async (output, context) => {
|
|
1253
|
+
if (output.statusCode >= 300) {
|
|
1254
|
+
return de_CommandError(output, context);
|
|
1255
|
+
}
|
|
1256
|
+
const data = await parseBody(output.body, context);
|
|
1257
|
+
let contents = {};
|
|
1258
|
+
contents = de_GetOrganizationConfigRuleDetailedStatusResponse(data, context);
|
|
1259
|
+
const response = {
|
|
1260
|
+
$metadata: deserializeMetadata(output),
|
|
1261
|
+
...contents,
|
|
2590
1262
|
};
|
|
2591
1263
|
return response;
|
|
2592
1264
|
};
|
|
2593
|
-
const de_GetOrganizationConfigRuleDetailedStatusCommandError = async (output, context) => {
|
|
2594
|
-
const parsedOutput = {
|
|
2595
|
-
...output,
|
|
2596
|
-
body: await parseErrorBody(output.body, context),
|
|
2597
|
-
};
|
|
2598
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2599
|
-
switch (errorCode) {
|
|
2600
|
-
case "InvalidLimitException":
|
|
2601
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
2602
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
2603
|
-
case "InvalidNextTokenException":
|
|
2604
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
2605
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2606
|
-
case "NoSuchOrganizationConfigRuleException":
|
|
2607
|
-
case "com.amazonaws.configservice#NoSuchOrganizationConfigRuleException":
|
|
2608
|
-
throw await de_NoSuchOrganizationConfigRuleExceptionRes(parsedOutput, context);
|
|
2609
|
-
case "OrganizationAccessDeniedException":
|
|
2610
|
-
case "com.amazonaws.configservice#OrganizationAccessDeniedException":
|
|
2611
|
-
throw await de_OrganizationAccessDeniedExceptionRes(parsedOutput, context);
|
|
2612
|
-
default:
|
|
2613
|
-
const parsedBody = parsedOutput.body;
|
|
2614
|
-
return throwDefaultError({
|
|
2615
|
-
output,
|
|
2616
|
-
parsedBody,
|
|
2617
|
-
errorCode,
|
|
2618
|
-
});
|
|
2619
|
-
}
|
|
2620
|
-
};
|
|
2621
1265
|
export const de_GetOrganizationConformancePackDetailedStatusCommand = async (output, context) => {
|
|
2622
1266
|
if (output.statusCode >= 300) {
|
|
2623
|
-
return
|
|
1267
|
+
return de_CommandError(output, context);
|
|
2624
1268
|
}
|
|
2625
1269
|
const data = await parseBody(output.body, context);
|
|
2626
1270
|
let contents = {};
|
|
@@ -2631,37 +1275,9 @@ export const de_GetOrganizationConformancePackDetailedStatusCommand = async (out
|
|
|
2631
1275
|
};
|
|
2632
1276
|
return response;
|
|
2633
1277
|
};
|
|
2634
|
-
const de_GetOrganizationConformancePackDetailedStatusCommandError = async (output, context) => {
|
|
2635
|
-
const parsedOutput = {
|
|
2636
|
-
...output,
|
|
2637
|
-
body: await parseErrorBody(output.body, context),
|
|
2638
|
-
};
|
|
2639
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2640
|
-
switch (errorCode) {
|
|
2641
|
-
case "InvalidLimitException":
|
|
2642
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
2643
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
2644
|
-
case "InvalidNextTokenException":
|
|
2645
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
2646
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2647
|
-
case "NoSuchOrganizationConformancePackException":
|
|
2648
|
-
case "com.amazonaws.configservice#NoSuchOrganizationConformancePackException":
|
|
2649
|
-
throw await de_NoSuchOrganizationConformancePackExceptionRes(parsedOutput, context);
|
|
2650
|
-
case "OrganizationAccessDeniedException":
|
|
2651
|
-
case "com.amazonaws.configservice#OrganizationAccessDeniedException":
|
|
2652
|
-
throw await de_OrganizationAccessDeniedExceptionRes(parsedOutput, context);
|
|
2653
|
-
default:
|
|
2654
|
-
const parsedBody = parsedOutput.body;
|
|
2655
|
-
return throwDefaultError({
|
|
2656
|
-
output,
|
|
2657
|
-
parsedBody,
|
|
2658
|
-
errorCode,
|
|
2659
|
-
});
|
|
2660
|
-
}
|
|
2661
|
-
};
|
|
2662
1278
|
export const de_GetOrganizationCustomRulePolicyCommand = async (output, context) => {
|
|
2663
1279
|
if (output.statusCode >= 300) {
|
|
2664
|
-
return
|
|
1280
|
+
return de_CommandError(output, context);
|
|
2665
1281
|
}
|
|
2666
1282
|
const data = await parseBody(output.body, context);
|
|
2667
1283
|
let contents = {};
|
|
@@ -2672,31 +1288,9 @@ export const de_GetOrganizationCustomRulePolicyCommand = async (output, context)
|
|
|
2672
1288
|
};
|
|
2673
1289
|
return response;
|
|
2674
1290
|
};
|
|
2675
|
-
const de_GetOrganizationCustomRulePolicyCommandError = async (output, context) => {
|
|
2676
|
-
const parsedOutput = {
|
|
2677
|
-
...output,
|
|
2678
|
-
body: await parseErrorBody(output.body, context),
|
|
2679
|
-
};
|
|
2680
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2681
|
-
switch (errorCode) {
|
|
2682
|
-
case "NoSuchOrganizationConfigRuleException":
|
|
2683
|
-
case "com.amazonaws.configservice#NoSuchOrganizationConfigRuleException":
|
|
2684
|
-
throw await de_NoSuchOrganizationConfigRuleExceptionRes(parsedOutput, context);
|
|
2685
|
-
case "OrganizationAccessDeniedException":
|
|
2686
|
-
case "com.amazonaws.configservice#OrganizationAccessDeniedException":
|
|
2687
|
-
throw await de_OrganizationAccessDeniedExceptionRes(parsedOutput, context);
|
|
2688
|
-
default:
|
|
2689
|
-
const parsedBody = parsedOutput.body;
|
|
2690
|
-
return throwDefaultError({
|
|
2691
|
-
output,
|
|
2692
|
-
parsedBody,
|
|
2693
|
-
errorCode,
|
|
2694
|
-
});
|
|
2695
|
-
}
|
|
2696
|
-
};
|
|
2697
1291
|
export const de_GetResourceConfigHistoryCommand = async (output, context) => {
|
|
2698
1292
|
if (output.statusCode >= 300) {
|
|
2699
|
-
return
|
|
1293
|
+
return de_CommandError(output, context);
|
|
2700
1294
|
}
|
|
2701
1295
|
const data = await parseBody(output.body, context);
|
|
2702
1296
|
let contents = {};
|
|
@@ -2707,43 +1301,9 @@ export const de_GetResourceConfigHistoryCommand = async (output, context) => {
|
|
|
2707
1301
|
};
|
|
2708
1302
|
return response;
|
|
2709
1303
|
};
|
|
2710
|
-
const de_GetResourceConfigHistoryCommandError = async (output, context) => {
|
|
2711
|
-
const parsedOutput = {
|
|
2712
|
-
...output,
|
|
2713
|
-
body: await parseErrorBody(output.body, context),
|
|
2714
|
-
};
|
|
2715
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2716
|
-
switch (errorCode) {
|
|
2717
|
-
case "InvalidLimitException":
|
|
2718
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
2719
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
2720
|
-
case "InvalidNextTokenException":
|
|
2721
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
2722
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2723
|
-
case "InvalidTimeRangeException":
|
|
2724
|
-
case "com.amazonaws.configservice#InvalidTimeRangeException":
|
|
2725
|
-
throw await de_InvalidTimeRangeExceptionRes(parsedOutput, context);
|
|
2726
|
-
case "NoAvailableConfigurationRecorderException":
|
|
2727
|
-
case "com.amazonaws.configservice#NoAvailableConfigurationRecorderException":
|
|
2728
|
-
throw await de_NoAvailableConfigurationRecorderExceptionRes(parsedOutput, context);
|
|
2729
|
-
case "ResourceNotDiscoveredException":
|
|
2730
|
-
case "com.amazonaws.configservice#ResourceNotDiscoveredException":
|
|
2731
|
-
throw await de_ResourceNotDiscoveredExceptionRes(parsedOutput, context);
|
|
2732
|
-
case "ValidationException":
|
|
2733
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
2734
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2735
|
-
default:
|
|
2736
|
-
const parsedBody = parsedOutput.body;
|
|
2737
|
-
return throwDefaultError({
|
|
2738
|
-
output,
|
|
2739
|
-
parsedBody,
|
|
2740
|
-
errorCode,
|
|
2741
|
-
});
|
|
2742
|
-
}
|
|
2743
|
-
};
|
|
2744
1304
|
export const de_GetResourceEvaluationSummaryCommand = async (output, context) => {
|
|
2745
1305
|
if (output.statusCode >= 300) {
|
|
2746
|
-
return
|
|
1306
|
+
return de_CommandError(output, context);
|
|
2747
1307
|
}
|
|
2748
1308
|
const data = await parseBody(output.body, context);
|
|
2749
1309
|
let contents = {};
|
|
@@ -2754,28 +1314,9 @@ export const de_GetResourceEvaluationSummaryCommand = async (output, context) =>
|
|
|
2754
1314
|
};
|
|
2755
1315
|
return response;
|
|
2756
1316
|
};
|
|
2757
|
-
const de_GetResourceEvaluationSummaryCommandError = async (output, context) => {
|
|
2758
|
-
const parsedOutput = {
|
|
2759
|
-
...output,
|
|
2760
|
-
body: await parseErrorBody(output.body, context),
|
|
2761
|
-
};
|
|
2762
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2763
|
-
switch (errorCode) {
|
|
2764
|
-
case "ResourceNotFoundException":
|
|
2765
|
-
case "com.amazonaws.configservice#ResourceNotFoundException":
|
|
2766
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2767
|
-
default:
|
|
2768
|
-
const parsedBody = parsedOutput.body;
|
|
2769
|
-
return throwDefaultError({
|
|
2770
|
-
output,
|
|
2771
|
-
parsedBody,
|
|
2772
|
-
errorCode,
|
|
2773
|
-
});
|
|
2774
|
-
}
|
|
2775
|
-
};
|
|
2776
1317
|
export const de_GetStoredQueryCommand = async (output, context) => {
|
|
2777
1318
|
if (output.statusCode >= 300) {
|
|
2778
|
-
return
|
|
1319
|
+
return de_CommandError(output, context);
|
|
2779
1320
|
}
|
|
2780
1321
|
const data = await parseBody(output.body, context);
|
|
2781
1322
|
let contents = {};
|
|
@@ -2786,31 +1327,9 @@ export const de_GetStoredQueryCommand = async (output, context) => {
|
|
|
2786
1327
|
};
|
|
2787
1328
|
return response;
|
|
2788
1329
|
};
|
|
2789
|
-
const de_GetStoredQueryCommandError = async (output, context) => {
|
|
2790
|
-
const parsedOutput = {
|
|
2791
|
-
...output,
|
|
2792
|
-
body: await parseErrorBody(output.body, context),
|
|
2793
|
-
};
|
|
2794
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2795
|
-
switch (errorCode) {
|
|
2796
|
-
case "ResourceNotFoundException":
|
|
2797
|
-
case "com.amazonaws.configservice#ResourceNotFoundException":
|
|
2798
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2799
|
-
case "ValidationException":
|
|
2800
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
2801
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2802
|
-
default:
|
|
2803
|
-
const parsedBody = parsedOutput.body;
|
|
2804
|
-
return throwDefaultError({
|
|
2805
|
-
output,
|
|
2806
|
-
parsedBody,
|
|
2807
|
-
errorCode,
|
|
2808
|
-
});
|
|
2809
|
-
}
|
|
2810
|
-
};
|
|
2811
1330
|
export const de_ListAggregateDiscoveredResourcesCommand = async (output, context) => {
|
|
2812
1331
|
if (output.statusCode >= 300) {
|
|
2813
|
-
return
|
|
1332
|
+
return de_CommandError(output, context);
|
|
2814
1333
|
}
|
|
2815
1334
|
const data = await parseBody(output.body, context);
|
|
2816
1335
|
let contents = {};
|
|
@@ -2821,37 +1340,9 @@ export const de_ListAggregateDiscoveredResourcesCommand = async (output, context
|
|
|
2821
1340
|
};
|
|
2822
1341
|
return response;
|
|
2823
1342
|
};
|
|
2824
|
-
const de_ListAggregateDiscoveredResourcesCommandError = async (output, context) => {
|
|
2825
|
-
const parsedOutput = {
|
|
2826
|
-
...output,
|
|
2827
|
-
body: await parseErrorBody(output.body, context),
|
|
2828
|
-
};
|
|
2829
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2830
|
-
switch (errorCode) {
|
|
2831
|
-
case "InvalidLimitException":
|
|
2832
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
2833
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
2834
|
-
case "InvalidNextTokenException":
|
|
2835
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
2836
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2837
|
-
case "NoSuchConfigurationAggregatorException":
|
|
2838
|
-
case "com.amazonaws.configservice#NoSuchConfigurationAggregatorException":
|
|
2839
|
-
throw await de_NoSuchConfigurationAggregatorExceptionRes(parsedOutput, context);
|
|
2840
|
-
case "ValidationException":
|
|
2841
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
2842
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2843
|
-
default:
|
|
2844
|
-
const parsedBody = parsedOutput.body;
|
|
2845
|
-
return throwDefaultError({
|
|
2846
|
-
output,
|
|
2847
|
-
parsedBody,
|
|
2848
|
-
errorCode,
|
|
2849
|
-
});
|
|
2850
|
-
}
|
|
2851
|
-
};
|
|
2852
1343
|
export const de_ListConformancePackComplianceScoresCommand = async (output, context) => {
|
|
2853
1344
|
if (output.statusCode >= 300) {
|
|
2854
|
-
return
|
|
1345
|
+
return de_CommandError(output, context);
|
|
2855
1346
|
}
|
|
2856
1347
|
const data = await parseBody(output.body, context);
|
|
2857
1348
|
let contents = {};
|
|
@@ -2862,34 +1353,9 @@ export const de_ListConformancePackComplianceScoresCommand = async (output, cont
|
|
|
2862
1353
|
};
|
|
2863
1354
|
return response;
|
|
2864
1355
|
};
|
|
2865
|
-
const de_ListConformancePackComplianceScoresCommandError = async (output, context) => {
|
|
2866
|
-
const parsedOutput = {
|
|
2867
|
-
...output,
|
|
2868
|
-
body: await parseErrorBody(output.body, context),
|
|
2869
|
-
};
|
|
2870
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2871
|
-
switch (errorCode) {
|
|
2872
|
-
case "InvalidLimitException":
|
|
2873
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
2874
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
2875
|
-
case "InvalidNextTokenException":
|
|
2876
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
2877
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2878
|
-
case "InvalidParameterValueException":
|
|
2879
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
2880
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2881
|
-
default:
|
|
2882
|
-
const parsedBody = parsedOutput.body;
|
|
2883
|
-
return throwDefaultError({
|
|
2884
|
-
output,
|
|
2885
|
-
parsedBody,
|
|
2886
|
-
errorCode,
|
|
2887
|
-
});
|
|
2888
|
-
}
|
|
2889
|
-
};
|
|
2890
1356
|
export const de_ListDiscoveredResourcesCommand = async (output, context) => {
|
|
2891
1357
|
if (output.statusCode >= 300) {
|
|
2892
|
-
return
|
|
1358
|
+
return de_CommandError(output, context);
|
|
2893
1359
|
}
|
|
2894
1360
|
const data = await parseBody(output.body, context);
|
|
2895
1361
|
let contents = {};
|
|
@@ -2900,37 +1366,9 @@ export const de_ListDiscoveredResourcesCommand = async (output, context) => {
|
|
|
2900
1366
|
};
|
|
2901
1367
|
return response;
|
|
2902
1368
|
};
|
|
2903
|
-
const de_ListDiscoveredResourcesCommandError = async (output, context) => {
|
|
2904
|
-
const parsedOutput = {
|
|
2905
|
-
...output,
|
|
2906
|
-
body: await parseErrorBody(output.body, context),
|
|
2907
|
-
};
|
|
2908
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2909
|
-
switch (errorCode) {
|
|
2910
|
-
case "InvalidLimitException":
|
|
2911
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
2912
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
2913
|
-
case "InvalidNextTokenException":
|
|
2914
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
2915
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2916
|
-
case "NoAvailableConfigurationRecorderException":
|
|
2917
|
-
case "com.amazonaws.configservice#NoAvailableConfigurationRecorderException":
|
|
2918
|
-
throw await de_NoAvailableConfigurationRecorderExceptionRes(parsedOutput, context);
|
|
2919
|
-
case "ValidationException":
|
|
2920
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
2921
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2922
|
-
default:
|
|
2923
|
-
const parsedBody = parsedOutput.body;
|
|
2924
|
-
return throwDefaultError({
|
|
2925
|
-
output,
|
|
2926
|
-
parsedBody,
|
|
2927
|
-
errorCode,
|
|
2928
|
-
});
|
|
2929
|
-
}
|
|
2930
|
-
};
|
|
2931
1369
|
export const de_ListResourceEvaluationsCommand = async (output, context) => {
|
|
2932
1370
|
if (output.statusCode >= 300) {
|
|
2933
|
-
return
|
|
1371
|
+
return de_CommandError(output, context);
|
|
2934
1372
|
}
|
|
2935
1373
|
const data = await parseBody(output.body, context);
|
|
2936
1374
|
let contents = {};
|
|
@@ -2941,34 +1379,9 @@ export const de_ListResourceEvaluationsCommand = async (output, context) => {
|
|
|
2941
1379
|
};
|
|
2942
1380
|
return response;
|
|
2943
1381
|
};
|
|
2944
|
-
const de_ListResourceEvaluationsCommandError = async (output, context) => {
|
|
2945
|
-
const parsedOutput = {
|
|
2946
|
-
...output,
|
|
2947
|
-
body: await parseErrorBody(output.body, context),
|
|
2948
|
-
};
|
|
2949
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2950
|
-
switch (errorCode) {
|
|
2951
|
-
case "InvalidNextTokenException":
|
|
2952
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
2953
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2954
|
-
case "InvalidParameterValueException":
|
|
2955
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
2956
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2957
|
-
case "InvalidTimeRangeException":
|
|
2958
|
-
case "com.amazonaws.configservice#InvalidTimeRangeException":
|
|
2959
|
-
throw await de_InvalidTimeRangeExceptionRes(parsedOutput, context);
|
|
2960
|
-
default:
|
|
2961
|
-
const parsedBody = parsedOutput.body;
|
|
2962
|
-
return throwDefaultError({
|
|
2963
|
-
output,
|
|
2964
|
-
parsedBody,
|
|
2965
|
-
errorCode,
|
|
2966
|
-
});
|
|
2967
|
-
}
|
|
2968
|
-
};
|
|
2969
1382
|
export const de_ListStoredQueriesCommand = async (output, context) => {
|
|
2970
1383
|
if (output.statusCode >= 300) {
|
|
2971
|
-
return
|
|
1384
|
+
return de_CommandError(output, context);
|
|
2972
1385
|
}
|
|
2973
1386
|
const data = await parseBody(output.body, context);
|
|
2974
1387
|
let contents = {};
|
|
@@ -2979,31 +1392,9 @@ export const de_ListStoredQueriesCommand = async (output, context) => {
|
|
|
2979
1392
|
};
|
|
2980
1393
|
return response;
|
|
2981
1394
|
};
|
|
2982
|
-
const de_ListStoredQueriesCommandError = async (output, context) => {
|
|
2983
|
-
const parsedOutput = {
|
|
2984
|
-
...output,
|
|
2985
|
-
body: await parseErrorBody(output.body, context),
|
|
2986
|
-
};
|
|
2987
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2988
|
-
switch (errorCode) {
|
|
2989
|
-
case "InvalidNextTokenException":
|
|
2990
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
2991
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2992
|
-
case "ValidationException":
|
|
2993
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
2994
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2995
|
-
default:
|
|
2996
|
-
const parsedBody = parsedOutput.body;
|
|
2997
|
-
return throwDefaultError({
|
|
2998
|
-
output,
|
|
2999
|
-
parsedBody,
|
|
3000
|
-
errorCode,
|
|
3001
|
-
});
|
|
3002
|
-
}
|
|
3003
|
-
};
|
|
3004
1395
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
3005
1396
|
if (output.statusCode >= 300) {
|
|
3006
|
-
return
|
|
1397
|
+
return de_CommandError(output, context);
|
|
3007
1398
|
}
|
|
3008
1399
|
const data = await parseBody(output.body, context);
|
|
3009
1400
|
let contents = {};
|
|
@@ -3014,37 +1405,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
3014
1405
|
};
|
|
3015
1406
|
return response;
|
|
3016
1407
|
};
|
|
3017
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
3018
|
-
const parsedOutput = {
|
|
3019
|
-
...output,
|
|
3020
|
-
body: await parseErrorBody(output.body, context),
|
|
3021
|
-
};
|
|
3022
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3023
|
-
switch (errorCode) {
|
|
3024
|
-
case "InvalidLimitException":
|
|
3025
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
3026
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
3027
|
-
case "InvalidNextTokenException":
|
|
3028
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
3029
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3030
|
-
case "ResourceNotFoundException":
|
|
3031
|
-
case "com.amazonaws.configservice#ResourceNotFoundException":
|
|
3032
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3033
|
-
case "ValidationException":
|
|
3034
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
3035
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3036
|
-
default:
|
|
3037
|
-
const parsedBody = parsedOutput.body;
|
|
3038
|
-
return throwDefaultError({
|
|
3039
|
-
output,
|
|
3040
|
-
parsedBody,
|
|
3041
|
-
errorCode,
|
|
3042
|
-
});
|
|
3043
|
-
}
|
|
3044
|
-
};
|
|
3045
1408
|
export const de_PutAggregationAuthorizationCommand = async (output, context) => {
|
|
3046
1409
|
if (output.statusCode >= 300) {
|
|
3047
|
-
return
|
|
1410
|
+
return de_CommandError(output, context);
|
|
3048
1411
|
}
|
|
3049
1412
|
const data = await parseBody(output.body, context);
|
|
3050
1413
|
let contents = {};
|
|
@@ -3055,28 +1418,9 @@ export const de_PutAggregationAuthorizationCommand = async (output, context) =>
|
|
|
3055
1418
|
};
|
|
3056
1419
|
return response;
|
|
3057
1420
|
};
|
|
3058
|
-
const de_PutAggregationAuthorizationCommandError = async (output, context) => {
|
|
3059
|
-
const parsedOutput = {
|
|
3060
|
-
...output,
|
|
3061
|
-
body: await parseErrorBody(output.body, context),
|
|
3062
|
-
};
|
|
3063
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3064
|
-
switch (errorCode) {
|
|
3065
|
-
case "InvalidParameterValueException":
|
|
3066
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
3067
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3068
|
-
default:
|
|
3069
|
-
const parsedBody = parsedOutput.body;
|
|
3070
|
-
return throwDefaultError({
|
|
3071
|
-
output,
|
|
3072
|
-
parsedBody,
|
|
3073
|
-
errorCode,
|
|
3074
|
-
});
|
|
3075
|
-
}
|
|
3076
|
-
};
|
|
3077
1421
|
export const de_PutConfigRuleCommand = async (output, context) => {
|
|
3078
1422
|
if (output.statusCode >= 300) {
|
|
3079
|
-
return
|
|
1423
|
+
return de_CommandError(output, context);
|
|
3080
1424
|
}
|
|
3081
1425
|
await collectBody(output.body, context);
|
|
3082
1426
|
const response = {
|
|
@@ -3084,40 +1428,9 @@ export const de_PutConfigRuleCommand = async (output, context) => {
|
|
|
3084
1428
|
};
|
|
3085
1429
|
return response;
|
|
3086
1430
|
};
|
|
3087
|
-
const de_PutConfigRuleCommandError = async (output, context) => {
|
|
3088
|
-
const parsedOutput = {
|
|
3089
|
-
...output,
|
|
3090
|
-
body: await parseErrorBody(output.body, context),
|
|
3091
|
-
};
|
|
3092
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3093
|
-
switch (errorCode) {
|
|
3094
|
-
case "InsufficientPermissionsException":
|
|
3095
|
-
case "com.amazonaws.configservice#InsufficientPermissionsException":
|
|
3096
|
-
throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
|
|
3097
|
-
case "InvalidParameterValueException":
|
|
3098
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
3099
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3100
|
-
case "MaxNumberOfConfigRulesExceededException":
|
|
3101
|
-
case "com.amazonaws.configservice#MaxNumberOfConfigRulesExceededException":
|
|
3102
|
-
throw await de_MaxNumberOfConfigRulesExceededExceptionRes(parsedOutput, context);
|
|
3103
|
-
case "NoAvailableConfigurationRecorderException":
|
|
3104
|
-
case "com.amazonaws.configservice#NoAvailableConfigurationRecorderException":
|
|
3105
|
-
throw await de_NoAvailableConfigurationRecorderExceptionRes(parsedOutput, context);
|
|
3106
|
-
case "ResourceInUseException":
|
|
3107
|
-
case "com.amazonaws.configservice#ResourceInUseException":
|
|
3108
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3109
|
-
default:
|
|
3110
|
-
const parsedBody = parsedOutput.body;
|
|
3111
|
-
return throwDefaultError({
|
|
3112
|
-
output,
|
|
3113
|
-
parsedBody,
|
|
3114
|
-
errorCode,
|
|
3115
|
-
});
|
|
3116
|
-
}
|
|
3117
|
-
};
|
|
3118
1431
|
export const de_PutConfigurationAggregatorCommand = async (output, context) => {
|
|
3119
1432
|
if (output.statusCode >= 300) {
|
|
3120
|
-
return
|
|
1433
|
+
return de_CommandError(output, context);
|
|
3121
1434
|
}
|
|
3122
1435
|
const data = await parseBody(output.body, context);
|
|
3123
1436
|
let contents = {};
|
|
@@ -3128,43 +1441,9 @@ export const de_PutConfigurationAggregatorCommand = async (output, context) => {
|
|
|
3128
1441
|
};
|
|
3129
1442
|
return response;
|
|
3130
1443
|
};
|
|
3131
|
-
const de_PutConfigurationAggregatorCommandError = async (output, context) => {
|
|
3132
|
-
const parsedOutput = {
|
|
3133
|
-
...output,
|
|
3134
|
-
body: await parseErrorBody(output.body, context),
|
|
3135
|
-
};
|
|
3136
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3137
|
-
switch (errorCode) {
|
|
3138
|
-
case "InvalidParameterValueException":
|
|
3139
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
3140
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3141
|
-
case "InvalidRoleException":
|
|
3142
|
-
case "com.amazonaws.configservice#InvalidRoleException":
|
|
3143
|
-
throw await de_InvalidRoleExceptionRes(parsedOutput, context);
|
|
3144
|
-
case "LimitExceededException":
|
|
3145
|
-
case "com.amazonaws.configservice#LimitExceededException":
|
|
3146
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3147
|
-
case "NoAvailableOrganizationException":
|
|
3148
|
-
case "com.amazonaws.configservice#NoAvailableOrganizationException":
|
|
3149
|
-
throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
|
|
3150
|
-
case "OrganizationAccessDeniedException":
|
|
3151
|
-
case "com.amazonaws.configservice#OrganizationAccessDeniedException":
|
|
3152
|
-
throw await de_OrganizationAccessDeniedExceptionRes(parsedOutput, context);
|
|
3153
|
-
case "OrganizationAllFeaturesNotEnabledException":
|
|
3154
|
-
case "com.amazonaws.configservice#OrganizationAllFeaturesNotEnabledException":
|
|
3155
|
-
throw await de_OrganizationAllFeaturesNotEnabledExceptionRes(parsedOutput, context);
|
|
3156
|
-
default:
|
|
3157
|
-
const parsedBody = parsedOutput.body;
|
|
3158
|
-
return throwDefaultError({
|
|
3159
|
-
output,
|
|
3160
|
-
parsedBody,
|
|
3161
|
-
errorCode,
|
|
3162
|
-
});
|
|
3163
|
-
}
|
|
3164
|
-
};
|
|
3165
1444
|
export const de_PutConfigurationRecorderCommand = async (output, context) => {
|
|
3166
1445
|
if (output.statusCode >= 300) {
|
|
3167
|
-
return
|
|
1446
|
+
return de_CommandError(output, context);
|
|
3168
1447
|
}
|
|
3169
1448
|
await collectBody(output.body, context);
|
|
3170
1449
|
const response = {
|
|
@@ -3172,40 +1451,9 @@ export const de_PutConfigurationRecorderCommand = async (output, context) => {
|
|
|
3172
1451
|
};
|
|
3173
1452
|
return response;
|
|
3174
1453
|
};
|
|
3175
|
-
const de_PutConfigurationRecorderCommandError = async (output, context) => {
|
|
3176
|
-
const parsedOutput = {
|
|
3177
|
-
...output,
|
|
3178
|
-
body: await parseErrorBody(output.body, context),
|
|
3179
|
-
};
|
|
3180
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3181
|
-
switch (errorCode) {
|
|
3182
|
-
case "InvalidConfigurationRecorderNameException":
|
|
3183
|
-
case "com.amazonaws.configservice#InvalidConfigurationRecorderNameException":
|
|
3184
|
-
throw await de_InvalidConfigurationRecorderNameExceptionRes(parsedOutput, context);
|
|
3185
|
-
case "InvalidRecordingGroupException":
|
|
3186
|
-
case "com.amazonaws.configservice#InvalidRecordingGroupException":
|
|
3187
|
-
throw await de_InvalidRecordingGroupExceptionRes(parsedOutput, context);
|
|
3188
|
-
case "InvalidRoleException":
|
|
3189
|
-
case "com.amazonaws.configservice#InvalidRoleException":
|
|
3190
|
-
throw await de_InvalidRoleExceptionRes(parsedOutput, context);
|
|
3191
|
-
case "MaxNumberOfConfigurationRecordersExceededException":
|
|
3192
|
-
case "com.amazonaws.configservice#MaxNumberOfConfigurationRecordersExceededException":
|
|
3193
|
-
throw await de_MaxNumberOfConfigurationRecordersExceededExceptionRes(parsedOutput, context);
|
|
3194
|
-
case "ValidationException":
|
|
3195
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
3196
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3197
|
-
default:
|
|
3198
|
-
const parsedBody = parsedOutput.body;
|
|
3199
|
-
return throwDefaultError({
|
|
3200
|
-
output,
|
|
3201
|
-
parsedBody,
|
|
3202
|
-
errorCode,
|
|
3203
|
-
});
|
|
3204
|
-
}
|
|
3205
|
-
};
|
|
3206
1454
|
export const de_PutConformancePackCommand = async (output, context) => {
|
|
3207
1455
|
if (output.statusCode >= 300) {
|
|
3208
|
-
return
|
|
1456
|
+
return de_CommandError(output, context);
|
|
3209
1457
|
}
|
|
3210
1458
|
const data = await parseBody(output.body, context);
|
|
3211
1459
|
let contents = {};
|
|
@@ -3216,40 +1464,9 @@ export const de_PutConformancePackCommand = async (output, context) => {
|
|
|
3216
1464
|
};
|
|
3217
1465
|
return response;
|
|
3218
1466
|
};
|
|
3219
|
-
const de_PutConformancePackCommandError = async (output, context) => {
|
|
3220
|
-
const parsedOutput = {
|
|
3221
|
-
...output,
|
|
3222
|
-
body: await parseErrorBody(output.body, context),
|
|
3223
|
-
};
|
|
3224
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3225
|
-
switch (errorCode) {
|
|
3226
|
-
case "ConformancePackTemplateValidationException":
|
|
3227
|
-
case "com.amazonaws.configservice#ConformancePackTemplateValidationException":
|
|
3228
|
-
throw await de_ConformancePackTemplateValidationExceptionRes(parsedOutput, context);
|
|
3229
|
-
case "InsufficientPermissionsException":
|
|
3230
|
-
case "com.amazonaws.configservice#InsufficientPermissionsException":
|
|
3231
|
-
throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
|
|
3232
|
-
case "InvalidParameterValueException":
|
|
3233
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
3234
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3235
|
-
case "MaxNumberOfConformancePacksExceededException":
|
|
3236
|
-
case "com.amazonaws.configservice#MaxNumberOfConformancePacksExceededException":
|
|
3237
|
-
throw await de_MaxNumberOfConformancePacksExceededExceptionRes(parsedOutput, context);
|
|
3238
|
-
case "ResourceInUseException":
|
|
3239
|
-
case "com.amazonaws.configservice#ResourceInUseException":
|
|
3240
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3241
|
-
default:
|
|
3242
|
-
const parsedBody = parsedOutput.body;
|
|
3243
|
-
return throwDefaultError({
|
|
3244
|
-
output,
|
|
3245
|
-
parsedBody,
|
|
3246
|
-
errorCode,
|
|
3247
|
-
});
|
|
3248
|
-
}
|
|
3249
|
-
};
|
|
3250
1467
|
export const de_PutDeliveryChannelCommand = async (output, context) => {
|
|
3251
1468
|
if (output.statusCode >= 300) {
|
|
3252
|
-
return
|
|
1469
|
+
return de_CommandError(output, context);
|
|
3253
1470
|
}
|
|
3254
1471
|
await collectBody(output.body, context);
|
|
3255
1472
|
const response = {
|
|
@@ -3257,49 +1474,9 @@ export const de_PutDeliveryChannelCommand = async (output, context) => {
|
|
|
3257
1474
|
};
|
|
3258
1475
|
return response;
|
|
3259
1476
|
};
|
|
3260
|
-
const de_PutDeliveryChannelCommandError = async (output, context) => {
|
|
3261
|
-
const parsedOutput = {
|
|
3262
|
-
...output,
|
|
3263
|
-
body: await parseErrorBody(output.body, context),
|
|
3264
|
-
};
|
|
3265
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3266
|
-
switch (errorCode) {
|
|
3267
|
-
case "InsufficientDeliveryPolicyException":
|
|
3268
|
-
case "com.amazonaws.configservice#InsufficientDeliveryPolicyException":
|
|
3269
|
-
throw await de_InsufficientDeliveryPolicyExceptionRes(parsedOutput, context);
|
|
3270
|
-
case "InvalidDeliveryChannelNameException":
|
|
3271
|
-
case "com.amazonaws.configservice#InvalidDeliveryChannelNameException":
|
|
3272
|
-
throw await de_InvalidDeliveryChannelNameExceptionRes(parsedOutput, context);
|
|
3273
|
-
case "InvalidS3KeyPrefixException":
|
|
3274
|
-
case "com.amazonaws.configservice#InvalidS3KeyPrefixException":
|
|
3275
|
-
throw await de_InvalidS3KeyPrefixExceptionRes(parsedOutput, context);
|
|
3276
|
-
case "InvalidS3KmsKeyArnException":
|
|
3277
|
-
case "com.amazonaws.configservice#InvalidS3KmsKeyArnException":
|
|
3278
|
-
throw await de_InvalidS3KmsKeyArnExceptionRes(parsedOutput, context);
|
|
3279
|
-
case "InvalidSNSTopicARNException":
|
|
3280
|
-
case "com.amazonaws.configservice#InvalidSNSTopicARNException":
|
|
3281
|
-
throw await de_InvalidSNSTopicARNExceptionRes(parsedOutput, context);
|
|
3282
|
-
case "MaxNumberOfDeliveryChannelsExceededException":
|
|
3283
|
-
case "com.amazonaws.configservice#MaxNumberOfDeliveryChannelsExceededException":
|
|
3284
|
-
throw await de_MaxNumberOfDeliveryChannelsExceededExceptionRes(parsedOutput, context);
|
|
3285
|
-
case "NoAvailableConfigurationRecorderException":
|
|
3286
|
-
case "com.amazonaws.configservice#NoAvailableConfigurationRecorderException":
|
|
3287
|
-
throw await de_NoAvailableConfigurationRecorderExceptionRes(parsedOutput, context);
|
|
3288
|
-
case "NoSuchBucketException":
|
|
3289
|
-
case "com.amazonaws.configservice#NoSuchBucketException":
|
|
3290
|
-
throw await de_NoSuchBucketExceptionRes(parsedOutput, context);
|
|
3291
|
-
default:
|
|
3292
|
-
const parsedBody = parsedOutput.body;
|
|
3293
|
-
return throwDefaultError({
|
|
3294
|
-
output,
|
|
3295
|
-
parsedBody,
|
|
3296
|
-
errorCode,
|
|
3297
|
-
});
|
|
3298
|
-
}
|
|
3299
|
-
};
|
|
3300
1477
|
export const de_PutEvaluationsCommand = async (output, context) => {
|
|
3301
1478
|
if (output.statusCode >= 300) {
|
|
3302
|
-
return
|
|
1479
|
+
return de_CommandError(output, context);
|
|
3303
1480
|
}
|
|
3304
1481
|
const data = await parseBody(output.body, context);
|
|
3305
1482
|
let contents = {};
|
|
@@ -3310,69 +1487,22 @@ export const de_PutEvaluationsCommand = async (output, context) => {
|
|
|
3310
1487
|
};
|
|
3311
1488
|
return response;
|
|
3312
1489
|
};
|
|
3313
|
-
const
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
case "InvalidResultTokenException":
|
|
3324
|
-
case "com.amazonaws.configservice#InvalidResultTokenException":
|
|
3325
|
-
throw await de_InvalidResultTokenExceptionRes(parsedOutput, context);
|
|
3326
|
-
case "NoSuchConfigRuleException":
|
|
3327
|
-
case "com.amazonaws.configservice#NoSuchConfigRuleException":
|
|
3328
|
-
throw await de_NoSuchConfigRuleExceptionRes(parsedOutput, context);
|
|
3329
|
-
default:
|
|
3330
|
-
const parsedBody = parsedOutput.body;
|
|
3331
|
-
return throwDefaultError({
|
|
3332
|
-
output,
|
|
3333
|
-
parsedBody,
|
|
3334
|
-
errorCode,
|
|
3335
|
-
});
|
|
3336
|
-
}
|
|
3337
|
-
};
|
|
3338
|
-
export const de_PutExternalEvaluationCommand = async (output, context) => {
|
|
3339
|
-
if (output.statusCode >= 300) {
|
|
3340
|
-
return de_PutExternalEvaluationCommandError(output, context);
|
|
3341
|
-
}
|
|
3342
|
-
const data = await parseBody(output.body, context);
|
|
3343
|
-
let contents = {};
|
|
3344
|
-
contents = _json(data);
|
|
3345
|
-
const response = {
|
|
3346
|
-
$metadata: deserializeMetadata(output),
|
|
3347
|
-
...contents,
|
|
1490
|
+
export const de_PutExternalEvaluationCommand = async (output, context) => {
|
|
1491
|
+
if (output.statusCode >= 300) {
|
|
1492
|
+
return de_CommandError(output, context);
|
|
1493
|
+
}
|
|
1494
|
+
const data = await parseBody(output.body, context);
|
|
1495
|
+
let contents = {};
|
|
1496
|
+
contents = _json(data);
|
|
1497
|
+
const response = {
|
|
1498
|
+
$metadata: deserializeMetadata(output),
|
|
1499
|
+
...contents,
|
|
3348
1500
|
};
|
|
3349
1501
|
return response;
|
|
3350
1502
|
};
|
|
3351
|
-
const de_PutExternalEvaluationCommandError = async (output, context) => {
|
|
3352
|
-
const parsedOutput = {
|
|
3353
|
-
...output,
|
|
3354
|
-
body: await parseErrorBody(output.body, context),
|
|
3355
|
-
};
|
|
3356
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3357
|
-
switch (errorCode) {
|
|
3358
|
-
case "InvalidParameterValueException":
|
|
3359
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
3360
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3361
|
-
case "NoSuchConfigRuleException":
|
|
3362
|
-
case "com.amazonaws.configservice#NoSuchConfigRuleException":
|
|
3363
|
-
throw await de_NoSuchConfigRuleExceptionRes(parsedOutput, context);
|
|
3364
|
-
default:
|
|
3365
|
-
const parsedBody = parsedOutput.body;
|
|
3366
|
-
return throwDefaultError({
|
|
3367
|
-
output,
|
|
3368
|
-
parsedBody,
|
|
3369
|
-
errorCode,
|
|
3370
|
-
});
|
|
3371
|
-
}
|
|
3372
|
-
};
|
|
3373
1503
|
export const de_PutOrganizationConfigRuleCommand = async (output, context) => {
|
|
3374
1504
|
if (output.statusCode >= 300) {
|
|
3375
|
-
return
|
|
1505
|
+
return de_CommandError(output, context);
|
|
3376
1506
|
}
|
|
3377
1507
|
const data = await parseBody(output.body, context);
|
|
3378
1508
|
let contents = {};
|
|
@@ -3383,49 +1513,9 @@ export const de_PutOrganizationConfigRuleCommand = async (output, context) => {
|
|
|
3383
1513
|
};
|
|
3384
1514
|
return response;
|
|
3385
1515
|
};
|
|
3386
|
-
const de_PutOrganizationConfigRuleCommandError = async (output, context) => {
|
|
3387
|
-
const parsedOutput = {
|
|
3388
|
-
...output,
|
|
3389
|
-
body: await parseErrorBody(output.body, context),
|
|
3390
|
-
};
|
|
3391
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3392
|
-
switch (errorCode) {
|
|
3393
|
-
case "InsufficientPermissionsException":
|
|
3394
|
-
case "com.amazonaws.configservice#InsufficientPermissionsException":
|
|
3395
|
-
throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
|
|
3396
|
-
case "InvalidParameterValueException":
|
|
3397
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
3398
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3399
|
-
case "MaxNumberOfOrganizationConfigRulesExceededException":
|
|
3400
|
-
case "com.amazonaws.configservice#MaxNumberOfOrganizationConfigRulesExceededException":
|
|
3401
|
-
throw await de_MaxNumberOfOrganizationConfigRulesExceededExceptionRes(parsedOutput, context);
|
|
3402
|
-
case "NoAvailableOrganizationException":
|
|
3403
|
-
case "com.amazonaws.configservice#NoAvailableOrganizationException":
|
|
3404
|
-
throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
|
|
3405
|
-
case "OrganizationAccessDeniedException":
|
|
3406
|
-
case "com.amazonaws.configservice#OrganizationAccessDeniedException":
|
|
3407
|
-
throw await de_OrganizationAccessDeniedExceptionRes(parsedOutput, context);
|
|
3408
|
-
case "OrganizationAllFeaturesNotEnabledException":
|
|
3409
|
-
case "com.amazonaws.configservice#OrganizationAllFeaturesNotEnabledException":
|
|
3410
|
-
throw await de_OrganizationAllFeaturesNotEnabledExceptionRes(parsedOutput, context);
|
|
3411
|
-
case "ResourceInUseException":
|
|
3412
|
-
case "com.amazonaws.configservice#ResourceInUseException":
|
|
3413
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3414
|
-
case "ValidationException":
|
|
3415
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
3416
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3417
|
-
default:
|
|
3418
|
-
const parsedBody = parsedOutput.body;
|
|
3419
|
-
return throwDefaultError({
|
|
3420
|
-
output,
|
|
3421
|
-
parsedBody,
|
|
3422
|
-
errorCode,
|
|
3423
|
-
});
|
|
3424
|
-
}
|
|
3425
|
-
};
|
|
3426
1516
|
export const de_PutOrganizationConformancePackCommand = async (output, context) => {
|
|
3427
1517
|
if (output.statusCode >= 300) {
|
|
3428
|
-
return
|
|
1518
|
+
return de_CommandError(output, context);
|
|
3429
1519
|
}
|
|
3430
1520
|
const data = await parseBody(output.body, context);
|
|
3431
1521
|
let contents = {};
|
|
@@ -3436,49 +1526,9 @@ export const de_PutOrganizationConformancePackCommand = async (output, context)
|
|
|
3436
1526
|
};
|
|
3437
1527
|
return response;
|
|
3438
1528
|
};
|
|
3439
|
-
const de_PutOrganizationConformancePackCommandError = async (output, context) => {
|
|
3440
|
-
const parsedOutput = {
|
|
3441
|
-
...output,
|
|
3442
|
-
body: await parseErrorBody(output.body, context),
|
|
3443
|
-
};
|
|
3444
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3445
|
-
switch (errorCode) {
|
|
3446
|
-
case "InsufficientPermissionsException":
|
|
3447
|
-
case "com.amazonaws.configservice#InsufficientPermissionsException":
|
|
3448
|
-
throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
|
|
3449
|
-
case "MaxNumberOfOrganizationConformancePacksExceededException":
|
|
3450
|
-
case "com.amazonaws.configservice#MaxNumberOfOrganizationConformancePacksExceededException":
|
|
3451
|
-
throw await de_MaxNumberOfOrganizationConformancePacksExceededExceptionRes(parsedOutput, context);
|
|
3452
|
-
case "NoAvailableOrganizationException":
|
|
3453
|
-
case "com.amazonaws.configservice#NoAvailableOrganizationException":
|
|
3454
|
-
throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
|
|
3455
|
-
case "OrganizationAccessDeniedException":
|
|
3456
|
-
case "com.amazonaws.configservice#OrganizationAccessDeniedException":
|
|
3457
|
-
throw await de_OrganizationAccessDeniedExceptionRes(parsedOutput, context);
|
|
3458
|
-
case "OrganizationAllFeaturesNotEnabledException":
|
|
3459
|
-
case "com.amazonaws.configservice#OrganizationAllFeaturesNotEnabledException":
|
|
3460
|
-
throw await de_OrganizationAllFeaturesNotEnabledExceptionRes(parsedOutput, context);
|
|
3461
|
-
case "OrganizationConformancePackTemplateValidationException":
|
|
3462
|
-
case "com.amazonaws.configservice#OrganizationConformancePackTemplateValidationException":
|
|
3463
|
-
throw await de_OrganizationConformancePackTemplateValidationExceptionRes(parsedOutput, context);
|
|
3464
|
-
case "ResourceInUseException":
|
|
3465
|
-
case "com.amazonaws.configservice#ResourceInUseException":
|
|
3466
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3467
|
-
case "ValidationException":
|
|
3468
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
3469
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3470
|
-
default:
|
|
3471
|
-
const parsedBody = parsedOutput.body;
|
|
3472
|
-
return throwDefaultError({
|
|
3473
|
-
output,
|
|
3474
|
-
parsedBody,
|
|
3475
|
-
errorCode,
|
|
3476
|
-
});
|
|
3477
|
-
}
|
|
3478
|
-
};
|
|
3479
1529
|
export const de_PutRemediationConfigurationsCommand = async (output, context) => {
|
|
3480
1530
|
if (output.statusCode >= 300) {
|
|
3481
|
-
return
|
|
1531
|
+
return de_CommandError(output, context);
|
|
3482
1532
|
}
|
|
3483
1533
|
const data = await parseBody(output.body, context);
|
|
3484
1534
|
let contents = {};
|
|
@@ -3489,31 +1539,9 @@ export const de_PutRemediationConfigurationsCommand = async (output, context) =>
|
|
|
3489
1539
|
};
|
|
3490
1540
|
return response;
|
|
3491
1541
|
};
|
|
3492
|
-
const de_PutRemediationConfigurationsCommandError = async (output, context) => {
|
|
3493
|
-
const parsedOutput = {
|
|
3494
|
-
...output,
|
|
3495
|
-
body: await parseErrorBody(output.body, context),
|
|
3496
|
-
};
|
|
3497
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3498
|
-
switch (errorCode) {
|
|
3499
|
-
case "InsufficientPermissionsException":
|
|
3500
|
-
case "com.amazonaws.configservice#InsufficientPermissionsException":
|
|
3501
|
-
throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
|
|
3502
|
-
case "InvalidParameterValueException":
|
|
3503
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
3504
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3505
|
-
default:
|
|
3506
|
-
const parsedBody = parsedOutput.body;
|
|
3507
|
-
return throwDefaultError({
|
|
3508
|
-
output,
|
|
3509
|
-
parsedBody,
|
|
3510
|
-
errorCode,
|
|
3511
|
-
});
|
|
3512
|
-
}
|
|
3513
|
-
};
|
|
3514
1542
|
export const de_PutRemediationExceptionsCommand = async (output, context) => {
|
|
3515
1543
|
if (output.statusCode >= 300) {
|
|
3516
|
-
return
|
|
1544
|
+
return de_CommandError(output, context);
|
|
3517
1545
|
}
|
|
3518
1546
|
const data = await parseBody(output.body, context);
|
|
3519
1547
|
let contents = {};
|
|
@@ -3524,31 +1552,9 @@ export const de_PutRemediationExceptionsCommand = async (output, context) => {
|
|
|
3524
1552
|
};
|
|
3525
1553
|
return response;
|
|
3526
1554
|
};
|
|
3527
|
-
const de_PutRemediationExceptionsCommandError = async (output, context) => {
|
|
3528
|
-
const parsedOutput = {
|
|
3529
|
-
...output,
|
|
3530
|
-
body: await parseErrorBody(output.body, context),
|
|
3531
|
-
};
|
|
3532
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3533
|
-
switch (errorCode) {
|
|
3534
|
-
case "InsufficientPermissionsException":
|
|
3535
|
-
case "com.amazonaws.configservice#InsufficientPermissionsException":
|
|
3536
|
-
throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
|
|
3537
|
-
case "InvalidParameterValueException":
|
|
3538
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
3539
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3540
|
-
default:
|
|
3541
|
-
const parsedBody = parsedOutput.body;
|
|
3542
|
-
return throwDefaultError({
|
|
3543
|
-
output,
|
|
3544
|
-
parsedBody,
|
|
3545
|
-
errorCode,
|
|
3546
|
-
});
|
|
3547
|
-
}
|
|
3548
|
-
};
|
|
3549
1555
|
export const de_PutResourceConfigCommand = async (output, context) => {
|
|
3550
1556
|
if (output.statusCode >= 300) {
|
|
3551
|
-
return
|
|
1557
|
+
return de_CommandError(output, context);
|
|
3552
1558
|
}
|
|
3553
1559
|
await collectBody(output.body, context);
|
|
3554
1560
|
const response = {
|
|
@@ -3556,37 +1562,9 @@ export const de_PutResourceConfigCommand = async (output, context) => {
|
|
|
3556
1562
|
};
|
|
3557
1563
|
return response;
|
|
3558
1564
|
};
|
|
3559
|
-
const de_PutResourceConfigCommandError = async (output, context) => {
|
|
3560
|
-
const parsedOutput = {
|
|
3561
|
-
...output,
|
|
3562
|
-
body: await parseErrorBody(output.body, context),
|
|
3563
|
-
};
|
|
3564
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3565
|
-
switch (errorCode) {
|
|
3566
|
-
case "InsufficientPermissionsException":
|
|
3567
|
-
case "com.amazonaws.configservice#InsufficientPermissionsException":
|
|
3568
|
-
throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
|
|
3569
|
-
case "MaxActiveResourcesExceededException":
|
|
3570
|
-
case "com.amazonaws.configservice#MaxActiveResourcesExceededException":
|
|
3571
|
-
throw await de_MaxActiveResourcesExceededExceptionRes(parsedOutput, context);
|
|
3572
|
-
case "NoRunningConfigurationRecorderException":
|
|
3573
|
-
case "com.amazonaws.configservice#NoRunningConfigurationRecorderException":
|
|
3574
|
-
throw await de_NoRunningConfigurationRecorderExceptionRes(parsedOutput, context);
|
|
3575
|
-
case "ValidationException":
|
|
3576
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
3577
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3578
|
-
default:
|
|
3579
|
-
const parsedBody = parsedOutput.body;
|
|
3580
|
-
return throwDefaultError({
|
|
3581
|
-
output,
|
|
3582
|
-
parsedBody,
|
|
3583
|
-
errorCode,
|
|
3584
|
-
});
|
|
3585
|
-
}
|
|
3586
|
-
};
|
|
3587
1565
|
export const de_PutRetentionConfigurationCommand = async (output, context) => {
|
|
3588
1566
|
if (output.statusCode >= 300) {
|
|
3589
|
-
return
|
|
1567
|
+
return de_CommandError(output, context);
|
|
3590
1568
|
}
|
|
3591
1569
|
const data = await parseBody(output.body, context);
|
|
3592
1570
|
let contents = {};
|
|
@@ -3597,31 +1575,9 @@ export const de_PutRetentionConfigurationCommand = async (output, context) => {
|
|
|
3597
1575
|
};
|
|
3598
1576
|
return response;
|
|
3599
1577
|
};
|
|
3600
|
-
const de_PutRetentionConfigurationCommandError = async (output, context) => {
|
|
3601
|
-
const parsedOutput = {
|
|
3602
|
-
...output,
|
|
3603
|
-
body: await parseErrorBody(output.body, context),
|
|
3604
|
-
};
|
|
3605
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3606
|
-
switch (errorCode) {
|
|
3607
|
-
case "InvalidParameterValueException":
|
|
3608
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
3609
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3610
|
-
case "MaxNumberOfRetentionConfigurationsExceededException":
|
|
3611
|
-
case "com.amazonaws.configservice#MaxNumberOfRetentionConfigurationsExceededException":
|
|
3612
|
-
throw await de_MaxNumberOfRetentionConfigurationsExceededExceptionRes(parsedOutput, context);
|
|
3613
|
-
default:
|
|
3614
|
-
const parsedBody = parsedOutput.body;
|
|
3615
|
-
return throwDefaultError({
|
|
3616
|
-
output,
|
|
3617
|
-
parsedBody,
|
|
3618
|
-
errorCode,
|
|
3619
|
-
});
|
|
3620
|
-
}
|
|
3621
|
-
};
|
|
3622
1578
|
export const de_PutStoredQueryCommand = async (output, context) => {
|
|
3623
1579
|
if (output.statusCode >= 300) {
|
|
3624
|
-
return
|
|
1580
|
+
return de_CommandError(output, context);
|
|
3625
1581
|
}
|
|
3626
1582
|
const data = await parseBody(output.body, context);
|
|
3627
1583
|
let contents = {};
|
|
@@ -3632,34 +1588,9 @@ export const de_PutStoredQueryCommand = async (output, context) => {
|
|
|
3632
1588
|
};
|
|
3633
1589
|
return response;
|
|
3634
1590
|
};
|
|
3635
|
-
const de_PutStoredQueryCommandError = async (output, context) => {
|
|
3636
|
-
const parsedOutput = {
|
|
3637
|
-
...output,
|
|
3638
|
-
body: await parseErrorBody(output.body, context),
|
|
3639
|
-
};
|
|
3640
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3641
|
-
switch (errorCode) {
|
|
3642
|
-
case "ResourceConcurrentModificationException":
|
|
3643
|
-
case "com.amazonaws.configservice#ResourceConcurrentModificationException":
|
|
3644
|
-
throw await de_ResourceConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3645
|
-
case "TooManyTagsException":
|
|
3646
|
-
case "com.amazonaws.configservice#TooManyTagsException":
|
|
3647
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
3648
|
-
case "ValidationException":
|
|
3649
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
3650
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3651
|
-
default:
|
|
3652
|
-
const parsedBody = parsedOutput.body;
|
|
3653
|
-
return throwDefaultError({
|
|
3654
|
-
output,
|
|
3655
|
-
parsedBody,
|
|
3656
|
-
errorCode,
|
|
3657
|
-
});
|
|
3658
|
-
}
|
|
3659
|
-
};
|
|
3660
1591
|
export const de_SelectAggregateResourceConfigCommand = async (output, context) => {
|
|
3661
1592
|
if (output.statusCode >= 300) {
|
|
3662
|
-
return
|
|
1593
|
+
return de_CommandError(output, context);
|
|
3663
1594
|
}
|
|
3664
1595
|
const data = await parseBody(output.body, context);
|
|
3665
1596
|
let contents = {};
|
|
@@ -3670,75 +1601,22 @@ export const de_SelectAggregateResourceConfigCommand = async (output, context) =
|
|
|
3670
1601
|
};
|
|
3671
1602
|
return response;
|
|
3672
1603
|
};
|
|
3673
|
-
const
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
case "InvalidLimitException":
|
|
3684
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
3685
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
3686
|
-
case "InvalidNextTokenException":
|
|
3687
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
3688
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3689
|
-
case "NoSuchConfigurationAggregatorException":
|
|
3690
|
-
case "com.amazonaws.configservice#NoSuchConfigurationAggregatorException":
|
|
3691
|
-
throw await de_NoSuchConfigurationAggregatorExceptionRes(parsedOutput, context);
|
|
3692
|
-
default:
|
|
3693
|
-
const parsedBody = parsedOutput.body;
|
|
3694
|
-
return throwDefaultError({
|
|
3695
|
-
output,
|
|
3696
|
-
parsedBody,
|
|
3697
|
-
errorCode,
|
|
3698
|
-
});
|
|
3699
|
-
}
|
|
3700
|
-
};
|
|
3701
|
-
export const de_SelectResourceConfigCommand = async (output, context) => {
|
|
3702
|
-
if (output.statusCode >= 300) {
|
|
3703
|
-
return de_SelectResourceConfigCommandError(output, context);
|
|
3704
|
-
}
|
|
3705
|
-
const data = await parseBody(output.body, context);
|
|
3706
|
-
let contents = {};
|
|
3707
|
-
contents = _json(data);
|
|
3708
|
-
const response = {
|
|
3709
|
-
$metadata: deserializeMetadata(output),
|
|
3710
|
-
...contents,
|
|
1604
|
+
export const de_SelectResourceConfigCommand = async (output, context) => {
|
|
1605
|
+
if (output.statusCode >= 300) {
|
|
1606
|
+
return de_CommandError(output, context);
|
|
1607
|
+
}
|
|
1608
|
+
const data = await parseBody(output.body, context);
|
|
1609
|
+
let contents = {};
|
|
1610
|
+
contents = _json(data);
|
|
1611
|
+
const response = {
|
|
1612
|
+
$metadata: deserializeMetadata(output),
|
|
1613
|
+
...contents,
|
|
3711
1614
|
};
|
|
3712
1615
|
return response;
|
|
3713
1616
|
};
|
|
3714
|
-
const de_SelectResourceConfigCommandError = async (output, context) => {
|
|
3715
|
-
const parsedOutput = {
|
|
3716
|
-
...output,
|
|
3717
|
-
body: await parseErrorBody(output.body, context),
|
|
3718
|
-
};
|
|
3719
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3720
|
-
switch (errorCode) {
|
|
3721
|
-
case "InvalidExpressionException":
|
|
3722
|
-
case "com.amazonaws.configservice#InvalidExpressionException":
|
|
3723
|
-
throw await de_InvalidExpressionExceptionRes(parsedOutput, context);
|
|
3724
|
-
case "InvalidLimitException":
|
|
3725
|
-
case "com.amazonaws.configservice#InvalidLimitException":
|
|
3726
|
-
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
3727
|
-
case "InvalidNextTokenException":
|
|
3728
|
-
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
3729
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3730
|
-
default:
|
|
3731
|
-
const parsedBody = parsedOutput.body;
|
|
3732
|
-
return throwDefaultError({
|
|
3733
|
-
output,
|
|
3734
|
-
parsedBody,
|
|
3735
|
-
errorCode,
|
|
3736
|
-
});
|
|
3737
|
-
}
|
|
3738
|
-
};
|
|
3739
1617
|
export const de_StartConfigRulesEvaluationCommand = async (output, context) => {
|
|
3740
1618
|
if (output.statusCode >= 300) {
|
|
3741
|
-
return
|
|
1619
|
+
return de_CommandError(output, context);
|
|
3742
1620
|
}
|
|
3743
1621
|
const data = await parseBody(output.body, context);
|
|
3744
1622
|
let contents = {};
|
|
@@ -3749,37 +1627,9 @@ export const de_StartConfigRulesEvaluationCommand = async (output, context) => {
|
|
|
3749
1627
|
};
|
|
3750
1628
|
return response;
|
|
3751
1629
|
};
|
|
3752
|
-
const de_StartConfigRulesEvaluationCommandError = async (output, context) => {
|
|
3753
|
-
const parsedOutput = {
|
|
3754
|
-
...output,
|
|
3755
|
-
body: await parseErrorBody(output.body, context),
|
|
3756
|
-
};
|
|
3757
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3758
|
-
switch (errorCode) {
|
|
3759
|
-
case "InvalidParameterValueException":
|
|
3760
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
3761
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3762
|
-
case "LimitExceededException":
|
|
3763
|
-
case "com.amazonaws.configservice#LimitExceededException":
|
|
3764
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3765
|
-
case "NoSuchConfigRuleException":
|
|
3766
|
-
case "com.amazonaws.configservice#NoSuchConfigRuleException":
|
|
3767
|
-
throw await de_NoSuchConfigRuleExceptionRes(parsedOutput, context);
|
|
3768
|
-
case "ResourceInUseException":
|
|
3769
|
-
case "com.amazonaws.configservice#ResourceInUseException":
|
|
3770
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3771
|
-
default:
|
|
3772
|
-
const parsedBody = parsedOutput.body;
|
|
3773
|
-
return throwDefaultError({
|
|
3774
|
-
output,
|
|
3775
|
-
parsedBody,
|
|
3776
|
-
errorCode,
|
|
3777
|
-
});
|
|
3778
|
-
}
|
|
3779
|
-
};
|
|
3780
1630
|
export const de_StartConfigurationRecorderCommand = async (output, context) => {
|
|
3781
1631
|
if (output.statusCode >= 300) {
|
|
3782
|
-
return
|
|
1632
|
+
return de_CommandError(output, context);
|
|
3783
1633
|
}
|
|
3784
1634
|
await collectBody(output.body, context);
|
|
3785
1635
|
const response = {
|
|
@@ -3787,31 +1637,9 @@ export const de_StartConfigurationRecorderCommand = async (output, context) => {
|
|
|
3787
1637
|
};
|
|
3788
1638
|
return response;
|
|
3789
1639
|
};
|
|
3790
|
-
const de_StartConfigurationRecorderCommandError = async (output, context) => {
|
|
3791
|
-
const parsedOutput = {
|
|
3792
|
-
...output,
|
|
3793
|
-
body: await parseErrorBody(output.body, context),
|
|
3794
|
-
};
|
|
3795
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3796
|
-
switch (errorCode) {
|
|
3797
|
-
case "NoAvailableDeliveryChannelException":
|
|
3798
|
-
case "com.amazonaws.configservice#NoAvailableDeliveryChannelException":
|
|
3799
|
-
throw await de_NoAvailableDeliveryChannelExceptionRes(parsedOutput, context);
|
|
3800
|
-
case "NoSuchConfigurationRecorderException":
|
|
3801
|
-
case "com.amazonaws.configservice#NoSuchConfigurationRecorderException":
|
|
3802
|
-
throw await de_NoSuchConfigurationRecorderExceptionRes(parsedOutput, context);
|
|
3803
|
-
default:
|
|
3804
|
-
const parsedBody = parsedOutput.body;
|
|
3805
|
-
return throwDefaultError({
|
|
3806
|
-
output,
|
|
3807
|
-
parsedBody,
|
|
3808
|
-
errorCode,
|
|
3809
|
-
});
|
|
3810
|
-
}
|
|
3811
|
-
};
|
|
3812
1640
|
export const de_StartRemediationExecutionCommand = async (output, context) => {
|
|
3813
1641
|
if (output.statusCode >= 300) {
|
|
3814
|
-
return
|
|
1642
|
+
return de_CommandError(output, context);
|
|
3815
1643
|
}
|
|
3816
1644
|
const data = await parseBody(output.body, context);
|
|
3817
1645
|
let contents = {};
|
|
@@ -3822,34 +1650,9 @@ export const de_StartRemediationExecutionCommand = async (output, context) => {
|
|
|
3822
1650
|
};
|
|
3823
1651
|
return response;
|
|
3824
1652
|
};
|
|
3825
|
-
const de_StartRemediationExecutionCommandError = async (output, context) => {
|
|
3826
|
-
const parsedOutput = {
|
|
3827
|
-
...output,
|
|
3828
|
-
body: await parseErrorBody(output.body, context),
|
|
3829
|
-
};
|
|
3830
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3831
|
-
switch (errorCode) {
|
|
3832
|
-
case "InsufficientPermissionsException":
|
|
3833
|
-
case "com.amazonaws.configservice#InsufficientPermissionsException":
|
|
3834
|
-
throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
|
|
3835
|
-
case "InvalidParameterValueException":
|
|
3836
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
3837
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3838
|
-
case "NoSuchRemediationConfigurationException":
|
|
3839
|
-
case "com.amazonaws.configservice#NoSuchRemediationConfigurationException":
|
|
3840
|
-
throw await de_NoSuchRemediationConfigurationExceptionRes(parsedOutput, context);
|
|
3841
|
-
default:
|
|
3842
|
-
const parsedBody = parsedOutput.body;
|
|
3843
|
-
return throwDefaultError({
|
|
3844
|
-
output,
|
|
3845
|
-
parsedBody,
|
|
3846
|
-
errorCode,
|
|
3847
|
-
});
|
|
3848
|
-
}
|
|
3849
|
-
};
|
|
3850
1653
|
export const de_StartResourceEvaluationCommand = async (output, context) => {
|
|
3851
1654
|
if (output.statusCode >= 300) {
|
|
3852
|
-
return
|
|
1655
|
+
return de_CommandError(output, context);
|
|
3853
1656
|
}
|
|
3854
1657
|
const data = await parseBody(output.body, context);
|
|
3855
1658
|
let contents = {};
|
|
@@ -3860,31 +1663,9 @@ export const de_StartResourceEvaluationCommand = async (output, context) => {
|
|
|
3860
1663
|
};
|
|
3861
1664
|
return response;
|
|
3862
1665
|
};
|
|
3863
|
-
const de_StartResourceEvaluationCommandError = async (output, context) => {
|
|
3864
|
-
const parsedOutput = {
|
|
3865
|
-
...output,
|
|
3866
|
-
body: await parseErrorBody(output.body, context),
|
|
3867
|
-
};
|
|
3868
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3869
|
-
switch (errorCode) {
|
|
3870
|
-
case "IdempotentParameterMismatch":
|
|
3871
|
-
case "com.amazonaws.configservice#IdempotentParameterMismatch":
|
|
3872
|
-
throw await de_IdempotentParameterMismatchRes(parsedOutput, context);
|
|
3873
|
-
case "InvalidParameterValueException":
|
|
3874
|
-
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
3875
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3876
|
-
default:
|
|
3877
|
-
const parsedBody = parsedOutput.body;
|
|
3878
|
-
return throwDefaultError({
|
|
3879
|
-
output,
|
|
3880
|
-
parsedBody,
|
|
3881
|
-
errorCode,
|
|
3882
|
-
});
|
|
3883
|
-
}
|
|
3884
|
-
};
|
|
3885
1666
|
export const de_StopConfigurationRecorderCommand = async (output, context) => {
|
|
3886
1667
|
if (output.statusCode >= 300) {
|
|
3887
|
-
return
|
|
1668
|
+
return de_CommandError(output, context);
|
|
3888
1669
|
}
|
|
3889
1670
|
await collectBody(output.body, context);
|
|
3890
1671
|
const response = {
|
|
@@ -3892,28 +1673,9 @@ export const de_StopConfigurationRecorderCommand = async (output, context) => {
|
|
|
3892
1673
|
};
|
|
3893
1674
|
return response;
|
|
3894
1675
|
};
|
|
3895
|
-
const de_StopConfigurationRecorderCommandError = async (output, context) => {
|
|
3896
|
-
const parsedOutput = {
|
|
3897
|
-
...output,
|
|
3898
|
-
body: await parseErrorBody(output.body, context),
|
|
3899
|
-
};
|
|
3900
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3901
|
-
switch (errorCode) {
|
|
3902
|
-
case "NoSuchConfigurationRecorderException":
|
|
3903
|
-
case "com.amazonaws.configservice#NoSuchConfigurationRecorderException":
|
|
3904
|
-
throw await de_NoSuchConfigurationRecorderExceptionRes(parsedOutput, context);
|
|
3905
|
-
default:
|
|
3906
|
-
const parsedBody = parsedOutput.body;
|
|
3907
|
-
return throwDefaultError({
|
|
3908
|
-
output,
|
|
3909
|
-
parsedBody,
|
|
3910
|
-
errorCode,
|
|
3911
|
-
});
|
|
3912
|
-
}
|
|
3913
|
-
};
|
|
3914
1676
|
export const de_TagResourceCommand = async (output, context) => {
|
|
3915
1677
|
if (output.statusCode >= 300) {
|
|
3916
|
-
return
|
|
1678
|
+
return de_CommandError(output, context);
|
|
3917
1679
|
}
|
|
3918
1680
|
await collectBody(output.body, context);
|
|
3919
1681
|
const response = {
|
|
@@ -3921,34 +1683,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
3921
1683
|
};
|
|
3922
1684
|
return response;
|
|
3923
1685
|
};
|
|
3924
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3925
|
-
const parsedOutput = {
|
|
3926
|
-
...output,
|
|
3927
|
-
body: await parseErrorBody(output.body, context),
|
|
3928
|
-
};
|
|
3929
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3930
|
-
switch (errorCode) {
|
|
3931
|
-
case "ResourceNotFoundException":
|
|
3932
|
-
case "com.amazonaws.configservice#ResourceNotFoundException":
|
|
3933
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3934
|
-
case "TooManyTagsException":
|
|
3935
|
-
case "com.amazonaws.configservice#TooManyTagsException":
|
|
3936
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
3937
|
-
case "ValidationException":
|
|
3938
|
-
case "com.amazonaws.configservice#ValidationException":
|
|
3939
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3940
|
-
default:
|
|
3941
|
-
const parsedBody = parsedOutput.body;
|
|
3942
|
-
return throwDefaultError({
|
|
3943
|
-
output,
|
|
3944
|
-
parsedBody,
|
|
3945
|
-
errorCode,
|
|
3946
|
-
});
|
|
3947
|
-
}
|
|
3948
|
-
};
|
|
3949
1686
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
3950
1687
|
if (output.statusCode >= 300) {
|
|
3951
|
-
return
|
|
1688
|
+
return de_CommandError(output, context);
|
|
3952
1689
|
}
|
|
3953
1690
|
await collectBody(output.body, context);
|
|
3954
1691
|
const response = {
|
|
@@ -3956,19 +1693,175 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
3956
1693
|
};
|
|
3957
1694
|
return response;
|
|
3958
1695
|
};
|
|
3959
|
-
const
|
|
1696
|
+
const de_CommandError = async (output, context) => {
|
|
3960
1697
|
const parsedOutput = {
|
|
3961
1698
|
...output,
|
|
3962
1699
|
body: await parseErrorBody(output.body, context),
|
|
3963
1700
|
};
|
|
3964
1701
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3965
1702
|
switch (errorCode) {
|
|
3966
|
-
case "
|
|
3967
|
-
case "com.amazonaws.configservice#
|
|
3968
|
-
throw await
|
|
1703
|
+
case "NoSuchConfigurationAggregatorException":
|
|
1704
|
+
case "com.amazonaws.configservice#NoSuchConfigurationAggregatorException":
|
|
1705
|
+
throw await de_NoSuchConfigurationAggregatorExceptionRes(parsedOutput, context);
|
|
3969
1706
|
case "ValidationException":
|
|
3970
1707
|
case "com.amazonaws.configservice#ValidationException":
|
|
3971
1708
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1709
|
+
case "NoAvailableConfigurationRecorderException":
|
|
1710
|
+
case "com.amazonaws.configservice#NoAvailableConfigurationRecorderException":
|
|
1711
|
+
throw await de_NoAvailableConfigurationRecorderExceptionRes(parsedOutput, context);
|
|
1712
|
+
case "InvalidParameterValueException":
|
|
1713
|
+
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
1714
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1715
|
+
case "NoSuchConfigRuleException":
|
|
1716
|
+
case "com.amazonaws.configservice#NoSuchConfigRuleException":
|
|
1717
|
+
throw await de_NoSuchConfigRuleExceptionRes(parsedOutput, context);
|
|
1718
|
+
case "ResourceInUseException":
|
|
1719
|
+
case "com.amazonaws.configservice#ResourceInUseException":
|
|
1720
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1721
|
+
case "NoSuchConfigurationRecorderException":
|
|
1722
|
+
case "com.amazonaws.configservice#NoSuchConfigurationRecorderException":
|
|
1723
|
+
throw await de_NoSuchConfigurationRecorderExceptionRes(parsedOutput, context);
|
|
1724
|
+
case "NoSuchConformancePackException":
|
|
1725
|
+
case "com.amazonaws.configservice#NoSuchConformancePackException":
|
|
1726
|
+
throw await de_NoSuchConformancePackExceptionRes(parsedOutput, context);
|
|
1727
|
+
case "LastDeliveryChannelDeleteFailedException":
|
|
1728
|
+
case "com.amazonaws.configservice#LastDeliveryChannelDeleteFailedException":
|
|
1729
|
+
throw await de_LastDeliveryChannelDeleteFailedExceptionRes(parsedOutput, context);
|
|
1730
|
+
case "NoSuchDeliveryChannelException":
|
|
1731
|
+
case "com.amazonaws.configservice#NoSuchDeliveryChannelException":
|
|
1732
|
+
throw await de_NoSuchDeliveryChannelExceptionRes(parsedOutput, context);
|
|
1733
|
+
case "NoSuchOrganizationConfigRuleException":
|
|
1734
|
+
case "com.amazonaws.configservice#NoSuchOrganizationConfigRuleException":
|
|
1735
|
+
throw await de_NoSuchOrganizationConfigRuleExceptionRes(parsedOutput, context);
|
|
1736
|
+
case "OrganizationAccessDeniedException":
|
|
1737
|
+
case "com.amazonaws.configservice#OrganizationAccessDeniedException":
|
|
1738
|
+
throw await de_OrganizationAccessDeniedExceptionRes(parsedOutput, context);
|
|
1739
|
+
case "NoSuchOrganizationConformancePackException":
|
|
1740
|
+
case "com.amazonaws.configservice#NoSuchOrganizationConformancePackException":
|
|
1741
|
+
throw await de_NoSuchOrganizationConformancePackExceptionRes(parsedOutput, context);
|
|
1742
|
+
case "InsufficientPermissionsException":
|
|
1743
|
+
case "com.amazonaws.configservice#InsufficientPermissionsException":
|
|
1744
|
+
throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
|
|
1745
|
+
case "NoSuchRemediationConfigurationException":
|
|
1746
|
+
case "com.amazonaws.configservice#NoSuchRemediationConfigurationException":
|
|
1747
|
+
throw await de_NoSuchRemediationConfigurationExceptionRes(parsedOutput, context);
|
|
1748
|
+
case "RemediationInProgressException":
|
|
1749
|
+
case "com.amazonaws.configservice#RemediationInProgressException":
|
|
1750
|
+
throw await de_RemediationInProgressExceptionRes(parsedOutput, context);
|
|
1751
|
+
case "NoSuchRemediationExceptionException":
|
|
1752
|
+
case "com.amazonaws.configservice#NoSuchRemediationExceptionException":
|
|
1753
|
+
throw await de_NoSuchRemediationExceptionExceptionRes(parsedOutput, context);
|
|
1754
|
+
case "NoRunningConfigurationRecorderException":
|
|
1755
|
+
case "com.amazonaws.configservice#NoRunningConfigurationRecorderException":
|
|
1756
|
+
throw await de_NoRunningConfigurationRecorderExceptionRes(parsedOutput, context);
|
|
1757
|
+
case "NoSuchRetentionConfigurationException":
|
|
1758
|
+
case "com.amazonaws.configservice#NoSuchRetentionConfigurationException":
|
|
1759
|
+
throw await de_NoSuchRetentionConfigurationExceptionRes(parsedOutput, context);
|
|
1760
|
+
case "ResourceNotFoundException":
|
|
1761
|
+
case "com.amazonaws.configservice#ResourceNotFoundException":
|
|
1762
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1763
|
+
case "InvalidLimitException":
|
|
1764
|
+
case "com.amazonaws.configservice#InvalidLimitException":
|
|
1765
|
+
throw await de_InvalidLimitExceptionRes(parsedOutput, context);
|
|
1766
|
+
case "InvalidNextTokenException":
|
|
1767
|
+
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
1768
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1769
|
+
case "NoSuchConfigRuleInConformancePackException":
|
|
1770
|
+
case "com.amazonaws.configservice#NoSuchConfigRuleInConformancePackException":
|
|
1771
|
+
throw await de_NoSuchConfigRuleInConformancePackExceptionRes(parsedOutput, context);
|
|
1772
|
+
case "OversizedConfigurationItemException":
|
|
1773
|
+
case "com.amazonaws.configservice#OversizedConfigurationItemException":
|
|
1774
|
+
throw await de_OversizedConfigurationItemExceptionRes(parsedOutput, context);
|
|
1775
|
+
case "ResourceNotDiscoveredException":
|
|
1776
|
+
case "com.amazonaws.configservice#ResourceNotDiscoveredException":
|
|
1777
|
+
throw await de_ResourceNotDiscoveredExceptionRes(parsedOutput, context);
|
|
1778
|
+
case "InvalidTimeRangeException":
|
|
1779
|
+
case "com.amazonaws.configservice#InvalidTimeRangeException":
|
|
1780
|
+
throw await de_InvalidTimeRangeExceptionRes(parsedOutput, context);
|
|
1781
|
+
case "MaxNumberOfConfigRulesExceededException":
|
|
1782
|
+
case "com.amazonaws.configservice#MaxNumberOfConfigRulesExceededException":
|
|
1783
|
+
throw await de_MaxNumberOfConfigRulesExceededExceptionRes(parsedOutput, context);
|
|
1784
|
+
case "InvalidRoleException":
|
|
1785
|
+
case "com.amazonaws.configservice#InvalidRoleException":
|
|
1786
|
+
throw await de_InvalidRoleExceptionRes(parsedOutput, context);
|
|
1787
|
+
case "LimitExceededException":
|
|
1788
|
+
case "com.amazonaws.configservice#LimitExceededException":
|
|
1789
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1790
|
+
case "NoAvailableOrganizationException":
|
|
1791
|
+
case "com.amazonaws.configservice#NoAvailableOrganizationException":
|
|
1792
|
+
throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
|
|
1793
|
+
case "OrganizationAllFeaturesNotEnabledException":
|
|
1794
|
+
case "com.amazonaws.configservice#OrganizationAllFeaturesNotEnabledException":
|
|
1795
|
+
throw await de_OrganizationAllFeaturesNotEnabledExceptionRes(parsedOutput, context);
|
|
1796
|
+
case "InvalidConfigurationRecorderNameException":
|
|
1797
|
+
case "com.amazonaws.configservice#InvalidConfigurationRecorderNameException":
|
|
1798
|
+
throw await de_InvalidConfigurationRecorderNameExceptionRes(parsedOutput, context);
|
|
1799
|
+
case "InvalidRecordingGroupException":
|
|
1800
|
+
case "com.amazonaws.configservice#InvalidRecordingGroupException":
|
|
1801
|
+
throw await de_InvalidRecordingGroupExceptionRes(parsedOutput, context);
|
|
1802
|
+
case "MaxNumberOfConfigurationRecordersExceededException":
|
|
1803
|
+
case "com.amazonaws.configservice#MaxNumberOfConfigurationRecordersExceededException":
|
|
1804
|
+
throw await de_MaxNumberOfConfigurationRecordersExceededExceptionRes(parsedOutput, context);
|
|
1805
|
+
case "ConformancePackTemplateValidationException":
|
|
1806
|
+
case "com.amazonaws.configservice#ConformancePackTemplateValidationException":
|
|
1807
|
+
throw await de_ConformancePackTemplateValidationExceptionRes(parsedOutput, context);
|
|
1808
|
+
case "MaxNumberOfConformancePacksExceededException":
|
|
1809
|
+
case "com.amazonaws.configservice#MaxNumberOfConformancePacksExceededException":
|
|
1810
|
+
throw await de_MaxNumberOfConformancePacksExceededExceptionRes(parsedOutput, context);
|
|
1811
|
+
case "InsufficientDeliveryPolicyException":
|
|
1812
|
+
case "com.amazonaws.configservice#InsufficientDeliveryPolicyException":
|
|
1813
|
+
throw await de_InsufficientDeliveryPolicyExceptionRes(parsedOutput, context);
|
|
1814
|
+
case "InvalidDeliveryChannelNameException":
|
|
1815
|
+
case "com.amazonaws.configservice#InvalidDeliveryChannelNameException":
|
|
1816
|
+
throw await de_InvalidDeliveryChannelNameExceptionRes(parsedOutput, context);
|
|
1817
|
+
case "InvalidS3KeyPrefixException":
|
|
1818
|
+
case "com.amazonaws.configservice#InvalidS3KeyPrefixException":
|
|
1819
|
+
throw await de_InvalidS3KeyPrefixExceptionRes(parsedOutput, context);
|
|
1820
|
+
case "InvalidS3KmsKeyArnException":
|
|
1821
|
+
case "com.amazonaws.configservice#InvalidS3KmsKeyArnException":
|
|
1822
|
+
throw await de_InvalidS3KmsKeyArnExceptionRes(parsedOutput, context);
|
|
1823
|
+
case "InvalidSNSTopicARNException":
|
|
1824
|
+
case "com.amazonaws.configservice#InvalidSNSTopicARNException":
|
|
1825
|
+
throw await de_InvalidSNSTopicARNExceptionRes(parsedOutput, context);
|
|
1826
|
+
case "MaxNumberOfDeliveryChannelsExceededException":
|
|
1827
|
+
case "com.amazonaws.configservice#MaxNumberOfDeliveryChannelsExceededException":
|
|
1828
|
+
throw await de_MaxNumberOfDeliveryChannelsExceededExceptionRes(parsedOutput, context);
|
|
1829
|
+
case "NoSuchBucketException":
|
|
1830
|
+
case "com.amazonaws.configservice#NoSuchBucketException":
|
|
1831
|
+
throw await de_NoSuchBucketExceptionRes(parsedOutput, context);
|
|
1832
|
+
case "InvalidResultTokenException":
|
|
1833
|
+
case "com.amazonaws.configservice#InvalidResultTokenException":
|
|
1834
|
+
throw await de_InvalidResultTokenExceptionRes(parsedOutput, context);
|
|
1835
|
+
case "MaxNumberOfOrganizationConfigRulesExceededException":
|
|
1836
|
+
case "com.amazonaws.configservice#MaxNumberOfOrganizationConfigRulesExceededException":
|
|
1837
|
+
throw await de_MaxNumberOfOrganizationConfigRulesExceededExceptionRes(parsedOutput, context);
|
|
1838
|
+
case "MaxNumberOfOrganizationConformancePacksExceededException":
|
|
1839
|
+
case "com.amazonaws.configservice#MaxNumberOfOrganizationConformancePacksExceededException":
|
|
1840
|
+
throw await de_MaxNumberOfOrganizationConformancePacksExceededExceptionRes(parsedOutput, context);
|
|
1841
|
+
case "OrganizationConformancePackTemplateValidationException":
|
|
1842
|
+
case "com.amazonaws.configservice#OrganizationConformancePackTemplateValidationException":
|
|
1843
|
+
throw await de_OrganizationConformancePackTemplateValidationExceptionRes(parsedOutput, context);
|
|
1844
|
+
case "MaxActiveResourcesExceededException":
|
|
1845
|
+
case "com.amazonaws.configservice#MaxActiveResourcesExceededException":
|
|
1846
|
+
throw await de_MaxActiveResourcesExceededExceptionRes(parsedOutput, context);
|
|
1847
|
+
case "MaxNumberOfRetentionConfigurationsExceededException":
|
|
1848
|
+
case "com.amazonaws.configservice#MaxNumberOfRetentionConfigurationsExceededException":
|
|
1849
|
+
throw await de_MaxNumberOfRetentionConfigurationsExceededExceptionRes(parsedOutput, context);
|
|
1850
|
+
case "ResourceConcurrentModificationException":
|
|
1851
|
+
case "com.amazonaws.configservice#ResourceConcurrentModificationException":
|
|
1852
|
+
throw await de_ResourceConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1853
|
+
case "TooManyTagsException":
|
|
1854
|
+
case "com.amazonaws.configservice#TooManyTagsException":
|
|
1855
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1856
|
+
case "InvalidExpressionException":
|
|
1857
|
+
case "com.amazonaws.configservice#InvalidExpressionException":
|
|
1858
|
+
throw await de_InvalidExpressionExceptionRes(parsedOutput, context);
|
|
1859
|
+
case "NoAvailableDeliveryChannelException":
|
|
1860
|
+
case "com.amazonaws.configservice#NoAvailableDeliveryChannelException":
|
|
1861
|
+
throw await de_NoAvailableDeliveryChannelExceptionRes(parsedOutput, context);
|
|
1862
|
+
case "IdempotentParameterMismatch":
|
|
1863
|
+
case "com.amazonaws.configservice#IdempotentParameterMismatch":
|
|
1864
|
+
throw await de_IdempotentParameterMismatchRes(parsedOutput, context);
|
|
3972
1865
|
default:
|
|
3973
1866
|
const parsedBody = parsedOutput.body;
|
|
3974
1867
|
return throwDefaultError({
|