@aws-sdk/client-cloudtrail 3.171.0 → 3.178.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist-cjs/CloudTrail.js +75 -0
- package/dist-cjs/commands/GetImportCommand.js +36 -0
- package/dist-cjs/commands/ListImportFailuresCommand.js +36 -0
- package/dist-cjs/commands/ListImportsCommand.js +36 -0
- package/dist-cjs/commands/StartImportCommand.js +36 -0
- package/dist-cjs/commands/StopImportCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +148 -3
- package/dist-cjs/pagination/ListImportFailuresPaginator.js +36 -0
- package/dist-cjs/pagination/ListImportsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_json1_1.js +575 -2
- package/dist-es/CloudTrail.js +75 -0
- package/dist-es/commands/GetImportCommand.js +39 -0
- package/dist-es/commands/ListImportFailuresCommand.js +39 -0
- package/dist-es/commands/ListImportsCommand.js +39 -0
- package/dist-es/commands/StartImportCommand.js +39 -0
- package/dist-es/commands/StopImportCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +94 -0
- package/dist-es/pagination/ListImportFailuresPaginator.js +75 -0
- package/dist-es/pagination/ListImportsPaginator.js +75 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_json1_1.js +722 -60
- package/dist-types/CloudTrail.d.ts +71 -4
- package/dist-types/CloudTrailClient.d.ts +7 -2
- package/dist-types/commands/GetEventSelectorsCommand.d.ts +15 -2
- package/dist-types/commands/GetImportCommand.d.ts +37 -0
- package/dist-types/commands/ListImportFailuresCommand.d.ts +37 -0
- package/dist-types/commands/ListImportsCommand.d.ts +37 -0
- package/dist-types/commands/PutEventSelectorsCommand.d.ts +3 -2
- package/dist-types/commands/StartImportCommand.d.ts +45 -0
- package/dist-types/commands/StopImportCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +602 -4
- package/dist-types/pagination/ListImportFailuresPaginator.d.ts +4 -0
- package/dist-types/pagination/ListImportsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +15 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/CloudTrail.d.ts +85 -0
- package/dist-types/ts3.4/CloudTrailClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/GetImportCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/ListImportFailuresCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListImportsCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/StartImportCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/StopImportCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +197 -0
- package/dist-types/ts3.4/pagination/ListImportFailuresPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListImportsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +60 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +3 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -1
- package/package.json +26 -26
|
@@ -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_1StartQueryCommand = exports.deserializeAws_json1_1StartLoggingCommand = exports.deserializeAws_json1_1RestoreEventDataStoreCommand = exports.deserializeAws_json1_1RemoveTagsCommand = exports.deserializeAws_json1_1PutInsightSelectorsCommand = exports.deserializeAws_json1_1PutEventSelectorsCommand = exports.deserializeAws_json1_1LookupEventsCommand = exports.deserializeAws_json1_1ListTrailsCommand = exports.deserializeAws_json1_1ListTagsCommand = void 0;
|
|
3
|
+
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_1DeleteTrailCommand = exports.deserializeAws_json1_1DeleteEventDataStoreCommand = exports.deserializeAws_json1_1CreateTrailCommand = exports.deserializeAws_json1_1CreateEventDataStoreCommand = exports.deserializeAws_json1_1CancelQueryCommand = exports.deserializeAws_json1_1AddTagsCommand = exports.serializeAws_json1_1UpdateTrailCommand = exports.serializeAws_json1_1UpdateEventDataStoreCommand = 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_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_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_1DeleteTrailCommand = exports.serializeAws_json1_1DeleteEventDataStoreCommand = exports.serializeAws_json1_1CreateTrailCommand = exports.serializeAws_json1_1CreateEventDataStoreCommand = exports.serializeAws_json1_1CancelQueryCommand = exports.serializeAws_json1_1AddTagsCommand = void 0;
|
|
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_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 = 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");
|
|
@@ -116,6 +116,16 @@ const serializeAws_json1_1GetEventSelectorsCommand = async (input, context) => {
|
|
|
116
116
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
117
|
};
|
|
118
118
|
exports.serializeAws_json1_1GetEventSelectorsCommand = serializeAws_json1_1GetEventSelectorsCommand;
|
|
119
|
+
const serializeAws_json1_1GetImportCommand = async (input, context) => {
|
|
120
|
+
const headers = {
|
|
121
|
+
"content-type": "application/x-amz-json-1.1",
|
|
122
|
+
"x-amz-target": "CloudTrail_20131101.GetImport",
|
|
123
|
+
};
|
|
124
|
+
let body;
|
|
125
|
+
body = JSON.stringify(serializeAws_json1_1GetImportRequest(input, context));
|
|
126
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
|
+
};
|
|
128
|
+
exports.serializeAws_json1_1GetImportCommand = serializeAws_json1_1GetImportCommand;
|
|
119
129
|
const serializeAws_json1_1GetInsightSelectorsCommand = async (input, context) => {
|
|
120
130
|
const headers = {
|
|
121
131
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -176,6 +186,26 @@ const serializeAws_json1_1ListEventDataStoresCommand = async (input, context) =>
|
|
|
176
186
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
187
|
};
|
|
178
188
|
exports.serializeAws_json1_1ListEventDataStoresCommand = serializeAws_json1_1ListEventDataStoresCommand;
|
|
189
|
+
const serializeAws_json1_1ListImportFailuresCommand = async (input, context) => {
|
|
190
|
+
const headers = {
|
|
191
|
+
"content-type": "application/x-amz-json-1.1",
|
|
192
|
+
"x-amz-target": "CloudTrail_20131101.ListImportFailures",
|
|
193
|
+
};
|
|
194
|
+
let body;
|
|
195
|
+
body = JSON.stringify(serializeAws_json1_1ListImportFailuresRequest(input, context));
|
|
196
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
+
};
|
|
198
|
+
exports.serializeAws_json1_1ListImportFailuresCommand = serializeAws_json1_1ListImportFailuresCommand;
|
|
199
|
+
const serializeAws_json1_1ListImportsCommand = async (input, context) => {
|
|
200
|
+
const headers = {
|
|
201
|
+
"content-type": "application/x-amz-json-1.1",
|
|
202
|
+
"x-amz-target": "CloudTrail_20131101.ListImports",
|
|
203
|
+
};
|
|
204
|
+
let body;
|
|
205
|
+
body = JSON.stringify(serializeAws_json1_1ListImportsRequest(input, context));
|
|
206
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
|
+
};
|
|
208
|
+
exports.serializeAws_json1_1ListImportsCommand = serializeAws_json1_1ListImportsCommand;
|
|
179
209
|
const serializeAws_json1_1ListPublicKeysCommand = async (input, context) => {
|
|
180
210
|
const headers = {
|
|
181
211
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -266,6 +296,16 @@ const serializeAws_json1_1RestoreEventDataStoreCommand = async (input, context)
|
|
|
266
296
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
297
|
};
|
|
268
298
|
exports.serializeAws_json1_1RestoreEventDataStoreCommand = serializeAws_json1_1RestoreEventDataStoreCommand;
|
|
299
|
+
const serializeAws_json1_1StartImportCommand = async (input, context) => {
|
|
300
|
+
const headers = {
|
|
301
|
+
"content-type": "application/x-amz-json-1.1",
|
|
302
|
+
"x-amz-target": "CloudTrail_20131101.StartImport",
|
|
303
|
+
};
|
|
304
|
+
let body;
|
|
305
|
+
body = JSON.stringify(serializeAws_json1_1StartImportRequest(input, context));
|
|
306
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
307
|
+
};
|
|
308
|
+
exports.serializeAws_json1_1StartImportCommand = serializeAws_json1_1StartImportCommand;
|
|
269
309
|
const serializeAws_json1_1StartLoggingCommand = async (input, context) => {
|
|
270
310
|
const headers = {
|
|
271
311
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -286,6 +326,16 @@ const serializeAws_json1_1StartQueryCommand = async (input, context) => {
|
|
|
286
326
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
327
|
};
|
|
288
328
|
exports.serializeAws_json1_1StartQueryCommand = serializeAws_json1_1StartQueryCommand;
|
|
329
|
+
const serializeAws_json1_1StopImportCommand = async (input, context) => {
|
|
330
|
+
const headers = {
|
|
331
|
+
"content-type": "application/x-amz-json-1.1",
|
|
332
|
+
"x-amz-target": "CloudTrail_20131101.StopImport",
|
|
333
|
+
};
|
|
334
|
+
let body;
|
|
335
|
+
body = JSON.stringify(serializeAws_json1_1StopImportRequest(input, context));
|
|
336
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
|
+
};
|
|
338
|
+
exports.serializeAws_json1_1StopImportCommand = serializeAws_json1_1StopImportCommand;
|
|
289
339
|
const serializeAws_json1_1StopLoggingCommand = async (input, context) => {
|
|
290
340
|
const headers = {
|
|
291
341
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -650,6 +700,9 @@ const deserializeAws_json1_1DeleteEventDataStoreCommandError = async (output, co
|
|
|
650
700
|
case "EventDataStoreARNInvalidException":
|
|
651
701
|
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
652
702
|
throw await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context);
|
|
703
|
+
case "EventDataStoreHasOngoingImportException":
|
|
704
|
+
case "com.amazonaws.cloudtrail#EventDataStoreHasOngoingImportException":
|
|
705
|
+
throw await deserializeAws_json1_1EventDataStoreHasOngoingImportExceptionResponse(parsedOutput, context);
|
|
653
706
|
case "EventDataStoreNotFoundException":
|
|
654
707
|
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
655
708
|
throw await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -960,6 +1013,49 @@ const deserializeAws_json1_1GetEventSelectorsCommandError = async (output, conte
|
|
|
960
1013
|
});
|
|
961
1014
|
}
|
|
962
1015
|
};
|
|
1016
|
+
const deserializeAws_json1_1GetImportCommand = async (output, context) => {
|
|
1017
|
+
if (output.statusCode >= 300) {
|
|
1018
|
+
return deserializeAws_json1_1GetImportCommandError(output, context);
|
|
1019
|
+
}
|
|
1020
|
+
const data = await parseBody(output.body, context);
|
|
1021
|
+
let contents = {};
|
|
1022
|
+
contents = deserializeAws_json1_1GetImportResponse(data, context);
|
|
1023
|
+
const response = {
|
|
1024
|
+
$metadata: deserializeMetadata(output),
|
|
1025
|
+
...contents,
|
|
1026
|
+
};
|
|
1027
|
+
return Promise.resolve(response);
|
|
1028
|
+
};
|
|
1029
|
+
exports.deserializeAws_json1_1GetImportCommand = deserializeAws_json1_1GetImportCommand;
|
|
1030
|
+
const deserializeAws_json1_1GetImportCommandError = async (output, context) => {
|
|
1031
|
+
const parsedOutput = {
|
|
1032
|
+
...output,
|
|
1033
|
+
body: await parseBody(output.body, context),
|
|
1034
|
+
};
|
|
1035
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1036
|
+
switch (errorCode) {
|
|
1037
|
+
case "ImportNotFoundException":
|
|
1038
|
+
case "com.amazonaws.cloudtrail#ImportNotFoundException":
|
|
1039
|
+
throw await deserializeAws_json1_1ImportNotFoundExceptionResponse(parsedOutput, context);
|
|
1040
|
+
case "InvalidParameterException":
|
|
1041
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1042
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1043
|
+
case "OperationNotPermittedException":
|
|
1044
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1045
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
1046
|
+
case "UnsupportedOperationException":
|
|
1047
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1048
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1049
|
+
default:
|
|
1050
|
+
const parsedBody = parsedOutput.body;
|
|
1051
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1052
|
+
output,
|
|
1053
|
+
parsedBody,
|
|
1054
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1055
|
+
errorCode,
|
|
1056
|
+
});
|
|
1057
|
+
}
|
|
1058
|
+
};
|
|
963
1059
|
const deserializeAws_json1_1GetInsightSelectorsCommand = async (output, context) => {
|
|
964
1060
|
if (output.statusCode >= 300) {
|
|
965
1061
|
return deserializeAws_json1_1GetInsightSelectorsCommandError(output, context);
|
|
@@ -1233,6 +1329,92 @@ const deserializeAws_json1_1ListEventDataStoresCommandError = async (output, con
|
|
|
1233
1329
|
});
|
|
1234
1330
|
}
|
|
1235
1331
|
};
|
|
1332
|
+
const deserializeAws_json1_1ListImportFailuresCommand = async (output, context) => {
|
|
1333
|
+
if (output.statusCode >= 300) {
|
|
1334
|
+
return deserializeAws_json1_1ListImportFailuresCommandError(output, context);
|
|
1335
|
+
}
|
|
1336
|
+
const data = await parseBody(output.body, context);
|
|
1337
|
+
let contents = {};
|
|
1338
|
+
contents = deserializeAws_json1_1ListImportFailuresResponse(data, context);
|
|
1339
|
+
const response = {
|
|
1340
|
+
$metadata: deserializeMetadata(output),
|
|
1341
|
+
...contents,
|
|
1342
|
+
};
|
|
1343
|
+
return Promise.resolve(response);
|
|
1344
|
+
};
|
|
1345
|
+
exports.deserializeAws_json1_1ListImportFailuresCommand = deserializeAws_json1_1ListImportFailuresCommand;
|
|
1346
|
+
const deserializeAws_json1_1ListImportFailuresCommandError = async (output, context) => {
|
|
1347
|
+
const parsedOutput = {
|
|
1348
|
+
...output,
|
|
1349
|
+
body: await parseBody(output.body, context),
|
|
1350
|
+
};
|
|
1351
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1352
|
+
switch (errorCode) {
|
|
1353
|
+
case "InvalidNextTokenException":
|
|
1354
|
+
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
1355
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1356
|
+
case "OperationNotPermittedException":
|
|
1357
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1358
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
1359
|
+
case "UnsupportedOperationException":
|
|
1360
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1361
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1362
|
+
default:
|
|
1363
|
+
const parsedBody = parsedOutput.body;
|
|
1364
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1365
|
+
output,
|
|
1366
|
+
parsedBody,
|
|
1367
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1368
|
+
errorCode,
|
|
1369
|
+
});
|
|
1370
|
+
}
|
|
1371
|
+
};
|
|
1372
|
+
const deserializeAws_json1_1ListImportsCommand = async (output, context) => {
|
|
1373
|
+
if (output.statusCode >= 300) {
|
|
1374
|
+
return deserializeAws_json1_1ListImportsCommandError(output, context);
|
|
1375
|
+
}
|
|
1376
|
+
const data = await parseBody(output.body, context);
|
|
1377
|
+
let contents = {};
|
|
1378
|
+
contents = deserializeAws_json1_1ListImportsResponse(data, context);
|
|
1379
|
+
const response = {
|
|
1380
|
+
$metadata: deserializeMetadata(output),
|
|
1381
|
+
...contents,
|
|
1382
|
+
};
|
|
1383
|
+
return Promise.resolve(response);
|
|
1384
|
+
};
|
|
1385
|
+
exports.deserializeAws_json1_1ListImportsCommand = deserializeAws_json1_1ListImportsCommand;
|
|
1386
|
+
const deserializeAws_json1_1ListImportsCommandError = async (output, context) => {
|
|
1387
|
+
const parsedOutput = {
|
|
1388
|
+
...output,
|
|
1389
|
+
body: await parseBody(output.body, context),
|
|
1390
|
+
};
|
|
1391
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1392
|
+
switch (errorCode) {
|
|
1393
|
+
case "EventDataStoreARNInvalidException":
|
|
1394
|
+
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
1395
|
+
throw await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context);
|
|
1396
|
+
case "InvalidNextTokenException":
|
|
1397
|
+
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
1398
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1399
|
+
case "InvalidParameterException":
|
|
1400
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1401
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1402
|
+
case "OperationNotPermittedException":
|
|
1403
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1404
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
1405
|
+
case "UnsupportedOperationException":
|
|
1406
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1407
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1408
|
+
default:
|
|
1409
|
+
const parsedBody = parsedOutput.body;
|
|
1410
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1411
|
+
output,
|
|
1412
|
+
parsedBody,
|
|
1413
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1414
|
+
errorCode,
|
|
1415
|
+
});
|
|
1416
|
+
}
|
|
1417
|
+
};
|
|
1236
1418
|
const deserializeAws_json1_1ListPublicKeysCommand = async (output, context) => {
|
|
1237
1419
|
if (output.statusCode >= 300) {
|
|
1238
1420
|
return deserializeAws_json1_1ListPublicKeysCommandError(output, context);
|
|
@@ -1731,6 +1913,70 @@ const deserializeAws_json1_1RestoreEventDataStoreCommandError = async (output, c
|
|
|
1731
1913
|
});
|
|
1732
1914
|
}
|
|
1733
1915
|
};
|
|
1916
|
+
const deserializeAws_json1_1StartImportCommand = async (output, context) => {
|
|
1917
|
+
if (output.statusCode >= 300) {
|
|
1918
|
+
return deserializeAws_json1_1StartImportCommandError(output, context);
|
|
1919
|
+
}
|
|
1920
|
+
const data = await parseBody(output.body, context);
|
|
1921
|
+
let contents = {};
|
|
1922
|
+
contents = deserializeAws_json1_1StartImportResponse(data, context);
|
|
1923
|
+
const response = {
|
|
1924
|
+
$metadata: deserializeMetadata(output),
|
|
1925
|
+
...contents,
|
|
1926
|
+
};
|
|
1927
|
+
return Promise.resolve(response);
|
|
1928
|
+
};
|
|
1929
|
+
exports.deserializeAws_json1_1StartImportCommand = deserializeAws_json1_1StartImportCommand;
|
|
1930
|
+
const deserializeAws_json1_1StartImportCommandError = async (output, context) => {
|
|
1931
|
+
const parsedOutput = {
|
|
1932
|
+
...output,
|
|
1933
|
+
body: await parseBody(output.body, context),
|
|
1934
|
+
};
|
|
1935
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1936
|
+
switch (errorCode) {
|
|
1937
|
+
case "AccountHasOngoingImportException":
|
|
1938
|
+
case "com.amazonaws.cloudtrail#AccountHasOngoingImportException":
|
|
1939
|
+
throw await deserializeAws_json1_1AccountHasOngoingImportExceptionResponse(parsedOutput, context);
|
|
1940
|
+
case "EventDataStoreARNInvalidException":
|
|
1941
|
+
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
1942
|
+
throw await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context);
|
|
1943
|
+
case "EventDataStoreNotFoundException":
|
|
1944
|
+
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
1945
|
+
throw await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context);
|
|
1946
|
+
case "ImportNotFoundException":
|
|
1947
|
+
case "com.amazonaws.cloudtrail#ImportNotFoundException":
|
|
1948
|
+
throw await deserializeAws_json1_1ImportNotFoundExceptionResponse(parsedOutput, context);
|
|
1949
|
+
case "InactiveEventDataStoreException":
|
|
1950
|
+
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
1951
|
+
throw await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context);
|
|
1952
|
+
case "InvalidEventDataStoreCategoryException":
|
|
1953
|
+
case "com.amazonaws.cloudtrail#InvalidEventDataStoreCategoryException":
|
|
1954
|
+
throw await deserializeAws_json1_1InvalidEventDataStoreCategoryExceptionResponse(parsedOutput, context);
|
|
1955
|
+
case "InvalidEventDataStoreStatusException":
|
|
1956
|
+
case "com.amazonaws.cloudtrail#InvalidEventDataStoreStatusException":
|
|
1957
|
+
throw await deserializeAws_json1_1InvalidEventDataStoreStatusExceptionResponse(parsedOutput, context);
|
|
1958
|
+
case "InvalidImportSourceException":
|
|
1959
|
+
case "com.amazonaws.cloudtrail#InvalidImportSourceException":
|
|
1960
|
+
throw await deserializeAws_json1_1InvalidImportSourceExceptionResponse(parsedOutput, context);
|
|
1961
|
+
case "InvalidParameterException":
|
|
1962
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1963
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1964
|
+
case "OperationNotPermittedException":
|
|
1965
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1966
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
1967
|
+
case "UnsupportedOperationException":
|
|
1968
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1969
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1970
|
+
default:
|
|
1971
|
+
const parsedBody = parsedOutput.body;
|
|
1972
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1973
|
+
output,
|
|
1974
|
+
parsedBody,
|
|
1975
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1976
|
+
errorCode,
|
|
1977
|
+
});
|
|
1978
|
+
}
|
|
1979
|
+
};
|
|
1734
1980
|
const deserializeAws_json1_1StartLoggingCommand = async (output, context) => {
|
|
1735
1981
|
if (output.statusCode >= 300) {
|
|
1736
1982
|
return deserializeAws_json1_1StartLoggingCommandError(output, context);
|
|
@@ -1838,6 +2084,49 @@ const deserializeAws_json1_1StartQueryCommandError = async (output, context) =>
|
|
|
1838
2084
|
});
|
|
1839
2085
|
}
|
|
1840
2086
|
};
|
|
2087
|
+
const deserializeAws_json1_1StopImportCommand = async (output, context) => {
|
|
2088
|
+
if (output.statusCode >= 300) {
|
|
2089
|
+
return deserializeAws_json1_1StopImportCommandError(output, context);
|
|
2090
|
+
}
|
|
2091
|
+
const data = await parseBody(output.body, context);
|
|
2092
|
+
let contents = {};
|
|
2093
|
+
contents = deserializeAws_json1_1StopImportResponse(data, context);
|
|
2094
|
+
const response = {
|
|
2095
|
+
$metadata: deserializeMetadata(output),
|
|
2096
|
+
...contents,
|
|
2097
|
+
};
|
|
2098
|
+
return Promise.resolve(response);
|
|
2099
|
+
};
|
|
2100
|
+
exports.deserializeAws_json1_1StopImportCommand = deserializeAws_json1_1StopImportCommand;
|
|
2101
|
+
const deserializeAws_json1_1StopImportCommandError = async (output, context) => {
|
|
2102
|
+
const parsedOutput = {
|
|
2103
|
+
...output,
|
|
2104
|
+
body: await parseBody(output.body, context),
|
|
2105
|
+
};
|
|
2106
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2107
|
+
switch (errorCode) {
|
|
2108
|
+
case "ImportNotFoundException":
|
|
2109
|
+
case "com.amazonaws.cloudtrail#ImportNotFoundException":
|
|
2110
|
+
throw await deserializeAws_json1_1ImportNotFoundExceptionResponse(parsedOutput, context);
|
|
2111
|
+
case "InvalidParameterException":
|
|
2112
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2113
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2114
|
+
case "OperationNotPermittedException":
|
|
2115
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2116
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
2117
|
+
case "UnsupportedOperationException":
|
|
2118
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2119
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2120
|
+
default:
|
|
2121
|
+
const parsedBody = parsedOutput.body;
|
|
2122
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2123
|
+
output,
|
|
2124
|
+
parsedBody,
|
|
2125
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
2126
|
+
errorCode,
|
|
2127
|
+
});
|
|
2128
|
+
}
|
|
2129
|
+
};
|
|
1841
2130
|
const deserializeAws_json1_1StopLoggingCommand = async (output, context) => {
|
|
1842
2131
|
if (output.statusCode >= 300) {
|
|
1843
2132
|
return deserializeAws_json1_1StopLoggingCommandError(output, context);
|
|
@@ -1917,6 +2206,9 @@ const deserializeAws_json1_1UpdateEventDataStoreCommandError = async (output, co
|
|
|
1917
2206
|
case "EventDataStoreARNInvalidException":
|
|
1918
2207
|
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
1919
2208
|
throw await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context);
|
|
2209
|
+
case "EventDataStoreHasOngoingImportException":
|
|
2210
|
+
case "com.amazonaws.cloudtrail#EventDataStoreHasOngoingImportException":
|
|
2211
|
+
throw await deserializeAws_json1_1EventDataStoreHasOngoingImportExceptionResponse(parsedOutput, context);
|
|
1920
2212
|
case "EventDataStoreNotFoundException":
|
|
1921
2213
|
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
1922
2214
|
throw await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -2069,6 +2361,15 @@ const deserializeAws_json1_1UpdateTrailCommandError = async (output, context) =>
|
|
|
2069
2361
|
});
|
|
2070
2362
|
}
|
|
2071
2363
|
};
|
|
2364
|
+
const deserializeAws_json1_1AccountHasOngoingImportExceptionResponse = async (parsedOutput, context) => {
|
|
2365
|
+
const body = parsedOutput.body;
|
|
2366
|
+
const deserialized = deserializeAws_json1_1AccountHasOngoingImportException(body, context);
|
|
2367
|
+
const exception = new models_0_1.AccountHasOngoingImportException({
|
|
2368
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2369
|
+
...deserialized,
|
|
2370
|
+
});
|
|
2371
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2372
|
+
};
|
|
2072
2373
|
const deserializeAws_json1_1ChannelARNInvalidExceptionResponse = async (parsedOutput, context) => {
|
|
2073
2374
|
const body = parsedOutput.body;
|
|
2074
2375
|
const deserialized = deserializeAws_json1_1ChannelARNInvalidException(body, context);
|
|
@@ -2150,6 +2451,15 @@ const deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse = async (p
|
|
|
2150
2451
|
});
|
|
2151
2452
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2152
2453
|
};
|
|
2454
|
+
const deserializeAws_json1_1EventDataStoreHasOngoingImportExceptionResponse = async (parsedOutput, context) => {
|
|
2455
|
+
const body = parsedOutput.body;
|
|
2456
|
+
const deserialized = deserializeAws_json1_1EventDataStoreHasOngoingImportException(body, context);
|
|
2457
|
+
const exception = new models_0_1.EventDataStoreHasOngoingImportException({
|
|
2458
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2459
|
+
...deserialized,
|
|
2460
|
+
});
|
|
2461
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2462
|
+
};
|
|
2153
2463
|
const deserializeAws_json1_1EventDataStoreMaxLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2154
2464
|
const body = parsedOutput.body;
|
|
2155
2465
|
const deserialized = deserializeAws_json1_1EventDataStoreMaxLimitExceededException(body, context);
|
|
@@ -2177,6 +2487,15 @@ const deserializeAws_json1_1EventDataStoreTerminationProtectedExceptionResponse
|
|
|
2177
2487
|
});
|
|
2178
2488
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2179
2489
|
};
|
|
2490
|
+
const deserializeAws_json1_1ImportNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2491
|
+
const body = parsedOutput.body;
|
|
2492
|
+
const deserialized = deserializeAws_json1_1ImportNotFoundException(body, context);
|
|
2493
|
+
const exception = new models_0_1.ImportNotFoundException({
|
|
2494
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2495
|
+
...deserialized,
|
|
2496
|
+
});
|
|
2497
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2498
|
+
};
|
|
2180
2499
|
const deserializeAws_json1_1InactiveEventDataStoreExceptionResponse = async (parsedOutput, context) => {
|
|
2181
2500
|
const body = parsedOutput.body;
|
|
2182
2501
|
const deserialized = deserializeAws_json1_1InactiveEventDataStoreException(body, context);
|
|
@@ -2276,6 +2595,15 @@ const deserializeAws_json1_1InvalidEventCategoryExceptionResponse = async (parse
|
|
|
2276
2595
|
});
|
|
2277
2596
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2278
2597
|
};
|
|
2598
|
+
const deserializeAws_json1_1InvalidEventDataStoreCategoryExceptionResponse = async (parsedOutput, context) => {
|
|
2599
|
+
const body = parsedOutput.body;
|
|
2600
|
+
const deserialized = deserializeAws_json1_1InvalidEventDataStoreCategoryException(body, context);
|
|
2601
|
+
const exception = new models_0_1.InvalidEventDataStoreCategoryException({
|
|
2602
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2603
|
+
...deserialized,
|
|
2604
|
+
});
|
|
2605
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2606
|
+
};
|
|
2279
2607
|
const deserializeAws_json1_1InvalidEventDataStoreStatusExceptionResponse = async (parsedOutput, context) => {
|
|
2280
2608
|
const body = parsedOutput.body;
|
|
2281
2609
|
const deserialized = deserializeAws_json1_1InvalidEventDataStoreStatusException(body, context);
|
|
@@ -2303,6 +2631,15 @@ const deserializeAws_json1_1InvalidHomeRegionExceptionResponse = async (parsedOu
|
|
|
2303
2631
|
});
|
|
2304
2632
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2305
2633
|
};
|
|
2634
|
+
const deserializeAws_json1_1InvalidImportSourceExceptionResponse = async (parsedOutput, context) => {
|
|
2635
|
+
const body = parsedOutput.body;
|
|
2636
|
+
const deserialized = deserializeAws_json1_1InvalidImportSourceException(body, context);
|
|
2637
|
+
const exception = new models_0_1.InvalidImportSourceException({
|
|
2638
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2639
|
+
...deserialized,
|
|
2640
|
+
});
|
|
2641
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2642
|
+
};
|
|
2306
2643
|
const deserializeAws_json1_1InvalidInsightSelectorsExceptionResponse = async (parsedOutput, context) => {
|
|
2307
2644
|
const body = parsedOutput.body;
|
|
2308
2645
|
const deserialized = deserializeAws_json1_1InvalidInsightSelectorsException(body, context);
|
|
@@ -2770,6 +3107,11 @@ const serializeAws_json1_1GetEventSelectorsRequest = (input, context) => {
|
|
|
2770
3107
|
...(input.TrailName != null && { TrailName: input.TrailName }),
|
|
2771
3108
|
};
|
|
2772
3109
|
};
|
|
3110
|
+
const serializeAws_json1_1GetImportRequest = (input, context) => {
|
|
3111
|
+
return {
|
|
3112
|
+
...(input.ImportId != null && { ImportId: input.ImportId }),
|
|
3113
|
+
};
|
|
3114
|
+
};
|
|
2773
3115
|
const serializeAws_json1_1GetInsightSelectorsRequest = (input, context) => {
|
|
2774
3116
|
return {
|
|
2775
3117
|
...(input.TrailName != null && { TrailName: input.TrailName }),
|
|
@@ -2793,6 +3135,18 @@ const serializeAws_json1_1GetTrailStatusRequest = (input, context) => {
|
|
|
2793
3135
|
...(input.Name != null && { Name: input.Name }),
|
|
2794
3136
|
};
|
|
2795
3137
|
};
|
|
3138
|
+
const serializeAws_json1_1ImportDestinations = (input, context) => {
|
|
3139
|
+
return input
|
|
3140
|
+
.filter((e) => e != null)
|
|
3141
|
+
.map((entry) => {
|
|
3142
|
+
return entry;
|
|
3143
|
+
});
|
|
3144
|
+
};
|
|
3145
|
+
const serializeAws_json1_1ImportSource = (input, context) => {
|
|
3146
|
+
return {
|
|
3147
|
+
...(input.S3 != null && { S3: serializeAws_json1_1S3ImportSource(input.S3, context) }),
|
|
3148
|
+
};
|
|
3149
|
+
};
|
|
2796
3150
|
const serializeAws_json1_1InsightSelector = (input, context) => {
|
|
2797
3151
|
return {
|
|
2798
3152
|
...(input.InsightType != null && { InsightType: input.InsightType }),
|
|
@@ -2817,6 +3171,21 @@ const serializeAws_json1_1ListEventDataStoresRequest = (input, context) => {
|
|
|
2817
3171
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2818
3172
|
};
|
|
2819
3173
|
};
|
|
3174
|
+
const serializeAws_json1_1ListImportFailuresRequest = (input, context) => {
|
|
3175
|
+
return {
|
|
3176
|
+
...(input.ImportId != null && { ImportId: input.ImportId }),
|
|
3177
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3178
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3179
|
+
};
|
|
3180
|
+
};
|
|
3181
|
+
const serializeAws_json1_1ListImportsRequest = (input, context) => {
|
|
3182
|
+
return {
|
|
3183
|
+
...(input.Destination != null && { Destination: input.Destination }),
|
|
3184
|
+
...(input.ImportStatus != null && { ImportStatus: input.ImportStatus }),
|
|
3185
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3186
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3187
|
+
};
|
|
3188
|
+
};
|
|
2820
3189
|
const serializeAws_json1_1ListPublicKeysRequest = (input, context) => {
|
|
2821
3190
|
return {
|
|
2822
3191
|
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
@@ -2916,6 +3285,24 @@ const serializeAws_json1_1RestoreEventDataStoreRequest = (input, context) => {
|
|
|
2916
3285
|
...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
|
|
2917
3286
|
};
|
|
2918
3287
|
};
|
|
3288
|
+
const serializeAws_json1_1S3ImportSource = (input, context) => {
|
|
3289
|
+
return {
|
|
3290
|
+
...(input.S3BucketAccessRoleArn != null && { S3BucketAccessRoleArn: input.S3BucketAccessRoleArn }),
|
|
3291
|
+
...(input.S3BucketRegion != null && { S3BucketRegion: input.S3BucketRegion }),
|
|
3292
|
+
...(input.S3LocationUri != null && { S3LocationUri: input.S3LocationUri }),
|
|
3293
|
+
};
|
|
3294
|
+
};
|
|
3295
|
+
const serializeAws_json1_1StartImportRequest = (input, context) => {
|
|
3296
|
+
return {
|
|
3297
|
+
...(input.Destinations != null && {
|
|
3298
|
+
Destinations: serializeAws_json1_1ImportDestinations(input.Destinations, context),
|
|
3299
|
+
}),
|
|
3300
|
+
...(input.EndEventTime != null && { EndEventTime: Math.round(input.EndEventTime.getTime() / 1000) }),
|
|
3301
|
+
...(input.ImportId != null && { ImportId: input.ImportId }),
|
|
3302
|
+
...(input.ImportSource != null && { ImportSource: serializeAws_json1_1ImportSource(input.ImportSource, context) }),
|
|
3303
|
+
...(input.StartEventTime != null && { StartEventTime: Math.round(input.StartEventTime.getTime() / 1000) }),
|
|
3304
|
+
};
|
|
3305
|
+
};
|
|
2919
3306
|
const serializeAws_json1_1StartLoggingRequest = (input, context) => {
|
|
2920
3307
|
return {
|
|
2921
3308
|
...(input.Name != null && { Name: input.Name }),
|
|
@@ -2926,6 +3313,11 @@ const serializeAws_json1_1StartQueryRequest = (input, context) => {
|
|
|
2926
3313
|
...(input.QueryStatement != null && { QueryStatement: input.QueryStatement }),
|
|
2927
3314
|
};
|
|
2928
3315
|
};
|
|
3316
|
+
const serializeAws_json1_1StopImportRequest = (input, context) => {
|
|
3317
|
+
return {
|
|
3318
|
+
...(input.ImportId != null && { ImportId: input.ImportId }),
|
|
3319
|
+
};
|
|
3320
|
+
};
|
|
2929
3321
|
const serializeAws_json1_1StopLoggingRequest = (input, context) => {
|
|
2930
3322
|
return {
|
|
2931
3323
|
...(input.Name != null && { Name: input.Name }),
|
|
@@ -2981,6 +3373,11 @@ const serializeAws_json1_1UpdateTrailRequest = (input, context) => {
|
|
|
2981
3373
|
...(input.SnsTopicName != null && { SnsTopicName: input.SnsTopicName }),
|
|
2982
3374
|
};
|
|
2983
3375
|
};
|
|
3376
|
+
const deserializeAws_json1_1AccountHasOngoingImportException = (output, context) => {
|
|
3377
|
+
return {
|
|
3378
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3379
|
+
};
|
|
3380
|
+
};
|
|
2984
3381
|
const deserializeAws_json1_1AddTagsResponse = (output, context) => {
|
|
2985
3382
|
return {};
|
|
2986
3383
|
};
|
|
@@ -3231,6 +3628,11 @@ const deserializeAws_json1_1EventDataStoreARNInvalidException = (output, context
|
|
|
3231
3628
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3232
3629
|
};
|
|
3233
3630
|
};
|
|
3631
|
+
const deserializeAws_json1_1EventDataStoreHasOngoingImportException = (output, context) => {
|
|
3632
|
+
return {
|
|
3633
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3634
|
+
};
|
|
3635
|
+
};
|
|
3234
3636
|
const deserializeAws_json1_1EventDataStoreMaxLimitExceededException = (output, context) => {
|
|
3235
3637
|
return {
|
|
3236
3638
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -3338,6 +3740,29 @@ const deserializeAws_json1_1GetEventSelectorsResponse = (output, context) => {
|
|
|
3338
3740
|
TrailARN: (0, smithy_client_1.expectString)(output.TrailARN),
|
|
3339
3741
|
};
|
|
3340
3742
|
};
|
|
3743
|
+
const deserializeAws_json1_1GetImportResponse = (output, context) => {
|
|
3744
|
+
return {
|
|
3745
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
3746
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
3747
|
+
: undefined,
|
|
3748
|
+
Destinations: output.Destinations != null ? deserializeAws_json1_1ImportDestinations(output.Destinations, context) : undefined,
|
|
3749
|
+
EndEventTime: output.EndEventTime != null
|
|
3750
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndEventTime)))
|
|
3751
|
+
: undefined,
|
|
3752
|
+
ImportId: (0, smithy_client_1.expectString)(output.ImportId),
|
|
3753
|
+
ImportSource: output.ImportSource != null ? deserializeAws_json1_1ImportSource(output.ImportSource, context) : undefined,
|
|
3754
|
+
ImportStatistics: output.ImportStatistics != null
|
|
3755
|
+
? deserializeAws_json1_1ImportStatistics(output.ImportStatistics, context)
|
|
3756
|
+
: undefined,
|
|
3757
|
+
ImportStatus: (0, smithy_client_1.expectString)(output.ImportStatus),
|
|
3758
|
+
StartEventTime: output.StartEventTime != null
|
|
3759
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartEventTime)))
|
|
3760
|
+
: undefined,
|
|
3761
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
3762
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTimestamp)))
|
|
3763
|
+
: undefined,
|
|
3764
|
+
};
|
|
3765
|
+
};
|
|
3341
3766
|
const deserializeAws_json1_1GetInsightSelectorsResponse = (output, context) => {
|
|
3342
3767
|
return {
|
|
3343
3768
|
InsightSelectors: output.InsightSelectors != null
|
|
@@ -3397,6 +3822,82 @@ const deserializeAws_json1_1GetTrailStatusResponse = (output, context) => {
|
|
|
3397
3822
|
TimeLoggingStopped: (0, smithy_client_1.expectString)(output.TimeLoggingStopped),
|
|
3398
3823
|
};
|
|
3399
3824
|
};
|
|
3825
|
+
const deserializeAws_json1_1ImportDestinations = (output, context) => {
|
|
3826
|
+
const retVal = (output || [])
|
|
3827
|
+
.filter((e) => e != null)
|
|
3828
|
+
.map((entry) => {
|
|
3829
|
+
if (entry === null) {
|
|
3830
|
+
return null;
|
|
3831
|
+
}
|
|
3832
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
3833
|
+
});
|
|
3834
|
+
return retVal;
|
|
3835
|
+
};
|
|
3836
|
+
const deserializeAws_json1_1ImportFailureList = (output, context) => {
|
|
3837
|
+
const retVal = (output || [])
|
|
3838
|
+
.filter((e) => e != null)
|
|
3839
|
+
.map((entry) => {
|
|
3840
|
+
if (entry === null) {
|
|
3841
|
+
return null;
|
|
3842
|
+
}
|
|
3843
|
+
return deserializeAws_json1_1ImportFailureListItem(entry, context);
|
|
3844
|
+
});
|
|
3845
|
+
return retVal;
|
|
3846
|
+
};
|
|
3847
|
+
const deserializeAws_json1_1ImportFailureListItem = (output, context) => {
|
|
3848
|
+
return {
|
|
3849
|
+
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
3850
|
+
ErrorType: (0, smithy_client_1.expectString)(output.ErrorType),
|
|
3851
|
+
LastUpdatedTime: output.LastUpdatedTime != null
|
|
3852
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
|
|
3853
|
+
: undefined,
|
|
3854
|
+
Location: (0, smithy_client_1.expectString)(output.Location),
|
|
3855
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3856
|
+
};
|
|
3857
|
+
};
|
|
3858
|
+
const deserializeAws_json1_1ImportNotFoundException = (output, context) => {
|
|
3859
|
+
return {
|
|
3860
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3861
|
+
};
|
|
3862
|
+
};
|
|
3863
|
+
const deserializeAws_json1_1ImportsList = (output, context) => {
|
|
3864
|
+
const retVal = (output || [])
|
|
3865
|
+
.filter((e) => e != null)
|
|
3866
|
+
.map((entry) => {
|
|
3867
|
+
if (entry === null) {
|
|
3868
|
+
return null;
|
|
3869
|
+
}
|
|
3870
|
+
return deserializeAws_json1_1ImportsListItem(entry, context);
|
|
3871
|
+
});
|
|
3872
|
+
return retVal;
|
|
3873
|
+
};
|
|
3874
|
+
const deserializeAws_json1_1ImportsListItem = (output, context) => {
|
|
3875
|
+
return {
|
|
3876
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
3877
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
3878
|
+
: undefined,
|
|
3879
|
+
Destinations: output.Destinations != null ? deserializeAws_json1_1ImportDestinations(output.Destinations, context) : undefined,
|
|
3880
|
+
ImportId: (0, smithy_client_1.expectString)(output.ImportId),
|
|
3881
|
+
ImportStatus: (0, smithy_client_1.expectString)(output.ImportStatus),
|
|
3882
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
3883
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTimestamp)))
|
|
3884
|
+
: undefined,
|
|
3885
|
+
};
|
|
3886
|
+
};
|
|
3887
|
+
const deserializeAws_json1_1ImportSource = (output, context) => {
|
|
3888
|
+
return {
|
|
3889
|
+
S3: output.S3 != null ? deserializeAws_json1_1S3ImportSource(output.S3, context) : undefined,
|
|
3890
|
+
};
|
|
3891
|
+
};
|
|
3892
|
+
const deserializeAws_json1_1ImportStatistics = (output, context) => {
|
|
3893
|
+
return {
|
|
3894
|
+
EventsCompleted: (0, smithy_client_1.expectLong)(output.EventsCompleted),
|
|
3895
|
+
FailedEntries: (0, smithy_client_1.expectLong)(output.FailedEntries),
|
|
3896
|
+
FilesCompleted: (0, smithy_client_1.expectLong)(output.FilesCompleted),
|
|
3897
|
+
PrefixesCompleted: (0, smithy_client_1.expectLong)(output.PrefixesCompleted),
|
|
3898
|
+
PrefixesFound: (0, smithy_client_1.expectLong)(output.PrefixesFound),
|
|
3899
|
+
};
|
|
3900
|
+
};
|
|
3400
3901
|
const deserializeAws_json1_1InactiveEventDataStoreException = (output, context) => {
|
|
3401
3902
|
return {
|
|
3402
3903
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -3468,6 +3969,11 @@ const deserializeAws_json1_1InvalidEventCategoryException = (output, context) =>
|
|
|
3468
3969
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3469
3970
|
};
|
|
3470
3971
|
};
|
|
3972
|
+
const deserializeAws_json1_1InvalidEventDataStoreCategoryException = (output, context) => {
|
|
3973
|
+
return {
|
|
3974
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3975
|
+
};
|
|
3976
|
+
};
|
|
3471
3977
|
const deserializeAws_json1_1InvalidEventDataStoreStatusException = (output, context) => {
|
|
3472
3978
|
return {
|
|
3473
3979
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -3483,6 +3989,11 @@ const deserializeAws_json1_1InvalidHomeRegionException = (output, context) => {
|
|
|
3483
3989
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3484
3990
|
};
|
|
3485
3991
|
};
|
|
3992
|
+
const deserializeAws_json1_1InvalidImportSourceException = (output, context) => {
|
|
3993
|
+
return {
|
|
3994
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3995
|
+
};
|
|
3996
|
+
};
|
|
3486
3997
|
const deserializeAws_json1_1InvalidInsightSelectorsException = (output, context) => {
|
|
3487
3998
|
return {
|
|
3488
3999
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -3592,6 +4103,18 @@ const deserializeAws_json1_1ListEventDataStoresResponse = (output, context) => {
|
|
|
3592
4103
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3593
4104
|
};
|
|
3594
4105
|
};
|
|
4106
|
+
const deserializeAws_json1_1ListImportFailuresResponse = (output, context) => {
|
|
4107
|
+
return {
|
|
4108
|
+
Failures: output.Failures != null ? deserializeAws_json1_1ImportFailureList(output.Failures, context) : undefined,
|
|
4109
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4110
|
+
};
|
|
4111
|
+
};
|
|
4112
|
+
const deserializeAws_json1_1ListImportsResponse = (output, context) => {
|
|
4113
|
+
return {
|
|
4114
|
+
Imports: output.Imports != null ? deserializeAws_json1_1ImportsList(output.Imports, context) : undefined,
|
|
4115
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4116
|
+
};
|
|
4117
|
+
};
|
|
3595
4118
|
const deserializeAws_json1_1ListPublicKeysResponse = (output, context) => {
|
|
3596
4119
|
return {
|
|
3597
4120
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -3853,6 +4376,13 @@ const deserializeAws_json1_1S3BucketDoesNotExistException = (output, context) =>
|
|
|
3853
4376
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3854
4377
|
};
|
|
3855
4378
|
};
|
|
4379
|
+
const deserializeAws_json1_1S3ImportSource = (output, context) => {
|
|
4380
|
+
return {
|
|
4381
|
+
S3BucketAccessRoleArn: (0, smithy_client_1.expectString)(output.S3BucketAccessRoleArn),
|
|
4382
|
+
S3BucketRegion: (0, smithy_client_1.expectString)(output.S3BucketRegion),
|
|
4383
|
+
S3LocationUri: (0, smithy_client_1.expectString)(output.S3LocationUri),
|
|
4384
|
+
};
|
|
4385
|
+
};
|
|
3856
4386
|
const deserializeAws_json1_1SourceConfig = (output, context) => {
|
|
3857
4387
|
return {
|
|
3858
4388
|
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|
|
@@ -3861,6 +4391,26 @@ const deserializeAws_json1_1SourceConfig = (output, context) => {
|
|
|
3861
4391
|
ApplyToAllRegions: (0, smithy_client_1.expectBoolean)(output.ApplyToAllRegions),
|
|
3862
4392
|
};
|
|
3863
4393
|
};
|
|
4394
|
+
const deserializeAws_json1_1StartImportResponse = (output, context) => {
|
|
4395
|
+
return {
|
|
4396
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
4397
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
4398
|
+
: undefined,
|
|
4399
|
+
Destinations: output.Destinations != null ? deserializeAws_json1_1ImportDestinations(output.Destinations, context) : undefined,
|
|
4400
|
+
EndEventTime: output.EndEventTime != null
|
|
4401
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndEventTime)))
|
|
4402
|
+
: undefined,
|
|
4403
|
+
ImportId: (0, smithy_client_1.expectString)(output.ImportId),
|
|
4404
|
+
ImportSource: output.ImportSource != null ? deserializeAws_json1_1ImportSource(output.ImportSource, context) : undefined,
|
|
4405
|
+
ImportStatus: (0, smithy_client_1.expectString)(output.ImportStatus),
|
|
4406
|
+
StartEventTime: output.StartEventTime != null
|
|
4407
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartEventTime)))
|
|
4408
|
+
: undefined,
|
|
4409
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
4410
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTimestamp)))
|
|
4411
|
+
: undefined,
|
|
4412
|
+
};
|
|
4413
|
+
};
|
|
3864
4414
|
const deserializeAws_json1_1StartLoggingResponse = (output, context) => {
|
|
3865
4415
|
return {};
|
|
3866
4416
|
};
|
|
@@ -3869,6 +4419,29 @@ const deserializeAws_json1_1StartQueryResponse = (output, context) => {
|
|
|
3869
4419
|
QueryId: (0, smithy_client_1.expectString)(output.QueryId),
|
|
3870
4420
|
};
|
|
3871
4421
|
};
|
|
4422
|
+
const deserializeAws_json1_1StopImportResponse = (output, context) => {
|
|
4423
|
+
return {
|
|
4424
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
4425
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
4426
|
+
: undefined,
|
|
4427
|
+
Destinations: output.Destinations != null ? deserializeAws_json1_1ImportDestinations(output.Destinations, context) : undefined,
|
|
4428
|
+
EndEventTime: output.EndEventTime != null
|
|
4429
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndEventTime)))
|
|
4430
|
+
: undefined,
|
|
4431
|
+
ImportId: (0, smithy_client_1.expectString)(output.ImportId),
|
|
4432
|
+
ImportSource: output.ImportSource != null ? deserializeAws_json1_1ImportSource(output.ImportSource, context) : undefined,
|
|
4433
|
+
ImportStatistics: output.ImportStatistics != null
|
|
4434
|
+
? deserializeAws_json1_1ImportStatistics(output.ImportStatistics, context)
|
|
4435
|
+
: undefined,
|
|
4436
|
+
ImportStatus: (0, smithy_client_1.expectString)(output.ImportStatus),
|
|
4437
|
+
StartEventTime: output.StartEventTime != null
|
|
4438
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartEventTime)))
|
|
4439
|
+
: undefined,
|
|
4440
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
4441
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTimestamp)))
|
|
4442
|
+
: undefined,
|
|
4443
|
+
};
|
|
4444
|
+
};
|
|
3872
4445
|
const deserializeAws_json1_1StopLoggingResponse = (output, context) => {
|
|
3873
4446
|
return {};
|
|
3874
4447
|
};
|