@aws-sdk/client-redshift-serverless 3.120.0 → 3.128.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/CHANGELOG.md +27 -0
- package/README.md +0 -6
- package/dist-cjs/protocols/Aws_json1_1.js +356 -440
- package/dist-es/protocols/Aws_json1_1.js +284 -368
- package/dist-types/RedshiftServerless.d.ts +1 -7
- package/dist-types/RedshiftServerlessClient.d.ts +1 -7
- package/package.json +26 -26
|
@@ -396,8 +396,7 @@ const deserializeAws_json1_1ConvertRecoveryPointToSnapshotCommandError = async (
|
|
|
396
396
|
body: await parseBody(output.body, context),
|
|
397
397
|
};
|
|
398
398
|
let response;
|
|
399
|
-
|
|
400
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
399
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
401
400
|
switch (errorCode) {
|
|
402
401
|
case "ConflictException":
|
|
403
402
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
@@ -416,10 +415,12 @@ const deserializeAws_json1_1ConvertRecoveryPointToSnapshotCommandError = async (
|
|
|
416
415
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
417
416
|
default:
|
|
418
417
|
const parsedBody = parsedOutput.body;
|
|
418
|
+
const $metadata = deserializeMetadata(output);
|
|
419
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
419
420
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
420
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
421
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
421
422
|
$fault: "client",
|
|
422
|
-
$metadata
|
|
423
|
+
$metadata,
|
|
423
424
|
});
|
|
424
425
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
425
426
|
}
|
|
@@ -444,8 +445,7 @@ const deserializeAws_json1_1CreateEndpointAccessCommandError = async (output, co
|
|
|
444
445
|
body: await parseBody(output.body, context),
|
|
445
446
|
};
|
|
446
447
|
let response;
|
|
447
|
-
|
|
448
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
448
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
449
449
|
switch (errorCode) {
|
|
450
450
|
case "AccessDeniedException":
|
|
451
451
|
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
@@ -467,10 +467,12 @@ const deserializeAws_json1_1CreateEndpointAccessCommandError = async (output, co
|
|
|
467
467
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
468
468
|
default:
|
|
469
469
|
const parsedBody = parsedOutput.body;
|
|
470
|
+
const $metadata = deserializeMetadata(output);
|
|
471
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
470
472
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
471
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
473
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
472
474
|
$fault: "client",
|
|
473
|
-
$metadata
|
|
475
|
+
$metadata,
|
|
474
476
|
});
|
|
475
477
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
476
478
|
}
|
|
@@ -495,8 +497,7 @@ const deserializeAws_json1_1CreateNamespaceCommandError = async (output, context
|
|
|
495
497
|
body: await parseBody(output.body, context),
|
|
496
498
|
};
|
|
497
499
|
let response;
|
|
498
|
-
|
|
499
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
500
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
500
501
|
switch (errorCode) {
|
|
501
502
|
case "ConflictException":
|
|
502
503
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
@@ -512,10 +513,12 @@ const deserializeAws_json1_1CreateNamespaceCommandError = async (output, context
|
|
|
512
513
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
513
514
|
default:
|
|
514
515
|
const parsedBody = parsedOutput.body;
|
|
516
|
+
const $metadata = deserializeMetadata(output);
|
|
517
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
515
518
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
516
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
519
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
517
520
|
$fault: "client",
|
|
518
|
-
$metadata
|
|
521
|
+
$metadata,
|
|
519
522
|
});
|
|
520
523
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
521
524
|
}
|
|
@@ -540,8 +543,7 @@ const deserializeAws_json1_1CreateSnapshotCommandError = async (output, context)
|
|
|
540
543
|
body: await parseBody(output.body, context),
|
|
541
544
|
};
|
|
542
545
|
let response;
|
|
543
|
-
|
|
544
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
546
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
545
547
|
switch (errorCode) {
|
|
546
548
|
case "ConflictException":
|
|
547
549
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
@@ -560,10 +562,12 @@ const deserializeAws_json1_1CreateSnapshotCommandError = async (output, context)
|
|
|
560
562
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
561
563
|
default:
|
|
562
564
|
const parsedBody = parsedOutput.body;
|
|
565
|
+
const $metadata = deserializeMetadata(output);
|
|
566
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
563
567
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
564
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
568
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
565
569
|
$fault: "client",
|
|
566
|
-
$metadata
|
|
570
|
+
$metadata,
|
|
567
571
|
});
|
|
568
572
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
569
573
|
}
|
|
@@ -588,8 +592,7 @@ const deserializeAws_json1_1CreateUsageLimitCommandError = async (output, contex
|
|
|
588
592
|
body: await parseBody(output.body, context),
|
|
589
593
|
};
|
|
590
594
|
let response;
|
|
591
|
-
|
|
592
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
595
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
593
596
|
switch (errorCode) {
|
|
594
597
|
case "ConflictException":
|
|
595
598
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
@@ -608,10 +611,12 @@ const deserializeAws_json1_1CreateUsageLimitCommandError = async (output, contex
|
|
|
608
611
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
609
612
|
default:
|
|
610
613
|
const parsedBody = parsedOutput.body;
|
|
614
|
+
const $metadata = deserializeMetadata(output);
|
|
615
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
611
616
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
612
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
617
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
613
618
|
$fault: "client",
|
|
614
|
-
$metadata
|
|
619
|
+
$metadata,
|
|
615
620
|
});
|
|
616
621
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
617
622
|
}
|
|
@@ -636,8 +641,7 @@ const deserializeAws_json1_1CreateWorkgroupCommandError = async (output, context
|
|
|
636
641
|
body: await parseBody(output.body, context),
|
|
637
642
|
};
|
|
638
643
|
let response;
|
|
639
|
-
|
|
640
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
644
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
641
645
|
switch (errorCode) {
|
|
642
646
|
case "ConflictException":
|
|
643
647
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
@@ -659,10 +663,12 @@ const deserializeAws_json1_1CreateWorkgroupCommandError = async (output, context
|
|
|
659
663
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
660
664
|
default:
|
|
661
665
|
const parsedBody = parsedOutput.body;
|
|
666
|
+
const $metadata = deserializeMetadata(output);
|
|
667
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
662
668
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
663
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
669
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
664
670
|
$fault: "client",
|
|
665
|
-
$metadata
|
|
671
|
+
$metadata,
|
|
666
672
|
});
|
|
667
673
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
668
674
|
}
|
|
@@ -687,8 +693,7 @@ const deserializeAws_json1_1DeleteEndpointAccessCommandError = async (output, co
|
|
|
687
693
|
body: await parseBody(output.body, context),
|
|
688
694
|
};
|
|
689
695
|
let response;
|
|
690
|
-
|
|
691
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
696
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
692
697
|
switch (errorCode) {
|
|
693
698
|
case "ConflictException":
|
|
694
699
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
@@ -704,10 +709,12 @@ const deserializeAws_json1_1DeleteEndpointAccessCommandError = async (output, co
|
|
|
704
709
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
705
710
|
default:
|
|
706
711
|
const parsedBody = parsedOutput.body;
|
|
712
|
+
const $metadata = deserializeMetadata(output);
|
|
713
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
707
714
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
708
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
715
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
709
716
|
$fault: "client",
|
|
710
|
-
$metadata
|
|
717
|
+
$metadata,
|
|
711
718
|
});
|
|
712
719
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
713
720
|
}
|
|
@@ -732,8 +739,7 @@ const deserializeAws_json1_1DeleteNamespaceCommandError = async (output, context
|
|
|
732
739
|
body: await parseBody(output.body, context),
|
|
733
740
|
};
|
|
734
741
|
let response;
|
|
735
|
-
|
|
736
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
742
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
737
743
|
switch (errorCode) {
|
|
738
744
|
case "ConflictException":
|
|
739
745
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
@@ -749,10 +755,12 @@ const deserializeAws_json1_1DeleteNamespaceCommandError = async (output, context
|
|
|
749
755
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
750
756
|
default:
|
|
751
757
|
const parsedBody = parsedOutput.body;
|
|
758
|
+
const $metadata = deserializeMetadata(output);
|
|
759
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
752
760
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
753
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
761
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
754
762
|
$fault: "client",
|
|
755
|
-
$metadata
|
|
763
|
+
$metadata,
|
|
756
764
|
});
|
|
757
765
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
758
766
|
}
|
|
@@ -777,8 +785,7 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
777
785
|
body: await parseBody(output.body, context),
|
|
778
786
|
};
|
|
779
787
|
let response;
|
|
780
|
-
|
|
781
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
788
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
782
789
|
switch (errorCode) {
|
|
783
790
|
case "InternalServerException":
|
|
784
791
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
@@ -791,10 +798,12 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
791
798
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
792
799
|
default:
|
|
793
800
|
const parsedBody = parsedOutput.body;
|
|
801
|
+
const $metadata = deserializeMetadata(output);
|
|
802
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
794
803
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
795
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
804
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
796
805
|
$fault: "client",
|
|
797
|
-
$metadata
|
|
806
|
+
$metadata,
|
|
798
807
|
});
|
|
799
808
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
800
809
|
}
|
|
@@ -819,8 +828,7 @@ const deserializeAws_json1_1DeleteSnapshotCommandError = async (output, context)
|
|
|
819
828
|
body: await parseBody(output.body, context),
|
|
820
829
|
};
|
|
821
830
|
let response;
|
|
822
|
-
|
|
823
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
831
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
824
832
|
switch (errorCode) {
|
|
825
833
|
case "ConflictException":
|
|
826
834
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
@@ -836,10 +844,12 @@ const deserializeAws_json1_1DeleteSnapshotCommandError = async (output, context)
|
|
|
836
844
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
837
845
|
default:
|
|
838
846
|
const parsedBody = parsedOutput.body;
|
|
847
|
+
const $metadata = deserializeMetadata(output);
|
|
848
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
839
849
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
840
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
850
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
841
851
|
$fault: "client",
|
|
842
|
-
$metadata
|
|
852
|
+
$metadata,
|
|
843
853
|
});
|
|
844
854
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
845
855
|
}
|
|
@@ -864,8 +874,7 @@ const deserializeAws_json1_1DeleteUsageLimitCommandError = async (output, contex
|
|
|
864
874
|
body: await parseBody(output.body, context),
|
|
865
875
|
};
|
|
866
876
|
let response;
|
|
867
|
-
|
|
868
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
877
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
869
878
|
switch (errorCode) {
|
|
870
879
|
case "ConflictException":
|
|
871
880
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
@@ -881,10 +890,12 @@ const deserializeAws_json1_1DeleteUsageLimitCommandError = async (output, contex
|
|
|
881
890
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
882
891
|
default:
|
|
883
892
|
const parsedBody = parsedOutput.body;
|
|
893
|
+
const $metadata = deserializeMetadata(output);
|
|
894
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
884
895
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
885
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
896
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
886
897
|
$fault: "client",
|
|
887
|
-
$metadata
|
|
898
|
+
$metadata,
|
|
888
899
|
});
|
|
889
900
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
890
901
|
}
|
|
@@ -909,8 +920,7 @@ const deserializeAws_json1_1DeleteWorkgroupCommandError = async (output, context
|
|
|
909
920
|
body: await parseBody(output.body, context),
|
|
910
921
|
};
|
|
911
922
|
let response;
|
|
912
|
-
|
|
913
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
923
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
914
924
|
switch (errorCode) {
|
|
915
925
|
case "ConflictException":
|
|
916
926
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
@@ -926,10 +936,12 @@ const deserializeAws_json1_1DeleteWorkgroupCommandError = async (output, context
|
|
|
926
936
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
927
937
|
default:
|
|
928
938
|
const parsedBody = parsedOutput.body;
|
|
939
|
+
const $metadata = deserializeMetadata(output);
|
|
940
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
929
941
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
930
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
942
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
931
943
|
$fault: "client",
|
|
932
|
-
$metadata
|
|
944
|
+
$metadata,
|
|
933
945
|
});
|
|
934
946
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
935
947
|
}
|
|
@@ -954,8 +966,7 @@ const deserializeAws_json1_1GetCredentialsCommandError = async (output, context)
|
|
|
954
966
|
body: await parseBody(output.body, context),
|
|
955
967
|
};
|
|
956
968
|
let response;
|
|
957
|
-
|
|
958
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
969
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
959
970
|
switch (errorCode) {
|
|
960
971
|
case "InternalServerException":
|
|
961
972
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
@@ -968,10 +979,12 @@ const deserializeAws_json1_1GetCredentialsCommandError = async (output, context)
|
|
|
968
979
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
969
980
|
default:
|
|
970
981
|
const parsedBody = parsedOutput.body;
|
|
982
|
+
const $metadata = deserializeMetadata(output);
|
|
983
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
971
984
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
972
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
985
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
973
986
|
$fault: "client",
|
|
974
|
-
$metadata
|
|
987
|
+
$metadata,
|
|
975
988
|
});
|
|
976
989
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
977
990
|
}
|
|
@@ -996,8 +1009,7 @@ const deserializeAws_json1_1GetEndpointAccessCommandError = async (output, conte
|
|
|
996
1009
|
body: await parseBody(output.body, context),
|
|
997
1010
|
};
|
|
998
1011
|
let response;
|
|
999
|
-
|
|
1000
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1012
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1001
1013
|
switch (errorCode) {
|
|
1002
1014
|
case "ConflictException":
|
|
1003
1015
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
@@ -1013,10 +1025,12 @@ const deserializeAws_json1_1GetEndpointAccessCommandError = async (output, conte
|
|
|
1013
1025
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1014
1026
|
default:
|
|
1015
1027
|
const parsedBody = parsedOutput.body;
|
|
1028
|
+
const $metadata = deserializeMetadata(output);
|
|
1029
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1016
1030
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1017
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1031
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1018
1032
|
$fault: "client",
|
|
1019
|
-
$metadata
|
|
1033
|
+
$metadata,
|
|
1020
1034
|
});
|
|
1021
1035
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1022
1036
|
}
|
|
@@ -1041,8 +1055,7 @@ const deserializeAws_json1_1GetNamespaceCommandError = async (output, context) =
|
|
|
1041
1055
|
body: await parseBody(output.body, context),
|
|
1042
1056
|
};
|
|
1043
1057
|
let response;
|
|
1044
|
-
|
|
1045
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1058
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1046
1059
|
switch (errorCode) {
|
|
1047
1060
|
case "InternalServerException":
|
|
1048
1061
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
@@ -1055,10 +1068,12 @@ const deserializeAws_json1_1GetNamespaceCommandError = async (output, context) =
|
|
|
1055
1068
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1056
1069
|
default:
|
|
1057
1070
|
const parsedBody = parsedOutput.body;
|
|
1071
|
+
const $metadata = deserializeMetadata(output);
|
|
1072
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1058
1073
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1059
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1074
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1060
1075
|
$fault: "client",
|
|
1061
|
-
$metadata
|
|
1076
|
+
$metadata,
|
|
1062
1077
|
});
|
|
1063
1078
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1064
1079
|
}
|
|
@@ -1083,8 +1098,7 @@ const deserializeAws_json1_1GetRecoveryPointCommandError = async (output, contex
|
|
|
1083
1098
|
body: await parseBody(output.body, context),
|
|
1084
1099
|
};
|
|
1085
1100
|
let response;
|
|
1086
|
-
|
|
1087
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1101
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1088
1102
|
switch (errorCode) {
|
|
1089
1103
|
case "ConflictException":
|
|
1090
1104
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
@@ -1100,10 +1114,12 @@ const deserializeAws_json1_1GetRecoveryPointCommandError = async (output, contex
|
|
|
1100
1114
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1101
1115
|
default:
|
|
1102
1116
|
const parsedBody = parsedOutput.body;
|
|
1117
|
+
const $metadata = deserializeMetadata(output);
|
|
1118
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1103
1119
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1104
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1120
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1105
1121
|
$fault: "client",
|
|
1106
|
-
$metadata
|
|
1122
|
+
$metadata,
|
|
1107
1123
|
});
|
|
1108
1124
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1109
1125
|
}
|
|
@@ -1128,8 +1144,7 @@ const deserializeAws_json1_1GetResourcePolicyCommandError = async (output, conte
|
|
|
1128
1144
|
body: await parseBody(output.body, context),
|
|
1129
1145
|
};
|
|
1130
1146
|
let response;
|
|
1131
|
-
|
|
1132
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1147
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1133
1148
|
switch (errorCode) {
|
|
1134
1149
|
case "InternalServerException":
|
|
1135
1150
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
@@ -1142,10 +1157,12 @@ const deserializeAws_json1_1GetResourcePolicyCommandError = async (output, conte
|
|
|
1142
1157
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1143
1158
|
default:
|
|
1144
1159
|
const parsedBody = parsedOutput.body;
|
|
1160
|
+
const $metadata = deserializeMetadata(output);
|
|
1161
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1145
1162
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1146
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1163
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1147
1164
|
$fault: "client",
|
|
1148
|
-
$metadata
|
|
1165
|
+
$metadata,
|
|
1149
1166
|
});
|
|
1150
1167
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1151
1168
|
}
|
|
@@ -1170,8 +1187,7 @@ const deserializeAws_json1_1GetSnapshotCommandError = async (output, context) =>
|
|
|
1170
1187
|
body: await parseBody(output.body, context),
|
|
1171
1188
|
};
|
|
1172
1189
|
let response;
|
|
1173
|
-
|
|
1174
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1190
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1175
1191
|
switch (errorCode) {
|
|
1176
1192
|
case "InternalServerException":
|
|
1177
1193
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
@@ -1184,10 +1200,12 @@ const deserializeAws_json1_1GetSnapshotCommandError = async (output, context) =>
|
|
|
1184
1200
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1185
1201
|
default:
|
|
1186
1202
|
const parsedBody = parsedOutput.body;
|
|
1203
|
+
const $metadata = deserializeMetadata(output);
|
|
1204
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1187
1205
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1188
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1206
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1189
1207
|
$fault: "client",
|
|
1190
|
-
$metadata
|
|
1208
|
+
$metadata,
|
|
1191
1209
|
});
|
|
1192
1210
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1193
1211
|
}
|
|
@@ -1212,8 +1230,7 @@ const deserializeAws_json1_1GetUsageLimitCommandError = async (output, context)
|
|
|
1212
1230
|
body: await parseBody(output.body, context),
|
|
1213
1231
|
};
|
|
1214
1232
|
let response;
|
|
1215
|
-
|
|
1216
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1233
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1217
1234
|
switch (errorCode) {
|
|
1218
1235
|
case "ConflictException":
|
|
1219
1236
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
@@ -1229,10 +1246,12 @@ const deserializeAws_json1_1GetUsageLimitCommandError = async (output, context)
|
|
|
1229
1246
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1230
1247
|
default:
|
|
1231
1248
|
const parsedBody = parsedOutput.body;
|
|
1249
|
+
const $metadata = deserializeMetadata(output);
|
|
1250
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1232
1251
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1233
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1252
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1234
1253
|
$fault: "client",
|
|
1235
|
-
$metadata
|
|
1254
|
+
$metadata,
|
|
1236
1255
|
});
|
|
1237
1256
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1238
1257
|
}
|
|
@@ -1257,8 +1276,7 @@ const deserializeAws_json1_1GetWorkgroupCommandError = async (output, context) =
|
|
|
1257
1276
|
body: await parseBody(output.body, context),
|
|
1258
1277
|
};
|
|
1259
1278
|
let response;
|
|
1260
|
-
|
|
1261
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1279
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1262
1280
|
switch (errorCode) {
|
|
1263
1281
|
case "InternalServerException":
|
|
1264
1282
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
@@ -1271,10 +1289,12 @@ const deserializeAws_json1_1GetWorkgroupCommandError = async (output, context) =
|
|
|
1271
1289
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1272
1290
|
default:
|
|
1273
1291
|
const parsedBody = parsedOutput.body;
|
|
1292
|
+
const $metadata = deserializeMetadata(output);
|
|
1293
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1274
1294
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1275
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1295
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1276
1296
|
$fault: "client",
|
|
1277
|
-
$metadata
|
|
1297
|
+
$metadata,
|
|
1278
1298
|
});
|
|
1279
1299
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1280
1300
|
}
|
|
@@ -1299,8 +1319,7 @@ const deserializeAws_json1_1ListEndpointAccessCommandError = async (output, cont
|
|
|
1299
1319
|
body: await parseBody(output.body, context),
|
|
1300
1320
|
};
|
|
1301
1321
|
let response;
|
|
1302
|
-
|
|
1303
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1322
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1304
1323
|
switch (errorCode) {
|
|
1305
1324
|
case "ConflictException":
|
|
1306
1325
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
@@ -1316,10 +1335,12 @@ const deserializeAws_json1_1ListEndpointAccessCommandError = async (output, cont
|
|
|
1316
1335
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1317
1336
|
default:
|
|
1318
1337
|
const parsedBody = parsedOutput.body;
|
|
1338
|
+
const $metadata = deserializeMetadata(output);
|
|
1339
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1319
1340
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1320
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1341
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1321
1342
|
$fault: "client",
|
|
1322
|
-
$metadata
|
|
1343
|
+
$metadata,
|
|
1323
1344
|
});
|
|
1324
1345
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1325
1346
|
}
|
|
@@ -1344,8 +1365,7 @@ const deserializeAws_json1_1ListNamespacesCommandError = async (output, context)
|
|
|
1344
1365
|
body: await parseBody(output.body, context),
|
|
1345
1366
|
};
|
|
1346
1367
|
let response;
|
|
1347
|
-
|
|
1348
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1368
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1349
1369
|
switch (errorCode) {
|
|
1350
1370
|
case "InternalServerException":
|
|
1351
1371
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
@@ -1355,10 +1375,12 @@ const deserializeAws_json1_1ListNamespacesCommandError = async (output, context)
|
|
|
1355
1375
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1356
1376
|
default:
|
|
1357
1377
|
const parsedBody = parsedOutput.body;
|
|
1378
|
+
const $metadata = deserializeMetadata(output);
|
|
1379
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1358
1380
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1359
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1381
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1360
1382
|
$fault: "client",
|
|
1361
|
-
$metadata
|
|
1383
|
+
$metadata,
|
|
1362
1384
|
});
|
|
1363
1385
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1364
1386
|
}
|
|
@@ -1383,8 +1405,7 @@ const deserializeAws_json1_1ListRecoveryPointsCommandError = async (output, cont
|
|
|
1383
1405
|
body: await parseBody(output.body, context),
|
|
1384
1406
|
};
|
|
1385
1407
|
let response;
|
|
1386
|
-
|
|
1387
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1408
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1388
1409
|
switch (errorCode) {
|
|
1389
1410
|
case "InternalServerException":
|
|
1390
1411
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
@@ -1394,10 +1415,12 @@ const deserializeAws_json1_1ListRecoveryPointsCommandError = async (output, cont
|
|
|
1394
1415
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1395
1416
|
default:
|
|
1396
1417
|
const parsedBody = parsedOutput.body;
|
|
1418
|
+
const $metadata = deserializeMetadata(output);
|
|
1419
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1397
1420
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1398
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1421
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1399
1422
|
$fault: "client",
|
|
1400
|
-
$metadata
|
|
1423
|
+
$metadata,
|
|
1401
1424
|
});
|
|
1402
1425
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1403
1426
|
}
|
|
@@ -1422,8 +1445,7 @@ const deserializeAws_json1_1ListSnapshotsCommandError = async (output, context)
|
|
|
1422
1445
|
body: await parseBody(output.body, context),
|
|
1423
1446
|
};
|
|
1424
1447
|
let response;
|
|
1425
|
-
|
|
1426
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1448
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1427
1449
|
switch (errorCode) {
|
|
1428
1450
|
case "InternalServerException":
|
|
1429
1451
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
@@ -1436,10 +1458,12 @@ const deserializeAws_json1_1ListSnapshotsCommandError = async (output, context)
|
|
|
1436
1458
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1437
1459
|
default:
|
|
1438
1460
|
const parsedBody = parsedOutput.body;
|
|
1461
|
+
const $metadata = deserializeMetadata(output);
|
|
1462
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1439
1463
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1440
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1464
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1441
1465
|
$fault: "client",
|
|
1442
|
-
$metadata
|
|
1466
|
+
$metadata,
|
|
1443
1467
|
});
|
|
1444
1468
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1445
1469
|
}
|
|
@@ -1464,8 +1488,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1464
1488
|
body: await parseBody(output.body, context),
|
|
1465
1489
|
};
|
|
1466
1490
|
let response;
|
|
1467
|
-
|
|
1468
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1491
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1469
1492
|
switch (errorCode) {
|
|
1470
1493
|
case "InternalServerException":
|
|
1471
1494
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
@@ -1481,10 +1504,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1481
1504
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1482
1505
|
default:
|
|
1483
1506
|
const parsedBody = parsedOutput.body;
|
|
1507
|
+
const $metadata = deserializeMetadata(output);
|
|
1508
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1484
1509
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1485
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1510
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1486
1511
|
$fault: "client",
|
|
1487
|
-
$metadata
|
|
1512
|
+
$metadata,
|
|
1488
1513
|
});
|
|
1489
1514
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1490
1515
|
}
|
|
@@ -1509,8 +1534,7 @@ const deserializeAws_json1_1ListUsageLimitsCommandError = async (output, context
|
|
|
1509
1534
|
body: await parseBody(output.body, context),
|
|
1510
1535
|
};
|
|
1511
1536
|
let response;
|
|
1512
|
-
|
|
1513
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1537
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1514
1538
|
switch (errorCode) {
|
|
1515
1539
|
case "ConflictException":
|
|
1516
1540
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
@@ -1529,10 +1553,12 @@ const deserializeAws_json1_1ListUsageLimitsCommandError = async (output, context
|
|
|
1529
1553
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1530
1554
|
default:
|
|
1531
1555
|
const parsedBody = parsedOutput.body;
|
|
1556
|
+
const $metadata = deserializeMetadata(output);
|
|
1557
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1532
1558
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1533
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1559
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1534
1560
|
$fault: "client",
|
|
1535
|
-
$metadata
|
|
1561
|
+
$metadata,
|
|
1536
1562
|
});
|
|
1537
1563
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1538
1564
|
}
|
|
@@ -1557,8 +1583,7 @@ const deserializeAws_json1_1ListWorkgroupsCommandError = async (output, context)
|
|
|
1557
1583
|
body: await parseBody(output.body, context),
|
|
1558
1584
|
};
|
|
1559
1585
|
let response;
|
|
1560
|
-
|
|
1561
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1586
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1562
1587
|
switch (errorCode) {
|
|
1563
1588
|
case "InternalServerException":
|
|
1564
1589
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
@@ -1568,10 +1593,12 @@ const deserializeAws_json1_1ListWorkgroupsCommandError = async (output, context)
|
|
|
1568
1593
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1569
1594
|
default:
|
|
1570
1595
|
const parsedBody = parsedOutput.body;
|
|
1596
|
+
const $metadata = deserializeMetadata(output);
|
|
1597
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1571
1598
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1572
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1599
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1573
1600
|
$fault: "client",
|
|
1574
|
-
$metadata
|
|
1601
|
+
$metadata,
|
|
1575
1602
|
});
|
|
1576
1603
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1577
1604
|
}
|
|
@@ -1596,8 +1623,7 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
1596
1623
|
body: await parseBody(output.body, context),
|
|
1597
1624
|
};
|
|
1598
1625
|
let response;
|
|
1599
|
-
|
|
1600
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1626
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1601
1627
|
switch (errorCode) {
|
|
1602
1628
|
case "ConflictException":
|
|
1603
1629
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
@@ -1616,10 +1642,12 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
1616
1642
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1617
1643
|
default:
|
|
1618
1644
|
const parsedBody = parsedOutput.body;
|
|
1645
|
+
const $metadata = deserializeMetadata(output);
|
|
1646
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1619
1647
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1620
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1648
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1621
1649
|
$fault: "client",
|
|
1622
|
-
$metadata
|
|
1650
|
+
$metadata,
|
|
1623
1651
|
});
|
|
1624
1652
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1625
1653
|
}
|
|
@@ -1644,8 +1672,7 @@ const deserializeAws_json1_1RestoreFromRecoveryPointCommandError = async (output
|
|
|
1644
1672
|
body: await parseBody(output.body, context),
|
|
1645
1673
|
};
|
|
1646
1674
|
let response;
|
|
1647
|
-
|
|
1648
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1675
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1649
1676
|
switch (errorCode) {
|
|
1650
1677
|
case "ConflictException":
|
|
1651
1678
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
@@ -1661,10 +1688,12 @@ const deserializeAws_json1_1RestoreFromRecoveryPointCommandError = async (output
|
|
|
1661
1688
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1662
1689
|
default:
|
|
1663
1690
|
const parsedBody = parsedOutput.body;
|
|
1691
|
+
const $metadata = deserializeMetadata(output);
|
|
1692
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1664
1693
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1665
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1694
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1666
1695
|
$fault: "client",
|
|
1667
|
-
$metadata
|
|
1696
|
+
$metadata,
|
|
1668
1697
|
});
|
|
1669
1698
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1670
1699
|
}
|
|
@@ -1689,8 +1718,7 @@ const deserializeAws_json1_1RestoreFromSnapshotCommandError = async (output, con
|
|
|
1689
1718
|
body: await parseBody(output.body, context),
|
|
1690
1719
|
};
|
|
1691
1720
|
let response;
|
|
1692
|
-
|
|
1693
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1721
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1694
1722
|
switch (errorCode) {
|
|
1695
1723
|
case "ConflictException":
|
|
1696
1724
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
@@ -1709,10 +1737,12 @@ const deserializeAws_json1_1RestoreFromSnapshotCommandError = async (output, con
|
|
|
1709
1737
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1710
1738
|
default:
|
|
1711
1739
|
const parsedBody = parsedOutput.body;
|
|
1740
|
+
const $metadata = deserializeMetadata(output);
|
|
1741
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1712
1742
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1713
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1743
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1714
1744
|
$fault: "client",
|
|
1715
|
-
$metadata
|
|
1745
|
+
$metadata,
|
|
1716
1746
|
});
|
|
1717
1747
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1718
1748
|
}
|
|
@@ -1737,8 +1767,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1737
1767
|
body: await parseBody(output.body, context),
|
|
1738
1768
|
};
|
|
1739
1769
|
let response;
|
|
1740
|
-
|
|
1741
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1770
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1742
1771
|
switch (errorCode) {
|
|
1743
1772
|
case "InternalServerException":
|
|
1744
1773
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
@@ -1757,10 +1786,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1757
1786
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1758
1787
|
default:
|
|
1759
1788
|
const parsedBody = parsedOutput.body;
|
|
1789
|
+
const $metadata = deserializeMetadata(output);
|
|
1790
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1760
1791
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1761
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1792
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1762
1793
|
$fault: "client",
|
|
1763
|
-
$metadata
|
|
1794
|
+
$metadata,
|
|
1764
1795
|
});
|
|
1765
1796
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1766
1797
|
}
|
|
@@ -1785,8 +1816,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1785
1816
|
body: await parseBody(output.body, context),
|
|
1786
1817
|
};
|
|
1787
1818
|
let response;
|
|
1788
|
-
|
|
1789
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1819
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1790
1820
|
switch (errorCode) {
|
|
1791
1821
|
case "InternalServerException":
|
|
1792
1822
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
@@ -1802,10 +1832,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1802
1832
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1803
1833
|
default:
|
|
1804
1834
|
const parsedBody = parsedOutput.body;
|
|
1835
|
+
const $metadata = deserializeMetadata(output);
|
|
1836
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1805
1837
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1806
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1838
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1807
1839
|
$fault: "client",
|
|
1808
|
-
$metadata
|
|
1840
|
+
$metadata,
|
|
1809
1841
|
});
|
|
1810
1842
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1811
1843
|
}
|
|
@@ -1830,8 +1862,7 @@ const deserializeAws_json1_1UpdateEndpointAccessCommandError = async (output, co
|
|
|
1830
1862
|
body: await parseBody(output.body, context),
|
|
1831
1863
|
};
|
|
1832
1864
|
let response;
|
|
1833
|
-
|
|
1834
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1865
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1835
1866
|
switch (errorCode) {
|
|
1836
1867
|
case "AccessDeniedException":
|
|
1837
1868
|
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
@@ -1850,10 +1881,12 @@ const deserializeAws_json1_1UpdateEndpointAccessCommandError = async (output, co
|
|
|
1850
1881
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1851
1882
|
default:
|
|
1852
1883
|
const parsedBody = parsedOutput.body;
|
|
1884
|
+
const $metadata = deserializeMetadata(output);
|
|
1885
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1853
1886
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1854
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1887
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1855
1888
|
$fault: "client",
|
|
1856
|
-
$metadata
|
|
1889
|
+
$metadata,
|
|
1857
1890
|
});
|
|
1858
1891
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1859
1892
|
}
|
|
@@ -1878,8 +1911,7 @@ const deserializeAws_json1_1UpdateNamespaceCommandError = async (output, context
|
|
|
1878
1911
|
body: await parseBody(output.body, context),
|
|
1879
1912
|
};
|
|
1880
1913
|
let response;
|
|
1881
|
-
|
|
1882
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1914
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1883
1915
|
switch (errorCode) {
|
|
1884
1916
|
case "ConflictException":
|
|
1885
1917
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
@@ -1895,10 +1927,12 @@ const deserializeAws_json1_1UpdateNamespaceCommandError = async (output, context
|
|
|
1895
1927
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1896
1928
|
default:
|
|
1897
1929
|
const parsedBody = parsedOutput.body;
|
|
1930
|
+
const $metadata = deserializeMetadata(output);
|
|
1931
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1898
1932
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1899
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1933
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1900
1934
|
$fault: "client",
|
|
1901
|
-
$metadata
|
|
1935
|
+
$metadata,
|
|
1902
1936
|
});
|
|
1903
1937
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1904
1938
|
}
|
|
@@ -1923,8 +1957,7 @@ const deserializeAws_json1_1UpdateSnapshotCommandError = async (output, context)
|
|
|
1923
1957
|
body: await parseBody(output.body, context),
|
|
1924
1958
|
};
|
|
1925
1959
|
let response;
|
|
1926
|
-
|
|
1927
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1960
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1928
1961
|
switch (errorCode) {
|
|
1929
1962
|
case "ConflictException":
|
|
1930
1963
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
@@ -1940,10 +1973,12 @@ const deserializeAws_json1_1UpdateSnapshotCommandError = async (output, context)
|
|
|
1940
1973
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1941
1974
|
default:
|
|
1942
1975
|
const parsedBody = parsedOutput.body;
|
|
1976
|
+
const $metadata = deserializeMetadata(output);
|
|
1977
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1943
1978
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1944
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1979
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1945
1980
|
$fault: "client",
|
|
1946
|
-
$metadata
|
|
1981
|
+
$metadata,
|
|
1947
1982
|
});
|
|
1948
1983
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1949
1984
|
}
|
|
@@ -1968,8 +2003,7 @@ const deserializeAws_json1_1UpdateUsageLimitCommandError = async (output, contex
|
|
|
1968
2003
|
body: await parseBody(output.body, context),
|
|
1969
2004
|
};
|
|
1970
2005
|
let response;
|
|
1971
|
-
|
|
1972
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2006
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1973
2007
|
switch (errorCode) {
|
|
1974
2008
|
case "ConflictException":
|
|
1975
2009
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
@@ -1985,10 +2019,12 @@ const deserializeAws_json1_1UpdateUsageLimitCommandError = async (output, contex
|
|
|
1985
2019
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1986
2020
|
default:
|
|
1987
2021
|
const parsedBody = parsedOutput.body;
|
|
2022
|
+
const $metadata = deserializeMetadata(output);
|
|
2023
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1988
2024
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1989
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2025
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1990
2026
|
$fault: "client",
|
|
1991
|
-
$metadata
|
|
2027
|
+
$metadata,
|
|
1992
2028
|
});
|
|
1993
2029
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1994
2030
|
}
|
|
@@ -2013,8 +2049,7 @@ const deserializeAws_json1_1UpdateWorkgroupCommandError = async (output, context
|
|
|
2013
2049
|
body: await parseBody(output.body, context),
|
|
2014
2050
|
};
|
|
2015
2051
|
let response;
|
|
2016
|
-
|
|
2017
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2052
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2018
2053
|
switch (errorCode) {
|
|
2019
2054
|
case "ConflictException":
|
|
2020
2055
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
@@ -2033,10 +2068,12 @@ const deserializeAws_json1_1UpdateWorkgroupCommandError = async (output, context
|
|
|
2033
2068
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2034
2069
|
default:
|
|
2035
2070
|
const parsedBody = parsedOutput.body;
|
|
2071
|
+
const $metadata = deserializeMetadata(output);
|
|
2072
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2036
2073
|
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
2037
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2074
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2038
2075
|
$fault: "client",
|
|
2039
|
-
$metadata
|
|
2076
|
+
$metadata,
|
|
2040
2077
|
});
|
|
2041
2078
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2042
2079
|
}
|
|
@@ -2133,9 +2170,8 @@ const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, c
|
|
|
2133
2170
|
};
|
|
2134
2171
|
const serializeAws_json1_1ConfigParameter = (input, context) => {
|
|
2135
2172
|
return {
|
|
2136
|
-
...(input.parameterKey
|
|
2137
|
-
...(input.parameterValue
|
|
2138
|
-
input.parameterValue !== null && { parameterValue: input.parameterValue }),
|
|
2173
|
+
...(input.parameterKey != null && { parameterKey: input.parameterKey }),
|
|
2174
|
+
...(input.parameterValue != null && { parameterValue: input.parameterValue }),
|
|
2139
2175
|
};
|
|
2140
2176
|
};
|
|
2141
2177
|
const serializeAws_json1_1ConfigParameterList = (input, context) => {
|
|
@@ -2150,161 +2186,143 @@ const serializeAws_json1_1ConfigParameterList = (input, context) => {
|
|
|
2150
2186
|
};
|
|
2151
2187
|
const serializeAws_json1_1ConvertRecoveryPointToSnapshotRequest = (input, context) => {
|
|
2152
2188
|
return {
|
|
2153
|
-
...(input.recoveryPointId
|
|
2154
|
-
|
|
2155
|
-
...(input.
|
|
2156
|
-
input.retentionPeriod !== null && { retentionPeriod: input.retentionPeriod }),
|
|
2157
|
-
...(input.snapshotName !== undefined && input.snapshotName !== null && { snapshotName: input.snapshotName }),
|
|
2189
|
+
...(input.recoveryPointId != null && { recoveryPointId: input.recoveryPointId }),
|
|
2190
|
+
...(input.retentionPeriod != null && { retentionPeriod: input.retentionPeriod }),
|
|
2191
|
+
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2158
2192
|
};
|
|
2159
2193
|
};
|
|
2160
2194
|
const serializeAws_json1_1CreateEndpointAccessRequest = (input, context) => {
|
|
2161
2195
|
return {
|
|
2162
|
-
...(input.endpointName
|
|
2163
|
-
...(input.subnetIds
|
|
2164
|
-
|
|
2165
|
-
...(input.vpcSecurityGroupIds !== undefined &&
|
|
2166
|
-
input.vpcSecurityGroupIds !== null && {
|
|
2196
|
+
...(input.endpointName != null && { endpointName: input.endpointName }),
|
|
2197
|
+
...(input.subnetIds != null && { subnetIds: serializeAws_json1_1SubnetIdList(input.subnetIds, context) }),
|
|
2198
|
+
...(input.vpcSecurityGroupIds != null && {
|
|
2167
2199
|
vpcSecurityGroupIds: serializeAws_json1_1VpcSecurityGroupIdList(input.vpcSecurityGroupIds, context),
|
|
2168
2200
|
}),
|
|
2169
|
-
...(input.workgroupName
|
|
2201
|
+
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2170
2202
|
};
|
|
2171
2203
|
};
|
|
2172
2204
|
const serializeAws_json1_1CreateNamespaceRequest = (input, context) => {
|
|
2173
2205
|
return {
|
|
2174
|
-
...(input.adminUserPassword
|
|
2175
|
-
|
|
2176
|
-
...(input.
|
|
2177
|
-
...(input.
|
|
2178
|
-
...(input.
|
|
2179
|
-
|
|
2180
|
-
...(input.
|
|
2181
|
-
|
|
2182
|
-
...(input.
|
|
2183
|
-
...(input.logExports !== undefined &&
|
|
2184
|
-
input.logExports !== null && { logExports: serializeAws_json1_1LogExportList(input.logExports, context) }),
|
|
2185
|
-
...(input.namespaceName !== undefined && input.namespaceName !== null && { namespaceName: input.namespaceName }),
|
|
2186
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2206
|
+
...(input.adminUserPassword != null && { adminUserPassword: input.adminUserPassword }),
|
|
2207
|
+
...(input.adminUsername != null && { adminUsername: input.adminUsername }),
|
|
2208
|
+
...(input.dbName != null && { dbName: input.dbName }),
|
|
2209
|
+
...(input.defaultIamRoleArn != null && { defaultIamRoleArn: input.defaultIamRoleArn }),
|
|
2210
|
+
...(input.iamRoles != null && { iamRoles: serializeAws_json1_1IamRoleArnList(input.iamRoles, context) }),
|
|
2211
|
+
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2212
|
+
...(input.logExports != null && { logExports: serializeAws_json1_1LogExportList(input.logExports, context) }),
|
|
2213
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2214
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2187
2215
|
};
|
|
2188
2216
|
};
|
|
2189
2217
|
const serializeAws_json1_1CreateSnapshotRequest = (input, context) => {
|
|
2190
2218
|
return {
|
|
2191
|
-
...(input.namespaceName
|
|
2192
|
-
...(input.retentionPeriod
|
|
2193
|
-
|
|
2194
|
-
...(input.snapshotName !== undefined && input.snapshotName !== null && { snapshotName: input.snapshotName }),
|
|
2219
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2220
|
+
...(input.retentionPeriod != null && { retentionPeriod: input.retentionPeriod }),
|
|
2221
|
+
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2195
2222
|
};
|
|
2196
2223
|
};
|
|
2197
2224
|
const serializeAws_json1_1CreateUsageLimitRequest = (input, context) => {
|
|
2198
2225
|
return {
|
|
2199
|
-
...(input.amount
|
|
2200
|
-
...(input.breachAction
|
|
2201
|
-
...(input.period
|
|
2202
|
-
...(input.resourceArn
|
|
2203
|
-
...(input.usageType
|
|
2226
|
+
...(input.amount != null && { amount: input.amount }),
|
|
2227
|
+
...(input.breachAction != null && { breachAction: input.breachAction }),
|
|
2228
|
+
...(input.period != null && { period: input.period }),
|
|
2229
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2230
|
+
...(input.usageType != null && { usageType: input.usageType }),
|
|
2204
2231
|
};
|
|
2205
2232
|
};
|
|
2206
2233
|
const serializeAws_json1_1CreateWorkgroupRequest = (input, context) => {
|
|
2207
2234
|
return {
|
|
2208
|
-
...(input.baseCapacity
|
|
2209
|
-
...(input.configParameters
|
|
2210
|
-
input.configParameters !== null && {
|
|
2235
|
+
...(input.baseCapacity != null && { baseCapacity: input.baseCapacity }),
|
|
2236
|
+
...(input.configParameters != null && {
|
|
2211
2237
|
configParameters: serializeAws_json1_1ConfigParameterList(input.configParameters, context),
|
|
2212
2238
|
}),
|
|
2213
|
-
...(input.enhancedVpcRouting
|
|
2214
|
-
|
|
2215
|
-
...(input.
|
|
2216
|
-
...(input.
|
|
2217
|
-
input.publiclyAccessible !== null && { publiclyAccessible: input.publiclyAccessible }),
|
|
2218
|
-
...(input.securityGroupIds !== undefined &&
|
|
2219
|
-
input.securityGroupIds !== null && {
|
|
2239
|
+
...(input.enhancedVpcRouting != null && { enhancedVpcRouting: input.enhancedVpcRouting }),
|
|
2240
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2241
|
+
...(input.publiclyAccessible != null && { publiclyAccessible: input.publiclyAccessible }),
|
|
2242
|
+
...(input.securityGroupIds != null && {
|
|
2220
2243
|
securityGroupIds: serializeAws_json1_1SecurityGroupIdList(input.securityGroupIds, context),
|
|
2221
2244
|
}),
|
|
2222
|
-
...(input.subnetIds
|
|
2223
|
-
|
|
2224
|
-
...(input.
|
|
2225
|
-
...(input.workgroupName !== undefined && input.workgroupName !== null && { workgroupName: input.workgroupName }),
|
|
2245
|
+
...(input.subnetIds != null && { subnetIds: serializeAws_json1_1SubnetIdList(input.subnetIds, context) }),
|
|
2246
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2247
|
+
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2226
2248
|
};
|
|
2227
2249
|
};
|
|
2228
2250
|
const serializeAws_json1_1DeleteEndpointAccessRequest = (input, context) => {
|
|
2229
2251
|
return {
|
|
2230
|
-
...(input.endpointName
|
|
2252
|
+
...(input.endpointName != null && { endpointName: input.endpointName }),
|
|
2231
2253
|
};
|
|
2232
2254
|
};
|
|
2233
2255
|
const serializeAws_json1_1DeleteNamespaceRequest = (input, context) => {
|
|
2234
2256
|
return {
|
|
2235
|
-
...(input.finalSnapshotName
|
|
2236
|
-
|
|
2237
|
-
...(input.finalSnapshotRetentionPeriod !== undefined &&
|
|
2238
|
-
input.finalSnapshotRetentionPeriod !== null && {
|
|
2257
|
+
...(input.finalSnapshotName != null && { finalSnapshotName: input.finalSnapshotName }),
|
|
2258
|
+
...(input.finalSnapshotRetentionPeriod != null && {
|
|
2239
2259
|
finalSnapshotRetentionPeriod: input.finalSnapshotRetentionPeriod,
|
|
2240
2260
|
}),
|
|
2241
|
-
...(input.namespaceName
|
|
2261
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2242
2262
|
};
|
|
2243
2263
|
};
|
|
2244
2264
|
const serializeAws_json1_1DeleteResourcePolicyRequest = (input, context) => {
|
|
2245
2265
|
return {
|
|
2246
|
-
...(input.resourceArn
|
|
2266
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2247
2267
|
};
|
|
2248
2268
|
};
|
|
2249
2269
|
const serializeAws_json1_1DeleteSnapshotRequest = (input, context) => {
|
|
2250
2270
|
return {
|
|
2251
|
-
...(input.snapshotName
|
|
2271
|
+
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2252
2272
|
};
|
|
2253
2273
|
};
|
|
2254
2274
|
const serializeAws_json1_1DeleteUsageLimitRequest = (input, context) => {
|
|
2255
2275
|
return {
|
|
2256
|
-
...(input.usageLimitId
|
|
2276
|
+
...(input.usageLimitId != null && { usageLimitId: input.usageLimitId }),
|
|
2257
2277
|
};
|
|
2258
2278
|
};
|
|
2259
2279
|
const serializeAws_json1_1DeleteWorkgroupRequest = (input, context) => {
|
|
2260
2280
|
return {
|
|
2261
|
-
...(input.workgroupName
|
|
2281
|
+
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2262
2282
|
};
|
|
2263
2283
|
};
|
|
2264
2284
|
const serializeAws_json1_1GetCredentialsRequest = (input, context) => {
|
|
2265
2285
|
return {
|
|
2266
|
-
...(input.dbName
|
|
2267
|
-
...(input.durationSeconds
|
|
2268
|
-
|
|
2269
|
-
...(input.workgroupName !== undefined && input.workgroupName !== null && { workgroupName: input.workgroupName }),
|
|
2286
|
+
...(input.dbName != null && { dbName: input.dbName }),
|
|
2287
|
+
...(input.durationSeconds != null && { durationSeconds: input.durationSeconds }),
|
|
2288
|
+
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2270
2289
|
};
|
|
2271
2290
|
};
|
|
2272
2291
|
const serializeAws_json1_1GetEndpointAccessRequest = (input, context) => {
|
|
2273
2292
|
return {
|
|
2274
|
-
...(input.endpointName
|
|
2293
|
+
...(input.endpointName != null && { endpointName: input.endpointName }),
|
|
2275
2294
|
};
|
|
2276
2295
|
};
|
|
2277
2296
|
const serializeAws_json1_1GetNamespaceRequest = (input, context) => {
|
|
2278
2297
|
return {
|
|
2279
|
-
...(input.namespaceName
|
|
2298
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2280
2299
|
};
|
|
2281
2300
|
};
|
|
2282
2301
|
const serializeAws_json1_1GetRecoveryPointRequest = (input, context) => {
|
|
2283
2302
|
return {
|
|
2284
|
-
...(input.recoveryPointId
|
|
2285
|
-
input.recoveryPointId !== null && { recoveryPointId: input.recoveryPointId }),
|
|
2303
|
+
...(input.recoveryPointId != null && { recoveryPointId: input.recoveryPointId }),
|
|
2286
2304
|
};
|
|
2287
2305
|
};
|
|
2288
2306
|
const serializeAws_json1_1GetResourcePolicyRequest = (input, context) => {
|
|
2289
2307
|
return {
|
|
2290
|
-
...(input.resourceArn
|
|
2308
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2291
2309
|
};
|
|
2292
2310
|
};
|
|
2293
2311
|
const serializeAws_json1_1GetSnapshotRequest = (input, context) => {
|
|
2294
2312
|
return {
|
|
2295
|
-
...(input.ownerAccount
|
|
2296
|
-
...(input.snapshotArn
|
|
2297
|
-
...(input.snapshotName
|
|
2313
|
+
...(input.ownerAccount != null && { ownerAccount: input.ownerAccount }),
|
|
2314
|
+
...(input.snapshotArn != null && { snapshotArn: input.snapshotArn }),
|
|
2315
|
+
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2298
2316
|
};
|
|
2299
2317
|
};
|
|
2300
2318
|
const serializeAws_json1_1GetUsageLimitRequest = (input, context) => {
|
|
2301
2319
|
return {
|
|
2302
|
-
...(input.usageLimitId
|
|
2320
|
+
...(input.usageLimitId != null && { usageLimitId: input.usageLimitId }),
|
|
2303
2321
|
};
|
|
2304
2322
|
};
|
|
2305
2323
|
const serializeAws_json1_1GetWorkgroupRequest = (input, context) => {
|
|
2306
2324
|
return {
|
|
2307
|
-
...(input.workgroupName
|
|
2325
|
+
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2308
2326
|
};
|
|
2309
2327
|
};
|
|
2310
2328
|
const serializeAws_json1_1IamRoleArnList = (input, context) => {
|
|
@@ -2319,59 +2337,55 @@ const serializeAws_json1_1IamRoleArnList = (input, context) => {
|
|
|
2319
2337
|
};
|
|
2320
2338
|
const serializeAws_json1_1ListEndpointAccessRequest = (input, context) => {
|
|
2321
2339
|
return {
|
|
2322
|
-
...(input.maxResults
|
|
2323
|
-
...(input.nextToken
|
|
2324
|
-
...(input.vpcId
|
|
2325
|
-
...(input.workgroupName
|
|
2340
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2341
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2342
|
+
...(input.vpcId != null && { vpcId: input.vpcId }),
|
|
2343
|
+
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2326
2344
|
};
|
|
2327
2345
|
};
|
|
2328
2346
|
const serializeAws_json1_1ListNamespacesRequest = (input, context) => {
|
|
2329
2347
|
return {
|
|
2330
|
-
...(input.maxResults
|
|
2331
|
-
...(input.nextToken
|
|
2348
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2349
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2332
2350
|
};
|
|
2333
2351
|
};
|
|
2334
2352
|
const serializeAws_json1_1ListRecoveryPointsRequest = (input, context) => {
|
|
2335
2353
|
return {
|
|
2336
|
-
...(input.endTime
|
|
2337
|
-
|
|
2338
|
-
...(input.
|
|
2339
|
-
...(input.
|
|
2340
|
-
...(input.
|
|
2341
|
-
...(input.startTime !== undefined &&
|
|
2342
|
-
input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
2354
|
+
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
2355
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2356
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2357
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2358
|
+
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
2343
2359
|
};
|
|
2344
2360
|
};
|
|
2345
2361
|
const serializeAws_json1_1ListSnapshotsRequest = (input, context) => {
|
|
2346
2362
|
return {
|
|
2347
|
-
...(input.endTime
|
|
2348
|
-
|
|
2349
|
-
...(input.
|
|
2350
|
-
...(input.
|
|
2351
|
-
...(input.
|
|
2352
|
-
...(input.
|
|
2353
|
-
...(input.
|
|
2354
|
-
...(input.startTime !== undefined &&
|
|
2355
|
-
input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
2363
|
+
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
2364
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2365
|
+
...(input.namespaceArn != null && { namespaceArn: input.namespaceArn }),
|
|
2366
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2367
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2368
|
+
...(input.ownerAccount != null && { ownerAccount: input.ownerAccount }),
|
|
2369
|
+
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
2356
2370
|
};
|
|
2357
2371
|
};
|
|
2358
2372
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
2359
2373
|
return {
|
|
2360
|
-
...(input.resourceArn
|
|
2374
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2361
2375
|
};
|
|
2362
2376
|
};
|
|
2363
2377
|
const serializeAws_json1_1ListUsageLimitsRequest = (input, context) => {
|
|
2364
2378
|
return {
|
|
2365
|
-
...(input.maxResults
|
|
2366
|
-
...(input.nextToken
|
|
2367
|
-
...(input.resourceArn
|
|
2368
|
-
...(input.usageType
|
|
2379
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2380
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2381
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2382
|
+
...(input.usageType != null && { usageType: input.usageType }),
|
|
2369
2383
|
};
|
|
2370
2384
|
};
|
|
2371
2385
|
const serializeAws_json1_1ListWorkgroupsRequest = (input, context) => {
|
|
2372
2386
|
return {
|
|
2373
|
-
...(input.maxResults
|
|
2374
|
-
...(input.nextToken
|
|
2387
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2388
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2375
2389
|
};
|
|
2376
2390
|
};
|
|
2377
2391
|
const serializeAws_json1_1LogExportList = (input, context) => {
|
|
@@ -2386,25 +2400,24 @@ const serializeAws_json1_1LogExportList = (input, context) => {
|
|
|
2386
2400
|
};
|
|
2387
2401
|
const serializeAws_json1_1PutResourcePolicyRequest = (input, context) => {
|
|
2388
2402
|
return {
|
|
2389
|
-
...(input.policy
|
|
2390
|
-
...(input.resourceArn
|
|
2403
|
+
...(input.policy != null && { policy: input.policy }),
|
|
2404
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2391
2405
|
};
|
|
2392
2406
|
};
|
|
2393
2407
|
const serializeAws_json1_1RestoreFromRecoveryPointRequest = (input, context) => {
|
|
2394
2408
|
return {
|
|
2395
|
-
...(input.namespaceName
|
|
2396
|
-
...(input.recoveryPointId
|
|
2397
|
-
|
|
2398
|
-
...(input.workgroupName !== undefined && input.workgroupName !== null && { workgroupName: input.workgroupName }),
|
|
2409
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2410
|
+
...(input.recoveryPointId != null && { recoveryPointId: input.recoveryPointId }),
|
|
2411
|
+
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2399
2412
|
};
|
|
2400
2413
|
};
|
|
2401
2414
|
const serializeAws_json1_1RestoreFromSnapshotRequest = (input, context) => {
|
|
2402
2415
|
return {
|
|
2403
|
-
...(input.namespaceName
|
|
2404
|
-
...(input.ownerAccount
|
|
2405
|
-
...(input.snapshotArn
|
|
2406
|
-
...(input.snapshotName
|
|
2407
|
-
...(input.workgroupName
|
|
2416
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2417
|
+
...(input.ownerAccount != null && { ownerAccount: input.ownerAccount }),
|
|
2418
|
+
...(input.snapshotArn != null && { snapshotArn: input.snapshotArn }),
|
|
2419
|
+
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2420
|
+
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2408
2421
|
};
|
|
2409
2422
|
};
|
|
2410
2423
|
const serializeAws_json1_1SecurityGroupIdList = (input, context) => {
|
|
@@ -2429,8 +2442,8 @@ const serializeAws_json1_1SubnetIdList = (input, context) => {
|
|
|
2429
2442
|
};
|
|
2430
2443
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
2431
2444
|
return {
|
|
2432
|
-
...(input.key
|
|
2433
|
-
...(input.value
|
|
2445
|
+
...(input.key != null && { key: input.key }),
|
|
2446
|
+
...(input.value != null && { value: input.value }),
|
|
2434
2447
|
};
|
|
2435
2448
|
};
|
|
2436
2449
|
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
@@ -2455,73 +2468,61 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
2455
2468
|
};
|
|
2456
2469
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
2457
2470
|
return {
|
|
2458
|
-
...(input.resourceArn
|
|
2459
|
-
...(input.tags
|
|
2471
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2472
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2460
2473
|
};
|
|
2461
2474
|
};
|
|
2462
2475
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
2463
2476
|
return {
|
|
2464
|
-
...(input.resourceArn
|
|
2465
|
-
...(input.tagKeys
|
|
2466
|
-
input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
|
|
2477
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2478
|
+
...(input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
|
|
2467
2479
|
};
|
|
2468
2480
|
};
|
|
2469
2481
|
const serializeAws_json1_1UpdateEndpointAccessRequest = (input, context) => {
|
|
2470
2482
|
return {
|
|
2471
|
-
...(input.endpointName
|
|
2472
|
-
...(input.vpcSecurityGroupIds
|
|
2473
|
-
input.vpcSecurityGroupIds !== null && {
|
|
2483
|
+
...(input.endpointName != null && { endpointName: input.endpointName }),
|
|
2484
|
+
...(input.vpcSecurityGroupIds != null && {
|
|
2474
2485
|
vpcSecurityGroupIds: serializeAws_json1_1VpcSecurityGroupIdList(input.vpcSecurityGroupIds, context),
|
|
2475
2486
|
}),
|
|
2476
2487
|
};
|
|
2477
2488
|
};
|
|
2478
2489
|
const serializeAws_json1_1UpdateNamespaceRequest = (input, context) => {
|
|
2479
2490
|
return {
|
|
2480
|
-
...(input.adminUserPassword
|
|
2481
|
-
|
|
2482
|
-
...(input.
|
|
2483
|
-
...(input.
|
|
2484
|
-
|
|
2485
|
-
...(input.
|
|
2486
|
-
|
|
2487
|
-
...(input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId }),
|
|
2488
|
-
...(input.logExports !== undefined &&
|
|
2489
|
-
input.logExports !== null && { logExports: serializeAws_json1_1LogExportList(input.logExports, context) }),
|
|
2490
|
-
...(input.namespaceName !== undefined && input.namespaceName !== null && { namespaceName: input.namespaceName }),
|
|
2491
|
+
...(input.adminUserPassword != null && { adminUserPassword: input.adminUserPassword }),
|
|
2492
|
+
...(input.adminUsername != null && { adminUsername: input.adminUsername }),
|
|
2493
|
+
...(input.defaultIamRoleArn != null && { defaultIamRoleArn: input.defaultIamRoleArn }),
|
|
2494
|
+
...(input.iamRoles != null && { iamRoles: serializeAws_json1_1IamRoleArnList(input.iamRoles, context) }),
|
|
2495
|
+
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2496
|
+
...(input.logExports != null && { logExports: serializeAws_json1_1LogExportList(input.logExports, context) }),
|
|
2497
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2491
2498
|
};
|
|
2492
2499
|
};
|
|
2493
2500
|
const serializeAws_json1_1UpdateSnapshotRequest = (input, context) => {
|
|
2494
2501
|
return {
|
|
2495
|
-
...(input.retentionPeriod
|
|
2496
|
-
|
|
2497
|
-
...(input.snapshotName !== undefined && input.snapshotName !== null && { snapshotName: input.snapshotName }),
|
|
2502
|
+
...(input.retentionPeriod != null && { retentionPeriod: input.retentionPeriod }),
|
|
2503
|
+
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2498
2504
|
};
|
|
2499
2505
|
};
|
|
2500
2506
|
const serializeAws_json1_1UpdateUsageLimitRequest = (input, context) => {
|
|
2501
2507
|
return {
|
|
2502
|
-
...(input.amount
|
|
2503
|
-
...(input.breachAction
|
|
2504
|
-
...(input.usageLimitId
|
|
2508
|
+
...(input.amount != null && { amount: input.amount }),
|
|
2509
|
+
...(input.breachAction != null && { breachAction: input.breachAction }),
|
|
2510
|
+
...(input.usageLimitId != null && { usageLimitId: input.usageLimitId }),
|
|
2505
2511
|
};
|
|
2506
2512
|
};
|
|
2507
2513
|
const serializeAws_json1_1UpdateWorkgroupRequest = (input, context) => {
|
|
2508
2514
|
return {
|
|
2509
|
-
...(input.baseCapacity
|
|
2510
|
-
...(input.configParameters
|
|
2511
|
-
input.configParameters !== null && {
|
|
2515
|
+
...(input.baseCapacity != null && { baseCapacity: input.baseCapacity }),
|
|
2516
|
+
...(input.configParameters != null && {
|
|
2512
2517
|
configParameters: serializeAws_json1_1ConfigParameterList(input.configParameters, context),
|
|
2513
2518
|
}),
|
|
2514
|
-
...(input.enhancedVpcRouting
|
|
2515
|
-
|
|
2516
|
-
...(input.
|
|
2517
|
-
input.publiclyAccessible !== null && { publiclyAccessible: input.publiclyAccessible }),
|
|
2518
|
-
...(input.securityGroupIds !== undefined &&
|
|
2519
|
-
input.securityGroupIds !== null && {
|
|
2519
|
+
...(input.enhancedVpcRouting != null && { enhancedVpcRouting: input.enhancedVpcRouting }),
|
|
2520
|
+
...(input.publiclyAccessible != null && { publiclyAccessible: input.publiclyAccessible }),
|
|
2521
|
+
...(input.securityGroupIds != null && {
|
|
2520
2522
|
securityGroupIds: serializeAws_json1_1SecurityGroupIdList(input.securityGroupIds, context),
|
|
2521
2523
|
}),
|
|
2522
|
-
...(input.subnetIds
|
|
2523
|
-
|
|
2524
|
-
...(input.workgroupName !== undefined && input.workgroupName !== null && { workgroupName: input.workgroupName }),
|
|
2524
|
+
...(input.subnetIds != null && { subnetIds: serializeAws_json1_1SubnetIdList(input.subnetIds, context) }),
|
|
2525
|
+
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2525
2526
|
};
|
|
2526
2527
|
};
|
|
2527
2528
|
const serializeAws_json1_1VpcSecurityGroupIdList = (input, context) => {
|
|
@@ -2575,58 +2576,42 @@ const deserializeAws_json1_1ConflictException = (output, context) => {
|
|
|
2575
2576
|
};
|
|
2576
2577
|
const deserializeAws_json1_1ConvertRecoveryPointToSnapshotResponse = (output, context) => {
|
|
2577
2578
|
return {
|
|
2578
|
-
snapshot: output.snapshot
|
|
2579
|
-
? deserializeAws_json1_1Snapshot(output.snapshot, context)
|
|
2580
|
-
: undefined,
|
|
2579
|
+
snapshot: output.snapshot != null ? deserializeAws_json1_1Snapshot(output.snapshot, context) : undefined,
|
|
2581
2580
|
};
|
|
2582
2581
|
};
|
|
2583
2582
|
const deserializeAws_json1_1CreateEndpointAccessResponse = (output, context) => {
|
|
2584
2583
|
return {
|
|
2585
|
-
endpoint: output.endpoint
|
|
2586
|
-
? deserializeAws_json1_1EndpointAccess(output.endpoint, context)
|
|
2587
|
-
: undefined,
|
|
2584
|
+
endpoint: output.endpoint != null ? deserializeAws_json1_1EndpointAccess(output.endpoint, context) : undefined,
|
|
2588
2585
|
};
|
|
2589
2586
|
};
|
|
2590
2587
|
const deserializeAws_json1_1CreateNamespaceResponse = (output, context) => {
|
|
2591
2588
|
return {
|
|
2592
|
-
namespace: output.namespace
|
|
2593
|
-
? deserializeAws_json1_1Namespace(output.namespace, context)
|
|
2594
|
-
: undefined,
|
|
2589
|
+
namespace: output.namespace != null ? deserializeAws_json1_1Namespace(output.namespace, context) : undefined,
|
|
2595
2590
|
};
|
|
2596
2591
|
};
|
|
2597
2592
|
const deserializeAws_json1_1CreateSnapshotResponse = (output, context) => {
|
|
2598
2593
|
return {
|
|
2599
|
-
snapshot: output.snapshot
|
|
2600
|
-
? deserializeAws_json1_1Snapshot(output.snapshot, context)
|
|
2601
|
-
: undefined,
|
|
2594
|
+
snapshot: output.snapshot != null ? deserializeAws_json1_1Snapshot(output.snapshot, context) : undefined,
|
|
2602
2595
|
};
|
|
2603
2596
|
};
|
|
2604
2597
|
const deserializeAws_json1_1CreateUsageLimitResponse = (output, context) => {
|
|
2605
2598
|
return {
|
|
2606
|
-
usageLimit: output.usageLimit
|
|
2607
|
-
? deserializeAws_json1_1UsageLimit(output.usageLimit, context)
|
|
2608
|
-
: undefined,
|
|
2599
|
+
usageLimit: output.usageLimit != null ? deserializeAws_json1_1UsageLimit(output.usageLimit, context) : undefined,
|
|
2609
2600
|
};
|
|
2610
2601
|
};
|
|
2611
2602
|
const deserializeAws_json1_1CreateWorkgroupResponse = (output, context) => {
|
|
2612
2603
|
return {
|
|
2613
|
-
workgroup: output.workgroup
|
|
2614
|
-
? deserializeAws_json1_1Workgroup(output.workgroup, context)
|
|
2615
|
-
: undefined,
|
|
2604
|
+
workgroup: output.workgroup != null ? deserializeAws_json1_1Workgroup(output.workgroup, context) : undefined,
|
|
2616
2605
|
};
|
|
2617
2606
|
};
|
|
2618
2607
|
const deserializeAws_json1_1DeleteEndpointAccessResponse = (output, context) => {
|
|
2619
2608
|
return {
|
|
2620
|
-
endpoint: output.endpoint
|
|
2621
|
-
? deserializeAws_json1_1EndpointAccess(output.endpoint, context)
|
|
2622
|
-
: undefined,
|
|
2609
|
+
endpoint: output.endpoint != null ? deserializeAws_json1_1EndpointAccess(output.endpoint, context) : undefined,
|
|
2623
2610
|
};
|
|
2624
2611
|
};
|
|
2625
2612
|
const deserializeAws_json1_1DeleteNamespaceResponse = (output, context) => {
|
|
2626
2613
|
return {
|
|
2627
|
-
namespace: output.namespace
|
|
2628
|
-
? deserializeAws_json1_1Namespace(output.namespace, context)
|
|
2629
|
-
: undefined,
|
|
2614
|
+
namespace: output.namespace != null ? deserializeAws_json1_1Namespace(output.namespace, context) : undefined,
|
|
2630
2615
|
};
|
|
2631
2616
|
};
|
|
2632
2617
|
const deserializeAws_json1_1DeleteResourcePolicyResponse = (output, context) => {
|
|
@@ -2634,51 +2619,39 @@ const deserializeAws_json1_1DeleteResourcePolicyResponse = (output, context) =>
|
|
|
2634
2619
|
};
|
|
2635
2620
|
const deserializeAws_json1_1DeleteSnapshotResponse = (output, context) => {
|
|
2636
2621
|
return {
|
|
2637
|
-
snapshot: output.snapshot
|
|
2638
|
-
? deserializeAws_json1_1Snapshot(output.snapshot, context)
|
|
2639
|
-
: undefined,
|
|
2622
|
+
snapshot: output.snapshot != null ? deserializeAws_json1_1Snapshot(output.snapshot, context) : undefined,
|
|
2640
2623
|
};
|
|
2641
2624
|
};
|
|
2642
2625
|
const deserializeAws_json1_1DeleteUsageLimitResponse = (output, context) => {
|
|
2643
2626
|
return {
|
|
2644
|
-
usageLimit: output.usageLimit
|
|
2645
|
-
? deserializeAws_json1_1UsageLimit(output.usageLimit, context)
|
|
2646
|
-
: undefined,
|
|
2627
|
+
usageLimit: output.usageLimit != null ? deserializeAws_json1_1UsageLimit(output.usageLimit, context) : undefined,
|
|
2647
2628
|
};
|
|
2648
2629
|
};
|
|
2649
2630
|
const deserializeAws_json1_1DeleteWorkgroupResponse = (output, context) => {
|
|
2650
2631
|
return {
|
|
2651
|
-
workgroup: output.workgroup
|
|
2652
|
-
? deserializeAws_json1_1Workgroup(output.workgroup, context)
|
|
2653
|
-
: undefined,
|
|
2632
|
+
workgroup: output.workgroup != null ? deserializeAws_json1_1Workgroup(output.workgroup, context) : undefined,
|
|
2654
2633
|
};
|
|
2655
2634
|
};
|
|
2656
2635
|
const deserializeAws_json1_1Endpoint = (output, context) => {
|
|
2657
2636
|
return {
|
|
2658
2637
|
address: (0, smithy_client_1.expectString)(output.address),
|
|
2659
2638
|
port: (0, smithy_client_1.expectInt32)(output.port),
|
|
2660
|
-
vpcEndpoints: output.vpcEndpoints
|
|
2661
|
-
? deserializeAws_json1_1VpcEndpointList(output.vpcEndpoints, context)
|
|
2662
|
-
: undefined,
|
|
2639
|
+
vpcEndpoints: output.vpcEndpoints != null ? deserializeAws_json1_1VpcEndpointList(output.vpcEndpoints, context) : undefined,
|
|
2663
2640
|
};
|
|
2664
2641
|
};
|
|
2665
2642
|
const deserializeAws_json1_1EndpointAccess = (output, context) => {
|
|
2666
2643
|
return {
|
|
2667
2644
|
address: (0, smithy_client_1.expectString)(output.address),
|
|
2668
2645
|
endpointArn: (0, smithy_client_1.expectString)(output.endpointArn),
|
|
2669
|
-
endpointCreateTime: output.endpointCreateTime
|
|
2646
|
+
endpointCreateTime: output.endpointCreateTime != null
|
|
2670
2647
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endpointCreateTime))
|
|
2671
2648
|
: undefined,
|
|
2672
2649
|
endpointName: (0, smithy_client_1.expectString)(output.endpointName),
|
|
2673
2650
|
endpointStatus: (0, smithy_client_1.expectString)(output.endpointStatus),
|
|
2674
2651
|
port: (0, smithy_client_1.expectInt32)(output.port),
|
|
2675
|
-
subnetIds: output.subnetIds
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
vpcEndpoint: output.vpcEndpoint !== undefined && output.vpcEndpoint !== null
|
|
2679
|
-
? deserializeAws_json1_1VpcEndpoint(output.vpcEndpoint, context)
|
|
2680
|
-
: undefined,
|
|
2681
|
-
vpcSecurityGroups: output.vpcSecurityGroups !== undefined && output.vpcSecurityGroups !== null
|
|
2652
|
+
subnetIds: output.subnetIds != null ? deserializeAws_json1_1SubnetIdList(output.subnetIds, context) : undefined,
|
|
2653
|
+
vpcEndpoint: output.vpcEndpoint != null ? deserializeAws_json1_1VpcEndpoint(output.vpcEndpoint, context) : undefined,
|
|
2654
|
+
vpcSecurityGroups: output.vpcSecurityGroups != null
|
|
2682
2655
|
? deserializeAws_json1_1VpcSecurityGroupMembershipList(output.vpcSecurityGroups, context)
|
|
2683
2656
|
: undefined,
|
|
2684
2657
|
workgroupName: (0, smithy_client_1.expectString)(output.workgroupName),
|
|
@@ -2699,61 +2672,45 @@ const deserializeAws_json1_1GetCredentialsResponse = (output, context) => {
|
|
|
2699
2672
|
return {
|
|
2700
2673
|
dbPassword: (0, smithy_client_1.expectString)(output.dbPassword),
|
|
2701
2674
|
dbUser: (0, smithy_client_1.expectString)(output.dbUser),
|
|
2702
|
-
expiration: output.expiration
|
|
2703
|
-
|
|
2704
|
-
: undefined,
|
|
2705
|
-
nextRefreshTime: output.nextRefreshTime !== undefined && output.nextRefreshTime !== null
|
|
2675
|
+
expiration: output.expiration != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expiration))) : undefined,
|
|
2676
|
+
nextRefreshTime: output.nextRefreshTime != null
|
|
2706
2677
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.nextRefreshTime)))
|
|
2707
2678
|
: undefined,
|
|
2708
2679
|
};
|
|
2709
2680
|
};
|
|
2710
2681
|
const deserializeAws_json1_1GetEndpointAccessResponse = (output, context) => {
|
|
2711
2682
|
return {
|
|
2712
|
-
endpoint: output.endpoint
|
|
2713
|
-
? deserializeAws_json1_1EndpointAccess(output.endpoint, context)
|
|
2714
|
-
: undefined,
|
|
2683
|
+
endpoint: output.endpoint != null ? deserializeAws_json1_1EndpointAccess(output.endpoint, context) : undefined,
|
|
2715
2684
|
};
|
|
2716
2685
|
};
|
|
2717
2686
|
const deserializeAws_json1_1GetNamespaceResponse = (output, context) => {
|
|
2718
2687
|
return {
|
|
2719
|
-
namespace: output.namespace
|
|
2720
|
-
? deserializeAws_json1_1Namespace(output.namespace, context)
|
|
2721
|
-
: undefined,
|
|
2688
|
+
namespace: output.namespace != null ? deserializeAws_json1_1Namespace(output.namespace, context) : undefined,
|
|
2722
2689
|
};
|
|
2723
2690
|
};
|
|
2724
2691
|
const deserializeAws_json1_1GetRecoveryPointResponse = (output, context) => {
|
|
2725
2692
|
return {
|
|
2726
|
-
recoveryPoint: output.recoveryPoint
|
|
2727
|
-
? deserializeAws_json1_1RecoveryPoint(output.recoveryPoint, context)
|
|
2728
|
-
: undefined,
|
|
2693
|
+
recoveryPoint: output.recoveryPoint != null ? deserializeAws_json1_1RecoveryPoint(output.recoveryPoint, context) : undefined,
|
|
2729
2694
|
};
|
|
2730
2695
|
};
|
|
2731
2696
|
const deserializeAws_json1_1GetResourcePolicyResponse = (output, context) => {
|
|
2732
2697
|
return {
|
|
2733
|
-
resourcePolicy: output.resourcePolicy
|
|
2734
|
-
? deserializeAws_json1_1ResourcePolicy(output.resourcePolicy, context)
|
|
2735
|
-
: undefined,
|
|
2698
|
+
resourcePolicy: output.resourcePolicy != null ? deserializeAws_json1_1ResourcePolicy(output.resourcePolicy, context) : undefined,
|
|
2736
2699
|
};
|
|
2737
2700
|
};
|
|
2738
2701
|
const deserializeAws_json1_1GetSnapshotResponse = (output, context) => {
|
|
2739
2702
|
return {
|
|
2740
|
-
snapshot: output.snapshot
|
|
2741
|
-
? deserializeAws_json1_1Snapshot(output.snapshot, context)
|
|
2742
|
-
: undefined,
|
|
2703
|
+
snapshot: output.snapshot != null ? deserializeAws_json1_1Snapshot(output.snapshot, context) : undefined,
|
|
2743
2704
|
};
|
|
2744
2705
|
};
|
|
2745
2706
|
const deserializeAws_json1_1GetUsageLimitResponse = (output, context) => {
|
|
2746
2707
|
return {
|
|
2747
|
-
usageLimit: output.usageLimit
|
|
2748
|
-
? deserializeAws_json1_1UsageLimit(output.usageLimit, context)
|
|
2749
|
-
: undefined,
|
|
2708
|
+
usageLimit: output.usageLimit != null ? deserializeAws_json1_1UsageLimit(output.usageLimit, context) : undefined,
|
|
2750
2709
|
};
|
|
2751
2710
|
};
|
|
2752
2711
|
const deserializeAws_json1_1GetWorkgroupResponse = (output, context) => {
|
|
2753
2712
|
return {
|
|
2754
|
-
workgroup: output.workgroup
|
|
2755
|
-
? deserializeAws_json1_1Workgroup(output.workgroup, context)
|
|
2756
|
-
: undefined,
|
|
2713
|
+
workgroup: output.workgroup != null ? deserializeAws_json1_1Workgroup(output.workgroup, context) : undefined,
|
|
2757
2714
|
};
|
|
2758
2715
|
};
|
|
2759
2716
|
const deserializeAws_json1_1IamRoleArnList = (output, context) => {
|
|
@@ -2784,24 +2741,20 @@ const deserializeAws_json1_1InvalidPaginationException = (output, context) => {
|
|
|
2784
2741
|
};
|
|
2785
2742
|
const deserializeAws_json1_1ListEndpointAccessResponse = (output, context) => {
|
|
2786
2743
|
return {
|
|
2787
|
-
endpoints: output.endpoints
|
|
2788
|
-
? deserializeAws_json1_1EndpointAccessList(output.endpoints, context)
|
|
2789
|
-
: undefined,
|
|
2744
|
+
endpoints: output.endpoints != null ? deserializeAws_json1_1EndpointAccessList(output.endpoints, context) : undefined,
|
|
2790
2745
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2791
2746
|
};
|
|
2792
2747
|
};
|
|
2793
2748
|
const deserializeAws_json1_1ListNamespacesResponse = (output, context) => {
|
|
2794
2749
|
return {
|
|
2795
|
-
namespaces: output.namespaces
|
|
2796
|
-
? deserializeAws_json1_1NamespaceList(output.namespaces, context)
|
|
2797
|
-
: undefined,
|
|
2750
|
+
namespaces: output.namespaces != null ? deserializeAws_json1_1NamespaceList(output.namespaces, context) : undefined,
|
|
2798
2751
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2799
2752
|
};
|
|
2800
2753
|
};
|
|
2801
2754
|
const deserializeAws_json1_1ListRecoveryPointsResponse = (output, context) => {
|
|
2802
2755
|
return {
|
|
2803
2756
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2804
|
-
recoveryPoints: output.recoveryPoints
|
|
2757
|
+
recoveryPoints: output.recoveryPoints != null
|
|
2805
2758
|
? deserializeAws_json1_1RecoveryPointList(output.recoveryPoints, context)
|
|
2806
2759
|
: undefined,
|
|
2807
2760
|
};
|
|
@@ -2809,32 +2762,24 @@ const deserializeAws_json1_1ListRecoveryPointsResponse = (output, context) => {
|
|
|
2809
2762
|
const deserializeAws_json1_1ListSnapshotsResponse = (output, context) => {
|
|
2810
2763
|
return {
|
|
2811
2764
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2812
|
-
snapshots: output.snapshots
|
|
2813
|
-
? deserializeAws_json1_1SnapshotList(output.snapshots, context)
|
|
2814
|
-
: undefined,
|
|
2765
|
+
snapshots: output.snapshots != null ? deserializeAws_json1_1SnapshotList(output.snapshots, context) : undefined,
|
|
2815
2766
|
};
|
|
2816
2767
|
};
|
|
2817
2768
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
2818
2769
|
return {
|
|
2819
|
-
tags: output.tags
|
|
2820
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
2821
|
-
: undefined,
|
|
2770
|
+
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
2822
2771
|
};
|
|
2823
2772
|
};
|
|
2824
2773
|
const deserializeAws_json1_1ListUsageLimitsResponse = (output, context) => {
|
|
2825
2774
|
return {
|
|
2826
2775
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2827
|
-
usageLimits: output.usageLimits
|
|
2828
|
-
? deserializeAws_json1_1UsageLimits(output.usageLimits, context)
|
|
2829
|
-
: undefined,
|
|
2776
|
+
usageLimits: output.usageLimits != null ? deserializeAws_json1_1UsageLimits(output.usageLimits, context) : undefined,
|
|
2830
2777
|
};
|
|
2831
2778
|
};
|
|
2832
2779
|
const deserializeAws_json1_1ListWorkgroupsResponse = (output, context) => {
|
|
2833
2780
|
return {
|
|
2834
2781
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2835
|
-
workgroups: output.workgroups
|
|
2836
|
-
? deserializeAws_json1_1WorkgroupList(output.workgroups, context)
|
|
2837
|
-
: undefined,
|
|
2782
|
+
workgroups: output.workgroups != null ? deserializeAws_json1_1WorkgroupList(output.workgroups, context) : undefined,
|
|
2838
2783
|
};
|
|
2839
2784
|
};
|
|
2840
2785
|
const deserializeAws_json1_1LogExportList = (output, context) => {
|
|
@@ -2851,18 +2796,12 @@ const deserializeAws_json1_1LogExportList = (output, context) => {
|
|
|
2851
2796
|
const deserializeAws_json1_1Namespace = (output, context) => {
|
|
2852
2797
|
return {
|
|
2853
2798
|
adminUsername: (0, smithy_client_1.expectString)(output.adminUsername),
|
|
2854
|
-
creationDate: output.creationDate
|
|
2855
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationDate))
|
|
2856
|
-
: undefined,
|
|
2799
|
+
creationDate: output.creationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationDate)) : undefined,
|
|
2857
2800
|
dbName: (0, smithy_client_1.expectString)(output.dbName),
|
|
2858
2801
|
defaultIamRoleArn: (0, smithy_client_1.expectString)(output.defaultIamRoleArn),
|
|
2859
|
-
iamRoles: output.iamRoles
|
|
2860
|
-
? deserializeAws_json1_1IamRoleArnList(output.iamRoles, context)
|
|
2861
|
-
: undefined,
|
|
2802
|
+
iamRoles: output.iamRoles != null ? deserializeAws_json1_1IamRoleArnList(output.iamRoles, context) : undefined,
|
|
2862
2803
|
kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
|
|
2863
|
-
logExports: output.logExports
|
|
2864
|
-
? deserializeAws_json1_1LogExportList(output.logExports, context)
|
|
2865
|
-
: undefined,
|
|
2804
|
+
logExports: output.logExports != null ? deserializeAws_json1_1LogExportList(output.logExports, context) : undefined,
|
|
2866
2805
|
namespaceArn: (0, smithy_client_1.expectString)(output.namespaceArn),
|
|
2867
2806
|
namespaceId: (0, smithy_client_1.expectString)(output.namespaceId),
|
|
2868
2807
|
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
@@ -2901,15 +2840,13 @@ const deserializeAws_json1_1NetworkInterfaceList = (output, context) => {
|
|
|
2901
2840
|
};
|
|
2902
2841
|
const deserializeAws_json1_1PutResourcePolicyResponse = (output, context) => {
|
|
2903
2842
|
return {
|
|
2904
|
-
resourcePolicy: output.resourcePolicy
|
|
2905
|
-
? deserializeAws_json1_1ResourcePolicy(output.resourcePolicy, context)
|
|
2906
|
-
: undefined,
|
|
2843
|
+
resourcePolicy: output.resourcePolicy != null ? deserializeAws_json1_1ResourcePolicy(output.resourcePolicy, context) : undefined,
|
|
2907
2844
|
};
|
|
2908
2845
|
};
|
|
2909
2846
|
const deserializeAws_json1_1RecoveryPoint = (output, context) => {
|
|
2910
2847
|
return {
|
|
2911
2848
|
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
2912
|
-
recoveryPointCreateTime: output.recoveryPointCreateTime
|
|
2849
|
+
recoveryPointCreateTime: output.recoveryPointCreateTime != null
|
|
2913
2850
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.recoveryPointCreateTime))
|
|
2914
2851
|
: undefined,
|
|
2915
2852
|
recoveryPointId: (0, smithy_client_1.expectString)(output.recoveryPointId),
|
|
@@ -2942,17 +2879,13 @@ const deserializeAws_json1_1ResourcePolicy = (output, context) => {
|
|
|
2942
2879
|
};
|
|
2943
2880
|
const deserializeAws_json1_1RestoreFromRecoveryPointResponse = (output, context) => {
|
|
2944
2881
|
return {
|
|
2945
|
-
namespace: output.namespace
|
|
2946
|
-
? deserializeAws_json1_1Namespace(output.namespace, context)
|
|
2947
|
-
: undefined,
|
|
2882
|
+
namespace: output.namespace != null ? deserializeAws_json1_1Namespace(output.namespace, context) : undefined,
|
|
2948
2883
|
recoveryPointId: (0, smithy_client_1.expectString)(output.recoveryPointId),
|
|
2949
2884
|
};
|
|
2950
2885
|
};
|
|
2951
2886
|
const deserializeAws_json1_1RestoreFromSnapshotResponse = (output, context) => {
|
|
2952
2887
|
return {
|
|
2953
|
-
namespace: output.namespace
|
|
2954
|
-
? deserializeAws_json1_1Namespace(output.namespace, context)
|
|
2955
|
-
: undefined,
|
|
2888
|
+
namespace: output.namespace != null ? deserializeAws_json1_1Namespace(output.namespace, context) : undefined,
|
|
2956
2889
|
ownerAccount: (0, smithy_client_1.expectString)(output.ownerAccount),
|
|
2957
2890
|
snapshotName: (0, smithy_client_1.expectString)(output.snapshotName),
|
|
2958
2891
|
};
|
|
@@ -2975,10 +2908,10 @@ const deserializeAws_json1_1ServiceQuotaExceededException = (output, context) =>
|
|
|
2975
2908
|
};
|
|
2976
2909
|
const deserializeAws_json1_1Snapshot = (output, context) => {
|
|
2977
2910
|
return {
|
|
2978
|
-
accountsWithProvisionedRestoreAccess: output.accountsWithProvisionedRestoreAccess
|
|
2911
|
+
accountsWithProvisionedRestoreAccess: output.accountsWithProvisionedRestoreAccess != null
|
|
2979
2912
|
? deserializeAws_json1_1AccountIdList(output.accountsWithProvisionedRestoreAccess, context)
|
|
2980
2913
|
: undefined,
|
|
2981
|
-
accountsWithRestoreAccess: output.accountsWithRestoreAccess
|
|
2914
|
+
accountsWithRestoreAccess: output.accountsWithRestoreAccess != null
|
|
2982
2915
|
? deserializeAws_json1_1AccountIdList(output.accountsWithRestoreAccess, context)
|
|
2983
2916
|
: undefined,
|
|
2984
2917
|
actualIncrementalBackupSizeInMegaBytes: (0, smithy_client_1.limitedParseDouble)(output.actualIncrementalBackupSizeInMegaBytes),
|
|
@@ -2992,13 +2925,13 @@ const deserializeAws_json1_1Snapshot = (output, context) => {
|
|
|
2992
2925
|
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
2993
2926
|
ownerAccount: (0, smithy_client_1.expectString)(output.ownerAccount),
|
|
2994
2927
|
snapshotArn: (0, smithy_client_1.expectString)(output.snapshotArn),
|
|
2995
|
-
snapshotCreateTime: output.snapshotCreateTime
|
|
2928
|
+
snapshotCreateTime: output.snapshotCreateTime != null
|
|
2996
2929
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.snapshotCreateTime))
|
|
2997
2930
|
: undefined,
|
|
2998
2931
|
snapshotName: (0, smithy_client_1.expectString)(output.snapshotName),
|
|
2999
2932
|
snapshotRemainingDays: (0, smithy_client_1.expectInt32)(output.snapshotRemainingDays),
|
|
3000
2933
|
snapshotRetentionPeriod: (0, smithy_client_1.expectInt32)(output.snapshotRetentionPeriod),
|
|
3001
|
-
snapshotRetentionStartTime: output.snapshotRetentionStartTime
|
|
2934
|
+
snapshotRetentionStartTime: output.snapshotRetentionStartTime != null
|
|
3002
2935
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.snapshotRetentionStartTime))
|
|
3003
2936
|
: undefined,
|
|
3004
2937
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
@@ -3064,37 +2997,27 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
|
3064
2997
|
};
|
|
3065
2998
|
const deserializeAws_json1_1UpdateEndpointAccessResponse = (output, context) => {
|
|
3066
2999
|
return {
|
|
3067
|
-
endpoint: output.endpoint
|
|
3068
|
-
? deserializeAws_json1_1EndpointAccess(output.endpoint, context)
|
|
3069
|
-
: undefined,
|
|
3000
|
+
endpoint: output.endpoint != null ? deserializeAws_json1_1EndpointAccess(output.endpoint, context) : undefined,
|
|
3070
3001
|
};
|
|
3071
3002
|
};
|
|
3072
3003
|
const deserializeAws_json1_1UpdateNamespaceResponse = (output, context) => {
|
|
3073
3004
|
return {
|
|
3074
|
-
namespace: output.namespace
|
|
3075
|
-
? deserializeAws_json1_1Namespace(output.namespace, context)
|
|
3076
|
-
: undefined,
|
|
3005
|
+
namespace: output.namespace != null ? deserializeAws_json1_1Namespace(output.namespace, context) : undefined,
|
|
3077
3006
|
};
|
|
3078
3007
|
};
|
|
3079
3008
|
const deserializeAws_json1_1UpdateSnapshotResponse = (output, context) => {
|
|
3080
3009
|
return {
|
|
3081
|
-
snapshot: output.snapshot
|
|
3082
|
-
? deserializeAws_json1_1Snapshot(output.snapshot, context)
|
|
3083
|
-
: undefined,
|
|
3010
|
+
snapshot: output.snapshot != null ? deserializeAws_json1_1Snapshot(output.snapshot, context) : undefined,
|
|
3084
3011
|
};
|
|
3085
3012
|
};
|
|
3086
3013
|
const deserializeAws_json1_1UpdateUsageLimitResponse = (output, context) => {
|
|
3087
3014
|
return {
|
|
3088
|
-
usageLimit: output.usageLimit
|
|
3089
|
-
? deserializeAws_json1_1UsageLimit(output.usageLimit, context)
|
|
3090
|
-
: undefined,
|
|
3015
|
+
usageLimit: output.usageLimit != null ? deserializeAws_json1_1UsageLimit(output.usageLimit, context) : undefined,
|
|
3091
3016
|
};
|
|
3092
3017
|
};
|
|
3093
3018
|
const deserializeAws_json1_1UpdateWorkgroupResponse = (output, context) => {
|
|
3094
3019
|
return {
|
|
3095
|
-
workgroup: output.workgroup
|
|
3096
|
-
? deserializeAws_json1_1Workgroup(output.workgroup, context)
|
|
3097
|
-
: undefined,
|
|
3020
|
+
workgroup: output.workgroup != null ? deserializeAws_json1_1Workgroup(output.workgroup, context) : undefined,
|
|
3098
3021
|
};
|
|
3099
3022
|
};
|
|
3100
3023
|
const deserializeAws_json1_1UsageLimit = (output, context) => {
|
|
@@ -3126,7 +3049,7 @@ const deserializeAws_json1_1ValidationException = (output, context) => {
|
|
|
3126
3049
|
};
|
|
3127
3050
|
const deserializeAws_json1_1VpcEndpoint = (output, context) => {
|
|
3128
3051
|
return {
|
|
3129
|
-
networkInterfaces: output.networkInterfaces
|
|
3052
|
+
networkInterfaces: output.networkInterfaces != null
|
|
3130
3053
|
? deserializeAws_json1_1NetworkInterfaceList(output.networkInterfaces, context)
|
|
3131
3054
|
: undefined,
|
|
3132
3055
|
vpcEndpointId: (0, smithy_client_1.expectString)(output.vpcEndpointId),
|
|
@@ -3164,25 +3087,19 @@ const deserializeAws_json1_1VpcSecurityGroupMembershipList = (output, context) =
|
|
|
3164
3087
|
const deserializeAws_json1_1Workgroup = (output, context) => {
|
|
3165
3088
|
return {
|
|
3166
3089
|
baseCapacity: (0, smithy_client_1.expectInt32)(output.baseCapacity),
|
|
3167
|
-
configParameters: output.configParameters
|
|
3090
|
+
configParameters: output.configParameters != null
|
|
3168
3091
|
? deserializeAws_json1_1ConfigParameterList(output.configParameters, context)
|
|
3169
3092
|
: undefined,
|
|
3170
|
-
creationDate: output.creationDate
|
|
3171
|
-
|
|
3172
|
-
: undefined,
|
|
3173
|
-
endpoint: output.endpoint !== undefined && output.endpoint !== null
|
|
3174
|
-
? deserializeAws_json1_1Endpoint(output.endpoint, context)
|
|
3175
|
-
: undefined,
|
|
3093
|
+
creationDate: output.creationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationDate)) : undefined,
|
|
3094
|
+
endpoint: output.endpoint != null ? deserializeAws_json1_1Endpoint(output.endpoint, context) : undefined,
|
|
3176
3095
|
enhancedVpcRouting: (0, smithy_client_1.expectBoolean)(output.enhancedVpcRouting),
|
|
3177
3096
|
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
3178
3097
|
publiclyAccessible: (0, smithy_client_1.expectBoolean)(output.publiclyAccessible),
|
|
3179
|
-
securityGroupIds: output.securityGroupIds
|
|
3098
|
+
securityGroupIds: output.securityGroupIds != null
|
|
3180
3099
|
? deserializeAws_json1_1SecurityGroupIdList(output.securityGroupIds, context)
|
|
3181
3100
|
: undefined,
|
|
3182
3101
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3183
|
-
subnetIds: output.subnetIds
|
|
3184
|
-
? deserializeAws_json1_1SubnetIdList(output.subnetIds, context)
|
|
3185
|
-
: undefined,
|
|
3102
|
+
subnetIds: output.subnetIds != null ? deserializeAws_json1_1SubnetIdList(output.subnetIds, context) : undefined,
|
|
3186
3103
|
workgroupArn: (0, smithy_client_1.expectString)(output.workgroupArn),
|
|
3187
3104
|
workgroupId: (0, smithy_client_1.expectString)(output.workgroupId),
|
|
3188
3105
|
workgroupName: (0, smithy_client_1.expectString)(output.workgroupName),
|
|
@@ -3261,5 +3178,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3261
3178
|
if (data["__type"] !== undefined) {
|
|
3262
3179
|
return sanitizeErrorCode(data["__type"]);
|
|
3263
3180
|
}
|
|
3264
|
-
return "";
|
|
3265
3181
|
};
|