@aws-sdk/client-cloudtrail 3.261.0 → 3.262.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/README.md +13 -12
- package/dist-cjs/CloudTrail.js +90 -0
- package/dist-cjs/commands/CreateChannelCommand.js +46 -0
- package/dist-cjs/commands/DeleteChannelCommand.js +46 -0
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +46 -0
- package/dist-cjs/commands/GetResourcePolicyCommand.js +46 -0
- package/dist-cjs/commands/PutResourcePolicyCommand.js +46 -0
- package/dist-cjs/commands/UpdateChannelCommand.js +46 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +181 -30
- package/dist-cjs/protocols/Aws_json1_1.js +602 -2
- package/dist-es/CloudTrail.js +90 -0
- package/dist-es/commands/CreateChannelCommand.js +42 -0
- package/dist-es/commands/DeleteChannelCommand.js +42 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +42 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +42 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +42 -0
- package/dist-es/commands/UpdateChannelCommand.js +42 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +152 -22
- package/dist-es/protocols/Aws_json1_1.js +589 -1
- package/dist-types/CloudTrail.d.ts +238 -164
- package/dist-types/CloudTrailClient.d.ts +21 -14
- package/dist-types/commands/AddTagsCommand.d.ts +7 -9
- package/dist-types/commands/CancelQueryCommand.d.ts +6 -3
- package/dist-types/commands/CreateChannelCommand.d.ts +39 -0
- package/dist-types/commands/DeleteChannelCommand.d.ts +37 -0
- package/dist-types/commands/DeleteEventDataStoreCommand.d.ts +10 -7
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +39 -0
- package/dist-types/commands/DeregisterOrganizationDelegatedAdminCommand.d.ts +2 -1
- package/dist-types/commands/DescribeQueryCommand.d.ts +3 -2
- package/dist-types/commands/DescribeTrailsCommand.d.ts +2 -1
- package/dist-types/commands/GetChannelCommand.d.ts +1 -3
- package/dist-types/commands/GetEventDataStoreCommand.d.ts +2 -1
- package/dist-types/commands/GetEventSelectorsCommand.d.ts +10 -11
- package/dist-types/commands/GetImportCommand.d.ts +1 -3
- package/dist-types/commands/GetInsightSelectorsCommand.d.ts +6 -6
- package/dist-types/commands/GetQueryResultsCommand.d.ts +3 -2
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +39 -0
- package/dist-types/commands/GetTrailStatusCommand.d.ts +5 -1
- package/dist-types/commands/ListChannelsCommand.d.ts +1 -3
- package/dist-types/commands/ListEventDataStoresCommand.d.ts +2 -1
- package/dist-types/commands/ListImportFailuresCommand.d.ts +1 -3
- package/dist-types/commands/ListImportsCommand.d.ts +2 -3
- package/dist-types/commands/ListPublicKeysCommand.d.ts +7 -4
- package/dist-types/commands/ListQueriesCommand.d.ts +7 -5
- package/dist-types/commands/ListTagsCommand.d.ts +1 -1
- package/dist-types/commands/LookupEventsCommand.d.ts +5 -5
- package/dist-types/commands/PutEventSelectorsCommand.d.ts +28 -31
- package/dist-types/commands/PutInsightSelectorsCommand.d.ts +5 -4
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +41 -0
- package/dist-types/commands/RegisterOrganizationDelegatedAdminCommand.d.ts +2 -1
- package/dist-types/commands/RemoveTagsCommand.d.ts +1 -1
- package/dist-types/commands/RestoreEventDataStoreCommand.d.ts +4 -3
- package/dist-types/commands/StartImportCommand.d.ts +17 -13
- package/dist-types/commands/StartLoggingCommand.d.ts +4 -1
- package/dist-types/commands/StartQueryCommand.d.ts +3 -1
- package/dist-types/commands/StopImportCommand.d.ts +1 -3
- package/dist-types/commands/StopLoggingCommand.d.ts +7 -7
- package/dist-types/commands/UpdateChannelCommand.d.ts +37 -0
- package/dist-types/commands/UpdateEventDataStoreCommand.d.ts +11 -6
- package/dist-types/commands/UpdateTrailCommand.d.ts +6 -6
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +1428 -835
- package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
- package/dist-types/ts3.4/CloudTrail.d.ts +102 -0
- package/dist-types/ts3.4/CloudTrailClient.d.ts +36 -0
- package/dist-types/ts3.4/commands/CreateChannelCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteChannelCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateChannelCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +181 -22
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +72 -0
- package/package.json +2 -2
|
@@ -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, 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";
|
|
4
|
+
import { AccountHasOngoingImportException, AccountNotFoundException, AccountNotRegisteredException, AccountRegisteredException, CannotDelegateManagementAccountException, ChannelAlreadyExistsException, ChannelARNInvalidException, ChannelExistsForEDSException, ChannelMaxLimitExceededException, 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, InvalidSourceException, InvalidTagParameterException, InvalidTimeRangeException, InvalidTokenException, InvalidTrailNameException, KmsException, KmsKeyDisabledException, KmsKeyNotFoundException, MaxConcurrentQueriesException, MaximumNumberOfTrailsExceededException, NoManagementAccountSLRExistsException, NotOrganizationManagementAccountException, NotOrganizationMasterAccountException, OperationNotPermittedException, OrganizationNotInAllFeaturesModeException, OrganizationsNotInUseException, QueryIdNotFoundException, ResourceARNNotValidException, ResourceNotFoundException, ResourcePolicyNotFoundException, ResourcePolicyNotValidException, 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",
|
|
@@ -20,6 +20,15 @@ export const serializeAws_json1_1CancelQueryCommand = async (input, context) =>
|
|
|
20
20
|
body = JSON.stringify(serializeAws_json1_1CancelQueryRequest(input, context));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
|
+
export const serializeAws_json1_1CreateChannelCommand = async (input, context) => {
|
|
24
|
+
const headers = {
|
|
25
|
+
"content-type": "application/x-amz-json-1.1",
|
|
26
|
+
"x-amz-target": "CloudTrail_20131101.CreateChannel",
|
|
27
|
+
};
|
|
28
|
+
let body;
|
|
29
|
+
body = JSON.stringify(serializeAws_json1_1CreateChannelRequest(input, context));
|
|
30
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
|
+
};
|
|
23
32
|
export const serializeAws_json1_1CreateEventDataStoreCommand = async (input, context) => {
|
|
24
33
|
const headers = {
|
|
25
34
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -38,6 +47,15 @@ export const serializeAws_json1_1CreateTrailCommand = async (input, context) =>
|
|
|
38
47
|
body = JSON.stringify(serializeAws_json1_1CreateTrailRequest(input, context));
|
|
39
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
49
|
};
|
|
50
|
+
export const serializeAws_json1_1DeleteChannelCommand = async (input, context) => {
|
|
51
|
+
const headers = {
|
|
52
|
+
"content-type": "application/x-amz-json-1.1",
|
|
53
|
+
"x-amz-target": "CloudTrail_20131101.DeleteChannel",
|
|
54
|
+
};
|
|
55
|
+
let body;
|
|
56
|
+
body = JSON.stringify(serializeAws_json1_1DeleteChannelRequest(input, context));
|
|
57
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
+
};
|
|
41
59
|
export const serializeAws_json1_1DeleteEventDataStoreCommand = async (input, context) => {
|
|
42
60
|
const headers = {
|
|
43
61
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -47,6 +65,15 @@ export const serializeAws_json1_1DeleteEventDataStoreCommand = async (input, con
|
|
|
47
65
|
body = JSON.stringify(serializeAws_json1_1DeleteEventDataStoreRequest(input, context));
|
|
48
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
67
|
};
|
|
68
|
+
export const serializeAws_json1_1DeleteResourcePolicyCommand = async (input, context) => {
|
|
69
|
+
const headers = {
|
|
70
|
+
"content-type": "application/x-amz-json-1.1",
|
|
71
|
+
"x-amz-target": "CloudTrail_20131101.DeleteResourcePolicy",
|
|
72
|
+
};
|
|
73
|
+
let body;
|
|
74
|
+
body = JSON.stringify(serializeAws_json1_1DeleteResourcePolicyRequest(input, context));
|
|
75
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
+
};
|
|
50
77
|
export const serializeAws_json1_1DeleteTrailCommand = async (input, context) => {
|
|
51
78
|
const headers = {
|
|
52
79
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -137,6 +164,15 @@ export const serializeAws_json1_1GetQueryResultsCommand = async (input, context)
|
|
|
137
164
|
body = JSON.stringify(serializeAws_json1_1GetQueryResultsRequest(input, context));
|
|
138
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
166
|
};
|
|
167
|
+
export const serializeAws_json1_1GetResourcePolicyCommand = async (input, context) => {
|
|
168
|
+
const headers = {
|
|
169
|
+
"content-type": "application/x-amz-json-1.1",
|
|
170
|
+
"x-amz-target": "CloudTrail_20131101.GetResourcePolicy",
|
|
171
|
+
};
|
|
172
|
+
let body;
|
|
173
|
+
body = JSON.stringify(serializeAws_json1_1GetResourcePolicyRequest(input, context));
|
|
174
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
|
+
};
|
|
140
176
|
export const serializeAws_json1_1GetTrailCommand = async (input, context) => {
|
|
141
177
|
const headers = {
|
|
142
178
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -254,6 +290,15 @@ export const serializeAws_json1_1PutInsightSelectorsCommand = async (input, cont
|
|
|
254
290
|
body = JSON.stringify(serializeAws_json1_1PutInsightSelectorsRequest(input, context));
|
|
255
291
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
256
292
|
};
|
|
293
|
+
export const serializeAws_json1_1PutResourcePolicyCommand = async (input, context) => {
|
|
294
|
+
const headers = {
|
|
295
|
+
"content-type": "application/x-amz-json-1.1",
|
|
296
|
+
"x-amz-target": "CloudTrail_20131101.PutResourcePolicy",
|
|
297
|
+
};
|
|
298
|
+
let body;
|
|
299
|
+
body = JSON.stringify(serializeAws_json1_1PutResourcePolicyRequest(input, context));
|
|
300
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
301
|
+
};
|
|
257
302
|
export const serializeAws_json1_1RegisterOrganizationDelegatedAdminCommand = async (input, context) => {
|
|
258
303
|
const headers = {
|
|
259
304
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -326,6 +371,15 @@ export const serializeAws_json1_1StopLoggingCommand = async (input, context) =>
|
|
|
326
371
|
body = JSON.stringify(serializeAws_json1_1StopLoggingRequest(input, context));
|
|
327
372
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
328
373
|
};
|
|
374
|
+
export const serializeAws_json1_1UpdateChannelCommand = async (input, context) => {
|
|
375
|
+
const headers = {
|
|
376
|
+
"content-type": "application/x-amz-json-1.1",
|
|
377
|
+
"x-amz-target": "CloudTrail_20131101.UpdateChannel",
|
|
378
|
+
};
|
|
379
|
+
let body;
|
|
380
|
+
body = JSON.stringify(serializeAws_json1_1UpdateChannelRequest(input, context));
|
|
381
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
382
|
+
};
|
|
329
383
|
export const serializeAws_json1_1UpdateEventDataStoreCommand = async (input, context) => {
|
|
330
384
|
const headers = {
|
|
331
385
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -364,6 +418,9 @@ const deserializeAws_json1_1AddTagsCommandError = async (output, context) => {
|
|
|
364
418
|
};
|
|
365
419
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
366
420
|
switch (errorCode) {
|
|
421
|
+
case "ChannelNotFoundException":
|
|
422
|
+
case "com.amazonaws.cloudtrail#ChannelNotFoundException":
|
|
423
|
+
throw await deserializeAws_json1_1ChannelNotFoundExceptionResponse(parsedOutput, context);
|
|
367
424
|
case "CloudTrailARNInvalidException":
|
|
368
425
|
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
369
426
|
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
@@ -473,6 +530,72 @@ const deserializeAws_json1_1CancelQueryCommandError = async (output, context) =>
|
|
|
473
530
|
});
|
|
474
531
|
}
|
|
475
532
|
};
|
|
533
|
+
export const deserializeAws_json1_1CreateChannelCommand = async (output, context) => {
|
|
534
|
+
if (output.statusCode >= 300) {
|
|
535
|
+
return deserializeAws_json1_1CreateChannelCommandError(output, context);
|
|
536
|
+
}
|
|
537
|
+
const data = await parseBody(output.body, context);
|
|
538
|
+
let contents = {};
|
|
539
|
+
contents = deserializeAws_json1_1CreateChannelResponse(data, context);
|
|
540
|
+
const response = {
|
|
541
|
+
$metadata: deserializeMetadata(output),
|
|
542
|
+
...contents,
|
|
543
|
+
};
|
|
544
|
+
return Promise.resolve(response);
|
|
545
|
+
};
|
|
546
|
+
const deserializeAws_json1_1CreateChannelCommandError = async (output, context) => {
|
|
547
|
+
const parsedOutput = {
|
|
548
|
+
...output,
|
|
549
|
+
body: await parseErrorBody(output.body, context),
|
|
550
|
+
};
|
|
551
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
552
|
+
switch (errorCode) {
|
|
553
|
+
case "ChannelAlreadyExistsException":
|
|
554
|
+
case "com.amazonaws.cloudtrail#ChannelAlreadyExistsException":
|
|
555
|
+
throw await deserializeAws_json1_1ChannelAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
556
|
+
case "ChannelMaxLimitExceededException":
|
|
557
|
+
case "com.amazonaws.cloudtrail#ChannelMaxLimitExceededException":
|
|
558
|
+
throw await deserializeAws_json1_1ChannelMaxLimitExceededExceptionResponse(parsedOutput, context);
|
|
559
|
+
case "EventDataStoreARNInvalidException":
|
|
560
|
+
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
561
|
+
throw await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context);
|
|
562
|
+
case "EventDataStoreNotFoundException":
|
|
563
|
+
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
564
|
+
throw await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context);
|
|
565
|
+
case "InactiveEventDataStoreException":
|
|
566
|
+
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
567
|
+
throw await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context);
|
|
568
|
+
case "InvalidEventDataStoreCategoryException":
|
|
569
|
+
case "com.amazonaws.cloudtrail#InvalidEventDataStoreCategoryException":
|
|
570
|
+
throw await deserializeAws_json1_1InvalidEventDataStoreCategoryExceptionResponse(parsedOutput, context);
|
|
571
|
+
case "InvalidParameterException":
|
|
572
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
573
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
574
|
+
case "InvalidSourceException":
|
|
575
|
+
case "com.amazonaws.cloudtrail#InvalidSourceException":
|
|
576
|
+
throw await deserializeAws_json1_1InvalidSourceExceptionResponse(parsedOutput, context);
|
|
577
|
+
case "InvalidTagParameterException":
|
|
578
|
+
case "com.amazonaws.cloudtrail#InvalidTagParameterException":
|
|
579
|
+
throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context);
|
|
580
|
+
case "OperationNotPermittedException":
|
|
581
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
582
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
583
|
+
case "TagsLimitExceededException":
|
|
584
|
+
case "com.amazonaws.cloudtrail#TagsLimitExceededException":
|
|
585
|
+
throw await deserializeAws_json1_1TagsLimitExceededExceptionResponse(parsedOutput, context);
|
|
586
|
+
case "UnsupportedOperationException":
|
|
587
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
588
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
589
|
+
default:
|
|
590
|
+
const parsedBody = parsedOutput.body;
|
|
591
|
+
throwDefaultError({
|
|
592
|
+
output,
|
|
593
|
+
parsedBody,
|
|
594
|
+
exceptionCtor: __BaseException,
|
|
595
|
+
errorCode,
|
|
596
|
+
});
|
|
597
|
+
}
|
|
598
|
+
};
|
|
476
599
|
export const deserializeAws_json1_1CreateEventDataStoreCommand = async (output, context) => {
|
|
477
600
|
if (output.statusCode >= 300) {
|
|
478
601
|
return deserializeAws_json1_1CreateEventDataStoreCommandError(output, context);
|
|
@@ -680,6 +803,48 @@ const deserializeAws_json1_1CreateTrailCommandError = async (output, context) =>
|
|
|
680
803
|
});
|
|
681
804
|
}
|
|
682
805
|
};
|
|
806
|
+
export const deserializeAws_json1_1DeleteChannelCommand = async (output, context) => {
|
|
807
|
+
if (output.statusCode >= 300) {
|
|
808
|
+
return deserializeAws_json1_1DeleteChannelCommandError(output, context);
|
|
809
|
+
}
|
|
810
|
+
const data = await parseBody(output.body, context);
|
|
811
|
+
let contents = {};
|
|
812
|
+
contents = deserializeAws_json1_1DeleteChannelResponse(data, context);
|
|
813
|
+
const response = {
|
|
814
|
+
$metadata: deserializeMetadata(output),
|
|
815
|
+
...contents,
|
|
816
|
+
};
|
|
817
|
+
return Promise.resolve(response);
|
|
818
|
+
};
|
|
819
|
+
const deserializeAws_json1_1DeleteChannelCommandError = async (output, context) => {
|
|
820
|
+
const parsedOutput = {
|
|
821
|
+
...output,
|
|
822
|
+
body: await parseErrorBody(output.body, context),
|
|
823
|
+
};
|
|
824
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
825
|
+
switch (errorCode) {
|
|
826
|
+
case "ChannelARNInvalidException":
|
|
827
|
+
case "com.amazonaws.cloudtrail#ChannelARNInvalidException":
|
|
828
|
+
throw await deserializeAws_json1_1ChannelARNInvalidExceptionResponse(parsedOutput, context);
|
|
829
|
+
case "ChannelNotFoundException":
|
|
830
|
+
case "com.amazonaws.cloudtrail#ChannelNotFoundException":
|
|
831
|
+
throw await deserializeAws_json1_1ChannelNotFoundExceptionResponse(parsedOutput, context);
|
|
832
|
+
case "OperationNotPermittedException":
|
|
833
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
834
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
835
|
+
case "UnsupportedOperationException":
|
|
836
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
837
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
838
|
+
default:
|
|
839
|
+
const parsedBody = parsedOutput.body;
|
|
840
|
+
throwDefaultError({
|
|
841
|
+
output,
|
|
842
|
+
parsedBody,
|
|
843
|
+
exceptionCtor: __BaseException,
|
|
844
|
+
errorCode,
|
|
845
|
+
});
|
|
846
|
+
}
|
|
847
|
+
};
|
|
683
848
|
export const deserializeAws_json1_1DeleteEventDataStoreCommand = async (output, context) => {
|
|
684
849
|
if (output.statusCode >= 300) {
|
|
685
850
|
return deserializeAws_json1_1DeleteEventDataStoreCommandError(output, context);
|
|
@@ -700,6 +865,9 @@ const deserializeAws_json1_1DeleteEventDataStoreCommandError = async (output, co
|
|
|
700
865
|
};
|
|
701
866
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
702
867
|
switch (errorCode) {
|
|
868
|
+
case "ChannelExistsForEDSException":
|
|
869
|
+
case "com.amazonaws.cloudtrail#ChannelExistsForEDSException":
|
|
870
|
+
throw await deserializeAws_json1_1ChannelExistsForEDSExceptionResponse(parsedOutput, context);
|
|
703
871
|
case "EventDataStoreARNInvalidException":
|
|
704
872
|
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
705
873
|
throw await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context);
|
|
@@ -743,6 +911,54 @@ const deserializeAws_json1_1DeleteEventDataStoreCommandError = async (output, co
|
|
|
743
911
|
});
|
|
744
912
|
}
|
|
745
913
|
};
|
|
914
|
+
export const deserializeAws_json1_1DeleteResourcePolicyCommand = async (output, context) => {
|
|
915
|
+
if (output.statusCode >= 300) {
|
|
916
|
+
return deserializeAws_json1_1DeleteResourcePolicyCommandError(output, context);
|
|
917
|
+
}
|
|
918
|
+
const data = await parseBody(output.body, context);
|
|
919
|
+
let contents = {};
|
|
920
|
+
contents = deserializeAws_json1_1DeleteResourcePolicyResponse(data, context);
|
|
921
|
+
const response = {
|
|
922
|
+
$metadata: deserializeMetadata(output),
|
|
923
|
+
...contents,
|
|
924
|
+
};
|
|
925
|
+
return Promise.resolve(response);
|
|
926
|
+
};
|
|
927
|
+
const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, context) => {
|
|
928
|
+
const parsedOutput = {
|
|
929
|
+
...output,
|
|
930
|
+
body: await parseErrorBody(output.body, context),
|
|
931
|
+
};
|
|
932
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
933
|
+
switch (errorCode) {
|
|
934
|
+
case "OperationNotPermittedException":
|
|
935
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
936
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
937
|
+
case "ResourceARNNotValidException":
|
|
938
|
+
case "com.amazonaws.cloudtrail#ResourceARNNotValidException":
|
|
939
|
+
throw await deserializeAws_json1_1ResourceARNNotValidExceptionResponse(parsedOutput, context);
|
|
940
|
+
case "ResourceNotFoundException":
|
|
941
|
+
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
942
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
943
|
+
case "ResourcePolicyNotFoundException":
|
|
944
|
+
case "com.amazonaws.cloudtrail#ResourcePolicyNotFoundException":
|
|
945
|
+
throw await deserializeAws_json1_1ResourcePolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
946
|
+
case "ResourceTypeNotSupportedException":
|
|
947
|
+
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
948
|
+
throw await deserializeAws_json1_1ResourceTypeNotSupportedExceptionResponse(parsedOutput, context);
|
|
949
|
+
case "UnsupportedOperationException":
|
|
950
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
951
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
952
|
+
default:
|
|
953
|
+
const parsedBody = parsedOutput.body;
|
|
954
|
+
throwDefaultError({
|
|
955
|
+
output,
|
|
956
|
+
parsedBody,
|
|
957
|
+
exceptionCtor: __BaseException,
|
|
958
|
+
errorCode,
|
|
959
|
+
});
|
|
960
|
+
}
|
|
961
|
+
};
|
|
746
962
|
export const deserializeAws_json1_1DeleteTrailCommand = async (output, context) => {
|
|
747
963
|
if (output.statusCode >= 300) {
|
|
748
964
|
return deserializeAws_json1_1DeleteTrailCommandError(output, context);
|
|
@@ -832,6 +1048,9 @@ const deserializeAws_json1_1DeregisterOrganizationDelegatedAdminCommandError = a
|
|
|
832
1048
|
case "CloudTrailAccessNotEnabledException":
|
|
833
1049
|
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
834
1050
|
throw await deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
1051
|
+
case "ConflictException":
|
|
1052
|
+
case "com.amazonaws.cloudtrail#ConflictException":
|
|
1053
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
835
1054
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
836
1055
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
837
1056
|
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
@@ -1253,6 +1472,54 @@ const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context
|
|
|
1253
1472
|
});
|
|
1254
1473
|
}
|
|
1255
1474
|
};
|
|
1475
|
+
export const deserializeAws_json1_1GetResourcePolicyCommand = async (output, context) => {
|
|
1476
|
+
if (output.statusCode >= 300) {
|
|
1477
|
+
return deserializeAws_json1_1GetResourcePolicyCommandError(output, context);
|
|
1478
|
+
}
|
|
1479
|
+
const data = await parseBody(output.body, context);
|
|
1480
|
+
let contents = {};
|
|
1481
|
+
contents = deserializeAws_json1_1GetResourcePolicyResponse(data, context);
|
|
1482
|
+
const response = {
|
|
1483
|
+
$metadata: deserializeMetadata(output),
|
|
1484
|
+
...contents,
|
|
1485
|
+
};
|
|
1486
|
+
return Promise.resolve(response);
|
|
1487
|
+
};
|
|
1488
|
+
const deserializeAws_json1_1GetResourcePolicyCommandError = async (output, context) => {
|
|
1489
|
+
const parsedOutput = {
|
|
1490
|
+
...output,
|
|
1491
|
+
body: await parseErrorBody(output.body, context),
|
|
1492
|
+
};
|
|
1493
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1494
|
+
switch (errorCode) {
|
|
1495
|
+
case "OperationNotPermittedException":
|
|
1496
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1497
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
1498
|
+
case "ResourceARNNotValidException":
|
|
1499
|
+
case "com.amazonaws.cloudtrail#ResourceARNNotValidException":
|
|
1500
|
+
throw await deserializeAws_json1_1ResourceARNNotValidExceptionResponse(parsedOutput, context);
|
|
1501
|
+
case "ResourceNotFoundException":
|
|
1502
|
+
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
1503
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1504
|
+
case "ResourcePolicyNotFoundException":
|
|
1505
|
+
case "com.amazonaws.cloudtrail#ResourcePolicyNotFoundException":
|
|
1506
|
+
throw await deserializeAws_json1_1ResourcePolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
1507
|
+
case "ResourceTypeNotSupportedException":
|
|
1508
|
+
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
1509
|
+
throw await deserializeAws_json1_1ResourceTypeNotSupportedExceptionResponse(parsedOutput, context);
|
|
1510
|
+
case "UnsupportedOperationException":
|
|
1511
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1512
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1513
|
+
default:
|
|
1514
|
+
const parsedBody = parsedOutput.body;
|
|
1515
|
+
throwDefaultError({
|
|
1516
|
+
output,
|
|
1517
|
+
parsedBody,
|
|
1518
|
+
exceptionCtor: __BaseException,
|
|
1519
|
+
errorCode,
|
|
1520
|
+
});
|
|
1521
|
+
}
|
|
1522
|
+
};
|
|
1256
1523
|
export const deserializeAws_json1_1GetTrailCommand = async (output, context) => {
|
|
1257
1524
|
if (output.statusCode >= 300) {
|
|
1258
1525
|
return deserializeAws_json1_1GetTrailCommandError(output, context);
|
|
@@ -1892,6 +2159,54 @@ const deserializeAws_json1_1PutInsightSelectorsCommandError = async (output, con
|
|
|
1892
2159
|
});
|
|
1893
2160
|
}
|
|
1894
2161
|
};
|
|
2162
|
+
export const deserializeAws_json1_1PutResourcePolicyCommand = async (output, context) => {
|
|
2163
|
+
if (output.statusCode >= 300) {
|
|
2164
|
+
return deserializeAws_json1_1PutResourcePolicyCommandError(output, context);
|
|
2165
|
+
}
|
|
2166
|
+
const data = await parseBody(output.body, context);
|
|
2167
|
+
let contents = {};
|
|
2168
|
+
contents = deserializeAws_json1_1PutResourcePolicyResponse(data, context);
|
|
2169
|
+
const response = {
|
|
2170
|
+
$metadata: deserializeMetadata(output),
|
|
2171
|
+
...contents,
|
|
2172
|
+
};
|
|
2173
|
+
return Promise.resolve(response);
|
|
2174
|
+
};
|
|
2175
|
+
const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, context) => {
|
|
2176
|
+
const parsedOutput = {
|
|
2177
|
+
...output,
|
|
2178
|
+
body: await parseErrorBody(output.body, context),
|
|
2179
|
+
};
|
|
2180
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2181
|
+
switch (errorCode) {
|
|
2182
|
+
case "OperationNotPermittedException":
|
|
2183
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2184
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
2185
|
+
case "ResourceARNNotValidException":
|
|
2186
|
+
case "com.amazonaws.cloudtrail#ResourceARNNotValidException":
|
|
2187
|
+
throw await deserializeAws_json1_1ResourceARNNotValidExceptionResponse(parsedOutput, context);
|
|
2188
|
+
case "ResourceNotFoundException":
|
|
2189
|
+
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
2190
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2191
|
+
case "ResourcePolicyNotValidException":
|
|
2192
|
+
case "com.amazonaws.cloudtrail#ResourcePolicyNotValidException":
|
|
2193
|
+
throw await deserializeAws_json1_1ResourcePolicyNotValidExceptionResponse(parsedOutput, context);
|
|
2194
|
+
case "ResourceTypeNotSupportedException":
|
|
2195
|
+
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
2196
|
+
throw await deserializeAws_json1_1ResourceTypeNotSupportedExceptionResponse(parsedOutput, context);
|
|
2197
|
+
case "UnsupportedOperationException":
|
|
2198
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2199
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2200
|
+
default:
|
|
2201
|
+
const parsedBody = parsedOutput.body;
|
|
2202
|
+
throwDefaultError({
|
|
2203
|
+
output,
|
|
2204
|
+
parsedBody,
|
|
2205
|
+
exceptionCtor: __BaseException,
|
|
2206
|
+
errorCode,
|
|
2207
|
+
});
|
|
2208
|
+
}
|
|
2209
|
+
};
|
|
1895
2210
|
export const deserializeAws_json1_1RegisterOrganizationDelegatedAdminCommand = async (output, context) => {
|
|
1896
2211
|
if (output.statusCode >= 300) {
|
|
1897
2212
|
return deserializeAws_json1_1RegisterOrganizationDelegatedAdminCommandError(output, context);
|
|
@@ -1924,6 +2239,9 @@ const deserializeAws_json1_1RegisterOrganizationDelegatedAdminCommandError = asy
|
|
|
1924
2239
|
case "CloudTrailAccessNotEnabledException":
|
|
1925
2240
|
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
1926
2241
|
throw await deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
2242
|
+
case "ConflictException":
|
|
2243
|
+
case "com.amazonaws.cloudtrail#ConflictException":
|
|
2244
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1927
2245
|
case "DelegatedAdminAccountLimitExceededException":
|
|
1928
2246
|
case "com.amazonaws.cloudtrail#DelegatedAdminAccountLimitExceededException":
|
|
1929
2247
|
throw await deserializeAws_json1_1DelegatedAdminAccountLimitExceededExceptionResponse(parsedOutput, context);
|
|
@@ -1978,6 +2296,9 @@ const deserializeAws_json1_1RemoveTagsCommandError = async (output, context) =>
|
|
|
1978
2296
|
};
|
|
1979
2297
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1980
2298
|
switch (errorCode) {
|
|
2299
|
+
case "ChannelNotFoundException":
|
|
2300
|
+
case "com.amazonaws.cloudtrail#ChannelNotFoundException":
|
|
2301
|
+
throw await deserializeAws_json1_1ChannelNotFoundExceptionResponse(parsedOutput, context);
|
|
1981
2302
|
case "CloudTrailARNInvalidException":
|
|
1982
2303
|
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
1983
2304
|
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
@@ -2176,6 +2497,9 @@ const deserializeAws_json1_1StartLoggingCommandError = async (output, context) =
|
|
|
2176
2497
|
case "CloudTrailARNInvalidException":
|
|
2177
2498
|
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
2178
2499
|
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
2500
|
+
case "ConflictException":
|
|
2501
|
+
case "com.amazonaws.cloudtrail#ConflictException":
|
|
2502
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
2179
2503
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2180
2504
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2181
2505
|
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
@@ -2347,6 +2671,9 @@ const deserializeAws_json1_1StopLoggingCommandError = async (output, context) =>
|
|
|
2347
2671
|
case "CloudTrailARNInvalidException":
|
|
2348
2672
|
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
2349
2673
|
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
2674
|
+
case "ConflictException":
|
|
2675
|
+
case "com.amazonaws.cloudtrail#ConflictException":
|
|
2676
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
2350
2677
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2351
2678
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2352
2679
|
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
@@ -2381,6 +2708,66 @@ const deserializeAws_json1_1StopLoggingCommandError = async (output, context) =>
|
|
|
2381
2708
|
});
|
|
2382
2709
|
}
|
|
2383
2710
|
};
|
|
2711
|
+
export const deserializeAws_json1_1UpdateChannelCommand = async (output, context) => {
|
|
2712
|
+
if (output.statusCode >= 300) {
|
|
2713
|
+
return deserializeAws_json1_1UpdateChannelCommandError(output, context);
|
|
2714
|
+
}
|
|
2715
|
+
const data = await parseBody(output.body, context);
|
|
2716
|
+
let contents = {};
|
|
2717
|
+
contents = deserializeAws_json1_1UpdateChannelResponse(data, context);
|
|
2718
|
+
const response = {
|
|
2719
|
+
$metadata: deserializeMetadata(output),
|
|
2720
|
+
...contents,
|
|
2721
|
+
};
|
|
2722
|
+
return Promise.resolve(response);
|
|
2723
|
+
};
|
|
2724
|
+
const deserializeAws_json1_1UpdateChannelCommandError = async (output, context) => {
|
|
2725
|
+
const parsedOutput = {
|
|
2726
|
+
...output,
|
|
2727
|
+
body: await parseErrorBody(output.body, context),
|
|
2728
|
+
};
|
|
2729
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2730
|
+
switch (errorCode) {
|
|
2731
|
+
case "ChannelARNInvalidException":
|
|
2732
|
+
case "com.amazonaws.cloudtrail#ChannelARNInvalidException":
|
|
2733
|
+
throw await deserializeAws_json1_1ChannelARNInvalidExceptionResponse(parsedOutput, context);
|
|
2734
|
+
case "ChannelAlreadyExistsException":
|
|
2735
|
+
case "com.amazonaws.cloudtrail#ChannelAlreadyExistsException":
|
|
2736
|
+
throw await deserializeAws_json1_1ChannelAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
2737
|
+
case "ChannelNotFoundException":
|
|
2738
|
+
case "com.amazonaws.cloudtrail#ChannelNotFoundException":
|
|
2739
|
+
throw await deserializeAws_json1_1ChannelNotFoundExceptionResponse(parsedOutput, context);
|
|
2740
|
+
case "EventDataStoreARNInvalidException":
|
|
2741
|
+
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
2742
|
+
throw await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context);
|
|
2743
|
+
case "EventDataStoreNotFoundException":
|
|
2744
|
+
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
2745
|
+
throw await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context);
|
|
2746
|
+
case "InactiveEventDataStoreException":
|
|
2747
|
+
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
2748
|
+
throw await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context);
|
|
2749
|
+
case "InvalidEventDataStoreCategoryException":
|
|
2750
|
+
case "com.amazonaws.cloudtrail#InvalidEventDataStoreCategoryException":
|
|
2751
|
+
throw await deserializeAws_json1_1InvalidEventDataStoreCategoryExceptionResponse(parsedOutput, context);
|
|
2752
|
+
case "InvalidParameterException":
|
|
2753
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2754
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2755
|
+
case "OperationNotPermittedException":
|
|
2756
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2757
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
2758
|
+
case "UnsupportedOperationException":
|
|
2759
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2760
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2761
|
+
default:
|
|
2762
|
+
const parsedBody = parsedOutput.body;
|
|
2763
|
+
throwDefaultError({
|
|
2764
|
+
output,
|
|
2765
|
+
parsedBody,
|
|
2766
|
+
exceptionCtor: __BaseException,
|
|
2767
|
+
errorCode,
|
|
2768
|
+
});
|
|
2769
|
+
}
|
|
2770
|
+
};
|
|
2384
2771
|
export const deserializeAws_json1_1UpdateEventDataStoreCommand = async (output, context) => {
|
|
2385
2772
|
if (output.statusCode >= 300) {
|
|
2386
2773
|
return deserializeAws_json1_1UpdateEventDataStoreCommandError(output, context);
|
|
@@ -2497,6 +2884,9 @@ const deserializeAws_json1_1UpdateTrailCommandError = async (output, context) =>
|
|
|
2497
2884
|
case "CloudWatchLogsDeliveryUnavailableException":
|
|
2498
2885
|
case "com.amazonaws.cloudtrail#CloudWatchLogsDeliveryUnavailableException":
|
|
2499
2886
|
throw await deserializeAws_json1_1CloudWatchLogsDeliveryUnavailableExceptionResponse(parsedOutput, context);
|
|
2887
|
+
case "ConflictException":
|
|
2888
|
+
case "com.amazonaws.cloudtrail#ConflictException":
|
|
2889
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
2500
2890
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2501
2891
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2502
2892
|
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
@@ -2633,6 +3023,15 @@ const deserializeAws_json1_1CannotDelegateManagementAccountExceptionResponse = a
|
|
|
2633
3023
|
});
|
|
2634
3024
|
return __decorateServiceException(exception, body);
|
|
2635
3025
|
};
|
|
3026
|
+
const deserializeAws_json1_1ChannelAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
3027
|
+
const body = parsedOutput.body;
|
|
3028
|
+
const deserialized = deserializeAws_json1_1ChannelAlreadyExistsException(body, context);
|
|
3029
|
+
const exception = new ChannelAlreadyExistsException({
|
|
3030
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3031
|
+
...deserialized,
|
|
3032
|
+
});
|
|
3033
|
+
return __decorateServiceException(exception, body);
|
|
3034
|
+
};
|
|
2636
3035
|
const deserializeAws_json1_1ChannelARNInvalidExceptionResponse = async (parsedOutput, context) => {
|
|
2637
3036
|
const body = parsedOutput.body;
|
|
2638
3037
|
const deserialized = deserializeAws_json1_1ChannelARNInvalidException(body, context);
|
|
@@ -2642,6 +3041,24 @@ const deserializeAws_json1_1ChannelARNInvalidExceptionResponse = async (parsedOu
|
|
|
2642
3041
|
});
|
|
2643
3042
|
return __decorateServiceException(exception, body);
|
|
2644
3043
|
};
|
|
3044
|
+
const deserializeAws_json1_1ChannelExistsForEDSExceptionResponse = async (parsedOutput, context) => {
|
|
3045
|
+
const body = parsedOutput.body;
|
|
3046
|
+
const deserialized = deserializeAws_json1_1ChannelExistsForEDSException(body, context);
|
|
3047
|
+
const exception = new ChannelExistsForEDSException({
|
|
3048
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3049
|
+
...deserialized,
|
|
3050
|
+
});
|
|
3051
|
+
return __decorateServiceException(exception, body);
|
|
3052
|
+
};
|
|
3053
|
+
const deserializeAws_json1_1ChannelMaxLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3054
|
+
const body = parsedOutput.body;
|
|
3055
|
+
const deserialized = deserializeAws_json1_1ChannelMaxLimitExceededException(body, context);
|
|
3056
|
+
const exception = new ChannelMaxLimitExceededException({
|
|
3057
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3058
|
+
...deserialized,
|
|
3059
|
+
});
|
|
3060
|
+
return __decorateServiceException(exception, body);
|
|
3061
|
+
};
|
|
2645
3062
|
const deserializeAws_json1_1ChannelNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2646
3063
|
const body = parsedOutput.body;
|
|
2647
3064
|
const deserialized = deserializeAws_json1_1ChannelNotFoundException(body, context);
|
|
@@ -3020,6 +3437,15 @@ const deserializeAws_json1_1InvalidSnsTopicNameExceptionResponse = async (parsed
|
|
|
3020
3437
|
});
|
|
3021
3438
|
return __decorateServiceException(exception, body);
|
|
3022
3439
|
};
|
|
3440
|
+
const deserializeAws_json1_1InvalidSourceExceptionResponse = async (parsedOutput, context) => {
|
|
3441
|
+
const body = parsedOutput.body;
|
|
3442
|
+
const deserialized = deserializeAws_json1_1InvalidSourceException(body, context);
|
|
3443
|
+
const exception = new InvalidSourceException({
|
|
3444
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3445
|
+
...deserialized,
|
|
3446
|
+
});
|
|
3447
|
+
return __decorateServiceException(exception, body);
|
|
3448
|
+
};
|
|
3023
3449
|
const deserializeAws_json1_1InvalidTagParameterExceptionResponse = async (parsedOutput, context) => {
|
|
3024
3450
|
const body = parsedOutput.body;
|
|
3025
3451
|
const deserialized = deserializeAws_json1_1InvalidTagParameterException(body, context);
|
|
@@ -3164,6 +3590,15 @@ const deserializeAws_json1_1QueryIdNotFoundExceptionResponse = async (parsedOutp
|
|
|
3164
3590
|
});
|
|
3165
3591
|
return __decorateServiceException(exception, body);
|
|
3166
3592
|
};
|
|
3593
|
+
const deserializeAws_json1_1ResourceARNNotValidExceptionResponse = async (parsedOutput, context) => {
|
|
3594
|
+
const body = parsedOutput.body;
|
|
3595
|
+
const deserialized = deserializeAws_json1_1ResourceARNNotValidException(body, context);
|
|
3596
|
+
const exception = new ResourceARNNotValidException({
|
|
3597
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3598
|
+
...deserialized,
|
|
3599
|
+
});
|
|
3600
|
+
return __decorateServiceException(exception, body);
|
|
3601
|
+
};
|
|
3167
3602
|
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3168
3603
|
const body = parsedOutput.body;
|
|
3169
3604
|
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
@@ -3173,6 +3608,24 @@ const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOut
|
|
|
3173
3608
|
});
|
|
3174
3609
|
return __decorateServiceException(exception, body);
|
|
3175
3610
|
};
|
|
3611
|
+
const deserializeAws_json1_1ResourcePolicyNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3612
|
+
const body = parsedOutput.body;
|
|
3613
|
+
const deserialized = deserializeAws_json1_1ResourcePolicyNotFoundException(body, context);
|
|
3614
|
+
const exception = new ResourcePolicyNotFoundException({
|
|
3615
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3616
|
+
...deserialized,
|
|
3617
|
+
});
|
|
3618
|
+
return __decorateServiceException(exception, body);
|
|
3619
|
+
};
|
|
3620
|
+
const deserializeAws_json1_1ResourcePolicyNotValidExceptionResponse = async (parsedOutput, context) => {
|
|
3621
|
+
const body = parsedOutput.body;
|
|
3622
|
+
const deserialized = deserializeAws_json1_1ResourcePolicyNotValidException(body, context);
|
|
3623
|
+
const exception = new ResourcePolicyNotValidException({
|
|
3624
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3625
|
+
...deserialized,
|
|
3626
|
+
});
|
|
3627
|
+
return __decorateServiceException(exception, body);
|
|
3628
|
+
};
|
|
3176
3629
|
const deserializeAws_json1_1ResourceTypeNotSupportedExceptionResponse = async (parsedOutput, context) => {
|
|
3177
3630
|
const body = parsedOutput.body;
|
|
3178
3631
|
const deserialized = deserializeAws_json1_1ResourceTypeNotSupportedException(body, context);
|
|
@@ -3281,6 +3734,14 @@ const serializeAws_json1_1CancelQueryRequest = (input, context) => {
|
|
|
3281
3734
|
...(input.QueryId != null && { QueryId: input.QueryId }),
|
|
3282
3735
|
};
|
|
3283
3736
|
};
|
|
3737
|
+
const serializeAws_json1_1CreateChannelRequest = (input, context) => {
|
|
3738
|
+
return {
|
|
3739
|
+
...(input.Destinations != null && { Destinations: serializeAws_json1_1Destinations(input.Destinations, context) }),
|
|
3740
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3741
|
+
...(input.Source != null && { Source: input.Source }),
|
|
3742
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagsList(input.Tags, context) }),
|
|
3743
|
+
};
|
|
3744
|
+
};
|
|
3284
3745
|
const serializeAws_json1_1CreateEventDataStoreRequest = (input, context) => {
|
|
3285
3746
|
return {
|
|
3286
3747
|
...(input.AdvancedEventSelectors != null && {
|
|
@@ -3333,11 +3794,21 @@ const serializeAws_json1_1DataResourceValues = (input, context) => {
|
|
|
3333
3794
|
return entry;
|
|
3334
3795
|
});
|
|
3335
3796
|
};
|
|
3797
|
+
const serializeAws_json1_1DeleteChannelRequest = (input, context) => {
|
|
3798
|
+
return {
|
|
3799
|
+
...(input.Channel != null && { Channel: input.Channel }),
|
|
3800
|
+
};
|
|
3801
|
+
};
|
|
3336
3802
|
const serializeAws_json1_1DeleteEventDataStoreRequest = (input, context) => {
|
|
3337
3803
|
return {
|
|
3338
3804
|
...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
|
|
3339
3805
|
};
|
|
3340
3806
|
};
|
|
3807
|
+
const serializeAws_json1_1DeleteResourcePolicyRequest = (input, context) => {
|
|
3808
|
+
return {
|
|
3809
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
3810
|
+
};
|
|
3811
|
+
};
|
|
3341
3812
|
const serializeAws_json1_1DeleteTrailRequest = (input, context) => {
|
|
3342
3813
|
return {
|
|
3343
3814
|
...(input.Name != null && { Name: input.Name }),
|
|
@@ -3362,6 +3833,19 @@ const serializeAws_json1_1DescribeTrailsRequest = (input, context) => {
|
|
|
3362
3833
|
}),
|
|
3363
3834
|
};
|
|
3364
3835
|
};
|
|
3836
|
+
const serializeAws_json1_1Destination = (input, context) => {
|
|
3837
|
+
return {
|
|
3838
|
+
...(input.Location != null && { Location: input.Location }),
|
|
3839
|
+
...(input.Type != null && { Type: input.Type }),
|
|
3840
|
+
};
|
|
3841
|
+
};
|
|
3842
|
+
const serializeAws_json1_1Destinations = (input, context) => {
|
|
3843
|
+
return input
|
|
3844
|
+
.filter((e) => e != null)
|
|
3845
|
+
.map((entry) => {
|
|
3846
|
+
return serializeAws_json1_1Destination(entry, context);
|
|
3847
|
+
});
|
|
3848
|
+
};
|
|
3365
3849
|
const serializeAws_json1_1EventSelector = (input, context) => {
|
|
3366
3850
|
return {
|
|
3367
3851
|
...(input.DataResources != null && {
|
|
@@ -3421,6 +3905,11 @@ const serializeAws_json1_1GetQueryResultsRequest = (input, context) => {
|
|
|
3421
3905
|
...(input.QueryId != null && { QueryId: input.QueryId }),
|
|
3422
3906
|
};
|
|
3423
3907
|
};
|
|
3908
|
+
const serializeAws_json1_1GetResourcePolicyRequest = (input, context) => {
|
|
3909
|
+
return {
|
|
3910
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
3911
|
+
};
|
|
3912
|
+
};
|
|
3424
3913
|
const serializeAws_json1_1GetTrailRequest = (input, context) => {
|
|
3425
3914
|
return {
|
|
3426
3915
|
...(input.Name != null && { Name: input.Name }),
|
|
@@ -3563,6 +4052,12 @@ const serializeAws_json1_1PutInsightSelectorsRequest = (input, context) => {
|
|
|
3563
4052
|
...(input.TrailName != null && { TrailName: input.TrailName }),
|
|
3564
4053
|
};
|
|
3565
4054
|
};
|
|
4055
|
+
const serializeAws_json1_1PutResourcePolicyRequest = (input, context) => {
|
|
4056
|
+
return {
|
|
4057
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4058
|
+
...(input.ResourcePolicy != null && { ResourcePolicy: input.ResourcePolicy }),
|
|
4059
|
+
};
|
|
4060
|
+
};
|
|
3566
4061
|
const serializeAws_json1_1RegisterOrganizationDelegatedAdminRequest = (input, context) => {
|
|
3567
4062
|
return {
|
|
3568
4063
|
...(input.MemberAccountId != null && { MemberAccountId: input.MemberAccountId }),
|
|
@@ -3645,6 +4140,13 @@ const serializeAws_json1_1TrailNameList = (input, context) => {
|
|
|
3645
4140
|
return entry;
|
|
3646
4141
|
});
|
|
3647
4142
|
};
|
|
4143
|
+
const serializeAws_json1_1UpdateChannelRequest = (input, context) => {
|
|
4144
|
+
return {
|
|
4145
|
+
...(input.Channel != null && { Channel: input.Channel }),
|
|
4146
|
+
...(input.Destinations != null && { Destinations: serializeAws_json1_1Destinations(input.Destinations, context) }),
|
|
4147
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4148
|
+
};
|
|
4149
|
+
};
|
|
3648
4150
|
const serializeAws_json1_1UpdateEventDataStoreRequest = (input, context) => {
|
|
3649
4151
|
return {
|
|
3650
4152
|
...(input.AdvancedEventSelectors != null && {
|
|
@@ -3757,11 +4259,26 @@ const deserializeAws_json1_1Channel = (output, context) => {
|
|
|
3757
4259
|
Name: __expectString(output.Name),
|
|
3758
4260
|
};
|
|
3759
4261
|
};
|
|
4262
|
+
const deserializeAws_json1_1ChannelAlreadyExistsException = (output, context) => {
|
|
4263
|
+
return {
|
|
4264
|
+
Message: __expectString(output.Message),
|
|
4265
|
+
};
|
|
4266
|
+
};
|
|
3760
4267
|
const deserializeAws_json1_1ChannelARNInvalidException = (output, context) => {
|
|
3761
4268
|
return {
|
|
3762
4269
|
Message: __expectString(output.Message),
|
|
3763
4270
|
};
|
|
3764
4271
|
};
|
|
4272
|
+
const deserializeAws_json1_1ChannelExistsForEDSException = (output, context) => {
|
|
4273
|
+
return {
|
|
4274
|
+
Message: __expectString(output.Message),
|
|
4275
|
+
};
|
|
4276
|
+
};
|
|
4277
|
+
const deserializeAws_json1_1ChannelMaxLimitExceededException = (output, context) => {
|
|
4278
|
+
return {
|
|
4279
|
+
Message: __expectString(output.Message),
|
|
4280
|
+
};
|
|
4281
|
+
};
|
|
3765
4282
|
const deserializeAws_json1_1ChannelNotFoundException = (output, context) => {
|
|
3766
4283
|
return {
|
|
3767
4284
|
Message: __expectString(output.Message),
|
|
@@ -3803,6 +4320,15 @@ const deserializeAws_json1_1ConflictException = (output, context) => {
|
|
|
3803
4320
|
Message: __expectString(output.Message),
|
|
3804
4321
|
};
|
|
3805
4322
|
};
|
|
4323
|
+
const deserializeAws_json1_1CreateChannelResponse = (output, context) => {
|
|
4324
|
+
return {
|
|
4325
|
+
ChannelArn: __expectString(output.ChannelArn),
|
|
4326
|
+
Destinations: output.Destinations != null ? deserializeAws_json1_1Destinations(output.Destinations, context) : undefined,
|
|
4327
|
+
Name: __expectString(output.Name),
|
|
4328
|
+
Source: __expectString(output.Source),
|
|
4329
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagsList(output.Tags, context) : undefined,
|
|
4330
|
+
};
|
|
4331
|
+
};
|
|
3806
4332
|
const deserializeAws_json1_1CreateEventDataStoreResponse = (output, context) => {
|
|
3807
4333
|
return {
|
|
3808
4334
|
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|
|
@@ -3875,9 +4401,15 @@ const deserializeAws_json1_1DelegatedAdminAccountLimitExceededException = (outpu
|
|
|
3875
4401
|
Message: __expectString(output.Message),
|
|
3876
4402
|
};
|
|
3877
4403
|
};
|
|
4404
|
+
const deserializeAws_json1_1DeleteChannelResponse = (output, context) => {
|
|
4405
|
+
return {};
|
|
4406
|
+
};
|
|
3878
4407
|
const deserializeAws_json1_1DeleteEventDataStoreResponse = (output, context) => {
|
|
3879
4408
|
return {};
|
|
3880
4409
|
};
|
|
4410
|
+
const deserializeAws_json1_1DeleteResourcePolicyResponse = (output, context) => {
|
|
4411
|
+
return {};
|
|
4412
|
+
};
|
|
3881
4413
|
const deserializeAws_json1_1DeleteTrailResponse = (output, context) => {
|
|
3882
4414
|
return {};
|
|
3883
4415
|
};
|
|
@@ -4040,6 +4572,9 @@ const deserializeAws_json1_1GetChannelResponse = (output, context) => {
|
|
|
4040
4572
|
return {
|
|
4041
4573
|
ChannelArn: __expectString(output.ChannelArn),
|
|
4042
4574
|
Destinations: output.Destinations != null ? deserializeAws_json1_1Destinations(output.Destinations, context) : undefined,
|
|
4575
|
+
IngestionStatus: output.IngestionStatus != null
|
|
4576
|
+
? deserializeAws_json1_1IngestionStatus(output.IngestionStatus, context)
|
|
4577
|
+
: undefined,
|
|
4043
4578
|
Name: __expectString(output.Name),
|
|
4044
4579
|
Source: __expectString(output.Source),
|
|
4045
4580
|
SourceConfig: output.SourceConfig != null ? deserializeAws_json1_1SourceConfig(output.SourceConfig, context) : undefined,
|
|
@@ -4119,6 +4654,12 @@ const deserializeAws_json1_1GetQueryResultsResponse = (output, context) => {
|
|
|
4119
4654
|
QueryStatus: __expectString(output.QueryStatus),
|
|
4120
4655
|
};
|
|
4121
4656
|
};
|
|
4657
|
+
const deserializeAws_json1_1GetResourcePolicyResponse = (output, context) => {
|
|
4658
|
+
return {
|
|
4659
|
+
ResourceArn: __expectString(output.ResourceArn),
|
|
4660
|
+
ResourcePolicy: __expectString(output.ResourcePolicy),
|
|
4661
|
+
};
|
|
4662
|
+
};
|
|
4122
4663
|
const deserializeAws_json1_1GetTrailResponse = (output, context) => {
|
|
4123
4664
|
return {
|
|
4124
4665
|
Trail: output.Trail != null ? deserializeAws_json1_1Trail(output.Trail, context) : undefined,
|
|
@@ -4243,6 +4784,19 @@ const deserializeAws_json1_1InactiveQueryException = (output, context) => {
|
|
|
4243
4784
|
Message: __expectString(output.Message),
|
|
4244
4785
|
};
|
|
4245
4786
|
};
|
|
4787
|
+
const deserializeAws_json1_1IngestionStatus = (output, context) => {
|
|
4788
|
+
return {
|
|
4789
|
+
LatestIngestionAttemptEventID: __expectString(output.LatestIngestionAttemptEventID),
|
|
4790
|
+
LatestIngestionAttemptTime: output.LatestIngestionAttemptTime != null
|
|
4791
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LatestIngestionAttemptTime)))
|
|
4792
|
+
: undefined,
|
|
4793
|
+
LatestIngestionErrorCode: __expectString(output.LatestIngestionErrorCode),
|
|
4794
|
+
LatestIngestionSuccessEventID: __expectString(output.LatestIngestionSuccessEventID),
|
|
4795
|
+
LatestIngestionSuccessTime: output.LatestIngestionSuccessTime != null
|
|
4796
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LatestIngestionSuccessTime)))
|
|
4797
|
+
: undefined,
|
|
4798
|
+
};
|
|
4799
|
+
};
|
|
4246
4800
|
const deserializeAws_json1_1InsightNotEnabledException = (output, context) => {
|
|
4247
4801
|
return {
|
|
4248
4802
|
Message: __expectString(output.Message),
|
|
@@ -4389,6 +4943,11 @@ const deserializeAws_json1_1InvalidSnsTopicNameException = (output, context) =>
|
|
|
4389
4943
|
Message: __expectString(output.Message),
|
|
4390
4944
|
};
|
|
4391
4945
|
};
|
|
4946
|
+
const deserializeAws_json1_1InvalidSourceException = (output, context) => {
|
|
4947
|
+
return {
|
|
4948
|
+
Message: __expectString(output.Message),
|
|
4949
|
+
};
|
|
4950
|
+
};
|
|
4392
4951
|
const deserializeAws_json1_1InvalidTagParameterException = (output, context) => {
|
|
4393
4952
|
return {
|
|
4394
4953
|
Message: __expectString(output.Message),
|
|
@@ -4573,6 +5132,12 @@ const deserializeAws_json1_1PutInsightSelectorsResponse = (output, context) => {
|
|
|
4573
5132
|
TrailARN: __expectString(output.TrailARN),
|
|
4574
5133
|
};
|
|
4575
5134
|
};
|
|
5135
|
+
const deserializeAws_json1_1PutResourcePolicyResponse = (output, context) => {
|
|
5136
|
+
return {
|
|
5137
|
+
ResourceArn: __expectString(output.ResourceArn),
|
|
5138
|
+
ResourcePolicy: __expectString(output.ResourcePolicy),
|
|
5139
|
+
};
|
|
5140
|
+
};
|
|
4576
5141
|
const deserializeAws_json1_1Queries = (output, context) => {
|
|
4577
5142
|
const retVal = (output || [])
|
|
4578
5143
|
.filter((e) => e != null)
|
|
@@ -4659,6 +5224,11 @@ const deserializeAws_json1_1Resource = (output, context) => {
|
|
|
4659
5224
|
ResourceType: __expectString(output.ResourceType),
|
|
4660
5225
|
};
|
|
4661
5226
|
};
|
|
5227
|
+
const deserializeAws_json1_1ResourceARNNotValidException = (output, context) => {
|
|
5228
|
+
return {
|
|
5229
|
+
Message: __expectString(output.Message),
|
|
5230
|
+
};
|
|
5231
|
+
};
|
|
4662
5232
|
const deserializeAws_json1_1ResourceList = (output, context) => {
|
|
4663
5233
|
const retVal = (output || [])
|
|
4664
5234
|
.filter((e) => e != null)
|
|
@@ -4675,6 +5245,16 @@ const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
|
4675
5245
|
Message: __expectString(output.Message),
|
|
4676
5246
|
};
|
|
4677
5247
|
};
|
|
5248
|
+
const deserializeAws_json1_1ResourcePolicyNotFoundException = (output, context) => {
|
|
5249
|
+
return {
|
|
5250
|
+
Message: __expectString(output.Message),
|
|
5251
|
+
};
|
|
5252
|
+
};
|
|
5253
|
+
const deserializeAws_json1_1ResourcePolicyNotValidException = (output, context) => {
|
|
5254
|
+
return {
|
|
5255
|
+
Message: __expectString(output.Message),
|
|
5256
|
+
};
|
|
5257
|
+
};
|
|
4678
5258
|
const deserializeAws_json1_1ResourceTag = (output, context) => {
|
|
4679
5259
|
return {
|
|
4680
5260
|
ResourceId: __expectString(output.ResourceId),
|
|
@@ -4883,6 +5463,14 @@ const deserializeAws_json1_1UnsupportedOperationException = (output, context) =>
|
|
|
4883
5463
|
Message: __expectString(output.Message),
|
|
4884
5464
|
};
|
|
4885
5465
|
};
|
|
5466
|
+
const deserializeAws_json1_1UpdateChannelResponse = (output, context) => {
|
|
5467
|
+
return {
|
|
5468
|
+
ChannelArn: __expectString(output.ChannelArn),
|
|
5469
|
+
Destinations: output.Destinations != null ? deserializeAws_json1_1Destinations(output.Destinations, context) : undefined,
|
|
5470
|
+
Name: __expectString(output.Name),
|
|
5471
|
+
Source: __expectString(output.Source),
|
|
5472
|
+
};
|
|
5473
|
+
};
|
|
4886
5474
|
const deserializeAws_json1_1UpdateEventDataStoreResponse = (output, context) => {
|
|
4887
5475
|
return {
|
|
4888
5476
|
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|