@aws-sdk/client-cloudtrail 3.131.0 → 3.142.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 +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/AddTagsCommand.js +2 -2
- package/dist-cjs/commands/CancelQueryCommand.js +2 -2
- package/dist-cjs/commands/CreateEventDataStoreCommand.js +2 -2
- package/dist-cjs/commands/CreateTrailCommand.js +2 -2
- package/dist-cjs/commands/DeleteEventDataStoreCommand.js +2 -2
- package/dist-cjs/commands/DeleteTrailCommand.js +2 -2
- package/dist-cjs/commands/DescribeQueryCommand.js +2 -2
- package/dist-cjs/commands/DescribeTrailsCommand.js +2 -2
- package/dist-cjs/commands/GetEventDataStoreCommand.js +2 -2
- package/dist-cjs/commands/GetEventSelectorsCommand.js +2 -2
- package/dist-cjs/commands/GetInsightSelectorsCommand.js +2 -2
- package/dist-cjs/commands/GetQueryResultsCommand.js +2 -2
- package/dist-cjs/commands/GetTrailCommand.js +2 -2
- package/dist-cjs/commands/GetTrailStatusCommand.js +2 -2
- package/dist-cjs/commands/ListEventDataStoresCommand.js +2 -2
- package/dist-cjs/commands/ListPublicKeysCommand.js +2 -2
- package/dist-cjs/commands/ListQueriesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsCommand.js +2 -2
- package/dist-cjs/commands/ListTrailsCommand.js +2 -2
- package/dist-cjs/commands/LookupEventsCommand.js +2 -2
- package/dist-cjs/commands/PutEventSelectorsCommand.js +2 -2
- package/dist-cjs/commands/PutInsightSelectorsCommand.js +2 -2
- package/dist-cjs/commands/RemoveTagsCommand.js +2 -2
- package/dist-cjs/commands/RestoreEventDataStoreCommand.js +2 -2
- package/dist-cjs/commands/StartLoggingCommand.js +2 -2
- package/dist-cjs/commands/StartQueryCommand.js +2 -2
- package/dist-cjs/commands/StopLoggingCommand.js +2 -2
- package/dist-cjs/commands/UpdateEventDataStoreCommand.js +2 -2
- package/dist-cjs/commands/UpdateTrailCommand.js +2 -2
- package/dist-cjs/models/models_0.js +303 -453
- package/dist-cjs/protocols/Aws_json1_1.js +145 -268
- package/dist-es/commands/AddTagsCommand.js +3 -3
- package/dist-es/commands/CancelQueryCommand.js +3 -3
- package/dist-es/commands/CreateEventDataStoreCommand.js +3 -3
- package/dist-es/commands/CreateTrailCommand.js +3 -3
- package/dist-es/commands/DeleteEventDataStoreCommand.js +3 -3
- package/dist-es/commands/DeleteTrailCommand.js +3 -3
- package/dist-es/commands/DescribeQueryCommand.js +3 -3
- package/dist-es/commands/DescribeTrailsCommand.js +3 -3
- package/dist-es/commands/GetEventDataStoreCommand.js +3 -3
- package/dist-es/commands/GetEventSelectorsCommand.js +3 -3
- package/dist-es/commands/GetInsightSelectorsCommand.js +3 -3
- package/dist-es/commands/GetQueryResultsCommand.js +3 -3
- package/dist-es/commands/GetTrailCommand.js +3 -3
- package/dist-es/commands/GetTrailStatusCommand.js +3 -3
- package/dist-es/commands/ListEventDataStoresCommand.js +3 -3
- package/dist-es/commands/ListPublicKeysCommand.js +3 -3
- package/dist-es/commands/ListQueriesCommand.js +3 -3
- package/dist-es/commands/ListTagsCommand.js +3 -3
- package/dist-es/commands/ListTrailsCommand.js +3 -3
- package/dist-es/commands/LookupEventsCommand.js +3 -3
- package/dist-es/commands/PutEventSelectorsCommand.js +3 -3
- package/dist-es/commands/PutInsightSelectorsCommand.js +3 -3
- package/dist-es/commands/RemoveTagsCommand.js +3 -3
- package/dist-es/commands/RestoreEventDataStoreCommand.js +3 -3
- package/dist-es/commands/StartLoggingCommand.js +3 -3
- package/dist-es/commands/StartQueryCommand.js +3 -3
- package/dist-es/commands/StopLoggingCommand.js +3 -3
- package/dist-es/commands/UpdateEventDataStoreCommand.js +3 -3
- package/dist-es/commands/UpdateTrailCommand.js +3 -3
- package/dist-es/models/models_0.js +75 -300
- package/dist-es/protocols/Aws_json1_1.js +233 -269
- package/dist-types/models/models_0.d.ts +300 -450
- package/dist-types/ts3.4/models/models_0.d.ts +150 -300
- package/package.json +6 -6
|
@@ -315,7 +315,6 @@ const deserializeAws_json1_1AddTagsCommandError = async (output, context) => {
|
|
|
315
315
|
...output,
|
|
316
316
|
body: await parseBody(output.body, context),
|
|
317
317
|
};
|
|
318
|
-
let response;
|
|
319
318
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
320
319
|
switch (errorCode) {
|
|
321
320
|
case "CloudTrailARNInvalidException":
|
|
@@ -356,14 +355,12 @@ const deserializeAws_json1_1AddTagsCommandError = async (output, context) => {
|
|
|
356
355
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
357
356
|
default:
|
|
358
357
|
const parsedBody = parsedOutput.body;
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
$metadata,
|
|
358
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
359
|
+
output,
|
|
360
|
+
parsedBody,
|
|
361
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
362
|
+
errorCode,
|
|
365
363
|
});
|
|
366
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
367
364
|
}
|
|
368
365
|
};
|
|
369
366
|
const deserializeAws_json1_1CancelQueryCommand = async (output, context) => {
|
|
@@ -385,7 +382,6 @@ const deserializeAws_json1_1CancelQueryCommandError = async (output, context) =>
|
|
|
385
382
|
...output,
|
|
386
383
|
body: await parseBody(output.body, context),
|
|
387
384
|
};
|
|
388
|
-
let response;
|
|
389
385
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
390
386
|
switch (errorCode) {
|
|
391
387
|
case "ConflictException":
|
|
@@ -417,14 +413,12 @@ const deserializeAws_json1_1CancelQueryCommandError = async (output, context) =>
|
|
|
417
413
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
418
414
|
default:
|
|
419
415
|
const parsedBody = parsedOutput.body;
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
$metadata,
|
|
416
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
417
|
+
output,
|
|
418
|
+
parsedBody,
|
|
419
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
420
|
+
errorCode,
|
|
426
421
|
});
|
|
427
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
428
422
|
}
|
|
429
423
|
};
|
|
430
424
|
const deserializeAws_json1_1CreateEventDataStoreCommand = async (output, context) => {
|
|
@@ -446,7 +440,6 @@ const deserializeAws_json1_1CreateEventDataStoreCommandError = async (output, co
|
|
|
446
440
|
...output,
|
|
447
441
|
body: await parseBody(output.body, context),
|
|
448
442
|
};
|
|
449
|
-
let response;
|
|
450
443
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
451
444
|
switch (errorCode) {
|
|
452
445
|
case "CloudTrailAccessNotEnabledException":
|
|
@@ -487,14 +480,12 @@ const deserializeAws_json1_1CreateEventDataStoreCommandError = async (output, co
|
|
|
487
480
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
488
481
|
default:
|
|
489
482
|
const parsedBody = parsedOutput.body;
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
$metadata,
|
|
483
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
484
|
+
output,
|
|
485
|
+
parsedBody,
|
|
486
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
487
|
+
errorCode,
|
|
496
488
|
});
|
|
497
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
498
489
|
}
|
|
499
490
|
};
|
|
500
491
|
const deserializeAws_json1_1CreateTrailCommand = async (output, context) => {
|
|
@@ -516,7 +507,6 @@ const deserializeAws_json1_1CreateTrailCommandError = async (output, context) =>
|
|
|
516
507
|
...output,
|
|
517
508
|
body: await parseBody(output.body, context),
|
|
518
509
|
};
|
|
519
|
-
let response;
|
|
520
510
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
521
511
|
switch (errorCode) {
|
|
522
512
|
case "CloudTrailAccessNotEnabledException":
|
|
@@ -608,14 +598,12 @@ const deserializeAws_json1_1CreateTrailCommandError = async (output, context) =>
|
|
|
608
598
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
609
599
|
default:
|
|
610
600
|
const parsedBody = parsedOutput.body;
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
$metadata,
|
|
601
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
602
|
+
output,
|
|
603
|
+
parsedBody,
|
|
604
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
605
|
+
errorCode,
|
|
617
606
|
});
|
|
618
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
619
607
|
}
|
|
620
608
|
};
|
|
621
609
|
const deserializeAws_json1_1DeleteEventDataStoreCommand = async (output, context) => {
|
|
@@ -637,7 +625,6 @@ const deserializeAws_json1_1DeleteEventDataStoreCommandError = async (output, co
|
|
|
637
625
|
...output,
|
|
638
626
|
body: await parseBody(output.body, context),
|
|
639
627
|
};
|
|
640
|
-
let response;
|
|
641
628
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
642
629
|
switch (errorCode) {
|
|
643
630
|
case "EventDataStoreARNInvalidException":
|
|
@@ -666,14 +653,12 @@ const deserializeAws_json1_1DeleteEventDataStoreCommandError = async (output, co
|
|
|
666
653
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
667
654
|
default:
|
|
668
655
|
const parsedBody = parsedOutput.body;
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
$metadata,
|
|
656
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
657
|
+
output,
|
|
658
|
+
parsedBody,
|
|
659
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
660
|
+
errorCode,
|
|
675
661
|
});
|
|
676
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
677
662
|
}
|
|
678
663
|
};
|
|
679
664
|
const deserializeAws_json1_1DeleteTrailCommand = async (output, context) => {
|
|
@@ -695,7 +680,6 @@ const deserializeAws_json1_1DeleteTrailCommandError = async (output, context) =>
|
|
|
695
680
|
...output,
|
|
696
681
|
body: await parseBody(output.body, context),
|
|
697
682
|
};
|
|
698
|
-
let response;
|
|
699
683
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
700
684
|
switch (errorCode) {
|
|
701
685
|
case "ConflictException":
|
|
@@ -724,14 +708,12 @@ const deserializeAws_json1_1DeleteTrailCommandError = async (output, context) =>
|
|
|
724
708
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
725
709
|
default:
|
|
726
710
|
const parsedBody = parsedOutput.body;
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
$metadata,
|
|
711
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
712
|
+
output,
|
|
713
|
+
parsedBody,
|
|
714
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
715
|
+
errorCode,
|
|
733
716
|
});
|
|
734
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
735
717
|
}
|
|
736
718
|
};
|
|
737
719
|
const deserializeAws_json1_1DescribeQueryCommand = async (output, context) => {
|
|
@@ -753,7 +735,6 @@ const deserializeAws_json1_1DescribeQueryCommandError = async (output, context)
|
|
|
753
735
|
...output,
|
|
754
736
|
body: await parseBody(output.body, context),
|
|
755
737
|
};
|
|
756
|
-
let response;
|
|
757
738
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
758
739
|
switch (errorCode) {
|
|
759
740
|
case "EventDataStoreARNInvalidException":
|
|
@@ -779,14 +760,12 @@ const deserializeAws_json1_1DescribeQueryCommandError = async (output, context)
|
|
|
779
760
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
780
761
|
default:
|
|
781
762
|
const parsedBody = parsedOutput.body;
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
$metadata,
|
|
763
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
764
|
+
output,
|
|
765
|
+
parsedBody,
|
|
766
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
767
|
+
errorCode,
|
|
788
768
|
});
|
|
789
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
790
769
|
}
|
|
791
770
|
};
|
|
792
771
|
const deserializeAws_json1_1DescribeTrailsCommand = async (output, context) => {
|
|
@@ -808,7 +787,6 @@ const deserializeAws_json1_1DescribeTrailsCommandError = async (output, context)
|
|
|
808
787
|
...output,
|
|
809
788
|
body: await parseBody(output.body, context),
|
|
810
789
|
};
|
|
811
|
-
let response;
|
|
812
790
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
813
791
|
switch (errorCode) {
|
|
814
792
|
case "InvalidTrailNameException":
|
|
@@ -822,14 +800,12 @@ const deserializeAws_json1_1DescribeTrailsCommandError = async (output, context)
|
|
|
822
800
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
823
801
|
default:
|
|
824
802
|
const parsedBody = parsedOutput.body;
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
$metadata,
|
|
803
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
804
|
+
output,
|
|
805
|
+
parsedBody,
|
|
806
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
807
|
+
errorCode,
|
|
831
808
|
});
|
|
832
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
833
809
|
}
|
|
834
810
|
};
|
|
835
811
|
const deserializeAws_json1_1GetEventDataStoreCommand = async (output, context) => {
|
|
@@ -851,7 +827,6 @@ const deserializeAws_json1_1GetEventDataStoreCommandError = async (output, conte
|
|
|
851
827
|
...output,
|
|
852
828
|
body: await parseBody(output.body, context),
|
|
853
829
|
};
|
|
854
|
-
let response;
|
|
855
830
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
856
831
|
switch (errorCode) {
|
|
857
832
|
case "EventDataStoreARNInvalidException":
|
|
@@ -871,14 +846,12 @@ const deserializeAws_json1_1GetEventDataStoreCommandError = async (output, conte
|
|
|
871
846
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
872
847
|
default:
|
|
873
848
|
const parsedBody = parsedOutput.body;
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
$metadata,
|
|
849
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
850
|
+
output,
|
|
851
|
+
parsedBody,
|
|
852
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
853
|
+
errorCode,
|
|
880
854
|
});
|
|
881
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
882
855
|
}
|
|
883
856
|
};
|
|
884
857
|
const deserializeAws_json1_1GetEventSelectorsCommand = async (output, context) => {
|
|
@@ -900,7 +873,6 @@ const deserializeAws_json1_1GetEventSelectorsCommandError = async (output, conte
|
|
|
900
873
|
...output,
|
|
901
874
|
body: await parseBody(output.body, context),
|
|
902
875
|
};
|
|
903
|
-
let response;
|
|
904
876
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
905
877
|
switch (errorCode) {
|
|
906
878
|
case "InvalidTrailNameException":
|
|
@@ -917,14 +889,12 @@ const deserializeAws_json1_1GetEventSelectorsCommandError = async (output, conte
|
|
|
917
889
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
918
890
|
default:
|
|
919
891
|
const parsedBody = parsedOutput.body;
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
$metadata,
|
|
892
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
893
|
+
output,
|
|
894
|
+
parsedBody,
|
|
895
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
896
|
+
errorCode,
|
|
926
897
|
});
|
|
927
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
928
898
|
}
|
|
929
899
|
};
|
|
930
900
|
const deserializeAws_json1_1GetInsightSelectorsCommand = async (output, context) => {
|
|
@@ -946,7 +916,6 @@ const deserializeAws_json1_1GetInsightSelectorsCommandError = async (output, con
|
|
|
946
916
|
...output,
|
|
947
917
|
body: await parseBody(output.body, context),
|
|
948
918
|
};
|
|
949
|
-
let response;
|
|
950
919
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
951
920
|
switch (errorCode) {
|
|
952
921
|
case "InsightNotEnabledException":
|
|
@@ -966,14 +935,12 @@ const deserializeAws_json1_1GetInsightSelectorsCommandError = async (output, con
|
|
|
966
935
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
967
936
|
default:
|
|
968
937
|
const parsedBody = parsedOutput.body;
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
$metadata,
|
|
938
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
939
|
+
output,
|
|
940
|
+
parsedBody,
|
|
941
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
942
|
+
errorCode,
|
|
975
943
|
});
|
|
976
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
977
944
|
}
|
|
978
945
|
};
|
|
979
946
|
const deserializeAws_json1_1GetQueryResultsCommand = async (output, context) => {
|
|
@@ -995,7 +962,6 @@ const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context
|
|
|
995
962
|
...output,
|
|
996
963
|
body: await parseBody(output.body, context),
|
|
997
964
|
};
|
|
998
|
-
let response;
|
|
999
965
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1000
966
|
switch (errorCode) {
|
|
1001
967
|
case "EventDataStoreARNInvalidException":
|
|
@@ -1027,14 +993,12 @@ const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context
|
|
|
1027
993
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1028
994
|
default:
|
|
1029
995
|
const parsedBody = parsedOutput.body;
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
$metadata,
|
|
996
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
997
|
+
output,
|
|
998
|
+
parsedBody,
|
|
999
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1000
|
+
errorCode,
|
|
1036
1001
|
});
|
|
1037
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1038
1002
|
}
|
|
1039
1003
|
};
|
|
1040
1004
|
const deserializeAws_json1_1GetTrailCommand = async (output, context) => {
|
|
@@ -1056,7 +1020,6 @@ const deserializeAws_json1_1GetTrailCommandError = async (output, context) => {
|
|
|
1056
1020
|
...output,
|
|
1057
1021
|
body: await parseBody(output.body, context),
|
|
1058
1022
|
};
|
|
1059
|
-
let response;
|
|
1060
1023
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1061
1024
|
switch (errorCode) {
|
|
1062
1025
|
case "InvalidTrailNameException":
|
|
@@ -1073,14 +1036,12 @@ const deserializeAws_json1_1GetTrailCommandError = async (output, context) => {
|
|
|
1073
1036
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1074
1037
|
default:
|
|
1075
1038
|
const parsedBody = parsedOutput.body;
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
$metadata,
|
|
1039
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1040
|
+
output,
|
|
1041
|
+
parsedBody,
|
|
1042
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1043
|
+
errorCode,
|
|
1082
1044
|
});
|
|
1083
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1084
1045
|
}
|
|
1085
1046
|
};
|
|
1086
1047
|
const deserializeAws_json1_1GetTrailStatusCommand = async (output, context) => {
|
|
@@ -1102,7 +1063,6 @@ const deserializeAws_json1_1GetTrailStatusCommandError = async (output, context)
|
|
|
1102
1063
|
...output,
|
|
1103
1064
|
body: await parseBody(output.body, context),
|
|
1104
1065
|
};
|
|
1105
|
-
let response;
|
|
1106
1066
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1107
1067
|
switch (errorCode) {
|
|
1108
1068
|
case "InvalidTrailNameException":
|
|
@@ -1119,14 +1079,12 @@ const deserializeAws_json1_1GetTrailStatusCommandError = async (output, context)
|
|
|
1119
1079
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1120
1080
|
default:
|
|
1121
1081
|
const parsedBody = parsedOutput.body;
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
$metadata,
|
|
1082
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1083
|
+
output,
|
|
1084
|
+
parsedBody,
|
|
1085
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1086
|
+
errorCode,
|
|
1128
1087
|
});
|
|
1129
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1130
1088
|
}
|
|
1131
1089
|
};
|
|
1132
1090
|
const deserializeAws_json1_1ListEventDataStoresCommand = async (output, context) => {
|
|
@@ -1148,7 +1106,6 @@ const deserializeAws_json1_1ListEventDataStoresCommandError = async (output, con
|
|
|
1148
1106
|
...output,
|
|
1149
1107
|
body: await parseBody(output.body, context),
|
|
1150
1108
|
};
|
|
1151
|
-
let response;
|
|
1152
1109
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1153
1110
|
switch (errorCode) {
|
|
1154
1111
|
case "InvalidMaxResultsException":
|
|
@@ -1165,14 +1122,12 @@ const deserializeAws_json1_1ListEventDataStoresCommandError = async (output, con
|
|
|
1165
1122
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1166
1123
|
default:
|
|
1167
1124
|
const parsedBody = parsedOutput.body;
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
$metadata,
|
|
1125
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1126
|
+
output,
|
|
1127
|
+
parsedBody,
|
|
1128
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1129
|
+
errorCode,
|
|
1174
1130
|
});
|
|
1175
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1176
1131
|
}
|
|
1177
1132
|
};
|
|
1178
1133
|
const deserializeAws_json1_1ListPublicKeysCommand = async (output, context) => {
|
|
@@ -1194,7 +1149,6 @@ const deserializeAws_json1_1ListPublicKeysCommandError = async (output, context)
|
|
|
1194
1149
|
...output,
|
|
1195
1150
|
body: await parseBody(output.body, context),
|
|
1196
1151
|
};
|
|
1197
|
-
let response;
|
|
1198
1152
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1199
1153
|
switch (errorCode) {
|
|
1200
1154
|
case "InvalidTimeRangeException":
|
|
@@ -1211,14 +1165,12 @@ const deserializeAws_json1_1ListPublicKeysCommandError = async (output, context)
|
|
|
1211
1165
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1212
1166
|
default:
|
|
1213
1167
|
const parsedBody = parsedOutput.body;
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
$metadata,
|
|
1168
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1169
|
+
output,
|
|
1170
|
+
parsedBody,
|
|
1171
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1172
|
+
errorCode,
|
|
1220
1173
|
});
|
|
1221
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1222
1174
|
}
|
|
1223
1175
|
};
|
|
1224
1176
|
const deserializeAws_json1_1ListQueriesCommand = async (output, context) => {
|
|
@@ -1240,7 +1192,6 @@ const deserializeAws_json1_1ListQueriesCommandError = async (output, context) =>
|
|
|
1240
1192
|
...output,
|
|
1241
1193
|
body: await parseBody(output.body, context),
|
|
1242
1194
|
};
|
|
1243
|
-
let response;
|
|
1244
1195
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1245
1196
|
switch (errorCode) {
|
|
1246
1197
|
case "EventDataStoreARNInvalidException":
|
|
@@ -1275,14 +1226,12 @@ const deserializeAws_json1_1ListQueriesCommandError = async (output, context) =>
|
|
|
1275
1226
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1276
1227
|
default:
|
|
1277
1228
|
const parsedBody = parsedOutput.body;
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
$metadata,
|
|
1229
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1230
|
+
output,
|
|
1231
|
+
parsedBody,
|
|
1232
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1233
|
+
errorCode,
|
|
1284
1234
|
});
|
|
1285
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1286
1235
|
}
|
|
1287
1236
|
};
|
|
1288
1237
|
const deserializeAws_json1_1ListTagsCommand = async (output, context) => {
|
|
@@ -1304,7 +1253,6 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
1304
1253
|
...output,
|
|
1305
1254
|
body: await parseBody(output.body, context),
|
|
1306
1255
|
};
|
|
1307
|
-
let response;
|
|
1308
1256
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1309
1257
|
switch (errorCode) {
|
|
1310
1258
|
case "CloudTrailARNInvalidException":
|
|
@@ -1336,14 +1284,12 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
1336
1284
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1337
1285
|
default:
|
|
1338
1286
|
const parsedBody = parsedOutput.body;
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
$metadata,
|
|
1287
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1288
|
+
output,
|
|
1289
|
+
parsedBody,
|
|
1290
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1291
|
+
errorCode,
|
|
1345
1292
|
});
|
|
1346
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1347
1293
|
}
|
|
1348
1294
|
};
|
|
1349
1295
|
const deserializeAws_json1_1ListTrailsCommand = async (output, context) => {
|
|
@@ -1365,7 +1311,6 @@ const deserializeAws_json1_1ListTrailsCommandError = async (output, context) =>
|
|
|
1365
1311
|
...output,
|
|
1366
1312
|
body: await parseBody(output.body, context),
|
|
1367
1313
|
};
|
|
1368
|
-
let response;
|
|
1369
1314
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1370
1315
|
switch (errorCode) {
|
|
1371
1316
|
case "OperationNotPermittedException":
|
|
@@ -1376,14 +1321,12 @@ const deserializeAws_json1_1ListTrailsCommandError = async (output, context) =>
|
|
|
1376
1321
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1377
1322
|
default:
|
|
1378
1323
|
const parsedBody = parsedOutput.body;
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
$metadata,
|
|
1324
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1325
|
+
output,
|
|
1326
|
+
parsedBody,
|
|
1327
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1328
|
+
errorCode,
|
|
1385
1329
|
});
|
|
1386
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1387
1330
|
}
|
|
1388
1331
|
};
|
|
1389
1332
|
const deserializeAws_json1_1LookupEventsCommand = async (output, context) => {
|
|
@@ -1405,7 +1348,6 @@ const deserializeAws_json1_1LookupEventsCommandError = async (output, context) =
|
|
|
1405
1348
|
...output,
|
|
1406
1349
|
body: await parseBody(output.body, context),
|
|
1407
1350
|
};
|
|
1408
|
-
let response;
|
|
1409
1351
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1410
1352
|
switch (errorCode) {
|
|
1411
1353
|
case "InvalidEventCategoryException":
|
|
@@ -1431,14 +1373,12 @@ const deserializeAws_json1_1LookupEventsCommandError = async (output, context) =
|
|
|
1431
1373
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1432
1374
|
default:
|
|
1433
1375
|
const parsedBody = parsedOutput.body;
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
$metadata,
|
|
1376
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1377
|
+
output,
|
|
1378
|
+
parsedBody,
|
|
1379
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1380
|
+
errorCode,
|
|
1440
1381
|
});
|
|
1441
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1442
1382
|
}
|
|
1443
1383
|
};
|
|
1444
1384
|
const deserializeAws_json1_1PutEventSelectorsCommand = async (output, context) => {
|
|
@@ -1460,7 +1400,6 @@ const deserializeAws_json1_1PutEventSelectorsCommandError = async (output, conte
|
|
|
1460
1400
|
...output,
|
|
1461
1401
|
body: await parseBody(output.body, context),
|
|
1462
1402
|
};
|
|
1463
|
-
let response;
|
|
1464
1403
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1465
1404
|
switch (errorCode) {
|
|
1466
1405
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
@@ -1489,14 +1428,12 @@ const deserializeAws_json1_1PutEventSelectorsCommandError = async (output, conte
|
|
|
1489
1428
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1490
1429
|
default:
|
|
1491
1430
|
const parsedBody = parsedOutput.body;
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
$metadata,
|
|
1431
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1432
|
+
output,
|
|
1433
|
+
parsedBody,
|
|
1434
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1435
|
+
errorCode,
|
|
1498
1436
|
});
|
|
1499
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1500
1437
|
}
|
|
1501
1438
|
};
|
|
1502
1439
|
const deserializeAws_json1_1PutInsightSelectorsCommand = async (output, context) => {
|
|
@@ -1518,7 +1455,6 @@ const deserializeAws_json1_1PutInsightSelectorsCommandError = async (output, con
|
|
|
1518
1455
|
...output,
|
|
1519
1456
|
body: await parseBody(output.body, context),
|
|
1520
1457
|
};
|
|
1521
|
-
let response;
|
|
1522
1458
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1523
1459
|
switch (errorCode) {
|
|
1524
1460
|
case "InsufficientEncryptionPolicyException":
|
|
@@ -1556,14 +1492,12 @@ const deserializeAws_json1_1PutInsightSelectorsCommandError = async (output, con
|
|
|
1556
1492
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1557
1493
|
default:
|
|
1558
1494
|
const parsedBody = parsedOutput.body;
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
$metadata,
|
|
1495
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1496
|
+
output,
|
|
1497
|
+
parsedBody,
|
|
1498
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1499
|
+
errorCode,
|
|
1565
1500
|
});
|
|
1566
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1567
1501
|
}
|
|
1568
1502
|
};
|
|
1569
1503
|
const deserializeAws_json1_1RemoveTagsCommand = async (output, context) => {
|
|
@@ -1585,7 +1519,6 @@ const deserializeAws_json1_1RemoveTagsCommandError = async (output, context) =>
|
|
|
1585
1519
|
...output,
|
|
1586
1520
|
body: await parseBody(output.body, context),
|
|
1587
1521
|
};
|
|
1588
|
-
let response;
|
|
1589
1522
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1590
1523
|
switch (errorCode) {
|
|
1591
1524
|
case "CloudTrailARNInvalidException":
|
|
@@ -1620,14 +1553,12 @@ const deserializeAws_json1_1RemoveTagsCommandError = async (output, context) =>
|
|
|
1620
1553
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1621
1554
|
default:
|
|
1622
1555
|
const parsedBody = parsedOutput.body;
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
$metadata,
|
|
1556
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1557
|
+
output,
|
|
1558
|
+
parsedBody,
|
|
1559
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1560
|
+
errorCode,
|
|
1629
1561
|
});
|
|
1630
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1631
1562
|
}
|
|
1632
1563
|
};
|
|
1633
1564
|
const deserializeAws_json1_1RestoreEventDataStoreCommand = async (output, context) => {
|
|
@@ -1649,7 +1580,6 @@ const deserializeAws_json1_1RestoreEventDataStoreCommandError = async (output, c
|
|
|
1649
1580
|
...output,
|
|
1650
1581
|
body: await parseBody(output.body, context),
|
|
1651
1582
|
};
|
|
1652
|
-
let response;
|
|
1653
1583
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1654
1584
|
switch (errorCode) {
|
|
1655
1585
|
case "CloudTrailAccessNotEnabledException":
|
|
@@ -1690,14 +1620,12 @@ const deserializeAws_json1_1RestoreEventDataStoreCommandError = async (output, c
|
|
|
1690
1620
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1691
1621
|
default:
|
|
1692
1622
|
const parsedBody = parsedOutput.body;
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
$metadata,
|
|
1623
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1624
|
+
output,
|
|
1625
|
+
parsedBody,
|
|
1626
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1627
|
+
errorCode,
|
|
1699
1628
|
});
|
|
1700
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1701
1629
|
}
|
|
1702
1630
|
};
|
|
1703
1631
|
const deserializeAws_json1_1StartLoggingCommand = async (output, context) => {
|
|
@@ -1719,7 +1647,6 @@ const deserializeAws_json1_1StartLoggingCommandError = async (output, context) =
|
|
|
1719
1647
|
...output,
|
|
1720
1648
|
body: await parseBody(output.body, context),
|
|
1721
1649
|
};
|
|
1722
|
-
let response;
|
|
1723
1650
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1724
1651
|
switch (errorCode) {
|
|
1725
1652
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
@@ -1745,14 +1672,12 @@ const deserializeAws_json1_1StartLoggingCommandError = async (output, context) =
|
|
|
1745
1672
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1746
1673
|
default:
|
|
1747
1674
|
const parsedBody = parsedOutput.body;
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
$metadata,
|
|
1675
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1676
|
+
output,
|
|
1677
|
+
parsedBody,
|
|
1678
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1679
|
+
errorCode,
|
|
1754
1680
|
});
|
|
1755
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1756
1681
|
}
|
|
1757
1682
|
};
|
|
1758
1683
|
const deserializeAws_json1_1StartQueryCommand = async (output, context) => {
|
|
@@ -1774,7 +1699,6 @@ const deserializeAws_json1_1StartQueryCommandError = async (output, context) =>
|
|
|
1774
1699
|
...output,
|
|
1775
1700
|
body: await parseBody(output.body, context),
|
|
1776
1701
|
};
|
|
1777
|
-
let response;
|
|
1778
1702
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1779
1703
|
switch (errorCode) {
|
|
1780
1704
|
case "EventDataStoreARNInvalidException":
|
|
@@ -1803,14 +1727,12 @@ const deserializeAws_json1_1StartQueryCommandError = async (output, context) =>
|
|
|
1803
1727
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1804
1728
|
default:
|
|
1805
1729
|
const parsedBody = parsedOutput.body;
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
$metadata,
|
|
1730
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1731
|
+
output,
|
|
1732
|
+
parsedBody,
|
|
1733
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1734
|
+
errorCode,
|
|
1812
1735
|
});
|
|
1813
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1814
1736
|
}
|
|
1815
1737
|
};
|
|
1816
1738
|
const deserializeAws_json1_1StopLoggingCommand = async (output, context) => {
|
|
@@ -1832,7 +1754,6 @@ const deserializeAws_json1_1StopLoggingCommandError = async (output, context) =>
|
|
|
1832
1754
|
...output,
|
|
1833
1755
|
body: await parseBody(output.body, context),
|
|
1834
1756
|
};
|
|
1835
|
-
let response;
|
|
1836
1757
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1837
1758
|
switch (errorCode) {
|
|
1838
1759
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
@@ -1858,14 +1779,12 @@ const deserializeAws_json1_1StopLoggingCommandError = async (output, context) =>
|
|
|
1858
1779
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1859
1780
|
default:
|
|
1860
1781
|
const parsedBody = parsedOutput.body;
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
$metadata,
|
|
1782
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1783
|
+
output,
|
|
1784
|
+
parsedBody,
|
|
1785
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1786
|
+
errorCode,
|
|
1867
1787
|
});
|
|
1868
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1869
1788
|
}
|
|
1870
1789
|
};
|
|
1871
1790
|
const deserializeAws_json1_1UpdateEventDataStoreCommand = async (output, context) => {
|
|
@@ -1887,7 +1806,6 @@ const deserializeAws_json1_1UpdateEventDataStoreCommandError = async (output, co
|
|
|
1887
1806
|
...output,
|
|
1888
1807
|
body: await parseBody(output.body, context),
|
|
1889
1808
|
};
|
|
1890
|
-
let response;
|
|
1891
1809
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1892
1810
|
switch (errorCode) {
|
|
1893
1811
|
case "CloudTrailAccessNotEnabledException":
|
|
@@ -1925,14 +1843,12 @@ const deserializeAws_json1_1UpdateEventDataStoreCommandError = async (output, co
|
|
|
1925
1843
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1926
1844
|
default:
|
|
1927
1845
|
const parsedBody = parsedOutput.body;
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
$metadata,
|
|
1846
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1847
|
+
output,
|
|
1848
|
+
parsedBody,
|
|
1849
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1850
|
+
errorCode,
|
|
1934
1851
|
});
|
|
1935
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1936
1852
|
}
|
|
1937
1853
|
};
|
|
1938
1854
|
const deserializeAws_json1_1UpdateTrailCommand = async (output, context) => {
|
|
@@ -1954,7 +1870,6 @@ const deserializeAws_json1_1UpdateTrailCommandError = async (output, context) =>
|
|
|
1954
1870
|
...output,
|
|
1955
1871
|
body: await parseBody(output.body, context),
|
|
1956
1872
|
};
|
|
1957
|
-
let response;
|
|
1958
1873
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1959
1874
|
switch (errorCode) {
|
|
1960
1875
|
case "CloudTrailAccessNotEnabledException":
|
|
@@ -2043,14 +1958,12 @@ const deserializeAws_json1_1UpdateTrailCommandError = async (output, context) =>
|
|
|
2043
1958
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2044
1959
|
default:
|
|
2045
1960
|
const parsedBody = parsedOutput.body;
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
$metadata,
|
|
1961
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1962
|
+
output,
|
|
1963
|
+
parsedBody,
|
|
1964
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1965
|
+
errorCode,
|
|
2052
1966
|
});
|
|
2053
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2054
1967
|
}
|
|
2055
1968
|
};
|
|
2056
1969
|
const deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -2593,9 +2506,6 @@ const serializeAws_json1_1AdvancedEventSelectors = (input, context) => {
|
|
|
2593
2506
|
return input
|
|
2594
2507
|
.filter((e) => e != null)
|
|
2595
2508
|
.map((entry) => {
|
|
2596
|
-
if (entry === null) {
|
|
2597
|
-
return null;
|
|
2598
|
-
}
|
|
2599
2509
|
return serializeAws_json1_1AdvancedEventSelector(entry, context);
|
|
2600
2510
|
});
|
|
2601
2511
|
};
|
|
@@ -2614,9 +2524,6 @@ const serializeAws_json1_1AdvancedFieldSelectors = (input, context) => {
|
|
|
2614
2524
|
return input
|
|
2615
2525
|
.filter((e) => e != null)
|
|
2616
2526
|
.map((entry) => {
|
|
2617
|
-
if (entry === null) {
|
|
2618
|
-
return null;
|
|
2619
|
-
}
|
|
2620
2527
|
return serializeAws_json1_1AdvancedFieldSelector(entry, context);
|
|
2621
2528
|
});
|
|
2622
2529
|
};
|
|
@@ -2667,9 +2574,6 @@ const serializeAws_json1_1DataResources = (input, context) => {
|
|
|
2667
2574
|
return input
|
|
2668
2575
|
.filter((e) => e != null)
|
|
2669
2576
|
.map((entry) => {
|
|
2670
|
-
if (entry === null) {
|
|
2671
|
-
return null;
|
|
2672
|
-
}
|
|
2673
2577
|
return serializeAws_json1_1DataResource(entry, context);
|
|
2674
2578
|
});
|
|
2675
2579
|
};
|
|
@@ -2677,9 +2581,6 @@ const serializeAws_json1_1DataResourceValues = (input, context) => {
|
|
|
2677
2581
|
return input
|
|
2678
2582
|
.filter((e) => e != null)
|
|
2679
2583
|
.map((entry) => {
|
|
2680
|
-
if (entry === null) {
|
|
2681
|
-
return null;
|
|
2682
|
-
}
|
|
2683
2584
|
return entry;
|
|
2684
2585
|
});
|
|
2685
2586
|
};
|
|
@@ -2723,9 +2624,6 @@ const serializeAws_json1_1EventSelectors = (input, context) => {
|
|
|
2723
2624
|
return input
|
|
2724
2625
|
.filter((e) => e != null)
|
|
2725
2626
|
.map((entry) => {
|
|
2726
|
-
if (entry === null) {
|
|
2727
|
-
return null;
|
|
2728
|
-
}
|
|
2729
2627
|
return serializeAws_json1_1EventSelector(entry, context);
|
|
2730
2628
|
});
|
|
2731
2629
|
};
|
|
@@ -2733,9 +2631,6 @@ const serializeAws_json1_1ExcludeManagementEventSources = (input, context) => {
|
|
|
2733
2631
|
return input
|
|
2734
2632
|
.filter((e) => e != null)
|
|
2735
2633
|
.map((entry) => {
|
|
2736
|
-
if (entry === null) {
|
|
2737
|
-
return null;
|
|
2738
|
-
}
|
|
2739
2634
|
return entry;
|
|
2740
2635
|
});
|
|
2741
2636
|
};
|
|
@@ -2781,9 +2676,6 @@ const serializeAws_json1_1InsightSelectors = (input, context) => {
|
|
|
2781
2676
|
return input
|
|
2782
2677
|
.filter((e) => e != null)
|
|
2783
2678
|
.map((entry) => {
|
|
2784
|
-
if (entry === null) {
|
|
2785
|
-
return null;
|
|
2786
|
-
}
|
|
2787
2679
|
return serializeAws_json1_1InsightSelector(entry, context);
|
|
2788
2680
|
});
|
|
2789
2681
|
};
|
|
@@ -2833,9 +2725,6 @@ const serializeAws_json1_1LookupAttributesList = (input, context) => {
|
|
|
2833
2725
|
return input
|
|
2834
2726
|
.filter((e) => e != null)
|
|
2835
2727
|
.map((entry) => {
|
|
2836
|
-
if (entry === null) {
|
|
2837
|
-
return null;
|
|
2838
|
-
}
|
|
2839
2728
|
return serializeAws_json1_1LookupAttribute(entry, context);
|
|
2840
2729
|
});
|
|
2841
2730
|
};
|
|
@@ -2855,9 +2744,6 @@ const serializeAws_json1_1Operator = (input, context) => {
|
|
|
2855
2744
|
return input
|
|
2856
2745
|
.filter((e) => e != null)
|
|
2857
2746
|
.map((entry) => {
|
|
2858
|
-
if (entry === null) {
|
|
2859
|
-
return null;
|
|
2860
|
-
}
|
|
2861
2747
|
return entry;
|
|
2862
2748
|
});
|
|
2863
2749
|
};
|
|
@@ -2890,9 +2776,6 @@ const serializeAws_json1_1ResourceIdList = (input, context) => {
|
|
|
2890
2776
|
return input
|
|
2891
2777
|
.filter((e) => e != null)
|
|
2892
2778
|
.map((entry) => {
|
|
2893
|
-
if (entry === null) {
|
|
2894
|
-
return null;
|
|
2895
|
-
}
|
|
2896
2779
|
return entry;
|
|
2897
2780
|
});
|
|
2898
2781
|
};
|
|
@@ -2926,9 +2809,6 @@ const serializeAws_json1_1TagsList = (input, context) => {
|
|
|
2926
2809
|
return input
|
|
2927
2810
|
.filter((e) => e != null)
|
|
2928
2811
|
.map((entry) => {
|
|
2929
|
-
if (entry === null) {
|
|
2930
|
-
return null;
|
|
2931
|
-
}
|
|
2932
2812
|
return serializeAws_json1_1Tag(entry, context);
|
|
2933
2813
|
});
|
|
2934
2814
|
};
|
|
@@ -2936,9 +2816,6 @@ const serializeAws_json1_1TrailNameList = (input, context) => {
|
|
|
2936
2816
|
return input
|
|
2937
2817
|
.filter((e) => e != null)
|
|
2938
2818
|
.map((entry) => {
|
|
2939
|
-
if (entry === null) {
|
|
2940
|
-
return null;
|
|
2941
|
-
}
|
|
2942
2819
|
return entry;
|
|
2943
2820
|
});
|
|
2944
2821
|
};
|