@aws-sdk/client-cloudtrail 3.202.0 → 3.205.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 +22 -0
- package/dist-cjs/CloudTrail.js +30 -0
- package/dist-cjs/commands/DeregisterOrganizationDelegatedAdminCommand.js +46 -0
- package/dist-cjs/commands/RegisterOrganizationDelegatedAdminCommand.js +46 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +174 -60
- package/dist-cjs/protocols/Aws_json1_1.js +375 -2
- package/dist-cjs/runtimeConfig.browser.js +0 -3
- package/dist-cjs/runtimeConfig.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +3 -0
- package/dist-es/CloudTrail.js +30 -0
- package/dist-es/commands/DeregisterOrganizationDelegatedAdminCommand.js +42 -0
- package/dist-es/commands/RegisterOrganizationDelegatedAdminCommand.js +42 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +155 -52
- package/dist-es/protocols/Aws_json1_1.js +370 -1
- package/dist-es/runtimeConfig.browser.js +0 -3
- package/dist-es/runtimeConfig.js +0 -3
- package/dist-es/runtimeConfig.shared.js +3 -0
- package/dist-types/CloudTrail.d.ts +15 -1
- package/dist-types/CloudTrailClient.d.ts +4 -2
- package/dist-types/commands/DeregisterOrganizationDelegatedAdminCommand.d.ts +37 -0
- package/dist-types/commands/GetChannelCommand.d.ts +1 -1
- package/dist-types/commands/RegisterOrganizationDelegatedAdminCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +334 -65
- package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/dist-types/ts3.4/CloudTrail.d.ts +46 -0
- package/dist-types/ts3.4/CloudTrailClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/DeregisterOrganizationDelegatedAdminCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/RegisterOrganizationDelegatedAdminCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +130 -36
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/package.json +5 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { CloudTrailServiceException as __BaseException } from "../models/CloudTrailServiceException";
|
|
4
|
-
import { AccountHasOngoingImportException, ChannelARNInvalidException, ChannelNotFoundException, CloudTrailAccessNotEnabledException, CloudTrailARNInvalidException, CloudTrailInvalidClientTokenIdException, CloudWatchLogsDeliveryUnavailableException, ConflictException, EventDataStoreAlreadyExistsException, EventDataStoreARNInvalidException, EventDataStoreHasOngoingImportException, EventDataStoreMaxLimitExceededException, EventDataStoreNotFoundException, EventDataStoreTerminationProtectedException, ImportNotFoundException, InactiveEventDataStoreException, InactiveQueryException, InsightNotEnabledException, InsufficientDependencyServiceAccessPermissionException, InsufficientEncryptionPolicyException, InsufficientS3BucketPolicyException, InsufficientSnsTopicPolicyException, InvalidCloudWatchLogsLogGroupArnException, InvalidCloudWatchLogsRoleArnException, InvalidDateRangeException, InvalidEventCategoryException, InvalidEventDataStoreCategoryException, InvalidEventDataStoreStatusException, InvalidEventSelectorsException, InvalidHomeRegionException, InvalidImportSourceException, InvalidInsightSelectorsException, InvalidKmsKeyIdException, InvalidLookupAttributesException, InvalidMaxResultsException, InvalidNextTokenException, InvalidParameterCombinationException, InvalidParameterException, InvalidQueryStatementException, InvalidQueryStatusException, InvalidS3BucketNameException, InvalidS3PrefixException, InvalidSnsTopicNameException, InvalidTagParameterException, InvalidTimeRangeException, InvalidTokenException, InvalidTrailNameException, KmsException, KmsKeyDisabledException, KmsKeyNotFoundException, MaxConcurrentQueriesException, MaximumNumberOfTrailsExceededException, NotOrganizationMasterAccountException, OperationNotPermittedException, OrganizationNotInAllFeaturesModeException, OrganizationsNotInUseException, QueryIdNotFoundException, ResourceNotFoundException, ResourceTypeNotSupportedException, S3BucketDoesNotExistException, TagsLimitExceededException, TrailAlreadyExistsException, TrailNotFoundException, TrailNotProvidedException, UnsupportedOperationException, } from "../models/models_0";
|
|
4
|
+
import { AccountHasOngoingImportException, AccountNotFoundException, AccountNotRegisteredException, AccountRegisteredException, CannotDelegateManagementAccountException, ChannelARNInvalidException, ChannelNotFoundException, CloudTrailAccessNotEnabledException, CloudTrailARNInvalidException, CloudTrailInvalidClientTokenIdException, CloudWatchLogsDeliveryUnavailableException, ConflictException, DelegatedAdminAccountLimitExceededException, EventDataStoreAlreadyExistsException, EventDataStoreARNInvalidException, EventDataStoreHasOngoingImportException, EventDataStoreMaxLimitExceededException, EventDataStoreNotFoundException, EventDataStoreTerminationProtectedException, ImportNotFoundException, InactiveEventDataStoreException, InactiveQueryException, InsightNotEnabledException, InsufficientDependencyServiceAccessPermissionException, InsufficientEncryptionPolicyException, InsufficientS3BucketPolicyException, InsufficientSnsTopicPolicyException, InvalidCloudWatchLogsLogGroupArnException, InvalidCloudWatchLogsRoleArnException, InvalidDateRangeException, InvalidEventCategoryException, InvalidEventDataStoreCategoryException, InvalidEventDataStoreStatusException, InvalidEventSelectorsException, InvalidHomeRegionException, InvalidImportSourceException, InvalidInsightSelectorsException, InvalidKmsKeyIdException, InvalidLookupAttributesException, InvalidMaxResultsException, InvalidNextTokenException, InvalidParameterCombinationException, InvalidParameterException, InvalidQueryStatementException, InvalidQueryStatusException, InvalidS3BucketNameException, InvalidS3PrefixException, InvalidSnsTopicNameException, InvalidTagParameterException, InvalidTimeRangeException, InvalidTokenException, InvalidTrailNameException, KmsException, KmsKeyDisabledException, KmsKeyNotFoundException, MaxConcurrentQueriesException, MaximumNumberOfTrailsExceededException, NoManagementAccountSLRExistsException, NotOrganizationManagementAccountException, NotOrganizationMasterAccountException, OperationNotPermittedException, OrganizationNotInAllFeaturesModeException, OrganizationsNotInUseException, QueryIdNotFoundException, ResourceNotFoundException, ResourceTypeNotSupportedException, S3BucketDoesNotExistException, TagsLimitExceededException, TrailAlreadyExistsException, TrailNotFoundException, TrailNotProvidedException, UnsupportedOperationException, } from "../models/models_0";
|
|
5
5
|
export const serializeAws_json1_1AddTagsCommand = async (input, context) => {
|
|
6
6
|
const headers = {
|
|
7
7
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -56,6 +56,15 @@ export const serializeAws_json1_1DeleteTrailCommand = async (input, context) =>
|
|
|
56
56
|
body = JSON.stringify(serializeAws_json1_1DeleteTrailRequest(input, context));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
|
+
export const serializeAws_json1_1DeregisterOrganizationDelegatedAdminCommand = async (input, context) => {
|
|
60
|
+
const headers = {
|
|
61
|
+
"content-type": "application/x-amz-json-1.1",
|
|
62
|
+
"x-amz-target": "CloudTrail_20131101.DeregisterOrganizationDelegatedAdmin",
|
|
63
|
+
};
|
|
64
|
+
let body;
|
|
65
|
+
body = JSON.stringify(serializeAws_json1_1DeregisterOrganizationDelegatedAdminRequest(input, context));
|
|
66
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
|
+
};
|
|
59
68
|
export const serializeAws_json1_1DescribeQueryCommand = async (input, context) => {
|
|
60
69
|
const headers = {
|
|
61
70
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -245,6 +254,15 @@ export const serializeAws_json1_1PutInsightSelectorsCommand = async (input, cont
|
|
|
245
254
|
body = JSON.stringify(serializeAws_json1_1PutInsightSelectorsRequest(input, context));
|
|
246
255
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
256
|
};
|
|
257
|
+
export const serializeAws_json1_1RegisterOrganizationDelegatedAdminCommand = async (input, context) => {
|
|
258
|
+
const headers = {
|
|
259
|
+
"content-type": "application/x-amz-json-1.1",
|
|
260
|
+
"x-amz-target": "CloudTrail_20131101.RegisterOrganizationDelegatedAdmin",
|
|
261
|
+
};
|
|
262
|
+
let body;
|
|
263
|
+
body = JSON.stringify(serializeAws_json1_1RegisterOrganizationDelegatedAdminRequest(input, context));
|
|
264
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
265
|
+
};
|
|
248
266
|
export const serializeAws_json1_1RemoveTagsCommand = async (input, context) => {
|
|
249
267
|
const headers = {
|
|
250
268
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -364,6 +382,9 @@ const deserializeAws_json1_1AddTagsCommandError = async (output, context) => {
|
|
|
364
382
|
case "InvalidTrailNameException":
|
|
365
383
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
366
384
|
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
385
|
+
case "NoManagementAccountSLRExistsException":
|
|
386
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
387
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
367
388
|
case "NotOrganizationMasterAccountException":
|
|
368
389
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
369
390
|
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
@@ -430,6 +451,9 @@ const deserializeAws_json1_1CancelQueryCommandError = async (output, context) =>
|
|
|
430
451
|
case "InvalidParameterException":
|
|
431
452
|
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
432
453
|
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
454
|
+
case "NoManagementAccountSLRExistsException":
|
|
455
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
456
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
433
457
|
case "OperationNotPermittedException":
|
|
434
458
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
435
459
|
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
@@ -484,12 +508,27 @@ const deserializeAws_json1_1CreateEventDataStoreCommandError = async (output, co
|
|
|
484
508
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
485
509
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
486
510
|
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
511
|
+
case "InsufficientEncryptionPolicyException":
|
|
512
|
+
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
513
|
+
throw await deserializeAws_json1_1InsufficientEncryptionPolicyExceptionResponse(parsedOutput, context);
|
|
514
|
+
case "InvalidKmsKeyIdException":
|
|
515
|
+
case "com.amazonaws.cloudtrail#InvalidKmsKeyIdException":
|
|
516
|
+
throw await deserializeAws_json1_1InvalidKmsKeyIdExceptionResponse(parsedOutput, context);
|
|
487
517
|
case "InvalidParameterException":
|
|
488
518
|
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
489
519
|
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
490
520
|
case "InvalidTagParameterException":
|
|
491
521
|
case "com.amazonaws.cloudtrail#InvalidTagParameterException":
|
|
492
522
|
throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context);
|
|
523
|
+
case "KmsException":
|
|
524
|
+
case "com.amazonaws.cloudtrail#KmsException":
|
|
525
|
+
throw await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context);
|
|
526
|
+
case "KmsKeyNotFoundException":
|
|
527
|
+
case "com.amazonaws.cloudtrail#KmsKeyNotFoundException":
|
|
528
|
+
throw await deserializeAws_json1_1KmsKeyNotFoundExceptionResponse(parsedOutput, context);
|
|
529
|
+
case "NoManagementAccountSLRExistsException":
|
|
530
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
531
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
493
532
|
case "NotOrganizationMasterAccountException":
|
|
494
533
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
495
534
|
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
@@ -598,6 +637,9 @@ const deserializeAws_json1_1CreateTrailCommandError = async (output, context) =>
|
|
|
598
637
|
case "MaximumNumberOfTrailsExceededException":
|
|
599
638
|
case "com.amazonaws.cloudtrail#MaximumNumberOfTrailsExceededException":
|
|
600
639
|
throw await deserializeAws_json1_1MaximumNumberOfTrailsExceededExceptionResponse(parsedOutput, context);
|
|
640
|
+
case "NoManagementAccountSLRExistsException":
|
|
641
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
642
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
601
643
|
case "NotOrganizationMasterAccountException":
|
|
602
644
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
603
645
|
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
@@ -670,6 +712,9 @@ const deserializeAws_json1_1DeleteEventDataStoreCommandError = async (output, co
|
|
|
670
712
|
case "InvalidParameterException":
|
|
671
713
|
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
672
714
|
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
715
|
+
case "NoManagementAccountSLRExistsException":
|
|
716
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
717
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
673
718
|
case "NotOrganizationMasterAccountException":
|
|
674
719
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
675
720
|
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
@@ -721,6 +766,9 @@ const deserializeAws_json1_1DeleteTrailCommandError = async (output, context) =>
|
|
|
721
766
|
case "InvalidTrailNameException":
|
|
722
767
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
723
768
|
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
769
|
+
case "NoManagementAccountSLRExistsException":
|
|
770
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
771
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
724
772
|
case "NotOrganizationMasterAccountException":
|
|
725
773
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
726
774
|
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
@@ -743,6 +791,66 @@ const deserializeAws_json1_1DeleteTrailCommandError = async (output, context) =>
|
|
|
743
791
|
});
|
|
744
792
|
}
|
|
745
793
|
};
|
|
794
|
+
export const deserializeAws_json1_1DeregisterOrganizationDelegatedAdminCommand = async (output, context) => {
|
|
795
|
+
if (output.statusCode >= 300) {
|
|
796
|
+
return deserializeAws_json1_1DeregisterOrganizationDelegatedAdminCommandError(output, context);
|
|
797
|
+
}
|
|
798
|
+
const data = await parseBody(output.body, context);
|
|
799
|
+
let contents = {};
|
|
800
|
+
contents = deserializeAws_json1_1DeregisterOrganizationDelegatedAdminResponse(data, context);
|
|
801
|
+
const response = {
|
|
802
|
+
$metadata: deserializeMetadata(output),
|
|
803
|
+
...contents,
|
|
804
|
+
};
|
|
805
|
+
return Promise.resolve(response);
|
|
806
|
+
};
|
|
807
|
+
const deserializeAws_json1_1DeregisterOrganizationDelegatedAdminCommandError = async (output, context) => {
|
|
808
|
+
const parsedOutput = {
|
|
809
|
+
...output,
|
|
810
|
+
body: await parseErrorBody(output.body, context),
|
|
811
|
+
};
|
|
812
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
813
|
+
switch (errorCode) {
|
|
814
|
+
case "AccountNotFoundException":
|
|
815
|
+
case "com.amazonaws.cloudtrail#AccountNotFoundException":
|
|
816
|
+
throw await deserializeAws_json1_1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
817
|
+
case "AccountNotRegisteredException":
|
|
818
|
+
case "com.amazonaws.cloudtrail#AccountNotRegisteredException":
|
|
819
|
+
throw await deserializeAws_json1_1AccountNotRegisteredExceptionResponse(parsedOutput, context);
|
|
820
|
+
case "CloudTrailAccessNotEnabledException":
|
|
821
|
+
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
822
|
+
throw await deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
823
|
+
case "InsufficientDependencyServiceAccessPermissionException":
|
|
824
|
+
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
825
|
+
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
826
|
+
case "InvalidParameterException":
|
|
827
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
828
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
829
|
+
case "NotOrganizationManagementAccountException":
|
|
830
|
+
case "com.amazonaws.cloudtrail#NotOrganizationManagementAccountException":
|
|
831
|
+
throw await deserializeAws_json1_1NotOrganizationManagementAccountExceptionResponse(parsedOutput, context);
|
|
832
|
+
case "OperationNotPermittedException":
|
|
833
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
834
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
835
|
+
case "OrganizationNotInAllFeaturesModeException":
|
|
836
|
+
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
837
|
+
throw await deserializeAws_json1_1OrganizationNotInAllFeaturesModeExceptionResponse(parsedOutput, context);
|
|
838
|
+
case "OrganizationsNotInUseException":
|
|
839
|
+
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
840
|
+
throw await deserializeAws_json1_1OrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
841
|
+
case "UnsupportedOperationException":
|
|
842
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
843
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
844
|
+
default:
|
|
845
|
+
const parsedBody = parsedOutput.body;
|
|
846
|
+
throwDefaultError({
|
|
847
|
+
output,
|
|
848
|
+
parsedBody,
|
|
849
|
+
exceptionCtor: __BaseException,
|
|
850
|
+
errorCode,
|
|
851
|
+
});
|
|
852
|
+
}
|
|
853
|
+
};
|
|
746
854
|
export const deserializeAws_json1_1DescribeQueryCommand = async (output, context) => {
|
|
747
855
|
if (output.statusCode >= 300) {
|
|
748
856
|
return deserializeAws_json1_1DescribeQueryCommandError(output, context);
|
|
@@ -775,6 +883,9 @@ const deserializeAws_json1_1DescribeQueryCommandError = async (output, context)
|
|
|
775
883
|
case "InvalidParameterException":
|
|
776
884
|
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
777
885
|
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
886
|
+
case "NoManagementAccountSLRExistsException":
|
|
887
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
888
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
778
889
|
case "OperationNotPermittedException":
|
|
779
890
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
780
891
|
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
@@ -817,6 +928,9 @@ const deserializeAws_json1_1DescribeTrailsCommandError = async (output, context)
|
|
|
817
928
|
case "InvalidTrailNameException":
|
|
818
929
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
819
930
|
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
931
|
+
case "NoManagementAccountSLRExistsException":
|
|
932
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
933
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
820
934
|
case "OperationNotPermittedException":
|
|
821
935
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
822
936
|
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
@@ -904,6 +1018,9 @@ const deserializeAws_json1_1GetEventDataStoreCommandError = async (output, conte
|
|
|
904
1018
|
case "InvalidParameterException":
|
|
905
1019
|
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
906
1020
|
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1021
|
+
case "NoManagementAccountSLRExistsException":
|
|
1022
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
1023
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
907
1024
|
case "OperationNotPermittedException":
|
|
908
1025
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
909
1026
|
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
@@ -943,6 +1060,9 @@ const deserializeAws_json1_1GetEventSelectorsCommandError = async (output, conte
|
|
|
943
1060
|
case "InvalidTrailNameException":
|
|
944
1061
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
945
1062
|
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
1063
|
+
case "NoManagementAccountSLRExistsException":
|
|
1064
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
1065
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
946
1066
|
case "OperationNotPermittedException":
|
|
947
1067
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
948
1068
|
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
@@ -1030,6 +1150,9 @@ const deserializeAws_json1_1GetInsightSelectorsCommandError = async (output, con
|
|
|
1030
1150
|
case "InvalidTrailNameException":
|
|
1031
1151
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1032
1152
|
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
1153
|
+
case "NoManagementAccountSLRExistsException":
|
|
1154
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
1155
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
1033
1156
|
case "OperationNotPermittedException":
|
|
1034
1157
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1035
1158
|
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
@@ -1078,6 +1201,9 @@ const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context
|
|
|
1078
1201
|
case "InactiveEventDataStoreException":
|
|
1079
1202
|
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
1080
1203
|
throw await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context);
|
|
1204
|
+
case "InsufficientEncryptionPolicyException":
|
|
1205
|
+
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
1206
|
+
throw await deserializeAws_json1_1InsufficientEncryptionPolicyExceptionResponse(parsedOutput, context);
|
|
1081
1207
|
case "InvalidMaxResultsException":
|
|
1082
1208
|
case "com.amazonaws.cloudtrail#InvalidMaxResultsException":
|
|
1083
1209
|
throw await deserializeAws_json1_1InvalidMaxResultsExceptionResponse(parsedOutput, context);
|
|
@@ -1087,6 +1213,9 @@ const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context
|
|
|
1087
1213
|
case "InvalidParameterException":
|
|
1088
1214
|
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1089
1215
|
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1216
|
+
case "NoManagementAccountSLRExistsException":
|
|
1217
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
1218
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
1090
1219
|
case "OperationNotPermittedException":
|
|
1091
1220
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1092
1221
|
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
@@ -1255,6 +1384,9 @@ const deserializeAws_json1_1ListEventDataStoresCommandError = async (output, con
|
|
|
1255
1384
|
case "InvalidNextTokenException":
|
|
1256
1385
|
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
1257
1386
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1387
|
+
case "NoManagementAccountSLRExistsException":
|
|
1388
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
1389
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
1258
1390
|
case "OperationNotPermittedException":
|
|
1259
1391
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1260
1392
|
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
@@ -1441,6 +1573,9 @@ const deserializeAws_json1_1ListQueriesCommandError = async (output, context) =>
|
|
|
1441
1573
|
case "InvalidQueryStatusException":
|
|
1442
1574
|
case "com.amazonaws.cloudtrail#InvalidQueryStatusException":
|
|
1443
1575
|
throw await deserializeAws_json1_1InvalidQueryStatusExceptionResponse(parsedOutput, context);
|
|
1576
|
+
case "NoManagementAccountSLRExistsException":
|
|
1577
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
1578
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
1444
1579
|
case "OperationNotPermittedException":
|
|
1445
1580
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1446
1581
|
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
@@ -1492,6 +1627,9 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
1492
1627
|
case "InvalidTrailNameException":
|
|
1493
1628
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1494
1629
|
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
1630
|
+
case "NoManagementAccountSLRExistsException":
|
|
1631
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
1632
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
1495
1633
|
case "OperationNotPermittedException":
|
|
1496
1634
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1497
1635
|
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
@@ -1633,6 +1771,9 @@ const deserializeAws_json1_1PutEventSelectorsCommandError = async (output, conte
|
|
|
1633
1771
|
case "InvalidTrailNameException":
|
|
1634
1772
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1635
1773
|
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
1774
|
+
case "NoManagementAccountSLRExistsException":
|
|
1775
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
1776
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
1636
1777
|
case "NotOrganizationMasterAccountException":
|
|
1637
1778
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
1638
1779
|
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
@@ -1693,6 +1834,9 @@ const deserializeAws_json1_1PutInsightSelectorsCommandError = async (output, con
|
|
|
1693
1834
|
case "KmsException":
|
|
1694
1835
|
case "com.amazonaws.cloudtrail#KmsException":
|
|
1695
1836
|
throw await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context);
|
|
1837
|
+
case "NoManagementAccountSLRExistsException":
|
|
1838
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
1839
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
1696
1840
|
case "NotOrganizationMasterAccountException":
|
|
1697
1841
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
1698
1842
|
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
@@ -1718,6 +1862,72 @@ const deserializeAws_json1_1PutInsightSelectorsCommandError = async (output, con
|
|
|
1718
1862
|
});
|
|
1719
1863
|
}
|
|
1720
1864
|
};
|
|
1865
|
+
export const deserializeAws_json1_1RegisterOrganizationDelegatedAdminCommand = async (output, context) => {
|
|
1866
|
+
if (output.statusCode >= 300) {
|
|
1867
|
+
return deserializeAws_json1_1RegisterOrganizationDelegatedAdminCommandError(output, context);
|
|
1868
|
+
}
|
|
1869
|
+
const data = await parseBody(output.body, context);
|
|
1870
|
+
let contents = {};
|
|
1871
|
+
contents = deserializeAws_json1_1RegisterOrganizationDelegatedAdminResponse(data, context);
|
|
1872
|
+
const response = {
|
|
1873
|
+
$metadata: deserializeMetadata(output),
|
|
1874
|
+
...contents,
|
|
1875
|
+
};
|
|
1876
|
+
return Promise.resolve(response);
|
|
1877
|
+
};
|
|
1878
|
+
const deserializeAws_json1_1RegisterOrganizationDelegatedAdminCommandError = async (output, context) => {
|
|
1879
|
+
const parsedOutput = {
|
|
1880
|
+
...output,
|
|
1881
|
+
body: await parseErrorBody(output.body, context),
|
|
1882
|
+
};
|
|
1883
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1884
|
+
switch (errorCode) {
|
|
1885
|
+
case "AccountNotFoundException":
|
|
1886
|
+
case "com.amazonaws.cloudtrail#AccountNotFoundException":
|
|
1887
|
+
throw await deserializeAws_json1_1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
1888
|
+
case "AccountRegisteredException":
|
|
1889
|
+
case "com.amazonaws.cloudtrail#AccountRegisteredException":
|
|
1890
|
+
throw await deserializeAws_json1_1AccountRegisteredExceptionResponse(parsedOutput, context);
|
|
1891
|
+
case "CannotDelegateManagementAccountException":
|
|
1892
|
+
case "com.amazonaws.cloudtrail#CannotDelegateManagementAccountException":
|
|
1893
|
+
throw await deserializeAws_json1_1CannotDelegateManagementAccountExceptionResponse(parsedOutput, context);
|
|
1894
|
+
case "CloudTrailAccessNotEnabledException":
|
|
1895
|
+
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
1896
|
+
throw await deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
1897
|
+
case "DelegatedAdminAccountLimitExceededException":
|
|
1898
|
+
case "com.amazonaws.cloudtrail#DelegatedAdminAccountLimitExceededException":
|
|
1899
|
+
throw await deserializeAws_json1_1DelegatedAdminAccountLimitExceededExceptionResponse(parsedOutput, context);
|
|
1900
|
+
case "InsufficientDependencyServiceAccessPermissionException":
|
|
1901
|
+
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
1902
|
+
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
1903
|
+
case "InvalidParameterException":
|
|
1904
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1905
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1906
|
+
case "NotOrganizationManagementAccountException":
|
|
1907
|
+
case "com.amazonaws.cloudtrail#NotOrganizationManagementAccountException":
|
|
1908
|
+
throw await deserializeAws_json1_1NotOrganizationManagementAccountExceptionResponse(parsedOutput, context);
|
|
1909
|
+
case "OperationNotPermittedException":
|
|
1910
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1911
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
1912
|
+
case "OrganizationNotInAllFeaturesModeException":
|
|
1913
|
+
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
1914
|
+
throw await deserializeAws_json1_1OrganizationNotInAllFeaturesModeExceptionResponse(parsedOutput, context);
|
|
1915
|
+
case "OrganizationsNotInUseException":
|
|
1916
|
+
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
1917
|
+
throw await deserializeAws_json1_1OrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
1918
|
+
case "UnsupportedOperationException":
|
|
1919
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1920
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1921
|
+
default:
|
|
1922
|
+
const parsedBody = parsedOutput.body;
|
|
1923
|
+
throwDefaultError({
|
|
1924
|
+
output,
|
|
1925
|
+
parsedBody,
|
|
1926
|
+
exceptionCtor: __BaseException,
|
|
1927
|
+
errorCode,
|
|
1928
|
+
});
|
|
1929
|
+
}
|
|
1930
|
+
};
|
|
1721
1931
|
export const deserializeAws_json1_1RemoveTagsCommand = async (output, context) => {
|
|
1722
1932
|
if (output.statusCode >= 300) {
|
|
1723
1933
|
return deserializeAws_json1_1RemoveTagsCommandError(output, context);
|
|
@@ -1753,6 +1963,9 @@ const deserializeAws_json1_1RemoveTagsCommandError = async (output, context) =>
|
|
|
1753
1963
|
case "InvalidTrailNameException":
|
|
1754
1964
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1755
1965
|
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
1966
|
+
case "NoManagementAccountSLRExistsException":
|
|
1967
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
1968
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
1756
1969
|
case "NotOrganizationMasterAccountException":
|
|
1757
1970
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
1758
1971
|
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
@@ -1819,6 +2032,9 @@ const deserializeAws_json1_1RestoreEventDataStoreCommandError = async (output, c
|
|
|
1819
2032
|
case "InvalidParameterException":
|
|
1820
2033
|
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1821
2034
|
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2035
|
+
case "NoManagementAccountSLRExistsException":
|
|
2036
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2037
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
1822
2038
|
case "NotOrganizationMasterAccountException":
|
|
1823
2039
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
1824
2040
|
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
@@ -1936,6 +2152,9 @@ const deserializeAws_json1_1StartLoggingCommandError = async (output, context) =
|
|
|
1936
2152
|
case "InvalidTrailNameException":
|
|
1937
2153
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1938
2154
|
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
2155
|
+
case "NoManagementAccountSLRExistsException":
|
|
2156
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2157
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
1939
2158
|
case "NotOrganizationMasterAccountException":
|
|
1940
2159
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
1941
2160
|
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
@@ -1987,6 +2206,9 @@ const deserializeAws_json1_1StartQueryCommandError = async (output, context) =>
|
|
|
1987
2206
|
case "InactiveEventDataStoreException":
|
|
1988
2207
|
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
1989
2208
|
throw await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context);
|
|
2209
|
+
case "InsufficientEncryptionPolicyException":
|
|
2210
|
+
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
2211
|
+
throw await deserializeAws_json1_1InsufficientEncryptionPolicyExceptionResponse(parsedOutput, context);
|
|
1990
2212
|
case "InsufficientS3BucketPolicyException":
|
|
1991
2213
|
case "com.amazonaws.cloudtrail#InsufficientS3BucketPolicyException":
|
|
1992
2214
|
throw await deserializeAws_json1_1InsufficientS3BucketPolicyExceptionResponse(parsedOutput, context);
|
|
@@ -2005,6 +2227,9 @@ const deserializeAws_json1_1StartQueryCommandError = async (output, context) =>
|
|
|
2005
2227
|
case "MaxConcurrentQueriesException":
|
|
2006
2228
|
case "com.amazonaws.cloudtrail#MaxConcurrentQueriesException":
|
|
2007
2229
|
throw await deserializeAws_json1_1MaxConcurrentQueriesExceptionResponse(parsedOutput, context);
|
|
2230
|
+
case "NoManagementAccountSLRExistsException":
|
|
2231
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2232
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
2008
2233
|
case "OperationNotPermittedException":
|
|
2009
2234
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2010
2235
|
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
@@ -2095,6 +2320,9 @@ const deserializeAws_json1_1StopLoggingCommandError = async (output, context) =>
|
|
|
2095
2320
|
case "InvalidTrailNameException":
|
|
2096
2321
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
2097
2322
|
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
2323
|
+
case "NoManagementAccountSLRExistsException":
|
|
2324
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2325
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
2098
2326
|
case "NotOrganizationMasterAccountException":
|
|
2099
2327
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2100
2328
|
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
@@ -2155,9 +2383,24 @@ const deserializeAws_json1_1UpdateEventDataStoreCommandError = async (output, co
|
|
|
2155
2383
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2156
2384
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2157
2385
|
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
2386
|
+
case "InsufficientEncryptionPolicyException":
|
|
2387
|
+
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
2388
|
+
throw await deserializeAws_json1_1InsufficientEncryptionPolicyExceptionResponse(parsedOutput, context);
|
|
2389
|
+
case "InvalidKmsKeyIdException":
|
|
2390
|
+
case "com.amazonaws.cloudtrail#InvalidKmsKeyIdException":
|
|
2391
|
+
throw await deserializeAws_json1_1InvalidKmsKeyIdExceptionResponse(parsedOutput, context);
|
|
2158
2392
|
case "InvalidParameterException":
|
|
2159
2393
|
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2160
2394
|
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2395
|
+
case "KmsException":
|
|
2396
|
+
case "com.amazonaws.cloudtrail#KmsException":
|
|
2397
|
+
throw await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context);
|
|
2398
|
+
case "KmsKeyNotFoundException":
|
|
2399
|
+
case "com.amazonaws.cloudtrail#KmsKeyNotFoundException":
|
|
2400
|
+
throw await deserializeAws_json1_1KmsKeyNotFoundExceptionResponse(parsedOutput, context);
|
|
2401
|
+
case "NoManagementAccountSLRExistsException":
|
|
2402
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2403
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
2161
2404
|
case "NotOrganizationMasterAccountException":
|
|
2162
2405
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2163
2406
|
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
@@ -2242,6 +2485,9 @@ const deserializeAws_json1_1UpdateTrailCommandError = async (output, context) =>
|
|
|
2242
2485
|
case "InvalidParameterCombinationException":
|
|
2243
2486
|
case "com.amazonaws.cloudtrail#InvalidParameterCombinationException":
|
|
2244
2487
|
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
2488
|
+
case "InvalidParameterException":
|
|
2489
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2490
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2245
2491
|
case "InvalidS3BucketNameException":
|
|
2246
2492
|
case "com.amazonaws.cloudtrail#InvalidS3BucketNameException":
|
|
2247
2493
|
throw await deserializeAws_json1_1InvalidS3BucketNameExceptionResponse(parsedOutput, context);
|
|
@@ -2263,6 +2509,9 @@ const deserializeAws_json1_1UpdateTrailCommandError = async (output, context) =>
|
|
|
2263
2509
|
case "KmsKeyNotFoundException":
|
|
2264
2510
|
case "com.amazonaws.cloudtrail#KmsKeyNotFoundException":
|
|
2265
2511
|
throw await deserializeAws_json1_1KmsKeyNotFoundExceptionResponse(parsedOutput, context);
|
|
2512
|
+
case "NoManagementAccountSLRExistsException":
|
|
2513
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2514
|
+
throw await deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse(parsedOutput, context);
|
|
2266
2515
|
case "NotOrganizationMasterAccountException":
|
|
2267
2516
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2268
2517
|
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
@@ -2306,6 +2555,42 @@ const deserializeAws_json1_1AccountHasOngoingImportExceptionResponse = async (pa
|
|
|
2306
2555
|
});
|
|
2307
2556
|
return __decorateServiceException(exception, body);
|
|
2308
2557
|
};
|
|
2558
|
+
const deserializeAws_json1_1AccountNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2559
|
+
const body = parsedOutput.body;
|
|
2560
|
+
const deserialized = deserializeAws_json1_1AccountNotFoundException(body, context);
|
|
2561
|
+
const exception = new AccountNotFoundException({
|
|
2562
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2563
|
+
...deserialized,
|
|
2564
|
+
});
|
|
2565
|
+
return __decorateServiceException(exception, body);
|
|
2566
|
+
};
|
|
2567
|
+
const deserializeAws_json1_1AccountNotRegisteredExceptionResponse = async (parsedOutput, context) => {
|
|
2568
|
+
const body = parsedOutput.body;
|
|
2569
|
+
const deserialized = deserializeAws_json1_1AccountNotRegisteredException(body, context);
|
|
2570
|
+
const exception = new AccountNotRegisteredException({
|
|
2571
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2572
|
+
...deserialized,
|
|
2573
|
+
});
|
|
2574
|
+
return __decorateServiceException(exception, body);
|
|
2575
|
+
};
|
|
2576
|
+
const deserializeAws_json1_1AccountRegisteredExceptionResponse = async (parsedOutput, context) => {
|
|
2577
|
+
const body = parsedOutput.body;
|
|
2578
|
+
const deserialized = deserializeAws_json1_1AccountRegisteredException(body, context);
|
|
2579
|
+
const exception = new AccountRegisteredException({
|
|
2580
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2581
|
+
...deserialized,
|
|
2582
|
+
});
|
|
2583
|
+
return __decorateServiceException(exception, body);
|
|
2584
|
+
};
|
|
2585
|
+
const deserializeAws_json1_1CannotDelegateManagementAccountExceptionResponse = async (parsedOutput, context) => {
|
|
2586
|
+
const body = parsedOutput.body;
|
|
2587
|
+
const deserialized = deserializeAws_json1_1CannotDelegateManagementAccountException(body, context);
|
|
2588
|
+
const exception = new CannotDelegateManagementAccountException({
|
|
2589
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2590
|
+
...deserialized,
|
|
2591
|
+
});
|
|
2592
|
+
return __decorateServiceException(exception, body);
|
|
2593
|
+
};
|
|
2309
2594
|
const deserializeAws_json1_1ChannelARNInvalidExceptionResponse = async (parsedOutput, context) => {
|
|
2310
2595
|
const body = parsedOutput.body;
|
|
2311
2596
|
const deserialized = deserializeAws_json1_1ChannelARNInvalidException(body, context);
|
|
@@ -2369,6 +2654,15 @@ const deserializeAws_json1_1ConflictExceptionResponse = async (parsedOutput, con
|
|
|
2369
2654
|
});
|
|
2370
2655
|
return __decorateServiceException(exception, body);
|
|
2371
2656
|
};
|
|
2657
|
+
const deserializeAws_json1_1DelegatedAdminAccountLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2658
|
+
const body = parsedOutput.body;
|
|
2659
|
+
const deserialized = deserializeAws_json1_1DelegatedAdminAccountLimitExceededException(body, context);
|
|
2660
|
+
const exception = new DelegatedAdminAccountLimitExceededException({
|
|
2661
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2662
|
+
...deserialized,
|
|
2663
|
+
});
|
|
2664
|
+
return __decorateServiceException(exception, body);
|
|
2665
|
+
};
|
|
2372
2666
|
const deserializeAws_json1_1EventDataStoreAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
2373
2667
|
const body = parsedOutput.body;
|
|
2374
2668
|
const deserialized = deserializeAws_json1_1EventDataStoreAlreadyExistsException(body, context);
|
|
@@ -2765,6 +3059,24 @@ const deserializeAws_json1_1MaximumNumberOfTrailsExceededExceptionResponse = asy
|
|
|
2765
3059
|
});
|
|
2766
3060
|
return __decorateServiceException(exception, body);
|
|
2767
3061
|
};
|
|
3062
|
+
const deserializeAws_json1_1NoManagementAccountSLRExistsExceptionResponse = async (parsedOutput, context) => {
|
|
3063
|
+
const body = parsedOutput.body;
|
|
3064
|
+
const deserialized = deserializeAws_json1_1NoManagementAccountSLRExistsException(body, context);
|
|
3065
|
+
const exception = new NoManagementAccountSLRExistsException({
|
|
3066
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3067
|
+
...deserialized,
|
|
3068
|
+
});
|
|
3069
|
+
return __decorateServiceException(exception, body);
|
|
3070
|
+
};
|
|
3071
|
+
const deserializeAws_json1_1NotOrganizationManagementAccountExceptionResponse = async (parsedOutput, context) => {
|
|
3072
|
+
const body = parsedOutput.body;
|
|
3073
|
+
const deserialized = deserializeAws_json1_1NotOrganizationManagementAccountException(body, context);
|
|
3074
|
+
const exception = new NotOrganizationManagementAccountException({
|
|
3075
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3076
|
+
...deserialized,
|
|
3077
|
+
});
|
|
3078
|
+
return __decorateServiceException(exception, body);
|
|
3079
|
+
};
|
|
2768
3080
|
const deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse = async (parsedOutput, context) => {
|
|
2769
3081
|
const body = parsedOutput.body;
|
|
2770
3082
|
const deserialized = deserializeAws_json1_1NotOrganizationMasterAccountException(body, context);
|
|
@@ -2932,6 +3244,7 @@ const serializeAws_json1_1CreateEventDataStoreRequest = (input, context) => {
|
|
|
2932
3244
|
...(input.AdvancedEventSelectors != null && {
|
|
2933
3245
|
AdvancedEventSelectors: serializeAws_json1_1AdvancedEventSelectors(input.AdvancedEventSelectors, context),
|
|
2934
3246
|
}),
|
|
3247
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
2935
3248
|
...(input.MultiRegionEnabled != null && { MultiRegionEnabled: input.MultiRegionEnabled }),
|
|
2936
3249
|
...(input.Name != null && { Name: input.Name }),
|
|
2937
3250
|
...(input.OrganizationEnabled != null && { OrganizationEnabled: input.OrganizationEnabled }),
|
|
@@ -2988,6 +3301,11 @@ const serializeAws_json1_1DeleteTrailRequest = (input, context) => {
|
|
|
2988
3301
|
...(input.Name != null && { Name: input.Name }),
|
|
2989
3302
|
};
|
|
2990
3303
|
};
|
|
3304
|
+
const serializeAws_json1_1DeregisterOrganizationDelegatedAdminRequest = (input, context) => {
|
|
3305
|
+
return {
|
|
3306
|
+
...(input.DelegatedAdminAccountId != null && { DelegatedAdminAccountId: input.DelegatedAdminAccountId }),
|
|
3307
|
+
};
|
|
3308
|
+
};
|
|
2991
3309
|
const serializeAws_json1_1DescribeQueryRequest = (input, context) => {
|
|
2992
3310
|
return {
|
|
2993
3311
|
...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
|
|
@@ -3203,6 +3521,11 @@ const serializeAws_json1_1PutInsightSelectorsRequest = (input, context) => {
|
|
|
3203
3521
|
...(input.TrailName != null && { TrailName: input.TrailName }),
|
|
3204
3522
|
};
|
|
3205
3523
|
};
|
|
3524
|
+
const serializeAws_json1_1RegisterOrganizationDelegatedAdminRequest = (input, context) => {
|
|
3525
|
+
return {
|
|
3526
|
+
...(input.MemberAccountId != null && { MemberAccountId: input.MemberAccountId }),
|
|
3527
|
+
};
|
|
3528
|
+
};
|
|
3206
3529
|
const serializeAws_json1_1RemoveTagsRequest = (input, context) => {
|
|
3207
3530
|
return {
|
|
3208
3531
|
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
@@ -3286,6 +3609,7 @@ const serializeAws_json1_1UpdateEventDataStoreRequest = (input, context) => {
|
|
|
3286
3609
|
AdvancedEventSelectors: serializeAws_json1_1AdvancedEventSelectors(input.AdvancedEventSelectors, context),
|
|
3287
3610
|
}),
|
|
3288
3611
|
...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
|
|
3612
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
3289
3613
|
...(input.MultiRegionEnabled != null && { MultiRegionEnabled: input.MultiRegionEnabled }),
|
|
3290
3614
|
...(input.Name != null && { Name: input.Name }),
|
|
3291
3615
|
...(input.OrganizationEnabled != null && { OrganizationEnabled: input.OrganizationEnabled }),
|
|
@@ -3315,6 +3639,21 @@ const deserializeAws_json1_1AccountHasOngoingImportException = (output, context)
|
|
|
3315
3639
|
Message: __expectString(output.Message),
|
|
3316
3640
|
};
|
|
3317
3641
|
};
|
|
3642
|
+
const deserializeAws_json1_1AccountNotFoundException = (output, context) => {
|
|
3643
|
+
return {
|
|
3644
|
+
Message: __expectString(output.Message),
|
|
3645
|
+
};
|
|
3646
|
+
};
|
|
3647
|
+
const deserializeAws_json1_1AccountNotRegisteredException = (output, context) => {
|
|
3648
|
+
return {
|
|
3649
|
+
Message: __expectString(output.Message),
|
|
3650
|
+
};
|
|
3651
|
+
};
|
|
3652
|
+
const deserializeAws_json1_1AccountRegisteredException = (output, context) => {
|
|
3653
|
+
return {
|
|
3654
|
+
Message: __expectString(output.Message),
|
|
3655
|
+
};
|
|
3656
|
+
};
|
|
3318
3657
|
const deserializeAws_json1_1AddTagsResponse = (output, context) => {
|
|
3319
3658
|
return {};
|
|
3320
3659
|
};
|
|
@@ -3365,6 +3704,11 @@ const deserializeAws_json1_1CancelQueryResponse = (output, context) => {
|
|
|
3365
3704
|
QueryStatus: __expectString(output.QueryStatus),
|
|
3366
3705
|
};
|
|
3367
3706
|
};
|
|
3707
|
+
const deserializeAws_json1_1CannotDelegateManagementAccountException = (output, context) => {
|
|
3708
|
+
return {
|
|
3709
|
+
Message: __expectString(output.Message),
|
|
3710
|
+
};
|
|
3711
|
+
};
|
|
3368
3712
|
const deserializeAws_json1_1Channel = (output, context) => {
|
|
3369
3713
|
return {
|
|
3370
3714
|
ChannelArn: __expectString(output.ChannelArn),
|
|
@@ -3426,6 +3770,7 @@ const deserializeAws_json1_1CreateEventDataStoreResponse = (output, context) =>
|
|
|
3426
3770
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
3427
3771
|
: undefined,
|
|
3428
3772
|
EventDataStoreArn: __expectString(output.EventDataStoreArn),
|
|
3773
|
+
KmsKeyId: __expectString(output.KmsKeyId),
|
|
3429
3774
|
MultiRegionEnabled: __expectBoolean(output.MultiRegionEnabled),
|
|
3430
3775
|
Name: __expectString(output.Name),
|
|
3431
3776
|
OrganizationEnabled: __expectBoolean(output.OrganizationEnabled),
|
|
@@ -3483,12 +3828,20 @@ const deserializeAws_json1_1DataResourceValues = (output, context) => {
|
|
|
3483
3828
|
});
|
|
3484
3829
|
return retVal;
|
|
3485
3830
|
};
|
|
3831
|
+
const deserializeAws_json1_1DelegatedAdminAccountLimitExceededException = (output, context) => {
|
|
3832
|
+
return {
|
|
3833
|
+
Message: __expectString(output.Message),
|
|
3834
|
+
};
|
|
3835
|
+
};
|
|
3486
3836
|
const deserializeAws_json1_1DeleteEventDataStoreResponse = (output, context) => {
|
|
3487
3837
|
return {};
|
|
3488
3838
|
};
|
|
3489
3839
|
const deserializeAws_json1_1DeleteTrailResponse = (output, context) => {
|
|
3490
3840
|
return {};
|
|
3491
3841
|
};
|
|
3842
|
+
const deserializeAws_json1_1DeregisterOrganizationDelegatedAdminResponse = (output, context) => {
|
|
3843
|
+
return {};
|
|
3844
|
+
};
|
|
3492
3845
|
const deserializeAws_json1_1DescribeQueryResponse = (output, context) => {
|
|
3493
3846
|
return {
|
|
3494
3847
|
DeliveryS3Uri: __expectString(output.DeliveryS3Uri),
|
|
@@ -3659,6 +4012,7 @@ const deserializeAws_json1_1GetEventDataStoreResponse = (output, context) => {
|
|
|
3659
4012
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
3660
4013
|
: undefined,
|
|
3661
4014
|
EventDataStoreArn: __expectString(output.EventDataStoreArn),
|
|
4015
|
+
KmsKeyId: __expectString(output.KmsKeyId),
|
|
3662
4016
|
MultiRegionEnabled: __expectBoolean(output.MultiRegionEnabled),
|
|
3663
4017
|
Name: __expectString(output.Name),
|
|
3664
4018
|
OrganizationEnabled: __expectBoolean(output.OrganizationEnabled),
|
|
@@ -4096,6 +4450,16 @@ const deserializeAws_json1_1MaximumNumberOfTrailsExceededException = (output, co
|
|
|
4096
4450
|
Message: __expectString(output.Message),
|
|
4097
4451
|
};
|
|
4098
4452
|
};
|
|
4453
|
+
const deserializeAws_json1_1NoManagementAccountSLRExistsException = (output, context) => {
|
|
4454
|
+
return {
|
|
4455
|
+
Message: __expectString(output.Message),
|
|
4456
|
+
};
|
|
4457
|
+
};
|
|
4458
|
+
const deserializeAws_json1_1NotOrganizationManagementAccountException = (output, context) => {
|
|
4459
|
+
return {
|
|
4460
|
+
Message: __expectString(output.Message),
|
|
4461
|
+
};
|
|
4462
|
+
};
|
|
4099
4463
|
const deserializeAws_json1_1NotOrganizationMasterAccountException = (output, context) => {
|
|
4100
4464
|
return {
|
|
4101
4465
|
Message: __expectString(output.Message),
|
|
@@ -4243,6 +4607,9 @@ const deserializeAws_json1_1QueryStatisticsForDescribeQuery = (output, context)
|
|
|
4243
4607
|
ExecutionTimeInMillis: __expectInt32(output.ExecutionTimeInMillis),
|
|
4244
4608
|
};
|
|
4245
4609
|
};
|
|
4610
|
+
const deserializeAws_json1_1RegisterOrganizationDelegatedAdminResponse = (output, context) => {
|
|
4611
|
+
return {};
|
|
4612
|
+
};
|
|
4246
4613
|
const deserializeAws_json1_1RemoveTagsResponse = (output, context) => {
|
|
4247
4614
|
return {};
|
|
4248
4615
|
};
|
|
@@ -4299,6 +4666,7 @@ const deserializeAws_json1_1RestoreEventDataStoreResponse = (output, context) =>
|
|
|
4299
4666
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
4300
4667
|
: undefined,
|
|
4301
4668
|
EventDataStoreArn: __expectString(output.EventDataStoreArn),
|
|
4669
|
+
KmsKeyId: __expectString(output.KmsKeyId),
|
|
4302
4670
|
MultiRegionEnabled: __expectBoolean(output.MultiRegionEnabled),
|
|
4303
4671
|
Name: __expectString(output.Name),
|
|
4304
4672
|
OrganizationEnabled: __expectBoolean(output.OrganizationEnabled),
|
|
@@ -4484,6 +4852,7 @@ const deserializeAws_json1_1UpdateEventDataStoreResponse = (output, context) =>
|
|
|
4484
4852
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
4485
4853
|
: undefined,
|
|
4486
4854
|
EventDataStoreArn: __expectString(output.EventDataStoreArn),
|
|
4855
|
+
KmsKeyId: __expectString(output.KmsKeyId),
|
|
4487
4856
|
MultiRegionEnabled: __expectBoolean(output.MultiRegionEnabled),
|
|
4488
4857
|
Name: __expectString(output.Name),
|
|
4489
4858
|
OrganizationEnabled: __expectBoolean(output.OrganizationEnabled),
|