@aws-sdk/client-service-catalog 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +151 -2184
- package/dist-es/protocols/Aws_json1_1.js +168 -2201
- package/package.json +3 -3
|
@@ -545,7 +545,7 @@ export const se_UpdateTagOptionCommand = async (input, context) => {
|
|
|
545
545
|
};
|
|
546
546
|
export const de_AcceptPortfolioShareCommand = async (output, context) => {
|
|
547
547
|
if (output.statusCode >= 300) {
|
|
548
|
-
return
|
|
548
|
+
return de_CommandError(output, context);
|
|
549
549
|
}
|
|
550
550
|
const data = await parseBody(output.body, context);
|
|
551
551
|
let contents = {};
|
|
@@ -556,34 +556,9 @@ export const de_AcceptPortfolioShareCommand = async (output, context) => {
|
|
|
556
556
|
};
|
|
557
557
|
return response;
|
|
558
558
|
};
|
|
559
|
-
const de_AcceptPortfolioShareCommandError = async (output, context) => {
|
|
560
|
-
const parsedOutput = {
|
|
561
|
-
...output,
|
|
562
|
-
body: await parseErrorBody(output.body, context),
|
|
563
|
-
};
|
|
564
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
565
|
-
switch (errorCode) {
|
|
566
|
-
case "InvalidParametersException":
|
|
567
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
568
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
569
|
-
case "LimitExceededException":
|
|
570
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
571
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
572
|
-
case "ResourceNotFoundException":
|
|
573
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
574
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
575
|
-
default:
|
|
576
|
-
const parsedBody = parsedOutput.body;
|
|
577
|
-
return throwDefaultError({
|
|
578
|
-
output,
|
|
579
|
-
parsedBody,
|
|
580
|
-
errorCode,
|
|
581
|
-
});
|
|
582
|
-
}
|
|
583
|
-
};
|
|
584
559
|
export const de_AssociateBudgetWithResourceCommand = async (output, context) => {
|
|
585
560
|
if (output.statusCode >= 300) {
|
|
586
|
-
return
|
|
561
|
+
return de_CommandError(output, context);
|
|
587
562
|
}
|
|
588
563
|
const data = await parseBody(output.body, context);
|
|
589
564
|
let contents = {};
|
|
@@ -594,37 +569,9 @@ export const de_AssociateBudgetWithResourceCommand = async (output, context) =>
|
|
|
594
569
|
};
|
|
595
570
|
return response;
|
|
596
571
|
};
|
|
597
|
-
const de_AssociateBudgetWithResourceCommandError = async (output, context) => {
|
|
598
|
-
const parsedOutput = {
|
|
599
|
-
...output,
|
|
600
|
-
body: await parseErrorBody(output.body, context),
|
|
601
|
-
};
|
|
602
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
603
|
-
switch (errorCode) {
|
|
604
|
-
case "DuplicateResourceException":
|
|
605
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
606
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
607
|
-
case "InvalidParametersException":
|
|
608
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
609
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
610
|
-
case "LimitExceededException":
|
|
611
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
612
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
613
|
-
case "ResourceNotFoundException":
|
|
614
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
615
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
616
|
-
default:
|
|
617
|
-
const parsedBody = parsedOutput.body;
|
|
618
|
-
return throwDefaultError({
|
|
619
|
-
output,
|
|
620
|
-
parsedBody,
|
|
621
|
-
errorCode,
|
|
622
|
-
});
|
|
623
|
-
}
|
|
624
|
-
};
|
|
625
572
|
export const de_AssociatePrincipalWithPortfolioCommand = async (output, context) => {
|
|
626
573
|
if (output.statusCode >= 300) {
|
|
627
|
-
return
|
|
574
|
+
return de_CommandError(output, context);
|
|
628
575
|
}
|
|
629
576
|
const data = await parseBody(output.body, context);
|
|
630
577
|
let contents = {};
|
|
@@ -635,34 +582,9 @@ export const de_AssociatePrincipalWithPortfolioCommand = async (output, context)
|
|
|
635
582
|
};
|
|
636
583
|
return response;
|
|
637
584
|
};
|
|
638
|
-
const de_AssociatePrincipalWithPortfolioCommandError = async (output, context) => {
|
|
639
|
-
const parsedOutput = {
|
|
640
|
-
...output,
|
|
641
|
-
body: await parseErrorBody(output.body, context),
|
|
642
|
-
};
|
|
643
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
644
|
-
switch (errorCode) {
|
|
645
|
-
case "InvalidParametersException":
|
|
646
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
647
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
648
|
-
case "LimitExceededException":
|
|
649
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
650
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
651
|
-
case "ResourceNotFoundException":
|
|
652
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
653
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
654
|
-
default:
|
|
655
|
-
const parsedBody = parsedOutput.body;
|
|
656
|
-
return throwDefaultError({
|
|
657
|
-
output,
|
|
658
|
-
parsedBody,
|
|
659
|
-
errorCode,
|
|
660
|
-
});
|
|
661
|
-
}
|
|
662
|
-
};
|
|
663
585
|
export const de_AssociateProductWithPortfolioCommand = async (output, context) => {
|
|
664
586
|
if (output.statusCode >= 300) {
|
|
665
|
-
return
|
|
587
|
+
return de_CommandError(output, context);
|
|
666
588
|
}
|
|
667
589
|
const data = await parseBody(output.body, context);
|
|
668
590
|
let contents = {};
|
|
@@ -673,34 +595,9 @@ export const de_AssociateProductWithPortfolioCommand = async (output, context) =
|
|
|
673
595
|
};
|
|
674
596
|
return response;
|
|
675
597
|
};
|
|
676
|
-
const de_AssociateProductWithPortfolioCommandError = async (output, context) => {
|
|
677
|
-
const parsedOutput = {
|
|
678
|
-
...output,
|
|
679
|
-
body: await parseErrorBody(output.body, context),
|
|
680
|
-
};
|
|
681
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
682
|
-
switch (errorCode) {
|
|
683
|
-
case "InvalidParametersException":
|
|
684
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
685
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
686
|
-
case "LimitExceededException":
|
|
687
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
688
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
689
|
-
case "ResourceNotFoundException":
|
|
690
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
691
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
692
|
-
default:
|
|
693
|
-
const parsedBody = parsedOutput.body;
|
|
694
|
-
return throwDefaultError({
|
|
695
|
-
output,
|
|
696
|
-
parsedBody,
|
|
697
|
-
errorCode,
|
|
698
|
-
});
|
|
699
|
-
}
|
|
700
|
-
};
|
|
701
598
|
export const de_AssociateServiceActionWithProvisioningArtifactCommand = async (output, context) => {
|
|
702
599
|
if (output.statusCode >= 300) {
|
|
703
|
-
return
|
|
600
|
+
return de_CommandError(output, context);
|
|
704
601
|
}
|
|
705
602
|
const data = await parseBody(output.body, context);
|
|
706
603
|
let contents = {};
|
|
@@ -711,37 +608,9 @@ export const de_AssociateServiceActionWithProvisioningArtifactCommand = async (o
|
|
|
711
608
|
};
|
|
712
609
|
return response;
|
|
713
610
|
};
|
|
714
|
-
const de_AssociateServiceActionWithProvisioningArtifactCommandError = async (output, context) => {
|
|
715
|
-
const parsedOutput = {
|
|
716
|
-
...output,
|
|
717
|
-
body: await parseErrorBody(output.body, context),
|
|
718
|
-
};
|
|
719
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
720
|
-
switch (errorCode) {
|
|
721
|
-
case "DuplicateResourceException":
|
|
722
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
723
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
724
|
-
case "InvalidParametersException":
|
|
725
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
726
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
727
|
-
case "LimitExceededException":
|
|
728
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
729
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
730
|
-
case "ResourceNotFoundException":
|
|
731
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
732
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
733
|
-
default:
|
|
734
|
-
const parsedBody = parsedOutput.body;
|
|
735
|
-
return throwDefaultError({
|
|
736
|
-
output,
|
|
737
|
-
parsedBody,
|
|
738
|
-
errorCode,
|
|
739
|
-
});
|
|
740
|
-
}
|
|
741
|
-
};
|
|
742
611
|
export const de_AssociateTagOptionWithResourceCommand = async (output, context) => {
|
|
743
612
|
if (output.statusCode >= 300) {
|
|
744
|
-
return
|
|
613
|
+
return de_CommandError(output, context);
|
|
745
614
|
}
|
|
746
615
|
const data = await parseBody(output.body, context);
|
|
747
616
|
let contents = {};
|
|
@@ -752,43 +621,9 @@ export const de_AssociateTagOptionWithResourceCommand = async (output, context)
|
|
|
752
621
|
};
|
|
753
622
|
return response;
|
|
754
623
|
};
|
|
755
|
-
const de_AssociateTagOptionWithResourceCommandError = async (output, context) => {
|
|
756
|
-
const parsedOutput = {
|
|
757
|
-
...output,
|
|
758
|
-
body: await parseErrorBody(output.body, context),
|
|
759
|
-
};
|
|
760
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
761
|
-
switch (errorCode) {
|
|
762
|
-
case "DuplicateResourceException":
|
|
763
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
764
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
765
|
-
case "InvalidParametersException":
|
|
766
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
767
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
768
|
-
case "InvalidStateException":
|
|
769
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
770
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
771
|
-
case "LimitExceededException":
|
|
772
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
773
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
774
|
-
case "ResourceNotFoundException":
|
|
775
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
776
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
777
|
-
case "TagOptionNotMigratedException":
|
|
778
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
779
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
780
|
-
default:
|
|
781
|
-
const parsedBody = parsedOutput.body;
|
|
782
|
-
return throwDefaultError({
|
|
783
|
-
output,
|
|
784
|
-
parsedBody,
|
|
785
|
-
errorCode,
|
|
786
|
-
});
|
|
787
|
-
}
|
|
788
|
-
};
|
|
789
624
|
export const de_BatchAssociateServiceActionWithProvisioningArtifactCommand = async (output, context) => {
|
|
790
625
|
if (output.statusCode >= 300) {
|
|
791
|
-
return
|
|
626
|
+
return de_CommandError(output, context);
|
|
792
627
|
}
|
|
793
628
|
const data = await parseBody(output.body, context);
|
|
794
629
|
let contents = {};
|
|
@@ -799,28 +634,9 @@ export const de_BatchAssociateServiceActionWithProvisioningArtifactCommand = asy
|
|
|
799
634
|
};
|
|
800
635
|
return response;
|
|
801
636
|
};
|
|
802
|
-
const de_BatchAssociateServiceActionWithProvisioningArtifactCommandError = async (output, context) => {
|
|
803
|
-
const parsedOutput = {
|
|
804
|
-
...output,
|
|
805
|
-
body: await parseErrorBody(output.body, context),
|
|
806
|
-
};
|
|
807
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
808
|
-
switch (errorCode) {
|
|
809
|
-
case "InvalidParametersException":
|
|
810
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
811
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
812
|
-
default:
|
|
813
|
-
const parsedBody = parsedOutput.body;
|
|
814
|
-
return throwDefaultError({
|
|
815
|
-
output,
|
|
816
|
-
parsedBody,
|
|
817
|
-
errorCode,
|
|
818
|
-
});
|
|
819
|
-
}
|
|
820
|
-
};
|
|
821
637
|
export const de_BatchDisassociateServiceActionFromProvisioningArtifactCommand = async (output, context) => {
|
|
822
638
|
if (output.statusCode >= 300) {
|
|
823
|
-
return
|
|
639
|
+
return de_CommandError(output, context);
|
|
824
640
|
}
|
|
825
641
|
const data = await parseBody(output.body, context);
|
|
826
642
|
let contents = {};
|
|
@@ -831,28 +647,9 @@ export const de_BatchDisassociateServiceActionFromProvisioningArtifactCommand =
|
|
|
831
647
|
};
|
|
832
648
|
return response;
|
|
833
649
|
};
|
|
834
|
-
const de_BatchDisassociateServiceActionFromProvisioningArtifactCommandError = async (output, context) => {
|
|
835
|
-
const parsedOutput = {
|
|
836
|
-
...output,
|
|
837
|
-
body: await parseErrorBody(output.body, context),
|
|
838
|
-
};
|
|
839
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
840
|
-
switch (errorCode) {
|
|
841
|
-
case "InvalidParametersException":
|
|
842
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
843
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
844
|
-
default:
|
|
845
|
-
const parsedBody = parsedOutput.body;
|
|
846
|
-
return throwDefaultError({
|
|
847
|
-
output,
|
|
848
|
-
parsedBody,
|
|
849
|
-
errorCode,
|
|
850
|
-
});
|
|
851
|
-
}
|
|
852
|
-
};
|
|
853
650
|
export const de_CopyProductCommand = async (output, context) => {
|
|
854
651
|
if (output.statusCode >= 300) {
|
|
855
|
-
return
|
|
652
|
+
return de_CommandError(output, context);
|
|
856
653
|
}
|
|
857
654
|
const data = await parseBody(output.body, context);
|
|
858
655
|
let contents = {};
|
|
@@ -863,31 +660,9 @@ export const de_CopyProductCommand = async (output, context) => {
|
|
|
863
660
|
};
|
|
864
661
|
return response;
|
|
865
662
|
};
|
|
866
|
-
const de_CopyProductCommandError = async (output, context) => {
|
|
867
|
-
const parsedOutput = {
|
|
868
|
-
...output,
|
|
869
|
-
body: await parseErrorBody(output.body, context),
|
|
870
|
-
};
|
|
871
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
872
|
-
switch (errorCode) {
|
|
873
|
-
case "InvalidParametersException":
|
|
874
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
875
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
876
|
-
case "ResourceNotFoundException":
|
|
877
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
878
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
879
|
-
default:
|
|
880
|
-
const parsedBody = parsedOutput.body;
|
|
881
|
-
return throwDefaultError({
|
|
882
|
-
output,
|
|
883
|
-
parsedBody,
|
|
884
|
-
errorCode,
|
|
885
|
-
});
|
|
886
|
-
}
|
|
887
|
-
};
|
|
888
663
|
export const de_CreateConstraintCommand = async (output, context) => {
|
|
889
664
|
if (output.statusCode >= 300) {
|
|
890
|
-
return
|
|
665
|
+
return de_CommandError(output, context);
|
|
891
666
|
}
|
|
892
667
|
const data = await parseBody(output.body, context);
|
|
893
668
|
let contents = {};
|
|
@@ -898,37 +673,9 @@ export const de_CreateConstraintCommand = async (output, context) => {
|
|
|
898
673
|
};
|
|
899
674
|
return response;
|
|
900
675
|
};
|
|
901
|
-
const de_CreateConstraintCommandError = async (output, context) => {
|
|
902
|
-
const parsedOutput = {
|
|
903
|
-
...output,
|
|
904
|
-
body: await parseErrorBody(output.body, context),
|
|
905
|
-
};
|
|
906
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
907
|
-
switch (errorCode) {
|
|
908
|
-
case "DuplicateResourceException":
|
|
909
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
910
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
911
|
-
case "InvalidParametersException":
|
|
912
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
913
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
914
|
-
case "LimitExceededException":
|
|
915
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
916
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
917
|
-
case "ResourceNotFoundException":
|
|
918
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
919
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
920
|
-
default:
|
|
921
|
-
const parsedBody = parsedOutput.body;
|
|
922
|
-
return throwDefaultError({
|
|
923
|
-
output,
|
|
924
|
-
parsedBody,
|
|
925
|
-
errorCode,
|
|
926
|
-
});
|
|
927
|
-
}
|
|
928
|
-
};
|
|
929
676
|
export const de_CreatePortfolioCommand = async (output, context) => {
|
|
930
677
|
if (output.statusCode >= 300) {
|
|
931
|
-
return
|
|
678
|
+
return de_CommandError(output, context);
|
|
932
679
|
}
|
|
933
680
|
const data = await parseBody(output.body, context);
|
|
934
681
|
let contents = {};
|
|
@@ -939,78 +686,22 @@ export const de_CreatePortfolioCommand = async (output, context) => {
|
|
|
939
686
|
};
|
|
940
687
|
return response;
|
|
941
688
|
};
|
|
942
|
-
const
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
case "LimitExceededException":
|
|
953
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
954
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
955
|
-
case "TagOptionNotMigratedException":
|
|
956
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
957
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
958
|
-
default:
|
|
959
|
-
const parsedBody = parsedOutput.body;
|
|
960
|
-
return throwDefaultError({
|
|
961
|
-
output,
|
|
962
|
-
parsedBody,
|
|
963
|
-
errorCode,
|
|
964
|
-
});
|
|
965
|
-
}
|
|
966
|
-
};
|
|
967
|
-
export const de_CreatePortfolioShareCommand = async (output, context) => {
|
|
968
|
-
if (output.statusCode >= 300) {
|
|
969
|
-
return de_CreatePortfolioShareCommandError(output, context);
|
|
970
|
-
}
|
|
971
|
-
const data = await parseBody(output.body, context);
|
|
972
|
-
let contents = {};
|
|
973
|
-
contents = _json(data);
|
|
974
|
-
const response = {
|
|
975
|
-
$metadata: deserializeMetadata(output),
|
|
976
|
-
...contents,
|
|
689
|
+
export const de_CreatePortfolioShareCommand = async (output, context) => {
|
|
690
|
+
if (output.statusCode >= 300) {
|
|
691
|
+
return de_CommandError(output, context);
|
|
692
|
+
}
|
|
693
|
+
const data = await parseBody(output.body, context);
|
|
694
|
+
let contents = {};
|
|
695
|
+
contents = _json(data);
|
|
696
|
+
const response = {
|
|
697
|
+
$metadata: deserializeMetadata(output),
|
|
698
|
+
...contents,
|
|
977
699
|
};
|
|
978
700
|
return response;
|
|
979
701
|
};
|
|
980
|
-
const de_CreatePortfolioShareCommandError = async (output, context) => {
|
|
981
|
-
const parsedOutput = {
|
|
982
|
-
...output,
|
|
983
|
-
body: await parseErrorBody(output.body, context),
|
|
984
|
-
};
|
|
985
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
986
|
-
switch (errorCode) {
|
|
987
|
-
case "InvalidParametersException":
|
|
988
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
989
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
990
|
-
case "InvalidStateException":
|
|
991
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
992
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
993
|
-
case "LimitExceededException":
|
|
994
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
995
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
996
|
-
case "OperationNotSupportedException":
|
|
997
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
998
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
999
|
-
case "ResourceNotFoundException":
|
|
1000
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1001
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1002
|
-
default:
|
|
1003
|
-
const parsedBody = parsedOutput.body;
|
|
1004
|
-
return throwDefaultError({
|
|
1005
|
-
output,
|
|
1006
|
-
parsedBody,
|
|
1007
|
-
errorCode,
|
|
1008
|
-
});
|
|
1009
|
-
}
|
|
1010
|
-
};
|
|
1011
702
|
export const de_CreateProductCommand = async (output, context) => {
|
|
1012
703
|
if (output.statusCode >= 300) {
|
|
1013
|
-
return
|
|
704
|
+
return de_CommandError(output, context);
|
|
1014
705
|
}
|
|
1015
706
|
const data = await parseBody(output.body, context);
|
|
1016
707
|
let contents = {};
|
|
@@ -1021,34 +712,9 @@ export const de_CreateProductCommand = async (output, context) => {
|
|
|
1021
712
|
};
|
|
1022
713
|
return response;
|
|
1023
714
|
};
|
|
1024
|
-
const de_CreateProductCommandError = async (output, context) => {
|
|
1025
|
-
const parsedOutput = {
|
|
1026
|
-
...output,
|
|
1027
|
-
body: await parseErrorBody(output.body, context),
|
|
1028
|
-
};
|
|
1029
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1030
|
-
switch (errorCode) {
|
|
1031
|
-
case "InvalidParametersException":
|
|
1032
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1033
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1034
|
-
case "LimitExceededException":
|
|
1035
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1036
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1037
|
-
case "TagOptionNotMigratedException":
|
|
1038
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
1039
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
1040
|
-
default:
|
|
1041
|
-
const parsedBody = parsedOutput.body;
|
|
1042
|
-
return throwDefaultError({
|
|
1043
|
-
output,
|
|
1044
|
-
parsedBody,
|
|
1045
|
-
errorCode,
|
|
1046
|
-
});
|
|
1047
|
-
}
|
|
1048
|
-
};
|
|
1049
715
|
export const de_CreateProvisionedProductPlanCommand = async (output, context) => {
|
|
1050
716
|
if (output.statusCode >= 300) {
|
|
1051
|
-
return
|
|
717
|
+
return de_CommandError(output, context);
|
|
1052
718
|
}
|
|
1053
719
|
const data = await parseBody(output.body, context);
|
|
1054
720
|
let contents = {};
|
|
@@ -1059,34 +725,9 @@ export const de_CreateProvisionedProductPlanCommand = async (output, context) =>
|
|
|
1059
725
|
};
|
|
1060
726
|
return response;
|
|
1061
727
|
};
|
|
1062
|
-
const de_CreateProvisionedProductPlanCommandError = async (output, context) => {
|
|
1063
|
-
const parsedOutput = {
|
|
1064
|
-
...output,
|
|
1065
|
-
body: await parseErrorBody(output.body, context),
|
|
1066
|
-
};
|
|
1067
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1068
|
-
switch (errorCode) {
|
|
1069
|
-
case "InvalidParametersException":
|
|
1070
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1071
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1072
|
-
case "InvalidStateException":
|
|
1073
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
1074
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1075
|
-
case "ResourceNotFoundException":
|
|
1076
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1077
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1078
|
-
default:
|
|
1079
|
-
const parsedBody = parsedOutput.body;
|
|
1080
|
-
return throwDefaultError({
|
|
1081
|
-
output,
|
|
1082
|
-
parsedBody,
|
|
1083
|
-
errorCode,
|
|
1084
|
-
});
|
|
1085
|
-
}
|
|
1086
|
-
};
|
|
1087
728
|
export const de_CreateProvisioningArtifactCommand = async (output, context) => {
|
|
1088
729
|
if (output.statusCode >= 300) {
|
|
1089
|
-
return
|
|
730
|
+
return de_CommandError(output, context);
|
|
1090
731
|
}
|
|
1091
732
|
const data = await parseBody(output.body, context);
|
|
1092
733
|
let contents = {};
|
|
@@ -1097,34 +738,9 @@ export const de_CreateProvisioningArtifactCommand = async (output, context) => {
|
|
|
1097
738
|
};
|
|
1098
739
|
return response;
|
|
1099
740
|
};
|
|
1100
|
-
const de_CreateProvisioningArtifactCommandError = async (output, context) => {
|
|
1101
|
-
const parsedOutput = {
|
|
1102
|
-
...output,
|
|
1103
|
-
body: await parseErrorBody(output.body, context),
|
|
1104
|
-
};
|
|
1105
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1106
|
-
switch (errorCode) {
|
|
1107
|
-
case "InvalidParametersException":
|
|
1108
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1109
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1110
|
-
case "LimitExceededException":
|
|
1111
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1112
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "ResourceNotFoundException":
|
|
1114
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1115
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1116
|
-
default:
|
|
1117
|
-
const parsedBody = parsedOutput.body;
|
|
1118
|
-
return throwDefaultError({
|
|
1119
|
-
output,
|
|
1120
|
-
parsedBody,
|
|
1121
|
-
errorCode,
|
|
1122
|
-
});
|
|
1123
|
-
}
|
|
1124
|
-
};
|
|
1125
741
|
export const de_CreateServiceActionCommand = async (output, context) => {
|
|
1126
742
|
if (output.statusCode >= 300) {
|
|
1127
|
-
return
|
|
743
|
+
return de_CommandError(output, context);
|
|
1128
744
|
}
|
|
1129
745
|
const data = await parseBody(output.body, context);
|
|
1130
746
|
let contents = {};
|
|
@@ -1135,31 +751,9 @@ export const de_CreateServiceActionCommand = async (output, context) => {
|
|
|
1135
751
|
};
|
|
1136
752
|
return response;
|
|
1137
753
|
};
|
|
1138
|
-
const de_CreateServiceActionCommandError = async (output, context) => {
|
|
1139
|
-
const parsedOutput = {
|
|
1140
|
-
...output,
|
|
1141
|
-
body: await parseErrorBody(output.body, context),
|
|
1142
|
-
};
|
|
1143
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1144
|
-
switch (errorCode) {
|
|
1145
|
-
case "InvalidParametersException":
|
|
1146
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1147
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1148
|
-
case "LimitExceededException":
|
|
1149
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1150
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1151
|
-
default:
|
|
1152
|
-
const parsedBody = parsedOutput.body;
|
|
1153
|
-
return throwDefaultError({
|
|
1154
|
-
output,
|
|
1155
|
-
parsedBody,
|
|
1156
|
-
errorCode,
|
|
1157
|
-
});
|
|
1158
|
-
}
|
|
1159
|
-
};
|
|
1160
754
|
export const de_CreateTagOptionCommand = async (output, context) => {
|
|
1161
755
|
if (output.statusCode >= 300) {
|
|
1162
|
-
return
|
|
756
|
+
return de_CommandError(output, context);
|
|
1163
757
|
}
|
|
1164
758
|
const data = await parseBody(output.body, context);
|
|
1165
759
|
let contents = {};
|
|
@@ -1170,34 +764,9 @@ export const de_CreateTagOptionCommand = async (output, context) => {
|
|
|
1170
764
|
};
|
|
1171
765
|
return response;
|
|
1172
766
|
};
|
|
1173
|
-
const de_CreateTagOptionCommandError = async (output, context) => {
|
|
1174
|
-
const parsedOutput = {
|
|
1175
|
-
...output,
|
|
1176
|
-
body: await parseErrorBody(output.body, context),
|
|
1177
|
-
};
|
|
1178
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1179
|
-
switch (errorCode) {
|
|
1180
|
-
case "DuplicateResourceException":
|
|
1181
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
1182
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
1183
|
-
case "LimitExceededException":
|
|
1184
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1185
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1186
|
-
case "TagOptionNotMigratedException":
|
|
1187
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
1188
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
1189
|
-
default:
|
|
1190
|
-
const parsedBody = parsedOutput.body;
|
|
1191
|
-
return throwDefaultError({
|
|
1192
|
-
output,
|
|
1193
|
-
parsedBody,
|
|
1194
|
-
errorCode,
|
|
1195
|
-
});
|
|
1196
|
-
}
|
|
1197
|
-
};
|
|
1198
767
|
export const de_DeleteConstraintCommand = async (output, context) => {
|
|
1199
768
|
if (output.statusCode >= 300) {
|
|
1200
|
-
return
|
|
769
|
+
return de_CommandError(output, context);
|
|
1201
770
|
}
|
|
1202
771
|
const data = await parseBody(output.body, context);
|
|
1203
772
|
let contents = {};
|
|
@@ -1208,31 +777,9 @@ export const de_DeleteConstraintCommand = async (output, context) => {
|
|
|
1208
777
|
};
|
|
1209
778
|
return response;
|
|
1210
779
|
};
|
|
1211
|
-
const de_DeleteConstraintCommandError = async (output, context) => {
|
|
1212
|
-
const parsedOutput = {
|
|
1213
|
-
...output,
|
|
1214
|
-
body: await parseErrorBody(output.body, context),
|
|
1215
|
-
};
|
|
1216
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1217
|
-
switch (errorCode) {
|
|
1218
|
-
case "InvalidParametersException":
|
|
1219
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1220
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1221
|
-
case "ResourceNotFoundException":
|
|
1222
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1223
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1224
|
-
default:
|
|
1225
|
-
const parsedBody = parsedOutput.body;
|
|
1226
|
-
return throwDefaultError({
|
|
1227
|
-
output,
|
|
1228
|
-
parsedBody,
|
|
1229
|
-
errorCode,
|
|
1230
|
-
});
|
|
1231
|
-
}
|
|
1232
|
-
};
|
|
1233
780
|
export const de_DeletePortfolioCommand = async (output, context) => {
|
|
1234
781
|
if (output.statusCode >= 300) {
|
|
1235
|
-
return
|
|
782
|
+
return de_CommandError(output, context);
|
|
1236
783
|
}
|
|
1237
784
|
const data = await parseBody(output.body, context);
|
|
1238
785
|
let contents = {};
|
|
@@ -1243,37 +790,9 @@ export const de_DeletePortfolioCommand = async (output, context) => {
|
|
|
1243
790
|
};
|
|
1244
791
|
return response;
|
|
1245
792
|
};
|
|
1246
|
-
const de_DeletePortfolioCommandError = async (output, context) => {
|
|
1247
|
-
const parsedOutput = {
|
|
1248
|
-
...output,
|
|
1249
|
-
body: await parseErrorBody(output.body, context),
|
|
1250
|
-
};
|
|
1251
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1252
|
-
switch (errorCode) {
|
|
1253
|
-
case "InvalidParametersException":
|
|
1254
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1255
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1256
|
-
case "ResourceInUseException":
|
|
1257
|
-
case "com.amazonaws.servicecatalog#ResourceInUseException":
|
|
1258
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1259
|
-
case "ResourceNotFoundException":
|
|
1260
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1261
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1262
|
-
case "TagOptionNotMigratedException":
|
|
1263
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
1264
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
1265
|
-
default:
|
|
1266
|
-
const parsedBody = parsedOutput.body;
|
|
1267
|
-
return throwDefaultError({
|
|
1268
|
-
output,
|
|
1269
|
-
parsedBody,
|
|
1270
|
-
errorCode,
|
|
1271
|
-
});
|
|
1272
|
-
}
|
|
1273
|
-
};
|
|
1274
793
|
export const de_DeletePortfolioShareCommand = async (output, context) => {
|
|
1275
794
|
if (output.statusCode >= 300) {
|
|
1276
|
-
return
|
|
795
|
+
return de_CommandError(output, context);
|
|
1277
796
|
}
|
|
1278
797
|
const data = await parseBody(output.body, context);
|
|
1279
798
|
let contents = {};
|
|
@@ -1284,37 +803,9 @@ export const de_DeletePortfolioShareCommand = async (output, context) => {
|
|
|
1284
803
|
};
|
|
1285
804
|
return response;
|
|
1286
805
|
};
|
|
1287
|
-
const de_DeletePortfolioShareCommandError = 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 "InvalidParametersException":
|
|
1295
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1296
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1297
|
-
case "InvalidStateException":
|
|
1298
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
1299
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1300
|
-
case "OperationNotSupportedException":
|
|
1301
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
1302
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1303
|
-
case "ResourceNotFoundException":
|
|
1304
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1305
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1306
|
-
default:
|
|
1307
|
-
const parsedBody = parsedOutput.body;
|
|
1308
|
-
return throwDefaultError({
|
|
1309
|
-
output,
|
|
1310
|
-
parsedBody,
|
|
1311
|
-
errorCode,
|
|
1312
|
-
});
|
|
1313
|
-
}
|
|
1314
|
-
};
|
|
1315
806
|
export const de_DeleteProductCommand = async (output, context) => {
|
|
1316
807
|
if (output.statusCode >= 300) {
|
|
1317
|
-
return
|
|
808
|
+
return de_CommandError(output, context);
|
|
1318
809
|
}
|
|
1319
810
|
const data = await parseBody(output.body, context);
|
|
1320
811
|
let contents = {};
|
|
@@ -1325,37 +816,9 @@ export const de_DeleteProductCommand = async (output, context) => {
|
|
|
1325
816
|
};
|
|
1326
817
|
return response;
|
|
1327
818
|
};
|
|
1328
|
-
const de_DeleteProductCommandError = async (output, context) => {
|
|
1329
|
-
const parsedOutput = {
|
|
1330
|
-
...output,
|
|
1331
|
-
body: await parseErrorBody(output.body, context),
|
|
1332
|
-
};
|
|
1333
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1334
|
-
switch (errorCode) {
|
|
1335
|
-
case "InvalidParametersException":
|
|
1336
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1337
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1338
|
-
case "ResourceInUseException":
|
|
1339
|
-
case "com.amazonaws.servicecatalog#ResourceInUseException":
|
|
1340
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1341
|
-
case "ResourceNotFoundException":
|
|
1342
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1343
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1344
|
-
case "TagOptionNotMigratedException":
|
|
1345
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
1346
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
1347
|
-
default:
|
|
1348
|
-
const parsedBody = parsedOutput.body;
|
|
1349
|
-
return throwDefaultError({
|
|
1350
|
-
output,
|
|
1351
|
-
parsedBody,
|
|
1352
|
-
errorCode,
|
|
1353
|
-
});
|
|
1354
|
-
}
|
|
1355
|
-
};
|
|
1356
819
|
export const de_DeleteProvisionedProductPlanCommand = async (output, context) => {
|
|
1357
820
|
if (output.statusCode >= 300) {
|
|
1358
|
-
return
|
|
821
|
+
return de_CommandError(output, context);
|
|
1359
822
|
}
|
|
1360
823
|
const data = await parseBody(output.body, context);
|
|
1361
824
|
let contents = {};
|
|
@@ -1366,31 +829,9 @@ export const de_DeleteProvisionedProductPlanCommand = async (output, context) =>
|
|
|
1366
829
|
};
|
|
1367
830
|
return response;
|
|
1368
831
|
};
|
|
1369
|
-
const de_DeleteProvisionedProductPlanCommandError = async (output, context) => {
|
|
1370
|
-
const parsedOutput = {
|
|
1371
|
-
...output,
|
|
1372
|
-
body: await parseErrorBody(output.body, context),
|
|
1373
|
-
};
|
|
1374
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1375
|
-
switch (errorCode) {
|
|
1376
|
-
case "InvalidParametersException":
|
|
1377
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1378
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1379
|
-
case "ResourceNotFoundException":
|
|
1380
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1381
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1382
|
-
default:
|
|
1383
|
-
const parsedBody = parsedOutput.body;
|
|
1384
|
-
return throwDefaultError({
|
|
1385
|
-
output,
|
|
1386
|
-
parsedBody,
|
|
1387
|
-
errorCode,
|
|
1388
|
-
});
|
|
1389
|
-
}
|
|
1390
|
-
};
|
|
1391
832
|
export const de_DeleteProvisioningArtifactCommand = async (output, context) => {
|
|
1392
833
|
if (output.statusCode >= 300) {
|
|
1393
|
-
return
|
|
834
|
+
return de_CommandError(output, context);
|
|
1394
835
|
}
|
|
1395
836
|
const data = await parseBody(output.body, context);
|
|
1396
837
|
let contents = {};
|
|
@@ -1401,34 +842,9 @@ export const de_DeleteProvisioningArtifactCommand = async (output, context) => {
|
|
|
1401
842
|
};
|
|
1402
843
|
return response;
|
|
1403
844
|
};
|
|
1404
|
-
const de_DeleteProvisioningArtifactCommandError = async (output, context) => {
|
|
1405
|
-
const parsedOutput = {
|
|
1406
|
-
...output,
|
|
1407
|
-
body: await parseErrorBody(output.body, context),
|
|
1408
|
-
};
|
|
1409
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1410
|
-
switch (errorCode) {
|
|
1411
|
-
case "InvalidParametersException":
|
|
1412
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1413
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1414
|
-
case "ResourceInUseException":
|
|
1415
|
-
case "com.amazonaws.servicecatalog#ResourceInUseException":
|
|
1416
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1417
|
-
case "ResourceNotFoundException":
|
|
1418
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1419
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1420
|
-
default:
|
|
1421
|
-
const parsedBody = parsedOutput.body;
|
|
1422
|
-
return throwDefaultError({
|
|
1423
|
-
output,
|
|
1424
|
-
parsedBody,
|
|
1425
|
-
errorCode,
|
|
1426
|
-
});
|
|
1427
|
-
}
|
|
1428
|
-
};
|
|
1429
845
|
export const de_DeleteServiceActionCommand = async (output, context) => {
|
|
1430
846
|
if (output.statusCode >= 300) {
|
|
1431
|
-
return
|
|
847
|
+
return de_CommandError(output, context);
|
|
1432
848
|
}
|
|
1433
849
|
const data = await parseBody(output.body, context);
|
|
1434
850
|
let contents = {};
|
|
@@ -1439,31 +855,9 @@ export const de_DeleteServiceActionCommand = async (output, context) => {
|
|
|
1439
855
|
};
|
|
1440
856
|
return response;
|
|
1441
857
|
};
|
|
1442
|
-
const de_DeleteServiceActionCommandError = async (output, context) => {
|
|
1443
|
-
const parsedOutput = {
|
|
1444
|
-
...output,
|
|
1445
|
-
body: await parseErrorBody(output.body, context),
|
|
1446
|
-
};
|
|
1447
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1448
|
-
switch (errorCode) {
|
|
1449
|
-
case "ResourceInUseException":
|
|
1450
|
-
case "com.amazonaws.servicecatalog#ResourceInUseException":
|
|
1451
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1452
|
-
case "ResourceNotFoundException":
|
|
1453
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1454
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1455
|
-
default:
|
|
1456
|
-
const parsedBody = parsedOutput.body;
|
|
1457
|
-
return throwDefaultError({
|
|
1458
|
-
output,
|
|
1459
|
-
parsedBody,
|
|
1460
|
-
errorCode,
|
|
1461
|
-
});
|
|
1462
|
-
}
|
|
1463
|
-
};
|
|
1464
858
|
export const de_DeleteTagOptionCommand = async (output, context) => {
|
|
1465
859
|
if (output.statusCode >= 300) {
|
|
1466
|
-
return
|
|
860
|
+
return de_CommandError(output, context);
|
|
1467
861
|
}
|
|
1468
862
|
const data = await parseBody(output.body, context);
|
|
1469
863
|
let contents = {};
|
|
@@ -1474,34 +868,9 @@ export const de_DeleteTagOptionCommand = async (output, context) => {
|
|
|
1474
868
|
};
|
|
1475
869
|
return response;
|
|
1476
870
|
};
|
|
1477
|
-
const de_DeleteTagOptionCommandError = 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 "ResourceInUseException":
|
|
1485
|
-
case "com.amazonaws.servicecatalog#ResourceInUseException":
|
|
1486
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1487
|
-
case "ResourceNotFoundException":
|
|
1488
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1489
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1490
|
-
case "TagOptionNotMigratedException":
|
|
1491
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
1492
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
1493
|
-
default:
|
|
1494
|
-
const parsedBody = parsedOutput.body;
|
|
1495
|
-
return throwDefaultError({
|
|
1496
|
-
output,
|
|
1497
|
-
parsedBody,
|
|
1498
|
-
errorCode,
|
|
1499
|
-
});
|
|
1500
|
-
}
|
|
1501
|
-
};
|
|
1502
871
|
export const de_DescribeConstraintCommand = async (output, context) => {
|
|
1503
872
|
if (output.statusCode >= 300) {
|
|
1504
|
-
return
|
|
873
|
+
return de_CommandError(output, context);
|
|
1505
874
|
}
|
|
1506
875
|
const data = await parseBody(output.body, context);
|
|
1507
876
|
let contents = {};
|
|
@@ -1512,28 +881,9 @@ export const de_DescribeConstraintCommand = async (output, context) => {
|
|
|
1512
881
|
};
|
|
1513
882
|
return response;
|
|
1514
883
|
};
|
|
1515
|
-
const de_DescribeConstraintCommandError = async (output, context) => {
|
|
1516
|
-
const parsedOutput = {
|
|
1517
|
-
...output,
|
|
1518
|
-
body: await parseErrorBody(output.body, context),
|
|
1519
|
-
};
|
|
1520
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1521
|
-
switch (errorCode) {
|
|
1522
|
-
case "ResourceNotFoundException":
|
|
1523
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1524
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1525
|
-
default:
|
|
1526
|
-
const parsedBody = parsedOutput.body;
|
|
1527
|
-
return throwDefaultError({
|
|
1528
|
-
output,
|
|
1529
|
-
parsedBody,
|
|
1530
|
-
errorCode,
|
|
1531
|
-
});
|
|
1532
|
-
}
|
|
1533
|
-
};
|
|
1534
884
|
export const de_DescribeCopyProductStatusCommand = async (output, context) => {
|
|
1535
885
|
if (output.statusCode >= 300) {
|
|
1536
|
-
return
|
|
886
|
+
return de_CommandError(output, context);
|
|
1537
887
|
}
|
|
1538
888
|
const data = await parseBody(output.body, context);
|
|
1539
889
|
let contents = {};
|
|
@@ -1544,28 +894,9 @@ export const de_DescribeCopyProductStatusCommand = async (output, context) => {
|
|
|
1544
894
|
};
|
|
1545
895
|
return response;
|
|
1546
896
|
};
|
|
1547
|
-
const de_DescribeCopyProductStatusCommandError = async (output, context) => {
|
|
1548
|
-
const parsedOutput = {
|
|
1549
|
-
...output,
|
|
1550
|
-
body: await parseErrorBody(output.body, context),
|
|
1551
|
-
};
|
|
1552
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1553
|
-
switch (errorCode) {
|
|
1554
|
-
case "ResourceNotFoundException":
|
|
1555
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1556
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1557
|
-
default:
|
|
1558
|
-
const parsedBody = parsedOutput.body;
|
|
1559
|
-
return throwDefaultError({
|
|
1560
|
-
output,
|
|
1561
|
-
parsedBody,
|
|
1562
|
-
errorCode,
|
|
1563
|
-
});
|
|
1564
|
-
}
|
|
1565
|
-
};
|
|
1566
897
|
export const de_DescribePortfolioCommand = async (output, context) => {
|
|
1567
898
|
if (output.statusCode >= 300) {
|
|
1568
|
-
return
|
|
899
|
+
return de_CommandError(output, context);
|
|
1569
900
|
}
|
|
1570
901
|
const data = await parseBody(output.body, context);
|
|
1571
902
|
let contents = {};
|
|
@@ -1576,28 +907,9 @@ export const de_DescribePortfolioCommand = async (output, context) => {
|
|
|
1576
907
|
};
|
|
1577
908
|
return response;
|
|
1578
909
|
};
|
|
1579
|
-
const de_DescribePortfolioCommandError = async (output, context) => {
|
|
1580
|
-
const parsedOutput = {
|
|
1581
|
-
...output,
|
|
1582
|
-
body: await parseErrorBody(output.body, context),
|
|
1583
|
-
};
|
|
1584
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1585
|
-
switch (errorCode) {
|
|
1586
|
-
case "ResourceNotFoundException":
|
|
1587
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1588
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1589
|
-
default:
|
|
1590
|
-
const parsedBody = parsedOutput.body;
|
|
1591
|
-
return throwDefaultError({
|
|
1592
|
-
output,
|
|
1593
|
-
parsedBody,
|
|
1594
|
-
errorCode,
|
|
1595
|
-
});
|
|
1596
|
-
}
|
|
1597
|
-
};
|
|
1598
910
|
export const de_DescribePortfolioSharesCommand = async (output, context) => {
|
|
1599
911
|
if (output.statusCode >= 300) {
|
|
1600
|
-
return
|
|
912
|
+
return de_CommandError(output, context);
|
|
1601
913
|
}
|
|
1602
914
|
const data = await parseBody(output.body, context);
|
|
1603
915
|
let contents = {};
|
|
@@ -1608,31 +920,9 @@ export const de_DescribePortfolioSharesCommand = async (output, context) => {
|
|
|
1608
920
|
};
|
|
1609
921
|
return response;
|
|
1610
922
|
};
|
|
1611
|
-
const de_DescribePortfolioSharesCommandError = async (output, context) => {
|
|
1612
|
-
const parsedOutput = {
|
|
1613
|
-
...output,
|
|
1614
|
-
body: await parseErrorBody(output.body, context),
|
|
1615
|
-
};
|
|
1616
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1617
|
-
switch (errorCode) {
|
|
1618
|
-
case "InvalidParametersException":
|
|
1619
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1620
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1621
|
-
case "ResourceNotFoundException":
|
|
1622
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1623
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1624
|
-
default:
|
|
1625
|
-
const parsedBody = parsedOutput.body;
|
|
1626
|
-
return throwDefaultError({
|
|
1627
|
-
output,
|
|
1628
|
-
parsedBody,
|
|
1629
|
-
errorCode,
|
|
1630
|
-
});
|
|
1631
|
-
}
|
|
1632
|
-
};
|
|
1633
923
|
export const de_DescribePortfolioShareStatusCommand = async (output, context) => {
|
|
1634
924
|
if (output.statusCode >= 300) {
|
|
1635
|
-
return
|
|
925
|
+
return de_CommandError(output, context);
|
|
1636
926
|
}
|
|
1637
927
|
const data = await parseBody(output.body, context);
|
|
1638
928
|
let contents = {};
|
|
@@ -1643,34 +933,9 @@ export const de_DescribePortfolioShareStatusCommand = async (output, context) =>
|
|
|
1643
933
|
};
|
|
1644
934
|
return response;
|
|
1645
935
|
};
|
|
1646
|
-
const de_DescribePortfolioShareStatusCommandError = async (output, context) => {
|
|
1647
|
-
const parsedOutput = {
|
|
1648
|
-
...output,
|
|
1649
|
-
body: await parseErrorBody(output.body, context),
|
|
1650
|
-
};
|
|
1651
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1652
|
-
switch (errorCode) {
|
|
1653
|
-
case "InvalidParametersException":
|
|
1654
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1655
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1656
|
-
case "OperationNotSupportedException":
|
|
1657
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
1658
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1659
|
-
case "ResourceNotFoundException":
|
|
1660
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1661
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1662
|
-
default:
|
|
1663
|
-
const parsedBody = parsedOutput.body;
|
|
1664
|
-
return throwDefaultError({
|
|
1665
|
-
output,
|
|
1666
|
-
parsedBody,
|
|
1667
|
-
errorCode,
|
|
1668
|
-
});
|
|
1669
|
-
}
|
|
1670
|
-
};
|
|
1671
936
|
export const de_DescribeProductCommand = async (output, context) => {
|
|
1672
937
|
if (output.statusCode >= 300) {
|
|
1673
|
-
return
|
|
938
|
+
return de_CommandError(output, context);
|
|
1674
939
|
}
|
|
1675
940
|
const data = await parseBody(output.body, context);
|
|
1676
941
|
let contents = {};
|
|
@@ -1681,31 +946,9 @@ export const de_DescribeProductCommand = async (output, context) => {
|
|
|
1681
946
|
};
|
|
1682
947
|
return response;
|
|
1683
948
|
};
|
|
1684
|
-
const de_DescribeProductCommandError = async (output, context) => {
|
|
1685
|
-
const parsedOutput = {
|
|
1686
|
-
...output,
|
|
1687
|
-
body: await parseErrorBody(output.body, context),
|
|
1688
|
-
};
|
|
1689
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1690
|
-
switch (errorCode) {
|
|
1691
|
-
case "InvalidParametersException":
|
|
1692
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1693
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1694
|
-
case "ResourceNotFoundException":
|
|
1695
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1696
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1697
|
-
default:
|
|
1698
|
-
const parsedBody = parsedOutput.body;
|
|
1699
|
-
return throwDefaultError({
|
|
1700
|
-
output,
|
|
1701
|
-
parsedBody,
|
|
1702
|
-
errorCode,
|
|
1703
|
-
});
|
|
1704
|
-
}
|
|
1705
|
-
};
|
|
1706
949
|
export const de_DescribeProductAsAdminCommand = async (output, context) => {
|
|
1707
950
|
if (output.statusCode >= 300) {
|
|
1708
|
-
return
|
|
951
|
+
return de_CommandError(output, context);
|
|
1709
952
|
}
|
|
1710
953
|
const data = await parseBody(output.body, context);
|
|
1711
954
|
let contents = {};
|
|
@@ -1716,31 +959,9 @@ export const de_DescribeProductAsAdminCommand = async (output, context) => {
|
|
|
1716
959
|
};
|
|
1717
960
|
return response;
|
|
1718
961
|
};
|
|
1719
|
-
const de_DescribeProductAsAdminCommandError = async (output, context) => {
|
|
1720
|
-
const parsedOutput = {
|
|
1721
|
-
...output,
|
|
1722
|
-
body: await parseErrorBody(output.body, context),
|
|
1723
|
-
};
|
|
1724
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1725
|
-
switch (errorCode) {
|
|
1726
|
-
case "InvalidParametersException":
|
|
1727
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1728
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1729
|
-
case "ResourceNotFoundException":
|
|
1730
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1731
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1732
|
-
default:
|
|
1733
|
-
const parsedBody = parsedOutput.body;
|
|
1734
|
-
return throwDefaultError({
|
|
1735
|
-
output,
|
|
1736
|
-
parsedBody,
|
|
1737
|
-
errorCode,
|
|
1738
|
-
});
|
|
1739
|
-
}
|
|
1740
|
-
};
|
|
1741
962
|
export const de_DescribeProductViewCommand = async (output, context) => {
|
|
1742
963
|
if (output.statusCode >= 300) {
|
|
1743
|
-
return
|
|
964
|
+
return de_CommandError(output, context);
|
|
1744
965
|
}
|
|
1745
966
|
const data = await parseBody(output.body, context);
|
|
1746
967
|
let contents = {};
|
|
@@ -1751,31 +972,9 @@ export const de_DescribeProductViewCommand = async (output, context) => {
|
|
|
1751
972
|
};
|
|
1752
973
|
return response;
|
|
1753
974
|
};
|
|
1754
|
-
const de_DescribeProductViewCommandError = async (output, context) => {
|
|
1755
|
-
const parsedOutput = {
|
|
1756
|
-
...output,
|
|
1757
|
-
body: await parseErrorBody(output.body, context),
|
|
1758
|
-
};
|
|
1759
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1760
|
-
switch (errorCode) {
|
|
1761
|
-
case "InvalidParametersException":
|
|
1762
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1763
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1764
|
-
case "ResourceNotFoundException":
|
|
1765
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1766
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1767
|
-
default:
|
|
1768
|
-
const parsedBody = parsedOutput.body;
|
|
1769
|
-
return throwDefaultError({
|
|
1770
|
-
output,
|
|
1771
|
-
parsedBody,
|
|
1772
|
-
errorCode,
|
|
1773
|
-
});
|
|
1774
|
-
}
|
|
1775
|
-
};
|
|
1776
975
|
export const de_DescribeProvisionedProductCommand = async (output, context) => {
|
|
1777
976
|
if (output.statusCode >= 300) {
|
|
1778
|
-
return
|
|
977
|
+
return de_CommandError(output, context);
|
|
1779
978
|
}
|
|
1780
979
|
const data = await parseBody(output.body, context);
|
|
1781
980
|
let contents = {};
|
|
@@ -1786,31 +985,9 @@ export const de_DescribeProvisionedProductCommand = async (output, context) => {
|
|
|
1786
985
|
};
|
|
1787
986
|
return response;
|
|
1788
987
|
};
|
|
1789
|
-
const de_DescribeProvisionedProductCommandError = async (output, context) => {
|
|
1790
|
-
const parsedOutput = {
|
|
1791
|
-
...output,
|
|
1792
|
-
body: await parseErrorBody(output.body, context),
|
|
1793
|
-
};
|
|
1794
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1795
|
-
switch (errorCode) {
|
|
1796
|
-
case "InvalidParametersException":
|
|
1797
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1798
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1799
|
-
case "ResourceNotFoundException":
|
|
1800
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1801
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1802
|
-
default:
|
|
1803
|
-
const parsedBody = parsedOutput.body;
|
|
1804
|
-
return throwDefaultError({
|
|
1805
|
-
output,
|
|
1806
|
-
parsedBody,
|
|
1807
|
-
errorCode,
|
|
1808
|
-
});
|
|
1809
|
-
}
|
|
1810
|
-
};
|
|
1811
988
|
export const de_DescribeProvisionedProductPlanCommand = async (output, context) => {
|
|
1812
989
|
if (output.statusCode >= 300) {
|
|
1813
|
-
return
|
|
990
|
+
return de_CommandError(output, context);
|
|
1814
991
|
}
|
|
1815
992
|
const data = await parseBody(output.body, context);
|
|
1816
993
|
let contents = {};
|
|
@@ -1821,31 +998,9 @@ export const de_DescribeProvisionedProductPlanCommand = async (output, context)
|
|
|
1821
998
|
};
|
|
1822
999
|
return response;
|
|
1823
1000
|
};
|
|
1824
|
-
const de_DescribeProvisionedProductPlanCommandError = async (output, context) => {
|
|
1825
|
-
const parsedOutput = {
|
|
1826
|
-
...output,
|
|
1827
|
-
body: await parseErrorBody(output.body, context),
|
|
1828
|
-
};
|
|
1829
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1830
|
-
switch (errorCode) {
|
|
1831
|
-
case "InvalidParametersException":
|
|
1832
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1833
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1834
|
-
case "ResourceNotFoundException":
|
|
1835
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1836
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1837
|
-
default:
|
|
1838
|
-
const parsedBody = parsedOutput.body;
|
|
1839
|
-
return throwDefaultError({
|
|
1840
|
-
output,
|
|
1841
|
-
parsedBody,
|
|
1842
|
-
errorCode,
|
|
1843
|
-
});
|
|
1844
|
-
}
|
|
1845
|
-
};
|
|
1846
1001
|
export const de_DescribeProvisioningArtifactCommand = async (output, context) => {
|
|
1847
1002
|
if (output.statusCode >= 300) {
|
|
1848
|
-
return
|
|
1003
|
+
return de_CommandError(output, context);
|
|
1849
1004
|
}
|
|
1850
1005
|
const data = await parseBody(output.body, context);
|
|
1851
1006
|
let contents = {};
|
|
@@ -1856,31 +1011,9 @@ export const de_DescribeProvisioningArtifactCommand = async (output, context) =>
|
|
|
1856
1011
|
};
|
|
1857
1012
|
return response;
|
|
1858
1013
|
};
|
|
1859
|
-
const de_DescribeProvisioningArtifactCommandError = async (output, context) => {
|
|
1860
|
-
const parsedOutput = {
|
|
1861
|
-
...output,
|
|
1862
|
-
body: await parseErrorBody(output.body, context),
|
|
1863
|
-
};
|
|
1864
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1865
|
-
switch (errorCode) {
|
|
1866
|
-
case "InvalidParametersException":
|
|
1867
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1868
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1869
|
-
case "ResourceNotFoundException":
|
|
1870
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1871
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1872
|
-
default:
|
|
1873
|
-
const parsedBody = parsedOutput.body;
|
|
1874
|
-
return throwDefaultError({
|
|
1875
|
-
output,
|
|
1876
|
-
parsedBody,
|
|
1877
|
-
errorCode,
|
|
1878
|
-
});
|
|
1879
|
-
}
|
|
1880
|
-
};
|
|
1881
1014
|
export const de_DescribeProvisioningParametersCommand = async (output, context) => {
|
|
1882
1015
|
if (output.statusCode >= 300) {
|
|
1883
|
-
return
|
|
1016
|
+
return de_CommandError(output, context);
|
|
1884
1017
|
}
|
|
1885
1018
|
const data = await parseBody(output.body, context);
|
|
1886
1019
|
let contents = {};
|
|
@@ -1891,31 +1024,9 @@ export const de_DescribeProvisioningParametersCommand = async (output, context)
|
|
|
1891
1024
|
};
|
|
1892
1025
|
return response;
|
|
1893
1026
|
};
|
|
1894
|
-
const de_DescribeProvisioningParametersCommandError = async (output, context) => {
|
|
1895
|
-
const parsedOutput = {
|
|
1896
|
-
...output,
|
|
1897
|
-
body: await parseErrorBody(output.body, context),
|
|
1898
|
-
};
|
|
1899
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1900
|
-
switch (errorCode) {
|
|
1901
|
-
case "InvalidParametersException":
|
|
1902
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
1903
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1904
|
-
case "ResourceNotFoundException":
|
|
1905
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1906
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1907
|
-
default:
|
|
1908
|
-
const parsedBody = parsedOutput.body;
|
|
1909
|
-
return throwDefaultError({
|
|
1910
|
-
output,
|
|
1911
|
-
parsedBody,
|
|
1912
|
-
errorCode,
|
|
1913
|
-
});
|
|
1914
|
-
}
|
|
1915
|
-
};
|
|
1916
1027
|
export const de_DescribeRecordCommand = async (output, context) => {
|
|
1917
1028
|
if (output.statusCode >= 300) {
|
|
1918
|
-
return
|
|
1029
|
+
return de_CommandError(output, context);
|
|
1919
1030
|
}
|
|
1920
1031
|
const data = await parseBody(output.body, context);
|
|
1921
1032
|
let contents = {};
|
|
@@ -1926,28 +1037,9 @@ export const de_DescribeRecordCommand = async (output, context) => {
|
|
|
1926
1037
|
};
|
|
1927
1038
|
return response;
|
|
1928
1039
|
};
|
|
1929
|
-
const de_DescribeRecordCommandError = async (output, context) => {
|
|
1930
|
-
const parsedOutput = {
|
|
1931
|
-
...output,
|
|
1932
|
-
body: await parseErrorBody(output.body, context),
|
|
1933
|
-
};
|
|
1934
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1935
|
-
switch (errorCode) {
|
|
1936
|
-
case "ResourceNotFoundException":
|
|
1937
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1938
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1939
|
-
default:
|
|
1940
|
-
const parsedBody = parsedOutput.body;
|
|
1941
|
-
return throwDefaultError({
|
|
1942
|
-
output,
|
|
1943
|
-
parsedBody,
|
|
1944
|
-
errorCode,
|
|
1945
|
-
});
|
|
1946
|
-
}
|
|
1947
|
-
};
|
|
1948
1040
|
export const de_DescribeServiceActionCommand = async (output, context) => {
|
|
1949
1041
|
if (output.statusCode >= 300) {
|
|
1950
|
-
return
|
|
1042
|
+
return de_CommandError(output, context);
|
|
1951
1043
|
}
|
|
1952
1044
|
const data = await parseBody(output.body, context);
|
|
1953
1045
|
let contents = {};
|
|
@@ -1958,28 +1050,9 @@ export const de_DescribeServiceActionCommand = async (output, context) => {
|
|
|
1958
1050
|
};
|
|
1959
1051
|
return response;
|
|
1960
1052
|
};
|
|
1961
|
-
const de_DescribeServiceActionCommandError = async (output, context) => {
|
|
1962
|
-
const parsedOutput = {
|
|
1963
|
-
...output,
|
|
1964
|
-
body: await parseErrorBody(output.body, context),
|
|
1965
|
-
};
|
|
1966
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1967
|
-
switch (errorCode) {
|
|
1968
|
-
case "ResourceNotFoundException":
|
|
1969
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
1970
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1971
|
-
default:
|
|
1972
|
-
const parsedBody = parsedOutput.body;
|
|
1973
|
-
return throwDefaultError({
|
|
1974
|
-
output,
|
|
1975
|
-
parsedBody,
|
|
1976
|
-
errorCode,
|
|
1977
|
-
});
|
|
1978
|
-
}
|
|
1979
|
-
};
|
|
1980
1053
|
export const de_DescribeServiceActionExecutionParametersCommand = async (output, context) => {
|
|
1981
1054
|
if (output.statusCode >= 300) {
|
|
1982
|
-
return
|
|
1055
|
+
return de_CommandError(output, context);
|
|
1983
1056
|
}
|
|
1984
1057
|
const data = await parseBody(output.body, context);
|
|
1985
1058
|
let contents = {};
|
|
@@ -1990,31 +1063,9 @@ export const de_DescribeServiceActionExecutionParametersCommand = async (output,
|
|
|
1990
1063
|
};
|
|
1991
1064
|
return response;
|
|
1992
1065
|
};
|
|
1993
|
-
const de_DescribeServiceActionExecutionParametersCommandError = async (output, context) => {
|
|
1994
|
-
const parsedOutput = {
|
|
1995
|
-
...output,
|
|
1996
|
-
body: await parseErrorBody(output.body, context),
|
|
1997
|
-
};
|
|
1998
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1999
|
-
switch (errorCode) {
|
|
2000
|
-
case "InvalidParametersException":
|
|
2001
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2002
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2003
|
-
case "ResourceNotFoundException":
|
|
2004
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2005
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2006
|
-
default:
|
|
2007
|
-
const parsedBody = parsedOutput.body;
|
|
2008
|
-
return throwDefaultError({
|
|
2009
|
-
output,
|
|
2010
|
-
parsedBody,
|
|
2011
|
-
errorCode,
|
|
2012
|
-
});
|
|
2013
|
-
}
|
|
2014
|
-
};
|
|
2015
1066
|
export const de_DescribeTagOptionCommand = async (output, context) => {
|
|
2016
1067
|
if (output.statusCode >= 300) {
|
|
2017
|
-
return
|
|
1068
|
+
return de_CommandError(output, context);
|
|
2018
1069
|
}
|
|
2019
1070
|
const data = await parseBody(output.body, context);
|
|
2020
1071
|
let contents = {};
|
|
@@ -2025,31 +1076,9 @@ export const de_DescribeTagOptionCommand = async (output, context) => {
|
|
|
2025
1076
|
};
|
|
2026
1077
|
return response;
|
|
2027
1078
|
};
|
|
2028
|
-
const de_DescribeTagOptionCommandError = async (output, context) => {
|
|
2029
|
-
const parsedOutput = {
|
|
2030
|
-
...output,
|
|
2031
|
-
body: await parseErrorBody(output.body, context),
|
|
2032
|
-
};
|
|
2033
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2034
|
-
switch (errorCode) {
|
|
2035
|
-
case "ResourceNotFoundException":
|
|
2036
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2037
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2038
|
-
case "TagOptionNotMigratedException":
|
|
2039
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
2040
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
2041
|
-
default:
|
|
2042
|
-
const parsedBody = parsedOutput.body;
|
|
2043
|
-
return throwDefaultError({
|
|
2044
|
-
output,
|
|
2045
|
-
parsedBody,
|
|
2046
|
-
errorCode,
|
|
2047
|
-
});
|
|
2048
|
-
}
|
|
2049
|
-
};
|
|
2050
1079
|
export const de_DisableAWSOrganizationsAccessCommand = async (output, context) => {
|
|
2051
1080
|
if (output.statusCode >= 300) {
|
|
2052
|
-
return
|
|
1081
|
+
return de_CommandError(output, context);
|
|
2053
1082
|
}
|
|
2054
1083
|
const data = await parseBody(output.body, context);
|
|
2055
1084
|
let contents = {};
|
|
@@ -2060,34 +1089,9 @@ export const de_DisableAWSOrganizationsAccessCommand = async (output, context) =
|
|
|
2060
1089
|
};
|
|
2061
1090
|
return response;
|
|
2062
1091
|
};
|
|
2063
|
-
const de_DisableAWSOrganizationsAccessCommandError = async (output, context) => {
|
|
2064
|
-
const parsedOutput = {
|
|
2065
|
-
...output,
|
|
2066
|
-
body: await parseErrorBody(output.body, context),
|
|
2067
|
-
};
|
|
2068
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2069
|
-
switch (errorCode) {
|
|
2070
|
-
case "InvalidStateException":
|
|
2071
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
2072
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
2073
|
-
case "OperationNotSupportedException":
|
|
2074
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
2075
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2076
|
-
case "ResourceNotFoundException":
|
|
2077
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2078
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2079
|
-
default:
|
|
2080
|
-
const parsedBody = parsedOutput.body;
|
|
2081
|
-
return throwDefaultError({
|
|
2082
|
-
output,
|
|
2083
|
-
parsedBody,
|
|
2084
|
-
errorCode,
|
|
2085
|
-
});
|
|
2086
|
-
}
|
|
2087
|
-
};
|
|
2088
1092
|
export const de_DisassociateBudgetFromResourceCommand = async (output, context) => {
|
|
2089
1093
|
if (output.statusCode >= 300) {
|
|
2090
|
-
return
|
|
1094
|
+
return de_CommandError(output, context);
|
|
2091
1095
|
}
|
|
2092
1096
|
const data = await parseBody(output.body, context);
|
|
2093
1097
|
let contents = {};
|
|
@@ -2098,28 +1102,9 @@ export const de_DisassociateBudgetFromResourceCommand = async (output, context)
|
|
|
2098
1102
|
};
|
|
2099
1103
|
return response;
|
|
2100
1104
|
};
|
|
2101
|
-
const de_DisassociateBudgetFromResourceCommandError = async (output, context) => {
|
|
2102
|
-
const parsedOutput = {
|
|
2103
|
-
...output,
|
|
2104
|
-
body: await parseErrorBody(output.body, context),
|
|
2105
|
-
};
|
|
2106
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2107
|
-
switch (errorCode) {
|
|
2108
|
-
case "ResourceNotFoundException":
|
|
2109
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2110
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2111
|
-
default:
|
|
2112
|
-
const parsedBody = parsedOutput.body;
|
|
2113
|
-
return throwDefaultError({
|
|
2114
|
-
output,
|
|
2115
|
-
parsedBody,
|
|
2116
|
-
errorCode,
|
|
2117
|
-
});
|
|
2118
|
-
}
|
|
2119
|
-
};
|
|
2120
1105
|
export const de_DisassociatePrincipalFromPortfolioCommand = async (output, context) => {
|
|
2121
1106
|
if (output.statusCode >= 300) {
|
|
2122
|
-
return
|
|
1107
|
+
return de_CommandError(output, context);
|
|
2123
1108
|
}
|
|
2124
1109
|
const data = await parseBody(output.body, context);
|
|
2125
1110
|
let contents = {};
|
|
@@ -2130,31 +1115,9 @@ export const de_DisassociatePrincipalFromPortfolioCommand = async (output, conte
|
|
|
2130
1115
|
};
|
|
2131
1116
|
return response;
|
|
2132
1117
|
};
|
|
2133
|
-
const de_DisassociatePrincipalFromPortfolioCommandError = async (output, context) => {
|
|
2134
|
-
const parsedOutput = {
|
|
2135
|
-
...output,
|
|
2136
|
-
body: await parseErrorBody(output.body, context),
|
|
2137
|
-
};
|
|
2138
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2139
|
-
switch (errorCode) {
|
|
2140
|
-
case "InvalidParametersException":
|
|
2141
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2142
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2143
|
-
case "ResourceNotFoundException":
|
|
2144
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2145
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2146
|
-
default:
|
|
2147
|
-
const parsedBody = parsedOutput.body;
|
|
2148
|
-
return throwDefaultError({
|
|
2149
|
-
output,
|
|
2150
|
-
parsedBody,
|
|
2151
|
-
errorCode,
|
|
2152
|
-
});
|
|
2153
|
-
}
|
|
2154
|
-
};
|
|
2155
1118
|
export const de_DisassociateProductFromPortfolioCommand = async (output, context) => {
|
|
2156
1119
|
if (output.statusCode >= 300) {
|
|
2157
|
-
return
|
|
1120
|
+
return de_CommandError(output, context);
|
|
2158
1121
|
}
|
|
2159
1122
|
const data = await parseBody(output.body, context);
|
|
2160
1123
|
let contents = {};
|
|
@@ -2165,66 +1128,22 @@ export const de_DisassociateProductFromPortfolioCommand = async (output, context
|
|
|
2165
1128
|
};
|
|
2166
1129
|
return response;
|
|
2167
1130
|
};
|
|
2168
|
-
const
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
case "ResourceInUseException":
|
|
2179
|
-
case "com.amazonaws.servicecatalog#ResourceInUseException":
|
|
2180
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2181
|
-
case "ResourceNotFoundException":
|
|
2182
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2183
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2184
|
-
default:
|
|
2185
|
-
const parsedBody = parsedOutput.body;
|
|
2186
|
-
return throwDefaultError({
|
|
2187
|
-
output,
|
|
2188
|
-
parsedBody,
|
|
2189
|
-
errorCode,
|
|
2190
|
-
});
|
|
2191
|
-
}
|
|
2192
|
-
};
|
|
2193
|
-
export const de_DisassociateServiceActionFromProvisioningArtifactCommand = async (output, context) => {
|
|
2194
|
-
if (output.statusCode >= 300) {
|
|
2195
|
-
return de_DisassociateServiceActionFromProvisioningArtifactCommandError(output, context);
|
|
2196
|
-
}
|
|
2197
|
-
const data = await parseBody(output.body, context);
|
|
2198
|
-
let contents = {};
|
|
2199
|
-
contents = _json(data);
|
|
2200
|
-
const response = {
|
|
2201
|
-
$metadata: deserializeMetadata(output),
|
|
2202
|
-
...contents,
|
|
1131
|
+
export const de_DisassociateServiceActionFromProvisioningArtifactCommand = async (output, context) => {
|
|
1132
|
+
if (output.statusCode >= 300) {
|
|
1133
|
+
return de_CommandError(output, context);
|
|
1134
|
+
}
|
|
1135
|
+
const data = await parseBody(output.body, context);
|
|
1136
|
+
let contents = {};
|
|
1137
|
+
contents = _json(data);
|
|
1138
|
+
const response = {
|
|
1139
|
+
$metadata: deserializeMetadata(output),
|
|
1140
|
+
...contents,
|
|
2203
1141
|
};
|
|
2204
1142
|
return response;
|
|
2205
1143
|
};
|
|
2206
|
-
const de_DisassociateServiceActionFromProvisioningArtifactCommandError = async (output, context) => {
|
|
2207
|
-
const parsedOutput = {
|
|
2208
|
-
...output,
|
|
2209
|
-
body: await parseErrorBody(output.body, context),
|
|
2210
|
-
};
|
|
2211
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2212
|
-
switch (errorCode) {
|
|
2213
|
-
case "ResourceNotFoundException":
|
|
2214
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2215
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2216
|
-
default:
|
|
2217
|
-
const parsedBody = parsedOutput.body;
|
|
2218
|
-
return throwDefaultError({
|
|
2219
|
-
output,
|
|
2220
|
-
parsedBody,
|
|
2221
|
-
errorCode,
|
|
2222
|
-
});
|
|
2223
|
-
}
|
|
2224
|
-
};
|
|
2225
1144
|
export const de_DisassociateTagOptionFromResourceCommand = async (output, context) => {
|
|
2226
1145
|
if (output.statusCode >= 300) {
|
|
2227
|
-
return
|
|
1146
|
+
return de_CommandError(output, context);
|
|
2228
1147
|
}
|
|
2229
1148
|
const data = await parseBody(output.body, context);
|
|
2230
1149
|
let contents = {};
|
|
@@ -2235,31 +1154,9 @@ export const de_DisassociateTagOptionFromResourceCommand = async (output, contex
|
|
|
2235
1154
|
};
|
|
2236
1155
|
return response;
|
|
2237
1156
|
};
|
|
2238
|
-
const de_DisassociateTagOptionFromResourceCommandError = async (output, context) => {
|
|
2239
|
-
const parsedOutput = {
|
|
2240
|
-
...output,
|
|
2241
|
-
body: await parseErrorBody(output.body, context),
|
|
2242
|
-
};
|
|
2243
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2244
|
-
switch (errorCode) {
|
|
2245
|
-
case "ResourceNotFoundException":
|
|
2246
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2247
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2248
|
-
case "TagOptionNotMigratedException":
|
|
2249
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
2250
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
2251
|
-
default:
|
|
2252
|
-
const parsedBody = parsedOutput.body;
|
|
2253
|
-
return throwDefaultError({
|
|
2254
|
-
output,
|
|
2255
|
-
parsedBody,
|
|
2256
|
-
errorCode,
|
|
2257
|
-
});
|
|
2258
|
-
}
|
|
2259
|
-
};
|
|
2260
1157
|
export const de_EnableAWSOrganizationsAccessCommand = async (output, context) => {
|
|
2261
1158
|
if (output.statusCode >= 300) {
|
|
2262
|
-
return
|
|
1159
|
+
return de_CommandError(output, context);
|
|
2263
1160
|
}
|
|
2264
1161
|
const data = await parseBody(output.body, context);
|
|
2265
1162
|
let contents = {};
|
|
@@ -2270,34 +1167,9 @@ export const de_EnableAWSOrganizationsAccessCommand = async (output, context) =>
|
|
|
2270
1167
|
};
|
|
2271
1168
|
return response;
|
|
2272
1169
|
};
|
|
2273
|
-
const de_EnableAWSOrganizationsAccessCommandError = async (output, context) => {
|
|
2274
|
-
const parsedOutput = {
|
|
2275
|
-
...output,
|
|
2276
|
-
body: await parseErrorBody(output.body, context),
|
|
2277
|
-
};
|
|
2278
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2279
|
-
switch (errorCode) {
|
|
2280
|
-
case "InvalidStateException":
|
|
2281
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
2282
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
2283
|
-
case "OperationNotSupportedException":
|
|
2284
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
2285
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2286
|
-
case "ResourceNotFoundException":
|
|
2287
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2288
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2289
|
-
default:
|
|
2290
|
-
const parsedBody = parsedOutput.body;
|
|
2291
|
-
return throwDefaultError({
|
|
2292
|
-
output,
|
|
2293
|
-
parsedBody,
|
|
2294
|
-
errorCode,
|
|
2295
|
-
});
|
|
2296
|
-
}
|
|
2297
|
-
};
|
|
2298
1170
|
export const de_ExecuteProvisionedProductPlanCommand = async (output, context) => {
|
|
2299
1171
|
if (output.statusCode >= 300) {
|
|
2300
|
-
return
|
|
1172
|
+
return de_CommandError(output, context);
|
|
2301
1173
|
}
|
|
2302
1174
|
const data = await parseBody(output.body, context);
|
|
2303
1175
|
let contents = {};
|
|
@@ -2308,34 +1180,9 @@ export const de_ExecuteProvisionedProductPlanCommand = async (output, context) =
|
|
|
2308
1180
|
};
|
|
2309
1181
|
return response;
|
|
2310
1182
|
};
|
|
2311
|
-
const de_ExecuteProvisionedProductPlanCommandError = async (output, context) => {
|
|
2312
|
-
const parsedOutput = {
|
|
2313
|
-
...output,
|
|
2314
|
-
body: await parseErrorBody(output.body, context),
|
|
2315
|
-
};
|
|
2316
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2317
|
-
switch (errorCode) {
|
|
2318
|
-
case "InvalidParametersException":
|
|
2319
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2320
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2321
|
-
case "InvalidStateException":
|
|
2322
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
2323
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
2324
|
-
case "ResourceNotFoundException":
|
|
2325
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2326
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2327
|
-
default:
|
|
2328
|
-
const parsedBody = parsedOutput.body;
|
|
2329
|
-
return throwDefaultError({
|
|
2330
|
-
output,
|
|
2331
|
-
parsedBody,
|
|
2332
|
-
errorCode,
|
|
2333
|
-
});
|
|
2334
|
-
}
|
|
2335
|
-
};
|
|
2336
1183
|
export const de_ExecuteProvisionedProductServiceActionCommand = async (output, context) => {
|
|
2337
1184
|
if (output.statusCode >= 300) {
|
|
2338
|
-
return
|
|
1185
|
+
return de_CommandError(output, context);
|
|
2339
1186
|
}
|
|
2340
1187
|
const data = await parseBody(output.body, context);
|
|
2341
1188
|
let contents = {};
|
|
@@ -2346,34 +1193,9 @@ export const de_ExecuteProvisionedProductServiceActionCommand = async (output, c
|
|
|
2346
1193
|
};
|
|
2347
1194
|
return response;
|
|
2348
1195
|
};
|
|
2349
|
-
const de_ExecuteProvisionedProductServiceActionCommandError = async (output, context) => {
|
|
2350
|
-
const parsedOutput = {
|
|
2351
|
-
...output,
|
|
2352
|
-
body: await parseErrorBody(output.body, context),
|
|
2353
|
-
};
|
|
2354
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2355
|
-
switch (errorCode) {
|
|
2356
|
-
case "InvalidParametersException":
|
|
2357
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2358
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2359
|
-
case "InvalidStateException":
|
|
2360
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
2361
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
2362
|
-
case "ResourceNotFoundException":
|
|
2363
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2364
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2365
|
-
default:
|
|
2366
|
-
const parsedBody = parsedOutput.body;
|
|
2367
|
-
return throwDefaultError({
|
|
2368
|
-
output,
|
|
2369
|
-
parsedBody,
|
|
2370
|
-
errorCode,
|
|
2371
|
-
});
|
|
2372
|
-
}
|
|
2373
|
-
};
|
|
2374
1196
|
export const de_GetAWSOrganizationsAccessStatusCommand = async (output, context) => {
|
|
2375
1197
|
if (output.statusCode >= 300) {
|
|
2376
|
-
return
|
|
1198
|
+
return de_CommandError(output, context);
|
|
2377
1199
|
}
|
|
2378
1200
|
const data = await parseBody(output.body, context);
|
|
2379
1201
|
let contents = {};
|
|
@@ -2384,31 +1206,9 @@ export const de_GetAWSOrganizationsAccessStatusCommand = async (output, context)
|
|
|
2384
1206
|
};
|
|
2385
1207
|
return response;
|
|
2386
1208
|
};
|
|
2387
|
-
const de_GetAWSOrganizationsAccessStatusCommandError = async (output, context) => {
|
|
2388
|
-
const parsedOutput = {
|
|
2389
|
-
...output,
|
|
2390
|
-
body: await parseErrorBody(output.body, context),
|
|
2391
|
-
};
|
|
2392
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2393
|
-
switch (errorCode) {
|
|
2394
|
-
case "OperationNotSupportedException":
|
|
2395
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
2396
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2397
|
-
case "ResourceNotFoundException":
|
|
2398
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2399
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2400
|
-
default:
|
|
2401
|
-
const parsedBody = parsedOutput.body;
|
|
2402
|
-
return throwDefaultError({
|
|
2403
|
-
output,
|
|
2404
|
-
parsedBody,
|
|
2405
|
-
errorCode,
|
|
2406
|
-
});
|
|
2407
|
-
}
|
|
2408
|
-
};
|
|
2409
1209
|
export const de_GetProvisionedProductOutputsCommand = async (output, context) => {
|
|
2410
1210
|
if (output.statusCode >= 300) {
|
|
2411
|
-
return
|
|
1211
|
+
return de_CommandError(output, context);
|
|
2412
1212
|
}
|
|
2413
1213
|
const data = await parseBody(output.body, context);
|
|
2414
1214
|
let contents = {};
|
|
@@ -2419,31 +1219,9 @@ export const de_GetProvisionedProductOutputsCommand = async (output, context) =>
|
|
|
2419
1219
|
};
|
|
2420
1220
|
return response;
|
|
2421
1221
|
};
|
|
2422
|
-
const de_GetProvisionedProductOutputsCommandError = async (output, context) => {
|
|
2423
|
-
const parsedOutput = {
|
|
2424
|
-
...output,
|
|
2425
|
-
body: await parseErrorBody(output.body, context),
|
|
2426
|
-
};
|
|
2427
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2428
|
-
switch (errorCode) {
|
|
2429
|
-
case "InvalidParametersException":
|
|
2430
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2431
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2432
|
-
case "ResourceNotFoundException":
|
|
2433
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2434
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2435
|
-
default:
|
|
2436
|
-
const parsedBody = parsedOutput.body;
|
|
2437
|
-
return throwDefaultError({
|
|
2438
|
-
output,
|
|
2439
|
-
parsedBody,
|
|
2440
|
-
errorCode,
|
|
2441
|
-
});
|
|
2442
|
-
}
|
|
2443
|
-
};
|
|
2444
1222
|
export const de_ImportAsProvisionedProductCommand = async (output, context) => {
|
|
2445
1223
|
if (output.statusCode >= 300) {
|
|
2446
|
-
return
|
|
1224
|
+
return de_CommandError(output, context);
|
|
2447
1225
|
}
|
|
2448
1226
|
const data = await parseBody(output.body, context);
|
|
2449
1227
|
let contents = {};
|
|
@@ -2454,37 +1232,9 @@ export const de_ImportAsProvisionedProductCommand = async (output, context) => {
|
|
|
2454
1232
|
};
|
|
2455
1233
|
return response;
|
|
2456
1234
|
};
|
|
2457
|
-
const de_ImportAsProvisionedProductCommandError = async (output, context) => {
|
|
2458
|
-
const parsedOutput = {
|
|
2459
|
-
...output,
|
|
2460
|
-
body: await parseErrorBody(output.body, context),
|
|
2461
|
-
};
|
|
2462
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2463
|
-
switch (errorCode) {
|
|
2464
|
-
case "DuplicateResourceException":
|
|
2465
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
2466
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
2467
|
-
case "InvalidParametersException":
|
|
2468
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2469
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2470
|
-
case "InvalidStateException":
|
|
2471
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
2472
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
2473
|
-
case "ResourceNotFoundException":
|
|
2474
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2475
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2476
|
-
default:
|
|
2477
|
-
const parsedBody = parsedOutput.body;
|
|
2478
|
-
return throwDefaultError({
|
|
2479
|
-
output,
|
|
2480
|
-
parsedBody,
|
|
2481
|
-
errorCode,
|
|
2482
|
-
});
|
|
2483
|
-
}
|
|
2484
|
-
};
|
|
2485
1235
|
export const de_ListAcceptedPortfolioSharesCommand = async (output, context) => {
|
|
2486
1236
|
if (output.statusCode >= 300) {
|
|
2487
|
-
return
|
|
1237
|
+
return de_CommandError(output, context);
|
|
2488
1238
|
}
|
|
2489
1239
|
const data = await parseBody(output.body, context);
|
|
2490
1240
|
let contents = {};
|
|
@@ -2495,31 +1245,9 @@ export const de_ListAcceptedPortfolioSharesCommand = async (output, context) =>
|
|
|
2495
1245
|
};
|
|
2496
1246
|
return response;
|
|
2497
1247
|
};
|
|
2498
|
-
const de_ListAcceptedPortfolioSharesCommandError = async (output, context) => {
|
|
2499
|
-
const parsedOutput = {
|
|
2500
|
-
...output,
|
|
2501
|
-
body: await parseErrorBody(output.body, context),
|
|
2502
|
-
};
|
|
2503
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2504
|
-
switch (errorCode) {
|
|
2505
|
-
case "InvalidParametersException":
|
|
2506
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2507
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2508
|
-
case "OperationNotSupportedException":
|
|
2509
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
2510
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2511
|
-
default:
|
|
2512
|
-
const parsedBody = parsedOutput.body;
|
|
2513
|
-
return throwDefaultError({
|
|
2514
|
-
output,
|
|
2515
|
-
parsedBody,
|
|
2516
|
-
errorCode,
|
|
2517
|
-
});
|
|
2518
|
-
}
|
|
2519
|
-
};
|
|
2520
1248
|
export const de_ListBudgetsForResourceCommand = async (output, context) => {
|
|
2521
1249
|
if (output.statusCode >= 300) {
|
|
2522
|
-
return
|
|
1250
|
+
return de_CommandError(output, context);
|
|
2523
1251
|
}
|
|
2524
1252
|
const data = await parseBody(output.body, context);
|
|
2525
1253
|
let contents = {};
|
|
@@ -2530,66 +1258,9 @@ export const de_ListBudgetsForResourceCommand = async (output, context) => {
|
|
|
2530
1258
|
};
|
|
2531
1259
|
return response;
|
|
2532
1260
|
};
|
|
2533
|
-
const de_ListBudgetsForResourceCommandError = async (output, context) => {
|
|
2534
|
-
const parsedOutput = {
|
|
2535
|
-
...output,
|
|
2536
|
-
body: await parseErrorBody(output.body, context),
|
|
2537
|
-
};
|
|
2538
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2539
|
-
switch (errorCode) {
|
|
2540
|
-
case "InvalidParametersException":
|
|
2541
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2542
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2543
|
-
case "ResourceNotFoundException":
|
|
2544
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2545
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2546
|
-
default:
|
|
2547
|
-
const parsedBody = parsedOutput.body;
|
|
2548
|
-
return throwDefaultError({
|
|
2549
|
-
output,
|
|
2550
|
-
parsedBody,
|
|
2551
|
-
errorCode,
|
|
2552
|
-
});
|
|
2553
|
-
}
|
|
2554
|
-
};
|
|
2555
1261
|
export const de_ListConstraintsForPortfolioCommand = async (output, context) => {
|
|
2556
1262
|
if (output.statusCode >= 300) {
|
|
2557
|
-
return
|
|
2558
|
-
}
|
|
2559
|
-
const data = await parseBody(output.body, context);
|
|
2560
|
-
let contents = {};
|
|
2561
|
-
contents = _json(data);
|
|
2562
|
-
const response = {
|
|
2563
|
-
$metadata: deserializeMetadata(output),
|
|
2564
|
-
...contents,
|
|
2565
|
-
};
|
|
2566
|
-
return response;
|
|
2567
|
-
};
|
|
2568
|
-
const de_ListConstraintsForPortfolioCommandError = async (output, context) => {
|
|
2569
|
-
const parsedOutput = {
|
|
2570
|
-
...output,
|
|
2571
|
-
body: await parseErrorBody(output.body, context),
|
|
2572
|
-
};
|
|
2573
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2574
|
-
switch (errorCode) {
|
|
2575
|
-
case "InvalidParametersException":
|
|
2576
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2577
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2578
|
-
case "ResourceNotFoundException":
|
|
2579
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2580
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2581
|
-
default:
|
|
2582
|
-
const parsedBody = parsedOutput.body;
|
|
2583
|
-
return throwDefaultError({
|
|
2584
|
-
output,
|
|
2585
|
-
parsedBody,
|
|
2586
|
-
errorCode,
|
|
2587
|
-
});
|
|
2588
|
-
}
|
|
2589
|
-
};
|
|
2590
|
-
export const de_ListLaunchPathsCommand = async (output, context) => {
|
|
2591
|
-
if (output.statusCode >= 300) {
|
|
2592
|
-
return de_ListLaunchPathsCommandError(output, context);
|
|
1263
|
+
return de_CommandError(output, context);
|
|
2593
1264
|
}
|
|
2594
1265
|
const data = await parseBody(output.body, context);
|
|
2595
1266
|
let contents = {};
|
|
@@ -2598,33 +1269,11 @@ export const de_ListLaunchPathsCommand = async (output, context) => {
|
|
|
2598
1269
|
$metadata: deserializeMetadata(output),
|
|
2599
1270
|
...contents,
|
|
2600
1271
|
};
|
|
2601
|
-
return response;
|
|
2602
|
-
};
|
|
2603
|
-
const de_ListLaunchPathsCommandError = async (output, context) => {
|
|
2604
|
-
const parsedOutput = {
|
|
2605
|
-
...output,
|
|
2606
|
-
body: await parseErrorBody(output.body, context),
|
|
2607
|
-
};
|
|
2608
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2609
|
-
switch (errorCode) {
|
|
2610
|
-
case "InvalidParametersException":
|
|
2611
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2612
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2613
|
-
case "ResourceNotFoundException":
|
|
2614
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2615
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2616
|
-
default:
|
|
2617
|
-
const parsedBody = parsedOutput.body;
|
|
2618
|
-
return throwDefaultError({
|
|
2619
|
-
output,
|
|
2620
|
-
parsedBody,
|
|
2621
|
-
errorCode,
|
|
2622
|
-
});
|
|
2623
|
-
}
|
|
1272
|
+
return response;
|
|
2624
1273
|
};
|
|
2625
|
-
export const
|
|
1274
|
+
export const de_ListLaunchPathsCommand = async (output, context) => {
|
|
2626
1275
|
if (output.statusCode >= 300) {
|
|
2627
|
-
return
|
|
1276
|
+
return de_CommandError(output, context);
|
|
2628
1277
|
}
|
|
2629
1278
|
const data = await parseBody(output.body, context);
|
|
2630
1279
|
let contents = {};
|
|
@@ -2635,34 +1284,22 @@ export const de_ListOrganizationPortfolioAccessCommand = async (output, context)
|
|
|
2635
1284
|
};
|
|
2636
1285
|
return response;
|
|
2637
1286
|
};
|
|
2638
|
-
const
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
body: await parseErrorBody(output.body, context),
|
|
2642
|
-
};
|
|
2643
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2644
|
-
switch (errorCode) {
|
|
2645
|
-
case "InvalidParametersException":
|
|
2646
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2647
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2648
|
-
case "OperationNotSupportedException":
|
|
2649
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
2650
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2651
|
-
case "ResourceNotFoundException":
|
|
2652
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2653
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2654
|
-
default:
|
|
2655
|
-
const parsedBody = parsedOutput.body;
|
|
2656
|
-
return throwDefaultError({
|
|
2657
|
-
output,
|
|
2658
|
-
parsedBody,
|
|
2659
|
-
errorCode,
|
|
2660
|
-
});
|
|
1287
|
+
export const de_ListOrganizationPortfolioAccessCommand = async (output, context) => {
|
|
1288
|
+
if (output.statusCode >= 300) {
|
|
1289
|
+
return de_CommandError(output, context);
|
|
2661
1290
|
}
|
|
1291
|
+
const data = await parseBody(output.body, context);
|
|
1292
|
+
let contents = {};
|
|
1293
|
+
contents = _json(data);
|
|
1294
|
+
const response = {
|
|
1295
|
+
$metadata: deserializeMetadata(output),
|
|
1296
|
+
...contents,
|
|
1297
|
+
};
|
|
1298
|
+
return response;
|
|
2662
1299
|
};
|
|
2663
1300
|
export const de_ListPortfolioAccessCommand = async (output, context) => {
|
|
2664
1301
|
if (output.statusCode >= 300) {
|
|
2665
|
-
return
|
|
1302
|
+
return de_CommandError(output, context);
|
|
2666
1303
|
}
|
|
2667
1304
|
const data = await parseBody(output.body, context);
|
|
2668
1305
|
let contents = {};
|
|
@@ -2673,31 +1310,9 @@ export const de_ListPortfolioAccessCommand = async (output, context) => {
|
|
|
2673
1310
|
};
|
|
2674
1311
|
return response;
|
|
2675
1312
|
};
|
|
2676
|
-
const de_ListPortfolioAccessCommandError = async (output, context) => {
|
|
2677
|
-
const parsedOutput = {
|
|
2678
|
-
...output,
|
|
2679
|
-
body: await parseErrorBody(output.body, context),
|
|
2680
|
-
};
|
|
2681
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2682
|
-
switch (errorCode) {
|
|
2683
|
-
case "InvalidParametersException":
|
|
2684
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2685
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2686
|
-
case "ResourceNotFoundException":
|
|
2687
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2688
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2689
|
-
default:
|
|
2690
|
-
const parsedBody = parsedOutput.body;
|
|
2691
|
-
return throwDefaultError({
|
|
2692
|
-
output,
|
|
2693
|
-
parsedBody,
|
|
2694
|
-
errorCode,
|
|
2695
|
-
});
|
|
2696
|
-
}
|
|
2697
|
-
};
|
|
2698
1313
|
export const de_ListPortfoliosCommand = async (output, context) => {
|
|
2699
1314
|
if (output.statusCode >= 300) {
|
|
2700
|
-
return
|
|
1315
|
+
return de_CommandError(output, context);
|
|
2701
1316
|
}
|
|
2702
1317
|
const data = await parseBody(output.body, context);
|
|
2703
1318
|
let contents = {};
|
|
@@ -2708,28 +1323,9 @@ export const de_ListPortfoliosCommand = async (output, context) => {
|
|
|
2708
1323
|
};
|
|
2709
1324
|
return response;
|
|
2710
1325
|
};
|
|
2711
|
-
const de_ListPortfoliosCommandError = async (output, context) => {
|
|
2712
|
-
const parsedOutput = {
|
|
2713
|
-
...output,
|
|
2714
|
-
body: await parseErrorBody(output.body, context),
|
|
2715
|
-
};
|
|
2716
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2717
|
-
switch (errorCode) {
|
|
2718
|
-
case "InvalidParametersException":
|
|
2719
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2720
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2721
|
-
default:
|
|
2722
|
-
const parsedBody = parsedOutput.body;
|
|
2723
|
-
return throwDefaultError({
|
|
2724
|
-
output,
|
|
2725
|
-
parsedBody,
|
|
2726
|
-
errorCode,
|
|
2727
|
-
});
|
|
2728
|
-
}
|
|
2729
|
-
};
|
|
2730
1326
|
export const de_ListPortfoliosForProductCommand = async (output, context) => {
|
|
2731
1327
|
if (output.statusCode >= 300) {
|
|
2732
|
-
return
|
|
1328
|
+
return de_CommandError(output, context);
|
|
2733
1329
|
}
|
|
2734
1330
|
const data = await parseBody(output.body, context);
|
|
2735
1331
|
let contents = {};
|
|
@@ -2740,31 +1336,9 @@ export const de_ListPortfoliosForProductCommand = async (output, context) => {
|
|
|
2740
1336
|
};
|
|
2741
1337
|
return response;
|
|
2742
1338
|
};
|
|
2743
|
-
const de_ListPortfoliosForProductCommandError = async (output, context) => {
|
|
2744
|
-
const parsedOutput = {
|
|
2745
|
-
...output,
|
|
2746
|
-
body: await parseErrorBody(output.body, context),
|
|
2747
|
-
};
|
|
2748
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2749
|
-
switch (errorCode) {
|
|
2750
|
-
case "InvalidParametersException":
|
|
2751
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2752
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2753
|
-
case "ResourceNotFoundException":
|
|
2754
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2755
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2756
|
-
default:
|
|
2757
|
-
const parsedBody = parsedOutput.body;
|
|
2758
|
-
return throwDefaultError({
|
|
2759
|
-
output,
|
|
2760
|
-
parsedBody,
|
|
2761
|
-
errorCode,
|
|
2762
|
-
});
|
|
2763
|
-
}
|
|
2764
|
-
};
|
|
2765
1339
|
export const de_ListPrincipalsForPortfolioCommand = async (output, context) => {
|
|
2766
1340
|
if (output.statusCode >= 300) {
|
|
2767
|
-
return
|
|
1341
|
+
return de_CommandError(output, context);
|
|
2768
1342
|
}
|
|
2769
1343
|
const data = await parseBody(output.body, context);
|
|
2770
1344
|
let contents = {};
|
|
@@ -2775,31 +1349,9 @@ export const de_ListPrincipalsForPortfolioCommand = async (output, context) => {
|
|
|
2775
1349
|
};
|
|
2776
1350
|
return response;
|
|
2777
1351
|
};
|
|
2778
|
-
const de_ListPrincipalsForPortfolioCommandError = async (output, context) => {
|
|
2779
|
-
const parsedOutput = {
|
|
2780
|
-
...output,
|
|
2781
|
-
body: await parseErrorBody(output.body, context),
|
|
2782
|
-
};
|
|
2783
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2784
|
-
switch (errorCode) {
|
|
2785
|
-
case "InvalidParametersException":
|
|
2786
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2787
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2788
|
-
case "ResourceNotFoundException":
|
|
2789
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2790
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2791
|
-
default:
|
|
2792
|
-
const parsedBody = parsedOutput.body;
|
|
2793
|
-
return throwDefaultError({
|
|
2794
|
-
output,
|
|
2795
|
-
parsedBody,
|
|
2796
|
-
errorCode,
|
|
2797
|
-
});
|
|
2798
|
-
}
|
|
2799
|
-
};
|
|
2800
1352
|
export const de_ListProvisionedProductPlansCommand = async (output, context) => {
|
|
2801
1353
|
if (output.statusCode >= 300) {
|
|
2802
|
-
return
|
|
1354
|
+
return de_CommandError(output, context);
|
|
2803
1355
|
}
|
|
2804
1356
|
const data = await parseBody(output.body, context);
|
|
2805
1357
|
let contents = {};
|
|
@@ -2810,31 +1362,9 @@ export const de_ListProvisionedProductPlansCommand = async (output, context) =>
|
|
|
2810
1362
|
};
|
|
2811
1363
|
return response;
|
|
2812
1364
|
};
|
|
2813
|
-
const de_ListProvisionedProductPlansCommandError = async (output, context) => {
|
|
2814
|
-
const parsedOutput = {
|
|
2815
|
-
...output,
|
|
2816
|
-
body: await parseErrorBody(output.body, context),
|
|
2817
|
-
};
|
|
2818
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2819
|
-
switch (errorCode) {
|
|
2820
|
-
case "InvalidParametersException":
|
|
2821
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2822
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2823
|
-
case "ResourceNotFoundException":
|
|
2824
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2825
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2826
|
-
default:
|
|
2827
|
-
const parsedBody = parsedOutput.body;
|
|
2828
|
-
return throwDefaultError({
|
|
2829
|
-
output,
|
|
2830
|
-
parsedBody,
|
|
2831
|
-
errorCode,
|
|
2832
|
-
});
|
|
2833
|
-
}
|
|
2834
|
-
};
|
|
2835
1365
|
export const de_ListProvisioningArtifactsCommand = async (output, context) => {
|
|
2836
1366
|
if (output.statusCode >= 300) {
|
|
2837
|
-
return
|
|
1367
|
+
return de_CommandError(output, context);
|
|
2838
1368
|
}
|
|
2839
1369
|
const data = await parseBody(output.body, context);
|
|
2840
1370
|
let contents = {};
|
|
@@ -2845,31 +1375,9 @@ export const de_ListProvisioningArtifactsCommand = async (output, context) => {
|
|
|
2845
1375
|
};
|
|
2846
1376
|
return response;
|
|
2847
1377
|
};
|
|
2848
|
-
const de_ListProvisioningArtifactsCommandError = async (output, context) => {
|
|
2849
|
-
const parsedOutput = {
|
|
2850
|
-
...output,
|
|
2851
|
-
body: await parseErrorBody(output.body, context),
|
|
2852
|
-
};
|
|
2853
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2854
|
-
switch (errorCode) {
|
|
2855
|
-
case "InvalidParametersException":
|
|
2856
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2857
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2858
|
-
case "ResourceNotFoundException":
|
|
2859
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2860
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2861
|
-
default:
|
|
2862
|
-
const parsedBody = parsedOutput.body;
|
|
2863
|
-
return throwDefaultError({
|
|
2864
|
-
output,
|
|
2865
|
-
parsedBody,
|
|
2866
|
-
errorCode,
|
|
2867
|
-
});
|
|
2868
|
-
}
|
|
2869
|
-
};
|
|
2870
1378
|
export const de_ListProvisioningArtifactsForServiceActionCommand = async (output, context) => {
|
|
2871
1379
|
if (output.statusCode >= 300) {
|
|
2872
|
-
return
|
|
1380
|
+
return de_CommandError(output, context);
|
|
2873
1381
|
}
|
|
2874
1382
|
const data = await parseBody(output.body, context);
|
|
2875
1383
|
let contents = {};
|
|
@@ -2880,31 +1388,9 @@ export const de_ListProvisioningArtifactsForServiceActionCommand = async (output
|
|
|
2880
1388
|
};
|
|
2881
1389
|
return response;
|
|
2882
1390
|
};
|
|
2883
|
-
const de_ListProvisioningArtifactsForServiceActionCommandError = async (output, context) => {
|
|
2884
|
-
const parsedOutput = {
|
|
2885
|
-
...output,
|
|
2886
|
-
body: await parseErrorBody(output.body, context),
|
|
2887
|
-
};
|
|
2888
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2889
|
-
switch (errorCode) {
|
|
2890
|
-
case "InvalidParametersException":
|
|
2891
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2892
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2893
|
-
case "ResourceNotFoundException":
|
|
2894
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2895
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2896
|
-
default:
|
|
2897
|
-
const parsedBody = parsedOutput.body;
|
|
2898
|
-
return throwDefaultError({
|
|
2899
|
-
output,
|
|
2900
|
-
parsedBody,
|
|
2901
|
-
errorCode,
|
|
2902
|
-
});
|
|
2903
|
-
}
|
|
2904
|
-
};
|
|
2905
1391
|
export const de_ListRecordHistoryCommand = async (output, context) => {
|
|
2906
1392
|
if (output.statusCode >= 300) {
|
|
2907
|
-
return
|
|
1393
|
+
return de_CommandError(output, context);
|
|
2908
1394
|
}
|
|
2909
1395
|
const data = await parseBody(output.body, context);
|
|
2910
1396
|
let contents = {};
|
|
@@ -2915,98 +1401,22 @@ export const de_ListRecordHistoryCommand = async (output, context) => {
|
|
|
2915
1401
|
};
|
|
2916
1402
|
return response;
|
|
2917
1403
|
};
|
|
2918
|
-
const de_ListRecordHistoryCommandError = async (output, context) => {
|
|
2919
|
-
const parsedOutput = {
|
|
2920
|
-
...output,
|
|
2921
|
-
body: await parseErrorBody(output.body, context),
|
|
2922
|
-
};
|
|
2923
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2924
|
-
switch (errorCode) {
|
|
2925
|
-
case "InvalidParametersException":
|
|
2926
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2927
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2928
|
-
default:
|
|
2929
|
-
const parsedBody = parsedOutput.body;
|
|
2930
|
-
return throwDefaultError({
|
|
2931
|
-
output,
|
|
2932
|
-
parsedBody,
|
|
2933
|
-
errorCode,
|
|
2934
|
-
});
|
|
2935
|
-
}
|
|
2936
|
-
};
|
|
2937
1404
|
export const de_ListResourcesForTagOptionCommand = async (output, context) => {
|
|
2938
1405
|
if (output.statusCode >= 300) {
|
|
2939
|
-
return
|
|
1406
|
+
return de_CommandError(output, context);
|
|
2940
1407
|
}
|
|
2941
1408
|
const data = await parseBody(output.body, context);
|
|
2942
1409
|
let contents = {};
|
|
2943
1410
|
contents = de_ListResourcesForTagOptionOutput(data, context);
|
|
2944
|
-
const response = {
|
|
2945
|
-
$metadata: deserializeMetadata(output),
|
|
2946
|
-
...contents,
|
|
2947
|
-
};
|
|
2948
|
-
return response;
|
|
2949
|
-
};
|
|
2950
|
-
const de_ListResourcesForTagOptionCommandError = async (output, context) => {
|
|
2951
|
-
const parsedOutput = {
|
|
2952
|
-
...output,
|
|
2953
|
-
body: await parseErrorBody(output.body, context),
|
|
2954
|
-
};
|
|
2955
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2956
|
-
switch (errorCode) {
|
|
2957
|
-
case "InvalidParametersException":
|
|
2958
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2959
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2960
|
-
case "ResourceNotFoundException":
|
|
2961
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
2962
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2963
|
-
case "TagOptionNotMigratedException":
|
|
2964
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
2965
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
2966
|
-
default:
|
|
2967
|
-
const parsedBody = parsedOutput.body;
|
|
2968
|
-
return throwDefaultError({
|
|
2969
|
-
output,
|
|
2970
|
-
parsedBody,
|
|
2971
|
-
errorCode,
|
|
2972
|
-
});
|
|
2973
|
-
}
|
|
2974
|
-
};
|
|
2975
|
-
export const de_ListServiceActionsCommand = async (output, context) => {
|
|
2976
|
-
if (output.statusCode >= 300) {
|
|
2977
|
-
return de_ListServiceActionsCommandError(output, context);
|
|
2978
|
-
}
|
|
2979
|
-
const data = await parseBody(output.body, context);
|
|
2980
|
-
let contents = {};
|
|
2981
|
-
contents = _json(data);
|
|
2982
|
-
const response = {
|
|
2983
|
-
$metadata: deserializeMetadata(output),
|
|
2984
|
-
...contents,
|
|
2985
|
-
};
|
|
2986
|
-
return response;
|
|
2987
|
-
};
|
|
2988
|
-
const de_ListServiceActionsCommandError = async (output, context) => {
|
|
2989
|
-
const parsedOutput = {
|
|
2990
|
-
...output,
|
|
2991
|
-
body: await parseErrorBody(output.body, context),
|
|
2992
|
-
};
|
|
2993
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2994
|
-
switch (errorCode) {
|
|
2995
|
-
case "InvalidParametersException":
|
|
2996
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
2997
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
2998
|
-
default:
|
|
2999
|
-
const parsedBody = parsedOutput.body;
|
|
3000
|
-
return throwDefaultError({
|
|
3001
|
-
output,
|
|
3002
|
-
parsedBody,
|
|
3003
|
-
errorCode,
|
|
3004
|
-
});
|
|
3005
|
-
}
|
|
1411
|
+
const response = {
|
|
1412
|
+
$metadata: deserializeMetadata(output),
|
|
1413
|
+
...contents,
|
|
1414
|
+
};
|
|
1415
|
+
return response;
|
|
3006
1416
|
};
|
|
3007
|
-
export const
|
|
1417
|
+
export const de_ListServiceActionsCommand = async (output, context) => {
|
|
3008
1418
|
if (output.statusCode >= 300) {
|
|
3009
|
-
return
|
|
1419
|
+
return de_CommandError(output, context);
|
|
3010
1420
|
}
|
|
3011
1421
|
const data = await parseBody(output.body, context);
|
|
3012
1422
|
let contents = {};
|
|
@@ -3017,31 +1427,22 @@ export const de_ListServiceActionsForProvisioningArtifactCommand = async (output
|
|
|
3017
1427
|
};
|
|
3018
1428
|
return response;
|
|
3019
1429
|
};
|
|
3020
|
-
const
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
body: await parseErrorBody(output.body, context),
|
|
3024
|
-
};
|
|
3025
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3026
|
-
switch (errorCode) {
|
|
3027
|
-
case "InvalidParametersException":
|
|
3028
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3029
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3030
|
-
case "ResourceNotFoundException":
|
|
3031
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3032
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3033
|
-
default:
|
|
3034
|
-
const parsedBody = parsedOutput.body;
|
|
3035
|
-
return throwDefaultError({
|
|
3036
|
-
output,
|
|
3037
|
-
parsedBody,
|
|
3038
|
-
errorCode,
|
|
3039
|
-
});
|
|
1430
|
+
export const de_ListServiceActionsForProvisioningArtifactCommand = async (output, context) => {
|
|
1431
|
+
if (output.statusCode >= 300) {
|
|
1432
|
+
return de_CommandError(output, context);
|
|
3040
1433
|
}
|
|
1434
|
+
const data = await parseBody(output.body, context);
|
|
1435
|
+
let contents = {};
|
|
1436
|
+
contents = _json(data);
|
|
1437
|
+
const response = {
|
|
1438
|
+
$metadata: deserializeMetadata(output),
|
|
1439
|
+
...contents,
|
|
1440
|
+
};
|
|
1441
|
+
return response;
|
|
3041
1442
|
};
|
|
3042
1443
|
export const de_ListStackInstancesForProvisionedProductCommand = async (output, context) => {
|
|
3043
1444
|
if (output.statusCode >= 300) {
|
|
3044
|
-
return
|
|
1445
|
+
return de_CommandError(output, context);
|
|
3045
1446
|
}
|
|
3046
1447
|
const data = await parseBody(output.body, context);
|
|
3047
1448
|
let contents = {};
|
|
@@ -3052,31 +1453,9 @@ export const de_ListStackInstancesForProvisionedProductCommand = async (output,
|
|
|
3052
1453
|
};
|
|
3053
1454
|
return response;
|
|
3054
1455
|
};
|
|
3055
|
-
const de_ListStackInstancesForProvisionedProductCommandError = async (output, context) => {
|
|
3056
|
-
const parsedOutput = {
|
|
3057
|
-
...output,
|
|
3058
|
-
body: await parseErrorBody(output.body, context),
|
|
3059
|
-
};
|
|
3060
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3061
|
-
switch (errorCode) {
|
|
3062
|
-
case "InvalidParametersException":
|
|
3063
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3064
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3065
|
-
case "ResourceNotFoundException":
|
|
3066
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3067
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3068
|
-
default:
|
|
3069
|
-
const parsedBody = parsedOutput.body;
|
|
3070
|
-
return throwDefaultError({
|
|
3071
|
-
output,
|
|
3072
|
-
parsedBody,
|
|
3073
|
-
errorCode,
|
|
3074
|
-
});
|
|
3075
|
-
}
|
|
3076
|
-
};
|
|
3077
1456
|
export const de_ListTagOptionsCommand = async (output, context) => {
|
|
3078
1457
|
if (output.statusCode >= 300) {
|
|
3079
|
-
return
|
|
1458
|
+
return de_CommandError(output, context);
|
|
3080
1459
|
}
|
|
3081
1460
|
const data = await parseBody(output.body, context);
|
|
3082
1461
|
let contents = {};
|
|
@@ -3087,31 +1466,9 @@ export const de_ListTagOptionsCommand = async (output, context) => {
|
|
|
3087
1466
|
};
|
|
3088
1467
|
return response;
|
|
3089
1468
|
};
|
|
3090
|
-
const de_ListTagOptionsCommandError = async (output, context) => {
|
|
3091
|
-
const parsedOutput = {
|
|
3092
|
-
...output,
|
|
3093
|
-
body: await parseErrorBody(output.body, context),
|
|
3094
|
-
};
|
|
3095
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3096
|
-
switch (errorCode) {
|
|
3097
|
-
case "InvalidParametersException":
|
|
3098
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3099
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3100
|
-
case "TagOptionNotMigratedException":
|
|
3101
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
3102
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
3103
|
-
default:
|
|
3104
|
-
const parsedBody = parsedOutput.body;
|
|
3105
|
-
return throwDefaultError({
|
|
3106
|
-
output,
|
|
3107
|
-
parsedBody,
|
|
3108
|
-
errorCode,
|
|
3109
|
-
});
|
|
3110
|
-
}
|
|
3111
|
-
};
|
|
3112
1469
|
export const de_NotifyProvisionProductEngineWorkflowResultCommand = async (output, context) => {
|
|
3113
1470
|
if (output.statusCode >= 300) {
|
|
3114
|
-
return
|
|
1471
|
+
return de_CommandError(output, context);
|
|
3115
1472
|
}
|
|
3116
1473
|
const data = await parseBody(output.body, context);
|
|
3117
1474
|
let contents = {};
|
|
@@ -3122,31 +1479,9 @@ export const de_NotifyProvisionProductEngineWorkflowResultCommand = async (outpu
|
|
|
3122
1479
|
};
|
|
3123
1480
|
return response;
|
|
3124
1481
|
};
|
|
3125
|
-
const de_NotifyProvisionProductEngineWorkflowResultCommandError = async (output, context) => {
|
|
3126
|
-
const parsedOutput = {
|
|
3127
|
-
...output,
|
|
3128
|
-
body: await parseErrorBody(output.body, context),
|
|
3129
|
-
};
|
|
3130
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3131
|
-
switch (errorCode) {
|
|
3132
|
-
case "InvalidParametersException":
|
|
3133
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3134
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3135
|
-
case "ResourceNotFoundException":
|
|
3136
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3137
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3138
|
-
default:
|
|
3139
|
-
const parsedBody = parsedOutput.body;
|
|
3140
|
-
return throwDefaultError({
|
|
3141
|
-
output,
|
|
3142
|
-
parsedBody,
|
|
3143
|
-
errorCode,
|
|
3144
|
-
});
|
|
3145
|
-
}
|
|
3146
|
-
};
|
|
3147
1482
|
export const de_NotifyTerminateProvisionedProductEngineWorkflowResultCommand = async (output, context) => {
|
|
3148
1483
|
if (output.statusCode >= 300) {
|
|
3149
|
-
return
|
|
1484
|
+
return de_CommandError(output, context);
|
|
3150
1485
|
}
|
|
3151
1486
|
const data = await parseBody(output.body, context);
|
|
3152
1487
|
let contents = {};
|
|
@@ -3157,31 +1492,9 @@ export const de_NotifyTerminateProvisionedProductEngineWorkflowResultCommand = a
|
|
|
3157
1492
|
};
|
|
3158
1493
|
return response;
|
|
3159
1494
|
};
|
|
3160
|
-
const de_NotifyTerminateProvisionedProductEngineWorkflowResultCommandError = async (output, context) => {
|
|
3161
|
-
const parsedOutput = {
|
|
3162
|
-
...output,
|
|
3163
|
-
body: await parseErrorBody(output.body, context),
|
|
3164
|
-
};
|
|
3165
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3166
|
-
switch (errorCode) {
|
|
3167
|
-
case "InvalidParametersException":
|
|
3168
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3169
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3170
|
-
case "ResourceNotFoundException":
|
|
3171
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3172
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3173
|
-
default:
|
|
3174
|
-
const parsedBody = parsedOutput.body;
|
|
3175
|
-
return throwDefaultError({
|
|
3176
|
-
output,
|
|
3177
|
-
parsedBody,
|
|
3178
|
-
errorCode,
|
|
3179
|
-
});
|
|
3180
|
-
}
|
|
3181
|
-
};
|
|
3182
1495
|
export const de_NotifyUpdateProvisionedProductEngineWorkflowResultCommand = async (output, context) => {
|
|
3183
1496
|
if (output.statusCode >= 300) {
|
|
3184
|
-
return
|
|
1497
|
+
return de_CommandError(output, context);
|
|
3185
1498
|
}
|
|
3186
1499
|
const data = await parseBody(output.body, context);
|
|
3187
1500
|
let contents = {};
|
|
@@ -3192,31 +1505,9 @@ export const de_NotifyUpdateProvisionedProductEngineWorkflowResultCommand = asyn
|
|
|
3192
1505
|
};
|
|
3193
1506
|
return response;
|
|
3194
1507
|
};
|
|
3195
|
-
const de_NotifyUpdateProvisionedProductEngineWorkflowResultCommandError = async (output, context) => {
|
|
3196
|
-
const parsedOutput = {
|
|
3197
|
-
...output,
|
|
3198
|
-
body: await parseErrorBody(output.body, context),
|
|
3199
|
-
};
|
|
3200
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3201
|
-
switch (errorCode) {
|
|
3202
|
-
case "InvalidParametersException":
|
|
3203
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3204
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3205
|
-
case "ResourceNotFoundException":
|
|
3206
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3207
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3208
|
-
default:
|
|
3209
|
-
const parsedBody = parsedOutput.body;
|
|
3210
|
-
return throwDefaultError({
|
|
3211
|
-
output,
|
|
3212
|
-
parsedBody,
|
|
3213
|
-
errorCode,
|
|
3214
|
-
});
|
|
3215
|
-
}
|
|
3216
|
-
};
|
|
3217
1508
|
export const de_ProvisionProductCommand = async (output, context) => {
|
|
3218
1509
|
if (output.statusCode >= 300) {
|
|
3219
|
-
return
|
|
1510
|
+
return de_CommandError(output, context);
|
|
3220
1511
|
}
|
|
3221
1512
|
const data = await parseBody(output.body, context);
|
|
3222
1513
|
let contents = {};
|
|
@@ -3227,34 +1518,9 @@ export const de_ProvisionProductCommand = async (output, context) => {
|
|
|
3227
1518
|
};
|
|
3228
1519
|
return response;
|
|
3229
1520
|
};
|
|
3230
|
-
const de_ProvisionProductCommandError = async (output, context) => {
|
|
3231
|
-
const parsedOutput = {
|
|
3232
|
-
...output,
|
|
3233
|
-
body: await parseErrorBody(output.body, context),
|
|
3234
|
-
};
|
|
3235
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3236
|
-
switch (errorCode) {
|
|
3237
|
-
case "DuplicateResourceException":
|
|
3238
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
3239
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
3240
|
-
case "InvalidParametersException":
|
|
3241
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3242
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3243
|
-
case "ResourceNotFoundException":
|
|
3244
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3245
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3246
|
-
default:
|
|
3247
|
-
const parsedBody = parsedOutput.body;
|
|
3248
|
-
return throwDefaultError({
|
|
3249
|
-
output,
|
|
3250
|
-
parsedBody,
|
|
3251
|
-
errorCode,
|
|
3252
|
-
});
|
|
3253
|
-
}
|
|
3254
|
-
};
|
|
3255
1521
|
export const de_RejectPortfolioShareCommand = async (output, context) => {
|
|
3256
1522
|
if (output.statusCode >= 300) {
|
|
3257
|
-
return
|
|
1523
|
+
return de_CommandError(output, context);
|
|
3258
1524
|
}
|
|
3259
1525
|
const data = await parseBody(output.body, context);
|
|
3260
1526
|
let contents = {};
|
|
@@ -3265,28 +1531,9 @@ export const de_RejectPortfolioShareCommand = async (output, context) => {
|
|
|
3265
1531
|
};
|
|
3266
1532
|
return response;
|
|
3267
1533
|
};
|
|
3268
|
-
const de_RejectPortfolioShareCommandError = async (output, context) => {
|
|
3269
|
-
const parsedOutput = {
|
|
3270
|
-
...output,
|
|
3271
|
-
body: await parseErrorBody(output.body, context),
|
|
3272
|
-
};
|
|
3273
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3274
|
-
switch (errorCode) {
|
|
3275
|
-
case "ResourceNotFoundException":
|
|
3276
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3277
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3278
|
-
default:
|
|
3279
|
-
const parsedBody = parsedOutput.body;
|
|
3280
|
-
return throwDefaultError({
|
|
3281
|
-
output,
|
|
3282
|
-
parsedBody,
|
|
3283
|
-
errorCode,
|
|
3284
|
-
});
|
|
3285
|
-
}
|
|
3286
|
-
};
|
|
3287
1534
|
export const de_ScanProvisionedProductsCommand = async (output, context) => {
|
|
3288
1535
|
if (output.statusCode >= 300) {
|
|
3289
|
-
return
|
|
1536
|
+
return de_CommandError(output, context);
|
|
3290
1537
|
}
|
|
3291
1538
|
const data = await parseBody(output.body, context);
|
|
3292
1539
|
let contents = {};
|
|
@@ -3297,95 +1544,35 @@ export const de_ScanProvisionedProductsCommand = async (output, context) => {
|
|
|
3297
1544
|
};
|
|
3298
1545
|
return response;
|
|
3299
1546
|
};
|
|
3300
|
-
const de_ScanProvisionedProductsCommandError = async (output, context) => {
|
|
3301
|
-
const parsedOutput = {
|
|
3302
|
-
...output,
|
|
3303
|
-
body: await parseErrorBody(output.body, context),
|
|
3304
|
-
};
|
|
3305
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3306
|
-
switch (errorCode) {
|
|
3307
|
-
case "InvalidParametersException":
|
|
3308
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3309
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3310
|
-
default:
|
|
3311
|
-
const parsedBody = parsedOutput.body;
|
|
3312
|
-
return throwDefaultError({
|
|
3313
|
-
output,
|
|
3314
|
-
parsedBody,
|
|
3315
|
-
errorCode,
|
|
3316
|
-
});
|
|
3317
|
-
}
|
|
3318
|
-
};
|
|
3319
1547
|
export const de_SearchProductsCommand = async (output, context) => {
|
|
3320
1548
|
if (output.statusCode >= 300) {
|
|
3321
|
-
return
|
|
1549
|
+
return de_CommandError(output, context);
|
|
3322
1550
|
}
|
|
3323
1551
|
const data = await parseBody(output.body, context);
|
|
3324
1552
|
let contents = {};
|
|
3325
1553
|
contents = _json(data);
|
|
3326
|
-
const response = {
|
|
3327
|
-
$metadata: deserializeMetadata(output),
|
|
3328
|
-
...contents,
|
|
3329
|
-
};
|
|
3330
|
-
return response;
|
|
3331
|
-
};
|
|
3332
|
-
const
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
body: await parseErrorBody(output.body, context),
|
|
3336
|
-
};
|
|
3337
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3338
|
-
switch (errorCode) {
|
|
3339
|
-
case "InvalidParametersException":
|
|
3340
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3341
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3342
|
-
default:
|
|
3343
|
-
const parsedBody = parsedOutput.body;
|
|
3344
|
-
return throwDefaultError({
|
|
3345
|
-
output,
|
|
3346
|
-
parsedBody,
|
|
3347
|
-
errorCode,
|
|
3348
|
-
});
|
|
3349
|
-
}
|
|
3350
|
-
};
|
|
3351
|
-
export const de_SearchProductsAsAdminCommand = async (output, context) => {
|
|
3352
|
-
if (output.statusCode >= 300) {
|
|
3353
|
-
return de_SearchProductsAsAdminCommandError(output, context);
|
|
3354
|
-
}
|
|
3355
|
-
const data = await parseBody(output.body, context);
|
|
3356
|
-
let contents = {};
|
|
3357
|
-
contents = de_SearchProductsAsAdminOutput(data, context);
|
|
3358
|
-
const response = {
|
|
3359
|
-
$metadata: deserializeMetadata(output),
|
|
3360
|
-
...contents,
|
|
3361
|
-
};
|
|
3362
|
-
return response;
|
|
3363
|
-
};
|
|
3364
|
-
const de_SearchProductsAsAdminCommandError = async (output, context) => {
|
|
3365
|
-
const parsedOutput = {
|
|
3366
|
-
...output,
|
|
3367
|
-
body: await parseErrorBody(output.body, context),
|
|
3368
|
-
};
|
|
3369
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3370
|
-
switch (errorCode) {
|
|
3371
|
-
case "InvalidParametersException":
|
|
3372
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3373
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3374
|
-
case "ResourceNotFoundException":
|
|
3375
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3376
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3377
|
-
default:
|
|
3378
|
-
const parsedBody = parsedOutput.body;
|
|
3379
|
-
return throwDefaultError({
|
|
3380
|
-
output,
|
|
3381
|
-
parsedBody,
|
|
3382
|
-
errorCode,
|
|
3383
|
-
});
|
|
1554
|
+
const response = {
|
|
1555
|
+
$metadata: deserializeMetadata(output),
|
|
1556
|
+
...contents,
|
|
1557
|
+
};
|
|
1558
|
+
return response;
|
|
1559
|
+
};
|
|
1560
|
+
export const de_SearchProductsAsAdminCommand = async (output, context) => {
|
|
1561
|
+
if (output.statusCode >= 300) {
|
|
1562
|
+
return de_CommandError(output, context);
|
|
3384
1563
|
}
|
|
1564
|
+
const data = await parseBody(output.body, context);
|
|
1565
|
+
let contents = {};
|
|
1566
|
+
contents = de_SearchProductsAsAdminOutput(data, context);
|
|
1567
|
+
const response = {
|
|
1568
|
+
$metadata: deserializeMetadata(output),
|
|
1569
|
+
...contents,
|
|
1570
|
+
};
|
|
1571
|
+
return response;
|
|
3385
1572
|
};
|
|
3386
1573
|
export const de_SearchProvisionedProductsCommand = async (output, context) => {
|
|
3387
1574
|
if (output.statusCode >= 300) {
|
|
3388
|
-
return
|
|
1575
|
+
return de_CommandError(output, context);
|
|
3389
1576
|
}
|
|
3390
1577
|
const data = await parseBody(output.body, context);
|
|
3391
1578
|
let contents = {};
|
|
@@ -3396,28 +1583,9 @@ export const de_SearchProvisionedProductsCommand = async (output, context) => {
|
|
|
3396
1583
|
};
|
|
3397
1584
|
return response;
|
|
3398
1585
|
};
|
|
3399
|
-
const de_SearchProvisionedProductsCommandError = async (output, context) => {
|
|
3400
|
-
const parsedOutput = {
|
|
3401
|
-
...output,
|
|
3402
|
-
body: await parseErrorBody(output.body, context),
|
|
3403
|
-
};
|
|
3404
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3405
|
-
switch (errorCode) {
|
|
3406
|
-
case "InvalidParametersException":
|
|
3407
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3408
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3409
|
-
default:
|
|
3410
|
-
const parsedBody = parsedOutput.body;
|
|
3411
|
-
return throwDefaultError({
|
|
3412
|
-
output,
|
|
3413
|
-
parsedBody,
|
|
3414
|
-
errorCode,
|
|
3415
|
-
});
|
|
3416
|
-
}
|
|
3417
|
-
};
|
|
3418
1586
|
export const de_TerminateProvisionedProductCommand = async (output, context) => {
|
|
3419
1587
|
if (output.statusCode >= 300) {
|
|
3420
|
-
return
|
|
1588
|
+
return de_CommandError(output, context);
|
|
3421
1589
|
}
|
|
3422
1590
|
const data = await parseBody(output.body, context);
|
|
3423
1591
|
let contents = {};
|
|
@@ -3428,28 +1596,9 @@ export const de_TerminateProvisionedProductCommand = async (output, context) =>
|
|
|
3428
1596
|
};
|
|
3429
1597
|
return response;
|
|
3430
1598
|
};
|
|
3431
|
-
const de_TerminateProvisionedProductCommandError = async (output, context) => {
|
|
3432
|
-
const parsedOutput = {
|
|
3433
|
-
...output,
|
|
3434
|
-
body: await parseErrorBody(output.body, context),
|
|
3435
|
-
};
|
|
3436
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3437
|
-
switch (errorCode) {
|
|
3438
|
-
case "ResourceNotFoundException":
|
|
3439
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3440
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3441
|
-
default:
|
|
3442
|
-
const parsedBody = parsedOutput.body;
|
|
3443
|
-
return throwDefaultError({
|
|
3444
|
-
output,
|
|
3445
|
-
parsedBody,
|
|
3446
|
-
errorCode,
|
|
3447
|
-
});
|
|
3448
|
-
}
|
|
3449
|
-
};
|
|
3450
1599
|
export const de_UpdateConstraintCommand = async (output, context) => {
|
|
3451
1600
|
if (output.statusCode >= 300) {
|
|
3452
|
-
return
|
|
1601
|
+
return de_CommandError(output, context);
|
|
3453
1602
|
}
|
|
3454
1603
|
const data = await parseBody(output.body, context);
|
|
3455
1604
|
let contents = {};
|
|
@@ -3460,31 +1609,9 @@ export const de_UpdateConstraintCommand = async (output, context) => {
|
|
|
3460
1609
|
};
|
|
3461
1610
|
return response;
|
|
3462
1611
|
};
|
|
3463
|
-
const de_UpdateConstraintCommandError = async (output, context) => {
|
|
3464
|
-
const parsedOutput = {
|
|
3465
|
-
...output,
|
|
3466
|
-
body: await parseErrorBody(output.body, context),
|
|
3467
|
-
};
|
|
3468
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3469
|
-
switch (errorCode) {
|
|
3470
|
-
case "InvalidParametersException":
|
|
3471
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3472
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3473
|
-
case "ResourceNotFoundException":
|
|
3474
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3475
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3476
|
-
default:
|
|
3477
|
-
const parsedBody = parsedOutput.body;
|
|
3478
|
-
return throwDefaultError({
|
|
3479
|
-
output,
|
|
3480
|
-
parsedBody,
|
|
3481
|
-
errorCode,
|
|
3482
|
-
});
|
|
3483
|
-
}
|
|
3484
|
-
};
|
|
3485
1612
|
export const de_UpdatePortfolioCommand = async (output, context) => {
|
|
3486
1613
|
if (output.statusCode >= 300) {
|
|
3487
|
-
return
|
|
1614
|
+
return de_CommandError(output, context);
|
|
3488
1615
|
}
|
|
3489
1616
|
const data = await parseBody(output.body, context);
|
|
3490
1617
|
let contents = {};
|
|
@@ -3495,37 +1622,9 @@ export const de_UpdatePortfolioCommand = async (output, context) => {
|
|
|
3495
1622
|
};
|
|
3496
1623
|
return response;
|
|
3497
1624
|
};
|
|
3498
|
-
const de_UpdatePortfolioCommandError = async (output, context) => {
|
|
3499
|
-
const parsedOutput = {
|
|
3500
|
-
...output,
|
|
3501
|
-
body: await parseErrorBody(output.body, context),
|
|
3502
|
-
};
|
|
3503
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3504
|
-
switch (errorCode) {
|
|
3505
|
-
case "InvalidParametersException":
|
|
3506
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3507
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3508
|
-
case "LimitExceededException":
|
|
3509
|
-
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
3510
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3511
|
-
case "ResourceNotFoundException":
|
|
3512
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3513
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3514
|
-
case "TagOptionNotMigratedException":
|
|
3515
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
3516
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
3517
|
-
default:
|
|
3518
|
-
const parsedBody = parsedOutput.body;
|
|
3519
|
-
return throwDefaultError({
|
|
3520
|
-
output,
|
|
3521
|
-
parsedBody,
|
|
3522
|
-
errorCode,
|
|
3523
|
-
});
|
|
3524
|
-
}
|
|
3525
|
-
};
|
|
3526
1625
|
export const de_UpdatePortfolioShareCommand = async (output, context) => {
|
|
3527
1626
|
if (output.statusCode >= 300) {
|
|
3528
|
-
return
|
|
1627
|
+
return de_CommandError(output, context);
|
|
3529
1628
|
}
|
|
3530
1629
|
const data = await parseBody(output.body, context);
|
|
3531
1630
|
let contents = {};
|
|
@@ -3536,37 +1635,9 @@ export const de_UpdatePortfolioShareCommand = async (output, context) => {
|
|
|
3536
1635
|
};
|
|
3537
1636
|
return response;
|
|
3538
1637
|
};
|
|
3539
|
-
const de_UpdatePortfolioShareCommandError = async (output, context) => {
|
|
3540
|
-
const parsedOutput = {
|
|
3541
|
-
...output,
|
|
3542
|
-
body: await parseErrorBody(output.body, context),
|
|
3543
|
-
};
|
|
3544
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3545
|
-
switch (errorCode) {
|
|
3546
|
-
case "InvalidParametersException":
|
|
3547
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3548
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3549
|
-
case "InvalidStateException":
|
|
3550
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
3551
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
3552
|
-
case "OperationNotSupportedException":
|
|
3553
|
-
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
3554
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
3555
|
-
case "ResourceNotFoundException":
|
|
3556
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3557
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3558
|
-
default:
|
|
3559
|
-
const parsedBody = parsedOutput.body;
|
|
3560
|
-
return throwDefaultError({
|
|
3561
|
-
output,
|
|
3562
|
-
parsedBody,
|
|
3563
|
-
errorCode,
|
|
3564
|
-
});
|
|
3565
|
-
}
|
|
3566
|
-
};
|
|
3567
1638
|
export const de_UpdateProductCommand = async (output, context) => {
|
|
3568
1639
|
if (output.statusCode >= 300) {
|
|
3569
|
-
return
|
|
1640
|
+
return de_CommandError(output, context);
|
|
3570
1641
|
}
|
|
3571
1642
|
const data = await parseBody(output.body, context);
|
|
3572
1643
|
let contents = {};
|
|
@@ -3577,34 +1648,9 @@ export const de_UpdateProductCommand = async (output, context) => {
|
|
|
3577
1648
|
};
|
|
3578
1649
|
return response;
|
|
3579
1650
|
};
|
|
3580
|
-
const de_UpdateProductCommandError = async (output, context) => {
|
|
3581
|
-
const parsedOutput = {
|
|
3582
|
-
...output,
|
|
3583
|
-
body: await parseErrorBody(output.body, context),
|
|
3584
|
-
};
|
|
3585
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3586
|
-
switch (errorCode) {
|
|
3587
|
-
case "InvalidParametersException":
|
|
3588
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3589
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3590
|
-
case "ResourceNotFoundException":
|
|
3591
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3592
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3593
|
-
case "TagOptionNotMigratedException":
|
|
3594
|
-
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
3595
|
-
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
3596
|
-
default:
|
|
3597
|
-
const parsedBody = parsedOutput.body;
|
|
3598
|
-
return throwDefaultError({
|
|
3599
|
-
output,
|
|
3600
|
-
parsedBody,
|
|
3601
|
-
errorCode,
|
|
3602
|
-
});
|
|
3603
|
-
}
|
|
3604
|
-
};
|
|
3605
1651
|
export const de_UpdateProvisionedProductCommand = async (output, context) => {
|
|
3606
1652
|
if (output.statusCode >= 300) {
|
|
3607
|
-
return
|
|
1653
|
+
return de_CommandError(output, context);
|
|
3608
1654
|
}
|
|
3609
1655
|
const data = await parseBody(output.body, context);
|
|
3610
1656
|
let contents = {};
|
|
@@ -3615,31 +1661,9 @@ export const de_UpdateProvisionedProductCommand = async (output, context) => {
|
|
|
3615
1661
|
};
|
|
3616
1662
|
return response;
|
|
3617
1663
|
};
|
|
3618
|
-
const de_UpdateProvisionedProductCommandError = async (output, context) => {
|
|
3619
|
-
const parsedOutput = {
|
|
3620
|
-
...output,
|
|
3621
|
-
body: await parseErrorBody(output.body, context),
|
|
3622
|
-
};
|
|
3623
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3624
|
-
switch (errorCode) {
|
|
3625
|
-
case "InvalidParametersException":
|
|
3626
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3627
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3628
|
-
case "ResourceNotFoundException":
|
|
3629
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3630
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3631
|
-
default:
|
|
3632
|
-
const parsedBody = parsedOutput.body;
|
|
3633
|
-
return throwDefaultError({
|
|
3634
|
-
output,
|
|
3635
|
-
parsedBody,
|
|
3636
|
-
errorCode,
|
|
3637
|
-
});
|
|
3638
|
-
}
|
|
3639
|
-
};
|
|
3640
1664
|
export const de_UpdateProvisionedProductPropertiesCommand = async (output, context) => {
|
|
3641
1665
|
if (output.statusCode >= 300) {
|
|
3642
|
-
return
|
|
1666
|
+
return de_CommandError(output, context);
|
|
3643
1667
|
}
|
|
3644
1668
|
const data = await parseBody(output.body, context);
|
|
3645
1669
|
let contents = {};
|
|
@@ -3650,34 +1674,9 @@ export const de_UpdateProvisionedProductPropertiesCommand = async (output, conte
|
|
|
3650
1674
|
};
|
|
3651
1675
|
return response;
|
|
3652
1676
|
};
|
|
3653
|
-
const de_UpdateProvisionedProductPropertiesCommandError = async (output, context) => {
|
|
3654
|
-
const parsedOutput = {
|
|
3655
|
-
...output,
|
|
3656
|
-
body: await parseErrorBody(output.body, context),
|
|
3657
|
-
};
|
|
3658
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3659
|
-
switch (errorCode) {
|
|
3660
|
-
case "InvalidParametersException":
|
|
3661
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3662
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3663
|
-
case "InvalidStateException":
|
|
3664
|
-
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
3665
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
3666
|
-
case "ResourceNotFoundException":
|
|
3667
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3668
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3669
|
-
default:
|
|
3670
|
-
const parsedBody = parsedOutput.body;
|
|
3671
|
-
return throwDefaultError({
|
|
3672
|
-
output,
|
|
3673
|
-
parsedBody,
|
|
3674
|
-
errorCode,
|
|
3675
|
-
});
|
|
3676
|
-
}
|
|
3677
|
-
};
|
|
3678
1677
|
export const de_UpdateProvisioningArtifactCommand = async (output, context) => {
|
|
3679
1678
|
if (output.statusCode >= 300) {
|
|
3680
|
-
return
|
|
1679
|
+
return de_CommandError(output, context);
|
|
3681
1680
|
}
|
|
3682
1681
|
const data = await parseBody(output.body, context);
|
|
3683
1682
|
let contents = {};
|
|
@@ -3688,31 +1687,9 @@ export const de_UpdateProvisioningArtifactCommand = async (output, context) => {
|
|
|
3688
1687
|
};
|
|
3689
1688
|
return response;
|
|
3690
1689
|
};
|
|
3691
|
-
const de_UpdateProvisioningArtifactCommandError = async (output, context) => {
|
|
3692
|
-
const parsedOutput = {
|
|
3693
|
-
...output,
|
|
3694
|
-
body: await parseErrorBody(output.body, context),
|
|
3695
|
-
};
|
|
3696
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3697
|
-
switch (errorCode) {
|
|
3698
|
-
case "InvalidParametersException":
|
|
3699
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3700
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3701
|
-
case "ResourceNotFoundException":
|
|
3702
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3703
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3704
|
-
default:
|
|
3705
|
-
const parsedBody = parsedOutput.body;
|
|
3706
|
-
return throwDefaultError({
|
|
3707
|
-
output,
|
|
3708
|
-
parsedBody,
|
|
3709
|
-
errorCode,
|
|
3710
|
-
});
|
|
3711
|
-
}
|
|
3712
|
-
};
|
|
3713
1690
|
export const de_UpdateServiceActionCommand = async (output, context) => {
|
|
3714
1691
|
if (output.statusCode >= 300) {
|
|
3715
|
-
return
|
|
1692
|
+
return de_CommandError(output, context);
|
|
3716
1693
|
}
|
|
3717
1694
|
const data = await parseBody(output.body, context);
|
|
3718
1695
|
let contents = {};
|
|
@@ -3723,31 +1700,9 @@ export const de_UpdateServiceActionCommand = async (output, context) => {
|
|
|
3723
1700
|
};
|
|
3724
1701
|
return response;
|
|
3725
1702
|
};
|
|
3726
|
-
const de_UpdateServiceActionCommandError = async (output, context) => {
|
|
3727
|
-
const parsedOutput = {
|
|
3728
|
-
...output,
|
|
3729
|
-
body: await parseErrorBody(output.body, context),
|
|
3730
|
-
};
|
|
3731
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3732
|
-
switch (errorCode) {
|
|
3733
|
-
case "InvalidParametersException":
|
|
3734
|
-
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3735
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
3736
|
-
case "ResourceNotFoundException":
|
|
3737
|
-
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3738
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3739
|
-
default:
|
|
3740
|
-
const parsedBody = parsedOutput.body;
|
|
3741
|
-
return throwDefaultError({
|
|
3742
|
-
output,
|
|
3743
|
-
parsedBody,
|
|
3744
|
-
errorCode,
|
|
3745
|
-
});
|
|
3746
|
-
}
|
|
3747
|
-
};
|
|
3748
1703
|
export const de_UpdateTagOptionCommand = async (output, context) => {
|
|
3749
1704
|
if (output.statusCode >= 300) {
|
|
3750
|
-
return
|
|
1705
|
+
return de_CommandError(output, context);
|
|
3751
1706
|
}
|
|
3752
1707
|
const data = await parseBody(output.body, context);
|
|
3753
1708
|
let contents = {};
|
|
@@ -3758,25 +1713,37 @@ export const de_UpdateTagOptionCommand = async (output, context) => {
|
|
|
3758
1713
|
};
|
|
3759
1714
|
return response;
|
|
3760
1715
|
};
|
|
3761
|
-
const
|
|
1716
|
+
const de_CommandError = async (output, context) => {
|
|
3762
1717
|
const parsedOutput = {
|
|
3763
1718
|
...output,
|
|
3764
1719
|
body: await parseErrorBody(output.body, context),
|
|
3765
1720
|
};
|
|
3766
1721
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3767
1722
|
switch (errorCode) {
|
|
3768
|
-
case "DuplicateResourceException":
|
|
3769
|
-
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
3770
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
3771
1723
|
case "InvalidParametersException":
|
|
3772
1724
|
case "com.amazonaws.servicecatalog#InvalidParametersException":
|
|
3773
1725
|
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1726
|
+
case "LimitExceededException":
|
|
1727
|
+
case "com.amazonaws.servicecatalog#LimitExceededException":
|
|
1728
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3774
1729
|
case "ResourceNotFoundException":
|
|
3775
1730
|
case "com.amazonaws.servicecatalog#ResourceNotFoundException":
|
|
3776
1731
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1732
|
+
case "DuplicateResourceException":
|
|
1733
|
+
case "com.amazonaws.servicecatalog#DuplicateResourceException":
|
|
1734
|
+
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
1735
|
+
case "InvalidStateException":
|
|
1736
|
+
case "com.amazonaws.servicecatalog#InvalidStateException":
|
|
1737
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
3777
1738
|
case "TagOptionNotMigratedException":
|
|
3778
1739
|
case "com.amazonaws.servicecatalog#TagOptionNotMigratedException":
|
|
3779
1740
|
throw await de_TagOptionNotMigratedExceptionRes(parsedOutput, context);
|
|
1741
|
+
case "OperationNotSupportedException":
|
|
1742
|
+
case "com.amazonaws.servicecatalog#OperationNotSupportedException":
|
|
1743
|
+
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1744
|
+
case "ResourceInUseException":
|
|
1745
|
+
case "com.amazonaws.servicecatalog#ResourceInUseException":
|
|
1746
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3780
1747
|
default:
|
|
3781
1748
|
const parsedBody = parsedOutput.body;
|
|
3782
1749
|
return throwDefaultError({
|