@aws-sdk/client-codestar-notifications 3.503.1 → 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 +33 -306
- package/dist-es/protocols/Aws_restJson1.js +32 -305
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -617,7 +617,7 @@ var se_UpdateNotificationRuleCommand = /* @__PURE__ */ __name(async (input, cont
|
|
|
617
617
|
}, "se_UpdateNotificationRuleCommand");
|
|
618
618
|
var de_CreateNotificationRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
619
619
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
620
|
-
return
|
|
620
|
+
return de_CommandError(output, context);
|
|
621
621
|
}
|
|
622
622
|
const contents = (0, import_smithy_client.map)({
|
|
623
623
|
$metadata: deserializeMetadata(output)
|
|
@@ -629,43 +629,9 @@ var de_CreateNotificationRuleCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
629
629
|
Object.assign(contents, doc);
|
|
630
630
|
return contents;
|
|
631
631
|
}, "de_CreateNotificationRuleCommand");
|
|
632
|
-
var de_CreateNotificationRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
633
|
-
const parsedOutput = {
|
|
634
|
-
...output,
|
|
635
|
-
body: await parseErrorBody(output.body, context)
|
|
636
|
-
};
|
|
637
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
638
|
-
switch (errorCode) {
|
|
639
|
-
case "AccessDeniedException":
|
|
640
|
-
case "com.amazonaws.codestarnotifications#AccessDeniedException":
|
|
641
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
642
|
-
case "ConcurrentModificationException":
|
|
643
|
-
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
644
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
645
|
-
case "ConfigurationException":
|
|
646
|
-
case "com.amazonaws.codestarnotifications#ConfigurationException":
|
|
647
|
-
throw await de_ConfigurationExceptionRes(parsedOutput, context);
|
|
648
|
-
case "LimitExceededException":
|
|
649
|
-
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
650
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
651
|
-
case "ResourceAlreadyExistsException":
|
|
652
|
-
case "com.amazonaws.codestarnotifications#ResourceAlreadyExistsException":
|
|
653
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
654
|
-
case "ValidationException":
|
|
655
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
656
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
657
|
-
default:
|
|
658
|
-
const parsedBody = parsedOutput.body;
|
|
659
|
-
return throwDefaultError({
|
|
660
|
-
output,
|
|
661
|
-
parsedBody,
|
|
662
|
-
errorCode
|
|
663
|
-
});
|
|
664
|
-
}
|
|
665
|
-
}, "de_CreateNotificationRuleCommandError");
|
|
666
632
|
var de_DeleteNotificationRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
667
633
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
668
|
-
return
|
|
634
|
+
return de_CommandError(output, context);
|
|
669
635
|
}
|
|
670
636
|
const contents = (0, import_smithy_client.map)({
|
|
671
637
|
$metadata: deserializeMetadata(output)
|
|
@@ -677,34 +643,9 @@ var de_DeleteNotificationRuleCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
677
643
|
Object.assign(contents, doc);
|
|
678
644
|
return contents;
|
|
679
645
|
}, "de_DeleteNotificationRuleCommand");
|
|
680
|
-
var de_DeleteNotificationRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
681
|
-
const parsedOutput = {
|
|
682
|
-
...output,
|
|
683
|
-
body: await parseErrorBody(output.body, context)
|
|
684
|
-
};
|
|
685
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
686
|
-
switch (errorCode) {
|
|
687
|
-
case "ConcurrentModificationException":
|
|
688
|
-
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
689
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
690
|
-
case "LimitExceededException":
|
|
691
|
-
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
692
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
693
|
-
case "ValidationException":
|
|
694
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
695
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
696
|
-
default:
|
|
697
|
-
const parsedBody = parsedOutput.body;
|
|
698
|
-
return throwDefaultError({
|
|
699
|
-
output,
|
|
700
|
-
parsedBody,
|
|
701
|
-
errorCode
|
|
702
|
-
});
|
|
703
|
-
}
|
|
704
|
-
}, "de_DeleteNotificationRuleCommandError");
|
|
705
646
|
var de_DeleteTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
706
647
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
707
|
-
return
|
|
648
|
+
return de_CommandError(output, context);
|
|
708
649
|
}
|
|
709
650
|
const contents = (0, import_smithy_client.map)({
|
|
710
651
|
$metadata: deserializeMetadata(output)
|
|
@@ -712,28 +653,9 @@ var de_DeleteTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
712
653
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
713
654
|
return contents;
|
|
714
655
|
}, "de_DeleteTargetCommand");
|
|
715
|
-
var de_DeleteTargetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
716
|
-
const parsedOutput = {
|
|
717
|
-
...output,
|
|
718
|
-
body: await parseErrorBody(output.body, context)
|
|
719
|
-
};
|
|
720
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
721
|
-
switch (errorCode) {
|
|
722
|
-
case "ValidationException":
|
|
723
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
724
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
725
|
-
default:
|
|
726
|
-
const parsedBody = parsedOutput.body;
|
|
727
|
-
return throwDefaultError({
|
|
728
|
-
output,
|
|
729
|
-
parsedBody,
|
|
730
|
-
errorCode
|
|
731
|
-
});
|
|
732
|
-
}
|
|
733
|
-
}, "de_DeleteTargetCommandError");
|
|
734
656
|
var de_DescribeNotificationRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
735
657
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
736
|
-
return
|
|
658
|
+
return de_CommandError(output, context);
|
|
737
659
|
}
|
|
738
660
|
const contents = (0, import_smithy_client.map)({
|
|
739
661
|
$metadata: deserializeMetadata(output)
|
|
@@ -755,31 +677,9 @@ var de_DescribeNotificationRuleCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
755
677
|
Object.assign(contents, doc);
|
|
756
678
|
return contents;
|
|
757
679
|
}, "de_DescribeNotificationRuleCommand");
|
|
758
|
-
var de_DescribeNotificationRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
759
|
-
const parsedOutput = {
|
|
760
|
-
...output,
|
|
761
|
-
body: await parseErrorBody(output.body, context)
|
|
762
|
-
};
|
|
763
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
764
|
-
switch (errorCode) {
|
|
765
|
-
case "ResourceNotFoundException":
|
|
766
|
-
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
767
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
768
|
-
case "ValidationException":
|
|
769
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
770
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
771
|
-
default:
|
|
772
|
-
const parsedBody = parsedOutput.body;
|
|
773
|
-
return throwDefaultError({
|
|
774
|
-
output,
|
|
775
|
-
parsedBody,
|
|
776
|
-
errorCode
|
|
777
|
-
});
|
|
778
|
-
}
|
|
779
|
-
}, "de_DescribeNotificationRuleCommandError");
|
|
780
680
|
var de_ListEventTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
781
681
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
782
|
-
return
|
|
682
|
+
return de_CommandError(output, context);
|
|
783
683
|
}
|
|
784
684
|
const contents = (0, import_smithy_client.map)({
|
|
785
685
|
$metadata: deserializeMetadata(output)
|
|
@@ -792,31 +692,9 @@ var de_ListEventTypesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
792
692
|
Object.assign(contents, doc);
|
|
793
693
|
return contents;
|
|
794
694
|
}, "de_ListEventTypesCommand");
|
|
795
|
-
var de_ListEventTypesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
796
|
-
const parsedOutput = {
|
|
797
|
-
...output,
|
|
798
|
-
body: await parseErrorBody(output.body, context)
|
|
799
|
-
};
|
|
800
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
801
|
-
switch (errorCode) {
|
|
802
|
-
case "InvalidNextTokenException":
|
|
803
|
-
case "com.amazonaws.codestarnotifications#InvalidNextTokenException":
|
|
804
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
805
|
-
case "ValidationException":
|
|
806
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
807
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
808
|
-
default:
|
|
809
|
-
const parsedBody = parsedOutput.body;
|
|
810
|
-
return throwDefaultError({
|
|
811
|
-
output,
|
|
812
|
-
parsedBody,
|
|
813
|
-
errorCode
|
|
814
|
-
});
|
|
815
|
-
}
|
|
816
|
-
}, "de_ListEventTypesCommandError");
|
|
817
695
|
var de_ListNotificationRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
818
696
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
819
|
-
return
|
|
697
|
+
return de_CommandError(output, context);
|
|
820
698
|
}
|
|
821
699
|
const contents = (0, import_smithy_client.map)({
|
|
822
700
|
$metadata: deserializeMetadata(output)
|
|
@@ -829,31 +707,9 @@ var de_ListNotificationRulesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
829
707
|
Object.assign(contents, doc);
|
|
830
708
|
return contents;
|
|
831
709
|
}, "de_ListNotificationRulesCommand");
|
|
832
|
-
var de_ListNotificationRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
833
|
-
const parsedOutput = {
|
|
834
|
-
...output,
|
|
835
|
-
body: await parseErrorBody(output.body, context)
|
|
836
|
-
};
|
|
837
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
838
|
-
switch (errorCode) {
|
|
839
|
-
case "InvalidNextTokenException":
|
|
840
|
-
case "com.amazonaws.codestarnotifications#InvalidNextTokenException":
|
|
841
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
842
|
-
case "ValidationException":
|
|
843
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
844
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
845
|
-
default:
|
|
846
|
-
const parsedBody = parsedOutput.body;
|
|
847
|
-
return throwDefaultError({
|
|
848
|
-
output,
|
|
849
|
-
parsedBody,
|
|
850
|
-
errorCode
|
|
851
|
-
});
|
|
852
|
-
}
|
|
853
|
-
}, "de_ListNotificationRulesCommandError");
|
|
854
710
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
855
711
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
856
|
-
return
|
|
712
|
+
return de_CommandError(output, context);
|
|
857
713
|
}
|
|
858
714
|
const contents = (0, import_smithy_client.map)({
|
|
859
715
|
$metadata: deserializeMetadata(output)
|
|
@@ -865,31 +721,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
865
721
|
Object.assign(contents, doc);
|
|
866
722
|
return contents;
|
|
867
723
|
}, "de_ListTagsForResourceCommand");
|
|
868
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
869
|
-
const parsedOutput = {
|
|
870
|
-
...output,
|
|
871
|
-
body: await parseErrorBody(output.body, context)
|
|
872
|
-
};
|
|
873
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
874
|
-
switch (errorCode) {
|
|
875
|
-
case "ResourceNotFoundException":
|
|
876
|
-
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
877
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
878
|
-
case "ValidationException":
|
|
879
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
880
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
881
|
-
default:
|
|
882
|
-
const parsedBody = parsedOutput.body;
|
|
883
|
-
return throwDefaultError({
|
|
884
|
-
output,
|
|
885
|
-
parsedBody,
|
|
886
|
-
errorCode
|
|
887
|
-
});
|
|
888
|
-
}
|
|
889
|
-
}, "de_ListTagsForResourceCommandError");
|
|
890
724
|
var de_ListTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
891
725
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
892
|
-
return
|
|
726
|
+
return de_CommandError(output, context);
|
|
893
727
|
}
|
|
894
728
|
const contents = (0, import_smithy_client.map)({
|
|
895
729
|
$metadata: deserializeMetadata(output)
|
|
@@ -902,31 +736,9 @@ var de_ListTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
902
736
|
Object.assign(contents, doc);
|
|
903
737
|
return contents;
|
|
904
738
|
}, "de_ListTargetsCommand");
|
|
905
|
-
var de_ListTargetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
906
|
-
const parsedOutput = {
|
|
907
|
-
...output,
|
|
908
|
-
body: await parseErrorBody(output.body, context)
|
|
909
|
-
};
|
|
910
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
911
|
-
switch (errorCode) {
|
|
912
|
-
case "InvalidNextTokenException":
|
|
913
|
-
case "com.amazonaws.codestarnotifications#InvalidNextTokenException":
|
|
914
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
915
|
-
case "ValidationException":
|
|
916
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
917
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
918
|
-
default:
|
|
919
|
-
const parsedBody = parsedOutput.body;
|
|
920
|
-
return throwDefaultError({
|
|
921
|
-
output,
|
|
922
|
-
parsedBody,
|
|
923
|
-
errorCode
|
|
924
|
-
});
|
|
925
|
-
}
|
|
926
|
-
}, "de_ListTargetsCommandError");
|
|
927
739
|
var de_SubscribeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
928
740
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
929
|
-
return
|
|
741
|
+
return de_CommandError(output, context);
|
|
930
742
|
}
|
|
931
743
|
const contents = (0, import_smithy_client.map)({
|
|
932
744
|
$metadata: deserializeMetadata(output)
|
|
@@ -938,34 +750,9 @@ var de_SubscribeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
938
750
|
Object.assign(contents, doc);
|
|
939
751
|
return contents;
|
|
940
752
|
}, "de_SubscribeCommand");
|
|
941
|
-
var de_SubscribeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
942
|
-
const parsedOutput = {
|
|
943
|
-
...output,
|
|
944
|
-
body: await parseErrorBody(output.body, context)
|
|
945
|
-
};
|
|
946
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
947
|
-
switch (errorCode) {
|
|
948
|
-
case "ConfigurationException":
|
|
949
|
-
case "com.amazonaws.codestarnotifications#ConfigurationException":
|
|
950
|
-
throw await de_ConfigurationExceptionRes(parsedOutput, context);
|
|
951
|
-
case "ResourceNotFoundException":
|
|
952
|
-
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
953
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
954
|
-
case "ValidationException":
|
|
955
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
956
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
957
|
-
default:
|
|
958
|
-
const parsedBody = parsedOutput.body;
|
|
959
|
-
return throwDefaultError({
|
|
960
|
-
output,
|
|
961
|
-
parsedBody,
|
|
962
|
-
errorCode
|
|
963
|
-
});
|
|
964
|
-
}
|
|
965
|
-
}, "de_SubscribeCommandError");
|
|
966
753
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
967
754
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
968
|
-
return
|
|
755
|
+
return de_CommandError(output, context);
|
|
969
756
|
}
|
|
970
757
|
const contents = (0, import_smithy_client.map)({
|
|
971
758
|
$metadata: deserializeMetadata(output)
|
|
@@ -977,37 +764,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
977
764
|
Object.assign(contents, doc);
|
|
978
765
|
return contents;
|
|
979
766
|
}, "de_TagResourceCommand");
|
|
980
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(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 "ConcurrentModificationException":
|
|
988
|
-
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
989
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
990
|
-
case "LimitExceededException":
|
|
991
|
-
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
992
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
993
|
-
case "ResourceNotFoundException":
|
|
994
|
-
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
995
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
996
|
-
case "ValidationException":
|
|
997
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
998
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
999
|
-
default:
|
|
1000
|
-
const parsedBody = parsedOutput.body;
|
|
1001
|
-
return throwDefaultError({
|
|
1002
|
-
output,
|
|
1003
|
-
parsedBody,
|
|
1004
|
-
errorCode
|
|
1005
|
-
});
|
|
1006
|
-
}
|
|
1007
|
-
}, "de_TagResourceCommandError");
|
|
1008
767
|
var de_UnsubscribeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1009
768
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1010
|
-
return
|
|
769
|
+
return de_CommandError(output, context);
|
|
1011
770
|
}
|
|
1012
771
|
const contents = (0, import_smithy_client.map)({
|
|
1013
772
|
$metadata: deserializeMetadata(output)
|
|
@@ -1019,28 +778,9 @@ var de_UnsubscribeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1019
778
|
Object.assign(contents, doc);
|
|
1020
779
|
return contents;
|
|
1021
780
|
}, "de_UnsubscribeCommand");
|
|
1022
|
-
var de_UnsubscribeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1023
|
-
const parsedOutput = {
|
|
1024
|
-
...output,
|
|
1025
|
-
body: await parseErrorBody(output.body, context)
|
|
1026
|
-
};
|
|
1027
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1028
|
-
switch (errorCode) {
|
|
1029
|
-
case "ValidationException":
|
|
1030
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
1031
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1032
|
-
default:
|
|
1033
|
-
const parsedBody = parsedOutput.body;
|
|
1034
|
-
return throwDefaultError({
|
|
1035
|
-
output,
|
|
1036
|
-
parsedBody,
|
|
1037
|
-
errorCode
|
|
1038
|
-
});
|
|
1039
|
-
}
|
|
1040
|
-
}, "de_UnsubscribeCommandError");
|
|
1041
781
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1042
782
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1043
|
-
return
|
|
783
|
+
return de_CommandError(output, context);
|
|
1044
784
|
}
|
|
1045
785
|
const contents = (0, import_smithy_client.map)({
|
|
1046
786
|
$metadata: deserializeMetadata(output)
|
|
@@ -1048,37 +788,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1048
788
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1049
789
|
return contents;
|
|
1050
790
|
}, "de_UntagResourceCommand");
|
|
1051
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1052
|
-
const parsedOutput = {
|
|
1053
|
-
...output,
|
|
1054
|
-
body: await parseErrorBody(output.body, context)
|
|
1055
|
-
};
|
|
1056
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1057
|
-
switch (errorCode) {
|
|
1058
|
-
case "ConcurrentModificationException":
|
|
1059
|
-
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
1060
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1061
|
-
case "LimitExceededException":
|
|
1062
|
-
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
1063
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "ResourceNotFoundException":
|
|
1065
|
-
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
1066
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "ValidationException":
|
|
1068
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
1069
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1070
|
-
default:
|
|
1071
|
-
const parsedBody = parsedOutput.body;
|
|
1072
|
-
return throwDefaultError({
|
|
1073
|
-
output,
|
|
1074
|
-
parsedBody,
|
|
1075
|
-
errorCode
|
|
1076
|
-
});
|
|
1077
|
-
}
|
|
1078
|
-
}, "de_UntagResourceCommandError");
|
|
1079
791
|
var de_UpdateNotificationRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1080
792
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1081
|
-
return
|
|
793
|
+
return de_CommandError(output, context);
|
|
1082
794
|
}
|
|
1083
795
|
const contents = (0, import_smithy_client.map)({
|
|
1084
796
|
$metadata: deserializeMetadata(output)
|
|
@@ -1086,22 +798,37 @@ var de_UpdateNotificationRuleCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1086
798
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1087
799
|
return contents;
|
|
1088
800
|
}, "de_UpdateNotificationRuleCommand");
|
|
1089
|
-
var
|
|
801
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1090
802
|
const parsedOutput = {
|
|
1091
803
|
...output,
|
|
1092
804
|
body: await parseErrorBody(output.body, context)
|
|
1093
805
|
};
|
|
1094
806
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1095
807
|
switch (errorCode) {
|
|
808
|
+
case "AccessDeniedException":
|
|
809
|
+
case "com.amazonaws.codestarnotifications#AccessDeniedException":
|
|
810
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
811
|
+
case "ConcurrentModificationException":
|
|
812
|
+
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
813
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1096
814
|
case "ConfigurationException":
|
|
1097
815
|
case "com.amazonaws.codestarnotifications#ConfigurationException":
|
|
1098
816
|
throw await de_ConfigurationExceptionRes(parsedOutput, context);
|
|
1099
|
-
case "
|
|
1100
|
-
case "com.amazonaws.codestarnotifications#
|
|
1101
|
-
throw await
|
|
817
|
+
case "LimitExceededException":
|
|
818
|
+
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
819
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
820
|
+
case "ResourceAlreadyExistsException":
|
|
821
|
+
case "com.amazonaws.codestarnotifications#ResourceAlreadyExistsException":
|
|
822
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1102
823
|
case "ValidationException":
|
|
1103
824
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
1104
825
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
826
|
+
case "ResourceNotFoundException":
|
|
827
|
+
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
828
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
829
|
+
case "InvalidNextTokenException":
|
|
830
|
+
case "com.amazonaws.codestarnotifications#InvalidNextTokenException":
|
|
831
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1105
832
|
default:
|
|
1106
833
|
const parsedBody = parsedOutput.body;
|
|
1107
834
|
return throwDefaultError({
|
|
@@ -1110,7 +837,7 @@ var de_UpdateNotificationRuleCommandError = /* @__PURE__ */ __name(async (output
|
|
|
1110
837
|
errorCode
|
|
1111
838
|
});
|
|
1112
839
|
}
|
|
1113
|
-
}, "
|
|
840
|
+
}, "de_CommandError");
|
|
1114
841
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(CodestarNotificationsServiceException);
|
|
1115
842
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1116
843
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -199,7 +199,7 @@ export const se_UpdateNotificationRuleCommand = async (input, context) => {
|
|
|
199
199
|
};
|
|
200
200
|
export const de_CreateNotificationRuleCommand = async (output, context) => {
|
|
201
201
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
202
|
-
return
|
|
202
|
+
return de_CommandError(output, context);
|
|
203
203
|
}
|
|
204
204
|
const contents = map({
|
|
205
205
|
$metadata: deserializeMetadata(output),
|
|
@@ -211,43 +211,9 @@ export const de_CreateNotificationRuleCommand = async (output, context) => {
|
|
|
211
211
|
Object.assign(contents, doc);
|
|
212
212
|
return contents;
|
|
213
213
|
};
|
|
214
|
-
const de_CreateNotificationRuleCommandError = async (output, context) => {
|
|
215
|
-
const parsedOutput = {
|
|
216
|
-
...output,
|
|
217
|
-
body: await parseErrorBody(output.body, context),
|
|
218
|
-
};
|
|
219
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
220
|
-
switch (errorCode) {
|
|
221
|
-
case "AccessDeniedException":
|
|
222
|
-
case "com.amazonaws.codestarnotifications#AccessDeniedException":
|
|
223
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
224
|
-
case "ConcurrentModificationException":
|
|
225
|
-
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
226
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
227
|
-
case "ConfigurationException":
|
|
228
|
-
case "com.amazonaws.codestarnotifications#ConfigurationException":
|
|
229
|
-
throw await de_ConfigurationExceptionRes(parsedOutput, context);
|
|
230
|
-
case "LimitExceededException":
|
|
231
|
-
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
232
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
233
|
-
case "ResourceAlreadyExistsException":
|
|
234
|
-
case "com.amazonaws.codestarnotifications#ResourceAlreadyExistsException":
|
|
235
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
236
|
-
case "ValidationException":
|
|
237
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
238
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
239
|
-
default:
|
|
240
|
-
const parsedBody = parsedOutput.body;
|
|
241
|
-
return throwDefaultError({
|
|
242
|
-
output,
|
|
243
|
-
parsedBody,
|
|
244
|
-
errorCode,
|
|
245
|
-
});
|
|
246
|
-
}
|
|
247
|
-
};
|
|
248
214
|
export const de_DeleteNotificationRuleCommand = async (output, context) => {
|
|
249
215
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
250
|
-
return
|
|
216
|
+
return de_CommandError(output, context);
|
|
251
217
|
}
|
|
252
218
|
const contents = map({
|
|
253
219
|
$metadata: deserializeMetadata(output),
|
|
@@ -259,34 +225,9 @@ export const de_DeleteNotificationRuleCommand = async (output, context) => {
|
|
|
259
225
|
Object.assign(contents, doc);
|
|
260
226
|
return contents;
|
|
261
227
|
};
|
|
262
|
-
const de_DeleteNotificationRuleCommandError = async (output, context) => {
|
|
263
|
-
const parsedOutput = {
|
|
264
|
-
...output,
|
|
265
|
-
body: await parseErrorBody(output.body, context),
|
|
266
|
-
};
|
|
267
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
268
|
-
switch (errorCode) {
|
|
269
|
-
case "ConcurrentModificationException":
|
|
270
|
-
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
271
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
272
|
-
case "LimitExceededException":
|
|
273
|
-
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
274
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
275
|
-
case "ValidationException":
|
|
276
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
277
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
278
|
-
default:
|
|
279
|
-
const parsedBody = parsedOutput.body;
|
|
280
|
-
return throwDefaultError({
|
|
281
|
-
output,
|
|
282
|
-
parsedBody,
|
|
283
|
-
errorCode,
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
};
|
|
287
228
|
export const de_DeleteTargetCommand = async (output, context) => {
|
|
288
229
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
289
|
-
return
|
|
230
|
+
return de_CommandError(output, context);
|
|
290
231
|
}
|
|
291
232
|
const contents = map({
|
|
292
233
|
$metadata: deserializeMetadata(output),
|
|
@@ -294,28 +235,9 @@ export const de_DeleteTargetCommand = async (output, context) => {
|
|
|
294
235
|
await collectBody(output.body, context);
|
|
295
236
|
return contents;
|
|
296
237
|
};
|
|
297
|
-
const de_DeleteTargetCommandError = async (output, context) => {
|
|
298
|
-
const parsedOutput = {
|
|
299
|
-
...output,
|
|
300
|
-
body: await parseErrorBody(output.body, context),
|
|
301
|
-
};
|
|
302
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
303
|
-
switch (errorCode) {
|
|
304
|
-
case "ValidationException":
|
|
305
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
306
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
307
|
-
default:
|
|
308
|
-
const parsedBody = parsedOutput.body;
|
|
309
|
-
return throwDefaultError({
|
|
310
|
-
output,
|
|
311
|
-
parsedBody,
|
|
312
|
-
errorCode,
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
};
|
|
316
238
|
export const de_DescribeNotificationRuleCommand = async (output, context) => {
|
|
317
239
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
318
|
-
return
|
|
240
|
+
return de_CommandError(output, context);
|
|
319
241
|
}
|
|
320
242
|
const contents = map({
|
|
321
243
|
$metadata: deserializeMetadata(output),
|
|
@@ -337,31 +259,9 @@ export const de_DescribeNotificationRuleCommand = async (output, context) => {
|
|
|
337
259
|
Object.assign(contents, doc);
|
|
338
260
|
return contents;
|
|
339
261
|
};
|
|
340
|
-
const de_DescribeNotificationRuleCommandError = async (output, context) => {
|
|
341
|
-
const parsedOutput = {
|
|
342
|
-
...output,
|
|
343
|
-
body: await parseErrorBody(output.body, context),
|
|
344
|
-
};
|
|
345
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
346
|
-
switch (errorCode) {
|
|
347
|
-
case "ResourceNotFoundException":
|
|
348
|
-
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
349
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
350
|
-
case "ValidationException":
|
|
351
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
352
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
353
|
-
default:
|
|
354
|
-
const parsedBody = parsedOutput.body;
|
|
355
|
-
return throwDefaultError({
|
|
356
|
-
output,
|
|
357
|
-
parsedBody,
|
|
358
|
-
errorCode,
|
|
359
|
-
});
|
|
360
|
-
}
|
|
361
|
-
};
|
|
362
262
|
export const de_ListEventTypesCommand = async (output, context) => {
|
|
363
263
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
364
|
-
return
|
|
264
|
+
return de_CommandError(output, context);
|
|
365
265
|
}
|
|
366
266
|
const contents = map({
|
|
367
267
|
$metadata: deserializeMetadata(output),
|
|
@@ -374,31 +274,9 @@ export const de_ListEventTypesCommand = async (output, context) => {
|
|
|
374
274
|
Object.assign(contents, doc);
|
|
375
275
|
return contents;
|
|
376
276
|
};
|
|
377
|
-
const de_ListEventTypesCommandError = async (output, context) => {
|
|
378
|
-
const parsedOutput = {
|
|
379
|
-
...output,
|
|
380
|
-
body: await parseErrorBody(output.body, context),
|
|
381
|
-
};
|
|
382
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
383
|
-
switch (errorCode) {
|
|
384
|
-
case "InvalidNextTokenException":
|
|
385
|
-
case "com.amazonaws.codestarnotifications#InvalidNextTokenException":
|
|
386
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
387
|
-
case "ValidationException":
|
|
388
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
389
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
390
|
-
default:
|
|
391
|
-
const parsedBody = parsedOutput.body;
|
|
392
|
-
return throwDefaultError({
|
|
393
|
-
output,
|
|
394
|
-
parsedBody,
|
|
395
|
-
errorCode,
|
|
396
|
-
});
|
|
397
|
-
}
|
|
398
|
-
};
|
|
399
277
|
export const de_ListNotificationRulesCommand = async (output, context) => {
|
|
400
278
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
401
|
-
return
|
|
279
|
+
return de_CommandError(output, context);
|
|
402
280
|
}
|
|
403
281
|
const contents = map({
|
|
404
282
|
$metadata: deserializeMetadata(output),
|
|
@@ -411,31 +289,9 @@ export const de_ListNotificationRulesCommand = async (output, context) => {
|
|
|
411
289
|
Object.assign(contents, doc);
|
|
412
290
|
return contents;
|
|
413
291
|
};
|
|
414
|
-
const de_ListNotificationRulesCommandError = async (output, context) => {
|
|
415
|
-
const parsedOutput = {
|
|
416
|
-
...output,
|
|
417
|
-
body: await parseErrorBody(output.body, context),
|
|
418
|
-
};
|
|
419
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
420
|
-
switch (errorCode) {
|
|
421
|
-
case "InvalidNextTokenException":
|
|
422
|
-
case "com.amazonaws.codestarnotifications#InvalidNextTokenException":
|
|
423
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
424
|
-
case "ValidationException":
|
|
425
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
426
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
427
|
-
default:
|
|
428
|
-
const parsedBody = parsedOutput.body;
|
|
429
|
-
return throwDefaultError({
|
|
430
|
-
output,
|
|
431
|
-
parsedBody,
|
|
432
|
-
errorCode,
|
|
433
|
-
});
|
|
434
|
-
}
|
|
435
|
-
};
|
|
436
292
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
437
293
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
438
|
-
return
|
|
294
|
+
return de_CommandError(output, context);
|
|
439
295
|
}
|
|
440
296
|
const contents = map({
|
|
441
297
|
$metadata: deserializeMetadata(output),
|
|
@@ -447,31 +303,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
447
303
|
Object.assign(contents, doc);
|
|
448
304
|
return contents;
|
|
449
305
|
};
|
|
450
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
451
|
-
const parsedOutput = {
|
|
452
|
-
...output,
|
|
453
|
-
body: await parseErrorBody(output.body, context),
|
|
454
|
-
};
|
|
455
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
456
|
-
switch (errorCode) {
|
|
457
|
-
case "ResourceNotFoundException":
|
|
458
|
-
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
459
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
460
|
-
case "ValidationException":
|
|
461
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
462
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
463
|
-
default:
|
|
464
|
-
const parsedBody = parsedOutput.body;
|
|
465
|
-
return throwDefaultError({
|
|
466
|
-
output,
|
|
467
|
-
parsedBody,
|
|
468
|
-
errorCode,
|
|
469
|
-
});
|
|
470
|
-
}
|
|
471
|
-
};
|
|
472
306
|
export const de_ListTargetsCommand = async (output, context) => {
|
|
473
307
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
474
|
-
return
|
|
308
|
+
return de_CommandError(output, context);
|
|
475
309
|
}
|
|
476
310
|
const contents = map({
|
|
477
311
|
$metadata: deserializeMetadata(output),
|
|
@@ -484,31 +318,9 @@ export const de_ListTargetsCommand = async (output, context) => {
|
|
|
484
318
|
Object.assign(contents, doc);
|
|
485
319
|
return contents;
|
|
486
320
|
};
|
|
487
|
-
const de_ListTargetsCommandError = async (output, context) => {
|
|
488
|
-
const parsedOutput = {
|
|
489
|
-
...output,
|
|
490
|
-
body: await parseErrorBody(output.body, context),
|
|
491
|
-
};
|
|
492
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
493
|
-
switch (errorCode) {
|
|
494
|
-
case "InvalidNextTokenException":
|
|
495
|
-
case "com.amazonaws.codestarnotifications#InvalidNextTokenException":
|
|
496
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
497
|
-
case "ValidationException":
|
|
498
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
499
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
500
|
-
default:
|
|
501
|
-
const parsedBody = parsedOutput.body;
|
|
502
|
-
return throwDefaultError({
|
|
503
|
-
output,
|
|
504
|
-
parsedBody,
|
|
505
|
-
errorCode,
|
|
506
|
-
});
|
|
507
|
-
}
|
|
508
|
-
};
|
|
509
321
|
export const de_SubscribeCommand = async (output, context) => {
|
|
510
322
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
511
|
-
return
|
|
323
|
+
return de_CommandError(output, context);
|
|
512
324
|
}
|
|
513
325
|
const contents = map({
|
|
514
326
|
$metadata: deserializeMetadata(output),
|
|
@@ -520,34 +332,9 @@ export const de_SubscribeCommand = async (output, context) => {
|
|
|
520
332
|
Object.assign(contents, doc);
|
|
521
333
|
return contents;
|
|
522
334
|
};
|
|
523
|
-
const de_SubscribeCommandError = async (output, context) => {
|
|
524
|
-
const parsedOutput = {
|
|
525
|
-
...output,
|
|
526
|
-
body: await parseErrorBody(output.body, context),
|
|
527
|
-
};
|
|
528
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
529
|
-
switch (errorCode) {
|
|
530
|
-
case "ConfigurationException":
|
|
531
|
-
case "com.amazonaws.codestarnotifications#ConfigurationException":
|
|
532
|
-
throw await de_ConfigurationExceptionRes(parsedOutput, context);
|
|
533
|
-
case "ResourceNotFoundException":
|
|
534
|
-
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
535
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
536
|
-
case "ValidationException":
|
|
537
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
538
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
539
|
-
default:
|
|
540
|
-
const parsedBody = parsedOutput.body;
|
|
541
|
-
return throwDefaultError({
|
|
542
|
-
output,
|
|
543
|
-
parsedBody,
|
|
544
|
-
errorCode,
|
|
545
|
-
});
|
|
546
|
-
}
|
|
547
|
-
};
|
|
548
335
|
export const de_TagResourceCommand = async (output, context) => {
|
|
549
336
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
550
|
-
return
|
|
337
|
+
return de_CommandError(output, context);
|
|
551
338
|
}
|
|
552
339
|
const contents = map({
|
|
553
340
|
$metadata: deserializeMetadata(output),
|
|
@@ -559,37 +346,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
559
346
|
Object.assign(contents, doc);
|
|
560
347
|
return contents;
|
|
561
348
|
};
|
|
562
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
563
|
-
const parsedOutput = {
|
|
564
|
-
...output,
|
|
565
|
-
body: await parseErrorBody(output.body, context),
|
|
566
|
-
};
|
|
567
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
568
|
-
switch (errorCode) {
|
|
569
|
-
case "ConcurrentModificationException":
|
|
570
|
-
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
571
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
572
|
-
case "LimitExceededException":
|
|
573
|
-
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
574
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
575
|
-
case "ResourceNotFoundException":
|
|
576
|
-
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
577
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
578
|
-
case "ValidationException":
|
|
579
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
580
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
581
|
-
default:
|
|
582
|
-
const parsedBody = parsedOutput.body;
|
|
583
|
-
return throwDefaultError({
|
|
584
|
-
output,
|
|
585
|
-
parsedBody,
|
|
586
|
-
errorCode,
|
|
587
|
-
});
|
|
588
|
-
}
|
|
589
|
-
};
|
|
590
349
|
export const de_UnsubscribeCommand = async (output, context) => {
|
|
591
350
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
592
|
-
return
|
|
351
|
+
return de_CommandError(output, context);
|
|
593
352
|
}
|
|
594
353
|
const contents = map({
|
|
595
354
|
$metadata: deserializeMetadata(output),
|
|
@@ -601,28 +360,9 @@ export const de_UnsubscribeCommand = async (output, context) => {
|
|
|
601
360
|
Object.assign(contents, doc);
|
|
602
361
|
return contents;
|
|
603
362
|
};
|
|
604
|
-
const de_UnsubscribeCommandError = async (output, context) => {
|
|
605
|
-
const parsedOutput = {
|
|
606
|
-
...output,
|
|
607
|
-
body: await parseErrorBody(output.body, context),
|
|
608
|
-
};
|
|
609
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
610
|
-
switch (errorCode) {
|
|
611
|
-
case "ValidationException":
|
|
612
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
613
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
614
|
-
default:
|
|
615
|
-
const parsedBody = parsedOutput.body;
|
|
616
|
-
return throwDefaultError({
|
|
617
|
-
output,
|
|
618
|
-
parsedBody,
|
|
619
|
-
errorCode,
|
|
620
|
-
});
|
|
621
|
-
}
|
|
622
|
-
};
|
|
623
363
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
624
364
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
625
|
-
return
|
|
365
|
+
return de_CommandError(output, context);
|
|
626
366
|
}
|
|
627
367
|
const contents = map({
|
|
628
368
|
$metadata: deserializeMetadata(output),
|
|
@@ -630,37 +370,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
630
370
|
await collectBody(output.body, context);
|
|
631
371
|
return contents;
|
|
632
372
|
};
|
|
633
|
-
const de_UntagResourceCommandError = 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 "ConcurrentModificationException":
|
|
641
|
-
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
642
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
643
|
-
case "LimitExceededException":
|
|
644
|
-
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
645
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
646
|
-
case "ResourceNotFoundException":
|
|
647
|
-
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
648
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
649
|
-
case "ValidationException":
|
|
650
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
651
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
652
|
-
default:
|
|
653
|
-
const parsedBody = parsedOutput.body;
|
|
654
|
-
return throwDefaultError({
|
|
655
|
-
output,
|
|
656
|
-
parsedBody,
|
|
657
|
-
errorCode,
|
|
658
|
-
});
|
|
659
|
-
}
|
|
660
|
-
};
|
|
661
373
|
export const de_UpdateNotificationRuleCommand = async (output, context) => {
|
|
662
374
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
663
|
-
return
|
|
375
|
+
return de_CommandError(output, context);
|
|
664
376
|
}
|
|
665
377
|
const contents = map({
|
|
666
378
|
$metadata: deserializeMetadata(output),
|
|
@@ -668,22 +380,37 @@ export const de_UpdateNotificationRuleCommand = async (output, context) => {
|
|
|
668
380
|
await collectBody(output.body, context);
|
|
669
381
|
return contents;
|
|
670
382
|
};
|
|
671
|
-
const
|
|
383
|
+
const de_CommandError = async (output, context) => {
|
|
672
384
|
const parsedOutput = {
|
|
673
385
|
...output,
|
|
674
386
|
body: await parseErrorBody(output.body, context),
|
|
675
387
|
};
|
|
676
388
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
677
389
|
switch (errorCode) {
|
|
390
|
+
case "AccessDeniedException":
|
|
391
|
+
case "com.amazonaws.codestarnotifications#AccessDeniedException":
|
|
392
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
393
|
+
case "ConcurrentModificationException":
|
|
394
|
+
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
395
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
678
396
|
case "ConfigurationException":
|
|
679
397
|
case "com.amazonaws.codestarnotifications#ConfigurationException":
|
|
680
398
|
throw await de_ConfigurationExceptionRes(parsedOutput, context);
|
|
681
|
-
case "
|
|
682
|
-
case "com.amazonaws.codestarnotifications#
|
|
683
|
-
throw await
|
|
399
|
+
case "LimitExceededException":
|
|
400
|
+
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
401
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
402
|
+
case "ResourceAlreadyExistsException":
|
|
403
|
+
case "com.amazonaws.codestarnotifications#ResourceAlreadyExistsException":
|
|
404
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
684
405
|
case "ValidationException":
|
|
685
406
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
686
407
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
408
|
+
case "ResourceNotFoundException":
|
|
409
|
+
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
410
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
411
|
+
case "InvalidNextTokenException":
|
|
412
|
+
case "com.amazonaws.codestarnotifications#InvalidNextTokenException":
|
|
413
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
687
414
|
default:
|
|
688
415
|
const parsedBody = parsedOutput.body;
|
|
689
416
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-codestar-notifications",
|
|
3
3
|
"description": "AWS SDK for JavaScript Codestar Notifications 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-codestar-notifications",
|
|
@@ -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",
|