@aws-sdk/client-cloudtrail 3.118.1 → 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/dist-cjs/protocols/Aws_json1_1.js +309 -382
- package/dist-es/protocols/Aws_json1_1.js +247 -320
- package/package.json +26 -26
|
@@ -316,8 +316,7 @@ const deserializeAws_json1_1AddTagsCommandError = async (output, context) => {
|
|
|
316
316
|
body: await parseBody(output.body, context),
|
|
317
317
|
};
|
|
318
318
|
let response;
|
|
319
|
-
|
|
320
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
319
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
321
320
|
switch (errorCode) {
|
|
322
321
|
case "CloudTrailARNInvalidException":
|
|
323
322
|
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
@@ -357,10 +356,12 @@ const deserializeAws_json1_1AddTagsCommandError = async (output, context) => {
|
|
|
357
356
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
358
357
|
default:
|
|
359
358
|
const parsedBody = parsedOutput.body;
|
|
359
|
+
const $metadata = deserializeMetadata(output);
|
|
360
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
360
361
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
361
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
362
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
362
363
|
$fault: "client",
|
|
363
|
-
$metadata
|
|
364
|
+
$metadata,
|
|
364
365
|
});
|
|
365
366
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
366
367
|
}
|
|
@@ -385,8 +386,7 @@ const deserializeAws_json1_1CancelQueryCommandError = async (output, context) =>
|
|
|
385
386
|
body: await parseBody(output.body, context),
|
|
386
387
|
};
|
|
387
388
|
let response;
|
|
388
|
-
|
|
389
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
389
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
390
390
|
switch (errorCode) {
|
|
391
391
|
case "ConflictException":
|
|
392
392
|
case "com.amazonaws.cloudtrail#ConflictException":
|
|
@@ -417,10 +417,12 @@ const deserializeAws_json1_1CancelQueryCommandError = async (output, context) =>
|
|
|
417
417
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
418
418
|
default:
|
|
419
419
|
const parsedBody = parsedOutput.body;
|
|
420
|
+
const $metadata = deserializeMetadata(output);
|
|
421
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
420
422
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
421
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
423
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
422
424
|
$fault: "client",
|
|
423
|
-
$metadata
|
|
425
|
+
$metadata,
|
|
424
426
|
});
|
|
425
427
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
426
428
|
}
|
|
@@ -445,8 +447,7 @@ const deserializeAws_json1_1CreateEventDataStoreCommandError = async (output, co
|
|
|
445
447
|
body: await parseBody(output.body, context),
|
|
446
448
|
};
|
|
447
449
|
let response;
|
|
448
|
-
|
|
449
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
450
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
450
451
|
switch (errorCode) {
|
|
451
452
|
case "CloudTrailAccessNotEnabledException":
|
|
452
453
|
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
@@ -486,10 +487,12 @@ const deserializeAws_json1_1CreateEventDataStoreCommandError = async (output, co
|
|
|
486
487
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
487
488
|
default:
|
|
488
489
|
const parsedBody = parsedOutput.body;
|
|
490
|
+
const $metadata = deserializeMetadata(output);
|
|
491
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
489
492
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
490
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
493
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
491
494
|
$fault: "client",
|
|
492
|
-
$metadata
|
|
495
|
+
$metadata,
|
|
493
496
|
});
|
|
494
497
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
495
498
|
}
|
|
@@ -514,8 +517,7 @@ const deserializeAws_json1_1CreateTrailCommandError = async (output, context) =>
|
|
|
514
517
|
body: await parseBody(output.body, context),
|
|
515
518
|
};
|
|
516
519
|
let response;
|
|
517
|
-
|
|
518
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
520
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
519
521
|
switch (errorCode) {
|
|
520
522
|
case "CloudTrailAccessNotEnabledException":
|
|
521
523
|
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
@@ -606,10 +608,12 @@ const deserializeAws_json1_1CreateTrailCommandError = async (output, context) =>
|
|
|
606
608
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
607
609
|
default:
|
|
608
610
|
const parsedBody = parsedOutput.body;
|
|
611
|
+
const $metadata = deserializeMetadata(output);
|
|
612
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
609
613
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
610
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
614
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
611
615
|
$fault: "client",
|
|
612
|
-
$metadata
|
|
616
|
+
$metadata,
|
|
613
617
|
});
|
|
614
618
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
615
619
|
}
|
|
@@ -634,8 +638,7 @@ const deserializeAws_json1_1DeleteEventDataStoreCommandError = async (output, co
|
|
|
634
638
|
body: await parseBody(output.body, context),
|
|
635
639
|
};
|
|
636
640
|
let response;
|
|
637
|
-
|
|
638
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
641
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
639
642
|
switch (errorCode) {
|
|
640
643
|
case "EventDataStoreARNInvalidException":
|
|
641
644
|
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
@@ -663,10 +666,12 @@ const deserializeAws_json1_1DeleteEventDataStoreCommandError = async (output, co
|
|
|
663
666
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
664
667
|
default:
|
|
665
668
|
const parsedBody = parsedOutput.body;
|
|
669
|
+
const $metadata = deserializeMetadata(output);
|
|
670
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
666
671
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
667
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
672
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
668
673
|
$fault: "client",
|
|
669
|
-
$metadata
|
|
674
|
+
$metadata,
|
|
670
675
|
});
|
|
671
676
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
672
677
|
}
|
|
@@ -691,8 +696,7 @@ const deserializeAws_json1_1DeleteTrailCommandError = async (output, context) =>
|
|
|
691
696
|
body: await parseBody(output.body, context),
|
|
692
697
|
};
|
|
693
698
|
let response;
|
|
694
|
-
|
|
695
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
699
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
696
700
|
switch (errorCode) {
|
|
697
701
|
case "ConflictException":
|
|
698
702
|
case "com.amazonaws.cloudtrail#ConflictException":
|
|
@@ -720,10 +724,12 @@ const deserializeAws_json1_1DeleteTrailCommandError = async (output, context) =>
|
|
|
720
724
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
721
725
|
default:
|
|
722
726
|
const parsedBody = parsedOutput.body;
|
|
727
|
+
const $metadata = deserializeMetadata(output);
|
|
728
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
723
729
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
724
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
730
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
725
731
|
$fault: "client",
|
|
726
|
-
$metadata
|
|
732
|
+
$metadata,
|
|
727
733
|
});
|
|
728
734
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
729
735
|
}
|
|
@@ -748,8 +754,7 @@ const deserializeAws_json1_1DescribeQueryCommandError = async (output, context)
|
|
|
748
754
|
body: await parseBody(output.body, context),
|
|
749
755
|
};
|
|
750
756
|
let response;
|
|
751
|
-
|
|
752
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
757
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
753
758
|
switch (errorCode) {
|
|
754
759
|
case "EventDataStoreARNInvalidException":
|
|
755
760
|
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
@@ -774,10 +779,12 @@ const deserializeAws_json1_1DescribeQueryCommandError = async (output, context)
|
|
|
774
779
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
775
780
|
default:
|
|
776
781
|
const parsedBody = parsedOutput.body;
|
|
782
|
+
const $metadata = deserializeMetadata(output);
|
|
783
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
777
784
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
778
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
785
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
779
786
|
$fault: "client",
|
|
780
|
-
$metadata
|
|
787
|
+
$metadata,
|
|
781
788
|
});
|
|
782
789
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
783
790
|
}
|
|
@@ -802,8 +809,7 @@ const deserializeAws_json1_1DescribeTrailsCommandError = async (output, context)
|
|
|
802
809
|
body: await parseBody(output.body, context),
|
|
803
810
|
};
|
|
804
811
|
let response;
|
|
805
|
-
|
|
806
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
812
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
807
813
|
switch (errorCode) {
|
|
808
814
|
case "InvalidTrailNameException":
|
|
809
815
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
@@ -816,10 +822,12 @@ const deserializeAws_json1_1DescribeTrailsCommandError = async (output, context)
|
|
|
816
822
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
817
823
|
default:
|
|
818
824
|
const parsedBody = parsedOutput.body;
|
|
825
|
+
const $metadata = deserializeMetadata(output);
|
|
826
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
819
827
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
820
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
828
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
821
829
|
$fault: "client",
|
|
822
|
-
$metadata
|
|
830
|
+
$metadata,
|
|
823
831
|
});
|
|
824
832
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
825
833
|
}
|
|
@@ -844,8 +852,7 @@ const deserializeAws_json1_1GetEventDataStoreCommandError = async (output, conte
|
|
|
844
852
|
body: await parseBody(output.body, context),
|
|
845
853
|
};
|
|
846
854
|
let response;
|
|
847
|
-
|
|
848
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
855
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
849
856
|
switch (errorCode) {
|
|
850
857
|
case "EventDataStoreARNInvalidException":
|
|
851
858
|
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
@@ -864,10 +871,12 @@ const deserializeAws_json1_1GetEventDataStoreCommandError = async (output, conte
|
|
|
864
871
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
865
872
|
default:
|
|
866
873
|
const parsedBody = parsedOutput.body;
|
|
874
|
+
const $metadata = deserializeMetadata(output);
|
|
875
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
867
876
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
868
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
877
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
869
878
|
$fault: "client",
|
|
870
|
-
$metadata
|
|
879
|
+
$metadata,
|
|
871
880
|
});
|
|
872
881
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
873
882
|
}
|
|
@@ -892,8 +901,7 @@ const deserializeAws_json1_1GetEventSelectorsCommandError = async (output, conte
|
|
|
892
901
|
body: await parseBody(output.body, context),
|
|
893
902
|
};
|
|
894
903
|
let response;
|
|
895
|
-
|
|
896
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
904
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
905
|
switch (errorCode) {
|
|
898
906
|
case "InvalidTrailNameException":
|
|
899
907
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
@@ -909,10 +917,12 @@ const deserializeAws_json1_1GetEventSelectorsCommandError = async (output, conte
|
|
|
909
917
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
910
918
|
default:
|
|
911
919
|
const parsedBody = parsedOutput.body;
|
|
920
|
+
const $metadata = deserializeMetadata(output);
|
|
921
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
912
922
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
913
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
923
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
914
924
|
$fault: "client",
|
|
915
|
-
$metadata
|
|
925
|
+
$metadata,
|
|
916
926
|
});
|
|
917
927
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
918
928
|
}
|
|
@@ -937,8 +947,7 @@ const deserializeAws_json1_1GetInsightSelectorsCommandError = async (output, con
|
|
|
937
947
|
body: await parseBody(output.body, context),
|
|
938
948
|
};
|
|
939
949
|
let response;
|
|
940
|
-
|
|
941
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
950
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
942
951
|
switch (errorCode) {
|
|
943
952
|
case "InsightNotEnabledException":
|
|
944
953
|
case "com.amazonaws.cloudtrail#InsightNotEnabledException":
|
|
@@ -957,10 +966,12 @@ const deserializeAws_json1_1GetInsightSelectorsCommandError = async (output, con
|
|
|
957
966
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
958
967
|
default:
|
|
959
968
|
const parsedBody = parsedOutput.body;
|
|
969
|
+
const $metadata = deserializeMetadata(output);
|
|
970
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
960
971
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
961
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
972
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
962
973
|
$fault: "client",
|
|
963
|
-
$metadata
|
|
974
|
+
$metadata,
|
|
964
975
|
});
|
|
965
976
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
966
977
|
}
|
|
@@ -985,8 +996,7 @@ const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context
|
|
|
985
996
|
body: await parseBody(output.body, context),
|
|
986
997
|
};
|
|
987
998
|
let response;
|
|
988
|
-
|
|
989
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
999
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
990
1000
|
switch (errorCode) {
|
|
991
1001
|
case "EventDataStoreARNInvalidException":
|
|
992
1002
|
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
@@ -1017,10 +1027,12 @@ const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context
|
|
|
1017
1027
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1018
1028
|
default:
|
|
1019
1029
|
const parsedBody = parsedOutput.body;
|
|
1030
|
+
const $metadata = deserializeMetadata(output);
|
|
1031
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1020
1032
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1021
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1033
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1022
1034
|
$fault: "client",
|
|
1023
|
-
$metadata
|
|
1035
|
+
$metadata,
|
|
1024
1036
|
});
|
|
1025
1037
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1026
1038
|
}
|
|
@@ -1045,8 +1057,7 @@ const deserializeAws_json1_1GetTrailCommandError = async (output, context) => {
|
|
|
1045
1057
|
body: await parseBody(output.body, context),
|
|
1046
1058
|
};
|
|
1047
1059
|
let response;
|
|
1048
|
-
|
|
1049
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1060
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1050
1061
|
switch (errorCode) {
|
|
1051
1062
|
case "InvalidTrailNameException":
|
|
1052
1063
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
@@ -1062,10 +1073,12 @@ const deserializeAws_json1_1GetTrailCommandError = async (output, context) => {
|
|
|
1062
1073
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1063
1074
|
default:
|
|
1064
1075
|
const parsedBody = parsedOutput.body;
|
|
1076
|
+
const $metadata = deserializeMetadata(output);
|
|
1077
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1065
1078
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1066
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1079
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1067
1080
|
$fault: "client",
|
|
1068
|
-
$metadata
|
|
1081
|
+
$metadata,
|
|
1069
1082
|
});
|
|
1070
1083
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1071
1084
|
}
|
|
@@ -1090,8 +1103,7 @@ const deserializeAws_json1_1GetTrailStatusCommandError = async (output, context)
|
|
|
1090
1103
|
body: await parseBody(output.body, context),
|
|
1091
1104
|
};
|
|
1092
1105
|
let response;
|
|
1093
|
-
|
|
1094
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1106
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1095
1107
|
switch (errorCode) {
|
|
1096
1108
|
case "InvalidTrailNameException":
|
|
1097
1109
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
@@ -1107,10 +1119,12 @@ const deserializeAws_json1_1GetTrailStatusCommandError = async (output, context)
|
|
|
1107
1119
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1108
1120
|
default:
|
|
1109
1121
|
const parsedBody = parsedOutput.body;
|
|
1122
|
+
const $metadata = deserializeMetadata(output);
|
|
1123
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1110
1124
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1111
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1125
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1112
1126
|
$fault: "client",
|
|
1113
|
-
$metadata
|
|
1127
|
+
$metadata,
|
|
1114
1128
|
});
|
|
1115
1129
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1116
1130
|
}
|
|
@@ -1135,8 +1149,7 @@ const deserializeAws_json1_1ListEventDataStoresCommandError = async (output, con
|
|
|
1135
1149
|
body: await parseBody(output.body, context),
|
|
1136
1150
|
};
|
|
1137
1151
|
let response;
|
|
1138
|
-
|
|
1139
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1152
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1140
1153
|
switch (errorCode) {
|
|
1141
1154
|
case "InvalidMaxResultsException":
|
|
1142
1155
|
case "com.amazonaws.cloudtrail#InvalidMaxResultsException":
|
|
@@ -1152,10 +1165,12 @@ const deserializeAws_json1_1ListEventDataStoresCommandError = async (output, con
|
|
|
1152
1165
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1153
1166
|
default:
|
|
1154
1167
|
const parsedBody = parsedOutput.body;
|
|
1168
|
+
const $metadata = deserializeMetadata(output);
|
|
1169
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1155
1170
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1156
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1171
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1157
1172
|
$fault: "client",
|
|
1158
|
-
$metadata
|
|
1173
|
+
$metadata,
|
|
1159
1174
|
});
|
|
1160
1175
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1161
1176
|
}
|
|
@@ -1180,8 +1195,7 @@ const deserializeAws_json1_1ListPublicKeysCommandError = async (output, context)
|
|
|
1180
1195
|
body: await parseBody(output.body, context),
|
|
1181
1196
|
};
|
|
1182
1197
|
let response;
|
|
1183
|
-
|
|
1184
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1198
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1185
1199
|
switch (errorCode) {
|
|
1186
1200
|
case "InvalidTimeRangeException":
|
|
1187
1201
|
case "com.amazonaws.cloudtrail#InvalidTimeRangeException":
|
|
@@ -1197,10 +1211,12 @@ const deserializeAws_json1_1ListPublicKeysCommandError = async (output, context)
|
|
|
1197
1211
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1198
1212
|
default:
|
|
1199
1213
|
const parsedBody = parsedOutput.body;
|
|
1214
|
+
const $metadata = deserializeMetadata(output);
|
|
1215
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1200
1216
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1201
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1217
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1202
1218
|
$fault: "client",
|
|
1203
|
-
$metadata
|
|
1219
|
+
$metadata,
|
|
1204
1220
|
});
|
|
1205
1221
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1206
1222
|
}
|
|
@@ -1225,8 +1241,7 @@ const deserializeAws_json1_1ListQueriesCommandError = async (output, context) =>
|
|
|
1225
1241
|
body: await parseBody(output.body, context),
|
|
1226
1242
|
};
|
|
1227
1243
|
let response;
|
|
1228
|
-
|
|
1229
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1244
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1230
1245
|
switch (errorCode) {
|
|
1231
1246
|
case "EventDataStoreARNInvalidException":
|
|
1232
1247
|
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
@@ -1260,10 +1275,12 @@ const deserializeAws_json1_1ListQueriesCommandError = async (output, context) =>
|
|
|
1260
1275
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1261
1276
|
default:
|
|
1262
1277
|
const parsedBody = parsedOutput.body;
|
|
1278
|
+
const $metadata = deserializeMetadata(output);
|
|
1279
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1263
1280
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1264
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1281
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1265
1282
|
$fault: "client",
|
|
1266
|
-
$metadata
|
|
1283
|
+
$metadata,
|
|
1267
1284
|
});
|
|
1268
1285
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1269
1286
|
}
|
|
@@ -1288,8 +1305,7 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
1288
1305
|
body: await parseBody(output.body, context),
|
|
1289
1306
|
};
|
|
1290
1307
|
let response;
|
|
1291
|
-
|
|
1292
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1308
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1293
1309
|
switch (errorCode) {
|
|
1294
1310
|
case "CloudTrailARNInvalidException":
|
|
1295
1311
|
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
@@ -1320,10 +1336,12 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
1320
1336
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1321
1337
|
default:
|
|
1322
1338
|
const parsedBody = parsedOutput.body;
|
|
1339
|
+
const $metadata = deserializeMetadata(output);
|
|
1340
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1323
1341
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1324
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1342
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1325
1343
|
$fault: "client",
|
|
1326
|
-
$metadata
|
|
1344
|
+
$metadata,
|
|
1327
1345
|
});
|
|
1328
1346
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1329
1347
|
}
|
|
@@ -1348,8 +1366,7 @@ const deserializeAws_json1_1ListTrailsCommandError = async (output, context) =>
|
|
|
1348
1366
|
body: await parseBody(output.body, context),
|
|
1349
1367
|
};
|
|
1350
1368
|
let response;
|
|
1351
|
-
|
|
1352
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1369
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1353
1370
|
switch (errorCode) {
|
|
1354
1371
|
case "OperationNotPermittedException":
|
|
1355
1372
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
@@ -1359,10 +1376,12 @@ const deserializeAws_json1_1ListTrailsCommandError = async (output, context) =>
|
|
|
1359
1376
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1360
1377
|
default:
|
|
1361
1378
|
const parsedBody = parsedOutput.body;
|
|
1379
|
+
const $metadata = deserializeMetadata(output);
|
|
1380
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1362
1381
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1363
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1382
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1364
1383
|
$fault: "client",
|
|
1365
|
-
$metadata
|
|
1384
|
+
$metadata,
|
|
1366
1385
|
});
|
|
1367
1386
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1368
1387
|
}
|
|
@@ -1387,8 +1406,7 @@ const deserializeAws_json1_1LookupEventsCommandError = async (output, context) =
|
|
|
1387
1406
|
body: await parseBody(output.body, context),
|
|
1388
1407
|
};
|
|
1389
1408
|
let response;
|
|
1390
|
-
|
|
1391
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1392
1410
|
switch (errorCode) {
|
|
1393
1411
|
case "InvalidEventCategoryException":
|
|
1394
1412
|
case "com.amazonaws.cloudtrail#InvalidEventCategoryException":
|
|
@@ -1413,10 +1431,12 @@ const deserializeAws_json1_1LookupEventsCommandError = async (output, context) =
|
|
|
1413
1431
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1414
1432
|
default:
|
|
1415
1433
|
const parsedBody = parsedOutput.body;
|
|
1434
|
+
const $metadata = deserializeMetadata(output);
|
|
1435
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1416
1436
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1417
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1437
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1418
1438
|
$fault: "client",
|
|
1419
|
-
$metadata
|
|
1439
|
+
$metadata,
|
|
1420
1440
|
});
|
|
1421
1441
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1422
1442
|
}
|
|
@@ -1441,8 +1461,7 @@ const deserializeAws_json1_1PutEventSelectorsCommandError = async (output, conte
|
|
|
1441
1461
|
body: await parseBody(output.body, context),
|
|
1442
1462
|
};
|
|
1443
1463
|
let response;
|
|
1444
|
-
|
|
1445
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1464
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1446
1465
|
switch (errorCode) {
|
|
1447
1466
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
1448
1467
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
@@ -1470,10 +1489,12 @@ const deserializeAws_json1_1PutEventSelectorsCommandError = async (output, conte
|
|
|
1470
1489
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1471
1490
|
default:
|
|
1472
1491
|
const parsedBody = parsedOutput.body;
|
|
1492
|
+
const $metadata = deserializeMetadata(output);
|
|
1493
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1473
1494
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1474
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1495
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1475
1496
|
$fault: "client",
|
|
1476
|
-
$metadata
|
|
1497
|
+
$metadata,
|
|
1477
1498
|
});
|
|
1478
1499
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1479
1500
|
}
|
|
@@ -1498,8 +1519,7 @@ const deserializeAws_json1_1PutInsightSelectorsCommandError = async (output, con
|
|
|
1498
1519
|
body: await parseBody(output.body, context),
|
|
1499
1520
|
};
|
|
1500
1521
|
let response;
|
|
1501
|
-
|
|
1502
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1522
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1503
1523
|
switch (errorCode) {
|
|
1504
1524
|
case "InsufficientEncryptionPolicyException":
|
|
1505
1525
|
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
@@ -1536,10 +1556,12 @@ const deserializeAws_json1_1PutInsightSelectorsCommandError = async (output, con
|
|
|
1536
1556
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1537
1557
|
default:
|
|
1538
1558
|
const parsedBody = parsedOutput.body;
|
|
1559
|
+
const $metadata = deserializeMetadata(output);
|
|
1560
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1539
1561
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1540
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1562
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1541
1563
|
$fault: "client",
|
|
1542
|
-
$metadata
|
|
1564
|
+
$metadata,
|
|
1543
1565
|
});
|
|
1544
1566
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1545
1567
|
}
|
|
@@ -1564,8 +1586,7 @@ const deserializeAws_json1_1RemoveTagsCommandError = async (output, context) =>
|
|
|
1564
1586
|
body: await parseBody(output.body, context),
|
|
1565
1587
|
};
|
|
1566
1588
|
let response;
|
|
1567
|
-
|
|
1568
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1589
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1569
1590
|
switch (errorCode) {
|
|
1570
1591
|
case "CloudTrailARNInvalidException":
|
|
1571
1592
|
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
@@ -1599,10 +1620,12 @@ const deserializeAws_json1_1RemoveTagsCommandError = async (output, context) =>
|
|
|
1599
1620
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1600
1621
|
default:
|
|
1601
1622
|
const parsedBody = parsedOutput.body;
|
|
1623
|
+
const $metadata = deserializeMetadata(output);
|
|
1624
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1602
1625
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1603
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1626
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1604
1627
|
$fault: "client",
|
|
1605
|
-
$metadata
|
|
1628
|
+
$metadata,
|
|
1606
1629
|
});
|
|
1607
1630
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1608
1631
|
}
|
|
@@ -1627,8 +1650,7 @@ const deserializeAws_json1_1RestoreEventDataStoreCommandError = async (output, c
|
|
|
1627
1650
|
body: await parseBody(output.body, context),
|
|
1628
1651
|
};
|
|
1629
1652
|
let response;
|
|
1630
|
-
|
|
1631
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1653
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1632
1654
|
switch (errorCode) {
|
|
1633
1655
|
case "CloudTrailAccessNotEnabledException":
|
|
1634
1656
|
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
@@ -1668,10 +1690,12 @@ const deserializeAws_json1_1RestoreEventDataStoreCommandError = async (output, c
|
|
|
1668
1690
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1669
1691
|
default:
|
|
1670
1692
|
const parsedBody = parsedOutput.body;
|
|
1693
|
+
const $metadata = deserializeMetadata(output);
|
|
1694
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1671
1695
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1672
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1696
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1673
1697
|
$fault: "client",
|
|
1674
|
-
$metadata
|
|
1698
|
+
$metadata,
|
|
1675
1699
|
});
|
|
1676
1700
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1677
1701
|
}
|
|
@@ -1696,8 +1720,7 @@ const deserializeAws_json1_1StartLoggingCommandError = async (output, context) =
|
|
|
1696
1720
|
body: await parseBody(output.body, context),
|
|
1697
1721
|
};
|
|
1698
1722
|
let response;
|
|
1699
|
-
|
|
1700
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1723
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1701
1724
|
switch (errorCode) {
|
|
1702
1725
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
1703
1726
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
@@ -1722,10 +1745,12 @@ const deserializeAws_json1_1StartLoggingCommandError = async (output, context) =
|
|
|
1722
1745
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1723
1746
|
default:
|
|
1724
1747
|
const parsedBody = parsedOutput.body;
|
|
1748
|
+
const $metadata = deserializeMetadata(output);
|
|
1749
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1725
1750
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1726
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1751
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1727
1752
|
$fault: "client",
|
|
1728
|
-
$metadata
|
|
1753
|
+
$metadata,
|
|
1729
1754
|
});
|
|
1730
1755
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1731
1756
|
}
|
|
@@ -1750,8 +1775,7 @@ const deserializeAws_json1_1StartQueryCommandError = async (output, context) =>
|
|
|
1750
1775
|
body: await parseBody(output.body, context),
|
|
1751
1776
|
};
|
|
1752
1777
|
let response;
|
|
1753
|
-
|
|
1754
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1778
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1755
1779
|
switch (errorCode) {
|
|
1756
1780
|
case "EventDataStoreARNInvalidException":
|
|
1757
1781
|
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
@@ -1779,10 +1803,12 @@ const deserializeAws_json1_1StartQueryCommandError = async (output, context) =>
|
|
|
1779
1803
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1780
1804
|
default:
|
|
1781
1805
|
const parsedBody = parsedOutput.body;
|
|
1806
|
+
const $metadata = deserializeMetadata(output);
|
|
1807
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1782
1808
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1783
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1809
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1784
1810
|
$fault: "client",
|
|
1785
|
-
$metadata
|
|
1811
|
+
$metadata,
|
|
1786
1812
|
});
|
|
1787
1813
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1788
1814
|
}
|
|
@@ -1807,8 +1833,7 @@ const deserializeAws_json1_1StopLoggingCommandError = async (output, context) =>
|
|
|
1807
1833
|
body: await parseBody(output.body, context),
|
|
1808
1834
|
};
|
|
1809
1835
|
let response;
|
|
1810
|
-
|
|
1811
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1836
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1812
1837
|
switch (errorCode) {
|
|
1813
1838
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
1814
1839
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
@@ -1833,10 +1858,12 @@ const deserializeAws_json1_1StopLoggingCommandError = async (output, context) =>
|
|
|
1833
1858
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1834
1859
|
default:
|
|
1835
1860
|
const parsedBody = parsedOutput.body;
|
|
1861
|
+
const $metadata = deserializeMetadata(output);
|
|
1862
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1836
1863
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1837
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1864
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1838
1865
|
$fault: "client",
|
|
1839
|
-
$metadata
|
|
1866
|
+
$metadata,
|
|
1840
1867
|
});
|
|
1841
1868
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1842
1869
|
}
|
|
@@ -1861,8 +1888,7 @@ const deserializeAws_json1_1UpdateEventDataStoreCommandError = async (output, co
|
|
|
1861
1888
|
body: await parseBody(output.body, context),
|
|
1862
1889
|
};
|
|
1863
1890
|
let response;
|
|
1864
|
-
|
|
1865
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1891
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1866
1892
|
switch (errorCode) {
|
|
1867
1893
|
case "CloudTrailAccessNotEnabledException":
|
|
1868
1894
|
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
@@ -1899,10 +1925,12 @@ const deserializeAws_json1_1UpdateEventDataStoreCommandError = async (output, co
|
|
|
1899
1925
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1900
1926
|
default:
|
|
1901
1927
|
const parsedBody = parsedOutput.body;
|
|
1928
|
+
const $metadata = deserializeMetadata(output);
|
|
1929
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1902
1930
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1903
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1931
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1904
1932
|
$fault: "client",
|
|
1905
|
-
$metadata
|
|
1933
|
+
$metadata,
|
|
1906
1934
|
});
|
|
1907
1935
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1908
1936
|
}
|
|
@@ -1927,8 +1955,7 @@ const deserializeAws_json1_1UpdateTrailCommandError = async (output, context) =>
|
|
|
1927
1955
|
body: await parseBody(output.body, context),
|
|
1928
1956
|
};
|
|
1929
1957
|
let response;
|
|
1930
|
-
|
|
1931
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1958
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1932
1959
|
switch (errorCode) {
|
|
1933
1960
|
case "CloudTrailAccessNotEnabledException":
|
|
1934
1961
|
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
@@ -2016,10 +2043,12 @@ const deserializeAws_json1_1UpdateTrailCommandError = async (output, context) =>
|
|
|
2016
2043
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2017
2044
|
default:
|
|
2018
2045
|
const parsedBody = parsedOutput.body;
|
|
2046
|
+
const $metadata = deserializeMetadata(output);
|
|
2047
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2019
2048
|
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
2020
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2049
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2021
2050
|
$fault: "client",
|
|
2022
|
-
$metadata
|
|
2051
|
+
$metadata,
|
|
2023
2052
|
});
|
|
2024
2053
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2025
2054
|
}
|
|
@@ -2548,18 +2577,16 @@ const deserializeAws_json1_1UnsupportedOperationExceptionResponse = async (parse
|
|
|
2548
2577
|
};
|
|
2549
2578
|
const serializeAws_json1_1AddTagsRequest = (input, context) => {
|
|
2550
2579
|
return {
|
|
2551
|
-
...(input.ResourceId
|
|
2552
|
-
...(input.TagsList
|
|
2553
|
-
input.TagsList !== null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) }),
|
|
2580
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
2581
|
+
...(input.TagsList != null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) }),
|
|
2554
2582
|
};
|
|
2555
2583
|
};
|
|
2556
2584
|
const serializeAws_json1_1AdvancedEventSelector = (input, context) => {
|
|
2557
2585
|
return {
|
|
2558
|
-
...(input.FieldSelectors
|
|
2559
|
-
input.FieldSelectors !== null && {
|
|
2586
|
+
...(input.FieldSelectors != null && {
|
|
2560
2587
|
FieldSelectors: serializeAws_json1_1AdvancedFieldSelectors(input.FieldSelectors, context),
|
|
2561
2588
|
}),
|
|
2562
|
-
...(input.Name
|
|
2589
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2563
2590
|
};
|
|
2564
2591
|
};
|
|
2565
2592
|
const serializeAws_json1_1AdvancedEventSelectors = (input, context) => {
|
|
@@ -2574,19 +2601,13 @@ const serializeAws_json1_1AdvancedEventSelectors = (input, context) => {
|
|
|
2574
2601
|
};
|
|
2575
2602
|
const serializeAws_json1_1AdvancedFieldSelector = (input, context) => {
|
|
2576
2603
|
return {
|
|
2577
|
-
...(input.EndsWith
|
|
2578
|
-
|
|
2579
|
-
...(input.
|
|
2580
|
-
|
|
2581
|
-
...(input.
|
|
2582
|
-
...(input.
|
|
2583
|
-
|
|
2584
|
-
...(input.NotEquals !== undefined &&
|
|
2585
|
-
input.NotEquals !== null && { NotEquals: serializeAws_json1_1Operator(input.NotEquals, context) }),
|
|
2586
|
-
...(input.NotStartsWith !== undefined &&
|
|
2587
|
-
input.NotStartsWith !== null && { NotStartsWith: serializeAws_json1_1Operator(input.NotStartsWith, context) }),
|
|
2588
|
-
...(input.StartsWith !== undefined &&
|
|
2589
|
-
input.StartsWith !== null && { StartsWith: serializeAws_json1_1Operator(input.StartsWith, context) }),
|
|
2604
|
+
...(input.EndsWith != null && { EndsWith: serializeAws_json1_1Operator(input.EndsWith, context) }),
|
|
2605
|
+
...(input.Equals != null && { Equals: serializeAws_json1_1Operator(input.Equals, context) }),
|
|
2606
|
+
...(input.Field != null && { Field: input.Field }),
|
|
2607
|
+
...(input.NotEndsWith != null && { NotEndsWith: serializeAws_json1_1Operator(input.NotEndsWith, context) }),
|
|
2608
|
+
...(input.NotEquals != null && { NotEquals: serializeAws_json1_1Operator(input.NotEquals, context) }),
|
|
2609
|
+
...(input.NotStartsWith != null && { NotStartsWith: serializeAws_json1_1Operator(input.NotStartsWith, context) }),
|
|
2610
|
+
...(input.StartsWith != null && { StartsWith: serializeAws_json1_1Operator(input.StartsWith, context) }),
|
|
2590
2611
|
};
|
|
2591
2612
|
};
|
|
2592
2613
|
const serializeAws_json1_1AdvancedFieldSelectors = (input, context) => {
|
|
@@ -2601,60 +2622,45 @@ const serializeAws_json1_1AdvancedFieldSelectors = (input, context) => {
|
|
|
2601
2622
|
};
|
|
2602
2623
|
const serializeAws_json1_1CancelQueryRequest = (input, context) => {
|
|
2603
2624
|
return {
|
|
2604
|
-
...(input.EventDataStore
|
|
2605
|
-
|
|
2606
|
-
...(input.QueryId !== undefined && input.QueryId !== null && { QueryId: input.QueryId }),
|
|
2625
|
+
...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
|
|
2626
|
+
...(input.QueryId != null && { QueryId: input.QueryId }),
|
|
2607
2627
|
};
|
|
2608
2628
|
};
|
|
2609
2629
|
const serializeAws_json1_1CreateEventDataStoreRequest = (input, context) => {
|
|
2610
2630
|
return {
|
|
2611
|
-
...(input.AdvancedEventSelectors
|
|
2612
|
-
input.AdvancedEventSelectors !== null && {
|
|
2631
|
+
...(input.AdvancedEventSelectors != null && {
|
|
2613
2632
|
AdvancedEventSelectors: serializeAws_json1_1AdvancedEventSelectors(input.AdvancedEventSelectors, context),
|
|
2614
2633
|
}),
|
|
2615
|
-
...(input.MultiRegionEnabled
|
|
2616
|
-
|
|
2617
|
-
...(input.
|
|
2618
|
-
...(input.
|
|
2619
|
-
|
|
2620
|
-
...(input.
|
|
2621
|
-
input.RetentionPeriod !== null && { RetentionPeriod: input.RetentionPeriod }),
|
|
2622
|
-
...(input.TagsList !== undefined &&
|
|
2623
|
-
input.TagsList !== null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) }),
|
|
2624
|
-
...(input.TerminationProtectionEnabled !== undefined &&
|
|
2625
|
-
input.TerminationProtectionEnabled !== null && {
|
|
2634
|
+
...(input.MultiRegionEnabled != null && { MultiRegionEnabled: input.MultiRegionEnabled }),
|
|
2635
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2636
|
+
...(input.OrganizationEnabled != null && { OrganizationEnabled: input.OrganizationEnabled }),
|
|
2637
|
+
...(input.RetentionPeriod != null && { RetentionPeriod: input.RetentionPeriod }),
|
|
2638
|
+
...(input.TagsList != null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) }),
|
|
2639
|
+
...(input.TerminationProtectionEnabled != null && {
|
|
2626
2640
|
TerminationProtectionEnabled: input.TerminationProtectionEnabled,
|
|
2627
2641
|
}),
|
|
2628
2642
|
};
|
|
2629
2643
|
};
|
|
2630
2644
|
const serializeAws_json1_1CreateTrailRequest = (input, context) => {
|
|
2631
2645
|
return {
|
|
2632
|
-
...(input.CloudWatchLogsLogGroupArn
|
|
2633
|
-
|
|
2634
|
-
...(input.
|
|
2635
|
-
|
|
2636
|
-
...(input.
|
|
2637
|
-
|
|
2638
|
-
...(input.
|
|
2639
|
-
|
|
2640
|
-
...(input.
|
|
2641
|
-
|
|
2642
|
-
...(input.
|
|
2643
|
-
|
|
2644
|
-
...(input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId }),
|
|
2645
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
2646
|
-
...(input.S3BucketName !== undefined && input.S3BucketName !== null && { S3BucketName: input.S3BucketName }),
|
|
2647
|
-
...(input.S3KeyPrefix !== undefined && input.S3KeyPrefix !== null && { S3KeyPrefix: input.S3KeyPrefix }),
|
|
2648
|
-
...(input.SnsTopicName !== undefined && input.SnsTopicName !== null && { SnsTopicName: input.SnsTopicName }),
|
|
2649
|
-
...(input.TagsList !== undefined &&
|
|
2650
|
-
input.TagsList !== null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) }),
|
|
2646
|
+
...(input.CloudWatchLogsLogGroupArn != null && { CloudWatchLogsLogGroupArn: input.CloudWatchLogsLogGroupArn }),
|
|
2647
|
+
...(input.CloudWatchLogsRoleArn != null && { CloudWatchLogsRoleArn: input.CloudWatchLogsRoleArn }),
|
|
2648
|
+
...(input.EnableLogFileValidation != null && { EnableLogFileValidation: input.EnableLogFileValidation }),
|
|
2649
|
+
...(input.IncludeGlobalServiceEvents != null && { IncludeGlobalServiceEvents: input.IncludeGlobalServiceEvents }),
|
|
2650
|
+
...(input.IsMultiRegionTrail != null && { IsMultiRegionTrail: input.IsMultiRegionTrail }),
|
|
2651
|
+
...(input.IsOrganizationTrail != null && { IsOrganizationTrail: input.IsOrganizationTrail }),
|
|
2652
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
2653
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2654
|
+
...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
|
|
2655
|
+
...(input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix }),
|
|
2656
|
+
...(input.SnsTopicName != null && { SnsTopicName: input.SnsTopicName }),
|
|
2657
|
+
...(input.TagsList != null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) }),
|
|
2651
2658
|
};
|
|
2652
2659
|
};
|
|
2653
2660
|
const serializeAws_json1_1DataResource = (input, context) => {
|
|
2654
2661
|
return {
|
|
2655
|
-
...(input.Type
|
|
2656
|
-
...(input.Values
|
|
2657
|
-
input.Values !== null && { Values: serializeAws_json1_1DataResourceValues(input.Values, context) }),
|
|
2662
|
+
...(input.Type != null && { Type: input.Type }),
|
|
2663
|
+
...(input.Values != null && { Values: serializeAws_json1_1DataResourceValues(input.Values, context) }),
|
|
2658
2664
|
};
|
|
2659
2665
|
};
|
|
2660
2666
|
const serializeAws_json1_1DataResources = (input, context) => {
|
|
@@ -2679,45 +2685,38 @@ const serializeAws_json1_1DataResourceValues = (input, context) => {
|
|
|
2679
2685
|
};
|
|
2680
2686
|
const serializeAws_json1_1DeleteEventDataStoreRequest = (input, context) => {
|
|
2681
2687
|
return {
|
|
2682
|
-
...(input.EventDataStore
|
|
2683
|
-
input.EventDataStore !== null && { EventDataStore: input.EventDataStore }),
|
|
2688
|
+
...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
|
|
2684
2689
|
};
|
|
2685
2690
|
};
|
|
2686
2691
|
const serializeAws_json1_1DeleteTrailRequest = (input, context) => {
|
|
2687
2692
|
return {
|
|
2688
|
-
...(input.Name
|
|
2693
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2689
2694
|
};
|
|
2690
2695
|
};
|
|
2691
2696
|
const serializeAws_json1_1DescribeQueryRequest = (input, context) => {
|
|
2692
2697
|
return {
|
|
2693
|
-
...(input.EventDataStore
|
|
2694
|
-
|
|
2695
|
-
...(input.QueryId !== undefined && input.QueryId !== null && { QueryId: input.QueryId }),
|
|
2698
|
+
...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
|
|
2699
|
+
...(input.QueryId != null && { QueryId: input.QueryId }),
|
|
2696
2700
|
};
|
|
2697
2701
|
};
|
|
2698
2702
|
const serializeAws_json1_1DescribeTrailsRequest = (input, context) => {
|
|
2699
2703
|
return {
|
|
2700
|
-
...(input.includeShadowTrails
|
|
2701
|
-
|
|
2702
|
-
...(input.trailNameList !== undefined &&
|
|
2703
|
-
input.trailNameList !== null && {
|
|
2704
|
+
...(input.includeShadowTrails != null && { includeShadowTrails: input.includeShadowTrails }),
|
|
2705
|
+
...(input.trailNameList != null && {
|
|
2704
2706
|
trailNameList: serializeAws_json1_1TrailNameList(input.trailNameList, context),
|
|
2705
2707
|
}),
|
|
2706
2708
|
};
|
|
2707
2709
|
};
|
|
2708
2710
|
const serializeAws_json1_1EventSelector = (input, context) => {
|
|
2709
2711
|
return {
|
|
2710
|
-
...(input.DataResources
|
|
2711
|
-
input.DataResources !== null && {
|
|
2712
|
+
...(input.DataResources != null && {
|
|
2712
2713
|
DataResources: serializeAws_json1_1DataResources(input.DataResources, context),
|
|
2713
2714
|
}),
|
|
2714
|
-
...(input.ExcludeManagementEventSources
|
|
2715
|
-
input.ExcludeManagementEventSources !== null && {
|
|
2715
|
+
...(input.ExcludeManagementEventSources != null && {
|
|
2716
2716
|
ExcludeManagementEventSources: serializeAws_json1_1ExcludeManagementEventSources(input.ExcludeManagementEventSources, context),
|
|
2717
2717
|
}),
|
|
2718
|
-
...(input.IncludeManagementEvents
|
|
2719
|
-
|
|
2720
|
-
...(input.ReadWriteType !== undefined && input.ReadWriteType !== null && { ReadWriteType: input.ReadWriteType }),
|
|
2718
|
+
...(input.IncludeManagementEvents != null && { IncludeManagementEvents: input.IncludeManagementEvents }),
|
|
2719
|
+
...(input.ReadWriteType != null && { ReadWriteType: input.ReadWriteType }),
|
|
2721
2720
|
};
|
|
2722
2721
|
};
|
|
2723
2722
|
const serializeAws_json1_1EventSelectors = (input, context) => {
|
|
@@ -2742,43 +2741,40 @@ const serializeAws_json1_1ExcludeManagementEventSources = (input, context) => {
|
|
|
2742
2741
|
};
|
|
2743
2742
|
const serializeAws_json1_1GetEventDataStoreRequest = (input, context) => {
|
|
2744
2743
|
return {
|
|
2745
|
-
...(input.EventDataStore
|
|
2746
|
-
input.EventDataStore !== null && { EventDataStore: input.EventDataStore }),
|
|
2744
|
+
...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
|
|
2747
2745
|
};
|
|
2748
2746
|
};
|
|
2749
2747
|
const serializeAws_json1_1GetEventSelectorsRequest = (input, context) => {
|
|
2750
2748
|
return {
|
|
2751
|
-
...(input.TrailName
|
|
2749
|
+
...(input.TrailName != null && { TrailName: input.TrailName }),
|
|
2752
2750
|
};
|
|
2753
2751
|
};
|
|
2754
2752
|
const serializeAws_json1_1GetInsightSelectorsRequest = (input, context) => {
|
|
2755
2753
|
return {
|
|
2756
|
-
...(input.TrailName
|
|
2754
|
+
...(input.TrailName != null && { TrailName: input.TrailName }),
|
|
2757
2755
|
};
|
|
2758
2756
|
};
|
|
2759
2757
|
const serializeAws_json1_1GetQueryResultsRequest = (input, context) => {
|
|
2760
2758
|
return {
|
|
2761
|
-
...(input.EventDataStore
|
|
2762
|
-
|
|
2763
|
-
...(input.
|
|
2764
|
-
|
|
2765
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2766
|
-
...(input.QueryId !== undefined && input.QueryId !== null && { QueryId: input.QueryId }),
|
|
2759
|
+
...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
|
|
2760
|
+
...(input.MaxQueryResults != null && { MaxQueryResults: input.MaxQueryResults }),
|
|
2761
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2762
|
+
...(input.QueryId != null && { QueryId: input.QueryId }),
|
|
2767
2763
|
};
|
|
2768
2764
|
};
|
|
2769
2765
|
const serializeAws_json1_1GetTrailRequest = (input, context) => {
|
|
2770
2766
|
return {
|
|
2771
|
-
...(input.Name
|
|
2767
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2772
2768
|
};
|
|
2773
2769
|
};
|
|
2774
2770
|
const serializeAws_json1_1GetTrailStatusRequest = (input, context) => {
|
|
2775
2771
|
return {
|
|
2776
|
-
...(input.Name
|
|
2772
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2777
2773
|
};
|
|
2778
2774
|
};
|
|
2779
2775
|
const serializeAws_json1_1InsightSelector = (input, context) => {
|
|
2780
2776
|
return {
|
|
2781
|
-
...(input.InsightType
|
|
2777
|
+
...(input.InsightType != null && { InsightType: input.InsightType }),
|
|
2782
2778
|
};
|
|
2783
2779
|
};
|
|
2784
2780
|
const serializeAws_json1_1InsightSelectors = (input, context) => {
|
|
@@ -2793,51 +2789,44 @@ const serializeAws_json1_1InsightSelectors = (input, context) => {
|
|
|
2793
2789
|
};
|
|
2794
2790
|
const serializeAws_json1_1ListEventDataStoresRequest = (input, context) => {
|
|
2795
2791
|
return {
|
|
2796
|
-
...(input.MaxResults
|
|
2797
|
-
...(input.NextToken
|
|
2792
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2793
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2798
2794
|
};
|
|
2799
2795
|
};
|
|
2800
2796
|
const serializeAws_json1_1ListPublicKeysRequest = (input, context) => {
|
|
2801
2797
|
return {
|
|
2802
|
-
...(input.EndTime
|
|
2803
|
-
|
|
2804
|
-
...(input.
|
|
2805
|
-
...(input.StartTime !== undefined &&
|
|
2806
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
2798
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
2799
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2800
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
2807
2801
|
};
|
|
2808
2802
|
};
|
|
2809
2803
|
const serializeAws_json1_1ListQueriesRequest = (input, context) => {
|
|
2810
2804
|
return {
|
|
2811
|
-
...(input.EndTime
|
|
2812
|
-
|
|
2813
|
-
...(input.
|
|
2814
|
-
|
|
2815
|
-
...(input.
|
|
2816
|
-
...(input.
|
|
2817
|
-
...(input.QueryStatus !== undefined && input.QueryStatus !== null && { QueryStatus: input.QueryStatus }),
|
|
2818
|
-
...(input.StartTime !== undefined &&
|
|
2819
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
2805
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
2806
|
+
...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
|
|
2807
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2808
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2809
|
+
...(input.QueryStatus != null && { QueryStatus: input.QueryStatus }),
|
|
2810
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
2820
2811
|
};
|
|
2821
2812
|
};
|
|
2822
2813
|
const serializeAws_json1_1ListTagsRequest = (input, context) => {
|
|
2823
2814
|
return {
|
|
2824
|
-
...(input.NextToken
|
|
2825
|
-
...(input.ResourceIdList
|
|
2826
|
-
input.ResourceIdList !== null && {
|
|
2815
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2816
|
+
...(input.ResourceIdList != null && {
|
|
2827
2817
|
ResourceIdList: serializeAws_json1_1ResourceIdList(input.ResourceIdList, context),
|
|
2828
2818
|
}),
|
|
2829
2819
|
};
|
|
2830
2820
|
};
|
|
2831
2821
|
const serializeAws_json1_1ListTrailsRequest = (input, context) => {
|
|
2832
2822
|
return {
|
|
2833
|
-
...(input.NextToken
|
|
2823
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2834
2824
|
};
|
|
2835
2825
|
};
|
|
2836
2826
|
const serializeAws_json1_1LookupAttribute = (input, context) => {
|
|
2837
2827
|
return {
|
|
2838
|
-
...(input.AttributeKey
|
|
2839
|
-
...(input.AttributeValue
|
|
2840
|
-
input.AttributeValue !== null && { AttributeValue: input.AttributeValue }),
|
|
2828
|
+
...(input.AttributeKey != null && { AttributeKey: input.AttributeKey }),
|
|
2829
|
+
...(input.AttributeValue != null && { AttributeValue: input.AttributeValue }),
|
|
2841
2830
|
};
|
|
2842
2831
|
};
|
|
2843
2832
|
const serializeAws_json1_1LookupAttributesList = (input, context) => {
|
|
@@ -2852,17 +2841,14 @@ const serializeAws_json1_1LookupAttributesList = (input, context) => {
|
|
|
2852
2841
|
};
|
|
2853
2842
|
const serializeAws_json1_1LookupEventsRequest = (input, context) => {
|
|
2854
2843
|
return {
|
|
2855
|
-
...(input.EndTime
|
|
2856
|
-
|
|
2857
|
-
...(input.
|
|
2858
|
-
...(input.LookupAttributes !== undefined &&
|
|
2859
|
-
input.LookupAttributes !== null && {
|
|
2844
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
2845
|
+
...(input.EventCategory != null && { EventCategory: input.EventCategory }),
|
|
2846
|
+
...(input.LookupAttributes != null && {
|
|
2860
2847
|
LookupAttributes: serializeAws_json1_1LookupAttributesList(input.LookupAttributes, context),
|
|
2861
2848
|
}),
|
|
2862
|
-
...(input.MaxResults
|
|
2863
|
-
...(input.NextToken
|
|
2864
|
-
...(input.StartTime
|
|
2865
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
2849
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2850
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2851
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
2866
2852
|
};
|
|
2867
2853
|
};
|
|
2868
2854
|
const serializeAws_json1_1Operator = (input, context) => {
|
|
@@ -2877,31 +2863,27 @@ const serializeAws_json1_1Operator = (input, context) => {
|
|
|
2877
2863
|
};
|
|
2878
2864
|
const serializeAws_json1_1PutEventSelectorsRequest = (input, context) => {
|
|
2879
2865
|
return {
|
|
2880
|
-
...(input.AdvancedEventSelectors
|
|
2881
|
-
input.AdvancedEventSelectors !== null && {
|
|
2866
|
+
...(input.AdvancedEventSelectors != null && {
|
|
2882
2867
|
AdvancedEventSelectors: serializeAws_json1_1AdvancedEventSelectors(input.AdvancedEventSelectors, context),
|
|
2883
2868
|
}),
|
|
2884
|
-
...(input.EventSelectors
|
|
2885
|
-
input.EventSelectors !== null && {
|
|
2869
|
+
...(input.EventSelectors != null && {
|
|
2886
2870
|
EventSelectors: serializeAws_json1_1EventSelectors(input.EventSelectors, context),
|
|
2887
2871
|
}),
|
|
2888
|
-
...(input.TrailName
|
|
2872
|
+
...(input.TrailName != null && { TrailName: input.TrailName }),
|
|
2889
2873
|
};
|
|
2890
2874
|
};
|
|
2891
2875
|
const serializeAws_json1_1PutInsightSelectorsRequest = (input, context) => {
|
|
2892
2876
|
return {
|
|
2893
|
-
...(input.InsightSelectors
|
|
2894
|
-
input.InsightSelectors !== null && {
|
|
2877
|
+
...(input.InsightSelectors != null && {
|
|
2895
2878
|
InsightSelectors: serializeAws_json1_1InsightSelectors(input.InsightSelectors, context),
|
|
2896
2879
|
}),
|
|
2897
|
-
...(input.TrailName
|
|
2880
|
+
...(input.TrailName != null && { TrailName: input.TrailName }),
|
|
2898
2881
|
};
|
|
2899
2882
|
};
|
|
2900
2883
|
const serializeAws_json1_1RemoveTagsRequest = (input, context) => {
|
|
2901
2884
|
return {
|
|
2902
|
-
...(input.ResourceId
|
|
2903
|
-
...(input.TagsList
|
|
2904
|
-
input.TagsList !== null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) }),
|
|
2885
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
2886
|
+
...(input.TagsList != null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) }),
|
|
2905
2887
|
};
|
|
2906
2888
|
};
|
|
2907
2889
|
const serializeAws_json1_1ResourceIdList = (input, context) => {
|
|
@@ -2916,30 +2898,28 @@ const serializeAws_json1_1ResourceIdList = (input, context) => {
|
|
|
2916
2898
|
};
|
|
2917
2899
|
const serializeAws_json1_1RestoreEventDataStoreRequest = (input, context) => {
|
|
2918
2900
|
return {
|
|
2919
|
-
...(input.EventDataStore
|
|
2920
|
-
input.EventDataStore !== null && { EventDataStore: input.EventDataStore }),
|
|
2901
|
+
...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
|
|
2921
2902
|
};
|
|
2922
2903
|
};
|
|
2923
2904
|
const serializeAws_json1_1StartLoggingRequest = (input, context) => {
|
|
2924
2905
|
return {
|
|
2925
|
-
...(input.Name
|
|
2906
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2926
2907
|
};
|
|
2927
2908
|
};
|
|
2928
2909
|
const serializeAws_json1_1StartQueryRequest = (input, context) => {
|
|
2929
2910
|
return {
|
|
2930
|
-
...(input.QueryStatement
|
|
2931
|
-
input.QueryStatement !== null && { QueryStatement: input.QueryStatement }),
|
|
2911
|
+
...(input.QueryStatement != null && { QueryStatement: input.QueryStatement }),
|
|
2932
2912
|
};
|
|
2933
2913
|
};
|
|
2934
2914
|
const serializeAws_json1_1StopLoggingRequest = (input, context) => {
|
|
2935
2915
|
return {
|
|
2936
|
-
...(input.Name
|
|
2916
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2937
2917
|
};
|
|
2938
2918
|
};
|
|
2939
2919
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
2940
2920
|
return {
|
|
2941
|
-
...(input.Key
|
|
2942
|
-
...(input.Value
|
|
2921
|
+
...(input.Key != null && { Key: input.Key }),
|
|
2922
|
+
...(input.Value != null && { Value: input.Value }),
|
|
2943
2923
|
};
|
|
2944
2924
|
};
|
|
2945
2925
|
const serializeAws_json1_1TagsList = (input, context) => {
|
|
@@ -2964,44 +2944,32 @@ const serializeAws_json1_1TrailNameList = (input, context) => {
|
|
|
2964
2944
|
};
|
|
2965
2945
|
const serializeAws_json1_1UpdateEventDataStoreRequest = (input, context) => {
|
|
2966
2946
|
return {
|
|
2967
|
-
...(input.AdvancedEventSelectors
|
|
2968
|
-
input.AdvancedEventSelectors !== null && {
|
|
2947
|
+
...(input.AdvancedEventSelectors != null && {
|
|
2969
2948
|
AdvancedEventSelectors: serializeAws_json1_1AdvancedEventSelectors(input.AdvancedEventSelectors, context),
|
|
2970
2949
|
}),
|
|
2971
|
-
...(input.EventDataStore
|
|
2972
|
-
|
|
2973
|
-
...(input.
|
|
2974
|
-
|
|
2975
|
-
...(input.
|
|
2976
|
-
...(input.
|
|
2977
|
-
input.OrganizationEnabled !== null && { OrganizationEnabled: input.OrganizationEnabled }),
|
|
2978
|
-
...(input.RetentionPeriod !== undefined &&
|
|
2979
|
-
input.RetentionPeriod !== null && { RetentionPeriod: input.RetentionPeriod }),
|
|
2980
|
-
...(input.TerminationProtectionEnabled !== undefined &&
|
|
2981
|
-
input.TerminationProtectionEnabled !== null && {
|
|
2950
|
+
...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
|
|
2951
|
+
...(input.MultiRegionEnabled != null && { MultiRegionEnabled: input.MultiRegionEnabled }),
|
|
2952
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2953
|
+
...(input.OrganizationEnabled != null && { OrganizationEnabled: input.OrganizationEnabled }),
|
|
2954
|
+
...(input.RetentionPeriod != null && { RetentionPeriod: input.RetentionPeriod }),
|
|
2955
|
+
...(input.TerminationProtectionEnabled != null && {
|
|
2982
2956
|
TerminationProtectionEnabled: input.TerminationProtectionEnabled,
|
|
2983
2957
|
}),
|
|
2984
2958
|
};
|
|
2985
2959
|
};
|
|
2986
2960
|
const serializeAws_json1_1UpdateTrailRequest = (input, context) => {
|
|
2987
2961
|
return {
|
|
2988
|
-
...(input.CloudWatchLogsLogGroupArn
|
|
2989
|
-
|
|
2990
|
-
...(input.
|
|
2991
|
-
|
|
2992
|
-
...(input.
|
|
2993
|
-
|
|
2994
|
-
...(input.
|
|
2995
|
-
|
|
2996
|
-
...(input.
|
|
2997
|
-
|
|
2998
|
-
...(input.
|
|
2999
|
-
input.IsOrganizationTrail !== null && { IsOrganizationTrail: input.IsOrganizationTrail }),
|
|
3000
|
-
...(input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId }),
|
|
3001
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
3002
|
-
...(input.S3BucketName !== undefined && input.S3BucketName !== null && { S3BucketName: input.S3BucketName }),
|
|
3003
|
-
...(input.S3KeyPrefix !== undefined && input.S3KeyPrefix !== null && { S3KeyPrefix: input.S3KeyPrefix }),
|
|
3004
|
-
...(input.SnsTopicName !== undefined && input.SnsTopicName !== null && { SnsTopicName: input.SnsTopicName }),
|
|
2962
|
+
...(input.CloudWatchLogsLogGroupArn != null && { CloudWatchLogsLogGroupArn: input.CloudWatchLogsLogGroupArn }),
|
|
2963
|
+
...(input.CloudWatchLogsRoleArn != null && { CloudWatchLogsRoleArn: input.CloudWatchLogsRoleArn }),
|
|
2964
|
+
...(input.EnableLogFileValidation != null && { EnableLogFileValidation: input.EnableLogFileValidation }),
|
|
2965
|
+
...(input.IncludeGlobalServiceEvents != null && { IncludeGlobalServiceEvents: input.IncludeGlobalServiceEvents }),
|
|
2966
|
+
...(input.IsMultiRegionTrail != null && { IsMultiRegionTrail: input.IsMultiRegionTrail }),
|
|
2967
|
+
...(input.IsOrganizationTrail != null && { IsOrganizationTrail: input.IsOrganizationTrail }),
|
|
2968
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
2969
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2970
|
+
...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
|
|
2971
|
+
...(input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix }),
|
|
2972
|
+
...(input.SnsTopicName != null && { SnsTopicName: input.SnsTopicName }),
|
|
3005
2973
|
};
|
|
3006
2974
|
};
|
|
3007
2975
|
const deserializeAws_json1_1AddTagsResponse = (output, context) => {
|
|
@@ -3009,7 +2977,7 @@ const deserializeAws_json1_1AddTagsResponse = (output, context) => {
|
|
|
3009
2977
|
};
|
|
3010
2978
|
const deserializeAws_json1_1AdvancedEventSelector = (output, context) => {
|
|
3011
2979
|
return {
|
|
3012
|
-
FieldSelectors: output.FieldSelectors
|
|
2980
|
+
FieldSelectors: output.FieldSelectors != null
|
|
3013
2981
|
? deserializeAws_json1_1AdvancedFieldSelectors(output.FieldSelectors, context)
|
|
3014
2982
|
: undefined,
|
|
3015
2983
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -3028,25 +2996,13 @@ const deserializeAws_json1_1AdvancedEventSelectors = (output, context) => {
|
|
|
3028
2996
|
};
|
|
3029
2997
|
const deserializeAws_json1_1AdvancedFieldSelector = (output, context) => {
|
|
3030
2998
|
return {
|
|
3031
|
-
EndsWith: output.EndsWith
|
|
3032
|
-
|
|
3033
|
-
: undefined,
|
|
3034
|
-
Equals: output.Equals !== undefined && output.Equals !== null
|
|
3035
|
-
? deserializeAws_json1_1Operator(output.Equals, context)
|
|
3036
|
-
: undefined,
|
|
2999
|
+
EndsWith: output.EndsWith != null ? deserializeAws_json1_1Operator(output.EndsWith, context) : undefined,
|
|
3000
|
+
Equals: output.Equals != null ? deserializeAws_json1_1Operator(output.Equals, context) : undefined,
|
|
3037
3001
|
Field: (0, smithy_client_1.expectString)(output.Field),
|
|
3038
|
-
NotEndsWith: output.NotEndsWith
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
? deserializeAws_json1_1Operator(output.NotEquals, context)
|
|
3043
|
-
: undefined,
|
|
3044
|
-
NotStartsWith: output.NotStartsWith !== undefined && output.NotStartsWith !== null
|
|
3045
|
-
? deserializeAws_json1_1Operator(output.NotStartsWith, context)
|
|
3046
|
-
: undefined,
|
|
3047
|
-
StartsWith: output.StartsWith !== undefined && output.StartsWith !== null
|
|
3048
|
-
? deserializeAws_json1_1Operator(output.StartsWith, context)
|
|
3049
|
-
: undefined,
|
|
3002
|
+
NotEndsWith: output.NotEndsWith != null ? deserializeAws_json1_1Operator(output.NotEndsWith, context) : undefined,
|
|
3003
|
+
NotEquals: output.NotEquals != null ? deserializeAws_json1_1Operator(output.NotEquals, context) : undefined,
|
|
3004
|
+
NotStartsWith: output.NotStartsWith != null ? deserializeAws_json1_1Operator(output.NotStartsWith, context) : undefined,
|
|
3005
|
+
StartsWith: output.StartsWith != null ? deserializeAws_json1_1Operator(output.StartsWith, context) : undefined,
|
|
3050
3006
|
};
|
|
3051
3007
|
};
|
|
3052
3008
|
const deserializeAws_json1_1AdvancedFieldSelectors = (output, context) => {
|
|
@@ -3093,10 +3049,10 @@ const deserializeAws_json1_1ConflictException = (output, context) => {
|
|
|
3093
3049
|
};
|
|
3094
3050
|
const deserializeAws_json1_1CreateEventDataStoreResponse = (output, context) => {
|
|
3095
3051
|
return {
|
|
3096
|
-
AdvancedEventSelectors: output.AdvancedEventSelectors
|
|
3052
|
+
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|
|
3097
3053
|
? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
|
|
3098
3054
|
: undefined,
|
|
3099
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
3055
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
3100
3056
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
3101
3057
|
: undefined,
|
|
3102
3058
|
EventDataStoreArn: (0, smithy_client_1.expectString)(output.EventDataStoreArn),
|
|
@@ -3105,11 +3061,9 @@ const deserializeAws_json1_1CreateEventDataStoreResponse = (output, context) =>
|
|
|
3105
3061
|
OrganizationEnabled: (0, smithy_client_1.expectBoolean)(output.OrganizationEnabled),
|
|
3106
3062
|
RetentionPeriod: (0, smithy_client_1.expectInt32)(output.RetentionPeriod),
|
|
3107
3063
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3108
|
-
TagsList: output.TagsList
|
|
3109
|
-
? deserializeAws_json1_1TagsList(output.TagsList, context)
|
|
3110
|
-
: undefined,
|
|
3064
|
+
TagsList: output.TagsList != null ? deserializeAws_json1_1TagsList(output.TagsList, context) : undefined,
|
|
3111
3065
|
TerminationProtectionEnabled: (0, smithy_client_1.expectBoolean)(output.TerminationProtectionEnabled),
|
|
3112
|
-
UpdatedTimestamp: output.UpdatedTimestamp
|
|
3066
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
3113
3067
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTimestamp)))
|
|
3114
3068
|
: undefined,
|
|
3115
3069
|
};
|
|
@@ -3134,9 +3088,7 @@ const deserializeAws_json1_1CreateTrailResponse = (output, context) => {
|
|
|
3134
3088
|
const deserializeAws_json1_1DataResource = (output, context) => {
|
|
3135
3089
|
return {
|
|
3136
3090
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3137
|
-
Values: output.Values
|
|
3138
|
-
? deserializeAws_json1_1DataResourceValues(output.Values, context)
|
|
3139
|
-
: undefined,
|
|
3091
|
+
Values: output.Values != null ? deserializeAws_json1_1DataResourceValues(output.Values, context) : undefined,
|
|
3140
3092
|
};
|
|
3141
3093
|
};
|
|
3142
3094
|
const deserializeAws_json1_1DataResources = (output, context) => {
|
|
@@ -3171,7 +3123,7 @@ const deserializeAws_json1_1DescribeQueryResponse = (output, context) => {
|
|
|
3171
3123
|
return {
|
|
3172
3124
|
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
3173
3125
|
QueryId: (0, smithy_client_1.expectString)(output.QueryId),
|
|
3174
|
-
QueryStatistics: output.QueryStatistics
|
|
3126
|
+
QueryStatistics: output.QueryStatistics != null
|
|
3175
3127
|
? deserializeAws_json1_1QueryStatisticsForDescribeQuery(output.QueryStatistics, context)
|
|
3176
3128
|
: undefined,
|
|
3177
3129
|
QueryStatus: (0, smithy_client_1.expectString)(output.QueryStatus),
|
|
@@ -3180,9 +3132,7 @@ const deserializeAws_json1_1DescribeQueryResponse = (output, context) => {
|
|
|
3180
3132
|
};
|
|
3181
3133
|
const deserializeAws_json1_1DescribeTrailsResponse = (output, context) => {
|
|
3182
3134
|
return {
|
|
3183
|
-
trailList: output.trailList
|
|
3184
|
-
? deserializeAws_json1_1TrailList(output.trailList, context)
|
|
3185
|
-
: undefined,
|
|
3135
|
+
trailList: output.trailList != null ? deserializeAws_json1_1TrailList(output.trailList, context) : undefined,
|
|
3186
3136
|
};
|
|
3187
3137
|
};
|
|
3188
3138
|
const deserializeAws_json1_1Event = (output, context) => {
|
|
@@ -3192,22 +3142,18 @@ const deserializeAws_json1_1Event = (output, context) => {
|
|
|
3192
3142
|
EventId: (0, smithy_client_1.expectString)(output.EventId),
|
|
3193
3143
|
EventName: (0, smithy_client_1.expectString)(output.EventName),
|
|
3194
3144
|
EventSource: (0, smithy_client_1.expectString)(output.EventSource),
|
|
3195
|
-
EventTime: output.EventTime
|
|
3196
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventTime)))
|
|
3197
|
-
: undefined,
|
|
3145
|
+
EventTime: output.EventTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventTime))) : undefined,
|
|
3198
3146
|
ReadOnly: (0, smithy_client_1.expectString)(output.ReadOnly),
|
|
3199
|
-
Resources: output.Resources
|
|
3200
|
-
? deserializeAws_json1_1ResourceList(output.Resources, context)
|
|
3201
|
-
: undefined,
|
|
3147
|
+
Resources: output.Resources != null ? deserializeAws_json1_1ResourceList(output.Resources, context) : undefined,
|
|
3202
3148
|
Username: (0, smithy_client_1.expectString)(output.Username),
|
|
3203
3149
|
};
|
|
3204
3150
|
};
|
|
3205
3151
|
const deserializeAws_json1_1EventDataStore = (output, context) => {
|
|
3206
3152
|
return {
|
|
3207
|
-
AdvancedEventSelectors: output.AdvancedEventSelectors
|
|
3153
|
+
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|
|
3208
3154
|
? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
|
|
3209
3155
|
: undefined,
|
|
3210
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
3156
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
3211
3157
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
3212
3158
|
: undefined,
|
|
3213
3159
|
EventDataStoreArn: (0, smithy_client_1.expectString)(output.EventDataStoreArn),
|
|
@@ -3217,7 +3163,7 @@ const deserializeAws_json1_1EventDataStore = (output, context) => {
|
|
|
3217
3163
|
RetentionPeriod: (0, smithy_client_1.expectInt32)(output.RetentionPeriod),
|
|
3218
3164
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3219
3165
|
TerminationProtectionEnabled: (0, smithy_client_1.expectBoolean)(output.TerminationProtectionEnabled),
|
|
3220
|
-
UpdatedTimestamp: output.UpdatedTimestamp
|
|
3166
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
3221
3167
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTimestamp)))
|
|
3222
3168
|
: undefined,
|
|
3223
3169
|
};
|
|
@@ -3260,10 +3206,8 @@ const deserializeAws_json1_1EventDataStoreTerminationProtectedException = (outpu
|
|
|
3260
3206
|
};
|
|
3261
3207
|
const deserializeAws_json1_1EventSelector = (output, context) => {
|
|
3262
3208
|
return {
|
|
3263
|
-
DataResources: output.DataResources
|
|
3264
|
-
|
|
3265
|
-
: undefined,
|
|
3266
|
-
ExcludeManagementEventSources: output.ExcludeManagementEventSources !== undefined && output.ExcludeManagementEventSources !== null
|
|
3209
|
+
DataResources: output.DataResources != null ? deserializeAws_json1_1DataResources(output.DataResources, context) : undefined,
|
|
3210
|
+
ExcludeManagementEventSources: output.ExcludeManagementEventSources != null
|
|
3267
3211
|
? deserializeAws_json1_1ExcludeManagementEventSources(output.ExcludeManagementEventSources, context)
|
|
3268
3212
|
: undefined,
|
|
3269
3213
|
IncludeManagementEvents: (0, smithy_client_1.expectBoolean)(output.IncludeManagementEvents),
|
|
@@ -3305,10 +3249,10 @@ const deserializeAws_json1_1ExcludeManagementEventSources = (output, context) =>
|
|
|
3305
3249
|
};
|
|
3306
3250
|
const deserializeAws_json1_1GetEventDataStoreResponse = (output, context) => {
|
|
3307
3251
|
return {
|
|
3308
|
-
AdvancedEventSelectors: output.AdvancedEventSelectors
|
|
3252
|
+
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|
|
3309
3253
|
? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
|
|
3310
3254
|
: undefined,
|
|
3311
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
3255
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
3312
3256
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
3313
3257
|
: undefined,
|
|
3314
3258
|
EventDataStoreArn: (0, smithy_client_1.expectString)(output.EventDataStoreArn),
|
|
@@ -3318,25 +3262,23 @@ const deserializeAws_json1_1GetEventDataStoreResponse = (output, context) => {
|
|
|
3318
3262
|
RetentionPeriod: (0, smithy_client_1.expectInt32)(output.RetentionPeriod),
|
|
3319
3263
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3320
3264
|
TerminationProtectionEnabled: (0, smithy_client_1.expectBoolean)(output.TerminationProtectionEnabled),
|
|
3321
|
-
UpdatedTimestamp: output.UpdatedTimestamp
|
|
3265
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
3322
3266
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTimestamp)))
|
|
3323
3267
|
: undefined,
|
|
3324
3268
|
};
|
|
3325
3269
|
};
|
|
3326
3270
|
const deserializeAws_json1_1GetEventSelectorsResponse = (output, context) => {
|
|
3327
3271
|
return {
|
|
3328
|
-
AdvancedEventSelectors: output.AdvancedEventSelectors
|
|
3272
|
+
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|
|
3329
3273
|
? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
|
|
3330
3274
|
: undefined,
|
|
3331
|
-
EventSelectors: output.EventSelectors
|
|
3332
|
-
? deserializeAws_json1_1EventSelectors(output.EventSelectors, context)
|
|
3333
|
-
: undefined,
|
|
3275
|
+
EventSelectors: output.EventSelectors != null ? deserializeAws_json1_1EventSelectors(output.EventSelectors, context) : undefined,
|
|
3334
3276
|
TrailARN: (0, smithy_client_1.expectString)(output.TrailARN),
|
|
3335
3277
|
};
|
|
3336
3278
|
};
|
|
3337
3279
|
const deserializeAws_json1_1GetInsightSelectorsResponse = (output, context) => {
|
|
3338
3280
|
return {
|
|
3339
|
-
InsightSelectors: output.InsightSelectors
|
|
3281
|
+
InsightSelectors: output.InsightSelectors != null
|
|
3340
3282
|
? deserializeAws_json1_1InsightSelectors(output.InsightSelectors, context)
|
|
3341
3283
|
: undefined,
|
|
3342
3284
|
TrailARN: (0, smithy_client_1.expectString)(output.TrailARN),
|
|
@@ -3346,10 +3288,10 @@ const deserializeAws_json1_1GetQueryResultsResponse = (output, context) => {
|
|
|
3346
3288
|
return {
|
|
3347
3289
|
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
3348
3290
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3349
|
-
QueryResultRows: output.QueryResultRows
|
|
3291
|
+
QueryResultRows: output.QueryResultRows != null
|
|
3350
3292
|
? deserializeAws_json1_1QueryResultRows(output.QueryResultRows, context)
|
|
3351
3293
|
: undefined,
|
|
3352
|
-
QueryStatistics: output.QueryStatistics
|
|
3294
|
+
QueryStatistics: output.QueryStatistics != null
|
|
3353
3295
|
? deserializeAws_json1_1QueryStatistics(output.QueryStatistics, context)
|
|
3354
3296
|
: undefined,
|
|
3355
3297
|
QueryStatus: (0, smithy_client_1.expectString)(output.QueryStatus),
|
|
@@ -3357,38 +3299,36 @@ const deserializeAws_json1_1GetQueryResultsResponse = (output, context) => {
|
|
|
3357
3299
|
};
|
|
3358
3300
|
const deserializeAws_json1_1GetTrailResponse = (output, context) => {
|
|
3359
3301
|
return {
|
|
3360
|
-
Trail: output.Trail
|
|
3361
|
-
? deserializeAws_json1_1Trail(output.Trail, context)
|
|
3362
|
-
: undefined,
|
|
3302
|
+
Trail: output.Trail != null ? deserializeAws_json1_1Trail(output.Trail, context) : undefined,
|
|
3363
3303
|
};
|
|
3364
3304
|
};
|
|
3365
3305
|
const deserializeAws_json1_1GetTrailStatusResponse = (output, context) => {
|
|
3366
3306
|
return {
|
|
3367
3307
|
IsLogging: (0, smithy_client_1.expectBoolean)(output.IsLogging),
|
|
3368
3308
|
LatestCloudWatchLogsDeliveryError: (0, smithy_client_1.expectString)(output.LatestCloudWatchLogsDeliveryError),
|
|
3369
|
-
LatestCloudWatchLogsDeliveryTime: output.LatestCloudWatchLogsDeliveryTime
|
|
3309
|
+
LatestCloudWatchLogsDeliveryTime: output.LatestCloudWatchLogsDeliveryTime != null
|
|
3370
3310
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestCloudWatchLogsDeliveryTime)))
|
|
3371
3311
|
: undefined,
|
|
3372
3312
|
LatestDeliveryAttemptSucceeded: (0, smithy_client_1.expectString)(output.LatestDeliveryAttemptSucceeded),
|
|
3373
3313
|
LatestDeliveryAttemptTime: (0, smithy_client_1.expectString)(output.LatestDeliveryAttemptTime),
|
|
3374
3314
|
LatestDeliveryError: (0, smithy_client_1.expectString)(output.LatestDeliveryError),
|
|
3375
|
-
LatestDeliveryTime: output.LatestDeliveryTime
|
|
3315
|
+
LatestDeliveryTime: output.LatestDeliveryTime != null
|
|
3376
3316
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestDeliveryTime)))
|
|
3377
3317
|
: undefined,
|
|
3378
3318
|
LatestDigestDeliveryError: (0, smithy_client_1.expectString)(output.LatestDigestDeliveryError),
|
|
3379
|
-
LatestDigestDeliveryTime: output.LatestDigestDeliveryTime
|
|
3319
|
+
LatestDigestDeliveryTime: output.LatestDigestDeliveryTime != null
|
|
3380
3320
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestDigestDeliveryTime)))
|
|
3381
3321
|
: undefined,
|
|
3382
3322
|
LatestNotificationAttemptSucceeded: (0, smithy_client_1.expectString)(output.LatestNotificationAttemptSucceeded),
|
|
3383
3323
|
LatestNotificationAttemptTime: (0, smithy_client_1.expectString)(output.LatestNotificationAttemptTime),
|
|
3384
3324
|
LatestNotificationError: (0, smithy_client_1.expectString)(output.LatestNotificationError),
|
|
3385
|
-
LatestNotificationTime: output.LatestNotificationTime
|
|
3325
|
+
LatestNotificationTime: output.LatestNotificationTime != null
|
|
3386
3326
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestNotificationTime)))
|
|
3387
3327
|
: undefined,
|
|
3388
|
-
StartLoggingTime: output.StartLoggingTime
|
|
3328
|
+
StartLoggingTime: output.StartLoggingTime != null
|
|
3389
3329
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartLoggingTime)))
|
|
3390
3330
|
: undefined,
|
|
3391
|
-
StopLoggingTime: output.StopLoggingTime
|
|
3331
|
+
StopLoggingTime: output.StopLoggingTime != null
|
|
3392
3332
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StopLoggingTime)))
|
|
3393
3333
|
: undefined,
|
|
3394
3334
|
TimeLoggingStarted: (0, smithy_client_1.expectString)(output.TimeLoggingStarted),
|
|
@@ -3578,7 +3518,7 @@ const deserializeAws_json1_1KmsKeyNotFoundException = (output, context) => {
|
|
|
3578
3518
|
};
|
|
3579
3519
|
const deserializeAws_json1_1ListEventDataStoresResponse = (output, context) => {
|
|
3580
3520
|
return {
|
|
3581
|
-
EventDataStores: output.EventDataStores
|
|
3521
|
+
EventDataStores: output.EventDataStores != null
|
|
3582
3522
|
? deserializeAws_json1_1EventDataStores(output.EventDataStores, context)
|
|
3583
3523
|
: undefined,
|
|
3584
3524
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -3587,23 +3527,19 @@ const deserializeAws_json1_1ListEventDataStoresResponse = (output, context) => {
|
|
|
3587
3527
|
const deserializeAws_json1_1ListPublicKeysResponse = (output, context) => {
|
|
3588
3528
|
return {
|
|
3589
3529
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3590
|
-
PublicKeyList: output.PublicKeyList
|
|
3591
|
-
? deserializeAws_json1_1PublicKeyList(output.PublicKeyList, context)
|
|
3592
|
-
: undefined,
|
|
3530
|
+
PublicKeyList: output.PublicKeyList != null ? deserializeAws_json1_1PublicKeyList(output.PublicKeyList, context) : undefined,
|
|
3593
3531
|
};
|
|
3594
3532
|
};
|
|
3595
3533
|
const deserializeAws_json1_1ListQueriesResponse = (output, context) => {
|
|
3596
3534
|
return {
|
|
3597
3535
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3598
|
-
Queries: output.Queries
|
|
3599
|
-
? deserializeAws_json1_1Queries(output.Queries, context)
|
|
3600
|
-
: undefined,
|
|
3536
|
+
Queries: output.Queries != null ? deserializeAws_json1_1Queries(output.Queries, context) : undefined,
|
|
3601
3537
|
};
|
|
3602
3538
|
};
|
|
3603
3539
|
const deserializeAws_json1_1ListTagsResponse = (output, context) => {
|
|
3604
3540
|
return {
|
|
3605
3541
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3606
|
-
ResourceTagList: output.ResourceTagList
|
|
3542
|
+
ResourceTagList: output.ResourceTagList != null
|
|
3607
3543
|
? deserializeAws_json1_1ResourceTagList(output.ResourceTagList, context)
|
|
3608
3544
|
: undefined,
|
|
3609
3545
|
};
|
|
@@ -3611,16 +3547,12 @@ const deserializeAws_json1_1ListTagsResponse = (output, context) => {
|
|
|
3611
3547
|
const deserializeAws_json1_1ListTrailsResponse = (output, context) => {
|
|
3612
3548
|
return {
|
|
3613
3549
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3614
|
-
Trails: output.Trails
|
|
3615
|
-
? deserializeAws_json1_1Trails(output.Trails, context)
|
|
3616
|
-
: undefined,
|
|
3550
|
+
Trails: output.Trails != null ? deserializeAws_json1_1Trails(output.Trails, context) : undefined,
|
|
3617
3551
|
};
|
|
3618
3552
|
};
|
|
3619
3553
|
const deserializeAws_json1_1LookupEventsResponse = (output, context) => {
|
|
3620
3554
|
return {
|
|
3621
|
-
Events: output.Events
|
|
3622
|
-
? deserializeAws_json1_1EventsList(output.Events, context)
|
|
3623
|
-
: undefined,
|
|
3555
|
+
Events: output.Events != null ? deserializeAws_json1_1EventsList(output.Events, context) : undefined,
|
|
3624
3556
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3625
3557
|
};
|
|
3626
3558
|
};
|
|
@@ -3668,13 +3600,13 @@ const deserializeAws_json1_1OrganizationsNotInUseException = (output, context) =
|
|
|
3668
3600
|
const deserializeAws_json1_1PublicKey = (output, context) => {
|
|
3669
3601
|
return {
|
|
3670
3602
|
Fingerprint: (0, smithy_client_1.expectString)(output.Fingerprint),
|
|
3671
|
-
ValidityEndTime: output.ValidityEndTime
|
|
3603
|
+
ValidityEndTime: output.ValidityEndTime != null
|
|
3672
3604
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ValidityEndTime)))
|
|
3673
3605
|
: undefined,
|
|
3674
|
-
ValidityStartTime: output.ValidityStartTime
|
|
3606
|
+
ValidityStartTime: output.ValidityStartTime != null
|
|
3675
3607
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ValidityStartTime)))
|
|
3676
3608
|
: undefined,
|
|
3677
|
-
Value: output.Value
|
|
3609
|
+
Value: output.Value != null ? context.base64Decoder(output.Value) : undefined,
|
|
3678
3610
|
};
|
|
3679
3611
|
};
|
|
3680
3612
|
const deserializeAws_json1_1PublicKeyList = (output, context) => {
|
|
@@ -3690,18 +3622,16 @@ const deserializeAws_json1_1PublicKeyList = (output, context) => {
|
|
|
3690
3622
|
};
|
|
3691
3623
|
const deserializeAws_json1_1PutEventSelectorsResponse = (output, context) => {
|
|
3692
3624
|
return {
|
|
3693
|
-
AdvancedEventSelectors: output.AdvancedEventSelectors
|
|
3625
|
+
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|
|
3694
3626
|
? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
|
|
3695
3627
|
: undefined,
|
|
3696
|
-
EventSelectors: output.EventSelectors
|
|
3697
|
-
? deserializeAws_json1_1EventSelectors(output.EventSelectors, context)
|
|
3698
|
-
: undefined,
|
|
3628
|
+
EventSelectors: output.EventSelectors != null ? deserializeAws_json1_1EventSelectors(output.EventSelectors, context) : undefined,
|
|
3699
3629
|
TrailARN: (0, smithy_client_1.expectString)(output.TrailARN),
|
|
3700
3630
|
};
|
|
3701
3631
|
};
|
|
3702
3632
|
const deserializeAws_json1_1PutInsightSelectorsResponse = (output, context) => {
|
|
3703
3633
|
return {
|
|
3704
|
-
InsightSelectors: output.InsightSelectors
|
|
3634
|
+
InsightSelectors: output.InsightSelectors != null
|
|
3705
3635
|
? deserializeAws_json1_1InsightSelectors(output.InsightSelectors, context)
|
|
3706
3636
|
: undefined,
|
|
3707
3637
|
TrailARN: (0, smithy_client_1.expectString)(output.TrailARN),
|
|
@@ -3720,7 +3650,7 @@ const deserializeAws_json1_1Queries = (output, context) => {
|
|
|
3720
3650
|
};
|
|
3721
3651
|
const deserializeAws_json1_1Query = (output, context) => {
|
|
3722
3652
|
return {
|
|
3723
|
-
CreationTime: output.CreationTime
|
|
3653
|
+
CreationTime: output.CreationTime != null
|
|
3724
3654
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
3725
3655
|
: undefined,
|
|
3726
3656
|
QueryId: (0, smithy_client_1.expectString)(output.QueryId),
|
|
@@ -3775,7 +3705,7 @@ const deserializeAws_json1_1QueryStatistics = (output, context) => {
|
|
|
3775
3705
|
const deserializeAws_json1_1QueryStatisticsForDescribeQuery = (output, context) => {
|
|
3776
3706
|
return {
|
|
3777
3707
|
BytesScanned: (0, smithy_client_1.expectLong)(output.BytesScanned),
|
|
3778
|
-
CreationTime: output.CreationTime
|
|
3708
|
+
CreationTime: output.CreationTime != null
|
|
3779
3709
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
3780
3710
|
: undefined,
|
|
3781
3711
|
EventsMatched: (0, smithy_client_1.expectLong)(output.EventsMatched),
|
|
@@ -3811,9 +3741,7 @@ const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
|
3811
3741
|
const deserializeAws_json1_1ResourceTag = (output, context) => {
|
|
3812
3742
|
return {
|
|
3813
3743
|
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
3814
|
-
TagsList: output.TagsList
|
|
3815
|
-
? deserializeAws_json1_1TagsList(output.TagsList, context)
|
|
3816
|
-
: undefined,
|
|
3744
|
+
TagsList: output.TagsList != null ? deserializeAws_json1_1TagsList(output.TagsList, context) : undefined,
|
|
3817
3745
|
};
|
|
3818
3746
|
};
|
|
3819
3747
|
const deserializeAws_json1_1ResourceTagList = (output, context) => {
|
|
@@ -3834,10 +3762,10 @@ const deserializeAws_json1_1ResourceTypeNotSupportedException = (output, context
|
|
|
3834
3762
|
};
|
|
3835
3763
|
const deserializeAws_json1_1RestoreEventDataStoreResponse = (output, context) => {
|
|
3836
3764
|
return {
|
|
3837
|
-
AdvancedEventSelectors: output.AdvancedEventSelectors
|
|
3765
|
+
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|
|
3838
3766
|
? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
|
|
3839
3767
|
: undefined,
|
|
3840
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
3768
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
3841
3769
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
3842
3770
|
: undefined,
|
|
3843
3771
|
EventDataStoreArn: (0, smithy_client_1.expectString)(output.EventDataStoreArn),
|
|
@@ -3847,7 +3775,7 @@ const deserializeAws_json1_1RestoreEventDataStoreResponse = (output, context) =>
|
|
|
3847
3775
|
RetentionPeriod: (0, smithy_client_1.expectInt32)(output.RetentionPeriod),
|
|
3848
3776
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3849
3777
|
TerminationProtectionEnabled: (0, smithy_client_1.expectBoolean)(output.TerminationProtectionEnabled),
|
|
3850
|
-
UpdatedTimestamp: output.UpdatedTimestamp
|
|
3778
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
3851
3779
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTimestamp)))
|
|
3852
3780
|
: undefined,
|
|
3853
3781
|
};
|
|
@@ -3961,10 +3889,10 @@ const deserializeAws_json1_1UnsupportedOperationException = (output, context) =>
|
|
|
3961
3889
|
};
|
|
3962
3890
|
const deserializeAws_json1_1UpdateEventDataStoreResponse = (output, context) => {
|
|
3963
3891
|
return {
|
|
3964
|
-
AdvancedEventSelectors: output.AdvancedEventSelectors
|
|
3892
|
+
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|
|
3965
3893
|
? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
|
|
3966
3894
|
: undefined,
|
|
3967
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
3895
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
3968
3896
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
3969
3897
|
: undefined,
|
|
3970
3898
|
EventDataStoreArn: (0, smithy_client_1.expectString)(output.EventDataStoreArn),
|
|
@@ -3974,7 +3902,7 @@ const deserializeAws_json1_1UpdateEventDataStoreResponse = (output, context) =>
|
|
|
3974
3902
|
RetentionPeriod: (0, smithy_client_1.expectInt32)(output.RetentionPeriod),
|
|
3975
3903
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3976
3904
|
TerminationProtectionEnabled: (0, smithy_client_1.expectBoolean)(output.TerminationProtectionEnabled),
|
|
3977
|
-
UpdatedTimestamp: output.UpdatedTimestamp
|
|
3905
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
3978
3906
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTimestamp)))
|
|
3979
3907
|
: undefined,
|
|
3980
3908
|
};
|
|
@@ -4058,5 +3986,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
4058
3986
|
if (data["__type"] !== undefined) {
|
|
4059
3987
|
return sanitizeErrorCode(data["__type"]);
|
|
4060
3988
|
}
|
|
4061
|
-
return "";
|
|
4062
3989
|
};
|