@aws-sdk/client-docdb 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 +235 -1478
- package/dist-es/protocols/Aws_query.js +231 -1474
- package/package.json +3 -3
|
@@ -535,7 +535,7 @@ export const se_StopDBClusterCommand = async (input, context) => {
|
|
|
535
535
|
};
|
|
536
536
|
export const de_AddSourceIdentifierToSubscriptionCommand = async (output, context) => {
|
|
537
537
|
if (output.statusCode >= 300) {
|
|
538
|
-
return
|
|
538
|
+
return de_CommandError(output, context);
|
|
539
539
|
}
|
|
540
540
|
const data = await parseBody(output.body, context);
|
|
541
541
|
let contents = {};
|
|
@@ -546,31 +546,9 @@ export const de_AddSourceIdentifierToSubscriptionCommand = async (output, contex
|
|
|
546
546
|
};
|
|
547
547
|
return response;
|
|
548
548
|
};
|
|
549
|
-
const de_AddSourceIdentifierToSubscriptionCommandError = async (output, context) => {
|
|
550
|
-
const parsedOutput = {
|
|
551
|
-
...output,
|
|
552
|
-
body: await parseErrorBody(output.body, context),
|
|
553
|
-
};
|
|
554
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
555
|
-
switch (errorCode) {
|
|
556
|
-
case "SourceNotFound":
|
|
557
|
-
case "com.amazonaws.docdb#SourceNotFoundFault":
|
|
558
|
-
throw await de_SourceNotFoundFaultRes(parsedOutput, context);
|
|
559
|
-
case "SubscriptionNotFound":
|
|
560
|
-
case "com.amazonaws.docdb#SubscriptionNotFoundFault":
|
|
561
|
-
throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
|
|
562
|
-
default:
|
|
563
|
-
const parsedBody = parsedOutput.body;
|
|
564
|
-
return throwDefaultError({
|
|
565
|
-
output,
|
|
566
|
-
parsedBody: parsedBody.Error,
|
|
567
|
-
errorCode,
|
|
568
|
-
});
|
|
569
|
-
}
|
|
570
|
-
};
|
|
571
549
|
export const de_AddTagsToResourceCommand = async (output, context) => {
|
|
572
550
|
if (output.statusCode >= 300) {
|
|
573
|
-
return
|
|
551
|
+
return de_CommandError(output, context);
|
|
574
552
|
}
|
|
575
553
|
await collectBody(output.body, context);
|
|
576
554
|
const response = {
|
|
@@ -578,34 +556,9 @@ export const de_AddTagsToResourceCommand = async (output, context) => {
|
|
|
578
556
|
};
|
|
579
557
|
return response;
|
|
580
558
|
};
|
|
581
|
-
const de_AddTagsToResourceCommandError = async (output, context) => {
|
|
582
|
-
const parsedOutput = {
|
|
583
|
-
...output,
|
|
584
|
-
body: await parseErrorBody(output.body, context),
|
|
585
|
-
};
|
|
586
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
587
|
-
switch (errorCode) {
|
|
588
|
-
case "DBClusterNotFoundFault":
|
|
589
|
-
case "com.amazonaws.docdb#DBClusterNotFoundFault":
|
|
590
|
-
throw await de_DBClusterNotFoundFaultRes(parsedOutput, context);
|
|
591
|
-
case "DBInstanceNotFound":
|
|
592
|
-
case "com.amazonaws.docdb#DBInstanceNotFoundFault":
|
|
593
|
-
throw await de_DBInstanceNotFoundFaultRes(parsedOutput, context);
|
|
594
|
-
case "DBSnapshotNotFound":
|
|
595
|
-
case "com.amazonaws.docdb#DBSnapshotNotFoundFault":
|
|
596
|
-
throw await de_DBSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
597
|
-
default:
|
|
598
|
-
const parsedBody = parsedOutput.body;
|
|
599
|
-
return throwDefaultError({
|
|
600
|
-
output,
|
|
601
|
-
parsedBody: parsedBody.Error,
|
|
602
|
-
errorCode,
|
|
603
|
-
});
|
|
604
|
-
}
|
|
605
|
-
};
|
|
606
559
|
export const de_ApplyPendingMaintenanceActionCommand = async (output, context) => {
|
|
607
560
|
if (output.statusCode >= 300) {
|
|
608
|
-
return
|
|
561
|
+
return de_CommandError(output, context);
|
|
609
562
|
}
|
|
610
563
|
const data = await parseBody(output.body, context);
|
|
611
564
|
let contents = {};
|
|
@@ -616,34 +569,9 @@ export const de_ApplyPendingMaintenanceActionCommand = async (output, context) =
|
|
|
616
569
|
};
|
|
617
570
|
return response;
|
|
618
571
|
};
|
|
619
|
-
const de_ApplyPendingMaintenanceActionCommandError = async (output, context) => {
|
|
620
|
-
const parsedOutput = {
|
|
621
|
-
...output,
|
|
622
|
-
body: await parseErrorBody(output.body, context),
|
|
623
|
-
};
|
|
624
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
625
|
-
switch (errorCode) {
|
|
626
|
-
case "InvalidDBClusterStateFault":
|
|
627
|
-
case "com.amazonaws.docdb#InvalidDBClusterStateFault":
|
|
628
|
-
throw await de_InvalidDBClusterStateFaultRes(parsedOutput, context);
|
|
629
|
-
case "InvalidDBInstanceState":
|
|
630
|
-
case "com.amazonaws.docdb#InvalidDBInstanceStateFault":
|
|
631
|
-
throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
|
|
632
|
-
case "ResourceNotFoundFault":
|
|
633
|
-
case "com.amazonaws.docdb#ResourceNotFoundFault":
|
|
634
|
-
throw await de_ResourceNotFoundFaultRes(parsedOutput, context);
|
|
635
|
-
default:
|
|
636
|
-
const parsedBody = parsedOutput.body;
|
|
637
|
-
return throwDefaultError({
|
|
638
|
-
output,
|
|
639
|
-
parsedBody: parsedBody.Error,
|
|
640
|
-
errorCode,
|
|
641
|
-
});
|
|
642
|
-
}
|
|
643
|
-
};
|
|
644
572
|
export const de_CopyDBClusterParameterGroupCommand = async (output, context) => {
|
|
645
573
|
if (output.statusCode >= 300) {
|
|
646
|
-
return
|
|
574
|
+
return de_CommandError(output, context);
|
|
647
575
|
}
|
|
648
576
|
const data = await parseBody(output.body, context);
|
|
649
577
|
let contents = {};
|
|
@@ -654,34 +582,9 @@ export const de_CopyDBClusterParameterGroupCommand = async (output, context) =>
|
|
|
654
582
|
};
|
|
655
583
|
return response;
|
|
656
584
|
};
|
|
657
|
-
const de_CopyDBClusterParameterGroupCommandError = async (output, context) => {
|
|
658
|
-
const parsedOutput = {
|
|
659
|
-
...output,
|
|
660
|
-
body: await parseErrorBody(output.body, context),
|
|
661
|
-
};
|
|
662
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
663
|
-
switch (errorCode) {
|
|
664
|
-
case "DBParameterGroupAlreadyExists":
|
|
665
|
-
case "com.amazonaws.docdb#DBParameterGroupAlreadyExistsFault":
|
|
666
|
-
throw await de_DBParameterGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
667
|
-
case "DBParameterGroupNotFound":
|
|
668
|
-
case "com.amazonaws.docdb#DBParameterGroupNotFoundFault":
|
|
669
|
-
throw await de_DBParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
670
|
-
case "DBParameterGroupQuotaExceeded":
|
|
671
|
-
case "com.amazonaws.docdb#DBParameterGroupQuotaExceededFault":
|
|
672
|
-
throw await de_DBParameterGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
673
|
-
default:
|
|
674
|
-
const parsedBody = parsedOutput.body;
|
|
675
|
-
return throwDefaultError({
|
|
676
|
-
output,
|
|
677
|
-
parsedBody: parsedBody.Error,
|
|
678
|
-
errorCode,
|
|
679
|
-
});
|
|
680
|
-
}
|
|
681
|
-
};
|
|
682
585
|
export const de_CopyDBClusterSnapshotCommand = async (output, context) => {
|
|
683
586
|
if (output.statusCode >= 300) {
|
|
684
|
-
return
|
|
587
|
+
return de_CommandError(output, context);
|
|
685
588
|
}
|
|
686
589
|
const data = await parseBody(output.body, context);
|
|
687
590
|
let contents = {};
|
|
@@ -692,43 +595,9 @@ export const de_CopyDBClusterSnapshotCommand = async (output, context) => {
|
|
|
692
595
|
};
|
|
693
596
|
return response;
|
|
694
597
|
};
|
|
695
|
-
const de_CopyDBClusterSnapshotCommandError = async (output, context) => {
|
|
696
|
-
const parsedOutput = {
|
|
697
|
-
...output,
|
|
698
|
-
body: await parseErrorBody(output.body, context),
|
|
699
|
-
};
|
|
700
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
701
|
-
switch (errorCode) {
|
|
702
|
-
case "DBClusterSnapshotAlreadyExistsFault":
|
|
703
|
-
case "com.amazonaws.docdb#DBClusterSnapshotAlreadyExistsFault":
|
|
704
|
-
throw await de_DBClusterSnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
705
|
-
case "DBClusterSnapshotNotFoundFault":
|
|
706
|
-
case "com.amazonaws.docdb#DBClusterSnapshotNotFoundFault":
|
|
707
|
-
throw await de_DBClusterSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
708
|
-
case "InvalidDBClusterSnapshotStateFault":
|
|
709
|
-
case "com.amazonaws.docdb#InvalidDBClusterSnapshotStateFault":
|
|
710
|
-
throw await de_InvalidDBClusterSnapshotStateFaultRes(parsedOutput, context);
|
|
711
|
-
case "InvalidDBClusterStateFault":
|
|
712
|
-
case "com.amazonaws.docdb#InvalidDBClusterStateFault":
|
|
713
|
-
throw await de_InvalidDBClusterStateFaultRes(parsedOutput, context);
|
|
714
|
-
case "KMSKeyNotAccessibleFault":
|
|
715
|
-
case "com.amazonaws.docdb#KMSKeyNotAccessibleFault":
|
|
716
|
-
throw await de_KMSKeyNotAccessibleFaultRes(parsedOutput, context);
|
|
717
|
-
case "SnapshotQuotaExceeded":
|
|
718
|
-
case "com.amazonaws.docdb#SnapshotQuotaExceededFault":
|
|
719
|
-
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
720
|
-
default:
|
|
721
|
-
const parsedBody = parsedOutput.body;
|
|
722
|
-
return throwDefaultError({
|
|
723
|
-
output,
|
|
724
|
-
parsedBody: parsedBody.Error,
|
|
725
|
-
errorCode,
|
|
726
|
-
});
|
|
727
|
-
}
|
|
728
|
-
};
|
|
729
598
|
export const de_CreateDBClusterCommand = async (output, context) => {
|
|
730
599
|
if (output.statusCode >= 300) {
|
|
731
|
-
return
|
|
600
|
+
return de_CommandError(output, context);
|
|
732
601
|
}
|
|
733
602
|
const data = await parseBody(output.body, context);
|
|
734
603
|
let contents = {};
|
|
@@ -739,76 +608,9 @@ export const de_CreateDBClusterCommand = async (output, context) => {
|
|
|
739
608
|
};
|
|
740
609
|
return response;
|
|
741
610
|
};
|
|
742
|
-
const de_CreateDBClusterCommandError = async (output, context) => {
|
|
743
|
-
const parsedOutput = {
|
|
744
|
-
...output,
|
|
745
|
-
body: await parseErrorBody(output.body, context),
|
|
746
|
-
};
|
|
747
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
748
|
-
switch (errorCode) {
|
|
749
|
-
case "DBClusterAlreadyExistsFault":
|
|
750
|
-
case "com.amazonaws.docdb#DBClusterAlreadyExistsFault":
|
|
751
|
-
throw await de_DBClusterAlreadyExistsFaultRes(parsedOutput, context);
|
|
752
|
-
case "DBClusterNotFoundFault":
|
|
753
|
-
case "com.amazonaws.docdb#DBClusterNotFoundFault":
|
|
754
|
-
throw await de_DBClusterNotFoundFaultRes(parsedOutput, context);
|
|
755
|
-
case "DBClusterParameterGroupNotFound":
|
|
756
|
-
case "com.amazonaws.docdb#DBClusterParameterGroupNotFoundFault":
|
|
757
|
-
throw await de_DBClusterParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
758
|
-
case "DBClusterQuotaExceededFault":
|
|
759
|
-
case "com.amazonaws.docdb#DBClusterQuotaExceededFault":
|
|
760
|
-
throw await de_DBClusterQuotaExceededFaultRes(parsedOutput, context);
|
|
761
|
-
case "DBInstanceNotFound":
|
|
762
|
-
case "com.amazonaws.docdb#DBInstanceNotFoundFault":
|
|
763
|
-
throw await de_DBInstanceNotFoundFaultRes(parsedOutput, context);
|
|
764
|
-
case "DBSubnetGroupDoesNotCoverEnoughAZs":
|
|
765
|
-
case "com.amazonaws.docdb#DBSubnetGroupDoesNotCoverEnoughAZs":
|
|
766
|
-
throw await de_DBSubnetGroupDoesNotCoverEnoughAZsRes(parsedOutput, context);
|
|
767
|
-
case "DBSubnetGroupNotFoundFault":
|
|
768
|
-
case "com.amazonaws.docdb#DBSubnetGroupNotFoundFault":
|
|
769
|
-
throw await de_DBSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
770
|
-
case "GlobalClusterNotFoundFault":
|
|
771
|
-
case "com.amazonaws.docdb#GlobalClusterNotFoundFault":
|
|
772
|
-
throw await de_GlobalClusterNotFoundFaultRes(parsedOutput, context);
|
|
773
|
-
case "InsufficientStorageClusterCapacity":
|
|
774
|
-
case "com.amazonaws.docdb#InsufficientStorageClusterCapacityFault":
|
|
775
|
-
throw await de_InsufficientStorageClusterCapacityFaultRes(parsedOutput, context);
|
|
776
|
-
case "InvalidDBClusterStateFault":
|
|
777
|
-
case "com.amazonaws.docdb#InvalidDBClusterStateFault":
|
|
778
|
-
throw await de_InvalidDBClusterStateFaultRes(parsedOutput, context);
|
|
779
|
-
case "InvalidDBInstanceState":
|
|
780
|
-
case "com.amazonaws.docdb#InvalidDBInstanceStateFault":
|
|
781
|
-
throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
|
|
782
|
-
case "InvalidDBSubnetGroupStateFault":
|
|
783
|
-
case "com.amazonaws.docdb#InvalidDBSubnetGroupStateFault":
|
|
784
|
-
throw await de_InvalidDBSubnetGroupStateFaultRes(parsedOutput, context);
|
|
785
|
-
case "InvalidGlobalClusterStateFault":
|
|
786
|
-
case "com.amazonaws.docdb#InvalidGlobalClusterStateFault":
|
|
787
|
-
throw await de_InvalidGlobalClusterStateFaultRes(parsedOutput, context);
|
|
788
|
-
case "InvalidSubnet":
|
|
789
|
-
case "com.amazonaws.docdb#InvalidSubnet":
|
|
790
|
-
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
791
|
-
case "InvalidVPCNetworkStateFault":
|
|
792
|
-
case "com.amazonaws.docdb#InvalidVPCNetworkStateFault":
|
|
793
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
794
|
-
case "KMSKeyNotAccessibleFault":
|
|
795
|
-
case "com.amazonaws.docdb#KMSKeyNotAccessibleFault":
|
|
796
|
-
throw await de_KMSKeyNotAccessibleFaultRes(parsedOutput, context);
|
|
797
|
-
case "StorageQuotaExceeded":
|
|
798
|
-
case "com.amazonaws.docdb#StorageQuotaExceededFault":
|
|
799
|
-
throw await de_StorageQuotaExceededFaultRes(parsedOutput, context);
|
|
800
|
-
default:
|
|
801
|
-
const parsedBody = parsedOutput.body;
|
|
802
|
-
return throwDefaultError({
|
|
803
|
-
output,
|
|
804
|
-
parsedBody: parsedBody.Error,
|
|
805
|
-
errorCode,
|
|
806
|
-
});
|
|
807
|
-
}
|
|
808
|
-
};
|
|
809
611
|
export const de_CreateDBClusterParameterGroupCommand = async (output, context) => {
|
|
810
612
|
if (output.statusCode >= 300) {
|
|
811
|
-
return
|
|
613
|
+
return de_CommandError(output, context);
|
|
812
614
|
}
|
|
813
615
|
const data = await parseBody(output.body, context);
|
|
814
616
|
let contents = {};
|
|
@@ -819,31 +621,9 @@ export const de_CreateDBClusterParameterGroupCommand = async (output, context) =
|
|
|
819
621
|
};
|
|
820
622
|
return response;
|
|
821
623
|
};
|
|
822
|
-
const de_CreateDBClusterParameterGroupCommandError = async (output, context) => {
|
|
823
|
-
const parsedOutput = {
|
|
824
|
-
...output,
|
|
825
|
-
body: await parseErrorBody(output.body, context),
|
|
826
|
-
};
|
|
827
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
828
|
-
switch (errorCode) {
|
|
829
|
-
case "DBParameterGroupAlreadyExists":
|
|
830
|
-
case "com.amazonaws.docdb#DBParameterGroupAlreadyExistsFault":
|
|
831
|
-
throw await de_DBParameterGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
832
|
-
case "DBParameterGroupQuotaExceeded":
|
|
833
|
-
case "com.amazonaws.docdb#DBParameterGroupQuotaExceededFault":
|
|
834
|
-
throw await de_DBParameterGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
835
|
-
default:
|
|
836
|
-
const parsedBody = parsedOutput.body;
|
|
837
|
-
return throwDefaultError({
|
|
838
|
-
output,
|
|
839
|
-
parsedBody: parsedBody.Error,
|
|
840
|
-
errorCode,
|
|
841
|
-
});
|
|
842
|
-
}
|
|
843
|
-
};
|
|
844
624
|
export const de_CreateDBClusterSnapshotCommand = async (output, context) => {
|
|
845
625
|
if (output.statusCode >= 300) {
|
|
846
|
-
return
|
|
626
|
+
return de_CommandError(output, context);
|
|
847
627
|
}
|
|
848
628
|
const data = await parseBody(output.body, context);
|
|
849
629
|
let contents = {};
|
|
@@ -854,40 +634,9 @@ export const de_CreateDBClusterSnapshotCommand = async (output, context) => {
|
|
|
854
634
|
};
|
|
855
635
|
return response;
|
|
856
636
|
};
|
|
857
|
-
const de_CreateDBClusterSnapshotCommandError = async (output, context) => {
|
|
858
|
-
const parsedOutput = {
|
|
859
|
-
...output,
|
|
860
|
-
body: await parseErrorBody(output.body, context),
|
|
861
|
-
};
|
|
862
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
863
|
-
switch (errorCode) {
|
|
864
|
-
case "DBClusterNotFoundFault":
|
|
865
|
-
case "com.amazonaws.docdb#DBClusterNotFoundFault":
|
|
866
|
-
throw await de_DBClusterNotFoundFaultRes(parsedOutput, context);
|
|
867
|
-
case "DBClusterSnapshotAlreadyExistsFault":
|
|
868
|
-
case "com.amazonaws.docdb#DBClusterSnapshotAlreadyExistsFault":
|
|
869
|
-
throw await de_DBClusterSnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
870
|
-
case "InvalidDBClusterSnapshotStateFault":
|
|
871
|
-
case "com.amazonaws.docdb#InvalidDBClusterSnapshotStateFault":
|
|
872
|
-
throw await de_InvalidDBClusterSnapshotStateFaultRes(parsedOutput, context);
|
|
873
|
-
case "InvalidDBClusterStateFault":
|
|
874
|
-
case "com.amazonaws.docdb#InvalidDBClusterStateFault":
|
|
875
|
-
throw await de_InvalidDBClusterStateFaultRes(parsedOutput, context);
|
|
876
|
-
case "SnapshotQuotaExceeded":
|
|
877
|
-
case "com.amazonaws.docdb#SnapshotQuotaExceededFault":
|
|
878
|
-
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
879
|
-
default:
|
|
880
|
-
const parsedBody = parsedOutput.body;
|
|
881
|
-
return throwDefaultError({
|
|
882
|
-
output,
|
|
883
|
-
parsedBody: parsedBody.Error,
|
|
884
|
-
errorCode,
|
|
885
|
-
});
|
|
886
|
-
}
|
|
887
|
-
};
|
|
888
637
|
export const de_CreateDBInstanceCommand = async (output, context) => {
|
|
889
638
|
if (output.statusCode >= 300) {
|
|
890
|
-
return
|
|
639
|
+
return de_CommandError(output, context);
|
|
891
640
|
}
|
|
892
641
|
const data = await parseBody(output.body, context);
|
|
893
642
|
let contents = {};
|
|
@@ -898,114 +647,22 @@ export const de_CreateDBInstanceCommand = async (output, context) => {
|
|
|
898
647
|
};
|
|
899
648
|
return response;
|
|
900
649
|
};
|
|
901
|
-
const
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
case "DBClusterNotFoundFault":
|
|
912
|
-
case "com.amazonaws.docdb#DBClusterNotFoundFault":
|
|
913
|
-
throw await de_DBClusterNotFoundFaultRes(parsedOutput, context);
|
|
914
|
-
case "DBInstanceAlreadyExists":
|
|
915
|
-
case "com.amazonaws.docdb#DBInstanceAlreadyExistsFault":
|
|
916
|
-
throw await de_DBInstanceAlreadyExistsFaultRes(parsedOutput, context);
|
|
917
|
-
case "DBParameterGroupNotFound":
|
|
918
|
-
case "com.amazonaws.docdb#DBParameterGroupNotFoundFault":
|
|
919
|
-
throw await de_DBParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
920
|
-
case "DBSecurityGroupNotFound":
|
|
921
|
-
case "com.amazonaws.docdb#DBSecurityGroupNotFoundFault":
|
|
922
|
-
throw await de_DBSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
923
|
-
case "DBSubnetGroupDoesNotCoverEnoughAZs":
|
|
924
|
-
case "com.amazonaws.docdb#DBSubnetGroupDoesNotCoverEnoughAZs":
|
|
925
|
-
throw await de_DBSubnetGroupDoesNotCoverEnoughAZsRes(parsedOutput, context);
|
|
926
|
-
case "DBSubnetGroupNotFoundFault":
|
|
927
|
-
case "com.amazonaws.docdb#DBSubnetGroupNotFoundFault":
|
|
928
|
-
throw await de_DBSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
929
|
-
case "InstanceQuotaExceeded":
|
|
930
|
-
case "com.amazonaws.docdb#InstanceQuotaExceededFault":
|
|
931
|
-
throw await de_InstanceQuotaExceededFaultRes(parsedOutput, context);
|
|
932
|
-
case "InsufficientDBInstanceCapacity":
|
|
933
|
-
case "com.amazonaws.docdb#InsufficientDBInstanceCapacityFault":
|
|
934
|
-
throw await de_InsufficientDBInstanceCapacityFaultRes(parsedOutput, context);
|
|
935
|
-
case "InvalidDBClusterStateFault":
|
|
936
|
-
case "com.amazonaws.docdb#InvalidDBClusterStateFault":
|
|
937
|
-
throw await de_InvalidDBClusterStateFaultRes(parsedOutput, context);
|
|
938
|
-
case "InvalidSubnet":
|
|
939
|
-
case "com.amazonaws.docdb#InvalidSubnet":
|
|
940
|
-
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
941
|
-
case "InvalidVPCNetworkStateFault":
|
|
942
|
-
case "com.amazonaws.docdb#InvalidVPCNetworkStateFault":
|
|
943
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
944
|
-
case "KMSKeyNotAccessibleFault":
|
|
945
|
-
case "com.amazonaws.docdb#KMSKeyNotAccessibleFault":
|
|
946
|
-
throw await de_KMSKeyNotAccessibleFaultRes(parsedOutput, context);
|
|
947
|
-
case "StorageQuotaExceeded":
|
|
948
|
-
case "com.amazonaws.docdb#StorageQuotaExceededFault":
|
|
949
|
-
throw await de_StorageQuotaExceededFaultRes(parsedOutput, context);
|
|
950
|
-
case "StorageTypeNotSupported":
|
|
951
|
-
case "com.amazonaws.docdb#StorageTypeNotSupportedFault":
|
|
952
|
-
throw await de_StorageTypeNotSupportedFaultRes(parsedOutput, context);
|
|
953
|
-
default:
|
|
954
|
-
const parsedBody = parsedOutput.body;
|
|
955
|
-
return throwDefaultError({
|
|
956
|
-
output,
|
|
957
|
-
parsedBody: parsedBody.Error,
|
|
958
|
-
errorCode,
|
|
959
|
-
});
|
|
960
|
-
}
|
|
961
|
-
};
|
|
962
|
-
export const de_CreateDBSubnetGroupCommand = async (output, context) => {
|
|
963
|
-
if (output.statusCode >= 300) {
|
|
964
|
-
return de_CreateDBSubnetGroupCommandError(output, context);
|
|
965
|
-
}
|
|
966
|
-
const data = await parseBody(output.body, context);
|
|
967
|
-
let contents = {};
|
|
968
|
-
contents = de_CreateDBSubnetGroupResult(data.CreateDBSubnetGroupResult, context);
|
|
969
|
-
const response = {
|
|
970
|
-
$metadata: deserializeMetadata(output),
|
|
971
|
-
...contents,
|
|
650
|
+
export const de_CreateDBSubnetGroupCommand = async (output, context) => {
|
|
651
|
+
if (output.statusCode >= 300) {
|
|
652
|
+
return de_CommandError(output, context);
|
|
653
|
+
}
|
|
654
|
+
const data = await parseBody(output.body, context);
|
|
655
|
+
let contents = {};
|
|
656
|
+
contents = de_CreateDBSubnetGroupResult(data.CreateDBSubnetGroupResult, context);
|
|
657
|
+
const response = {
|
|
658
|
+
$metadata: deserializeMetadata(output),
|
|
659
|
+
...contents,
|
|
972
660
|
};
|
|
973
661
|
return response;
|
|
974
662
|
};
|
|
975
|
-
const de_CreateDBSubnetGroupCommandError = async (output, context) => {
|
|
976
|
-
const parsedOutput = {
|
|
977
|
-
...output,
|
|
978
|
-
body: await parseErrorBody(output.body, context),
|
|
979
|
-
};
|
|
980
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
981
|
-
switch (errorCode) {
|
|
982
|
-
case "DBSubnetGroupAlreadyExists":
|
|
983
|
-
case "com.amazonaws.docdb#DBSubnetGroupAlreadyExistsFault":
|
|
984
|
-
throw await de_DBSubnetGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
985
|
-
case "DBSubnetGroupDoesNotCoverEnoughAZs":
|
|
986
|
-
case "com.amazonaws.docdb#DBSubnetGroupDoesNotCoverEnoughAZs":
|
|
987
|
-
throw await de_DBSubnetGroupDoesNotCoverEnoughAZsRes(parsedOutput, context);
|
|
988
|
-
case "DBSubnetGroupQuotaExceeded":
|
|
989
|
-
case "com.amazonaws.docdb#DBSubnetGroupQuotaExceededFault":
|
|
990
|
-
throw await de_DBSubnetGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
991
|
-
case "DBSubnetQuotaExceededFault":
|
|
992
|
-
case "com.amazonaws.docdb#DBSubnetQuotaExceededFault":
|
|
993
|
-
throw await de_DBSubnetQuotaExceededFaultRes(parsedOutput, context);
|
|
994
|
-
case "InvalidSubnet":
|
|
995
|
-
case "com.amazonaws.docdb#InvalidSubnet":
|
|
996
|
-
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
997
|
-
default:
|
|
998
|
-
const parsedBody = parsedOutput.body;
|
|
999
|
-
return throwDefaultError({
|
|
1000
|
-
output,
|
|
1001
|
-
parsedBody: parsedBody.Error,
|
|
1002
|
-
errorCode,
|
|
1003
|
-
});
|
|
1004
|
-
}
|
|
1005
|
-
};
|
|
1006
663
|
export const de_CreateEventSubscriptionCommand = async (output, context) => {
|
|
1007
664
|
if (output.statusCode >= 300) {
|
|
1008
|
-
return
|
|
665
|
+
return de_CommandError(output, context);
|
|
1009
666
|
}
|
|
1010
667
|
const data = await parseBody(output.body, context);
|
|
1011
668
|
let contents = {};
|
|
@@ -1016,46 +673,9 @@ export const de_CreateEventSubscriptionCommand = async (output, context) => {
|
|
|
1016
673
|
};
|
|
1017
674
|
return response;
|
|
1018
675
|
};
|
|
1019
|
-
const de_CreateEventSubscriptionCommandError = async (output, context) => {
|
|
1020
|
-
const parsedOutput = {
|
|
1021
|
-
...output,
|
|
1022
|
-
body: await parseErrorBody(output.body, context),
|
|
1023
|
-
};
|
|
1024
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1025
|
-
switch (errorCode) {
|
|
1026
|
-
case "EventSubscriptionQuotaExceeded":
|
|
1027
|
-
case "com.amazonaws.docdb#EventSubscriptionQuotaExceededFault":
|
|
1028
|
-
throw await de_EventSubscriptionQuotaExceededFaultRes(parsedOutput, context);
|
|
1029
|
-
case "SNSInvalidTopic":
|
|
1030
|
-
case "com.amazonaws.docdb#SNSInvalidTopicFault":
|
|
1031
|
-
throw await de_SNSInvalidTopicFaultRes(parsedOutput, context);
|
|
1032
|
-
case "SNSNoAuthorization":
|
|
1033
|
-
case "com.amazonaws.docdb#SNSNoAuthorizationFault":
|
|
1034
|
-
throw await de_SNSNoAuthorizationFaultRes(parsedOutput, context);
|
|
1035
|
-
case "SNSTopicArnNotFound":
|
|
1036
|
-
case "com.amazonaws.docdb#SNSTopicArnNotFoundFault":
|
|
1037
|
-
throw await de_SNSTopicArnNotFoundFaultRes(parsedOutput, context);
|
|
1038
|
-
case "SourceNotFound":
|
|
1039
|
-
case "com.amazonaws.docdb#SourceNotFoundFault":
|
|
1040
|
-
throw await de_SourceNotFoundFaultRes(parsedOutput, context);
|
|
1041
|
-
case "SubscriptionAlreadyExist":
|
|
1042
|
-
case "com.amazonaws.docdb#SubscriptionAlreadyExistFault":
|
|
1043
|
-
throw await de_SubscriptionAlreadyExistFaultRes(parsedOutput, context);
|
|
1044
|
-
case "SubscriptionCategoryNotFound":
|
|
1045
|
-
case "com.amazonaws.docdb#SubscriptionCategoryNotFoundFault":
|
|
1046
|
-
throw await de_SubscriptionCategoryNotFoundFaultRes(parsedOutput, context);
|
|
1047
|
-
default:
|
|
1048
|
-
const parsedBody = parsedOutput.body;
|
|
1049
|
-
return throwDefaultError({
|
|
1050
|
-
output,
|
|
1051
|
-
parsedBody: parsedBody.Error,
|
|
1052
|
-
errorCode,
|
|
1053
|
-
});
|
|
1054
|
-
}
|
|
1055
|
-
};
|
|
1056
676
|
export const de_CreateGlobalClusterCommand = async (output, context) => {
|
|
1057
677
|
if (output.statusCode >= 300) {
|
|
1058
|
-
return
|
|
678
|
+
return de_CommandError(output, context);
|
|
1059
679
|
}
|
|
1060
680
|
const data = await parseBody(output.body, context);
|
|
1061
681
|
let contents = {};
|
|
@@ -1066,37 +686,9 @@ export const de_CreateGlobalClusterCommand = async (output, context) => {
|
|
|
1066
686
|
};
|
|
1067
687
|
return response;
|
|
1068
688
|
};
|
|
1069
|
-
const de_CreateGlobalClusterCommandError = async (output, context) => {
|
|
1070
|
-
const parsedOutput = {
|
|
1071
|
-
...output,
|
|
1072
|
-
body: await parseErrorBody(output.body, context),
|
|
1073
|
-
};
|
|
1074
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1075
|
-
switch (errorCode) {
|
|
1076
|
-
case "DBClusterNotFoundFault":
|
|
1077
|
-
case "com.amazonaws.docdb#DBClusterNotFoundFault":
|
|
1078
|
-
throw await de_DBClusterNotFoundFaultRes(parsedOutput, context);
|
|
1079
|
-
case "GlobalClusterAlreadyExistsFault":
|
|
1080
|
-
case "com.amazonaws.docdb#GlobalClusterAlreadyExistsFault":
|
|
1081
|
-
throw await de_GlobalClusterAlreadyExistsFaultRes(parsedOutput, context);
|
|
1082
|
-
case "GlobalClusterQuotaExceededFault":
|
|
1083
|
-
case "com.amazonaws.docdb#GlobalClusterQuotaExceededFault":
|
|
1084
|
-
throw await de_GlobalClusterQuotaExceededFaultRes(parsedOutput, context);
|
|
1085
|
-
case "InvalidDBClusterStateFault":
|
|
1086
|
-
case "com.amazonaws.docdb#InvalidDBClusterStateFault":
|
|
1087
|
-
throw await de_InvalidDBClusterStateFaultRes(parsedOutput, context);
|
|
1088
|
-
default:
|
|
1089
|
-
const parsedBody = parsedOutput.body;
|
|
1090
|
-
return throwDefaultError({
|
|
1091
|
-
output,
|
|
1092
|
-
parsedBody: parsedBody.Error,
|
|
1093
|
-
errorCode,
|
|
1094
|
-
});
|
|
1095
|
-
}
|
|
1096
|
-
};
|
|
1097
689
|
export const de_DeleteDBClusterCommand = async (output, context) => {
|
|
1098
690
|
if (output.statusCode >= 300) {
|
|
1099
|
-
return
|
|
691
|
+
return de_CommandError(output, context);
|
|
1100
692
|
}
|
|
1101
693
|
const data = await parseBody(output.body, context);
|
|
1102
694
|
let contents = {};
|
|
@@ -1107,40 +699,9 @@ export const de_DeleteDBClusterCommand = async (output, context) => {
|
|
|
1107
699
|
};
|
|
1108
700
|
return response;
|
|
1109
701
|
};
|
|
1110
|
-
const de_DeleteDBClusterCommandError = async (output, context) => {
|
|
1111
|
-
const parsedOutput = {
|
|
1112
|
-
...output,
|
|
1113
|
-
body: await parseErrorBody(output.body, context),
|
|
1114
|
-
};
|
|
1115
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1116
|
-
switch (errorCode) {
|
|
1117
|
-
case "DBClusterNotFoundFault":
|
|
1118
|
-
case "com.amazonaws.docdb#DBClusterNotFoundFault":
|
|
1119
|
-
throw await de_DBClusterNotFoundFaultRes(parsedOutput, context);
|
|
1120
|
-
case "DBClusterSnapshotAlreadyExistsFault":
|
|
1121
|
-
case "com.amazonaws.docdb#DBClusterSnapshotAlreadyExistsFault":
|
|
1122
|
-
throw await de_DBClusterSnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
1123
|
-
case "InvalidDBClusterSnapshotStateFault":
|
|
1124
|
-
case "com.amazonaws.docdb#InvalidDBClusterSnapshotStateFault":
|
|
1125
|
-
throw await de_InvalidDBClusterSnapshotStateFaultRes(parsedOutput, context);
|
|
1126
|
-
case "InvalidDBClusterStateFault":
|
|
1127
|
-
case "com.amazonaws.docdb#InvalidDBClusterStateFault":
|
|
1128
|
-
throw await de_InvalidDBClusterStateFaultRes(parsedOutput, context);
|
|
1129
|
-
case "SnapshotQuotaExceeded":
|
|
1130
|
-
case "com.amazonaws.docdb#SnapshotQuotaExceededFault":
|
|
1131
|
-
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
1132
|
-
default:
|
|
1133
|
-
const parsedBody = parsedOutput.body;
|
|
1134
|
-
return throwDefaultError({
|
|
1135
|
-
output,
|
|
1136
|
-
parsedBody: parsedBody.Error,
|
|
1137
|
-
errorCode,
|
|
1138
|
-
});
|
|
1139
|
-
}
|
|
1140
|
-
};
|
|
1141
702
|
export const de_DeleteDBClusterParameterGroupCommand = async (output, context) => {
|
|
1142
703
|
if (output.statusCode >= 300) {
|
|
1143
|
-
return
|
|
704
|
+
return de_CommandError(output, context);
|
|
1144
705
|
}
|
|
1145
706
|
await collectBody(output.body, context);
|
|
1146
707
|
const response = {
|
|
@@ -1148,31 +709,9 @@ export const de_DeleteDBClusterParameterGroupCommand = async (output, context) =
|
|
|
1148
709
|
};
|
|
1149
710
|
return response;
|
|
1150
711
|
};
|
|
1151
|
-
const de_DeleteDBClusterParameterGroupCommandError = async (output, context) => {
|
|
1152
|
-
const parsedOutput = {
|
|
1153
|
-
...output,
|
|
1154
|
-
body: await parseErrorBody(output.body, context),
|
|
1155
|
-
};
|
|
1156
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1157
|
-
switch (errorCode) {
|
|
1158
|
-
case "DBParameterGroupNotFound":
|
|
1159
|
-
case "com.amazonaws.docdb#DBParameterGroupNotFoundFault":
|
|
1160
|
-
throw await de_DBParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1161
|
-
case "InvalidDBParameterGroupState":
|
|
1162
|
-
case "com.amazonaws.docdb#InvalidDBParameterGroupStateFault":
|
|
1163
|
-
throw await de_InvalidDBParameterGroupStateFaultRes(parsedOutput, context);
|
|
1164
|
-
default:
|
|
1165
|
-
const parsedBody = parsedOutput.body;
|
|
1166
|
-
return throwDefaultError({
|
|
1167
|
-
output,
|
|
1168
|
-
parsedBody: parsedBody.Error,
|
|
1169
|
-
errorCode,
|
|
1170
|
-
});
|
|
1171
|
-
}
|
|
1172
|
-
};
|
|
1173
712
|
export const de_DeleteDBClusterSnapshotCommand = async (output, context) => {
|
|
1174
713
|
if (output.statusCode >= 300) {
|
|
1175
|
-
return
|
|
714
|
+
return de_CommandError(output, context);
|
|
1176
715
|
}
|
|
1177
716
|
const data = await parseBody(output.body, context);
|
|
1178
717
|
let contents = {};
|
|
@@ -1183,31 +722,9 @@ export const de_DeleteDBClusterSnapshotCommand = async (output, context) => {
|
|
|
1183
722
|
};
|
|
1184
723
|
return response;
|
|
1185
724
|
};
|
|
1186
|
-
const de_DeleteDBClusterSnapshotCommandError = async (output, context) => {
|
|
1187
|
-
const parsedOutput = {
|
|
1188
|
-
...output,
|
|
1189
|
-
body: await parseErrorBody(output.body, context),
|
|
1190
|
-
};
|
|
1191
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1192
|
-
switch (errorCode) {
|
|
1193
|
-
case "DBClusterSnapshotNotFoundFault":
|
|
1194
|
-
case "com.amazonaws.docdb#DBClusterSnapshotNotFoundFault":
|
|
1195
|
-
throw await de_DBClusterSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
1196
|
-
case "InvalidDBClusterSnapshotStateFault":
|
|
1197
|
-
case "com.amazonaws.docdb#InvalidDBClusterSnapshotStateFault":
|
|
1198
|
-
throw await de_InvalidDBClusterSnapshotStateFaultRes(parsedOutput, context);
|
|
1199
|
-
default:
|
|
1200
|
-
const parsedBody = parsedOutput.body;
|
|
1201
|
-
return throwDefaultError({
|
|
1202
|
-
output,
|
|
1203
|
-
parsedBody: parsedBody.Error,
|
|
1204
|
-
errorCode,
|
|
1205
|
-
});
|
|
1206
|
-
}
|
|
1207
|
-
};
|
|
1208
725
|
export const de_DeleteDBInstanceCommand = async (output, context) => {
|
|
1209
726
|
if (output.statusCode >= 300) {
|
|
1210
|
-
return
|
|
727
|
+
return de_CommandError(output, context);
|
|
1211
728
|
}
|
|
1212
729
|
const data = await parseBody(output.body, context);
|
|
1213
730
|
let contents = {};
|
|
@@ -1218,75 +735,19 @@ export const de_DeleteDBInstanceCommand = async (output, context) => {
|
|
|
1218
735
|
};
|
|
1219
736
|
return response;
|
|
1220
737
|
};
|
|
1221
|
-
const
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
const
|
|
1227
|
-
|
|
1228
|
-
case "DBInstanceNotFound":
|
|
1229
|
-
case "com.amazonaws.docdb#DBInstanceNotFoundFault":
|
|
1230
|
-
throw await de_DBInstanceNotFoundFaultRes(parsedOutput, context);
|
|
1231
|
-
case "DBSnapshotAlreadyExists":
|
|
1232
|
-
case "com.amazonaws.docdb#DBSnapshotAlreadyExistsFault":
|
|
1233
|
-
throw await de_DBSnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
1234
|
-
case "InvalidDBClusterStateFault":
|
|
1235
|
-
case "com.amazonaws.docdb#InvalidDBClusterStateFault":
|
|
1236
|
-
throw await de_InvalidDBClusterStateFaultRes(parsedOutput, context);
|
|
1237
|
-
case "InvalidDBInstanceState":
|
|
1238
|
-
case "com.amazonaws.docdb#InvalidDBInstanceStateFault":
|
|
1239
|
-
throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
|
|
1240
|
-
case "SnapshotQuotaExceeded":
|
|
1241
|
-
case "com.amazonaws.docdb#SnapshotQuotaExceededFault":
|
|
1242
|
-
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
1243
|
-
default:
|
|
1244
|
-
const parsedBody = parsedOutput.body;
|
|
1245
|
-
return throwDefaultError({
|
|
1246
|
-
output,
|
|
1247
|
-
parsedBody: parsedBody.Error,
|
|
1248
|
-
errorCode,
|
|
1249
|
-
});
|
|
1250
|
-
}
|
|
1251
|
-
};
|
|
1252
|
-
export const de_DeleteDBSubnetGroupCommand = async (output, context) => {
|
|
1253
|
-
if (output.statusCode >= 300) {
|
|
1254
|
-
return de_DeleteDBSubnetGroupCommandError(output, context);
|
|
1255
|
-
}
|
|
1256
|
-
await collectBody(output.body, context);
|
|
1257
|
-
const response = {
|
|
1258
|
-
$metadata: deserializeMetadata(output),
|
|
738
|
+
export const de_DeleteDBSubnetGroupCommand = async (output, context) => {
|
|
739
|
+
if (output.statusCode >= 300) {
|
|
740
|
+
return de_CommandError(output, context);
|
|
741
|
+
}
|
|
742
|
+
await collectBody(output.body, context);
|
|
743
|
+
const response = {
|
|
744
|
+
$metadata: deserializeMetadata(output),
|
|
1259
745
|
};
|
|
1260
746
|
return response;
|
|
1261
747
|
};
|
|
1262
|
-
const de_DeleteDBSubnetGroupCommandError = async (output, context) => {
|
|
1263
|
-
const parsedOutput = {
|
|
1264
|
-
...output,
|
|
1265
|
-
body: await parseErrorBody(output.body, context),
|
|
1266
|
-
};
|
|
1267
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1268
|
-
switch (errorCode) {
|
|
1269
|
-
case "DBSubnetGroupNotFoundFault":
|
|
1270
|
-
case "com.amazonaws.docdb#DBSubnetGroupNotFoundFault":
|
|
1271
|
-
throw await de_DBSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
1272
|
-
case "InvalidDBSubnetGroupStateFault":
|
|
1273
|
-
case "com.amazonaws.docdb#InvalidDBSubnetGroupStateFault":
|
|
1274
|
-
throw await de_InvalidDBSubnetGroupStateFaultRes(parsedOutput, context);
|
|
1275
|
-
case "InvalidDBSubnetStateFault":
|
|
1276
|
-
case "com.amazonaws.docdb#InvalidDBSubnetStateFault":
|
|
1277
|
-
throw await de_InvalidDBSubnetStateFaultRes(parsedOutput, context);
|
|
1278
|
-
default:
|
|
1279
|
-
const parsedBody = parsedOutput.body;
|
|
1280
|
-
return throwDefaultError({
|
|
1281
|
-
output,
|
|
1282
|
-
parsedBody: parsedBody.Error,
|
|
1283
|
-
errorCode,
|
|
1284
|
-
});
|
|
1285
|
-
}
|
|
1286
|
-
};
|
|
1287
748
|
export const de_DeleteEventSubscriptionCommand = async (output, context) => {
|
|
1288
749
|
if (output.statusCode >= 300) {
|
|
1289
|
-
return
|
|
750
|
+
return de_CommandError(output, context);
|
|
1290
751
|
}
|
|
1291
752
|
const data = await parseBody(output.body, context);
|
|
1292
753
|
let contents = {};
|
|
@@ -1297,31 +758,9 @@ export const de_DeleteEventSubscriptionCommand = async (output, context) => {
|
|
|
1297
758
|
};
|
|
1298
759
|
return response;
|
|
1299
760
|
};
|
|
1300
|
-
const de_DeleteEventSubscriptionCommandError = async (output, context) => {
|
|
1301
|
-
const parsedOutput = {
|
|
1302
|
-
...output,
|
|
1303
|
-
body: await parseErrorBody(output.body, context),
|
|
1304
|
-
};
|
|
1305
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1306
|
-
switch (errorCode) {
|
|
1307
|
-
case "InvalidEventSubscriptionState":
|
|
1308
|
-
case "com.amazonaws.docdb#InvalidEventSubscriptionStateFault":
|
|
1309
|
-
throw await de_InvalidEventSubscriptionStateFaultRes(parsedOutput, context);
|
|
1310
|
-
case "SubscriptionNotFound":
|
|
1311
|
-
case "com.amazonaws.docdb#SubscriptionNotFoundFault":
|
|
1312
|
-
throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
|
|
1313
|
-
default:
|
|
1314
|
-
const parsedBody = parsedOutput.body;
|
|
1315
|
-
return throwDefaultError({
|
|
1316
|
-
output,
|
|
1317
|
-
parsedBody: parsedBody.Error,
|
|
1318
|
-
errorCode,
|
|
1319
|
-
});
|
|
1320
|
-
}
|
|
1321
|
-
};
|
|
1322
761
|
export const de_DeleteGlobalClusterCommand = async (output, context) => {
|
|
1323
762
|
if (output.statusCode >= 300) {
|
|
1324
|
-
return
|
|
763
|
+
return de_CommandError(output, context);
|
|
1325
764
|
}
|
|
1326
765
|
const data = await parseBody(output.body, context);
|
|
1327
766
|
let contents = {};
|
|
@@ -1332,31 +771,9 @@ export const de_DeleteGlobalClusterCommand = async (output, context) => {
|
|
|
1332
771
|
};
|
|
1333
772
|
return response;
|
|
1334
773
|
};
|
|
1335
|
-
const de_DeleteGlobalClusterCommandError = async (output, context) => {
|
|
1336
|
-
const parsedOutput = {
|
|
1337
|
-
...output,
|
|
1338
|
-
body: await parseErrorBody(output.body, context),
|
|
1339
|
-
};
|
|
1340
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1341
|
-
switch (errorCode) {
|
|
1342
|
-
case "GlobalClusterNotFoundFault":
|
|
1343
|
-
case "com.amazonaws.docdb#GlobalClusterNotFoundFault":
|
|
1344
|
-
throw await de_GlobalClusterNotFoundFaultRes(parsedOutput, context);
|
|
1345
|
-
case "InvalidGlobalClusterStateFault":
|
|
1346
|
-
case "com.amazonaws.docdb#InvalidGlobalClusterStateFault":
|
|
1347
|
-
throw await de_InvalidGlobalClusterStateFaultRes(parsedOutput, context);
|
|
1348
|
-
default:
|
|
1349
|
-
const parsedBody = parsedOutput.body;
|
|
1350
|
-
return throwDefaultError({
|
|
1351
|
-
output,
|
|
1352
|
-
parsedBody: parsedBody.Error,
|
|
1353
|
-
errorCode,
|
|
1354
|
-
});
|
|
1355
|
-
}
|
|
1356
|
-
};
|
|
1357
774
|
export const de_DescribeCertificatesCommand = async (output, context) => {
|
|
1358
775
|
if (output.statusCode >= 300) {
|
|
1359
|
-
return
|
|
776
|
+
return de_CommandError(output, context);
|
|
1360
777
|
}
|
|
1361
778
|
const data = await parseBody(output.body, context);
|
|
1362
779
|
let contents = {};
|
|
@@ -1367,28 +784,9 @@ export const de_DescribeCertificatesCommand = async (output, context) => {
|
|
|
1367
784
|
};
|
|
1368
785
|
return response;
|
|
1369
786
|
};
|
|
1370
|
-
const de_DescribeCertificatesCommandError = async (output, context) => {
|
|
1371
|
-
const parsedOutput = {
|
|
1372
|
-
...output,
|
|
1373
|
-
body: await parseErrorBody(output.body, context),
|
|
1374
|
-
};
|
|
1375
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1376
|
-
switch (errorCode) {
|
|
1377
|
-
case "CertificateNotFound":
|
|
1378
|
-
case "com.amazonaws.docdb#CertificateNotFoundFault":
|
|
1379
|
-
throw await de_CertificateNotFoundFaultRes(parsedOutput, context);
|
|
1380
|
-
default:
|
|
1381
|
-
const parsedBody = parsedOutput.body;
|
|
1382
|
-
return throwDefaultError({
|
|
1383
|
-
output,
|
|
1384
|
-
parsedBody: parsedBody.Error,
|
|
1385
|
-
errorCode,
|
|
1386
|
-
});
|
|
1387
|
-
}
|
|
1388
|
-
};
|
|
1389
787
|
export const de_DescribeDBClusterParameterGroupsCommand = async (output, context) => {
|
|
1390
788
|
if (output.statusCode >= 300) {
|
|
1391
|
-
return
|
|
789
|
+
return de_CommandError(output, context);
|
|
1392
790
|
}
|
|
1393
791
|
const data = await parseBody(output.body, context);
|
|
1394
792
|
let contents = {};
|
|
@@ -1399,28 +797,9 @@ export const de_DescribeDBClusterParameterGroupsCommand = async (output, context
|
|
|
1399
797
|
};
|
|
1400
798
|
return response;
|
|
1401
799
|
};
|
|
1402
|
-
const de_DescribeDBClusterParameterGroupsCommandError = async (output, context) => {
|
|
1403
|
-
const parsedOutput = {
|
|
1404
|
-
...output,
|
|
1405
|
-
body: await parseErrorBody(output.body, context),
|
|
1406
|
-
};
|
|
1407
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1408
|
-
switch (errorCode) {
|
|
1409
|
-
case "DBParameterGroupNotFound":
|
|
1410
|
-
case "com.amazonaws.docdb#DBParameterGroupNotFoundFault":
|
|
1411
|
-
throw await de_DBParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1412
|
-
default:
|
|
1413
|
-
const parsedBody = parsedOutput.body;
|
|
1414
|
-
return throwDefaultError({
|
|
1415
|
-
output,
|
|
1416
|
-
parsedBody: parsedBody.Error,
|
|
1417
|
-
errorCode,
|
|
1418
|
-
});
|
|
1419
|
-
}
|
|
1420
|
-
};
|
|
1421
800
|
export const de_DescribeDBClusterParametersCommand = async (output, context) => {
|
|
1422
801
|
if (output.statusCode >= 300) {
|
|
1423
|
-
return
|
|
802
|
+
return de_CommandError(output, context);
|
|
1424
803
|
}
|
|
1425
804
|
const data = await parseBody(output.body, context);
|
|
1426
805
|
let contents = {};
|
|
@@ -1431,28 +810,9 @@ export const de_DescribeDBClusterParametersCommand = async (output, context) =>
|
|
|
1431
810
|
};
|
|
1432
811
|
return response;
|
|
1433
812
|
};
|
|
1434
|
-
const de_DescribeDBClusterParametersCommandError = async (output, context) => {
|
|
1435
|
-
const parsedOutput = {
|
|
1436
|
-
...output,
|
|
1437
|
-
body: await parseErrorBody(output.body, context),
|
|
1438
|
-
};
|
|
1439
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1440
|
-
switch (errorCode) {
|
|
1441
|
-
case "DBParameterGroupNotFound":
|
|
1442
|
-
case "com.amazonaws.docdb#DBParameterGroupNotFoundFault":
|
|
1443
|
-
throw await de_DBParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1444
|
-
default:
|
|
1445
|
-
const parsedBody = parsedOutput.body;
|
|
1446
|
-
return throwDefaultError({
|
|
1447
|
-
output,
|
|
1448
|
-
parsedBody: parsedBody.Error,
|
|
1449
|
-
errorCode,
|
|
1450
|
-
});
|
|
1451
|
-
}
|
|
1452
|
-
};
|
|
1453
813
|
export const de_DescribeDBClustersCommand = async (output, context) => {
|
|
1454
814
|
if (output.statusCode >= 300) {
|
|
1455
|
-
return
|
|
815
|
+
return de_CommandError(output, context);
|
|
1456
816
|
}
|
|
1457
817
|
const data = await parseBody(output.body, context);
|
|
1458
818
|
let contents = {};
|
|
@@ -1463,28 +823,9 @@ export const de_DescribeDBClustersCommand = async (output, context) => {
|
|
|
1463
823
|
};
|
|
1464
824
|
return response;
|
|
1465
825
|
};
|
|
1466
|
-
const de_DescribeDBClustersCommandError = async (output, context) => {
|
|
1467
|
-
const parsedOutput = {
|
|
1468
|
-
...output,
|
|
1469
|
-
body: await parseErrorBody(output.body, context),
|
|
1470
|
-
};
|
|
1471
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1472
|
-
switch (errorCode) {
|
|
1473
|
-
case "DBClusterNotFoundFault":
|
|
1474
|
-
case "com.amazonaws.docdb#DBClusterNotFoundFault":
|
|
1475
|
-
throw await de_DBClusterNotFoundFaultRes(parsedOutput, context);
|
|
1476
|
-
default:
|
|
1477
|
-
const parsedBody = parsedOutput.body;
|
|
1478
|
-
return throwDefaultError({
|
|
1479
|
-
output,
|
|
1480
|
-
parsedBody: parsedBody.Error,
|
|
1481
|
-
errorCode,
|
|
1482
|
-
});
|
|
1483
|
-
}
|
|
1484
|
-
};
|
|
1485
826
|
export const de_DescribeDBClusterSnapshotAttributesCommand = async (output, context) => {
|
|
1486
827
|
if (output.statusCode >= 300) {
|
|
1487
|
-
return
|
|
828
|
+
return de_CommandError(output, context);
|
|
1488
829
|
}
|
|
1489
830
|
const data = await parseBody(output.body, context);
|
|
1490
831
|
let contents = {};
|
|
@@ -1495,28 +836,9 @@ export const de_DescribeDBClusterSnapshotAttributesCommand = async (output, cont
|
|
|
1495
836
|
};
|
|
1496
837
|
return response;
|
|
1497
838
|
};
|
|
1498
|
-
const de_DescribeDBClusterSnapshotAttributesCommandError = async (output, context) => {
|
|
1499
|
-
const parsedOutput = {
|
|
1500
|
-
...output,
|
|
1501
|
-
body: await parseErrorBody(output.body, context),
|
|
1502
|
-
};
|
|
1503
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1504
|
-
switch (errorCode) {
|
|
1505
|
-
case "DBClusterSnapshotNotFoundFault":
|
|
1506
|
-
case "com.amazonaws.docdb#DBClusterSnapshotNotFoundFault":
|
|
1507
|
-
throw await de_DBClusterSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
1508
|
-
default:
|
|
1509
|
-
const parsedBody = parsedOutput.body;
|
|
1510
|
-
return throwDefaultError({
|
|
1511
|
-
output,
|
|
1512
|
-
parsedBody: parsedBody.Error,
|
|
1513
|
-
errorCode,
|
|
1514
|
-
});
|
|
1515
|
-
}
|
|
1516
|
-
};
|
|
1517
839
|
export const de_DescribeDBClusterSnapshotsCommand = async (output, context) => {
|
|
1518
840
|
if (output.statusCode >= 300) {
|
|
1519
|
-
return
|
|
841
|
+
return de_CommandError(output, context);
|
|
1520
842
|
}
|
|
1521
843
|
const data = await parseBody(output.body, context);
|
|
1522
844
|
let contents = {};
|
|
@@ -1527,28 +849,9 @@ export const de_DescribeDBClusterSnapshotsCommand = async (output, context) => {
|
|
|
1527
849
|
};
|
|
1528
850
|
return response;
|
|
1529
851
|
};
|
|
1530
|
-
const de_DescribeDBClusterSnapshotsCommandError = async (output, context) => {
|
|
1531
|
-
const parsedOutput = {
|
|
1532
|
-
...output,
|
|
1533
|
-
body: await parseErrorBody(output.body, context),
|
|
1534
|
-
};
|
|
1535
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1536
|
-
switch (errorCode) {
|
|
1537
|
-
case "DBClusterSnapshotNotFoundFault":
|
|
1538
|
-
case "com.amazonaws.docdb#DBClusterSnapshotNotFoundFault":
|
|
1539
|
-
throw await de_DBClusterSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
1540
|
-
default:
|
|
1541
|
-
const parsedBody = parsedOutput.body;
|
|
1542
|
-
return throwDefaultError({
|
|
1543
|
-
output,
|
|
1544
|
-
parsedBody: parsedBody.Error,
|
|
1545
|
-
errorCode,
|
|
1546
|
-
});
|
|
1547
|
-
}
|
|
1548
|
-
};
|
|
1549
852
|
export const de_DescribeDBEngineVersionsCommand = async (output, context) => {
|
|
1550
853
|
if (output.statusCode >= 300) {
|
|
1551
|
-
return
|
|
854
|
+
return de_CommandError(output, context);
|
|
1552
855
|
}
|
|
1553
856
|
const data = await parseBody(output.body, context);
|
|
1554
857
|
let contents = {};
|
|
@@ -1559,22 +862,9 @@ export const de_DescribeDBEngineVersionsCommand = async (output, context) => {
|
|
|
1559
862
|
};
|
|
1560
863
|
return response;
|
|
1561
864
|
};
|
|
1562
|
-
const de_DescribeDBEngineVersionsCommandError = async (output, context) => {
|
|
1563
|
-
const parsedOutput = {
|
|
1564
|
-
...output,
|
|
1565
|
-
body: await parseErrorBody(output.body, context),
|
|
1566
|
-
};
|
|
1567
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1568
|
-
const parsedBody = parsedOutput.body;
|
|
1569
|
-
return throwDefaultError({
|
|
1570
|
-
output,
|
|
1571
|
-
parsedBody: parsedBody.Error,
|
|
1572
|
-
errorCode,
|
|
1573
|
-
});
|
|
1574
|
-
};
|
|
1575
865
|
export const de_DescribeDBInstancesCommand = async (output, context) => {
|
|
1576
866
|
if (output.statusCode >= 300) {
|
|
1577
|
-
return
|
|
867
|
+
return de_CommandError(output, context);
|
|
1578
868
|
}
|
|
1579
869
|
const data = await parseBody(output.body, context);
|
|
1580
870
|
let contents = {};
|
|
@@ -1585,28 +875,9 @@ export const de_DescribeDBInstancesCommand = async (output, context) => {
|
|
|
1585
875
|
};
|
|
1586
876
|
return response;
|
|
1587
877
|
};
|
|
1588
|
-
const de_DescribeDBInstancesCommandError = async (output, context) => {
|
|
1589
|
-
const parsedOutput = {
|
|
1590
|
-
...output,
|
|
1591
|
-
body: await parseErrorBody(output.body, context),
|
|
1592
|
-
};
|
|
1593
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1594
|
-
switch (errorCode) {
|
|
1595
|
-
case "DBInstanceNotFound":
|
|
1596
|
-
case "com.amazonaws.docdb#DBInstanceNotFoundFault":
|
|
1597
|
-
throw await de_DBInstanceNotFoundFaultRes(parsedOutput, context);
|
|
1598
|
-
default:
|
|
1599
|
-
const parsedBody = parsedOutput.body;
|
|
1600
|
-
return throwDefaultError({
|
|
1601
|
-
output,
|
|
1602
|
-
parsedBody: parsedBody.Error,
|
|
1603
|
-
errorCode,
|
|
1604
|
-
});
|
|
1605
|
-
}
|
|
1606
|
-
};
|
|
1607
878
|
export const de_DescribeDBSubnetGroupsCommand = async (output, context) => {
|
|
1608
879
|
if (output.statusCode >= 300) {
|
|
1609
|
-
return
|
|
880
|
+
return de_CommandError(output, context);
|
|
1610
881
|
}
|
|
1611
882
|
const data = await parseBody(output.body, context);
|
|
1612
883
|
let contents = {};
|
|
@@ -1617,28 +888,9 @@ export const de_DescribeDBSubnetGroupsCommand = async (output, context) => {
|
|
|
1617
888
|
};
|
|
1618
889
|
return response;
|
|
1619
890
|
};
|
|
1620
|
-
const de_DescribeDBSubnetGroupsCommandError = async (output, context) => {
|
|
1621
|
-
const parsedOutput = {
|
|
1622
|
-
...output,
|
|
1623
|
-
body: await parseErrorBody(output.body, context),
|
|
1624
|
-
};
|
|
1625
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1626
|
-
switch (errorCode) {
|
|
1627
|
-
case "DBSubnetGroupNotFoundFault":
|
|
1628
|
-
case "com.amazonaws.docdb#DBSubnetGroupNotFoundFault":
|
|
1629
|
-
throw await de_DBSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
1630
|
-
default:
|
|
1631
|
-
const parsedBody = parsedOutput.body;
|
|
1632
|
-
return throwDefaultError({
|
|
1633
|
-
output,
|
|
1634
|
-
parsedBody: parsedBody.Error,
|
|
1635
|
-
errorCode,
|
|
1636
|
-
});
|
|
1637
|
-
}
|
|
1638
|
-
};
|
|
1639
891
|
export const de_DescribeEngineDefaultClusterParametersCommand = async (output, context) => {
|
|
1640
892
|
if (output.statusCode >= 300) {
|
|
1641
|
-
return
|
|
893
|
+
return de_CommandError(output, context);
|
|
1642
894
|
}
|
|
1643
895
|
const data = await parseBody(output.body, context);
|
|
1644
896
|
let contents = {};
|
|
@@ -1649,22 +901,9 @@ export const de_DescribeEngineDefaultClusterParametersCommand = async (output, c
|
|
|
1649
901
|
};
|
|
1650
902
|
return response;
|
|
1651
903
|
};
|
|
1652
|
-
const de_DescribeEngineDefaultClusterParametersCommandError = async (output, context) => {
|
|
1653
|
-
const parsedOutput = {
|
|
1654
|
-
...output,
|
|
1655
|
-
body: await parseErrorBody(output.body, context),
|
|
1656
|
-
};
|
|
1657
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1658
|
-
const parsedBody = parsedOutput.body;
|
|
1659
|
-
return throwDefaultError({
|
|
1660
|
-
output,
|
|
1661
|
-
parsedBody: parsedBody.Error,
|
|
1662
|
-
errorCode,
|
|
1663
|
-
});
|
|
1664
|
-
};
|
|
1665
904
|
export const de_DescribeEventCategoriesCommand = async (output, context) => {
|
|
1666
905
|
if (output.statusCode >= 300) {
|
|
1667
|
-
return
|
|
906
|
+
return de_CommandError(output, context);
|
|
1668
907
|
}
|
|
1669
908
|
const data = await parseBody(output.body, context);
|
|
1670
909
|
let contents = {};
|
|
@@ -1675,22 +914,9 @@ export const de_DescribeEventCategoriesCommand = async (output, context) => {
|
|
|
1675
914
|
};
|
|
1676
915
|
return response;
|
|
1677
916
|
};
|
|
1678
|
-
const de_DescribeEventCategoriesCommandError = async (output, context) => {
|
|
1679
|
-
const parsedOutput = {
|
|
1680
|
-
...output,
|
|
1681
|
-
body: await parseErrorBody(output.body, context),
|
|
1682
|
-
};
|
|
1683
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1684
|
-
const parsedBody = parsedOutput.body;
|
|
1685
|
-
return throwDefaultError({
|
|
1686
|
-
output,
|
|
1687
|
-
parsedBody: parsedBody.Error,
|
|
1688
|
-
errorCode,
|
|
1689
|
-
});
|
|
1690
|
-
};
|
|
1691
917
|
export const de_DescribeEventsCommand = async (output, context) => {
|
|
1692
918
|
if (output.statusCode >= 300) {
|
|
1693
|
-
return
|
|
919
|
+
return de_CommandError(output, context);
|
|
1694
920
|
}
|
|
1695
921
|
const data = await parseBody(output.body, context);
|
|
1696
922
|
let contents = {};
|
|
@@ -1701,22 +927,9 @@ export const de_DescribeEventsCommand = async (output, context) => {
|
|
|
1701
927
|
};
|
|
1702
928
|
return response;
|
|
1703
929
|
};
|
|
1704
|
-
const de_DescribeEventsCommandError = async (output, context) => {
|
|
1705
|
-
const parsedOutput = {
|
|
1706
|
-
...output,
|
|
1707
|
-
body: await parseErrorBody(output.body, context),
|
|
1708
|
-
};
|
|
1709
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1710
|
-
const parsedBody = parsedOutput.body;
|
|
1711
|
-
return throwDefaultError({
|
|
1712
|
-
output,
|
|
1713
|
-
parsedBody: parsedBody.Error,
|
|
1714
|
-
errorCode,
|
|
1715
|
-
});
|
|
1716
|
-
};
|
|
1717
930
|
export const de_DescribeEventSubscriptionsCommand = async (output, context) => {
|
|
1718
931
|
if (output.statusCode >= 300) {
|
|
1719
|
-
return
|
|
932
|
+
return de_CommandError(output, context);
|
|
1720
933
|
}
|
|
1721
934
|
const data = await parseBody(output.body, context);
|
|
1722
935
|
let contents = {};
|
|
@@ -1727,28 +940,9 @@ export const de_DescribeEventSubscriptionsCommand = async (output, context) => {
|
|
|
1727
940
|
};
|
|
1728
941
|
return response;
|
|
1729
942
|
};
|
|
1730
|
-
const de_DescribeEventSubscriptionsCommandError = async (output, context) => {
|
|
1731
|
-
const parsedOutput = {
|
|
1732
|
-
...output,
|
|
1733
|
-
body: await parseErrorBody(output.body, context),
|
|
1734
|
-
};
|
|
1735
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1736
|
-
switch (errorCode) {
|
|
1737
|
-
case "SubscriptionNotFound":
|
|
1738
|
-
case "com.amazonaws.docdb#SubscriptionNotFoundFault":
|
|
1739
|
-
throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
|
|
1740
|
-
default:
|
|
1741
|
-
const parsedBody = parsedOutput.body;
|
|
1742
|
-
return throwDefaultError({
|
|
1743
|
-
output,
|
|
1744
|
-
parsedBody: parsedBody.Error,
|
|
1745
|
-
errorCode,
|
|
1746
|
-
});
|
|
1747
|
-
}
|
|
1748
|
-
};
|
|
1749
943
|
export const de_DescribeGlobalClustersCommand = async (output, context) => {
|
|
1750
944
|
if (output.statusCode >= 300) {
|
|
1751
|
-
return
|
|
945
|
+
return de_CommandError(output, context);
|
|
1752
946
|
}
|
|
1753
947
|
const data = await parseBody(output.body, context);
|
|
1754
948
|
let contents = {};
|
|
@@ -1759,28 +953,9 @@ export const de_DescribeGlobalClustersCommand = async (output, context) => {
|
|
|
1759
953
|
};
|
|
1760
954
|
return response;
|
|
1761
955
|
};
|
|
1762
|
-
const de_DescribeGlobalClustersCommandError = async (output, context) => {
|
|
1763
|
-
const parsedOutput = {
|
|
1764
|
-
...output,
|
|
1765
|
-
body: await parseErrorBody(output.body, context),
|
|
1766
|
-
};
|
|
1767
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1768
|
-
switch (errorCode) {
|
|
1769
|
-
case "GlobalClusterNotFoundFault":
|
|
1770
|
-
case "com.amazonaws.docdb#GlobalClusterNotFoundFault":
|
|
1771
|
-
throw await de_GlobalClusterNotFoundFaultRes(parsedOutput, context);
|
|
1772
|
-
default:
|
|
1773
|
-
const parsedBody = parsedOutput.body;
|
|
1774
|
-
return throwDefaultError({
|
|
1775
|
-
output,
|
|
1776
|
-
parsedBody: parsedBody.Error,
|
|
1777
|
-
errorCode,
|
|
1778
|
-
});
|
|
1779
|
-
}
|
|
1780
|
-
};
|
|
1781
956
|
export const de_DescribeOrderableDBInstanceOptionsCommand = async (output, context) => {
|
|
1782
957
|
if (output.statusCode >= 300) {
|
|
1783
|
-
return
|
|
958
|
+
return de_CommandError(output, context);
|
|
1784
959
|
}
|
|
1785
960
|
const data = await parseBody(output.body, context);
|
|
1786
961
|
let contents = {};
|
|
@@ -1791,22 +966,9 @@ export const de_DescribeOrderableDBInstanceOptionsCommand = async (output, conte
|
|
|
1791
966
|
};
|
|
1792
967
|
return response;
|
|
1793
968
|
};
|
|
1794
|
-
const de_DescribeOrderableDBInstanceOptionsCommandError = async (output, context) => {
|
|
1795
|
-
const parsedOutput = {
|
|
1796
|
-
...output,
|
|
1797
|
-
body: await parseErrorBody(output.body, context),
|
|
1798
|
-
};
|
|
1799
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1800
|
-
const parsedBody = parsedOutput.body;
|
|
1801
|
-
return throwDefaultError({
|
|
1802
|
-
output,
|
|
1803
|
-
parsedBody: parsedBody.Error,
|
|
1804
|
-
errorCode,
|
|
1805
|
-
});
|
|
1806
|
-
};
|
|
1807
969
|
export const de_DescribePendingMaintenanceActionsCommand = async (output, context) => {
|
|
1808
970
|
if (output.statusCode >= 300) {
|
|
1809
|
-
return
|
|
971
|
+
return de_CommandError(output, context);
|
|
1810
972
|
}
|
|
1811
973
|
const data = await parseBody(output.body, context);
|
|
1812
974
|
let contents = {};
|
|
@@ -1817,28 +979,9 @@ export const de_DescribePendingMaintenanceActionsCommand = async (output, contex
|
|
|
1817
979
|
};
|
|
1818
980
|
return response;
|
|
1819
981
|
};
|
|
1820
|
-
const de_DescribePendingMaintenanceActionsCommandError = async (output, context) => {
|
|
1821
|
-
const parsedOutput = {
|
|
1822
|
-
...output,
|
|
1823
|
-
body: await parseErrorBody(output.body, context),
|
|
1824
|
-
};
|
|
1825
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1826
|
-
switch (errorCode) {
|
|
1827
|
-
case "ResourceNotFoundFault":
|
|
1828
|
-
case "com.amazonaws.docdb#ResourceNotFoundFault":
|
|
1829
|
-
throw await de_ResourceNotFoundFaultRes(parsedOutput, context);
|
|
1830
|
-
default:
|
|
1831
|
-
const parsedBody = parsedOutput.body;
|
|
1832
|
-
return throwDefaultError({
|
|
1833
|
-
output,
|
|
1834
|
-
parsedBody: parsedBody.Error,
|
|
1835
|
-
errorCode,
|
|
1836
|
-
});
|
|
1837
|
-
}
|
|
1838
|
-
};
|
|
1839
982
|
export const de_FailoverDBClusterCommand = async (output, context) => {
|
|
1840
983
|
if (output.statusCode >= 300) {
|
|
1841
|
-
return
|
|
984
|
+
return de_CommandError(output, context);
|
|
1842
985
|
}
|
|
1843
986
|
const data = await parseBody(output.body, context);
|
|
1844
987
|
let contents = {};
|
|
@@ -1849,34 +992,9 @@ export const de_FailoverDBClusterCommand = async (output, context) => {
|
|
|
1849
992
|
};
|
|
1850
993
|
return response;
|
|
1851
994
|
};
|
|
1852
|
-
const de_FailoverDBClusterCommandError = async (output, context) => {
|
|
1853
|
-
const parsedOutput = {
|
|
1854
|
-
...output,
|
|
1855
|
-
body: await parseErrorBody(output.body, context),
|
|
1856
|
-
};
|
|
1857
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1858
|
-
switch (errorCode) {
|
|
1859
|
-
case "DBClusterNotFoundFault":
|
|
1860
|
-
case "com.amazonaws.docdb#DBClusterNotFoundFault":
|
|
1861
|
-
throw await de_DBClusterNotFoundFaultRes(parsedOutput, context);
|
|
1862
|
-
case "InvalidDBClusterStateFault":
|
|
1863
|
-
case "com.amazonaws.docdb#InvalidDBClusterStateFault":
|
|
1864
|
-
throw await de_InvalidDBClusterStateFaultRes(parsedOutput, context);
|
|
1865
|
-
case "InvalidDBInstanceState":
|
|
1866
|
-
case "com.amazonaws.docdb#InvalidDBInstanceStateFault":
|
|
1867
|
-
throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
|
|
1868
|
-
default:
|
|
1869
|
-
const parsedBody = parsedOutput.body;
|
|
1870
|
-
return throwDefaultError({
|
|
1871
|
-
output,
|
|
1872
|
-
parsedBody: parsedBody.Error,
|
|
1873
|
-
errorCode,
|
|
1874
|
-
});
|
|
1875
|
-
}
|
|
1876
|
-
};
|
|
1877
995
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1878
996
|
if (output.statusCode >= 300) {
|
|
1879
|
-
return
|
|
997
|
+
return de_CommandError(output, context);
|
|
1880
998
|
}
|
|
1881
999
|
const data = await parseBody(output.body, context);
|
|
1882
1000
|
let contents = {};
|
|
@@ -1887,34 +1005,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1887
1005
|
};
|
|
1888
1006
|
return response;
|
|
1889
1007
|
};
|
|
1890
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1891
|
-
const parsedOutput = {
|
|
1892
|
-
...output,
|
|
1893
|
-
body: await parseErrorBody(output.body, context),
|
|
1894
|
-
};
|
|
1895
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1896
|
-
switch (errorCode) {
|
|
1897
|
-
case "DBClusterNotFoundFault":
|
|
1898
|
-
case "com.amazonaws.docdb#DBClusterNotFoundFault":
|
|
1899
|
-
throw await de_DBClusterNotFoundFaultRes(parsedOutput, context);
|
|
1900
|
-
case "DBInstanceNotFound":
|
|
1901
|
-
case "com.amazonaws.docdb#DBInstanceNotFoundFault":
|
|
1902
|
-
throw await de_DBInstanceNotFoundFaultRes(parsedOutput, context);
|
|
1903
|
-
case "DBSnapshotNotFound":
|
|
1904
|
-
case "com.amazonaws.docdb#DBSnapshotNotFoundFault":
|
|
1905
|
-
throw await de_DBSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
1906
|
-
default:
|
|
1907
|
-
const parsedBody = parsedOutput.body;
|
|
1908
|
-
return throwDefaultError({
|
|
1909
|
-
output,
|
|
1910
|
-
parsedBody: parsedBody.Error,
|
|
1911
|
-
errorCode,
|
|
1912
|
-
});
|
|
1913
|
-
}
|
|
1914
|
-
};
|
|
1915
1008
|
export const de_ModifyDBClusterCommand = async (output, context) => {
|
|
1916
1009
|
if (output.statusCode >= 300) {
|
|
1917
|
-
return
|
|
1010
|
+
return de_CommandError(output, context);
|
|
1918
1011
|
}
|
|
1919
1012
|
const data = await parseBody(output.body, context);
|
|
1920
1013
|
let contents = {};
|
|
@@ -1925,58 +1018,9 @@ export const de_ModifyDBClusterCommand = async (output, context) => {
|
|
|
1925
1018
|
};
|
|
1926
1019
|
return response;
|
|
1927
1020
|
};
|
|
1928
|
-
const de_ModifyDBClusterCommandError = async (output, context) => {
|
|
1929
|
-
const parsedOutput = {
|
|
1930
|
-
...output,
|
|
1931
|
-
body: await parseErrorBody(output.body, context),
|
|
1932
|
-
};
|
|
1933
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1934
|
-
switch (errorCode) {
|
|
1935
|
-
case "DBClusterAlreadyExistsFault":
|
|
1936
|
-
case "com.amazonaws.docdb#DBClusterAlreadyExistsFault":
|
|
1937
|
-
throw await de_DBClusterAlreadyExistsFaultRes(parsedOutput, context);
|
|
1938
|
-
case "DBClusterNotFoundFault":
|
|
1939
|
-
case "com.amazonaws.docdb#DBClusterNotFoundFault":
|
|
1940
|
-
throw await de_DBClusterNotFoundFaultRes(parsedOutput, context);
|
|
1941
|
-
case "DBClusterParameterGroupNotFound":
|
|
1942
|
-
case "com.amazonaws.docdb#DBClusterParameterGroupNotFoundFault":
|
|
1943
|
-
throw await de_DBClusterParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1944
|
-
case "DBSubnetGroupNotFoundFault":
|
|
1945
|
-
case "com.amazonaws.docdb#DBSubnetGroupNotFoundFault":
|
|
1946
|
-
throw await de_DBSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
1947
|
-
case "InvalidDBClusterStateFault":
|
|
1948
|
-
case "com.amazonaws.docdb#InvalidDBClusterStateFault":
|
|
1949
|
-
throw await de_InvalidDBClusterStateFaultRes(parsedOutput, context);
|
|
1950
|
-
case "InvalidDBInstanceState":
|
|
1951
|
-
case "com.amazonaws.docdb#InvalidDBInstanceStateFault":
|
|
1952
|
-
throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
|
|
1953
|
-
case "InvalidDBSecurityGroupState":
|
|
1954
|
-
case "com.amazonaws.docdb#InvalidDBSecurityGroupStateFault":
|
|
1955
|
-
throw await de_InvalidDBSecurityGroupStateFaultRes(parsedOutput, context);
|
|
1956
|
-
case "InvalidDBSubnetGroupStateFault":
|
|
1957
|
-
case "com.amazonaws.docdb#InvalidDBSubnetGroupStateFault":
|
|
1958
|
-
throw await de_InvalidDBSubnetGroupStateFaultRes(parsedOutput, context);
|
|
1959
|
-
case "InvalidSubnet":
|
|
1960
|
-
case "com.amazonaws.docdb#InvalidSubnet":
|
|
1961
|
-
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
1962
|
-
case "InvalidVPCNetworkStateFault":
|
|
1963
|
-
case "com.amazonaws.docdb#InvalidVPCNetworkStateFault":
|
|
1964
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
1965
|
-
case "StorageQuotaExceeded":
|
|
1966
|
-
case "com.amazonaws.docdb#StorageQuotaExceededFault":
|
|
1967
|
-
throw await de_StorageQuotaExceededFaultRes(parsedOutput, context);
|
|
1968
|
-
default:
|
|
1969
|
-
const parsedBody = parsedOutput.body;
|
|
1970
|
-
return throwDefaultError({
|
|
1971
|
-
output,
|
|
1972
|
-
parsedBody: parsedBody.Error,
|
|
1973
|
-
errorCode,
|
|
1974
|
-
});
|
|
1975
|
-
}
|
|
1976
|
-
};
|
|
1977
1021
|
export const de_ModifyDBClusterParameterGroupCommand = async (output, context) => {
|
|
1978
1022
|
if (output.statusCode >= 300) {
|
|
1979
|
-
return
|
|
1023
|
+
return de_CommandError(output, context);
|
|
1980
1024
|
}
|
|
1981
1025
|
const data = await parseBody(output.body, context);
|
|
1982
1026
|
let contents = {};
|
|
@@ -1987,31 +1031,9 @@ export const de_ModifyDBClusterParameterGroupCommand = async (output, context) =
|
|
|
1987
1031
|
};
|
|
1988
1032
|
return response;
|
|
1989
1033
|
};
|
|
1990
|
-
const de_ModifyDBClusterParameterGroupCommandError = async (output, context) => {
|
|
1991
|
-
const parsedOutput = {
|
|
1992
|
-
...output,
|
|
1993
|
-
body: await parseErrorBody(output.body, context),
|
|
1994
|
-
};
|
|
1995
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1996
|
-
switch (errorCode) {
|
|
1997
|
-
case "DBParameterGroupNotFound":
|
|
1998
|
-
case "com.amazonaws.docdb#DBParameterGroupNotFoundFault":
|
|
1999
|
-
throw await de_DBParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
2000
|
-
case "InvalidDBParameterGroupState":
|
|
2001
|
-
case "com.amazonaws.docdb#InvalidDBParameterGroupStateFault":
|
|
2002
|
-
throw await de_InvalidDBParameterGroupStateFaultRes(parsedOutput, context);
|
|
2003
|
-
default:
|
|
2004
|
-
const parsedBody = parsedOutput.body;
|
|
2005
|
-
return throwDefaultError({
|
|
2006
|
-
output,
|
|
2007
|
-
parsedBody: parsedBody.Error,
|
|
2008
|
-
errorCode,
|
|
2009
|
-
});
|
|
2010
|
-
}
|
|
2011
|
-
};
|
|
2012
1034
|
export const de_ModifyDBClusterSnapshotAttributeCommand = async (output, context) => {
|
|
2013
1035
|
if (output.statusCode >= 300) {
|
|
2014
|
-
return
|
|
1036
|
+
return de_CommandError(output, context);
|
|
2015
1037
|
}
|
|
2016
1038
|
const data = await parseBody(output.body, context);
|
|
2017
1039
|
let contents = {};
|
|
@@ -2022,34 +1044,9 @@ export const de_ModifyDBClusterSnapshotAttributeCommand = async (output, context
|
|
|
2022
1044
|
};
|
|
2023
1045
|
return response;
|
|
2024
1046
|
};
|
|
2025
|
-
const de_ModifyDBClusterSnapshotAttributeCommandError = async (output, context) => {
|
|
2026
|
-
const parsedOutput = {
|
|
2027
|
-
...output,
|
|
2028
|
-
body: await parseErrorBody(output.body, context),
|
|
2029
|
-
};
|
|
2030
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2031
|
-
switch (errorCode) {
|
|
2032
|
-
case "DBClusterSnapshotNotFoundFault":
|
|
2033
|
-
case "com.amazonaws.docdb#DBClusterSnapshotNotFoundFault":
|
|
2034
|
-
throw await de_DBClusterSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
2035
|
-
case "InvalidDBClusterSnapshotStateFault":
|
|
2036
|
-
case "com.amazonaws.docdb#InvalidDBClusterSnapshotStateFault":
|
|
2037
|
-
throw await de_InvalidDBClusterSnapshotStateFaultRes(parsedOutput, context);
|
|
2038
|
-
case "SharedSnapshotQuotaExceeded":
|
|
2039
|
-
case "com.amazonaws.docdb#SharedSnapshotQuotaExceededFault":
|
|
2040
|
-
throw await de_SharedSnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
2041
|
-
default:
|
|
2042
|
-
const parsedBody = parsedOutput.body;
|
|
2043
|
-
return throwDefaultError({
|
|
2044
|
-
output,
|
|
2045
|
-
parsedBody: parsedBody.Error,
|
|
2046
|
-
errorCode,
|
|
2047
|
-
});
|
|
2048
|
-
}
|
|
2049
|
-
};
|
|
2050
1047
|
export const de_ModifyDBInstanceCommand = async (output, context) => {
|
|
2051
1048
|
if (output.statusCode >= 300) {
|
|
2052
|
-
return
|
|
1049
|
+
return de_CommandError(output, context);
|
|
2053
1050
|
}
|
|
2054
1051
|
const data = await parseBody(output.body, context);
|
|
2055
1052
|
let contents = {};
|
|
@@ -2060,64 +1057,9 @@ export const de_ModifyDBInstanceCommand = async (output, context) => {
|
|
|
2060
1057
|
};
|
|
2061
1058
|
return response;
|
|
2062
1059
|
};
|
|
2063
|
-
const de_ModifyDBInstanceCommandError = async (output, context) => {
|
|
2064
|
-
const parsedOutput = {
|
|
2065
|
-
...output,
|
|
2066
|
-
body: await parseErrorBody(output.body, context),
|
|
2067
|
-
};
|
|
2068
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2069
|
-
switch (errorCode) {
|
|
2070
|
-
case "AuthorizationNotFound":
|
|
2071
|
-
case "com.amazonaws.docdb#AuthorizationNotFoundFault":
|
|
2072
|
-
throw await de_AuthorizationNotFoundFaultRes(parsedOutput, context);
|
|
2073
|
-
case "CertificateNotFound":
|
|
2074
|
-
case "com.amazonaws.docdb#CertificateNotFoundFault":
|
|
2075
|
-
throw await de_CertificateNotFoundFaultRes(parsedOutput, context);
|
|
2076
|
-
case "DBInstanceAlreadyExists":
|
|
2077
|
-
case "com.amazonaws.docdb#DBInstanceAlreadyExistsFault":
|
|
2078
|
-
throw await de_DBInstanceAlreadyExistsFaultRes(parsedOutput, context);
|
|
2079
|
-
case "DBInstanceNotFound":
|
|
2080
|
-
case "com.amazonaws.docdb#DBInstanceNotFoundFault":
|
|
2081
|
-
throw await de_DBInstanceNotFoundFaultRes(parsedOutput, context);
|
|
2082
|
-
case "DBParameterGroupNotFound":
|
|
2083
|
-
case "com.amazonaws.docdb#DBParameterGroupNotFoundFault":
|
|
2084
|
-
throw await de_DBParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
2085
|
-
case "DBSecurityGroupNotFound":
|
|
2086
|
-
case "com.amazonaws.docdb#DBSecurityGroupNotFoundFault":
|
|
2087
|
-
throw await de_DBSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
2088
|
-
case "DBUpgradeDependencyFailure":
|
|
2089
|
-
case "com.amazonaws.docdb#DBUpgradeDependencyFailureFault":
|
|
2090
|
-
throw await de_DBUpgradeDependencyFailureFaultRes(parsedOutput, context);
|
|
2091
|
-
case "InsufficientDBInstanceCapacity":
|
|
2092
|
-
case "com.amazonaws.docdb#InsufficientDBInstanceCapacityFault":
|
|
2093
|
-
throw await de_InsufficientDBInstanceCapacityFaultRes(parsedOutput, context);
|
|
2094
|
-
case "InvalidDBInstanceState":
|
|
2095
|
-
case "com.amazonaws.docdb#InvalidDBInstanceStateFault":
|
|
2096
|
-
throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
|
|
2097
|
-
case "InvalidDBSecurityGroupState":
|
|
2098
|
-
case "com.amazonaws.docdb#InvalidDBSecurityGroupStateFault":
|
|
2099
|
-
throw await de_InvalidDBSecurityGroupStateFaultRes(parsedOutput, context);
|
|
2100
|
-
case "InvalidVPCNetworkStateFault":
|
|
2101
|
-
case "com.amazonaws.docdb#InvalidVPCNetworkStateFault":
|
|
2102
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
2103
|
-
case "StorageQuotaExceeded":
|
|
2104
|
-
case "com.amazonaws.docdb#StorageQuotaExceededFault":
|
|
2105
|
-
throw await de_StorageQuotaExceededFaultRes(parsedOutput, context);
|
|
2106
|
-
case "StorageTypeNotSupported":
|
|
2107
|
-
case "com.amazonaws.docdb#StorageTypeNotSupportedFault":
|
|
2108
|
-
throw await de_StorageTypeNotSupportedFaultRes(parsedOutput, context);
|
|
2109
|
-
default:
|
|
2110
|
-
const parsedBody = parsedOutput.body;
|
|
2111
|
-
return throwDefaultError({
|
|
2112
|
-
output,
|
|
2113
|
-
parsedBody: parsedBody.Error,
|
|
2114
|
-
errorCode,
|
|
2115
|
-
});
|
|
2116
|
-
}
|
|
2117
|
-
};
|
|
2118
1060
|
export const de_ModifyDBSubnetGroupCommand = async (output, context) => {
|
|
2119
1061
|
if (output.statusCode >= 300) {
|
|
2120
|
-
return
|
|
1062
|
+
return de_CommandError(output, context);
|
|
2121
1063
|
}
|
|
2122
1064
|
const data = await parseBody(output.body, context);
|
|
2123
1065
|
let contents = {};
|
|
@@ -2128,40 +1070,9 @@ export const de_ModifyDBSubnetGroupCommand = async (output, context) => {
|
|
|
2128
1070
|
};
|
|
2129
1071
|
return response;
|
|
2130
1072
|
};
|
|
2131
|
-
const de_ModifyDBSubnetGroupCommandError = async (output, context) => {
|
|
2132
|
-
const parsedOutput = {
|
|
2133
|
-
...output,
|
|
2134
|
-
body: await parseErrorBody(output.body, context),
|
|
2135
|
-
};
|
|
2136
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2137
|
-
switch (errorCode) {
|
|
2138
|
-
case "DBSubnetGroupDoesNotCoverEnoughAZs":
|
|
2139
|
-
case "com.amazonaws.docdb#DBSubnetGroupDoesNotCoverEnoughAZs":
|
|
2140
|
-
throw await de_DBSubnetGroupDoesNotCoverEnoughAZsRes(parsedOutput, context);
|
|
2141
|
-
case "DBSubnetGroupNotFoundFault":
|
|
2142
|
-
case "com.amazonaws.docdb#DBSubnetGroupNotFoundFault":
|
|
2143
|
-
throw await de_DBSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
2144
|
-
case "DBSubnetQuotaExceededFault":
|
|
2145
|
-
case "com.amazonaws.docdb#DBSubnetQuotaExceededFault":
|
|
2146
|
-
throw await de_DBSubnetQuotaExceededFaultRes(parsedOutput, context);
|
|
2147
|
-
case "InvalidSubnet":
|
|
2148
|
-
case "com.amazonaws.docdb#InvalidSubnet":
|
|
2149
|
-
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
2150
|
-
case "SubnetAlreadyInUse":
|
|
2151
|
-
case "com.amazonaws.docdb#SubnetAlreadyInUse":
|
|
2152
|
-
throw await de_SubnetAlreadyInUseRes(parsedOutput, context);
|
|
2153
|
-
default:
|
|
2154
|
-
const parsedBody = parsedOutput.body;
|
|
2155
|
-
return throwDefaultError({
|
|
2156
|
-
output,
|
|
2157
|
-
parsedBody: parsedBody.Error,
|
|
2158
|
-
errorCode,
|
|
2159
|
-
});
|
|
2160
|
-
}
|
|
2161
|
-
};
|
|
2162
1073
|
export const de_ModifyEventSubscriptionCommand = async (output, context) => {
|
|
2163
1074
|
if (output.statusCode >= 300) {
|
|
2164
|
-
return
|
|
1075
|
+
return de_CommandError(output, context);
|
|
2165
1076
|
}
|
|
2166
1077
|
const data = await parseBody(output.body, context);
|
|
2167
1078
|
let contents = {};
|
|
@@ -2172,43 +1083,9 @@ export const de_ModifyEventSubscriptionCommand = async (output, context) => {
|
|
|
2172
1083
|
};
|
|
2173
1084
|
return response;
|
|
2174
1085
|
};
|
|
2175
|
-
const de_ModifyEventSubscriptionCommandError = async (output, context) => {
|
|
2176
|
-
const parsedOutput = {
|
|
2177
|
-
...output,
|
|
2178
|
-
body: await parseErrorBody(output.body, context),
|
|
2179
|
-
};
|
|
2180
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2181
|
-
switch (errorCode) {
|
|
2182
|
-
case "EventSubscriptionQuotaExceeded":
|
|
2183
|
-
case "com.amazonaws.docdb#EventSubscriptionQuotaExceededFault":
|
|
2184
|
-
throw await de_EventSubscriptionQuotaExceededFaultRes(parsedOutput, context);
|
|
2185
|
-
case "SNSInvalidTopic":
|
|
2186
|
-
case "com.amazonaws.docdb#SNSInvalidTopicFault":
|
|
2187
|
-
throw await de_SNSInvalidTopicFaultRes(parsedOutput, context);
|
|
2188
|
-
case "SNSNoAuthorization":
|
|
2189
|
-
case "com.amazonaws.docdb#SNSNoAuthorizationFault":
|
|
2190
|
-
throw await de_SNSNoAuthorizationFaultRes(parsedOutput, context);
|
|
2191
|
-
case "SNSTopicArnNotFound":
|
|
2192
|
-
case "com.amazonaws.docdb#SNSTopicArnNotFoundFault":
|
|
2193
|
-
throw await de_SNSTopicArnNotFoundFaultRes(parsedOutput, context);
|
|
2194
|
-
case "SubscriptionCategoryNotFound":
|
|
2195
|
-
case "com.amazonaws.docdb#SubscriptionCategoryNotFoundFault":
|
|
2196
|
-
throw await de_SubscriptionCategoryNotFoundFaultRes(parsedOutput, context);
|
|
2197
|
-
case "SubscriptionNotFound":
|
|
2198
|
-
case "com.amazonaws.docdb#SubscriptionNotFoundFault":
|
|
2199
|
-
throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
|
|
2200
|
-
default:
|
|
2201
|
-
const parsedBody = parsedOutput.body;
|
|
2202
|
-
return throwDefaultError({
|
|
2203
|
-
output,
|
|
2204
|
-
parsedBody: parsedBody.Error,
|
|
2205
|
-
errorCode,
|
|
2206
|
-
});
|
|
2207
|
-
}
|
|
2208
|
-
};
|
|
2209
1086
|
export const de_ModifyGlobalClusterCommand = async (output, context) => {
|
|
2210
1087
|
if (output.statusCode >= 300) {
|
|
2211
|
-
return
|
|
1088
|
+
return de_CommandError(output, context);
|
|
2212
1089
|
}
|
|
2213
1090
|
const data = await parseBody(output.body, context);
|
|
2214
1091
|
let contents = {};
|
|
@@ -2219,31 +1096,9 @@ export const de_ModifyGlobalClusterCommand = async (output, context) => {
|
|
|
2219
1096
|
};
|
|
2220
1097
|
return response;
|
|
2221
1098
|
};
|
|
2222
|
-
const de_ModifyGlobalClusterCommandError = async (output, context) => {
|
|
2223
|
-
const parsedOutput = {
|
|
2224
|
-
...output,
|
|
2225
|
-
body: await parseErrorBody(output.body, context),
|
|
2226
|
-
};
|
|
2227
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2228
|
-
switch (errorCode) {
|
|
2229
|
-
case "GlobalClusterNotFoundFault":
|
|
2230
|
-
case "com.amazonaws.docdb#GlobalClusterNotFoundFault":
|
|
2231
|
-
throw await de_GlobalClusterNotFoundFaultRes(parsedOutput, context);
|
|
2232
|
-
case "InvalidGlobalClusterStateFault":
|
|
2233
|
-
case "com.amazonaws.docdb#InvalidGlobalClusterStateFault":
|
|
2234
|
-
throw await de_InvalidGlobalClusterStateFaultRes(parsedOutput, context);
|
|
2235
|
-
default:
|
|
2236
|
-
const parsedBody = parsedOutput.body;
|
|
2237
|
-
return throwDefaultError({
|
|
2238
|
-
output,
|
|
2239
|
-
parsedBody: parsedBody.Error,
|
|
2240
|
-
errorCode,
|
|
2241
|
-
});
|
|
2242
|
-
}
|
|
2243
|
-
};
|
|
2244
1099
|
export const de_RebootDBInstanceCommand = async (output, context) => {
|
|
2245
1100
|
if (output.statusCode >= 300) {
|
|
2246
|
-
return
|
|
1101
|
+
return de_CommandError(output, context);
|
|
2247
1102
|
}
|
|
2248
1103
|
const data = await parseBody(output.body, context);
|
|
2249
1104
|
let contents = {};
|
|
@@ -2254,31 +1109,9 @@ export const de_RebootDBInstanceCommand = async (output, context) => {
|
|
|
2254
1109
|
};
|
|
2255
1110
|
return response;
|
|
2256
1111
|
};
|
|
2257
|
-
const de_RebootDBInstanceCommandError = async (output, context) => {
|
|
2258
|
-
const parsedOutput = {
|
|
2259
|
-
...output,
|
|
2260
|
-
body: await parseErrorBody(output.body, context),
|
|
2261
|
-
};
|
|
2262
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2263
|
-
switch (errorCode) {
|
|
2264
|
-
case "DBInstanceNotFound":
|
|
2265
|
-
case "com.amazonaws.docdb#DBInstanceNotFoundFault":
|
|
2266
|
-
throw await de_DBInstanceNotFoundFaultRes(parsedOutput, context);
|
|
2267
|
-
case "InvalidDBInstanceState":
|
|
2268
|
-
case "com.amazonaws.docdb#InvalidDBInstanceStateFault":
|
|
2269
|
-
throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
|
|
2270
|
-
default:
|
|
2271
|
-
const parsedBody = parsedOutput.body;
|
|
2272
|
-
return throwDefaultError({
|
|
2273
|
-
output,
|
|
2274
|
-
parsedBody: parsedBody.Error,
|
|
2275
|
-
errorCode,
|
|
2276
|
-
});
|
|
2277
|
-
}
|
|
2278
|
-
};
|
|
2279
1112
|
export const de_RemoveFromGlobalClusterCommand = async (output, context) => {
|
|
2280
1113
|
if (output.statusCode >= 300) {
|
|
2281
|
-
return
|
|
1114
|
+
return de_CommandError(output, context);
|
|
2282
1115
|
}
|
|
2283
1116
|
const data = await parseBody(output.body, context);
|
|
2284
1117
|
let contents = {};
|
|
@@ -2289,34 +1122,9 @@ export const de_RemoveFromGlobalClusterCommand = async (output, context) => {
|
|
|
2289
1122
|
};
|
|
2290
1123
|
return response;
|
|
2291
1124
|
};
|
|
2292
|
-
const de_RemoveFromGlobalClusterCommandError = async (output, context) => {
|
|
2293
|
-
const parsedOutput = {
|
|
2294
|
-
...output,
|
|
2295
|
-
body: await parseErrorBody(output.body, context),
|
|
2296
|
-
};
|
|
2297
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2298
|
-
switch (errorCode) {
|
|
2299
|
-
case "DBClusterNotFoundFault":
|
|
2300
|
-
case "com.amazonaws.docdb#DBClusterNotFoundFault":
|
|
2301
|
-
throw await de_DBClusterNotFoundFaultRes(parsedOutput, context);
|
|
2302
|
-
case "GlobalClusterNotFoundFault":
|
|
2303
|
-
case "com.amazonaws.docdb#GlobalClusterNotFoundFault":
|
|
2304
|
-
throw await de_GlobalClusterNotFoundFaultRes(parsedOutput, context);
|
|
2305
|
-
case "InvalidGlobalClusterStateFault":
|
|
2306
|
-
case "com.amazonaws.docdb#InvalidGlobalClusterStateFault":
|
|
2307
|
-
throw await de_InvalidGlobalClusterStateFaultRes(parsedOutput, context);
|
|
2308
|
-
default:
|
|
2309
|
-
const parsedBody = parsedOutput.body;
|
|
2310
|
-
return throwDefaultError({
|
|
2311
|
-
output,
|
|
2312
|
-
parsedBody: parsedBody.Error,
|
|
2313
|
-
errorCode,
|
|
2314
|
-
});
|
|
2315
|
-
}
|
|
2316
|
-
};
|
|
2317
1125
|
export const de_RemoveSourceIdentifierFromSubscriptionCommand = async (output, context) => {
|
|
2318
1126
|
if (output.statusCode >= 300) {
|
|
2319
|
-
return
|
|
1127
|
+
return de_CommandError(output, context);
|
|
2320
1128
|
}
|
|
2321
1129
|
const data = await parseBody(output.body, context);
|
|
2322
1130
|
let contents = {};
|
|
@@ -2327,31 +1135,9 @@ export const de_RemoveSourceIdentifierFromSubscriptionCommand = async (output, c
|
|
|
2327
1135
|
};
|
|
2328
1136
|
return response;
|
|
2329
1137
|
};
|
|
2330
|
-
const de_RemoveSourceIdentifierFromSubscriptionCommandError = async (output, context) => {
|
|
2331
|
-
const parsedOutput = {
|
|
2332
|
-
...output,
|
|
2333
|
-
body: await parseErrorBody(output.body, context),
|
|
2334
|
-
};
|
|
2335
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2336
|
-
switch (errorCode) {
|
|
2337
|
-
case "SourceNotFound":
|
|
2338
|
-
case "com.amazonaws.docdb#SourceNotFoundFault":
|
|
2339
|
-
throw await de_SourceNotFoundFaultRes(parsedOutput, context);
|
|
2340
|
-
case "SubscriptionNotFound":
|
|
2341
|
-
case "com.amazonaws.docdb#SubscriptionNotFoundFault":
|
|
2342
|
-
throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
|
|
2343
|
-
default:
|
|
2344
|
-
const parsedBody = parsedOutput.body;
|
|
2345
|
-
return throwDefaultError({
|
|
2346
|
-
output,
|
|
2347
|
-
parsedBody: parsedBody.Error,
|
|
2348
|
-
errorCode,
|
|
2349
|
-
});
|
|
2350
|
-
}
|
|
2351
|
-
};
|
|
2352
1138
|
export const de_RemoveTagsFromResourceCommand = async (output, context) => {
|
|
2353
1139
|
if (output.statusCode >= 300) {
|
|
2354
|
-
return
|
|
1140
|
+
return de_CommandError(output, context);
|
|
2355
1141
|
}
|
|
2356
1142
|
await collectBody(output.body, context);
|
|
2357
1143
|
const response = {
|
|
@@ -2359,34 +1145,9 @@ export const de_RemoveTagsFromResourceCommand = async (output, context) => {
|
|
|
2359
1145
|
};
|
|
2360
1146
|
return response;
|
|
2361
1147
|
};
|
|
2362
|
-
const de_RemoveTagsFromResourceCommandError = async (output, context) => {
|
|
2363
|
-
const parsedOutput = {
|
|
2364
|
-
...output,
|
|
2365
|
-
body: await parseErrorBody(output.body, context),
|
|
2366
|
-
};
|
|
2367
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2368
|
-
switch (errorCode) {
|
|
2369
|
-
case "DBClusterNotFoundFault":
|
|
2370
|
-
case "com.amazonaws.docdb#DBClusterNotFoundFault":
|
|
2371
|
-
throw await de_DBClusterNotFoundFaultRes(parsedOutput, context);
|
|
2372
|
-
case "DBInstanceNotFound":
|
|
2373
|
-
case "com.amazonaws.docdb#DBInstanceNotFoundFault":
|
|
2374
|
-
throw await de_DBInstanceNotFoundFaultRes(parsedOutput, context);
|
|
2375
|
-
case "DBSnapshotNotFound":
|
|
2376
|
-
case "com.amazonaws.docdb#DBSnapshotNotFoundFault":
|
|
2377
|
-
throw await de_DBSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
2378
|
-
default:
|
|
2379
|
-
const parsedBody = parsedOutput.body;
|
|
2380
|
-
return throwDefaultError({
|
|
2381
|
-
output,
|
|
2382
|
-
parsedBody: parsedBody.Error,
|
|
2383
|
-
errorCode,
|
|
2384
|
-
});
|
|
2385
|
-
}
|
|
2386
|
-
};
|
|
2387
1148
|
export const de_ResetDBClusterParameterGroupCommand = async (output, context) => {
|
|
2388
1149
|
if (output.statusCode >= 300) {
|
|
2389
|
-
return
|
|
1150
|
+
return de_CommandError(output, context);
|
|
2390
1151
|
}
|
|
2391
1152
|
const data = await parseBody(output.body, context);
|
|
2392
1153
|
let contents = {};
|
|
@@ -2397,31 +1158,9 @@ export const de_ResetDBClusterParameterGroupCommand = async (output, context) =>
|
|
|
2397
1158
|
};
|
|
2398
1159
|
return response;
|
|
2399
1160
|
};
|
|
2400
|
-
const de_ResetDBClusterParameterGroupCommandError = async (output, context) => {
|
|
2401
|
-
const parsedOutput = {
|
|
2402
|
-
...output,
|
|
2403
|
-
body: await parseErrorBody(output.body, context),
|
|
2404
|
-
};
|
|
2405
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2406
|
-
switch (errorCode) {
|
|
2407
|
-
case "DBParameterGroupNotFound":
|
|
2408
|
-
case "com.amazonaws.docdb#DBParameterGroupNotFoundFault":
|
|
2409
|
-
throw await de_DBParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
2410
|
-
case "InvalidDBParameterGroupState":
|
|
2411
|
-
case "com.amazonaws.docdb#InvalidDBParameterGroupStateFault":
|
|
2412
|
-
throw await de_InvalidDBParameterGroupStateFaultRes(parsedOutput, context);
|
|
2413
|
-
default:
|
|
2414
|
-
const parsedBody = parsedOutput.body;
|
|
2415
|
-
return throwDefaultError({
|
|
2416
|
-
output,
|
|
2417
|
-
parsedBody: parsedBody.Error,
|
|
2418
|
-
errorCode,
|
|
2419
|
-
});
|
|
2420
|
-
}
|
|
2421
|
-
};
|
|
2422
1161
|
export const de_RestoreDBClusterFromSnapshotCommand = async (output, context) => {
|
|
2423
1162
|
if (output.statusCode >= 300) {
|
|
2424
|
-
return
|
|
1163
|
+
return de_CommandError(output, context);
|
|
2425
1164
|
}
|
|
2426
1165
|
const data = await parseBody(output.body, context);
|
|
2427
1166
|
let contents = {};
|
|
@@ -2432,67 +1171,9 @@ export const de_RestoreDBClusterFromSnapshotCommand = async (output, context) =>
|
|
|
2432
1171
|
};
|
|
2433
1172
|
return response;
|
|
2434
1173
|
};
|
|
2435
|
-
const de_RestoreDBClusterFromSnapshotCommandError = async (output, context) => {
|
|
2436
|
-
const parsedOutput = {
|
|
2437
|
-
...output,
|
|
2438
|
-
body: await parseErrorBody(output.body, context),
|
|
2439
|
-
};
|
|
2440
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2441
|
-
switch (errorCode) {
|
|
2442
|
-
case "DBClusterAlreadyExistsFault":
|
|
2443
|
-
case "com.amazonaws.docdb#DBClusterAlreadyExistsFault":
|
|
2444
|
-
throw await de_DBClusterAlreadyExistsFaultRes(parsedOutput, context);
|
|
2445
|
-
case "DBClusterQuotaExceededFault":
|
|
2446
|
-
case "com.amazonaws.docdb#DBClusterQuotaExceededFault":
|
|
2447
|
-
throw await de_DBClusterQuotaExceededFaultRes(parsedOutput, context);
|
|
2448
|
-
case "DBClusterSnapshotNotFoundFault":
|
|
2449
|
-
case "com.amazonaws.docdb#DBClusterSnapshotNotFoundFault":
|
|
2450
|
-
throw await de_DBClusterSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
2451
|
-
case "DBSnapshotNotFound":
|
|
2452
|
-
case "com.amazonaws.docdb#DBSnapshotNotFoundFault":
|
|
2453
|
-
throw await de_DBSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
2454
|
-
case "DBSubnetGroupNotFoundFault":
|
|
2455
|
-
case "com.amazonaws.docdb#DBSubnetGroupNotFoundFault":
|
|
2456
|
-
throw await de_DBSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
2457
|
-
case "InsufficientDBClusterCapacityFault":
|
|
2458
|
-
case "com.amazonaws.docdb#InsufficientDBClusterCapacityFault":
|
|
2459
|
-
throw await de_InsufficientDBClusterCapacityFaultRes(parsedOutput, context);
|
|
2460
|
-
case "InsufficientStorageClusterCapacity":
|
|
2461
|
-
case "com.amazonaws.docdb#InsufficientStorageClusterCapacityFault":
|
|
2462
|
-
throw await de_InsufficientStorageClusterCapacityFaultRes(parsedOutput, context);
|
|
2463
|
-
case "InvalidDBClusterSnapshotStateFault":
|
|
2464
|
-
case "com.amazonaws.docdb#InvalidDBClusterSnapshotStateFault":
|
|
2465
|
-
throw await de_InvalidDBClusterSnapshotStateFaultRes(parsedOutput, context);
|
|
2466
|
-
case "InvalidDBSnapshotState":
|
|
2467
|
-
case "com.amazonaws.docdb#InvalidDBSnapshotStateFault":
|
|
2468
|
-
throw await de_InvalidDBSnapshotStateFaultRes(parsedOutput, context);
|
|
2469
|
-
case "InvalidRestoreFault":
|
|
2470
|
-
case "com.amazonaws.docdb#InvalidRestoreFault":
|
|
2471
|
-
throw await de_InvalidRestoreFaultRes(parsedOutput, context);
|
|
2472
|
-
case "InvalidSubnet":
|
|
2473
|
-
case "com.amazonaws.docdb#InvalidSubnet":
|
|
2474
|
-
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
2475
|
-
case "InvalidVPCNetworkStateFault":
|
|
2476
|
-
case "com.amazonaws.docdb#InvalidVPCNetworkStateFault":
|
|
2477
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
2478
|
-
case "KMSKeyNotAccessibleFault":
|
|
2479
|
-
case "com.amazonaws.docdb#KMSKeyNotAccessibleFault":
|
|
2480
|
-
throw await de_KMSKeyNotAccessibleFaultRes(parsedOutput, context);
|
|
2481
|
-
case "StorageQuotaExceeded":
|
|
2482
|
-
case "com.amazonaws.docdb#StorageQuotaExceededFault":
|
|
2483
|
-
throw await de_StorageQuotaExceededFaultRes(parsedOutput, context);
|
|
2484
|
-
default:
|
|
2485
|
-
const parsedBody = parsedOutput.body;
|
|
2486
|
-
return throwDefaultError({
|
|
2487
|
-
output,
|
|
2488
|
-
parsedBody: parsedBody.Error,
|
|
2489
|
-
errorCode,
|
|
2490
|
-
});
|
|
2491
|
-
}
|
|
2492
|
-
};
|
|
2493
1174
|
export const de_RestoreDBClusterToPointInTimeCommand = async (output, context) => {
|
|
2494
1175
|
if (output.statusCode >= 300) {
|
|
2495
|
-
return
|
|
1176
|
+
return de_CommandError(output, context);
|
|
2496
1177
|
}
|
|
2497
1178
|
const data = await parseBody(output.body, context);
|
|
2498
1179
|
let contents = {};
|
|
@@ -2503,70 +1184,9 @@ export const de_RestoreDBClusterToPointInTimeCommand = async (output, context) =
|
|
|
2503
1184
|
};
|
|
2504
1185
|
return response;
|
|
2505
1186
|
};
|
|
2506
|
-
const de_RestoreDBClusterToPointInTimeCommandError = async (output, context) => {
|
|
2507
|
-
const parsedOutput = {
|
|
2508
|
-
...output,
|
|
2509
|
-
body: await parseErrorBody(output.body, context),
|
|
2510
|
-
};
|
|
2511
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2512
|
-
switch (errorCode) {
|
|
2513
|
-
case "DBClusterAlreadyExistsFault":
|
|
2514
|
-
case "com.amazonaws.docdb#DBClusterAlreadyExistsFault":
|
|
2515
|
-
throw await de_DBClusterAlreadyExistsFaultRes(parsedOutput, context);
|
|
2516
|
-
case "DBClusterNotFoundFault":
|
|
2517
|
-
case "com.amazonaws.docdb#DBClusterNotFoundFault":
|
|
2518
|
-
throw await de_DBClusterNotFoundFaultRes(parsedOutput, context);
|
|
2519
|
-
case "DBClusterQuotaExceededFault":
|
|
2520
|
-
case "com.amazonaws.docdb#DBClusterQuotaExceededFault":
|
|
2521
|
-
throw await de_DBClusterQuotaExceededFaultRes(parsedOutput, context);
|
|
2522
|
-
case "DBClusterSnapshotNotFoundFault":
|
|
2523
|
-
case "com.amazonaws.docdb#DBClusterSnapshotNotFoundFault":
|
|
2524
|
-
throw await de_DBClusterSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
2525
|
-
case "DBSubnetGroupNotFoundFault":
|
|
2526
|
-
case "com.amazonaws.docdb#DBSubnetGroupNotFoundFault":
|
|
2527
|
-
throw await de_DBSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
2528
|
-
case "InsufficientDBClusterCapacityFault":
|
|
2529
|
-
case "com.amazonaws.docdb#InsufficientDBClusterCapacityFault":
|
|
2530
|
-
throw await de_InsufficientDBClusterCapacityFaultRes(parsedOutput, context);
|
|
2531
|
-
case "InsufficientStorageClusterCapacity":
|
|
2532
|
-
case "com.amazonaws.docdb#InsufficientStorageClusterCapacityFault":
|
|
2533
|
-
throw await de_InsufficientStorageClusterCapacityFaultRes(parsedOutput, context);
|
|
2534
|
-
case "InvalidDBClusterSnapshotStateFault":
|
|
2535
|
-
case "com.amazonaws.docdb#InvalidDBClusterSnapshotStateFault":
|
|
2536
|
-
throw await de_InvalidDBClusterSnapshotStateFaultRes(parsedOutput, context);
|
|
2537
|
-
case "InvalidDBClusterStateFault":
|
|
2538
|
-
case "com.amazonaws.docdb#InvalidDBClusterStateFault":
|
|
2539
|
-
throw await de_InvalidDBClusterStateFaultRes(parsedOutput, context);
|
|
2540
|
-
case "InvalidDBSnapshotState":
|
|
2541
|
-
case "com.amazonaws.docdb#InvalidDBSnapshotStateFault":
|
|
2542
|
-
throw await de_InvalidDBSnapshotStateFaultRes(parsedOutput, context);
|
|
2543
|
-
case "InvalidRestoreFault":
|
|
2544
|
-
case "com.amazonaws.docdb#InvalidRestoreFault":
|
|
2545
|
-
throw await de_InvalidRestoreFaultRes(parsedOutput, context);
|
|
2546
|
-
case "InvalidSubnet":
|
|
2547
|
-
case "com.amazonaws.docdb#InvalidSubnet":
|
|
2548
|
-
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
2549
|
-
case "InvalidVPCNetworkStateFault":
|
|
2550
|
-
case "com.amazonaws.docdb#InvalidVPCNetworkStateFault":
|
|
2551
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
2552
|
-
case "KMSKeyNotAccessibleFault":
|
|
2553
|
-
case "com.amazonaws.docdb#KMSKeyNotAccessibleFault":
|
|
2554
|
-
throw await de_KMSKeyNotAccessibleFaultRes(parsedOutput, context);
|
|
2555
|
-
case "StorageQuotaExceeded":
|
|
2556
|
-
case "com.amazonaws.docdb#StorageQuotaExceededFault":
|
|
2557
|
-
throw await de_StorageQuotaExceededFaultRes(parsedOutput, context);
|
|
2558
|
-
default:
|
|
2559
|
-
const parsedBody = parsedOutput.body;
|
|
2560
|
-
return throwDefaultError({
|
|
2561
|
-
output,
|
|
2562
|
-
parsedBody: parsedBody.Error,
|
|
2563
|
-
errorCode,
|
|
2564
|
-
});
|
|
2565
|
-
}
|
|
2566
|
-
};
|
|
2567
1187
|
export const de_StartDBClusterCommand = async (output, context) => {
|
|
2568
1188
|
if (output.statusCode >= 300) {
|
|
2569
|
-
return
|
|
1189
|
+
return de_CommandError(output, context);
|
|
2570
1190
|
}
|
|
2571
1191
|
const data = await parseBody(output.body, context);
|
|
2572
1192
|
let contents = {};
|
|
@@ -2577,34 +1197,9 @@ export const de_StartDBClusterCommand = async (output, context) => {
|
|
|
2577
1197
|
};
|
|
2578
1198
|
return response;
|
|
2579
1199
|
};
|
|
2580
|
-
const de_StartDBClusterCommandError = async (output, context) => {
|
|
2581
|
-
const parsedOutput = {
|
|
2582
|
-
...output,
|
|
2583
|
-
body: await parseErrorBody(output.body, context),
|
|
2584
|
-
};
|
|
2585
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2586
|
-
switch (errorCode) {
|
|
2587
|
-
case "DBClusterNotFoundFault":
|
|
2588
|
-
case "com.amazonaws.docdb#DBClusterNotFoundFault":
|
|
2589
|
-
throw await de_DBClusterNotFoundFaultRes(parsedOutput, context);
|
|
2590
|
-
case "InvalidDBClusterStateFault":
|
|
2591
|
-
case "com.amazonaws.docdb#InvalidDBClusterStateFault":
|
|
2592
|
-
throw await de_InvalidDBClusterStateFaultRes(parsedOutput, context);
|
|
2593
|
-
case "InvalidDBInstanceState":
|
|
2594
|
-
case "com.amazonaws.docdb#InvalidDBInstanceStateFault":
|
|
2595
|
-
throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
|
|
2596
|
-
default:
|
|
2597
|
-
const parsedBody = parsedOutput.body;
|
|
2598
|
-
return throwDefaultError({
|
|
2599
|
-
output,
|
|
2600
|
-
parsedBody: parsedBody.Error,
|
|
2601
|
-
errorCode,
|
|
2602
|
-
});
|
|
2603
|
-
}
|
|
2604
|
-
};
|
|
2605
1200
|
export const de_StopDBClusterCommand = async (output, context) => {
|
|
2606
1201
|
if (output.statusCode >= 300) {
|
|
2607
|
-
return
|
|
1202
|
+
return de_CommandError(output, context);
|
|
2608
1203
|
}
|
|
2609
1204
|
const data = await parseBody(output.body, context);
|
|
2610
1205
|
let contents = {};
|
|
@@ -2615,22 +1210,184 @@ export const de_StopDBClusterCommand = async (output, context) => {
|
|
|
2615
1210
|
};
|
|
2616
1211
|
return response;
|
|
2617
1212
|
};
|
|
2618
|
-
const
|
|
1213
|
+
const de_CommandError = async (output, context) => {
|
|
2619
1214
|
const parsedOutput = {
|
|
2620
1215
|
...output,
|
|
2621
1216
|
body: await parseErrorBody(output.body, context),
|
|
2622
1217
|
};
|
|
2623
1218
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2624
1219
|
switch (errorCode) {
|
|
1220
|
+
case "SourceNotFound":
|
|
1221
|
+
case "com.amazonaws.docdb#SourceNotFoundFault":
|
|
1222
|
+
throw await de_SourceNotFoundFaultRes(parsedOutput, context);
|
|
1223
|
+
case "SubscriptionNotFound":
|
|
1224
|
+
case "com.amazonaws.docdb#SubscriptionNotFoundFault":
|
|
1225
|
+
throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
|
|
2625
1226
|
case "DBClusterNotFoundFault":
|
|
2626
1227
|
case "com.amazonaws.docdb#DBClusterNotFoundFault":
|
|
2627
1228
|
throw await de_DBClusterNotFoundFaultRes(parsedOutput, context);
|
|
1229
|
+
case "DBInstanceNotFound":
|
|
1230
|
+
case "com.amazonaws.docdb#DBInstanceNotFoundFault":
|
|
1231
|
+
throw await de_DBInstanceNotFoundFaultRes(parsedOutput, context);
|
|
1232
|
+
case "DBSnapshotNotFound":
|
|
1233
|
+
case "com.amazonaws.docdb#DBSnapshotNotFoundFault":
|
|
1234
|
+
throw await de_DBSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
2628
1235
|
case "InvalidDBClusterStateFault":
|
|
2629
1236
|
case "com.amazonaws.docdb#InvalidDBClusterStateFault":
|
|
2630
1237
|
throw await de_InvalidDBClusterStateFaultRes(parsedOutput, context);
|
|
2631
1238
|
case "InvalidDBInstanceState":
|
|
2632
1239
|
case "com.amazonaws.docdb#InvalidDBInstanceStateFault":
|
|
2633
1240
|
throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
|
|
1241
|
+
case "ResourceNotFoundFault":
|
|
1242
|
+
case "com.amazonaws.docdb#ResourceNotFoundFault":
|
|
1243
|
+
throw await de_ResourceNotFoundFaultRes(parsedOutput, context);
|
|
1244
|
+
case "DBParameterGroupAlreadyExists":
|
|
1245
|
+
case "com.amazonaws.docdb#DBParameterGroupAlreadyExistsFault":
|
|
1246
|
+
throw await de_DBParameterGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
1247
|
+
case "DBParameterGroupNotFound":
|
|
1248
|
+
case "com.amazonaws.docdb#DBParameterGroupNotFoundFault":
|
|
1249
|
+
throw await de_DBParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1250
|
+
case "DBParameterGroupQuotaExceeded":
|
|
1251
|
+
case "com.amazonaws.docdb#DBParameterGroupQuotaExceededFault":
|
|
1252
|
+
throw await de_DBParameterGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
1253
|
+
case "DBClusterSnapshotAlreadyExistsFault":
|
|
1254
|
+
case "com.amazonaws.docdb#DBClusterSnapshotAlreadyExistsFault":
|
|
1255
|
+
throw await de_DBClusterSnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
1256
|
+
case "DBClusterSnapshotNotFoundFault":
|
|
1257
|
+
case "com.amazonaws.docdb#DBClusterSnapshotNotFoundFault":
|
|
1258
|
+
throw await de_DBClusterSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
1259
|
+
case "InvalidDBClusterSnapshotStateFault":
|
|
1260
|
+
case "com.amazonaws.docdb#InvalidDBClusterSnapshotStateFault":
|
|
1261
|
+
throw await de_InvalidDBClusterSnapshotStateFaultRes(parsedOutput, context);
|
|
1262
|
+
case "KMSKeyNotAccessibleFault":
|
|
1263
|
+
case "com.amazonaws.docdb#KMSKeyNotAccessibleFault":
|
|
1264
|
+
throw await de_KMSKeyNotAccessibleFaultRes(parsedOutput, context);
|
|
1265
|
+
case "SnapshotQuotaExceeded":
|
|
1266
|
+
case "com.amazonaws.docdb#SnapshotQuotaExceededFault":
|
|
1267
|
+
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
1268
|
+
case "DBClusterAlreadyExistsFault":
|
|
1269
|
+
case "com.amazonaws.docdb#DBClusterAlreadyExistsFault":
|
|
1270
|
+
throw await de_DBClusterAlreadyExistsFaultRes(parsedOutput, context);
|
|
1271
|
+
case "DBClusterParameterGroupNotFound":
|
|
1272
|
+
case "com.amazonaws.docdb#DBClusterParameterGroupNotFoundFault":
|
|
1273
|
+
throw await de_DBClusterParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1274
|
+
case "DBClusterQuotaExceededFault":
|
|
1275
|
+
case "com.amazonaws.docdb#DBClusterQuotaExceededFault":
|
|
1276
|
+
throw await de_DBClusterQuotaExceededFaultRes(parsedOutput, context);
|
|
1277
|
+
case "DBSubnetGroupDoesNotCoverEnoughAZs":
|
|
1278
|
+
case "com.amazonaws.docdb#DBSubnetGroupDoesNotCoverEnoughAZs":
|
|
1279
|
+
throw await de_DBSubnetGroupDoesNotCoverEnoughAZsRes(parsedOutput, context);
|
|
1280
|
+
case "DBSubnetGroupNotFoundFault":
|
|
1281
|
+
case "com.amazonaws.docdb#DBSubnetGroupNotFoundFault":
|
|
1282
|
+
throw await de_DBSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
1283
|
+
case "GlobalClusterNotFoundFault":
|
|
1284
|
+
case "com.amazonaws.docdb#GlobalClusterNotFoundFault":
|
|
1285
|
+
throw await de_GlobalClusterNotFoundFaultRes(parsedOutput, context);
|
|
1286
|
+
case "InsufficientStorageClusterCapacity":
|
|
1287
|
+
case "com.amazonaws.docdb#InsufficientStorageClusterCapacityFault":
|
|
1288
|
+
throw await de_InsufficientStorageClusterCapacityFaultRes(parsedOutput, context);
|
|
1289
|
+
case "InvalidDBSubnetGroupStateFault":
|
|
1290
|
+
case "com.amazonaws.docdb#InvalidDBSubnetGroupStateFault":
|
|
1291
|
+
throw await de_InvalidDBSubnetGroupStateFaultRes(parsedOutput, context);
|
|
1292
|
+
case "InvalidGlobalClusterStateFault":
|
|
1293
|
+
case "com.amazonaws.docdb#InvalidGlobalClusterStateFault":
|
|
1294
|
+
throw await de_InvalidGlobalClusterStateFaultRes(parsedOutput, context);
|
|
1295
|
+
case "InvalidSubnet":
|
|
1296
|
+
case "com.amazonaws.docdb#InvalidSubnet":
|
|
1297
|
+
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
1298
|
+
case "InvalidVPCNetworkStateFault":
|
|
1299
|
+
case "com.amazonaws.docdb#InvalidVPCNetworkStateFault":
|
|
1300
|
+
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
1301
|
+
case "StorageQuotaExceeded":
|
|
1302
|
+
case "com.amazonaws.docdb#StorageQuotaExceededFault":
|
|
1303
|
+
throw await de_StorageQuotaExceededFaultRes(parsedOutput, context);
|
|
1304
|
+
case "AuthorizationNotFound":
|
|
1305
|
+
case "com.amazonaws.docdb#AuthorizationNotFoundFault":
|
|
1306
|
+
throw await de_AuthorizationNotFoundFaultRes(parsedOutput, context);
|
|
1307
|
+
case "DBInstanceAlreadyExists":
|
|
1308
|
+
case "com.amazonaws.docdb#DBInstanceAlreadyExistsFault":
|
|
1309
|
+
throw await de_DBInstanceAlreadyExistsFaultRes(parsedOutput, context);
|
|
1310
|
+
case "DBSecurityGroupNotFound":
|
|
1311
|
+
case "com.amazonaws.docdb#DBSecurityGroupNotFoundFault":
|
|
1312
|
+
throw await de_DBSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
1313
|
+
case "InstanceQuotaExceeded":
|
|
1314
|
+
case "com.amazonaws.docdb#InstanceQuotaExceededFault":
|
|
1315
|
+
throw await de_InstanceQuotaExceededFaultRes(parsedOutput, context);
|
|
1316
|
+
case "InsufficientDBInstanceCapacity":
|
|
1317
|
+
case "com.amazonaws.docdb#InsufficientDBInstanceCapacityFault":
|
|
1318
|
+
throw await de_InsufficientDBInstanceCapacityFaultRes(parsedOutput, context);
|
|
1319
|
+
case "StorageTypeNotSupported":
|
|
1320
|
+
case "com.amazonaws.docdb#StorageTypeNotSupportedFault":
|
|
1321
|
+
throw await de_StorageTypeNotSupportedFaultRes(parsedOutput, context);
|
|
1322
|
+
case "DBSubnetGroupAlreadyExists":
|
|
1323
|
+
case "com.amazonaws.docdb#DBSubnetGroupAlreadyExistsFault":
|
|
1324
|
+
throw await de_DBSubnetGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
1325
|
+
case "DBSubnetGroupQuotaExceeded":
|
|
1326
|
+
case "com.amazonaws.docdb#DBSubnetGroupQuotaExceededFault":
|
|
1327
|
+
throw await de_DBSubnetGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
1328
|
+
case "DBSubnetQuotaExceededFault":
|
|
1329
|
+
case "com.amazonaws.docdb#DBSubnetQuotaExceededFault":
|
|
1330
|
+
throw await de_DBSubnetQuotaExceededFaultRes(parsedOutput, context);
|
|
1331
|
+
case "EventSubscriptionQuotaExceeded":
|
|
1332
|
+
case "com.amazonaws.docdb#EventSubscriptionQuotaExceededFault":
|
|
1333
|
+
throw await de_EventSubscriptionQuotaExceededFaultRes(parsedOutput, context);
|
|
1334
|
+
case "SNSInvalidTopic":
|
|
1335
|
+
case "com.amazonaws.docdb#SNSInvalidTopicFault":
|
|
1336
|
+
throw await de_SNSInvalidTopicFaultRes(parsedOutput, context);
|
|
1337
|
+
case "SNSNoAuthorization":
|
|
1338
|
+
case "com.amazonaws.docdb#SNSNoAuthorizationFault":
|
|
1339
|
+
throw await de_SNSNoAuthorizationFaultRes(parsedOutput, context);
|
|
1340
|
+
case "SNSTopicArnNotFound":
|
|
1341
|
+
case "com.amazonaws.docdb#SNSTopicArnNotFoundFault":
|
|
1342
|
+
throw await de_SNSTopicArnNotFoundFaultRes(parsedOutput, context);
|
|
1343
|
+
case "SubscriptionAlreadyExist":
|
|
1344
|
+
case "com.amazonaws.docdb#SubscriptionAlreadyExistFault":
|
|
1345
|
+
throw await de_SubscriptionAlreadyExistFaultRes(parsedOutput, context);
|
|
1346
|
+
case "SubscriptionCategoryNotFound":
|
|
1347
|
+
case "com.amazonaws.docdb#SubscriptionCategoryNotFoundFault":
|
|
1348
|
+
throw await de_SubscriptionCategoryNotFoundFaultRes(parsedOutput, context);
|
|
1349
|
+
case "GlobalClusterAlreadyExistsFault":
|
|
1350
|
+
case "com.amazonaws.docdb#GlobalClusterAlreadyExistsFault":
|
|
1351
|
+
throw await de_GlobalClusterAlreadyExistsFaultRes(parsedOutput, context);
|
|
1352
|
+
case "GlobalClusterQuotaExceededFault":
|
|
1353
|
+
case "com.amazonaws.docdb#GlobalClusterQuotaExceededFault":
|
|
1354
|
+
throw await de_GlobalClusterQuotaExceededFaultRes(parsedOutput, context);
|
|
1355
|
+
case "InvalidDBParameterGroupState":
|
|
1356
|
+
case "com.amazonaws.docdb#InvalidDBParameterGroupStateFault":
|
|
1357
|
+
throw await de_InvalidDBParameterGroupStateFaultRes(parsedOutput, context);
|
|
1358
|
+
case "DBSnapshotAlreadyExists":
|
|
1359
|
+
case "com.amazonaws.docdb#DBSnapshotAlreadyExistsFault":
|
|
1360
|
+
throw await de_DBSnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
1361
|
+
case "InvalidDBSubnetStateFault":
|
|
1362
|
+
case "com.amazonaws.docdb#InvalidDBSubnetStateFault":
|
|
1363
|
+
throw await de_InvalidDBSubnetStateFaultRes(parsedOutput, context);
|
|
1364
|
+
case "InvalidEventSubscriptionState":
|
|
1365
|
+
case "com.amazonaws.docdb#InvalidEventSubscriptionStateFault":
|
|
1366
|
+
throw await de_InvalidEventSubscriptionStateFaultRes(parsedOutput, context);
|
|
1367
|
+
case "CertificateNotFound":
|
|
1368
|
+
case "com.amazonaws.docdb#CertificateNotFoundFault":
|
|
1369
|
+
throw await de_CertificateNotFoundFaultRes(parsedOutput, context);
|
|
1370
|
+
case "InvalidDBSecurityGroupState":
|
|
1371
|
+
case "com.amazonaws.docdb#InvalidDBSecurityGroupStateFault":
|
|
1372
|
+
throw await de_InvalidDBSecurityGroupStateFaultRes(parsedOutput, context);
|
|
1373
|
+
case "SharedSnapshotQuotaExceeded":
|
|
1374
|
+
case "com.amazonaws.docdb#SharedSnapshotQuotaExceededFault":
|
|
1375
|
+
throw await de_SharedSnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
1376
|
+
case "DBUpgradeDependencyFailure":
|
|
1377
|
+
case "com.amazonaws.docdb#DBUpgradeDependencyFailureFault":
|
|
1378
|
+
throw await de_DBUpgradeDependencyFailureFaultRes(parsedOutput, context);
|
|
1379
|
+
case "SubnetAlreadyInUse":
|
|
1380
|
+
case "com.amazonaws.docdb#SubnetAlreadyInUse":
|
|
1381
|
+
throw await de_SubnetAlreadyInUseRes(parsedOutput, context);
|
|
1382
|
+
case "InsufficientDBClusterCapacityFault":
|
|
1383
|
+
case "com.amazonaws.docdb#InsufficientDBClusterCapacityFault":
|
|
1384
|
+
throw await de_InsufficientDBClusterCapacityFaultRes(parsedOutput, context);
|
|
1385
|
+
case "InvalidDBSnapshotState":
|
|
1386
|
+
case "com.amazonaws.docdb#InvalidDBSnapshotStateFault":
|
|
1387
|
+
throw await de_InvalidDBSnapshotStateFaultRes(parsedOutput, context);
|
|
1388
|
+
case "InvalidRestoreFault":
|
|
1389
|
+
case "com.amazonaws.docdb#InvalidRestoreFault":
|
|
1390
|
+
throw await de_InvalidRestoreFaultRes(parsedOutput, context);
|
|
2634
1391
|
default:
|
|
2635
1392
|
const parsedBody = parsedOutput.body;
|
|
2636
1393
|
return throwDefaultError({
|