@aws-sdk/client-secrets-manager 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 +49 -704
- package/dist-es/protocols/Aws_json1_1.js +67 -722
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -600,7 +600,7 @@ var se_ValidateResourcePolicyCommand = /* @__PURE__ */ __name(async (input, cont
|
|
|
600
600
|
}, "se_ValidateResourcePolicyCommand");
|
|
601
601
|
var de_BatchGetSecretValueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
602
602
|
if (output.statusCode >= 300) {
|
|
603
|
-
return
|
|
603
|
+
return de_CommandError(output, context);
|
|
604
604
|
}
|
|
605
605
|
const data = await parseBody(output.body, context);
|
|
606
606
|
let contents = {};
|
|
@@ -611,43 +611,9 @@ var de_BatchGetSecretValueCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
611
611
|
};
|
|
612
612
|
return response;
|
|
613
613
|
}, "de_BatchGetSecretValueCommand");
|
|
614
|
-
var de_BatchGetSecretValueCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
615
|
-
const parsedOutput = {
|
|
616
|
-
...output,
|
|
617
|
-
body: await parseErrorBody(output.body, context)
|
|
618
|
-
};
|
|
619
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
620
|
-
switch (errorCode) {
|
|
621
|
-
case "DecryptionFailure":
|
|
622
|
-
case "com.amazonaws.secretsmanager#DecryptionFailure":
|
|
623
|
-
throw await de_DecryptionFailureRes(parsedOutput, context);
|
|
624
|
-
case "InternalServiceError":
|
|
625
|
-
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
626
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
627
|
-
case "InvalidNextTokenException":
|
|
628
|
-
case "com.amazonaws.secretsmanager#InvalidNextTokenException":
|
|
629
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
630
|
-
case "InvalidParameterException":
|
|
631
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
632
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
633
|
-
case "InvalidRequestException":
|
|
634
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
635
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
636
|
-
case "ResourceNotFoundException":
|
|
637
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
638
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
639
|
-
default:
|
|
640
|
-
const parsedBody = parsedOutput.body;
|
|
641
|
-
return throwDefaultError({
|
|
642
|
-
output,
|
|
643
|
-
parsedBody,
|
|
644
|
-
errorCode
|
|
645
|
-
});
|
|
646
|
-
}
|
|
647
|
-
}, "de_BatchGetSecretValueCommandError");
|
|
648
614
|
var de_CancelRotateSecretCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
649
615
|
if (output.statusCode >= 300) {
|
|
650
|
-
return
|
|
616
|
+
return de_CommandError(output, context);
|
|
651
617
|
}
|
|
652
618
|
const data = await parseBody(output.body, context);
|
|
653
619
|
let contents = {};
|
|
@@ -658,37 +624,9 @@ var de_CancelRotateSecretCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
658
624
|
};
|
|
659
625
|
return response;
|
|
660
626
|
}, "de_CancelRotateSecretCommand");
|
|
661
|
-
var de_CancelRotateSecretCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
662
|
-
const parsedOutput = {
|
|
663
|
-
...output,
|
|
664
|
-
body: await parseErrorBody(output.body, context)
|
|
665
|
-
};
|
|
666
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
667
|
-
switch (errorCode) {
|
|
668
|
-
case "InternalServiceError":
|
|
669
|
-
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
670
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
671
|
-
case "InvalidParameterException":
|
|
672
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
673
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
674
|
-
case "InvalidRequestException":
|
|
675
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
676
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
677
|
-
case "ResourceNotFoundException":
|
|
678
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
679
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
680
|
-
default:
|
|
681
|
-
const parsedBody = parsedOutput.body;
|
|
682
|
-
return throwDefaultError({
|
|
683
|
-
output,
|
|
684
|
-
parsedBody,
|
|
685
|
-
errorCode
|
|
686
|
-
});
|
|
687
|
-
}
|
|
688
|
-
}, "de_CancelRotateSecretCommandError");
|
|
689
627
|
var de_CreateSecretCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
690
628
|
if (output.statusCode >= 300) {
|
|
691
|
-
return
|
|
629
|
+
return de_CommandError(output, context);
|
|
692
630
|
}
|
|
693
631
|
const data = await parseBody(output.body, context);
|
|
694
632
|
let contents = {};
|
|
@@ -699,55 +637,9 @@ var de_CreateSecretCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
699
637
|
};
|
|
700
638
|
return response;
|
|
701
639
|
}, "de_CreateSecretCommand");
|
|
702
|
-
var de_CreateSecretCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
703
|
-
const parsedOutput = {
|
|
704
|
-
...output,
|
|
705
|
-
body: await parseErrorBody(output.body, context)
|
|
706
|
-
};
|
|
707
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
708
|
-
switch (errorCode) {
|
|
709
|
-
case "DecryptionFailure":
|
|
710
|
-
case "com.amazonaws.secretsmanager#DecryptionFailure":
|
|
711
|
-
throw await de_DecryptionFailureRes(parsedOutput, context);
|
|
712
|
-
case "EncryptionFailure":
|
|
713
|
-
case "com.amazonaws.secretsmanager#EncryptionFailure":
|
|
714
|
-
throw await de_EncryptionFailureRes(parsedOutput, context);
|
|
715
|
-
case "InternalServiceError":
|
|
716
|
-
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
717
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
718
|
-
case "InvalidParameterException":
|
|
719
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
720
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
721
|
-
case "InvalidRequestException":
|
|
722
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
723
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
724
|
-
case "LimitExceededException":
|
|
725
|
-
case "com.amazonaws.secretsmanager#LimitExceededException":
|
|
726
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
727
|
-
case "MalformedPolicyDocumentException":
|
|
728
|
-
case "com.amazonaws.secretsmanager#MalformedPolicyDocumentException":
|
|
729
|
-
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
730
|
-
case "PreconditionNotMetException":
|
|
731
|
-
case "com.amazonaws.secretsmanager#PreconditionNotMetException":
|
|
732
|
-
throw await de_PreconditionNotMetExceptionRes(parsedOutput, context);
|
|
733
|
-
case "ResourceExistsException":
|
|
734
|
-
case "com.amazonaws.secretsmanager#ResourceExistsException":
|
|
735
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
736
|
-
case "ResourceNotFoundException":
|
|
737
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
738
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
739
|
-
default:
|
|
740
|
-
const parsedBody = parsedOutput.body;
|
|
741
|
-
return throwDefaultError({
|
|
742
|
-
output,
|
|
743
|
-
parsedBody,
|
|
744
|
-
errorCode
|
|
745
|
-
});
|
|
746
|
-
}
|
|
747
|
-
}, "de_CreateSecretCommandError");
|
|
748
640
|
var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
749
641
|
if (output.statusCode >= 300) {
|
|
750
|
-
return
|
|
642
|
+
return de_CommandError(output, context);
|
|
751
643
|
}
|
|
752
644
|
const data = await parseBody(output.body, context);
|
|
753
645
|
let contents = {};
|
|
@@ -758,37 +650,9 @@ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
758
650
|
};
|
|
759
651
|
return response;
|
|
760
652
|
}, "de_DeleteResourcePolicyCommand");
|
|
761
|
-
var de_DeleteResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
762
|
-
const parsedOutput = {
|
|
763
|
-
...output,
|
|
764
|
-
body: await parseErrorBody(output.body, context)
|
|
765
|
-
};
|
|
766
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
767
|
-
switch (errorCode) {
|
|
768
|
-
case "InternalServiceError":
|
|
769
|
-
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
770
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
771
|
-
case "InvalidParameterException":
|
|
772
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
773
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
774
|
-
case "InvalidRequestException":
|
|
775
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
776
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
777
|
-
case "ResourceNotFoundException":
|
|
778
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
779
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
780
|
-
default:
|
|
781
|
-
const parsedBody = parsedOutput.body;
|
|
782
|
-
return throwDefaultError({
|
|
783
|
-
output,
|
|
784
|
-
parsedBody,
|
|
785
|
-
errorCode
|
|
786
|
-
});
|
|
787
|
-
}
|
|
788
|
-
}, "de_DeleteResourcePolicyCommandError");
|
|
789
653
|
var de_DeleteSecretCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
790
654
|
if (output.statusCode >= 300) {
|
|
791
|
-
return
|
|
655
|
+
return de_CommandError(output, context);
|
|
792
656
|
}
|
|
793
657
|
const data = await parseBody(output.body, context);
|
|
794
658
|
let contents = {};
|
|
@@ -799,37 +663,9 @@ var de_DeleteSecretCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
799
663
|
};
|
|
800
664
|
return response;
|
|
801
665
|
}, "de_DeleteSecretCommand");
|
|
802
|
-
var de_DeleteSecretCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
803
|
-
const parsedOutput = {
|
|
804
|
-
...output,
|
|
805
|
-
body: await parseErrorBody(output.body, context)
|
|
806
|
-
};
|
|
807
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
808
|
-
switch (errorCode) {
|
|
809
|
-
case "InternalServiceError":
|
|
810
|
-
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
811
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
812
|
-
case "InvalidParameterException":
|
|
813
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
814
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
815
|
-
case "InvalidRequestException":
|
|
816
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
817
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
818
|
-
case "ResourceNotFoundException":
|
|
819
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
820
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
821
|
-
default:
|
|
822
|
-
const parsedBody = parsedOutput.body;
|
|
823
|
-
return throwDefaultError({
|
|
824
|
-
output,
|
|
825
|
-
parsedBody,
|
|
826
|
-
errorCode
|
|
827
|
-
});
|
|
828
|
-
}
|
|
829
|
-
}, "de_DeleteSecretCommandError");
|
|
830
666
|
var de_DescribeSecretCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
831
667
|
if (output.statusCode >= 300) {
|
|
832
|
-
return
|
|
668
|
+
return de_CommandError(output, context);
|
|
833
669
|
}
|
|
834
670
|
const data = await parseBody(output.body, context);
|
|
835
671
|
let contents = {};
|
|
@@ -840,34 +676,9 @@ var de_DescribeSecretCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
840
676
|
};
|
|
841
677
|
return response;
|
|
842
678
|
}, "de_DescribeSecretCommand");
|
|
843
|
-
var de_DescribeSecretCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
844
|
-
const parsedOutput = {
|
|
845
|
-
...output,
|
|
846
|
-
body: await parseErrorBody(output.body, context)
|
|
847
|
-
};
|
|
848
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
849
|
-
switch (errorCode) {
|
|
850
|
-
case "InternalServiceError":
|
|
851
|
-
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
852
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
853
|
-
case "InvalidParameterException":
|
|
854
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
855
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
856
|
-
case "ResourceNotFoundException":
|
|
857
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
858
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
859
|
-
default:
|
|
860
|
-
const parsedBody = parsedOutput.body;
|
|
861
|
-
return throwDefaultError({
|
|
862
|
-
output,
|
|
863
|
-
parsedBody,
|
|
864
|
-
errorCode
|
|
865
|
-
});
|
|
866
|
-
}
|
|
867
|
-
}, "de_DescribeSecretCommandError");
|
|
868
679
|
var de_GetRandomPasswordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
869
680
|
if (output.statusCode >= 300) {
|
|
870
|
-
return
|
|
681
|
+
return de_CommandError(output, context);
|
|
871
682
|
}
|
|
872
683
|
const data = await parseBody(output.body, context);
|
|
873
684
|
let contents = {};
|
|
@@ -878,34 +689,9 @@ var de_GetRandomPasswordCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
878
689
|
};
|
|
879
690
|
return response;
|
|
880
691
|
}, "de_GetRandomPasswordCommand");
|
|
881
|
-
var de_GetRandomPasswordCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
882
|
-
const parsedOutput = {
|
|
883
|
-
...output,
|
|
884
|
-
body: await parseErrorBody(output.body, context)
|
|
885
|
-
};
|
|
886
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
887
|
-
switch (errorCode) {
|
|
888
|
-
case "InternalServiceError":
|
|
889
|
-
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
890
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
891
|
-
case "InvalidParameterException":
|
|
892
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
893
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
894
|
-
case "InvalidRequestException":
|
|
895
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
896
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
897
|
-
default:
|
|
898
|
-
const parsedBody = parsedOutput.body;
|
|
899
|
-
return throwDefaultError({
|
|
900
|
-
output,
|
|
901
|
-
parsedBody,
|
|
902
|
-
errorCode
|
|
903
|
-
});
|
|
904
|
-
}
|
|
905
|
-
}, "de_GetRandomPasswordCommandError");
|
|
906
692
|
var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
907
693
|
if (output.statusCode >= 300) {
|
|
908
|
-
return
|
|
694
|
+
return de_CommandError(output, context);
|
|
909
695
|
}
|
|
910
696
|
const data = await parseBody(output.body, context);
|
|
911
697
|
let contents = {};
|
|
@@ -916,37 +702,9 @@ var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
916
702
|
};
|
|
917
703
|
return response;
|
|
918
704
|
}, "de_GetResourcePolicyCommand");
|
|
919
|
-
var de_GetResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
920
|
-
const parsedOutput = {
|
|
921
|
-
...output,
|
|
922
|
-
body: await parseErrorBody(output.body, context)
|
|
923
|
-
};
|
|
924
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
925
|
-
switch (errorCode) {
|
|
926
|
-
case "InternalServiceError":
|
|
927
|
-
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
928
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
929
|
-
case "InvalidParameterException":
|
|
930
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
931
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
932
|
-
case "InvalidRequestException":
|
|
933
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
934
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
935
|
-
case "ResourceNotFoundException":
|
|
936
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
937
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
938
|
-
default:
|
|
939
|
-
const parsedBody = parsedOutput.body;
|
|
940
|
-
return throwDefaultError({
|
|
941
|
-
output,
|
|
942
|
-
parsedBody,
|
|
943
|
-
errorCode
|
|
944
|
-
});
|
|
945
|
-
}
|
|
946
|
-
}, "de_GetResourcePolicyCommandError");
|
|
947
705
|
var de_GetSecretValueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
948
706
|
if (output.statusCode >= 300) {
|
|
949
|
-
return
|
|
707
|
+
return de_CommandError(output, context);
|
|
950
708
|
}
|
|
951
709
|
const data = await parseBody(output.body, context);
|
|
952
710
|
let contents = {};
|
|
@@ -957,40 +715,9 @@ var de_GetSecretValueCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
957
715
|
};
|
|
958
716
|
return response;
|
|
959
717
|
}, "de_GetSecretValueCommand");
|
|
960
|
-
var de_GetSecretValueCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
961
|
-
const parsedOutput = {
|
|
962
|
-
...output,
|
|
963
|
-
body: await parseErrorBody(output.body, context)
|
|
964
|
-
};
|
|
965
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
966
|
-
switch (errorCode) {
|
|
967
|
-
case "DecryptionFailure":
|
|
968
|
-
case "com.amazonaws.secretsmanager#DecryptionFailure":
|
|
969
|
-
throw await de_DecryptionFailureRes(parsedOutput, context);
|
|
970
|
-
case "InternalServiceError":
|
|
971
|
-
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
972
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
973
|
-
case "InvalidParameterException":
|
|
974
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
975
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
976
|
-
case "InvalidRequestException":
|
|
977
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
978
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
979
|
-
case "ResourceNotFoundException":
|
|
980
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
981
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
982
|
-
default:
|
|
983
|
-
const parsedBody = parsedOutput.body;
|
|
984
|
-
return throwDefaultError({
|
|
985
|
-
output,
|
|
986
|
-
parsedBody,
|
|
987
|
-
errorCode
|
|
988
|
-
});
|
|
989
|
-
}
|
|
990
|
-
}, "de_GetSecretValueCommandError");
|
|
991
718
|
var de_ListSecretsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
992
719
|
if (output.statusCode >= 300) {
|
|
993
|
-
return
|
|
720
|
+
return de_CommandError(output, context);
|
|
994
721
|
}
|
|
995
722
|
const data = await parseBody(output.body, context);
|
|
996
723
|
let contents = {};
|
|
@@ -1001,37 +728,9 @@ var de_ListSecretsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1001
728
|
};
|
|
1002
729
|
return response;
|
|
1003
730
|
}, "de_ListSecretsCommand");
|
|
1004
|
-
var de_ListSecretsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1005
|
-
const parsedOutput = {
|
|
1006
|
-
...output,
|
|
1007
|
-
body: await parseErrorBody(output.body, context)
|
|
1008
|
-
};
|
|
1009
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1010
|
-
switch (errorCode) {
|
|
1011
|
-
case "InternalServiceError":
|
|
1012
|
-
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
1013
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1014
|
-
case "InvalidNextTokenException":
|
|
1015
|
-
case "com.amazonaws.secretsmanager#InvalidNextTokenException":
|
|
1016
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "InvalidParameterException":
|
|
1018
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
1019
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "InvalidRequestException":
|
|
1021
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
1022
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1023
|
-
default:
|
|
1024
|
-
const parsedBody = parsedOutput.body;
|
|
1025
|
-
return throwDefaultError({
|
|
1026
|
-
output,
|
|
1027
|
-
parsedBody,
|
|
1028
|
-
errorCode
|
|
1029
|
-
});
|
|
1030
|
-
}
|
|
1031
|
-
}, "de_ListSecretsCommandError");
|
|
1032
731
|
var de_ListSecretVersionIdsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1033
732
|
if (output.statusCode >= 300) {
|
|
1034
|
-
return
|
|
733
|
+
return de_CommandError(output, context);
|
|
1035
734
|
}
|
|
1036
735
|
const data = await parseBody(output.body, context);
|
|
1037
736
|
let contents = {};
|
|
@@ -1042,37 +741,9 @@ var de_ListSecretVersionIdsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1042
741
|
};
|
|
1043
742
|
return response;
|
|
1044
743
|
}, "de_ListSecretVersionIdsCommand");
|
|
1045
|
-
var de_ListSecretVersionIdsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1046
|
-
const parsedOutput = {
|
|
1047
|
-
...output,
|
|
1048
|
-
body: await parseErrorBody(output.body, context)
|
|
1049
|
-
};
|
|
1050
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1051
|
-
switch (errorCode) {
|
|
1052
|
-
case "InternalServiceError":
|
|
1053
|
-
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
1054
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1055
|
-
case "InvalidNextTokenException":
|
|
1056
|
-
case "com.amazonaws.secretsmanager#InvalidNextTokenException":
|
|
1057
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1058
|
-
case "InvalidParameterException":
|
|
1059
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
1060
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1061
|
-
case "ResourceNotFoundException":
|
|
1062
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
1063
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1064
|
-
default:
|
|
1065
|
-
const parsedBody = parsedOutput.body;
|
|
1066
|
-
return throwDefaultError({
|
|
1067
|
-
output,
|
|
1068
|
-
parsedBody,
|
|
1069
|
-
errorCode
|
|
1070
|
-
});
|
|
1071
|
-
}
|
|
1072
|
-
}, "de_ListSecretVersionIdsCommandError");
|
|
1073
744
|
var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1074
745
|
if (output.statusCode >= 300) {
|
|
1075
|
-
return
|
|
746
|
+
return de_CommandError(output, context);
|
|
1076
747
|
}
|
|
1077
748
|
const data = await parseBody(output.body, context);
|
|
1078
749
|
let contents = {};
|
|
@@ -1083,43 +754,9 @@ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1083
754
|
};
|
|
1084
755
|
return response;
|
|
1085
756
|
}, "de_PutResourcePolicyCommand");
|
|
1086
|
-
var de_PutResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1087
|
-
const parsedOutput = {
|
|
1088
|
-
...output,
|
|
1089
|
-
body: await parseErrorBody(output.body, context)
|
|
1090
|
-
};
|
|
1091
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1092
|
-
switch (errorCode) {
|
|
1093
|
-
case "InternalServiceError":
|
|
1094
|
-
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
1095
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1096
|
-
case "InvalidParameterException":
|
|
1097
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
1098
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1099
|
-
case "InvalidRequestException":
|
|
1100
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
1101
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1102
|
-
case "MalformedPolicyDocumentException":
|
|
1103
|
-
case "com.amazonaws.secretsmanager#MalformedPolicyDocumentException":
|
|
1104
|
-
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
1105
|
-
case "PublicPolicyException":
|
|
1106
|
-
case "com.amazonaws.secretsmanager#PublicPolicyException":
|
|
1107
|
-
throw await de_PublicPolicyExceptionRes(parsedOutput, context);
|
|
1108
|
-
case "ResourceNotFoundException":
|
|
1109
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
1110
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1111
|
-
default:
|
|
1112
|
-
const parsedBody = parsedOutput.body;
|
|
1113
|
-
return throwDefaultError({
|
|
1114
|
-
output,
|
|
1115
|
-
parsedBody,
|
|
1116
|
-
errorCode
|
|
1117
|
-
});
|
|
1118
|
-
}
|
|
1119
|
-
}, "de_PutResourcePolicyCommandError");
|
|
1120
757
|
var de_PutSecretValueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1121
758
|
if (output.statusCode >= 300) {
|
|
1122
|
-
return
|
|
759
|
+
return de_CommandError(output, context);
|
|
1123
760
|
}
|
|
1124
761
|
const data = await parseBody(output.body, context);
|
|
1125
762
|
let contents = {};
|
|
@@ -1130,49 +767,9 @@ var de_PutSecretValueCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1130
767
|
};
|
|
1131
768
|
return response;
|
|
1132
769
|
}, "de_PutSecretValueCommand");
|
|
1133
|
-
var de_PutSecretValueCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1134
|
-
const parsedOutput = {
|
|
1135
|
-
...output,
|
|
1136
|
-
body: await parseErrorBody(output.body, context)
|
|
1137
|
-
};
|
|
1138
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1139
|
-
switch (errorCode) {
|
|
1140
|
-
case "DecryptionFailure":
|
|
1141
|
-
case "com.amazonaws.secretsmanager#DecryptionFailure":
|
|
1142
|
-
throw await de_DecryptionFailureRes(parsedOutput, context);
|
|
1143
|
-
case "EncryptionFailure":
|
|
1144
|
-
case "com.amazonaws.secretsmanager#EncryptionFailure":
|
|
1145
|
-
throw await de_EncryptionFailureRes(parsedOutput, context);
|
|
1146
|
-
case "InternalServiceError":
|
|
1147
|
-
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
1148
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1149
|
-
case "InvalidParameterException":
|
|
1150
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
1151
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1152
|
-
case "InvalidRequestException":
|
|
1153
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
1154
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1155
|
-
case "LimitExceededException":
|
|
1156
|
-
case "com.amazonaws.secretsmanager#LimitExceededException":
|
|
1157
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1158
|
-
case "ResourceExistsException":
|
|
1159
|
-
case "com.amazonaws.secretsmanager#ResourceExistsException":
|
|
1160
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
1161
|
-
case "ResourceNotFoundException":
|
|
1162
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
1163
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1164
|
-
default:
|
|
1165
|
-
const parsedBody = parsedOutput.body;
|
|
1166
|
-
return throwDefaultError({
|
|
1167
|
-
output,
|
|
1168
|
-
parsedBody,
|
|
1169
|
-
errorCode
|
|
1170
|
-
});
|
|
1171
|
-
}
|
|
1172
|
-
}, "de_PutSecretValueCommandError");
|
|
1173
770
|
var de_RemoveRegionsFromReplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1174
771
|
if (output.statusCode >= 300) {
|
|
1175
|
-
return
|
|
772
|
+
return de_CommandError(output, context);
|
|
1176
773
|
}
|
|
1177
774
|
const data = await parseBody(output.body, context);
|
|
1178
775
|
let contents = {};
|
|
@@ -1183,37 +780,9 @@ var de_RemoveRegionsFromReplicationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1183
780
|
};
|
|
1184
781
|
return response;
|
|
1185
782
|
}, "de_RemoveRegionsFromReplicationCommand");
|
|
1186
|
-
var de_RemoveRegionsFromReplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1187
|
-
const parsedOutput = {
|
|
1188
|
-
...output,
|
|
1189
|
-
body: await parseErrorBody(output.body, context)
|
|
1190
|
-
};
|
|
1191
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1192
|
-
switch (errorCode) {
|
|
1193
|
-
case "InternalServiceError":
|
|
1194
|
-
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
1195
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1196
|
-
case "InvalidParameterException":
|
|
1197
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
1198
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1199
|
-
case "InvalidRequestException":
|
|
1200
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
1201
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1202
|
-
case "ResourceNotFoundException":
|
|
1203
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
1204
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1205
|
-
default:
|
|
1206
|
-
const parsedBody = parsedOutput.body;
|
|
1207
|
-
return throwDefaultError({
|
|
1208
|
-
output,
|
|
1209
|
-
parsedBody,
|
|
1210
|
-
errorCode
|
|
1211
|
-
});
|
|
1212
|
-
}
|
|
1213
|
-
}, "de_RemoveRegionsFromReplicationCommandError");
|
|
1214
783
|
var de_ReplicateSecretToRegionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1215
784
|
if (output.statusCode >= 300) {
|
|
1216
|
-
return
|
|
785
|
+
return de_CommandError(output, context);
|
|
1217
786
|
}
|
|
1218
787
|
const data = await parseBody(output.body, context);
|
|
1219
788
|
let contents = {};
|
|
@@ -1224,37 +793,9 @@ var de_ReplicateSecretToRegionsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1224
793
|
};
|
|
1225
794
|
return response;
|
|
1226
795
|
}, "de_ReplicateSecretToRegionsCommand");
|
|
1227
|
-
var de_ReplicateSecretToRegionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1228
|
-
const parsedOutput = {
|
|
1229
|
-
...output,
|
|
1230
|
-
body: await parseErrorBody(output.body, context)
|
|
1231
|
-
};
|
|
1232
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1233
|
-
switch (errorCode) {
|
|
1234
|
-
case "InternalServiceError":
|
|
1235
|
-
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
1236
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1237
|
-
case "InvalidParameterException":
|
|
1238
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
1239
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1240
|
-
case "InvalidRequestException":
|
|
1241
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
1242
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1243
|
-
case "ResourceNotFoundException":
|
|
1244
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
1245
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1246
|
-
default:
|
|
1247
|
-
const parsedBody = parsedOutput.body;
|
|
1248
|
-
return throwDefaultError({
|
|
1249
|
-
output,
|
|
1250
|
-
parsedBody,
|
|
1251
|
-
errorCode
|
|
1252
|
-
});
|
|
1253
|
-
}
|
|
1254
|
-
}, "de_ReplicateSecretToRegionsCommandError");
|
|
1255
796
|
var de_RestoreSecretCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1256
797
|
if (output.statusCode >= 300) {
|
|
1257
|
-
return
|
|
798
|
+
return de_CommandError(output, context);
|
|
1258
799
|
}
|
|
1259
800
|
const data = await parseBody(output.body, context);
|
|
1260
801
|
let contents = {};
|
|
@@ -1265,37 +806,9 @@ var de_RestoreSecretCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1265
806
|
};
|
|
1266
807
|
return response;
|
|
1267
808
|
}, "de_RestoreSecretCommand");
|
|
1268
|
-
var de_RestoreSecretCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1269
|
-
const parsedOutput = {
|
|
1270
|
-
...output,
|
|
1271
|
-
body: await parseErrorBody(output.body, context)
|
|
1272
|
-
};
|
|
1273
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1274
|
-
switch (errorCode) {
|
|
1275
|
-
case "InternalServiceError":
|
|
1276
|
-
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
1277
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1278
|
-
case "InvalidParameterException":
|
|
1279
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
1280
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1281
|
-
case "InvalidRequestException":
|
|
1282
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
1283
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1284
|
-
case "ResourceNotFoundException":
|
|
1285
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
1286
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1287
|
-
default:
|
|
1288
|
-
const parsedBody = parsedOutput.body;
|
|
1289
|
-
return throwDefaultError({
|
|
1290
|
-
output,
|
|
1291
|
-
parsedBody,
|
|
1292
|
-
errorCode
|
|
1293
|
-
});
|
|
1294
|
-
}
|
|
1295
|
-
}, "de_RestoreSecretCommandError");
|
|
1296
809
|
var de_RotateSecretCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1297
810
|
if (output.statusCode >= 300) {
|
|
1298
|
-
return
|
|
811
|
+
return de_CommandError(output, context);
|
|
1299
812
|
}
|
|
1300
813
|
const data = await parseBody(output.body, context);
|
|
1301
814
|
let contents = {};
|
|
@@ -1306,37 +819,9 @@ var de_RotateSecretCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1306
819
|
};
|
|
1307
820
|
return response;
|
|
1308
821
|
}, "de_RotateSecretCommand");
|
|
1309
|
-
var de_RotateSecretCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1310
|
-
const parsedOutput = {
|
|
1311
|
-
...output,
|
|
1312
|
-
body: await parseErrorBody(output.body, context)
|
|
1313
|
-
};
|
|
1314
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1315
|
-
switch (errorCode) {
|
|
1316
|
-
case "InternalServiceError":
|
|
1317
|
-
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
1318
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1319
|
-
case "InvalidParameterException":
|
|
1320
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
1321
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1322
|
-
case "InvalidRequestException":
|
|
1323
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
1324
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1325
|
-
case "ResourceNotFoundException":
|
|
1326
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
1327
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1328
|
-
default:
|
|
1329
|
-
const parsedBody = parsedOutput.body;
|
|
1330
|
-
return throwDefaultError({
|
|
1331
|
-
output,
|
|
1332
|
-
parsedBody,
|
|
1333
|
-
errorCode
|
|
1334
|
-
});
|
|
1335
|
-
}
|
|
1336
|
-
}, "de_RotateSecretCommandError");
|
|
1337
822
|
var de_StopReplicationToReplicaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1338
823
|
if (output.statusCode >= 300) {
|
|
1339
|
-
return
|
|
824
|
+
return de_CommandError(output, context);
|
|
1340
825
|
}
|
|
1341
826
|
const data = await parseBody(output.body, context);
|
|
1342
827
|
let contents = {};
|
|
@@ -1347,37 +832,9 @@ var de_StopReplicationToReplicaCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1347
832
|
};
|
|
1348
833
|
return response;
|
|
1349
834
|
}, "de_StopReplicationToReplicaCommand");
|
|
1350
|
-
var de_StopReplicationToReplicaCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1351
|
-
const parsedOutput = {
|
|
1352
|
-
...output,
|
|
1353
|
-
body: await parseErrorBody(output.body, context)
|
|
1354
|
-
};
|
|
1355
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1356
|
-
switch (errorCode) {
|
|
1357
|
-
case "InternalServiceError":
|
|
1358
|
-
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
1359
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1360
|
-
case "InvalidParameterException":
|
|
1361
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
1362
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1363
|
-
case "InvalidRequestException":
|
|
1364
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
1365
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1366
|
-
case "ResourceNotFoundException":
|
|
1367
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
1368
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1369
|
-
default:
|
|
1370
|
-
const parsedBody = parsedOutput.body;
|
|
1371
|
-
return throwDefaultError({
|
|
1372
|
-
output,
|
|
1373
|
-
parsedBody,
|
|
1374
|
-
errorCode
|
|
1375
|
-
});
|
|
1376
|
-
}
|
|
1377
|
-
}, "de_StopReplicationToReplicaCommandError");
|
|
1378
835
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1379
836
|
if (output.statusCode >= 300) {
|
|
1380
|
-
return
|
|
837
|
+
return de_CommandError(output, context);
|
|
1381
838
|
}
|
|
1382
839
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1383
840
|
const response = {
|
|
@@ -1385,37 +842,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1385
842
|
};
|
|
1386
843
|
return response;
|
|
1387
844
|
}, "de_TagResourceCommand");
|
|
1388
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1389
|
-
const parsedOutput = {
|
|
1390
|
-
...output,
|
|
1391
|
-
body: await parseErrorBody(output.body, context)
|
|
1392
|
-
};
|
|
1393
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1394
|
-
switch (errorCode) {
|
|
1395
|
-
case "InternalServiceError":
|
|
1396
|
-
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
1397
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1398
|
-
case "InvalidParameterException":
|
|
1399
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
1400
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1401
|
-
case "InvalidRequestException":
|
|
1402
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
1403
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1404
|
-
case "ResourceNotFoundException":
|
|
1405
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
1406
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1407
|
-
default:
|
|
1408
|
-
const parsedBody = parsedOutput.body;
|
|
1409
|
-
return throwDefaultError({
|
|
1410
|
-
output,
|
|
1411
|
-
parsedBody,
|
|
1412
|
-
errorCode
|
|
1413
|
-
});
|
|
1414
|
-
}
|
|
1415
|
-
}, "de_TagResourceCommandError");
|
|
1416
845
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1417
846
|
if (output.statusCode >= 300) {
|
|
1418
|
-
return
|
|
847
|
+
return de_CommandError(output, context);
|
|
1419
848
|
}
|
|
1420
849
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1421
850
|
const response = {
|
|
@@ -1423,37 +852,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1423
852
|
};
|
|
1424
853
|
return response;
|
|
1425
854
|
}, "de_UntagResourceCommand");
|
|
1426
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1427
|
-
const parsedOutput = {
|
|
1428
|
-
...output,
|
|
1429
|
-
body: await parseErrorBody(output.body, context)
|
|
1430
|
-
};
|
|
1431
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1432
|
-
switch (errorCode) {
|
|
1433
|
-
case "InternalServiceError":
|
|
1434
|
-
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
1435
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1436
|
-
case "InvalidParameterException":
|
|
1437
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
1438
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1439
|
-
case "InvalidRequestException":
|
|
1440
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
1441
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1442
|
-
case "ResourceNotFoundException":
|
|
1443
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
1444
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1445
|
-
default:
|
|
1446
|
-
const parsedBody = parsedOutput.body;
|
|
1447
|
-
return throwDefaultError({
|
|
1448
|
-
output,
|
|
1449
|
-
parsedBody,
|
|
1450
|
-
errorCode
|
|
1451
|
-
});
|
|
1452
|
-
}
|
|
1453
|
-
}, "de_UntagResourceCommandError");
|
|
1454
855
|
var de_UpdateSecretCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1455
856
|
if (output.statusCode >= 300) {
|
|
1456
|
-
return
|
|
857
|
+
return de_CommandError(output, context);
|
|
1457
858
|
}
|
|
1458
859
|
const data = await parseBody(output.body, context);
|
|
1459
860
|
let contents = {};
|
|
@@ -1464,55 +865,9 @@ var de_UpdateSecretCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1464
865
|
};
|
|
1465
866
|
return response;
|
|
1466
867
|
}, "de_UpdateSecretCommand");
|
|
1467
|
-
var de_UpdateSecretCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1468
|
-
const parsedOutput = {
|
|
1469
|
-
...output,
|
|
1470
|
-
body: await parseErrorBody(output.body, context)
|
|
1471
|
-
};
|
|
1472
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1473
|
-
switch (errorCode) {
|
|
1474
|
-
case "DecryptionFailure":
|
|
1475
|
-
case "com.amazonaws.secretsmanager#DecryptionFailure":
|
|
1476
|
-
throw await de_DecryptionFailureRes(parsedOutput, context);
|
|
1477
|
-
case "EncryptionFailure":
|
|
1478
|
-
case "com.amazonaws.secretsmanager#EncryptionFailure":
|
|
1479
|
-
throw await de_EncryptionFailureRes(parsedOutput, context);
|
|
1480
|
-
case "InternalServiceError":
|
|
1481
|
-
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
1482
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1483
|
-
case "InvalidParameterException":
|
|
1484
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
1485
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1486
|
-
case "InvalidRequestException":
|
|
1487
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
1488
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1489
|
-
case "LimitExceededException":
|
|
1490
|
-
case "com.amazonaws.secretsmanager#LimitExceededException":
|
|
1491
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1492
|
-
case "MalformedPolicyDocumentException":
|
|
1493
|
-
case "com.amazonaws.secretsmanager#MalformedPolicyDocumentException":
|
|
1494
|
-
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
1495
|
-
case "PreconditionNotMetException":
|
|
1496
|
-
case "com.amazonaws.secretsmanager#PreconditionNotMetException":
|
|
1497
|
-
throw await de_PreconditionNotMetExceptionRes(parsedOutput, context);
|
|
1498
|
-
case "ResourceExistsException":
|
|
1499
|
-
case "com.amazonaws.secretsmanager#ResourceExistsException":
|
|
1500
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
1501
|
-
case "ResourceNotFoundException":
|
|
1502
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
1503
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1504
|
-
default:
|
|
1505
|
-
const parsedBody = parsedOutput.body;
|
|
1506
|
-
return throwDefaultError({
|
|
1507
|
-
output,
|
|
1508
|
-
parsedBody,
|
|
1509
|
-
errorCode
|
|
1510
|
-
});
|
|
1511
|
-
}
|
|
1512
|
-
}, "de_UpdateSecretCommandError");
|
|
1513
868
|
var de_UpdateSecretVersionStageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1514
869
|
if (output.statusCode >= 300) {
|
|
1515
|
-
return
|
|
870
|
+
return de_CommandError(output, context);
|
|
1516
871
|
}
|
|
1517
872
|
const data = await parseBody(output.body, context);
|
|
1518
873
|
let contents = {};
|
|
@@ -1523,40 +878,9 @@ var de_UpdateSecretVersionStageCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1523
878
|
};
|
|
1524
879
|
return response;
|
|
1525
880
|
}, "de_UpdateSecretVersionStageCommand");
|
|
1526
|
-
var de_UpdateSecretVersionStageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1527
|
-
const parsedOutput = {
|
|
1528
|
-
...output,
|
|
1529
|
-
body: await parseErrorBody(output.body, context)
|
|
1530
|
-
};
|
|
1531
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1532
|
-
switch (errorCode) {
|
|
1533
|
-
case "InternalServiceError":
|
|
1534
|
-
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
1535
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1536
|
-
case "InvalidParameterException":
|
|
1537
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
1538
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1539
|
-
case "InvalidRequestException":
|
|
1540
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
1541
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1542
|
-
case "LimitExceededException":
|
|
1543
|
-
case "com.amazonaws.secretsmanager#LimitExceededException":
|
|
1544
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1545
|
-
case "ResourceNotFoundException":
|
|
1546
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
1547
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1548
|
-
default:
|
|
1549
|
-
const parsedBody = parsedOutput.body;
|
|
1550
|
-
return throwDefaultError({
|
|
1551
|
-
output,
|
|
1552
|
-
parsedBody,
|
|
1553
|
-
errorCode
|
|
1554
|
-
});
|
|
1555
|
-
}
|
|
1556
|
-
}, "de_UpdateSecretVersionStageCommandError");
|
|
1557
881
|
var de_ValidateResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1558
882
|
if (output.statusCode >= 300) {
|
|
1559
|
-
return
|
|
883
|
+
return de_CommandError(output, context);
|
|
1560
884
|
}
|
|
1561
885
|
const data = await parseBody(output.body, context);
|
|
1562
886
|
let contents = {};
|
|
@@ -1567,28 +891,49 @@ var de_ValidateResourcePolicyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1567
891
|
};
|
|
1568
892
|
return response;
|
|
1569
893
|
}, "de_ValidateResourcePolicyCommand");
|
|
1570
|
-
var
|
|
894
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1571
895
|
const parsedOutput = {
|
|
1572
896
|
...output,
|
|
1573
897
|
body: await parseErrorBody(output.body, context)
|
|
1574
898
|
};
|
|
1575
899
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1576
900
|
switch (errorCode) {
|
|
901
|
+
case "DecryptionFailure":
|
|
902
|
+
case "com.amazonaws.secretsmanager#DecryptionFailure":
|
|
903
|
+
throw await de_DecryptionFailureRes(parsedOutput, context);
|
|
1577
904
|
case "InternalServiceError":
|
|
1578
905
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
1579
906
|
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
907
|
+
case "InvalidNextTokenException":
|
|
908
|
+
case "com.amazonaws.secretsmanager#InvalidNextTokenException":
|
|
909
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1580
910
|
case "InvalidParameterException":
|
|
1581
911
|
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
1582
912
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1583
913
|
case "InvalidRequestException":
|
|
1584
914
|
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
1585
915
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1586
|
-
case "MalformedPolicyDocumentException":
|
|
1587
|
-
case "com.amazonaws.secretsmanager#MalformedPolicyDocumentException":
|
|
1588
|
-
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
1589
916
|
case "ResourceNotFoundException":
|
|
1590
917
|
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
1591
918
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
919
|
+
case "EncryptionFailure":
|
|
920
|
+
case "com.amazonaws.secretsmanager#EncryptionFailure":
|
|
921
|
+
throw await de_EncryptionFailureRes(parsedOutput, context);
|
|
922
|
+
case "LimitExceededException":
|
|
923
|
+
case "com.amazonaws.secretsmanager#LimitExceededException":
|
|
924
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
925
|
+
case "MalformedPolicyDocumentException":
|
|
926
|
+
case "com.amazonaws.secretsmanager#MalformedPolicyDocumentException":
|
|
927
|
+
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
928
|
+
case "PreconditionNotMetException":
|
|
929
|
+
case "com.amazonaws.secretsmanager#PreconditionNotMetException":
|
|
930
|
+
throw await de_PreconditionNotMetExceptionRes(parsedOutput, context);
|
|
931
|
+
case "ResourceExistsException":
|
|
932
|
+
case "com.amazonaws.secretsmanager#ResourceExistsException":
|
|
933
|
+
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
934
|
+
case "PublicPolicyException":
|
|
935
|
+
case "com.amazonaws.secretsmanager#PublicPolicyException":
|
|
936
|
+
throw await de_PublicPolicyExceptionRes(parsedOutput, context);
|
|
1592
937
|
default:
|
|
1593
938
|
const parsedBody = parsedOutput.body;
|
|
1594
939
|
return throwDefaultError({
|
|
@@ -1597,7 +942,7 @@ var de_ValidateResourcePolicyCommandError = /* @__PURE__ */ __name(async (output
|
|
|
1597
942
|
errorCode
|
|
1598
943
|
});
|
|
1599
944
|
}
|
|
1600
|
-
}, "
|
|
945
|
+
}, "de_CommandError");
|
|
1601
946
|
var de_DecryptionFailureRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1602
947
|
const body = parsedOutput.body;
|
|
1603
948
|
const deserialized = (0, import_smithy_client._json)(body);
|