@aws-sdk/client-cloudtrail 3.261.0 → 3.264.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 +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_json1_1UpdateTrailCommand = exports.deserializeAws_json1_1UpdateEventDataStoreCommand = exports.deserializeAws_json1_1StopLoggingCommand = exports.deserializeAws_json1_1StopImportCommand = exports.deserializeAws_json1_1StartQueryCommand = exports.deserializeAws_json1_1StartLoggingCommand = exports.deserializeAws_json1_1StartImportCommand = exports.deserializeAws_json1_1RestoreEventDataStoreCommand = exports.deserializeAws_json1_1RemoveTagsCommand = exports.deserializeAws_json1_1RegisterOrganizationDelegatedAdminCommand = exports.deserializeAws_json1_1PutInsightSelectorsCommand = exports.deserializeAws_json1_1PutEventSelectorsCommand = exports.deserializeAws_json1_1LookupEventsCommand = exports.deserializeAws_json1_1ListTrailsCommand = exports.deserializeAws_json1_1ListTagsCommand = exports.deserializeAws_json1_1ListQueriesCommand = exports.deserializeAws_json1_1ListPublicKeysCommand = exports.deserializeAws_json1_1ListImportsCommand = exports.deserializeAws_json1_1ListImportFailuresCommand = exports.deserializeAws_json1_1ListEventDataStoresCommand = exports.deserializeAws_json1_1ListChannelsCommand = exports.deserializeAws_json1_1GetTrailStatusCommand = exports.deserializeAws_json1_1GetTrailCommand = exports.deserializeAws_json1_1GetQueryResultsCommand = exports.deserializeAws_json1_1GetInsightSelectorsCommand = exports.deserializeAws_json1_1GetImportCommand = void 0;
|
|
3
|
+
exports.deserializeAws_json1_1DeleteChannelCommand = exports.deserializeAws_json1_1CreateTrailCommand = exports.deserializeAws_json1_1CreateEventDataStoreCommand = exports.deserializeAws_json1_1CreateChannelCommand = exports.deserializeAws_json1_1CancelQueryCommand = exports.deserializeAws_json1_1AddTagsCommand = exports.serializeAws_json1_1UpdateTrailCommand = exports.serializeAws_json1_1UpdateEventDataStoreCommand = exports.serializeAws_json1_1UpdateChannelCommand = exports.serializeAws_json1_1StopLoggingCommand = exports.serializeAws_json1_1StopImportCommand = exports.serializeAws_json1_1StartQueryCommand = exports.serializeAws_json1_1StartLoggingCommand = exports.serializeAws_json1_1StartImportCommand = exports.serializeAws_json1_1RestoreEventDataStoreCommand = exports.serializeAws_json1_1RemoveTagsCommand = exports.serializeAws_json1_1RegisterOrganizationDelegatedAdminCommand = exports.serializeAws_json1_1PutResourcePolicyCommand = exports.serializeAws_json1_1PutInsightSelectorsCommand = exports.serializeAws_json1_1PutEventSelectorsCommand = exports.serializeAws_json1_1LookupEventsCommand = exports.serializeAws_json1_1ListTrailsCommand = exports.serializeAws_json1_1ListTagsCommand = exports.serializeAws_json1_1ListQueriesCommand = exports.serializeAws_json1_1ListPublicKeysCommand = exports.serializeAws_json1_1ListImportsCommand = exports.serializeAws_json1_1ListImportFailuresCommand = exports.serializeAws_json1_1ListEventDataStoresCommand = exports.serializeAws_json1_1ListChannelsCommand = exports.serializeAws_json1_1GetTrailStatusCommand = exports.serializeAws_json1_1GetTrailCommand = exports.serializeAws_json1_1GetResourcePolicyCommand = exports.serializeAws_json1_1GetQueryResultsCommand = exports.serializeAws_json1_1GetInsightSelectorsCommand = exports.serializeAws_json1_1GetImportCommand = exports.serializeAws_json1_1GetEventSelectorsCommand = exports.serializeAws_json1_1GetEventDataStoreCommand = exports.serializeAws_json1_1GetChannelCommand = exports.serializeAws_json1_1DescribeTrailsCommand = exports.serializeAws_json1_1DescribeQueryCommand = exports.serializeAws_json1_1DeregisterOrganizationDelegatedAdminCommand = exports.serializeAws_json1_1DeleteTrailCommand = exports.serializeAws_json1_1DeleteResourcePolicyCommand = exports.serializeAws_json1_1DeleteEventDataStoreCommand = exports.serializeAws_json1_1DeleteChannelCommand = exports.serializeAws_json1_1CreateTrailCommand = exports.serializeAws_json1_1CreateEventDataStoreCommand = exports.serializeAws_json1_1CreateChannelCommand = exports.serializeAws_json1_1CancelQueryCommand = exports.serializeAws_json1_1AddTagsCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1UpdateTrailCommand = exports.deserializeAws_json1_1UpdateEventDataStoreCommand = exports.deserializeAws_json1_1UpdateChannelCommand = exports.deserializeAws_json1_1StopLoggingCommand = exports.deserializeAws_json1_1StopImportCommand = exports.deserializeAws_json1_1StartQueryCommand = exports.deserializeAws_json1_1StartLoggingCommand = exports.deserializeAws_json1_1StartImportCommand = exports.deserializeAws_json1_1RestoreEventDataStoreCommand = exports.deserializeAws_json1_1RemoveTagsCommand = exports.deserializeAws_json1_1RegisterOrganizationDelegatedAdminCommand = exports.deserializeAws_json1_1PutResourcePolicyCommand = exports.deserializeAws_json1_1PutInsightSelectorsCommand = exports.deserializeAws_json1_1PutEventSelectorsCommand = exports.deserializeAws_json1_1LookupEventsCommand = exports.deserializeAws_json1_1ListTrailsCommand = exports.deserializeAws_json1_1ListTagsCommand = exports.deserializeAws_json1_1ListQueriesCommand = exports.deserializeAws_json1_1ListPublicKeysCommand = exports.deserializeAws_json1_1ListImportsCommand = exports.deserializeAws_json1_1ListImportFailuresCommand = exports.deserializeAws_json1_1ListEventDataStoresCommand = exports.deserializeAws_json1_1ListChannelsCommand = exports.deserializeAws_json1_1GetTrailStatusCommand = exports.deserializeAws_json1_1GetTrailCommand = exports.deserializeAws_json1_1GetResourcePolicyCommand = exports.deserializeAws_json1_1GetQueryResultsCommand = exports.deserializeAws_json1_1GetInsightSelectorsCommand = exports.deserializeAws_json1_1GetImportCommand = exports.deserializeAws_json1_1GetEventSelectorsCommand = exports.deserializeAws_json1_1GetEventDataStoreCommand = exports.deserializeAws_json1_1GetChannelCommand = exports.deserializeAws_json1_1DescribeTrailsCommand = exports.deserializeAws_json1_1DescribeQueryCommand = exports.deserializeAws_json1_1DeregisterOrganizationDelegatedAdminCommand = exports.deserializeAws_json1_1DeleteTrailCommand = exports.deserializeAws_json1_1DeleteResourcePolicyCommand = exports.deserializeAws_json1_1DeleteEventDataStoreCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const CloudTrailServiceException_1 = require("../models/CloudTrailServiceException");
|
|
@@ -26,6 +26,16 @@ const serializeAws_json1_1CancelQueryCommand = async (input, context) => {
|
|
|
26
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
27
|
};
|
|
28
28
|
exports.serializeAws_json1_1CancelQueryCommand = serializeAws_json1_1CancelQueryCommand;
|
|
29
|
+
const serializeAws_json1_1CreateChannelCommand = async (input, context) => {
|
|
30
|
+
const headers = {
|
|
31
|
+
"content-type": "application/x-amz-json-1.1",
|
|
32
|
+
"x-amz-target": "CloudTrail_20131101.CreateChannel",
|
|
33
|
+
};
|
|
34
|
+
let body;
|
|
35
|
+
body = JSON.stringify(serializeAws_json1_1CreateChannelRequest(input, context));
|
|
36
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
|
+
};
|
|
38
|
+
exports.serializeAws_json1_1CreateChannelCommand = serializeAws_json1_1CreateChannelCommand;
|
|
29
39
|
const serializeAws_json1_1CreateEventDataStoreCommand = async (input, context) => {
|
|
30
40
|
const headers = {
|
|
31
41
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -46,6 +56,16 @@ const serializeAws_json1_1CreateTrailCommand = async (input, context) => {
|
|
|
46
56
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
57
|
};
|
|
48
58
|
exports.serializeAws_json1_1CreateTrailCommand = serializeAws_json1_1CreateTrailCommand;
|
|
59
|
+
const serializeAws_json1_1DeleteChannelCommand = async (input, context) => {
|
|
60
|
+
const headers = {
|
|
61
|
+
"content-type": "application/x-amz-json-1.1",
|
|
62
|
+
"x-amz-target": "CloudTrail_20131101.DeleteChannel",
|
|
63
|
+
};
|
|
64
|
+
let body;
|
|
65
|
+
body = JSON.stringify(serializeAws_json1_1DeleteChannelRequest(input, context));
|
|
66
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
|
+
};
|
|
68
|
+
exports.serializeAws_json1_1DeleteChannelCommand = serializeAws_json1_1DeleteChannelCommand;
|
|
49
69
|
const serializeAws_json1_1DeleteEventDataStoreCommand = async (input, context) => {
|
|
50
70
|
const headers = {
|
|
51
71
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -56,6 +76,16 @@ const serializeAws_json1_1DeleteEventDataStoreCommand = async (input, context) =
|
|
|
56
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
77
|
};
|
|
58
78
|
exports.serializeAws_json1_1DeleteEventDataStoreCommand = serializeAws_json1_1DeleteEventDataStoreCommand;
|
|
79
|
+
const serializeAws_json1_1DeleteResourcePolicyCommand = async (input, context) => {
|
|
80
|
+
const headers = {
|
|
81
|
+
"content-type": "application/x-amz-json-1.1",
|
|
82
|
+
"x-amz-target": "CloudTrail_20131101.DeleteResourcePolicy",
|
|
83
|
+
};
|
|
84
|
+
let body;
|
|
85
|
+
body = JSON.stringify(serializeAws_json1_1DeleteResourcePolicyRequest(input, context));
|
|
86
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
|
+
};
|
|
88
|
+
exports.serializeAws_json1_1DeleteResourcePolicyCommand = serializeAws_json1_1DeleteResourcePolicyCommand;
|
|
59
89
|
const serializeAws_json1_1DeleteTrailCommand = async (input, context) => {
|
|
60
90
|
const headers = {
|
|
61
91
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -156,6 +186,16 @@ const serializeAws_json1_1GetQueryResultsCommand = async (input, context) => {
|
|
|
156
186
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
187
|
};
|
|
158
188
|
exports.serializeAws_json1_1GetQueryResultsCommand = serializeAws_json1_1GetQueryResultsCommand;
|
|
189
|
+
const serializeAws_json1_1GetResourcePolicyCommand = async (input, context) => {
|
|
190
|
+
const headers = {
|
|
191
|
+
"content-type": "application/x-amz-json-1.1",
|
|
192
|
+
"x-amz-target": "CloudTrail_20131101.GetResourcePolicy",
|
|
193
|
+
};
|
|
194
|
+
let body;
|
|
195
|
+
body = JSON.stringify(serializeAws_json1_1GetResourcePolicyRequest(input, context));
|
|
196
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
+
};
|
|
198
|
+
exports.serializeAws_json1_1GetResourcePolicyCommand = serializeAws_json1_1GetResourcePolicyCommand;
|
|
159
199
|
const serializeAws_json1_1GetTrailCommand = async (input, context) => {
|
|
160
200
|
const headers = {
|
|
161
201
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -286,6 +326,16 @@ const serializeAws_json1_1PutInsightSelectorsCommand = async (input, context) =>
|
|
|
286
326
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
327
|
};
|
|
288
328
|
exports.serializeAws_json1_1PutInsightSelectorsCommand = serializeAws_json1_1PutInsightSelectorsCommand;
|
|
329
|
+
const serializeAws_json1_1PutResourcePolicyCommand = async (input, context) => {
|
|
330
|
+
const headers = {
|
|
331
|
+
"content-type": "application/x-amz-json-1.1",
|
|
332
|
+
"x-amz-target": "CloudTrail_20131101.PutResourcePolicy",
|
|
333
|
+
};
|
|
334
|
+
let body;
|
|
335
|
+
body = JSON.stringify(serializeAws_json1_1PutResourcePolicyRequest(input, context));
|
|
336
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
|
+
};
|
|
338
|
+
exports.serializeAws_json1_1PutResourcePolicyCommand = serializeAws_json1_1PutResourcePolicyCommand;
|
|
289
339
|
const serializeAws_json1_1RegisterOrganizationDelegatedAdminCommand = async (input, context) => {
|
|
290
340
|
const headers = {
|
|
291
341
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -366,6 +416,16 @@ const serializeAws_json1_1StopLoggingCommand = async (input, context) => {
|
|
|
366
416
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
417
|
};
|
|
368
418
|
exports.serializeAws_json1_1StopLoggingCommand = serializeAws_json1_1StopLoggingCommand;
|
|
419
|
+
const serializeAws_json1_1UpdateChannelCommand = async (input, context) => {
|
|
420
|
+
const headers = {
|
|
421
|
+
"content-type": "application/x-amz-json-1.1",
|
|
422
|
+
"x-amz-target": "CloudTrail_20131101.UpdateChannel",
|
|
423
|
+
};
|
|
424
|
+
let body;
|
|
425
|
+
body = JSON.stringify(serializeAws_json1_1UpdateChannelRequest(input, context));
|
|
426
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
427
|
+
};
|
|
428
|
+
exports.serializeAws_json1_1UpdateChannelCommand = serializeAws_json1_1UpdateChannelCommand;
|
|
369
429
|
const serializeAws_json1_1UpdateEventDataStoreCommand = async (input, context) => {
|
|
370
430
|
const headers = {
|
|
371
431
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -407,6 +467,9 @@ const deserializeAws_json1_1AddTagsCommandError = async (output, context) => {
|
|
|
407
467
|
};
|
|
408
468
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
409
469
|
switch (errorCode) {
|
|
470
|
+
case "ChannelNotFoundException":
|
|
471
|
+
case "com.amazonaws.cloudtrail#ChannelNotFoundException":
|
|
472
|
+
throw await deserializeAws_json1_1ChannelNotFoundExceptionResponse(parsedOutput, context);
|
|
410
473
|
case "CloudTrailARNInvalidException":
|
|
411
474
|
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
412
475
|
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
@@ -517,6 +580,73 @@ const deserializeAws_json1_1CancelQueryCommandError = async (output, context) =>
|
|
|
517
580
|
});
|
|
518
581
|
}
|
|
519
582
|
};
|
|
583
|
+
const deserializeAws_json1_1CreateChannelCommand = async (output, context) => {
|
|
584
|
+
if (output.statusCode >= 300) {
|
|
585
|
+
return deserializeAws_json1_1CreateChannelCommandError(output, context);
|
|
586
|
+
}
|
|
587
|
+
const data = await parseBody(output.body, context);
|
|
588
|
+
let contents = {};
|
|
589
|
+
contents = deserializeAws_json1_1CreateChannelResponse(data, context);
|
|
590
|
+
const response = {
|
|
591
|
+
$metadata: deserializeMetadata(output),
|
|
592
|
+
...contents,
|
|
593
|
+
};
|
|
594
|
+
return Promise.resolve(response);
|
|
595
|
+
};
|
|
596
|
+
exports.deserializeAws_json1_1CreateChannelCommand = deserializeAws_json1_1CreateChannelCommand;
|
|
597
|
+
const deserializeAws_json1_1CreateChannelCommandError = async (output, context) => {
|
|
598
|
+
const parsedOutput = {
|
|
599
|
+
...output,
|
|
600
|
+
body: await parseErrorBody(output.body, context),
|
|
601
|
+
};
|
|
602
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
603
|
+
switch (errorCode) {
|
|
604
|
+
case "ChannelAlreadyExistsException":
|
|
605
|
+
case "com.amazonaws.cloudtrail#ChannelAlreadyExistsException":
|
|
606
|
+
throw await deserializeAws_json1_1ChannelAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
607
|
+
case "ChannelMaxLimitExceededException":
|
|
608
|
+
case "com.amazonaws.cloudtrail#ChannelMaxLimitExceededException":
|
|
609
|
+
throw await deserializeAws_json1_1ChannelMaxLimitExceededExceptionResponse(parsedOutput, context);
|
|
610
|
+
case "EventDataStoreARNInvalidException":
|
|
611
|
+
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
612
|
+
throw await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context);
|
|
613
|
+
case "EventDataStoreNotFoundException":
|
|
614
|
+
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
615
|
+
throw await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context);
|
|
616
|
+
case "InactiveEventDataStoreException":
|
|
617
|
+
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
618
|
+
throw await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context);
|
|
619
|
+
case "InvalidEventDataStoreCategoryException":
|
|
620
|
+
case "com.amazonaws.cloudtrail#InvalidEventDataStoreCategoryException":
|
|
621
|
+
throw await deserializeAws_json1_1InvalidEventDataStoreCategoryExceptionResponse(parsedOutput, context);
|
|
622
|
+
case "InvalidParameterException":
|
|
623
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
624
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
625
|
+
case "InvalidSourceException":
|
|
626
|
+
case "com.amazonaws.cloudtrail#InvalidSourceException":
|
|
627
|
+
throw await deserializeAws_json1_1InvalidSourceExceptionResponse(parsedOutput, context);
|
|
628
|
+
case "InvalidTagParameterException":
|
|
629
|
+
case "com.amazonaws.cloudtrail#InvalidTagParameterException":
|
|
630
|
+
throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context);
|
|
631
|
+
case "OperationNotPermittedException":
|
|
632
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
633
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
634
|
+
case "TagsLimitExceededException":
|
|
635
|
+
case "com.amazonaws.cloudtrail#TagsLimitExceededException":
|
|
636
|
+
throw await deserializeAws_json1_1TagsLimitExceededExceptionResponse(parsedOutput, context);
|
|
637
|
+
case "UnsupportedOperationException":
|
|
638
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
639
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
640
|
+
default:
|
|
641
|
+
const parsedBody = parsedOutput.body;
|
|
642
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
643
|
+
output,
|
|
644
|
+
parsedBody,
|
|
645
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
646
|
+
errorCode,
|
|
647
|
+
});
|
|
648
|
+
}
|
|
649
|
+
};
|
|
520
650
|
const deserializeAws_json1_1CreateEventDataStoreCommand = async (output, context) => {
|
|
521
651
|
if (output.statusCode >= 300) {
|
|
522
652
|
return deserializeAws_json1_1CreateEventDataStoreCommandError(output, context);
|
|
@@ -726,6 +856,49 @@ const deserializeAws_json1_1CreateTrailCommandError = async (output, context) =>
|
|
|
726
856
|
});
|
|
727
857
|
}
|
|
728
858
|
};
|
|
859
|
+
const deserializeAws_json1_1DeleteChannelCommand = async (output, context) => {
|
|
860
|
+
if (output.statusCode >= 300) {
|
|
861
|
+
return deserializeAws_json1_1DeleteChannelCommandError(output, context);
|
|
862
|
+
}
|
|
863
|
+
const data = await parseBody(output.body, context);
|
|
864
|
+
let contents = {};
|
|
865
|
+
contents = deserializeAws_json1_1DeleteChannelResponse(data, context);
|
|
866
|
+
const response = {
|
|
867
|
+
$metadata: deserializeMetadata(output),
|
|
868
|
+
...contents,
|
|
869
|
+
};
|
|
870
|
+
return Promise.resolve(response);
|
|
871
|
+
};
|
|
872
|
+
exports.deserializeAws_json1_1DeleteChannelCommand = deserializeAws_json1_1DeleteChannelCommand;
|
|
873
|
+
const deserializeAws_json1_1DeleteChannelCommandError = async (output, context) => {
|
|
874
|
+
const parsedOutput = {
|
|
875
|
+
...output,
|
|
876
|
+
body: await parseErrorBody(output.body, context),
|
|
877
|
+
};
|
|
878
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
879
|
+
switch (errorCode) {
|
|
880
|
+
case "ChannelARNInvalidException":
|
|
881
|
+
case "com.amazonaws.cloudtrail#ChannelARNInvalidException":
|
|
882
|
+
throw await deserializeAws_json1_1ChannelARNInvalidExceptionResponse(parsedOutput, context);
|
|
883
|
+
case "ChannelNotFoundException":
|
|
884
|
+
case "com.amazonaws.cloudtrail#ChannelNotFoundException":
|
|
885
|
+
throw await deserializeAws_json1_1ChannelNotFoundExceptionResponse(parsedOutput, context);
|
|
886
|
+
case "OperationNotPermittedException":
|
|
887
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
888
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
889
|
+
case "UnsupportedOperationException":
|
|
890
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
891
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
892
|
+
default:
|
|
893
|
+
const parsedBody = parsedOutput.body;
|
|
894
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
895
|
+
output,
|
|
896
|
+
parsedBody,
|
|
897
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
898
|
+
errorCode,
|
|
899
|
+
});
|
|
900
|
+
}
|
|
901
|
+
};
|
|
729
902
|
const deserializeAws_json1_1DeleteEventDataStoreCommand = async (output, context) => {
|
|
730
903
|
if (output.statusCode >= 300) {
|
|
731
904
|
return deserializeAws_json1_1DeleteEventDataStoreCommandError(output, context);
|
|
@@ -747,6 +920,9 @@ const deserializeAws_json1_1DeleteEventDataStoreCommandError = async (output, co
|
|
|
747
920
|
};
|
|
748
921
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
749
922
|
switch (errorCode) {
|
|
923
|
+
case "ChannelExistsForEDSException":
|
|
924
|
+
case "com.amazonaws.cloudtrail#ChannelExistsForEDSException":
|
|
925
|
+
throw await deserializeAws_json1_1ChannelExistsForEDSExceptionResponse(parsedOutput, context);
|
|
750
926
|
case "EventDataStoreARNInvalidException":
|
|
751
927
|
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
752
928
|
throw await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context);
|
|
@@ -790,6 +966,55 @@ const deserializeAws_json1_1DeleteEventDataStoreCommandError = async (output, co
|
|
|
790
966
|
});
|
|
791
967
|
}
|
|
792
968
|
};
|
|
969
|
+
const deserializeAws_json1_1DeleteResourcePolicyCommand = async (output, context) => {
|
|
970
|
+
if (output.statusCode >= 300) {
|
|
971
|
+
return deserializeAws_json1_1DeleteResourcePolicyCommandError(output, context);
|
|
972
|
+
}
|
|
973
|
+
const data = await parseBody(output.body, context);
|
|
974
|
+
let contents = {};
|
|
975
|
+
contents = deserializeAws_json1_1DeleteResourcePolicyResponse(data, context);
|
|
976
|
+
const response = {
|
|
977
|
+
$metadata: deserializeMetadata(output),
|
|
978
|
+
...contents,
|
|
979
|
+
};
|
|
980
|
+
return Promise.resolve(response);
|
|
981
|
+
};
|
|
982
|
+
exports.deserializeAws_json1_1DeleteResourcePolicyCommand = deserializeAws_json1_1DeleteResourcePolicyCommand;
|
|
983
|
+
const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, context) => {
|
|
984
|
+
const parsedOutput = {
|
|
985
|
+
...output,
|
|
986
|
+
body: await parseErrorBody(output.body, context),
|
|
987
|
+
};
|
|
988
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
989
|
+
switch (errorCode) {
|
|
990
|
+
case "OperationNotPermittedException":
|
|
991
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
992
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
993
|
+
case "ResourceARNNotValidException":
|
|
994
|
+
case "com.amazonaws.cloudtrail#ResourceARNNotValidException":
|
|
995
|
+
throw await deserializeAws_json1_1ResourceARNNotValidExceptionResponse(parsedOutput, context);
|
|
996
|
+
case "ResourceNotFoundException":
|
|
997
|
+
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
998
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
999
|
+
case "ResourcePolicyNotFoundException":
|
|
1000
|
+
case "com.amazonaws.cloudtrail#ResourcePolicyNotFoundException":
|
|
1001
|
+
throw await deserializeAws_json1_1ResourcePolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
1002
|
+
case "ResourceTypeNotSupportedException":
|
|
1003
|
+
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
1004
|
+
throw await deserializeAws_json1_1ResourceTypeNotSupportedExceptionResponse(parsedOutput, context);
|
|
1005
|
+
case "UnsupportedOperationException":
|
|
1006
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1007
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1008
|
+
default:
|
|
1009
|
+
const parsedBody = parsedOutput.body;
|
|
1010
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1011
|
+
output,
|
|
1012
|
+
parsedBody,
|
|
1013
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1014
|
+
errorCode,
|
|
1015
|
+
});
|
|
1016
|
+
}
|
|
1017
|
+
};
|
|
793
1018
|
const deserializeAws_json1_1DeleteTrailCommand = async (output, context) => {
|
|
794
1019
|
if (output.statusCode >= 300) {
|
|
795
1020
|
return deserializeAws_json1_1DeleteTrailCommandError(output, context);
|
|
@@ -881,6 +1106,9 @@ const deserializeAws_json1_1DeregisterOrganizationDelegatedAdminCommandError = a
|
|
|
881
1106
|
case "CloudTrailAccessNotEnabledException":
|
|
882
1107
|
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
883
1108
|
throw await deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
1109
|
+
case "ConflictException":
|
|
1110
|
+
case "com.amazonaws.cloudtrail#ConflictException":
|
|
1111
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
884
1112
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
885
1113
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
886
1114
|
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
@@ -1310,6 +1538,55 @@ const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context
|
|
|
1310
1538
|
});
|
|
1311
1539
|
}
|
|
1312
1540
|
};
|
|
1541
|
+
const deserializeAws_json1_1GetResourcePolicyCommand = async (output, context) => {
|
|
1542
|
+
if (output.statusCode >= 300) {
|
|
1543
|
+
return deserializeAws_json1_1GetResourcePolicyCommandError(output, context);
|
|
1544
|
+
}
|
|
1545
|
+
const data = await parseBody(output.body, context);
|
|
1546
|
+
let contents = {};
|
|
1547
|
+
contents = deserializeAws_json1_1GetResourcePolicyResponse(data, context);
|
|
1548
|
+
const response = {
|
|
1549
|
+
$metadata: deserializeMetadata(output),
|
|
1550
|
+
...contents,
|
|
1551
|
+
};
|
|
1552
|
+
return Promise.resolve(response);
|
|
1553
|
+
};
|
|
1554
|
+
exports.deserializeAws_json1_1GetResourcePolicyCommand = deserializeAws_json1_1GetResourcePolicyCommand;
|
|
1555
|
+
const deserializeAws_json1_1GetResourcePolicyCommandError = async (output, context) => {
|
|
1556
|
+
const parsedOutput = {
|
|
1557
|
+
...output,
|
|
1558
|
+
body: await parseErrorBody(output.body, context),
|
|
1559
|
+
};
|
|
1560
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1561
|
+
switch (errorCode) {
|
|
1562
|
+
case "OperationNotPermittedException":
|
|
1563
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1564
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
1565
|
+
case "ResourceARNNotValidException":
|
|
1566
|
+
case "com.amazonaws.cloudtrail#ResourceARNNotValidException":
|
|
1567
|
+
throw await deserializeAws_json1_1ResourceARNNotValidExceptionResponse(parsedOutput, context);
|
|
1568
|
+
case "ResourceNotFoundException":
|
|
1569
|
+
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
1570
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1571
|
+
case "ResourcePolicyNotFoundException":
|
|
1572
|
+
case "com.amazonaws.cloudtrail#ResourcePolicyNotFoundException":
|
|
1573
|
+
throw await deserializeAws_json1_1ResourcePolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
1574
|
+
case "ResourceTypeNotSupportedException":
|
|
1575
|
+
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
1576
|
+
throw await deserializeAws_json1_1ResourceTypeNotSupportedExceptionResponse(parsedOutput, context);
|
|
1577
|
+
case "UnsupportedOperationException":
|
|
1578
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1579
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1580
|
+
default:
|
|
1581
|
+
const parsedBody = parsedOutput.body;
|
|
1582
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1583
|
+
output,
|
|
1584
|
+
parsedBody,
|
|
1585
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1586
|
+
errorCode,
|
|
1587
|
+
});
|
|
1588
|
+
}
|
|
1589
|
+
};
|
|
1313
1590
|
const deserializeAws_json1_1GetTrailCommand = async (output, context) => {
|
|
1314
1591
|
if (output.statusCode >= 300) {
|
|
1315
1592
|
return deserializeAws_json1_1GetTrailCommandError(output, context);
|
|
@@ -1962,6 +2239,55 @@ const deserializeAws_json1_1PutInsightSelectorsCommandError = async (output, con
|
|
|
1962
2239
|
});
|
|
1963
2240
|
}
|
|
1964
2241
|
};
|
|
2242
|
+
const deserializeAws_json1_1PutResourcePolicyCommand = async (output, context) => {
|
|
2243
|
+
if (output.statusCode >= 300) {
|
|
2244
|
+
return deserializeAws_json1_1PutResourcePolicyCommandError(output, context);
|
|
2245
|
+
}
|
|
2246
|
+
const data = await parseBody(output.body, context);
|
|
2247
|
+
let contents = {};
|
|
2248
|
+
contents = deserializeAws_json1_1PutResourcePolicyResponse(data, context);
|
|
2249
|
+
const response = {
|
|
2250
|
+
$metadata: deserializeMetadata(output),
|
|
2251
|
+
...contents,
|
|
2252
|
+
};
|
|
2253
|
+
return Promise.resolve(response);
|
|
2254
|
+
};
|
|
2255
|
+
exports.deserializeAws_json1_1PutResourcePolicyCommand = deserializeAws_json1_1PutResourcePolicyCommand;
|
|
2256
|
+
const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, context) => {
|
|
2257
|
+
const parsedOutput = {
|
|
2258
|
+
...output,
|
|
2259
|
+
body: await parseErrorBody(output.body, context),
|
|
2260
|
+
};
|
|
2261
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2262
|
+
switch (errorCode) {
|
|
2263
|
+
case "OperationNotPermittedException":
|
|
2264
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2265
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
2266
|
+
case "ResourceARNNotValidException":
|
|
2267
|
+
case "com.amazonaws.cloudtrail#ResourceARNNotValidException":
|
|
2268
|
+
throw await deserializeAws_json1_1ResourceARNNotValidExceptionResponse(parsedOutput, context);
|
|
2269
|
+
case "ResourceNotFoundException":
|
|
2270
|
+
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
2271
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2272
|
+
case "ResourcePolicyNotValidException":
|
|
2273
|
+
case "com.amazonaws.cloudtrail#ResourcePolicyNotValidException":
|
|
2274
|
+
throw await deserializeAws_json1_1ResourcePolicyNotValidExceptionResponse(parsedOutput, context);
|
|
2275
|
+
case "ResourceTypeNotSupportedException":
|
|
2276
|
+
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
2277
|
+
throw await deserializeAws_json1_1ResourceTypeNotSupportedExceptionResponse(parsedOutput, context);
|
|
2278
|
+
case "UnsupportedOperationException":
|
|
2279
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2280
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2281
|
+
default:
|
|
2282
|
+
const parsedBody = parsedOutput.body;
|
|
2283
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2284
|
+
output,
|
|
2285
|
+
parsedBody,
|
|
2286
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
2287
|
+
errorCode,
|
|
2288
|
+
});
|
|
2289
|
+
}
|
|
2290
|
+
};
|
|
1965
2291
|
const deserializeAws_json1_1RegisterOrganizationDelegatedAdminCommand = async (output, context) => {
|
|
1966
2292
|
if (output.statusCode >= 300) {
|
|
1967
2293
|
return deserializeAws_json1_1RegisterOrganizationDelegatedAdminCommandError(output, context);
|
|
@@ -1995,6 +2321,9 @@ const deserializeAws_json1_1RegisterOrganizationDelegatedAdminCommandError = asy
|
|
|
1995
2321
|
case "CloudTrailAccessNotEnabledException":
|
|
1996
2322
|
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
1997
2323
|
throw await deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
2324
|
+
case "ConflictException":
|
|
2325
|
+
case "com.amazonaws.cloudtrail#ConflictException":
|
|
2326
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1998
2327
|
case "DelegatedAdminAccountLimitExceededException":
|
|
1999
2328
|
case "com.amazonaws.cloudtrail#DelegatedAdminAccountLimitExceededException":
|
|
2000
2329
|
throw await deserializeAws_json1_1DelegatedAdminAccountLimitExceededExceptionResponse(parsedOutput, context);
|
|
@@ -2050,6 +2379,9 @@ const deserializeAws_json1_1RemoveTagsCommandError = async (output, context) =>
|
|
|
2050
2379
|
};
|
|
2051
2380
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2052
2381
|
switch (errorCode) {
|
|
2382
|
+
case "ChannelNotFoundException":
|
|
2383
|
+
case "com.amazonaws.cloudtrail#ChannelNotFoundException":
|
|
2384
|
+
throw await deserializeAws_json1_1ChannelNotFoundExceptionResponse(parsedOutput, context);
|
|
2053
2385
|
case "CloudTrailARNInvalidException":
|
|
2054
2386
|
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
2055
2387
|
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
@@ -2251,6 +2583,9 @@ const deserializeAws_json1_1StartLoggingCommandError = async (output, context) =
|
|
|
2251
2583
|
case "CloudTrailARNInvalidException":
|
|
2252
2584
|
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
2253
2585
|
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
2586
|
+
case "ConflictException":
|
|
2587
|
+
case "com.amazonaws.cloudtrail#ConflictException":
|
|
2588
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
2254
2589
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2255
2590
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2256
2591
|
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
@@ -2425,6 +2760,9 @@ const deserializeAws_json1_1StopLoggingCommandError = async (output, context) =>
|
|
|
2425
2760
|
case "CloudTrailARNInvalidException":
|
|
2426
2761
|
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
2427
2762
|
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
2763
|
+
case "ConflictException":
|
|
2764
|
+
case "com.amazonaws.cloudtrail#ConflictException":
|
|
2765
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
2428
2766
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2429
2767
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2430
2768
|
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
@@ -2459,6 +2797,67 @@ const deserializeAws_json1_1StopLoggingCommandError = async (output, context) =>
|
|
|
2459
2797
|
});
|
|
2460
2798
|
}
|
|
2461
2799
|
};
|
|
2800
|
+
const deserializeAws_json1_1UpdateChannelCommand = async (output, context) => {
|
|
2801
|
+
if (output.statusCode >= 300) {
|
|
2802
|
+
return deserializeAws_json1_1UpdateChannelCommandError(output, context);
|
|
2803
|
+
}
|
|
2804
|
+
const data = await parseBody(output.body, context);
|
|
2805
|
+
let contents = {};
|
|
2806
|
+
contents = deserializeAws_json1_1UpdateChannelResponse(data, context);
|
|
2807
|
+
const response = {
|
|
2808
|
+
$metadata: deserializeMetadata(output),
|
|
2809
|
+
...contents,
|
|
2810
|
+
};
|
|
2811
|
+
return Promise.resolve(response);
|
|
2812
|
+
};
|
|
2813
|
+
exports.deserializeAws_json1_1UpdateChannelCommand = deserializeAws_json1_1UpdateChannelCommand;
|
|
2814
|
+
const deserializeAws_json1_1UpdateChannelCommandError = async (output, context) => {
|
|
2815
|
+
const parsedOutput = {
|
|
2816
|
+
...output,
|
|
2817
|
+
body: await parseErrorBody(output.body, context),
|
|
2818
|
+
};
|
|
2819
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2820
|
+
switch (errorCode) {
|
|
2821
|
+
case "ChannelARNInvalidException":
|
|
2822
|
+
case "com.amazonaws.cloudtrail#ChannelARNInvalidException":
|
|
2823
|
+
throw await deserializeAws_json1_1ChannelARNInvalidExceptionResponse(parsedOutput, context);
|
|
2824
|
+
case "ChannelAlreadyExistsException":
|
|
2825
|
+
case "com.amazonaws.cloudtrail#ChannelAlreadyExistsException":
|
|
2826
|
+
throw await deserializeAws_json1_1ChannelAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
2827
|
+
case "ChannelNotFoundException":
|
|
2828
|
+
case "com.amazonaws.cloudtrail#ChannelNotFoundException":
|
|
2829
|
+
throw await deserializeAws_json1_1ChannelNotFoundExceptionResponse(parsedOutput, context);
|
|
2830
|
+
case "EventDataStoreARNInvalidException":
|
|
2831
|
+
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
2832
|
+
throw await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context);
|
|
2833
|
+
case "EventDataStoreNotFoundException":
|
|
2834
|
+
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
2835
|
+
throw await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context);
|
|
2836
|
+
case "InactiveEventDataStoreException":
|
|
2837
|
+
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
2838
|
+
throw await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context);
|
|
2839
|
+
case "InvalidEventDataStoreCategoryException":
|
|
2840
|
+
case "com.amazonaws.cloudtrail#InvalidEventDataStoreCategoryException":
|
|
2841
|
+
throw await deserializeAws_json1_1InvalidEventDataStoreCategoryExceptionResponse(parsedOutput, context);
|
|
2842
|
+
case "InvalidParameterException":
|
|
2843
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2844
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2845
|
+
case "OperationNotPermittedException":
|
|
2846
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2847
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
2848
|
+
case "UnsupportedOperationException":
|
|
2849
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2850
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2851
|
+
default:
|
|
2852
|
+
const parsedBody = parsedOutput.body;
|
|
2853
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2854
|
+
output,
|
|
2855
|
+
parsedBody,
|
|
2856
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
2857
|
+
errorCode,
|
|
2858
|
+
});
|
|
2859
|
+
}
|
|
2860
|
+
};
|
|
2462
2861
|
const deserializeAws_json1_1UpdateEventDataStoreCommand = async (output, context) => {
|
|
2463
2862
|
if (output.statusCode >= 300) {
|
|
2464
2863
|
return deserializeAws_json1_1UpdateEventDataStoreCommandError(output, context);
|
|
@@ -2577,6 +2976,9 @@ const deserializeAws_json1_1UpdateTrailCommandError = async (output, context) =>
|
|
|
2577
2976
|
case "CloudWatchLogsDeliveryUnavailableException":
|
|
2578
2977
|
case "com.amazonaws.cloudtrail#CloudWatchLogsDeliveryUnavailableException":
|
|
2579
2978
|
throw await deserializeAws_json1_1CloudWatchLogsDeliveryUnavailableExceptionResponse(parsedOutput, context);
|
|
2979
|
+
case "ConflictException":
|
|
2980
|
+
case "com.amazonaws.cloudtrail#ConflictException":
|
|
2981
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
2580
2982
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2581
2983
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2582
2984
|
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
@@ -2713,6 +3115,15 @@ const deserializeAws_json1_1CannotDelegateManagementAccountExceptionResponse = a
|
|
|
2713
3115
|
});
|
|
2714
3116
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2715
3117
|
};
|
|
3118
|
+
const deserializeAws_json1_1ChannelAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
3119
|
+
const body = parsedOutput.body;
|
|
3120
|
+
const deserialized = deserializeAws_json1_1ChannelAlreadyExistsException(body, context);
|
|
3121
|
+
const exception = new models_0_1.ChannelAlreadyExistsException({
|
|
3122
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3123
|
+
...deserialized,
|
|
3124
|
+
});
|
|
3125
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3126
|
+
};
|
|
2716
3127
|
const deserializeAws_json1_1ChannelARNInvalidExceptionResponse = async (parsedOutput, context) => {
|
|
2717
3128
|
const body = parsedOutput.body;
|
|
2718
3129
|
const deserialized = deserializeAws_json1_1ChannelARNInvalidException(body, context);
|
|
@@ -2722,6 +3133,24 @@ const deserializeAws_json1_1ChannelARNInvalidExceptionResponse = async (parsedOu
|
|
|
2722
3133
|
});
|
|
2723
3134
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2724
3135
|
};
|
|
3136
|
+
const deserializeAws_json1_1ChannelExistsForEDSExceptionResponse = async (parsedOutput, context) => {
|
|
3137
|
+
const body = parsedOutput.body;
|
|
3138
|
+
const deserialized = deserializeAws_json1_1ChannelExistsForEDSException(body, context);
|
|
3139
|
+
const exception = new models_0_1.ChannelExistsForEDSException({
|
|
3140
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3141
|
+
...deserialized,
|
|
3142
|
+
});
|
|
3143
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3144
|
+
};
|
|
3145
|
+
const deserializeAws_json1_1ChannelMaxLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3146
|
+
const body = parsedOutput.body;
|
|
3147
|
+
const deserialized = deserializeAws_json1_1ChannelMaxLimitExceededException(body, context);
|
|
3148
|
+
const exception = new models_0_1.ChannelMaxLimitExceededException({
|
|
3149
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3150
|
+
...deserialized,
|
|
3151
|
+
});
|
|
3152
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3153
|
+
};
|
|
2725
3154
|
const deserializeAws_json1_1ChannelNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2726
3155
|
const body = parsedOutput.body;
|
|
2727
3156
|
const deserialized = deserializeAws_json1_1ChannelNotFoundException(body, context);
|
|
@@ -3100,6 +3529,15 @@ const deserializeAws_json1_1InvalidSnsTopicNameExceptionResponse = async (parsed
|
|
|
3100
3529
|
});
|
|
3101
3530
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3102
3531
|
};
|
|
3532
|
+
const deserializeAws_json1_1InvalidSourceExceptionResponse = async (parsedOutput, context) => {
|
|
3533
|
+
const body = parsedOutput.body;
|
|
3534
|
+
const deserialized = deserializeAws_json1_1InvalidSourceException(body, context);
|
|
3535
|
+
const exception = new models_0_1.InvalidSourceException({
|
|
3536
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3537
|
+
...deserialized,
|
|
3538
|
+
});
|
|
3539
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3540
|
+
};
|
|
3103
3541
|
const deserializeAws_json1_1InvalidTagParameterExceptionResponse = async (parsedOutput, context) => {
|
|
3104
3542
|
const body = parsedOutput.body;
|
|
3105
3543
|
const deserialized = deserializeAws_json1_1InvalidTagParameterException(body, context);
|
|
@@ -3244,6 +3682,15 @@ const deserializeAws_json1_1QueryIdNotFoundExceptionResponse = async (parsedOutp
|
|
|
3244
3682
|
});
|
|
3245
3683
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3246
3684
|
};
|
|
3685
|
+
const deserializeAws_json1_1ResourceARNNotValidExceptionResponse = async (parsedOutput, context) => {
|
|
3686
|
+
const body = parsedOutput.body;
|
|
3687
|
+
const deserialized = deserializeAws_json1_1ResourceARNNotValidException(body, context);
|
|
3688
|
+
const exception = new models_0_1.ResourceARNNotValidException({
|
|
3689
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3690
|
+
...deserialized,
|
|
3691
|
+
});
|
|
3692
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3693
|
+
};
|
|
3247
3694
|
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3248
3695
|
const body = parsedOutput.body;
|
|
3249
3696
|
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
@@ -3253,6 +3700,24 @@ const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOut
|
|
|
3253
3700
|
});
|
|
3254
3701
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3255
3702
|
};
|
|
3703
|
+
const deserializeAws_json1_1ResourcePolicyNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3704
|
+
const body = parsedOutput.body;
|
|
3705
|
+
const deserialized = deserializeAws_json1_1ResourcePolicyNotFoundException(body, context);
|
|
3706
|
+
const exception = new models_0_1.ResourcePolicyNotFoundException({
|
|
3707
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3708
|
+
...deserialized,
|
|
3709
|
+
});
|
|
3710
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3711
|
+
};
|
|
3712
|
+
const deserializeAws_json1_1ResourcePolicyNotValidExceptionResponse = async (parsedOutput, context) => {
|
|
3713
|
+
const body = parsedOutput.body;
|
|
3714
|
+
const deserialized = deserializeAws_json1_1ResourcePolicyNotValidException(body, context);
|
|
3715
|
+
const exception = new models_0_1.ResourcePolicyNotValidException({
|
|
3716
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3717
|
+
...deserialized,
|
|
3718
|
+
});
|
|
3719
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3720
|
+
};
|
|
3256
3721
|
const deserializeAws_json1_1ResourceTypeNotSupportedExceptionResponse = async (parsedOutput, context) => {
|
|
3257
3722
|
const body = parsedOutput.body;
|
|
3258
3723
|
const deserialized = deserializeAws_json1_1ResourceTypeNotSupportedException(body, context);
|
|
@@ -3361,6 +3826,14 @@ const serializeAws_json1_1CancelQueryRequest = (input, context) => {
|
|
|
3361
3826
|
...(input.QueryId != null && { QueryId: input.QueryId }),
|
|
3362
3827
|
};
|
|
3363
3828
|
};
|
|
3829
|
+
const serializeAws_json1_1CreateChannelRequest = (input, context) => {
|
|
3830
|
+
return {
|
|
3831
|
+
...(input.Destinations != null && { Destinations: serializeAws_json1_1Destinations(input.Destinations, context) }),
|
|
3832
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3833
|
+
...(input.Source != null && { Source: input.Source }),
|
|
3834
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagsList(input.Tags, context) }),
|
|
3835
|
+
};
|
|
3836
|
+
};
|
|
3364
3837
|
const serializeAws_json1_1CreateEventDataStoreRequest = (input, context) => {
|
|
3365
3838
|
return {
|
|
3366
3839
|
...(input.AdvancedEventSelectors != null && {
|
|
@@ -3413,11 +3886,21 @@ const serializeAws_json1_1DataResourceValues = (input, context) => {
|
|
|
3413
3886
|
return entry;
|
|
3414
3887
|
});
|
|
3415
3888
|
};
|
|
3889
|
+
const serializeAws_json1_1DeleteChannelRequest = (input, context) => {
|
|
3890
|
+
return {
|
|
3891
|
+
...(input.Channel != null && { Channel: input.Channel }),
|
|
3892
|
+
};
|
|
3893
|
+
};
|
|
3416
3894
|
const serializeAws_json1_1DeleteEventDataStoreRequest = (input, context) => {
|
|
3417
3895
|
return {
|
|
3418
3896
|
...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
|
|
3419
3897
|
};
|
|
3420
3898
|
};
|
|
3899
|
+
const serializeAws_json1_1DeleteResourcePolicyRequest = (input, context) => {
|
|
3900
|
+
return {
|
|
3901
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
3902
|
+
};
|
|
3903
|
+
};
|
|
3421
3904
|
const serializeAws_json1_1DeleteTrailRequest = (input, context) => {
|
|
3422
3905
|
return {
|
|
3423
3906
|
...(input.Name != null && { Name: input.Name }),
|
|
@@ -3442,6 +3925,19 @@ const serializeAws_json1_1DescribeTrailsRequest = (input, context) => {
|
|
|
3442
3925
|
}),
|
|
3443
3926
|
};
|
|
3444
3927
|
};
|
|
3928
|
+
const serializeAws_json1_1Destination = (input, context) => {
|
|
3929
|
+
return {
|
|
3930
|
+
...(input.Location != null && { Location: input.Location }),
|
|
3931
|
+
...(input.Type != null && { Type: input.Type }),
|
|
3932
|
+
};
|
|
3933
|
+
};
|
|
3934
|
+
const serializeAws_json1_1Destinations = (input, context) => {
|
|
3935
|
+
return input
|
|
3936
|
+
.filter((e) => e != null)
|
|
3937
|
+
.map((entry) => {
|
|
3938
|
+
return serializeAws_json1_1Destination(entry, context);
|
|
3939
|
+
});
|
|
3940
|
+
};
|
|
3445
3941
|
const serializeAws_json1_1EventSelector = (input, context) => {
|
|
3446
3942
|
return {
|
|
3447
3943
|
...(input.DataResources != null && {
|
|
@@ -3501,6 +3997,11 @@ const serializeAws_json1_1GetQueryResultsRequest = (input, context) => {
|
|
|
3501
3997
|
...(input.QueryId != null && { QueryId: input.QueryId }),
|
|
3502
3998
|
};
|
|
3503
3999
|
};
|
|
4000
|
+
const serializeAws_json1_1GetResourcePolicyRequest = (input, context) => {
|
|
4001
|
+
return {
|
|
4002
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4003
|
+
};
|
|
4004
|
+
};
|
|
3504
4005
|
const serializeAws_json1_1GetTrailRequest = (input, context) => {
|
|
3505
4006
|
return {
|
|
3506
4007
|
...(input.Name != null && { Name: input.Name }),
|
|
@@ -3643,6 +4144,12 @@ const serializeAws_json1_1PutInsightSelectorsRequest = (input, context) => {
|
|
|
3643
4144
|
...(input.TrailName != null && { TrailName: input.TrailName }),
|
|
3644
4145
|
};
|
|
3645
4146
|
};
|
|
4147
|
+
const serializeAws_json1_1PutResourcePolicyRequest = (input, context) => {
|
|
4148
|
+
return {
|
|
4149
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4150
|
+
...(input.ResourcePolicy != null && { ResourcePolicy: input.ResourcePolicy }),
|
|
4151
|
+
};
|
|
4152
|
+
};
|
|
3646
4153
|
const serializeAws_json1_1RegisterOrganizationDelegatedAdminRequest = (input, context) => {
|
|
3647
4154
|
return {
|
|
3648
4155
|
...(input.MemberAccountId != null && { MemberAccountId: input.MemberAccountId }),
|
|
@@ -3725,6 +4232,13 @@ const serializeAws_json1_1TrailNameList = (input, context) => {
|
|
|
3725
4232
|
return entry;
|
|
3726
4233
|
});
|
|
3727
4234
|
};
|
|
4235
|
+
const serializeAws_json1_1UpdateChannelRequest = (input, context) => {
|
|
4236
|
+
return {
|
|
4237
|
+
...(input.Channel != null && { Channel: input.Channel }),
|
|
4238
|
+
...(input.Destinations != null && { Destinations: serializeAws_json1_1Destinations(input.Destinations, context) }),
|
|
4239
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4240
|
+
};
|
|
4241
|
+
};
|
|
3728
4242
|
const serializeAws_json1_1UpdateEventDataStoreRequest = (input, context) => {
|
|
3729
4243
|
return {
|
|
3730
4244
|
...(input.AdvancedEventSelectors != null && {
|
|
@@ -3837,11 +4351,26 @@ const deserializeAws_json1_1Channel = (output, context) => {
|
|
|
3837
4351
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3838
4352
|
};
|
|
3839
4353
|
};
|
|
4354
|
+
const deserializeAws_json1_1ChannelAlreadyExistsException = (output, context) => {
|
|
4355
|
+
return {
|
|
4356
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4357
|
+
};
|
|
4358
|
+
};
|
|
3840
4359
|
const deserializeAws_json1_1ChannelARNInvalidException = (output, context) => {
|
|
3841
4360
|
return {
|
|
3842
4361
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3843
4362
|
};
|
|
3844
4363
|
};
|
|
4364
|
+
const deserializeAws_json1_1ChannelExistsForEDSException = (output, context) => {
|
|
4365
|
+
return {
|
|
4366
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4367
|
+
};
|
|
4368
|
+
};
|
|
4369
|
+
const deserializeAws_json1_1ChannelMaxLimitExceededException = (output, context) => {
|
|
4370
|
+
return {
|
|
4371
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4372
|
+
};
|
|
4373
|
+
};
|
|
3845
4374
|
const deserializeAws_json1_1ChannelNotFoundException = (output, context) => {
|
|
3846
4375
|
return {
|
|
3847
4376
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -3883,6 +4412,15 @@ const deserializeAws_json1_1ConflictException = (output, context) => {
|
|
|
3883
4412
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3884
4413
|
};
|
|
3885
4414
|
};
|
|
4415
|
+
const deserializeAws_json1_1CreateChannelResponse = (output, context) => {
|
|
4416
|
+
return {
|
|
4417
|
+
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4418
|
+
Destinations: output.Destinations != null ? deserializeAws_json1_1Destinations(output.Destinations, context) : undefined,
|
|
4419
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4420
|
+
Source: (0, smithy_client_1.expectString)(output.Source),
|
|
4421
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagsList(output.Tags, context) : undefined,
|
|
4422
|
+
};
|
|
4423
|
+
};
|
|
3886
4424
|
const deserializeAws_json1_1CreateEventDataStoreResponse = (output, context) => {
|
|
3887
4425
|
return {
|
|
3888
4426
|
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|
|
@@ -3955,9 +4493,15 @@ const deserializeAws_json1_1DelegatedAdminAccountLimitExceededException = (outpu
|
|
|
3955
4493
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3956
4494
|
};
|
|
3957
4495
|
};
|
|
4496
|
+
const deserializeAws_json1_1DeleteChannelResponse = (output, context) => {
|
|
4497
|
+
return {};
|
|
4498
|
+
};
|
|
3958
4499
|
const deserializeAws_json1_1DeleteEventDataStoreResponse = (output, context) => {
|
|
3959
4500
|
return {};
|
|
3960
4501
|
};
|
|
4502
|
+
const deserializeAws_json1_1DeleteResourcePolicyResponse = (output, context) => {
|
|
4503
|
+
return {};
|
|
4504
|
+
};
|
|
3961
4505
|
const deserializeAws_json1_1DeleteTrailResponse = (output, context) => {
|
|
3962
4506
|
return {};
|
|
3963
4507
|
};
|
|
@@ -4120,6 +4664,9 @@ const deserializeAws_json1_1GetChannelResponse = (output, context) => {
|
|
|
4120
4664
|
return {
|
|
4121
4665
|
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4122
4666
|
Destinations: output.Destinations != null ? deserializeAws_json1_1Destinations(output.Destinations, context) : undefined,
|
|
4667
|
+
IngestionStatus: output.IngestionStatus != null
|
|
4668
|
+
? deserializeAws_json1_1IngestionStatus(output.IngestionStatus, context)
|
|
4669
|
+
: undefined,
|
|
4123
4670
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4124
4671
|
Source: (0, smithy_client_1.expectString)(output.Source),
|
|
4125
4672
|
SourceConfig: output.SourceConfig != null ? deserializeAws_json1_1SourceConfig(output.SourceConfig, context) : undefined,
|
|
@@ -4199,6 +4746,12 @@ const deserializeAws_json1_1GetQueryResultsResponse = (output, context) => {
|
|
|
4199
4746
|
QueryStatus: (0, smithy_client_1.expectString)(output.QueryStatus),
|
|
4200
4747
|
};
|
|
4201
4748
|
};
|
|
4749
|
+
const deserializeAws_json1_1GetResourcePolicyResponse = (output, context) => {
|
|
4750
|
+
return {
|
|
4751
|
+
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
4752
|
+
ResourcePolicy: (0, smithy_client_1.expectString)(output.ResourcePolicy),
|
|
4753
|
+
};
|
|
4754
|
+
};
|
|
4202
4755
|
const deserializeAws_json1_1GetTrailResponse = (output, context) => {
|
|
4203
4756
|
return {
|
|
4204
4757
|
Trail: output.Trail != null ? deserializeAws_json1_1Trail(output.Trail, context) : undefined,
|
|
@@ -4323,6 +4876,19 @@ const deserializeAws_json1_1InactiveQueryException = (output, context) => {
|
|
|
4323
4876
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4324
4877
|
};
|
|
4325
4878
|
};
|
|
4879
|
+
const deserializeAws_json1_1IngestionStatus = (output, context) => {
|
|
4880
|
+
return {
|
|
4881
|
+
LatestIngestionAttemptEventID: (0, smithy_client_1.expectString)(output.LatestIngestionAttemptEventID),
|
|
4882
|
+
LatestIngestionAttemptTime: output.LatestIngestionAttemptTime != null
|
|
4883
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestIngestionAttemptTime)))
|
|
4884
|
+
: undefined,
|
|
4885
|
+
LatestIngestionErrorCode: (0, smithy_client_1.expectString)(output.LatestIngestionErrorCode),
|
|
4886
|
+
LatestIngestionSuccessEventID: (0, smithy_client_1.expectString)(output.LatestIngestionSuccessEventID),
|
|
4887
|
+
LatestIngestionSuccessTime: output.LatestIngestionSuccessTime != null
|
|
4888
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestIngestionSuccessTime)))
|
|
4889
|
+
: undefined,
|
|
4890
|
+
};
|
|
4891
|
+
};
|
|
4326
4892
|
const deserializeAws_json1_1InsightNotEnabledException = (output, context) => {
|
|
4327
4893
|
return {
|
|
4328
4894
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -4469,6 +5035,11 @@ const deserializeAws_json1_1InvalidSnsTopicNameException = (output, context) =>
|
|
|
4469
5035
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4470
5036
|
};
|
|
4471
5037
|
};
|
|
5038
|
+
const deserializeAws_json1_1InvalidSourceException = (output, context) => {
|
|
5039
|
+
return {
|
|
5040
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
5041
|
+
};
|
|
5042
|
+
};
|
|
4472
5043
|
const deserializeAws_json1_1InvalidTagParameterException = (output, context) => {
|
|
4473
5044
|
return {
|
|
4474
5045
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -4653,6 +5224,12 @@ const deserializeAws_json1_1PutInsightSelectorsResponse = (output, context) => {
|
|
|
4653
5224
|
TrailARN: (0, smithy_client_1.expectString)(output.TrailARN),
|
|
4654
5225
|
};
|
|
4655
5226
|
};
|
|
5227
|
+
const deserializeAws_json1_1PutResourcePolicyResponse = (output, context) => {
|
|
5228
|
+
return {
|
|
5229
|
+
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
5230
|
+
ResourcePolicy: (0, smithy_client_1.expectString)(output.ResourcePolicy),
|
|
5231
|
+
};
|
|
5232
|
+
};
|
|
4656
5233
|
const deserializeAws_json1_1Queries = (output, context) => {
|
|
4657
5234
|
const retVal = (output || [])
|
|
4658
5235
|
.filter((e) => e != null)
|
|
@@ -4739,6 +5316,11 @@ const deserializeAws_json1_1Resource = (output, context) => {
|
|
|
4739
5316
|
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
4740
5317
|
};
|
|
4741
5318
|
};
|
|
5319
|
+
const deserializeAws_json1_1ResourceARNNotValidException = (output, context) => {
|
|
5320
|
+
return {
|
|
5321
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
5322
|
+
};
|
|
5323
|
+
};
|
|
4742
5324
|
const deserializeAws_json1_1ResourceList = (output, context) => {
|
|
4743
5325
|
const retVal = (output || [])
|
|
4744
5326
|
.filter((e) => e != null)
|
|
@@ -4755,6 +5337,16 @@ const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
|
4755
5337
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4756
5338
|
};
|
|
4757
5339
|
};
|
|
5340
|
+
const deserializeAws_json1_1ResourcePolicyNotFoundException = (output, context) => {
|
|
5341
|
+
return {
|
|
5342
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
5343
|
+
};
|
|
5344
|
+
};
|
|
5345
|
+
const deserializeAws_json1_1ResourcePolicyNotValidException = (output, context) => {
|
|
5346
|
+
return {
|
|
5347
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
5348
|
+
};
|
|
5349
|
+
};
|
|
4758
5350
|
const deserializeAws_json1_1ResourceTag = (output, context) => {
|
|
4759
5351
|
return {
|
|
4760
5352
|
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
@@ -4963,6 +5555,14 @@ const deserializeAws_json1_1UnsupportedOperationException = (output, context) =>
|
|
|
4963
5555
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4964
5556
|
};
|
|
4965
5557
|
};
|
|
5558
|
+
const deserializeAws_json1_1UpdateChannelResponse = (output, context) => {
|
|
5559
|
+
return {
|
|
5560
|
+
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
5561
|
+
Destinations: output.Destinations != null ? deserializeAws_json1_1Destinations(output.Destinations, context) : undefined,
|
|
5562
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5563
|
+
Source: (0, smithy_client_1.expectString)(output.Source),
|
|
5564
|
+
};
|
|
5565
|
+
};
|
|
4966
5566
|
const deserializeAws_json1_1UpdateEventDataStoreResponse = (output, context) => {
|
|
4967
5567
|
return {
|
|
4968
5568
|
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|