@aws-sdk/client-serverlessapplicationrepository 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 +19 -419
- package/dist-es/protocols/Aws_restJson1.js +18 -418
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -519,7 +519,7 @@ var se_UpdateApplicationCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
519
519
|
}, "se_UpdateApplicationCommand");
|
|
520
520
|
var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
521
521
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
522
|
-
return
|
|
522
|
+
return de_CommandError(output, context);
|
|
523
523
|
}
|
|
524
524
|
const contents = (0, import_smithy_client.map)({
|
|
525
525
|
$metadata: deserializeMetadata(output)
|
|
@@ -543,40 +543,9 @@ var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
543
543
|
Object.assign(contents, doc);
|
|
544
544
|
return contents;
|
|
545
545
|
}, "de_CreateApplicationCommand");
|
|
546
|
-
var de_CreateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
547
|
-
const parsedOutput = {
|
|
548
|
-
...output,
|
|
549
|
-
body: await parseErrorBody(output.body, context)
|
|
550
|
-
};
|
|
551
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
552
|
-
switch (errorCode) {
|
|
553
|
-
case "BadRequestException":
|
|
554
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
555
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
556
|
-
case "ConflictException":
|
|
557
|
-
case "com.amazonaws.serverlessapplicationrepository#ConflictException":
|
|
558
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
559
|
-
case "ForbiddenException":
|
|
560
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
561
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
562
|
-
case "InternalServerErrorException":
|
|
563
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
564
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
565
|
-
case "TooManyRequestsException":
|
|
566
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
567
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
568
|
-
default:
|
|
569
|
-
const parsedBody = parsedOutput.body;
|
|
570
|
-
return throwDefaultError({
|
|
571
|
-
output,
|
|
572
|
-
parsedBody,
|
|
573
|
-
errorCode
|
|
574
|
-
});
|
|
575
|
-
}
|
|
576
|
-
}, "de_CreateApplicationCommandError");
|
|
577
546
|
var de_CreateApplicationVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
578
547
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
579
|
-
return
|
|
548
|
+
return de_CommandError(output, context);
|
|
580
549
|
}
|
|
581
550
|
const contents = (0, import_smithy_client.map)({
|
|
582
551
|
$metadata: deserializeMetadata(output)
|
|
@@ -596,40 +565,9 @@ var de_CreateApplicationVersionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
596
565
|
Object.assign(contents, doc);
|
|
597
566
|
return contents;
|
|
598
567
|
}, "de_CreateApplicationVersionCommand");
|
|
599
|
-
var de_CreateApplicationVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
600
|
-
const parsedOutput = {
|
|
601
|
-
...output,
|
|
602
|
-
body: await parseErrorBody(output.body, context)
|
|
603
|
-
};
|
|
604
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
605
|
-
switch (errorCode) {
|
|
606
|
-
case "BadRequestException":
|
|
607
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
608
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
609
|
-
case "ConflictException":
|
|
610
|
-
case "com.amazonaws.serverlessapplicationrepository#ConflictException":
|
|
611
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
612
|
-
case "ForbiddenException":
|
|
613
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
614
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
615
|
-
case "InternalServerErrorException":
|
|
616
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
617
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
618
|
-
case "TooManyRequestsException":
|
|
619
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
620
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
621
|
-
default:
|
|
622
|
-
const parsedBody = parsedOutput.body;
|
|
623
|
-
return throwDefaultError({
|
|
624
|
-
output,
|
|
625
|
-
parsedBody,
|
|
626
|
-
errorCode
|
|
627
|
-
});
|
|
628
|
-
}
|
|
629
|
-
}, "de_CreateApplicationVersionCommandError");
|
|
630
568
|
var de_CreateCloudFormationChangeSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
631
569
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
632
|
-
return
|
|
570
|
+
return de_CommandError(output, context);
|
|
633
571
|
}
|
|
634
572
|
const contents = (0, import_smithy_client.map)({
|
|
635
573
|
$metadata: deserializeMetadata(output)
|
|
@@ -644,37 +582,9 @@ var de_CreateCloudFormationChangeSetCommand = /* @__PURE__ */ __name(async (outp
|
|
|
644
582
|
Object.assign(contents, doc);
|
|
645
583
|
return contents;
|
|
646
584
|
}, "de_CreateCloudFormationChangeSetCommand");
|
|
647
|
-
var de_CreateCloudFormationChangeSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
648
|
-
const parsedOutput = {
|
|
649
|
-
...output,
|
|
650
|
-
body: await parseErrorBody(output.body, context)
|
|
651
|
-
};
|
|
652
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
653
|
-
switch (errorCode) {
|
|
654
|
-
case "BadRequestException":
|
|
655
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
656
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
657
|
-
case "ForbiddenException":
|
|
658
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
659
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
660
|
-
case "InternalServerErrorException":
|
|
661
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
662
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
663
|
-
case "TooManyRequestsException":
|
|
664
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
665
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
666
|
-
default:
|
|
667
|
-
const parsedBody = parsedOutput.body;
|
|
668
|
-
return throwDefaultError({
|
|
669
|
-
output,
|
|
670
|
-
parsedBody,
|
|
671
|
-
errorCode
|
|
672
|
-
});
|
|
673
|
-
}
|
|
674
|
-
}, "de_CreateCloudFormationChangeSetCommandError");
|
|
675
585
|
var de_CreateCloudFormationTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
676
586
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
677
|
-
return
|
|
587
|
+
return de_CommandError(output, context);
|
|
678
588
|
}
|
|
679
589
|
const contents = (0, import_smithy_client.map)({
|
|
680
590
|
$metadata: deserializeMetadata(output)
|
|
@@ -692,40 +602,9 @@ var de_CreateCloudFormationTemplateCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
692
602
|
Object.assign(contents, doc);
|
|
693
603
|
return contents;
|
|
694
604
|
}, "de_CreateCloudFormationTemplateCommand");
|
|
695
|
-
var de_CreateCloudFormationTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
696
|
-
const parsedOutput = {
|
|
697
|
-
...output,
|
|
698
|
-
body: await parseErrorBody(output.body, context)
|
|
699
|
-
};
|
|
700
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
701
|
-
switch (errorCode) {
|
|
702
|
-
case "BadRequestException":
|
|
703
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
704
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
705
|
-
case "ForbiddenException":
|
|
706
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
707
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
708
|
-
case "InternalServerErrorException":
|
|
709
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
710
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
711
|
-
case "NotFoundException":
|
|
712
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
713
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
714
|
-
case "TooManyRequestsException":
|
|
715
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
716
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
717
|
-
default:
|
|
718
|
-
const parsedBody = parsedOutput.body;
|
|
719
|
-
return throwDefaultError({
|
|
720
|
-
output,
|
|
721
|
-
parsedBody,
|
|
722
|
-
errorCode
|
|
723
|
-
});
|
|
724
|
-
}
|
|
725
|
-
}, "de_CreateCloudFormationTemplateCommandError");
|
|
726
605
|
var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
727
606
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
728
|
-
return
|
|
607
|
+
return de_CommandError(output, context);
|
|
729
608
|
}
|
|
730
609
|
const contents = (0, import_smithy_client.map)({
|
|
731
610
|
$metadata: deserializeMetadata(output)
|
|
@@ -733,43 +612,9 @@ var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
733
612
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
734
613
|
return contents;
|
|
735
614
|
}, "de_DeleteApplicationCommand");
|
|
736
|
-
var de_DeleteApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
737
|
-
const parsedOutput = {
|
|
738
|
-
...output,
|
|
739
|
-
body: await parseErrorBody(output.body, context)
|
|
740
|
-
};
|
|
741
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
742
|
-
switch (errorCode) {
|
|
743
|
-
case "BadRequestException":
|
|
744
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
745
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
746
|
-
case "ConflictException":
|
|
747
|
-
case "com.amazonaws.serverlessapplicationrepository#ConflictException":
|
|
748
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
749
|
-
case "ForbiddenException":
|
|
750
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
751
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
752
|
-
case "InternalServerErrorException":
|
|
753
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
754
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
755
|
-
case "NotFoundException":
|
|
756
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
757
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
758
|
-
case "TooManyRequestsException":
|
|
759
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
760
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
761
|
-
default:
|
|
762
|
-
const parsedBody = parsedOutput.body;
|
|
763
|
-
return throwDefaultError({
|
|
764
|
-
output,
|
|
765
|
-
parsedBody,
|
|
766
|
-
errorCode
|
|
767
|
-
});
|
|
768
|
-
}
|
|
769
|
-
}, "de_DeleteApplicationCommandError");
|
|
770
615
|
var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
771
616
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
772
|
-
return
|
|
617
|
+
return de_CommandError(output, context);
|
|
773
618
|
}
|
|
774
619
|
const contents = (0, import_smithy_client.map)({
|
|
775
620
|
$metadata: deserializeMetadata(output)
|
|
@@ -793,40 +638,9 @@ var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
793
638
|
Object.assign(contents, doc);
|
|
794
639
|
return contents;
|
|
795
640
|
}, "de_GetApplicationCommand");
|
|
796
|
-
var de_GetApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
797
|
-
const parsedOutput = {
|
|
798
|
-
...output,
|
|
799
|
-
body: await parseErrorBody(output.body, context)
|
|
800
|
-
};
|
|
801
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
802
|
-
switch (errorCode) {
|
|
803
|
-
case "BadRequestException":
|
|
804
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
805
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
806
|
-
case "ForbiddenException":
|
|
807
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
808
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
809
|
-
case "InternalServerErrorException":
|
|
810
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
811
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
812
|
-
case "NotFoundException":
|
|
813
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
814
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
815
|
-
case "TooManyRequestsException":
|
|
816
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
817
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
818
|
-
default:
|
|
819
|
-
const parsedBody = parsedOutput.body;
|
|
820
|
-
return throwDefaultError({
|
|
821
|
-
output,
|
|
822
|
-
parsedBody,
|
|
823
|
-
errorCode
|
|
824
|
-
});
|
|
825
|
-
}
|
|
826
|
-
}, "de_GetApplicationCommandError");
|
|
827
641
|
var de_GetApplicationPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
828
642
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
829
|
-
return
|
|
643
|
+
return de_CommandError(output, context);
|
|
830
644
|
}
|
|
831
645
|
const contents = (0, import_smithy_client.map)({
|
|
832
646
|
$metadata: deserializeMetadata(output)
|
|
@@ -838,40 +652,9 @@ var de_GetApplicationPolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
838
652
|
Object.assign(contents, doc);
|
|
839
653
|
return contents;
|
|
840
654
|
}, "de_GetApplicationPolicyCommand");
|
|
841
|
-
var de_GetApplicationPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
842
|
-
const parsedOutput = {
|
|
843
|
-
...output,
|
|
844
|
-
body: await parseErrorBody(output.body, context)
|
|
845
|
-
};
|
|
846
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
847
|
-
switch (errorCode) {
|
|
848
|
-
case "BadRequestException":
|
|
849
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
850
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
851
|
-
case "ForbiddenException":
|
|
852
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
853
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
854
|
-
case "InternalServerErrorException":
|
|
855
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
856
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
857
|
-
case "NotFoundException":
|
|
858
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
859
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
860
|
-
case "TooManyRequestsException":
|
|
861
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
862
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
863
|
-
default:
|
|
864
|
-
const parsedBody = parsedOutput.body;
|
|
865
|
-
return throwDefaultError({
|
|
866
|
-
output,
|
|
867
|
-
parsedBody,
|
|
868
|
-
errorCode
|
|
869
|
-
});
|
|
870
|
-
}
|
|
871
|
-
}, "de_GetApplicationPolicyCommandError");
|
|
872
655
|
var de_GetCloudFormationTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
873
656
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
874
|
-
return
|
|
657
|
+
return de_CommandError(output, context);
|
|
875
658
|
}
|
|
876
659
|
const contents = (0, import_smithy_client.map)({
|
|
877
660
|
$metadata: deserializeMetadata(output)
|
|
@@ -889,40 +672,9 @@ var de_GetCloudFormationTemplateCommand = /* @__PURE__ */ __name(async (output,
|
|
|
889
672
|
Object.assign(contents, doc);
|
|
890
673
|
return contents;
|
|
891
674
|
}, "de_GetCloudFormationTemplateCommand");
|
|
892
|
-
var de_GetCloudFormationTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
893
|
-
const parsedOutput = {
|
|
894
|
-
...output,
|
|
895
|
-
body: await parseErrorBody(output.body, context)
|
|
896
|
-
};
|
|
897
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
898
|
-
switch (errorCode) {
|
|
899
|
-
case "BadRequestException":
|
|
900
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
901
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
902
|
-
case "ForbiddenException":
|
|
903
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
904
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
905
|
-
case "InternalServerErrorException":
|
|
906
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
907
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
908
|
-
case "NotFoundException":
|
|
909
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
910
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
911
|
-
case "TooManyRequestsException":
|
|
912
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
913
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
914
|
-
default:
|
|
915
|
-
const parsedBody = parsedOutput.body;
|
|
916
|
-
return throwDefaultError({
|
|
917
|
-
output,
|
|
918
|
-
parsedBody,
|
|
919
|
-
errorCode
|
|
920
|
-
});
|
|
921
|
-
}
|
|
922
|
-
}, "de_GetCloudFormationTemplateCommandError");
|
|
923
675
|
var de_ListApplicationDependenciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
924
676
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
925
|
-
return
|
|
677
|
+
return de_CommandError(output, context);
|
|
926
678
|
}
|
|
927
679
|
const contents = (0, import_smithy_client.map)({
|
|
928
680
|
$metadata: deserializeMetadata(output)
|
|
@@ -935,40 +687,9 @@ var de_ListApplicationDependenciesCommand = /* @__PURE__ */ __name(async (output
|
|
|
935
687
|
Object.assign(contents, doc);
|
|
936
688
|
return contents;
|
|
937
689
|
}, "de_ListApplicationDependenciesCommand");
|
|
938
|
-
var de_ListApplicationDependenciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
939
|
-
const parsedOutput = {
|
|
940
|
-
...output,
|
|
941
|
-
body: await parseErrorBody(output.body, context)
|
|
942
|
-
};
|
|
943
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
944
|
-
switch (errorCode) {
|
|
945
|
-
case "BadRequestException":
|
|
946
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
947
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
948
|
-
case "ForbiddenException":
|
|
949
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
950
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
951
|
-
case "InternalServerErrorException":
|
|
952
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
953
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
954
|
-
case "NotFoundException":
|
|
955
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
956
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
957
|
-
case "TooManyRequestsException":
|
|
958
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
959
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
960
|
-
default:
|
|
961
|
-
const parsedBody = parsedOutput.body;
|
|
962
|
-
return throwDefaultError({
|
|
963
|
-
output,
|
|
964
|
-
parsedBody,
|
|
965
|
-
errorCode
|
|
966
|
-
});
|
|
967
|
-
}
|
|
968
|
-
}, "de_ListApplicationDependenciesCommandError");
|
|
969
690
|
var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
970
691
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
971
|
-
return
|
|
692
|
+
return de_CommandError(output, context);
|
|
972
693
|
}
|
|
973
694
|
const contents = (0, import_smithy_client.map)({
|
|
974
695
|
$metadata: deserializeMetadata(output)
|
|
@@ -981,37 +702,9 @@ var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
981
702
|
Object.assign(contents, doc);
|
|
982
703
|
return contents;
|
|
983
704
|
}, "de_ListApplicationsCommand");
|
|
984
|
-
var de_ListApplicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
985
|
-
const parsedOutput = {
|
|
986
|
-
...output,
|
|
987
|
-
body: await parseErrorBody(output.body, context)
|
|
988
|
-
};
|
|
989
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
990
|
-
switch (errorCode) {
|
|
991
|
-
case "BadRequestException":
|
|
992
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
993
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
994
|
-
case "ForbiddenException":
|
|
995
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
996
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
997
|
-
case "InternalServerErrorException":
|
|
998
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
999
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1000
|
-
case "NotFoundException":
|
|
1001
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
1002
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1003
|
-
default:
|
|
1004
|
-
const parsedBody = parsedOutput.body;
|
|
1005
|
-
return throwDefaultError({
|
|
1006
|
-
output,
|
|
1007
|
-
parsedBody,
|
|
1008
|
-
errorCode
|
|
1009
|
-
});
|
|
1010
|
-
}
|
|
1011
|
-
}, "de_ListApplicationsCommandError");
|
|
1012
705
|
var de_ListApplicationVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1013
706
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1014
|
-
return
|
|
707
|
+
return de_CommandError(output, context);
|
|
1015
708
|
}
|
|
1016
709
|
const contents = (0, import_smithy_client.map)({
|
|
1017
710
|
$metadata: deserializeMetadata(output)
|
|
@@ -1024,40 +717,9 @@ var de_ListApplicationVersionsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1024
717
|
Object.assign(contents, doc);
|
|
1025
718
|
return contents;
|
|
1026
719
|
}, "de_ListApplicationVersionsCommand");
|
|
1027
|
-
var de_ListApplicationVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1028
|
-
const parsedOutput = {
|
|
1029
|
-
...output,
|
|
1030
|
-
body: await parseErrorBody(output.body, context)
|
|
1031
|
-
};
|
|
1032
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1033
|
-
switch (errorCode) {
|
|
1034
|
-
case "BadRequestException":
|
|
1035
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
1036
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1037
|
-
case "ForbiddenException":
|
|
1038
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
1039
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1040
|
-
case "InternalServerErrorException":
|
|
1041
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
1042
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1043
|
-
case "NotFoundException":
|
|
1044
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
1045
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1046
|
-
case "TooManyRequestsException":
|
|
1047
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
1048
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1049
|
-
default:
|
|
1050
|
-
const parsedBody = parsedOutput.body;
|
|
1051
|
-
return throwDefaultError({
|
|
1052
|
-
output,
|
|
1053
|
-
parsedBody,
|
|
1054
|
-
errorCode
|
|
1055
|
-
});
|
|
1056
|
-
}
|
|
1057
|
-
}, "de_ListApplicationVersionsCommandError");
|
|
1058
720
|
var de_PutApplicationPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1059
721
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1060
|
-
return
|
|
722
|
+
return de_CommandError(output, context);
|
|
1061
723
|
}
|
|
1062
724
|
const contents = (0, import_smithy_client.map)({
|
|
1063
725
|
$metadata: deserializeMetadata(output)
|
|
@@ -1069,40 +731,9 @@ var de_PutApplicationPolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1069
731
|
Object.assign(contents, doc);
|
|
1070
732
|
return contents;
|
|
1071
733
|
}, "de_PutApplicationPolicyCommand");
|
|
1072
|
-
var de_PutApplicationPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1073
|
-
const parsedOutput = {
|
|
1074
|
-
...output,
|
|
1075
|
-
body: await parseErrorBody(output.body, context)
|
|
1076
|
-
};
|
|
1077
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1078
|
-
switch (errorCode) {
|
|
1079
|
-
case "BadRequestException":
|
|
1080
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
1081
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1082
|
-
case "ForbiddenException":
|
|
1083
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
1084
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1085
|
-
case "InternalServerErrorException":
|
|
1086
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
1087
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1088
|
-
case "NotFoundException":
|
|
1089
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
1090
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1091
|
-
case "TooManyRequestsException":
|
|
1092
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
1093
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1094
|
-
default:
|
|
1095
|
-
const parsedBody = parsedOutput.body;
|
|
1096
|
-
return throwDefaultError({
|
|
1097
|
-
output,
|
|
1098
|
-
parsedBody,
|
|
1099
|
-
errorCode
|
|
1100
|
-
});
|
|
1101
|
-
}
|
|
1102
|
-
}, "de_PutApplicationPolicyCommandError");
|
|
1103
734
|
var de_UnshareApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1104
735
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1105
|
-
return
|
|
736
|
+
return de_CommandError(output, context);
|
|
1106
737
|
}
|
|
1107
738
|
const contents = (0, import_smithy_client.map)({
|
|
1108
739
|
$metadata: deserializeMetadata(output)
|
|
@@ -1110,40 +741,9 @@ var de_UnshareApplicationCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1110
741
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1111
742
|
return contents;
|
|
1112
743
|
}, "de_UnshareApplicationCommand");
|
|
1113
|
-
var de_UnshareApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1114
|
-
const parsedOutput = {
|
|
1115
|
-
...output,
|
|
1116
|
-
body: await parseErrorBody(output.body, context)
|
|
1117
|
-
};
|
|
1118
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1119
|
-
switch (errorCode) {
|
|
1120
|
-
case "BadRequestException":
|
|
1121
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
1122
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1123
|
-
case "ForbiddenException":
|
|
1124
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
1125
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1126
|
-
case "InternalServerErrorException":
|
|
1127
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
1128
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1129
|
-
case "NotFoundException":
|
|
1130
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
1131
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1132
|
-
case "TooManyRequestsException":
|
|
1133
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
1134
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1135
|
-
default:
|
|
1136
|
-
const parsedBody = parsedOutput.body;
|
|
1137
|
-
return throwDefaultError({
|
|
1138
|
-
output,
|
|
1139
|
-
parsedBody,
|
|
1140
|
-
errorCode
|
|
1141
|
-
});
|
|
1142
|
-
}
|
|
1143
|
-
}, "de_UnshareApplicationCommandError");
|
|
1144
744
|
var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1145
745
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1146
|
-
return
|
|
746
|
+
return de_CommandError(output, context);
|
|
1147
747
|
}
|
|
1148
748
|
const contents = (0, import_smithy_client.map)({
|
|
1149
749
|
$metadata: deserializeMetadata(output)
|
|
@@ -1167,7 +767,7 @@ var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1167
767
|
Object.assign(contents, doc);
|
|
1168
768
|
return contents;
|
|
1169
769
|
}, "de_UpdateApplicationCommand");
|
|
1170
|
-
var
|
|
770
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1171
771
|
const parsedOutput = {
|
|
1172
772
|
...output,
|
|
1173
773
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1186,12 +786,12 @@ var de_UpdateApplicationCommandError = /* @__PURE__ */ __name(async (output, con
|
|
|
1186
786
|
case "InternalServerErrorException":
|
|
1187
787
|
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
1188
788
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1189
|
-
case "NotFoundException":
|
|
1190
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
1191
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1192
789
|
case "TooManyRequestsException":
|
|
1193
790
|
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
1194
791
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
792
|
+
case "NotFoundException":
|
|
793
|
+
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
794
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1195
795
|
default:
|
|
1196
796
|
const parsedBody = parsedOutput.body;
|
|
1197
797
|
return throwDefaultError({
|
|
@@ -1200,7 +800,7 @@ var de_UpdateApplicationCommandError = /* @__PURE__ */ __name(async (output, con
|
|
|
1200
800
|
errorCode
|
|
1201
801
|
});
|
|
1202
802
|
}
|
|
1203
|
-
}, "
|
|
803
|
+
}, "de_CommandError");
|
|
1204
804
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(ServerlessApplicationRepositoryServiceException);
|
|
1205
805
|
var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1206
806
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -214,7 +214,7 @@ export const se_UpdateApplicationCommand = async (input, context) => {
|
|
|
214
214
|
};
|
|
215
215
|
export const de_CreateApplicationCommand = async (output, context) => {
|
|
216
216
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
217
|
-
return
|
|
217
|
+
return de_CommandError(output, context);
|
|
218
218
|
}
|
|
219
219
|
const contents = map({
|
|
220
220
|
$metadata: deserializeMetadata(output),
|
|
@@ -238,40 +238,9 @@ export const de_CreateApplicationCommand = async (output, context) => {
|
|
|
238
238
|
Object.assign(contents, doc);
|
|
239
239
|
return contents;
|
|
240
240
|
};
|
|
241
|
-
const de_CreateApplicationCommandError = async (output, context) => {
|
|
242
|
-
const parsedOutput = {
|
|
243
|
-
...output,
|
|
244
|
-
body: await parseErrorBody(output.body, context),
|
|
245
|
-
};
|
|
246
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
247
|
-
switch (errorCode) {
|
|
248
|
-
case "BadRequestException":
|
|
249
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
250
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
251
|
-
case "ConflictException":
|
|
252
|
-
case "com.amazonaws.serverlessapplicationrepository#ConflictException":
|
|
253
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
254
|
-
case "ForbiddenException":
|
|
255
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
256
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
257
|
-
case "InternalServerErrorException":
|
|
258
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
259
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
260
|
-
case "TooManyRequestsException":
|
|
261
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
262
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
263
|
-
default:
|
|
264
|
-
const parsedBody = parsedOutput.body;
|
|
265
|
-
return throwDefaultError({
|
|
266
|
-
output,
|
|
267
|
-
parsedBody,
|
|
268
|
-
errorCode,
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
};
|
|
272
241
|
export const de_CreateApplicationVersionCommand = async (output, context) => {
|
|
273
242
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
274
|
-
return
|
|
243
|
+
return de_CommandError(output, context);
|
|
275
244
|
}
|
|
276
245
|
const contents = map({
|
|
277
246
|
$metadata: deserializeMetadata(output),
|
|
@@ -291,40 +260,9 @@ export const de_CreateApplicationVersionCommand = async (output, context) => {
|
|
|
291
260
|
Object.assign(contents, doc);
|
|
292
261
|
return contents;
|
|
293
262
|
};
|
|
294
|
-
const de_CreateApplicationVersionCommandError = async (output, context) => {
|
|
295
|
-
const parsedOutput = {
|
|
296
|
-
...output,
|
|
297
|
-
body: await parseErrorBody(output.body, context),
|
|
298
|
-
};
|
|
299
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
300
|
-
switch (errorCode) {
|
|
301
|
-
case "BadRequestException":
|
|
302
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
303
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
304
|
-
case "ConflictException":
|
|
305
|
-
case "com.amazonaws.serverlessapplicationrepository#ConflictException":
|
|
306
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
307
|
-
case "ForbiddenException":
|
|
308
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
309
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
310
|
-
case "InternalServerErrorException":
|
|
311
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
312
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
313
|
-
case "TooManyRequestsException":
|
|
314
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
315
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
316
|
-
default:
|
|
317
|
-
const parsedBody = parsedOutput.body;
|
|
318
|
-
return throwDefaultError({
|
|
319
|
-
output,
|
|
320
|
-
parsedBody,
|
|
321
|
-
errorCode,
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
};
|
|
325
263
|
export const de_CreateCloudFormationChangeSetCommand = async (output, context) => {
|
|
326
264
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
327
|
-
return
|
|
265
|
+
return de_CommandError(output, context);
|
|
328
266
|
}
|
|
329
267
|
const contents = map({
|
|
330
268
|
$metadata: deserializeMetadata(output),
|
|
@@ -339,37 +277,9 @@ export const de_CreateCloudFormationChangeSetCommand = async (output, context) =
|
|
|
339
277
|
Object.assign(contents, doc);
|
|
340
278
|
return contents;
|
|
341
279
|
};
|
|
342
|
-
const de_CreateCloudFormationChangeSetCommandError = async (output, context) => {
|
|
343
|
-
const parsedOutput = {
|
|
344
|
-
...output,
|
|
345
|
-
body: await parseErrorBody(output.body, context),
|
|
346
|
-
};
|
|
347
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
348
|
-
switch (errorCode) {
|
|
349
|
-
case "BadRequestException":
|
|
350
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
351
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
352
|
-
case "ForbiddenException":
|
|
353
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
354
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
355
|
-
case "InternalServerErrorException":
|
|
356
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
357
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
358
|
-
case "TooManyRequestsException":
|
|
359
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
360
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
361
|
-
default:
|
|
362
|
-
const parsedBody = parsedOutput.body;
|
|
363
|
-
return throwDefaultError({
|
|
364
|
-
output,
|
|
365
|
-
parsedBody,
|
|
366
|
-
errorCode,
|
|
367
|
-
});
|
|
368
|
-
}
|
|
369
|
-
};
|
|
370
280
|
export const de_CreateCloudFormationTemplateCommand = async (output, context) => {
|
|
371
281
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
372
|
-
return
|
|
282
|
+
return de_CommandError(output, context);
|
|
373
283
|
}
|
|
374
284
|
const contents = map({
|
|
375
285
|
$metadata: deserializeMetadata(output),
|
|
@@ -387,40 +297,9 @@ export const de_CreateCloudFormationTemplateCommand = async (output, context) =>
|
|
|
387
297
|
Object.assign(contents, doc);
|
|
388
298
|
return contents;
|
|
389
299
|
};
|
|
390
|
-
const de_CreateCloudFormationTemplateCommandError = async (output, context) => {
|
|
391
|
-
const parsedOutput = {
|
|
392
|
-
...output,
|
|
393
|
-
body: await parseErrorBody(output.body, context),
|
|
394
|
-
};
|
|
395
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
396
|
-
switch (errorCode) {
|
|
397
|
-
case "BadRequestException":
|
|
398
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
399
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
400
|
-
case "ForbiddenException":
|
|
401
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
402
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
403
|
-
case "InternalServerErrorException":
|
|
404
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
405
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
406
|
-
case "NotFoundException":
|
|
407
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
408
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
409
|
-
case "TooManyRequestsException":
|
|
410
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
411
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
412
|
-
default:
|
|
413
|
-
const parsedBody = parsedOutput.body;
|
|
414
|
-
return throwDefaultError({
|
|
415
|
-
output,
|
|
416
|
-
parsedBody,
|
|
417
|
-
errorCode,
|
|
418
|
-
});
|
|
419
|
-
}
|
|
420
|
-
};
|
|
421
300
|
export const de_DeleteApplicationCommand = async (output, context) => {
|
|
422
301
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
423
|
-
return
|
|
302
|
+
return de_CommandError(output, context);
|
|
424
303
|
}
|
|
425
304
|
const contents = map({
|
|
426
305
|
$metadata: deserializeMetadata(output),
|
|
@@ -428,43 +307,9 @@ export const de_DeleteApplicationCommand = async (output, context) => {
|
|
|
428
307
|
await collectBody(output.body, context);
|
|
429
308
|
return contents;
|
|
430
309
|
};
|
|
431
|
-
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
432
|
-
const parsedOutput = {
|
|
433
|
-
...output,
|
|
434
|
-
body: await parseErrorBody(output.body, context),
|
|
435
|
-
};
|
|
436
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
437
|
-
switch (errorCode) {
|
|
438
|
-
case "BadRequestException":
|
|
439
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
440
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
441
|
-
case "ConflictException":
|
|
442
|
-
case "com.amazonaws.serverlessapplicationrepository#ConflictException":
|
|
443
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
444
|
-
case "ForbiddenException":
|
|
445
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
446
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
447
|
-
case "InternalServerErrorException":
|
|
448
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
449
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
450
|
-
case "NotFoundException":
|
|
451
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
452
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
453
|
-
case "TooManyRequestsException":
|
|
454
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
455
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
456
|
-
default:
|
|
457
|
-
const parsedBody = parsedOutput.body;
|
|
458
|
-
return throwDefaultError({
|
|
459
|
-
output,
|
|
460
|
-
parsedBody,
|
|
461
|
-
errorCode,
|
|
462
|
-
});
|
|
463
|
-
}
|
|
464
|
-
};
|
|
465
310
|
export const de_GetApplicationCommand = async (output, context) => {
|
|
466
311
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
467
|
-
return
|
|
312
|
+
return de_CommandError(output, context);
|
|
468
313
|
}
|
|
469
314
|
const contents = map({
|
|
470
315
|
$metadata: deserializeMetadata(output),
|
|
@@ -488,40 +333,9 @@ export const de_GetApplicationCommand = async (output, context) => {
|
|
|
488
333
|
Object.assign(contents, doc);
|
|
489
334
|
return contents;
|
|
490
335
|
};
|
|
491
|
-
const de_GetApplicationCommandError = async (output, context) => {
|
|
492
|
-
const parsedOutput = {
|
|
493
|
-
...output,
|
|
494
|
-
body: await parseErrorBody(output.body, context),
|
|
495
|
-
};
|
|
496
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
497
|
-
switch (errorCode) {
|
|
498
|
-
case "BadRequestException":
|
|
499
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
500
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
501
|
-
case "ForbiddenException":
|
|
502
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
503
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
504
|
-
case "InternalServerErrorException":
|
|
505
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
506
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
507
|
-
case "NotFoundException":
|
|
508
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
509
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
510
|
-
case "TooManyRequestsException":
|
|
511
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
512
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
513
|
-
default:
|
|
514
|
-
const parsedBody = parsedOutput.body;
|
|
515
|
-
return throwDefaultError({
|
|
516
|
-
output,
|
|
517
|
-
parsedBody,
|
|
518
|
-
errorCode,
|
|
519
|
-
});
|
|
520
|
-
}
|
|
521
|
-
};
|
|
522
336
|
export const de_GetApplicationPolicyCommand = async (output, context) => {
|
|
523
337
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
524
|
-
return
|
|
338
|
+
return de_CommandError(output, context);
|
|
525
339
|
}
|
|
526
340
|
const contents = map({
|
|
527
341
|
$metadata: deserializeMetadata(output),
|
|
@@ -533,40 +347,9 @@ export const de_GetApplicationPolicyCommand = async (output, context) => {
|
|
|
533
347
|
Object.assign(contents, doc);
|
|
534
348
|
return contents;
|
|
535
349
|
};
|
|
536
|
-
const de_GetApplicationPolicyCommandError = async (output, context) => {
|
|
537
|
-
const parsedOutput = {
|
|
538
|
-
...output,
|
|
539
|
-
body: await parseErrorBody(output.body, context),
|
|
540
|
-
};
|
|
541
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
542
|
-
switch (errorCode) {
|
|
543
|
-
case "BadRequestException":
|
|
544
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
545
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
546
|
-
case "ForbiddenException":
|
|
547
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
548
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
549
|
-
case "InternalServerErrorException":
|
|
550
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
551
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
552
|
-
case "NotFoundException":
|
|
553
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
554
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
555
|
-
case "TooManyRequestsException":
|
|
556
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
557
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
558
|
-
default:
|
|
559
|
-
const parsedBody = parsedOutput.body;
|
|
560
|
-
return throwDefaultError({
|
|
561
|
-
output,
|
|
562
|
-
parsedBody,
|
|
563
|
-
errorCode,
|
|
564
|
-
});
|
|
565
|
-
}
|
|
566
|
-
};
|
|
567
350
|
export const de_GetCloudFormationTemplateCommand = async (output, context) => {
|
|
568
351
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
569
|
-
return
|
|
352
|
+
return de_CommandError(output, context);
|
|
570
353
|
}
|
|
571
354
|
const contents = map({
|
|
572
355
|
$metadata: deserializeMetadata(output),
|
|
@@ -584,40 +367,9 @@ export const de_GetCloudFormationTemplateCommand = async (output, context) => {
|
|
|
584
367
|
Object.assign(contents, doc);
|
|
585
368
|
return contents;
|
|
586
369
|
};
|
|
587
|
-
const de_GetCloudFormationTemplateCommandError = async (output, context) => {
|
|
588
|
-
const parsedOutput = {
|
|
589
|
-
...output,
|
|
590
|
-
body: await parseErrorBody(output.body, context),
|
|
591
|
-
};
|
|
592
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
593
|
-
switch (errorCode) {
|
|
594
|
-
case "BadRequestException":
|
|
595
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
596
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
597
|
-
case "ForbiddenException":
|
|
598
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
599
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
600
|
-
case "InternalServerErrorException":
|
|
601
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
602
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
603
|
-
case "NotFoundException":
|
|
604
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
605
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
606
|
-
case "TooManyRequestsException":
|
|
607
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
608
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
609
|
-
default:
|
|
610
|
-
const parsedBody = parsedOutput.body;
|
|
611
|
-
return throwDefaultError({
|
|
612
|
-
output,
|
|
613
|
-
parsedBody,
|
|
614
|
-
errorCode,
|
|
615
|
-
});
|
|
616
|
-
}
|
|
617
|
-
};
|
|
618
370
|
export const de_ListApplicationDependenciesCommand = async (output, context) => {
|
|
619
371
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
620
|
-
return
|
|
372
|
+
return de_CommandError(output, context);
|
|
621
373
|
}
|
|
622
374
|
const contents = map({
|
|
623
375
|
$metadata: deserializeMetadata(output),
|
|
@@ -630,40 +382,9 @@ export const de_ListApplicationDependenciesCommand = async (output, context) =>
|
|
|
630
382
|
Object.assign(contents, doc);
|
|
631
383
|
return contents;
|
|
632
384
|
};
|
|
633
|
-
const de_ListApplicationDependenciesCommandError = async (output, context) => {
|
|
634
|
-
const parsedOutput = {
|
|
635
|
-
...output,
|
|
636
|
-
body: await parseErrorBody(output.body, context),
|
|
637
|
-
};
|
|
638
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
639
|
-
switch (errorCode) {
|
|
640
|
-
case "BadRequestException":
|
|
641
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
642
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
643
|
-
case "ForbiddenException":
|
|
644
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
645
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
646
|
-
case "InternalServerErrorException":
|
|
647
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
648
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
649
|
-
case "NotFoundException":
|
|
650
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
651
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
652
|
-
case "TooManyRequestsException":
|
|
653
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
654
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
655
|
-
default:
|
|
656
|
-
const parsedBody = parsedOutput.body;
|
|
657
|
-
return throwDefaultError({
|
|
658
|
-
output,
|
|
659
|
-
parsedBody,
|
|
660
|
-
errorCode,
|
|
661
|
-
});
|
|
662
|
-
}
|
|
663
|
-
};
|
|
664
385
|
export const de_ListApplicationsCommand = async (output, context) => {
|
|
665
386
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
666
|
-
return
|
|
387
|
+
return de_CommandError(output, context);
|
|
667
388
|
}
|
|
668
389
|
const contents = map({
|
|
669
390
|
$metadata: deserializeMetadata(output),
|
|
@@ -676,37 +397,9 @@ export const de_ListApplicationsCommand = async (output, context) => {
|
|
|
676
397
|
Object.assign(contents, doc);
|
|
677
398
|
return contents;
|
|
678
399
|
};
|
|
679
|
-
const de_ListApplicationsCommandError = async (output, context) => {
|
|
680
|
-
const parsedOutput = {
|
|
681
|
-
...output,
|
|
682
|
-
body: await parseErrorBody(output.body, context),
|
|
683
|
-
};
|
|
684
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
685
|
-
switch (errorCode) {
|
|
686
|
-
case "BadRequestException":
|
|
687
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
688
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
689
|
-
case "ForbiddenException":
|
|
690
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
691
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
692
|
-
case "InternalServerErrorException":
|
|
693
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
694
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
695
|
-
case "NotFoundException":
|
|
696
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
697
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
698
|
-
default:
|
|
699
|
-
const parsedBody = parsedOutput.body;
|
|
700
|
-
return throwDefaultError({
|
|
701
|
-
output,
|
|
702
|
-
parsedBody,
|
|
703
|
-
errorCode,
|
|
704
|
-
});
|
|
705
|
-
}
|
|
706
|
-
};
|
|
707
400
|
export const de_ListApplicationVersionsCommand = async (output, context) => {
|
|
708
401
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
709
|
-
return
|
|
402
|
+
return de_CommandError(output, context);
|
|
710
403
|
}
|
|
711
404
|
const contents = map({
|
|
712
405
|
$metadata: deserializeMetadata(output),
|
|
@@ -719,40 +412,9 @@ export const de_ListApplicationVersionsCommand = async (output, context) => {
|
|
|
719
412
|
Object.assign(contents, doc);
|
|
720
413
|
return contents;
|
|
721
414
|
};
|
|
722
|
-
const de_ListApplicationVersionsCommandError = async (output, context) => {
|
|
723
|
-
const parsedOutput = {
|
|
724
|
-
...output,
|
|
725
|
-
body: await parseErrorBody(output.body, context),
|
|
726
|
-
};
|
|
727
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
728
|
-
switch (errorCode) {
|
|
729
|
-
case "BadRequestException":
|
|
730
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
731
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
732
|
-
case "ForbiddenException":
|
|
733
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
734
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
735
|
-
case "InternalServerErrorException":
|
|
736
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
737
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
738
|
-
case "NotFoundException":
|
|
739
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
740
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
741
|
-
case "TooManyRequestsException":
|
|
742
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
743
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
744
|
-
default:
|
|
745
|
-
const parsedBody = parsedOutput.body;
|
|
746
|
-
return throwDefaultError({
|
|
747
|
-
output,
|
|
748
|
-
parsedBody,
|
|
749
|
-
errorCode,
|
|
750
|
-
});
|
|
751
|
-
}
|
|
752
|
-
};
|
|
753
415
|
export const de_PutApplicationPolicyCommand = async (output, context) => {
|
|
754
416
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
755
|
-
return
|
|
417
|
+
return de_CommandError(output, context);
|
|
756
418
|
}
|
|
757
419
|
const contents = map({
|
|
758
420
|
$metadata: deserializeMetadata(output),
|
|
@@ -764,40 +426,9 @@ export const de_PutApplicationPolicyCommand = async (output, context) => {
|
|
|
764
426
|
Object.assign(contents, doc);
|
|
765
427
|
return contents;
|
|
766
428
|
};
|
|
767
|
-
const de_PutApplicationPolicyCommandError = async (output, context) => {
|
|
768
|
-
const parsedOutput = {
|
|
769
|
-
...output,
|
|
770
|
-
body: await parseErrorBody(output.body, context),
|
|
771
|
-
};
|
|
772
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
773
|
-
switch (errorCode) {
|
|
774
|
-
case "BadRequestException":
|
|
775
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
776
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
777
|
-
case "ForbiddenException":
|
|
778
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
779
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
780
|
-
case "InternalServerErrorException":
|
|
781
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
782
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
783
|
-
case "NotFoundException":
|
|
784
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
785
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
786
|
-
case "TooManyRequestsException":
|
|
787
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
788
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
789
|
-
default:
|
|
790
|
-
const parsedBody = parsedOutput.body;
|
|
791
|
-
return throwDefaultError({
|
|
792
|
-
output,
|
|
793
|
-
parsedBody,
|
|
794
|
-
errorCode,
|
|
795
|
-
});
|
|
796
|
-
}
|
|
797
|
-
};
|
|
798
429
|
export const de_UnshareApplicationCommand = async (output, context) => {
|
|
799
430
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
800
|
-
return
|
|
431
|
+
return de_CommandError(output, context);
|
|
801
432
|
}
|
|
802
433
|
const contents = map({
|
|
803
434
|
$metadata: deserializeMetadata(output),
|
|
@@ -805,40 +436,9 @@ export const de_UnshareApplicationCommand = async (output, context) => {
|
|
|
805
436
|
await collectBody(output.body, context);
|
|
806
437
|
return contents;
|
|
807
438
|
};
|
|
808
|
-
const de_UnshareApplicationCommandError = async (output, context) => {
|
|
809
|
-
const parsedOutput = {
|
|
810
|
-
...output,
|
|
811
|
-
body: await parseErrorBody(output.body, context),
|
|
812
|
-
};
|
|
813
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
814
|
-
switch (errorCode) {
|
|
815
|
-
case "BadRequestException":
|
|
816
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException":
|
|
817
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
818
|
-
case "ForbiddenException":
|
|
819
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException":
|
|
820
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
821
|
-
case "InternalServerErrorException":
|
|
822
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
823
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
824
|
-
case "NotFoundException":
|
|
825
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
826
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
827
|
-
case "TooManyRequestsException":
|
|
828
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
829
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
830
|
-
default:
|
|
831
|
-
const parsedBody = parsedOutput.body;
|
|
832
|
-
return throwDefaultError({
|
|
833
|
-
output,
|
|
834
|
-
parsedBody,
|
|
835
|
-
errorCode,
|
|
836
|
-
});
|
|
837
|
-
}
|
|
838
|
-
};
|
|
839
439
|
export const de_UpdateApplicationCommand = async (output, context) => {
|
|
840
440
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
841
|
-
return
|
|
441
|
+
return de_CommandError(output, context);
|
|
842
442
|
}
|
|
843
443
|
const contents = map({
|
|
844
444
|
$metadata: deserializeMetadata(output),
|
|
@@ -862,7 +462,7 @@ export const de_UpdateApplicationCommand = async (output, context) => {
|
|
|
862
462
|
Object.assign(contents, doc);
|
|
863
463
|
return contents;
|
|
864
464
|
};
|
|
865
|
-
const
|
|
465
|
+
const de_CommandError = async (output, context) => {
|
|
866
466
|
const parsedOutput = {
|
|
867
467
|
...output,
|
|
868
468
|
body: await parseErrorBody(output.body, context),
|
|
@@ -881,12 +481,12 @@ const de_UpdateApplicationCommandError = async (output, context) => {
|
|
|
881
481
|
case "InternalServerErrorException":
|
|
882
482
|
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException":
|
|
883
483
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
884
|
-
case "NotFoundException":
|
|
885
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
886
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
887
484
|
case "TooManyRequestsException":
|
|
888
485
|
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException":
|
|
889
486
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
487
|
+
case "NotFoundException":
|
|
488
|
+
case "com.amazonaws.serverlessapplicationrepository#NotFoundException":
|
|
489
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
890
490
|
default:
|
|
891
491
|
const parsedBody = parsedOutput.body;
|
|
892
492
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-serverlessapplicationrepository",
|
|
3
3
|
"description": "AWS SDK for JavaScript Serverlessapplicationrepository Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.507.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-serverlessapplicationrepository",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|