@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
|
@@ -2,7 +2,7 @@ import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
3
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { CloudTrailServiceException as __BaseException } from "../models/CloudTrailServiceException";
|
|
5
|
-
import { ChannelARNInvalidException, ChannelNotFoundException, CloudTrailAccessNotEnabledException, CloudTrailARNInvalidException, CloudTrailInvalidClientTokenIdException, CloudWatchLogsDeliveryUnavailableException, ConflictException, EventDataStoreAlreadyExistsException, EventDataStoreARNInvalidException, EventDataStoreMaxLimitExceededException, EventDataStoreNotFoundException, EventDataStoreTerminationProtectedException, InactiveEventDataStoreException, InactiveQueryException, InsightNotEnabledException, InsufficientDependencyServiceAccessPermissionException, InsufficientEncryptionPolicyException, InsufficientS3BucketPolicyException, InsufficientSnsTopicPolicyException, InvalidCloudWatchLogsLogGroupArnException, InvalidCloudWatchLogsRoleArnException, InvalidDateRangeException, InvalidEventCategoryException, InvalidEventDataStoreStatusException, InvalidEventSelectorsException, InvalidHomeRegionException, InvalidInsightSelectorsException, InvalidKmsKeyIdException, InvalidLookupAttributesException, InvalidMaxResultsException, InvalidNextTokenException, InvalidParameterCombinationException, InvalidParameterException, InvalidQueryStatementException, InvalidQueryStatusException, InvalidS3BucketNameException, InvalidS3PrefixException, InvalidSnsTopicNameException, InvalidTagParameterException, InvalidTimeRangeException, InvalidTokenException, InvalidTrailNameException, KmsException, KmsKeyDisabledException, KmsKeyNotFoundException, MaxConcurrentQueriesException, MaximumNumberOfTrailsExceededException, NotOrganizationMasterAccountException, OperationNotPermittedException, OrganizationNotInAllFeaturesModeException, OrganizationsNotInUseException, QueryIdNotFoundException, ResourceNotFoundException, ResourceTypeNotSupportedException, S3BucketDoesNotExistException, TagsLimitExceededException, TrailAlreadyExistsException, TrailNotFoundException, TrailNotProvidedException, UnsupportedOperationException, } from "../models/models_0";
|
|
5
|
+
import { AccountHasOngoingImportException, ChannelARNInvalidException, ChannelNotFoundException, CloudTrailAccessNotEnabledException, CloudTrailARNInvalidException, CloudTrailInvalidClientTokenIdException, CloudWatchLogsDeliveryUnavailableException, ConflictException, EventDataStoreAlreadyExistsException, EventDataStoreARNInvalidException, EventDataStoreHasOngoingImportException, EventDataStoreMaxLimitExceededException, EventDataStoreNotFoundException, EventDataStoreTerminationProtectedException, ImportNotFoundException, InactiveEventDataStoreException, InactiveQueryException, InsightNotEnabledException, InsufficientDependencyServiceAccessPermissionException, InsufficientEncryptionPolicyException, InsufficientS3BucketPolicyException, InsufficientSnsTopicPolicyException, InvalidCloudWatchLogsLogGroupArnException, InvalidCloudWatchLogsRoleArnException, InvalidDateRangeException, InvalidEventCategoryException, InvalidEventDataStoreCategoryException, InvalidEventDataStoreStatusException, InvalidEventSelectorsException, InvalidHomeRegionException, InvalidImportSourceException, InvalidInsightSelectorsException, InvalidKmsKeyIdException, InvalidLookupAttributesException, InvalidMaxResultsException, InvalidNextTokenException, InvalidParameterCombinationException, InvalidParameterException, InvalidQueryStatementException, InvalidQueryStatusException, InvalidS3BucketNameException, InvalidS3PrefixException, InvalidSnsTopicNameException, InvalidTagParameterException, InvalidTimeRangeException, InvalidTokenException, InvalidTrailNameException, KmsException, KmsKeyDisabledException, KmsKeyNotFoundException, MaxConcurrentQueriesException, MaximumNumberOfTrailsExceededException, NotOrganizationMasterAccountException, OperationNotPermittedException, OrganizationNotInAllFeaturesModeException, OrganizationsNotInUseException, QueryIdNotFoundException, ResourceNotFoundException, ResourceTypeNotSupportedException, S3BucketDoesNotExistException, TagsLimitExceededException, TrailAlreadyExistsException, TrailNotFoundException, TrailNotProvidedException, UnsupportedOperationException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_json1_1AddTagsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
7
|
var headers, body;
|
|
8
8
|
return __generator(this, function (_a) {
|
|
@@ -124,6 +124,17 @@ export var serializeAws_json1_1GetEventSelectorsCommand = function (input, conte
|
|
|
124
124
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
125
125
|
});
|
|
126
126
|
}); };
|
|
127
|
+
export var serializeAws_json1_1GetImportCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
128
|
+
var headers, body;
|
|
129
|
+
return __generator(this, function (_a) {
|
|
130
|
+
headers = {
|
|
131
|
+
"content-type": "application/x-amz-json-1.1",
|
|
132
|
+
"x-amz-target": "CloudTrail_20131101.GetImport",
|
|
133
|
+
};
|
|
134
|
+
body = JSON.stringify(serializeAws_json1_1GetImportRequest(input, context));
|
|
135
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
136
|
+
});
|
|
137
|
+
}); };
|
|
127
138
|
export var serializeAws_json1_1GetInsightSelectorsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
128
139
|
var headers, body;
|
|
129
140
|
return __generator(this, function (_a) {
|
|
@@ -190,6 +201,28 @@ export var serializeAws_json1_1ListEventDataStoresCommand = function (input, con
|
|
|
190
201
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
191
202
|
});
|
|
192
203
|
}); };
|
|
204
|
+
export var serializeAws_json1_1ListImportFailuresCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
205
|
+
var headers, body;
|
|
206
|
+
return __generator(this, function (_a) {
|
|
207
|
+
headers = {
|
|
208
|
+
"content-type": "application/x-amz-json-1.1",
|
|
209
|
+
"x-amz-target": "CloudTrail_20131101.ListImportFailures",
|
|
210
|
+
};
|
|
211
|
+
body = JSON.stringify(serializeAws_json1_1ListImportFailuresRequest(input, context));
|
|
212
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
213
|
+
});
|
|
214
|
+
}); };
|
|
215
|
+
export var serializeAws_json1_1ListImportsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
216
|
+
var headers, body;
|
|
217
|
+
return __generator(this, function (_a) {
|
|
218
|
+
headers = {
|
|
219
|
+
"content-type": "application/x-amz-json-1.1",
|
|
220
|
+
"x-amz-target": "CloudTrail_20131101.ListImports",
|
|
221
|
+
};
|
|
222
|
+
body = JSON.stringify(serializeAws_json1_1ListImportsRequest(input, context));
|
|
223
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
224
|
+
});
|
|
225
|
+
}); };
|
|
193
226
|
export var serializeAws_json1_1ListPublicKeysCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
194
227
|
var headers, body;
|
|
195
228
|
return __generator(this, function (_a) {
|
|
@@ -289,6 +322,17 @@ export var serializeAws_json1_1RestoreEventDataStoreCommand = function (input, c
|
|
|
289
322
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
290
323
|
});
|
|
291
324
|
}); };
|
|
325
|
+
export var serializeAws_json1_1StartImportCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
326
|
+
var headers, body;
|
|
327
|
+
return __generator(this, function (_a) {
|
|
328
|
+
headers = {
|
|
329
|
+
"content-type": "application/x-amz-json-1.1",
|
|
330
|
+
"x-amz-target": "CloudTrail_20131101.StartImport",
|
|
331
|
+
};
|
|
332
|
+
body = JSON.stringify(serializeAws_json1_1StartImportRequest(input, context));
|
|
333
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
334
|
+
});
|
|
335
|
+
}); };
|
|
292
336
|
export var serializeAws_json1_1StartLoggingCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
293
337
|
var headers, body;
|
|
294
338
|
return __generator(this, function (_a) {
|
|
@@ -311,6 +355,17 @@ export var serializeAws_json1_1StartQueryCommand = function (input, context) { r
|
|
|
311
355
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
312
356
|
});
|
|
313
357
|
}); };
|
|
358
|
+
export var serializeAws_json1_1StopImportCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
359
|
+
var headers, body;
|
|
360
|
+
return __generator(this, function (_a) {
|
|
361
|
+
headers = {
|
|
362
|
+
"content-type": "application/x-amz-json-1.1",
|
|
363
|
+
"x-amz-target": "CloudTrail_20131101.StopImport",
|
|
364
|
+
};
|
|
365
|
+
body = JSON.stringify(serializeAws_json1_1StopImportRequest(input, context));
|
|
366
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
367
|
+
});
|
|
368
|
+
}); };
|
|
314
369
|
export var serializeAws_json1_1StopLoggingCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
315
370
|
var headers, body;
|
|
316
371
|
return __generator(this, function (_a) {
|
|
@@ -814,39 +869,43 @@ var deserializeAws_json1_1DeleteEventDataStoreCommandError = function (output, c
|
|
|
814
869
|
switch (_b) {
|
|
815
870
|
case "EventDataStoreARNInvalidException": return [3, 2];
|
|
816
871
|
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException": return [3, 2];
|
|
817
|
-
case "
|
|
818
|
-
case "com.amazonaws.cloudtrail#
|
|
819
|
-
case "
|
|
820
|
-
case "com.amazonaws.cloudtrail#
|
|
821
|
-
case "
|
|
822
|
-
case "com.amazonaws.cloudtrail#
|
|
823
|
-
case "
|
|
824
|
-
case "com.amazonaws.cloudtrail#
|
|
825
|
-
case "
|
|
826
|
-
case "com.amazonaws.cloudtrail#
|
|
827
|
-
case "
|
|
828
|
-
case "com.amazonaws.cloudtrail#
|
|
829
|
-
case "
|
|
830
|
-
case "com.amazonaws.cloudtrail#
|
|
872
|
+
case "EventDataStoreHasOngoingImportException": return [3, 4];
|
|
873
|
+
case "com.amazonaws.cloudtrail#EventDataStoreHasOngoingImportException": return [3, 4];
|
|
874
|
+
case "EventDataStoreNotFoundException": return [3, 6];
|
|
875
|
+
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException": return [3, 6];
|
|
876
|
+
case "EventDataStoreTerminationProtectedException": return [3, 8];
|
|
877
|
+
case "com.amazonaws.cloudtrail#EventDataStoreTerminationProtectedException": return [3, 8];
|
|
878
|
+
case "InsufficientDependencyServiceAccessPermissionException": return [3, 10];
|
|
879
|
+
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException": return [3, 10];
|
|
880
|
+
case "InvalidParameterException": return [3, 12];
|
|
881
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException": return [3, 12];
|
|
882
|
+
case "NotOrganizationMasterAccountException": return [3, 14];
|
|
883
|
+
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException": return [3, 14];
|
|
884
|
+
case "OperationNotPermittedException": return [3, 16];
|
|
885
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException": return [3, 16];
|
|
886
|
+
case "UnsupportedOperationException": return [3, 18];
|
|
887
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException": return [3, 18];
|
|
831
888
|
}
|
|
832
|
-
return [3,
|
|
889
|
+
return [3, 20];
|
|
833
890
|
case 2: return [4, deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context)];
|
|
834
891
|
case 3: throw _d.sent();
|
|
835
|
-
case 4: return [4,
|
|
892
|
+
case 4: return [4, deserializeAws_json1_1EventDataStoreHasOngoingImportExceptionResponse(parsedOutput, context)];
|
|
836
893
|
case 5: throw _d.sent();
|
|
837
|
-
case 6: return [4,
|
|
894
|
+
case 6: return [4, deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)];
|
|
838
895
|
case 7: throw _d.sent();
|
|
839
|
-
case 8: return [4,
|
|
896
|
+
case 8: return [4, deserializeAws_json1_1EventDataStoreTerminationProtectedExceptionResponse(parsedOutput, context)];
|
|
840
897
|
case 9: throw _d.sent();
|
|
841
|
-
case 10: return [4,
|
|
898
|
+
case 10: return [4, deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context)];
|
|
842
899
|
case 11: throw _d.sent();
|
|
843
|
-
case 12: return [4,
|
|
900
|
+
case 12: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
844
901
|
case 13: throw _d.sent();
|
|
845
|
-
case 14: return [4,
|
|
902
|
+
case 14: return [4, deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context)];
|
|
846
903
|
case 15: throw _d.sent();
|
|
847
|
-
case 16: return [4,
|
|
904
|
+
case 16: return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
848
905
|
case 17: throw _d.sent();
|
|
849
|
-
case 18:
|
|
906
|
+
case 18: return [4, deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)];
|
|
907
|
+
case 19: throw _d.sent();
|
|
908
|
+
case 20:
|
|
850
909
|
parsedBody = parsedOutput.body;
|
|
851
910
|
throwDefaultError({
|
|
852
911
|
output: output,
|
|
@@ -854,8 +913,8 @@ var deserializeAws_json1_1DeleteEventDataStoreCommandError = function (output, c
|
|
|
854
913
|
exceptionCtor: __BaseException,
|
|
855
914
|
errorCode: errorCode,
|
|
856
915
|
});
|
|
857
|
-
_d.label =
|
|
858
|
-
case
|
|
916
|
+
_d.label = 21;
|
|
917
|
+
case 21: return [2];
|
|
859
918
|
}
|
|
860
919
|
});
|
|
861
920
|
}); };
|
|
@@ -1265,6 +1324,69 @@ var deserializeAws_json1_1GetEventSelectorsCommandError = function (output, cont
|
|
|
1265
1324
|
}
|
|
1266
1325
|
});
|
|
1267
1326
|
}); };
|
|
1327
|
+
export var deserializeAws_json1_1GetImportCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1328
|
+
var data, contents, response;
|
|
1329
|
+
return __generator(this, function (_a) {
|
|
1330
|
+
switch (_a.label) {
|
|
1331
|
+
case 0:
|
|
1332
|
+
if (output.statusCode >= 300) {
|
|
1333
|
+
return [2, deserializeAws_json1_1GetImportCommandError(output, context)];
|
|
1334
|
+
}
|
|
1335
|
+
return [4, parseBody(output.body, context)];
|
|
1336
|
+
case 1:
|
|
1337
|
+
data = _a.sent();
|
|
1338
|
+
contents = {};
|
|
1339
|
+
contents = deserializeAws_json1_1GetImportResponse(data, context);
|
|
1340
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1341
|
+
return [2, Promise.resolve(response)];
|
|
1342
|
+
}
|
|
1343
|
+
});
|
|
1344
|
+
}); };
|
|
1345
|
+
var deserializeAws_json1_1GetImportCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1346
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1347
|
+
var _c;
|
|
1348
|
+
return __generator(this, function (_d) {
|
|
1349
|
+
switch (_d.label) {
|
|
1350
|
+
case 0:
|
|
1351
|
+
_a = [__assign({}, output)];
|
|
1352
|
+
_c = {};
|
|
1353
|
+
return [4, parseBody(output.body, context)];
|
|
1354
|
+
case 1:
|
|
1355
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1356
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1357
|
+
_b = errorCode;
|
|
1358
|
+
switch (_b) {
|
|
1359
|
+
case "ImportNotFoundException": return [3, 2];
|
|
1360
|
+
case "com.amazonaws.cloudtrail#ImportNotFoundException": return [3, 2];
|
|
1361
|
+
case "InvalidParameterException": return [3, 4];
|
|
1362
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException": return [3, 4];
|
|
1363
|
+
case "OperationNotPermittedException": return [3, 6];
|
|
1364
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException": return [3, 6];
|
|
1365
|
+
case "UnsupportedOperationException": return [3, 8];
|
|
1366
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException": return [3, 8];
|
|
1367
|
+
}
|
|
1368
|
+
return [3, 10];
|
|
1369
|
+
case 2: return [4, deserializeAws_json1_1ImportNotFoundExceptionResponse(parsedOutput, context)];
|
|
1370
|
+
case 3: throw _d.sent();
|
|
1371
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1372
|
+
case 5: throw _d.sent();
|
|
1373
|
+
case 6: return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
1374
|
+
case 7: throw _d.sent();
|
|
1375
|
+
case 8: return [4, deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)];
|
|
1376
|
+
case 9: throw _d.sent();
|
|
1377
|
+
case 10:
|
|
1378
|
+
parsedBody = parsedOutput.body;
|
|
1379
|
+
throwDefaultError({
|
|
1380
|
+
output: output,
|
|
1381
|
+
parsedBody: parsedBody,
|
|
1382
|
+
exceptionCtor: __BaseException,
|
|
1383
|
+
errorCode: errorCode,
|
|
1384
|
+
});
|
|
1385
|
+
_d.label = 11;
|
|
1386
|
+
case 11: return [2];
|
|
1387
|
+
}
|
|
1388
|
+
});
|
|
1389
|
+
}); };
|
|
1268
1390
|
export var deserializeAws_json1_1GetInsightSelectorsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1269
1391
|
var data, contents, response;
|
|
1270
1392
|
return __generator(this, function (_a) {
|
|
@@ -1663,6 +1785,132 @@ var deserializeAws_json1_1ListEventDataStoresCommandError = function (output, co
|
|
|
1663
1785
|
}
|
|
1664
1786
|
});
|
|
1665
1787
|
}); };
|
|
1788
|
+
export var deserializeAws_json1_1ListImportFailuresCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1789
|
+
var data, contents, response;
|
|
1790
|
+
return __generator(this, function (_a) {
|
|
1791
|
+
switch (_a.label) {
|
|
1792
|
+
case 0:
|
|
1793
|
+
if (output.statusCode >= 300) {
|
|
1794
|
+
return [2, deserializeAws_json1_1ListImportFailuresCommandError(output, context)];
|
|
1795
|
+
}
|
|
1796
|
+
return [4, parseBody(output.body, context)];
|
|
1797
|
+
case 1:
|
|
1798
|
+
data = _a.sent();
|
|
1799
|
+
contents = {};
|
|
1800
|
+
contents = deserializeAws_json1_1ListImportFailuresResponse(data, context);
|
|
1801
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1802
|
+
return [2, Promise.resolve(response)];
|
|
1803
|
+
}
|
|
1804
|
+
});
|
|
1805
|
+
}); };
|
|
1806
|
+
var deserializeAws_json1_1ListImportFailuresCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1807
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1808
|
+
var _c;
|
|
1809
|
+
return __generator(this, function (_d) {
|
|
1810
|
+
switch (_d.label) {
|
|
1811
|
+
case 0:
|
|
1812
|
+
_a = [__assign({}, output)];
|
|
1813
|
+
_c = {};
|
|
1814
|
+
return [4, parseBody(output.body, context)];
|
|
1815
|
+
case 1:
|
|
1816
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1817
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1818
|
+
_b = errorCode;
|
|
1819
|
+
switch (_b) {
|
|
1820
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
1821
|
+
case "com.amazonaws.cloudtrail#InvalidNextTokenException": return [3, 2];
|
|
1822
|
+
case "OperationNotPermittedException": return [3, 4];
|
|
1823
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException": return [3, 4];
|
|
1824
|
+
case "UnsupportedOperationException": return [3, 6];
|
|
1825
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException": return [3, 6];
|
|
1826
|
+
}
|
|
1827
|
+
return [3, 8];
|
|
1828
|
+
case 2: return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1829
|
+
case 3: throw _d.sent();
|
|
1830
|
+
case 4: return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
1831
|
+
case 5: throw _d.sent();
|
|
1832
|
+
case 6: return [4, deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)];
|
|
1833
|
+
case 7: throw _d.sent();
|
|
1834
|
+
case 8:
|
|
1835
|
+
parsedBody = parsedOutput.body;
|
|
1836
|
+
throwDefaultError({
|
|
1837
|
+
output: output,
|
|
1838
|
+
parsedBody: parsedBody,
|
|
1839
|
+
exceptionCtor: __BaseException,
|
|
1840
|
+
errorCode: errorCode,
|
|
1841
|
+
});
|
|
1842
|
+
_d.label = 9;
|
|
1843
|
+
case 9: return [2];
|
|
1844
|
+
}
|
|
1845
|
+
});
|
|
1846
|
+
}); };
|
|
1847
|
+
export var deserializeAws_json1_1ListImportsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1848
|
+
var data, contents, response;
|
|
1849
|
+
return __generator(this, function (_a) {
|
|
1850
|
+
switch (_a.label) {
|
|
1851
|
+
case 0:
|
|
1852
|
+
if (output.statusCode >= 300) {
|
|
1853
|
+
return [2, deserializeAws_json1_1ListImportsCommandError(output, context)];
|
|
1854
|
+
}
|
|
1855
|
+
return [4, parseBody(output.body, context)];
|
|
1856
|
+
case 1:
|
|
1857
|
+
data = _a.sent();
|
|
1858
|
+
contents = {};
|
|
1859
|
+
contents = deserializeAws_json1_1ListImportsResponse(data, context);
|
|
1860
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1861
|
+
return [2, Promise.resolve(response)];
|
|
1862
|
+
}
|
|
1863
|
+
});
|
|
1864
|
+
}); };
|
|
1865
|
+
var deserializeAws_json1_1ListImportsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1866
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1867
|
+
var _c;
|
|
1868
|
+
return __generator(this, function (_d) {
|
|
1869
|
+
switch (_d.label) {
|
|
1870
|
+
case 0:
|
|
1871
|
+
_a = [__assign({}, output)];
|
|
1872
|
+
_c = {};
|
|
1873
|
+
return [4, parseBody(output.body, context)];
|
|
1874
|
+
case 1:
|
|
1875
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1876
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1877
|
+
_b = errorCode;
|
|
1878
|
+
switch (_b) {
|
|
1879
|
+
case "EventDataStoreARNInvalidException": return [3, 2];
|
|
1880
|
+
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException": return [3, 2];
|
|
1881
|
+
case "InvalidNextTokenException": return [3, 4];
|
|
1882
|
+
case "com.amazonaws.cloudtrail#InvalidNextTokenException": return [3, 4];
|
|
1883
|
+
case "InvalidParameterException": return [3, 6];
|
|
1884
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException": return [3, 6];
|
|
1885
|
+
case "OperationNotPermittedException": return [3, 8];
|
|
1886
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException": return [3, 8];
|
|
1887
|
+
case "UnsupportedOperationException": return [3, 10];
|
|
1888
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException": return [3, 10];
|
|
1889
|
+
}
|
|
1890
|
+
return [3, 12];
|
|
1891
|
+
case 2: return [4, deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context)];
|
|
1892
|
+
case 3: throw _d.sent();
|
|
1893
|
+
case 4: return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1894
|
+
case 5: throw _d.sent();
|
|
1895
|
+
case 6: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1896
|
+
case 7: throw _d.sent();
|
|
1897
|
+
case 8: return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
1898
|
+
case 9: throw _d.sent();
|
|
1899
|
+
case 10: return [4, deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)];
|
|
1900
|
+
case 11: throw _d.sent();
|
|
1901
|
+
case 12:
|
|
1902
|
+
parsedBody = parsedOutput.body;
|
|
1903
|
+
throwDefaultError({
|
|
1904
|
+
output: output,
|
|
1905
|
+
parsedBody: parsedBody,
|
|
1906
|
+
exceptionCtor: __BaseException,
|
|
1907
|
+
errorCode: errorCode,
|
|
1908
|
+
});
|
|
1909
|
+
_d.label = 13;
|
|
1910
|
+
case 13: return [2];
|
|
1911
|
+
}
|
|
1912
|
+
});
|
|
1913
|
+
}); };
|
|
1666
1914
|
export var deserializeAws_json1_1ListPublicKeysCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1667
1915
|
var data, contents, response;
|
|
1668
1916
|
return __generator(this, function (_a) {
|
|
@@ -2378,19 +2626,110 @@ var deserializeAws_json1_1RestoreEventDataStoreCommandError = function (output,
|
|
|
2378
2626
|
}
|
|
2379
2627
|
});
|
|
2380
2628
|
}); };
|
|
2381
|
-
export var
|
|
2629
|
+
export var deserializeAws_json1_1StartImportCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2382
2630
|
var data, contents, response;
|
|
2383
2631
|
return __generator(this, function (_a) {
|
|
2384
2632
|
switch (_a.label) {
|
|
2385
2633
|
case 0:
|
|
2386
2634
|
if (output.statusCode >= 300) {
|
|
2387
|
-
return [2,
|
|
2635
|
+
return [2, deserializeAws_json1_1StartImportCommandError(output, context)];
|
|
2388
2636
|
}
|
|
2389
2637
|
return [4, parseBody(output.body, context)];
|
|
2390
2638
|
case 1:
|
|
2391
2639
|
data = _a.sent();
|
|
2392
2640
|
contents = {};
|
|
2393
|
-
contents =
|
|
2641
|
+
contents = deserializeAws_json1_1StartImportResponse(data, context);
|
|
2642
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2643
|
+
return [2, Promise.resolve(response)];
|
|
2644
|
+
}
|
|
2645
|
+
});
|
|
2646
|
+
}); };
|
|
2647
|
+
var deserializeAws_json1_1StartImportCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2648
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2649
|
+
var _c;
|
|
2650
|
+
return __generator(this, function (_d) {
|
|
2651
|
+
switch (_d.label) {
|
|
2652
|
+
case 0:
|
|
2653
|
+
_a = [__assign({}, output)];
|
|
2654
|
+
_c = {};
|
|
2655
|
+
return [4, parseBody(output.body, context)];
|
|
2656
|
+
case 1:
|
|
2657
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2658
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2659
|
+
_b = errorCode;
|
|
2660
|
+
switch (_b) {
|
|
2661
|
+
case "AccountHasOngoingImportException": return [3, 2];
|
|
2662
|
+
case "com.amazonaws.cloudtrail#AccountHasOngoingImportException": return [3, 2];
|
|
2663
|
+
case "EventDataStoreARNInvalidException": return [3, 4];
|
|
2664
|
+
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException": return [3, 4];
|
|
2665
|
+
case "EventDataStoreNotFoundException": return [3, 6];
|
|
2666
|
+
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException": return [3, 6];
|
|
2667
|
+
case "ImportNotFoundException": return [3, 8];
|
|
2668
|
+
case "com.amazonaws.cloudtrail#ImportNotFoundException": return [3, 8];
|
|
2669
|
+
case "InactiveEventDataStoreException": return [3, 10];
|
|
2670
|
+
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException": return [3, 10];
|
|
2671
|
+
case "InvalidEventDataStoreCategoryException": return [3, 12];
|
|
2672
|
+
case "com.amazonaws.cloudtrail#InvalidEventDataStoreCategoryException": return [3, 12];
|
|
2673
|
+
case "InvalidEventDataStoreStatusException": return [3, 14];
|
|
2674
|
+
case "com.amazonaws.cloudtrail#InvalidEventDataStoreStatusException": return [3, 14];
|
|
2675
|
+
case "InvalidImportSourceException": return [3, 16];
|
|
2676
|
+
case "com.amazonaws.cloudtrail#InvalidImportSourceException": return [3, 16];
|
|
2677
|
+
case "InvalidParameterException": return [3, 18];
|
|
2678
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException": return [3, 18];
|
|
2679
|
+
case "OperationNotPermittedException": return [3, 20];
|
|
2680
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException": return [3, 20];
|
|
2681
|
+
case "UnsupportedOperationException": return [3, 22];
|
|
2682
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException": return [3, 22];
|
|
2683
|
+
}
|
|
2684
|
+
return [3, 24];
|
|
2685
|
+
case 2: return [4, deserializeAws_json1_1AccountHasOngoingImportExceptionResponse(parsedOutput, context)];
|
|
2686
|
+
case 3: throw _d.sent();
|
|
2687
|
+
case 4: return [4, deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context)];
|
|
2688
|
+
case 5: throw _d.sent();
|
|
2689
|
+
case 6: return [4, deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)];
|
|
2690
|
+
case 7: throw _d.sent();
|
|
2691
|
+
case 8: return [4, deserializeAws_json1_1ImportNotFoundExceptionResponse(parsedOutput, context)];
|
|
2692
|
+
case 9: throw _d.sent();
|
|
2693
|
+
case 10: return [4, deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context)];
|
|
2694
|
+
case 11: throw _d.sent();
|
|
2695
|
+
case 12: return [4, deserializeAws_json1_1InvalidEventDataStoreCategoryExceptionResponse(parsedOutput, context)];
|
|
2696
|
+
case 13: throw _d.sent();
|
|
2697
|
+
case 14: return [4, deserializeAws_json1_1InvalidEventDataStoreStatusExceptionResponse(parsedOutput, context)];
|
|
2698
|
+
case 15: throw _d.sent();
|
|
2699
|
+
case 16: return [4, deserializeAws_json1_1InvalidImportSourceExceptionResponse(parsedOutput, context)];
|
|
2700
|
+
case 17: throw _d.sent();
|
|
2701
|
+
case 18: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2702
|
+
case 19: throw _d.sent();
|
|
2703
|
+
case 20: return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
2704
|
+
case 21: throw _d.sent();
|
|
2705
|
+
case 22: return [4, deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)];
|
|
2706
|
+
case 23: throw _d.sent();
|
|
2707
|
+
case 24:
|
|
2708
|
+
parsedBody = parsedOutput.body;
|
|
2709
|
+
throwDefaultError({
|
|
2710
|
+
output: output,
|
|
2711
|
+
parsedBody: parsedBody,
|
|
2712
|
+
exceptionCtor: __BaseException,
|
|
2713
|
+
errorCode: errorCode,
|
|
2714
|
+
});
|
|
2715
|
+
_d.label = 25;
|
|
2716
|
+
case 25: return [2];
|
|
2717
|
+
}
|
|
2718
|
+
});
|
|
2719
|
+
}); };
|
|
2720
|
+
export var deserializeAws_json1_1StartLoggingCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2721
|
+
var data, contents, response;
|
|
2722
|
+
return __generator(this, function (_a) {
|
|
2723
|
+
switch (_a.label) {
|
|
2724
|
+
case 0:
|
|
2725
|
+
if (output.statusCode >= 300) {
|
|
2726
|
+
return [2, deserializeAws_json1_1StartLoggingCommandError(output, context)];
|
|
2727
|
+
}
|
|
2728
|
+
return [4, parseBody(output.body, context)];
|
|
2729
|
+
case 1:
|
|
2730
|
+
data = _a.sent();
|
|
2731
|
+
contents = {};
|
|
2732
|
+
contents = deserializeAws_json1_1StartLoggingResponse(data, context);
|
|
2394
2733
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2395
2734
|
return [2, Promise.resolve(response)];
|
|
2396
2735
|
}
|
|
@@ -2532,6 +2871,69 @@ var deserializeAws_json1_1StartQueryCommandError = function (output, context) {
|
|
|
2532
2871
|
}
|
|
2533
2872
|
});
|
|
2534
2873
|
}); };
|
|
2874
|
+
export var deserializeAws_json1_1StopImportCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2875
|
+
var data, contents, response;
|
|
2876
|
+
return __generator(this, function (_a) {
|
|
2877
|
+
switch (_a.label) {
|
|
2878
|
+
case 0:
|
|
2879
|
+
if (output.statusCode >= 300) {
|
|
2880
|
+
return [2, deserializeAws_json1_1StopImportCommandError(output, context)];
|
|
2881
|
+
}
|
|
2882
|
+
return [4, parseBody(output.body, context)];
|
|
2883
|
+
case 1:
|
|
2884
|
+
data = _a.sent();
|
|
2885
|
+
contents = {};
|
|
2886
|
+
contents = deserializeAws_json1_1StopImportResponse(data, context);
|
|
2887
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2888
|
+
return [2, Promise.resolve(response)];
|
|
2889
|
+
}
|
|
2890
|
+
});
|
|
2891
|
+
}); };
|
|
2892
|
+
var deserializeAws_json1_1StopImportCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2893
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2894
|
+
var _c;
|
|
2895
|
+
return __generator(this, function (_d) {
|
|
2896
|
+
switch (_d.label) {
|
|
2897
|
+
case 0:
|
|
2898
|
+
_a = [__assign({}, output)];
|
|
2899
|
+
_c = {};
|
|
2900
|
+
return [4, parseBody(output.body, context)];
|
|
2901
|
+
case 1:
|
|
2902
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2903
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2904
|
+
_b = errorCode;
|
|
2905
|
+
switch (_b) {
|
|
2906
|
+
case "ImportNotFoundException": return [3, 2];
|
|
2907
|
+
case "com.amazonaws.cloudtrail#ImportNotFoundException": return [3, 2];
|
|
2908
|
+
case "InvalidParameterException": return [3, 4];
|
|
2909
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException": return [3, 4];
|
|
2910
|
+
case "OperationNotPermittedException": return [3, 6];
|
|
2911
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException": return [3, 6];
|
|
2912
|
+
case "UnsupportedOperationException": return [3, 8];
|
|
2913
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException": return [3, 8];
|
|
2914
|
+
}
|
|
2915
|
+
return [3, 10];
|
|
2916
|
+
case 2: return [4, deserializeAws_json1_1ImportNotFoundExceptionResponse(parsedOutput, context)];
|
|
2917
|
+
case 3: throw _d.sent();
|
|
2918
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2919
|
+
case 5: throw _d.sent();
|
|
2920
|
+
case 6: return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
2921
|
+
case 7: throw _d.sent();
|
|
2922
|
+
case 8: return [4, deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)];
|
|
2923
|
+
case 9: throw _d.sent();
|
|
2924
|
+
case 10:
|
|
2925
|
+
parsedBody = parsedOutput.body;
|
|
2926
|
+
throwDefaultError({
|
|
2927
|
+
output: output,
|
|
2928
|
+
parsedBody: parsedBody,
|
|
2929
|
+
exceptionCtor: __BaseException,
|
|
2930
|
+
errorCode: errorCode,
|
|
2931
|
+
});
|
|
2932
|
+
_d.label = 11;
|
|
2933
|
+
case 11: return [2];
|
|
2934
|
+
}
|
|
2935
|
+
});
|
|
2936
|
+
}); };
|
|
2535
2937
|
export var deserializeAws_json1_1StopLoggingCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2536
2938
|
var data, contents, response;
|
|
2537
2939
|
return __generator(this, function (_a) {
|
|
@@ -2643,49 +3045,53 @@ var deserializeAws_json1_1UpdateEventDataStoreCommandError = function (output, c
|
|
|
2643
3045
|
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException": return [3, 2];
|
|
2644
3046
|
case "EventDataStoreARNInvalidException": return [3, 4];
|
|
2645
3047
|
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException": return [3, 4];
|
|
2646
|
-
case "
|
|
2647
|
-
case "com.amazonaws.cloudtrail#
|
|
2648
|
-
case "
|
|
2649
|
-
case "com.amazonaws.cloudtrail#
|
|
2650
|
-
case "
|
|
2651
|
-
case "com.amazonaws.cloudtrail#
|
|
2652
|
-
case "
|
|
2653
|
-
case "com.amazonaws.cloudtrail#
|
|
2654
|
-
case "
|
|
2655
|
-
case "com.amazonaws.cloudtrail#
|
|
2656
|
-
case "
|
|
2657
|
-
case "com.amazonaws.cloudtrail#
|
|
2658
|
-
case "
|
|
2659
|
-
case "com.amazonaws.cloudtrail#
|
|
2660
|
-
case "
|
|
2661
|
-
case "com.amazonaws.cloudtrail#
|
|
2662
|
-
case "
|
|
2663
|
-
case "com.amazonaws.cloudtrail#
|
|
3048
|
+
case "EventDataStoreHasOngoingImportException": return [3, 6];
|
|
3049
|
+
case "com.amazonaws.cloudtrail#EventDataStoreHasOngoingImportException": return [3, 6];
|
|
3050
|
+
case "EventDataStoreNotFoundException": return [3, 8];
|
|
3051
|
+
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException": return [3, 8];
|
|
3052
|
+
case "InactiveEventDataStoreException": return [3, 10];
|
|
3053
|
+
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException": return [3, 10];
|
|
3054
|
+
case "InsufficientDependencyServiceAccessPermissionException": return [3, 12];
|
|
3055
|
+
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException": return [3, 12];
|
|
3056
|
+
case "InvalidParameterException": return [3, 14];
|
|
3057
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException": return [3, 14];
|
|
3058
|
+
case "NotOrganizationMasterAccountException": return [3, 16];
|
|
3059
|
+
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException": return [3, 16];
|
|
3060
|
+
case "OperationNotPermittedException": return [3, 18];
|
|
3061
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException": return [3, 18];
|
|
3062
|
+
case "OrganizationNotInAllFeaturesModeException": return [3, 20];
|
|
3063
|
+
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException": return [3, 20];
|
|
3064
|
+
case "OrganizationsNotInUseException": return [3, 22];
|
|
3065
|
+
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException": return [3, 22];
|
|
3066
|
+
case "UnsupportedOperationException": return [3, 24];
|
|
3067
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException": return [3, 24];
|
|
2664
3068
|
}
|
|
2665
|
-
return [3,
|
|
3069
|
+
return [3, 26];
|
|
2666
3070
|
case 2: return [4, deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context)];
|
|
2667
3071
|
case 3: throw _d.sent();
|
|
2668
3072
|
case 4: return [4, deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context)];
|
|
2669
3073
|
case 5: throw _d.sent();
|
|
2670
|
-
case 6: return [4,
|
|
3074
|
+
case 6: return [4, deserializeAws_json1_1EventDataStoreHasOngoingImportExceptionResponse(parsedOutput, context)];
|
|
2671
3075
|
case 7: throw _d.sent();
|
|
2672
|
-
case 8: return [4,
|
|
3076
|
+
case 8: return [4, deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)];
|
|
2673
3077
|
case 9: throw _d.sent();
|
|
2674
|
-
case 10: return [4,
|
|
3078
|
+
case 10: return [4, deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context)];
|
|
2675
3079
|
case 11: throw _d.sent();
|
|
2676
|
-
case 12: return [4,
|
|
3080
|
+
case 12: return [4, deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context)];
|
|
2677
3081
|
case 13: throw _d.sent();
|
|
2678
|
-
case 14: return [4,
|
|
3082
|
+
case 14: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2679
3083
|
case 15: throw _d.sent();
|
|
2680
|
-
case 16: return [4,
|
|
3084
|
+
case 16: return [4, deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context)];
|
|
2681
3085
|
case 17: throw _d.sent();
|
|
2682
|
-
case 18: return [4,
|
|
3086
|
+
case 18: return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
2683
3087
|
case 19: throw _d.sent();
|
|
2684
|
-
case 20: return [4,
|
|
3088
|
+
case 20: return [4, deserializeAws_json1_1OrganizationNotInAllFeaturesModeExceptionResponse(parsedOutput, context)];
|
|
2685
3089
|
case 21: throw _d.sent();
|
|
2686
|
-
case 22: return [4,
|
|
3090
|
+
case 22: return [4, deserializeAws_json1_1OrganizationsNotInUseExceptionResponse(parsedOutput, context)];
|
|
2687
3091
|
case 23: throw _d.sent();
|
|
2688
|
-
case 24:
|
|
3092
|
+
case 24: return [4, deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)];
|
|
3093
|
+
case 25: throw _d.sent();
|
|
3094
|
+
case 26:
|
|
2689
3095
|
parsedBody = parsedOutput.body;
|
|
2690
3096
|
throwDefaultError({
|
|
2691
3097
|
output: output,
|
|
@@ -2693,8 +3099,8 @@ var deserializeAws_json1_1UpdateEventDataStoreCommandError = function (output, c
|
|
|
2693
3099
|
exceptionCtor: __BaseException,
|
|
2694
3100
|
errorCode: errorCode,
|
|
2695
3101
|
});
|
|
2696
|
-
_d.label =
|
|
2697
|
-
case
|
|
3102
|
+
_d.label = 27;
|
|
3103
|
+
case 27: return [2];
|
|
2698
3104
|
}
|
|
2699
3105
|
});
|
|
2700
3106
|
}); };
|
|
@@ -2857,6 +3263,15 @@ var deserializeAws_json1_1UpdateTrailCommandError = function (output, context) {
|
|
|
2857
3263
|
}
|
|
2858
3264
|
});
|
|
2859
3265
|
}); };
|
|
3266
|
+
var deserializeAws_json1_1AccountHasOngoingImportExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3267
|
+
var body, deserialized, exception;
|
|
3268
|
+
return __generator(this, function (_a) {
|
|
3269
|
+
body = parsedOutput.body;
|
|
3270
|
+
deserialized = deserializeAws_json1_1AccountHasOngoingImportException(body, context);
|
|
3271
|
+
exception = new AccountHasOngoingImportException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3272
|
+
return [2, __decorateServiceException(exception, body)];
|
|
3273
|
+
});
|
|
3274
|
+
}); };
|
|
2860
3275
|
var deserializeAws_json1_1ChannelARNInvalidExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2861
3276
|
var body, deserialized, exception;
|
|
2862
3277
|
return __generator(this, function (_a) {
|
|
@@ -2938,6 +3353,15 @@ var deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse = function (
|
|
|
2938
3353
|
return [2, __decorateServiceException(exception, body)];
|
|
2939
3354
|
});
|
|
2940
3355
|
}); };
|
|
3356
|
+
var deserializeAws_json1_1EventDataStoreHasOngoingImportExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3357
|
+
var body, deserialized, exception;
|
|
3358
|
+
return __generator(this, function (_a) {
|
|
3359
|
+
body = parsedOutput.body;
|
|
3360
|
+
deserialized = deserializeAws_json1_1EventDataStoreHasOngoingImportException(body, context);
|
|
3361
|
+
exception = new EventDataStoreHasOngoingImportException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3362
|
+
return [2, __decorateServiceException(exception, body)];
|
|
3363
|
+
});
|
|
3364
|
+
}); };
|
|
2941
3365
|
var deserializeAws_json1_1EventDataStoreMaxLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2942
3366
|
var body, deserialized, exception;
|
|
2943
3367
|
return __generator(this, function (_a) {
|
|
@@ -2965,6 +3389,15 @@ var deserializeAws_json1_1EventDataStoreTerminationProtectedExceptionResponse =
|
|
|
2965
3389
|
return [2, __decorateServiceException(exception, body)];
|
|
2966
3390
|
});
|
|
2967
3391
|
}); };
|
|
3392
|
+
var deserializeAws_json1_1ImportNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3393
|
+
var body, deserialized, exception;
|
|
3394
|
+
return __generator(this, function (_a) {
|
|
3395
|
+
body = parsedOutput.body;
|
|
3396
|
+
deserialized = deserializeAws_json1_1ImportNotFoundException(body, context);
|
|
3397
|
+
exception = new ImportNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3398
|
+
return [2, __decorateServiceException(exception, body)];
|
|
3399
|
+
});
|
|
3400
|
+
}); };
|
|
2968
3401
|
var deserializeAws_json1_1InactiveEventDataStoreExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2969
3402
|
var body, deserialized, exception;
|
|
2970
3403
|
return __generator(this, function (_a) {
|
|
@@ -3064,6 +3497,15 @@ var deserializeAws_json1_1InvalidEventCategoryExceptionResponse = function (pars
|
|
|
3064
3497
|
return [2, __decorateServiceException(exception, body)];
|
|
3065
3498
|
});
|
|
3066
3499
|
}); };
|
|
3500
|
+
var deserializeAws_json1_1InvalidEventDataStoreCategoryExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3501
|
+
var body, deserialized, exception;
|
|
3502
|
+
return __generator(this, function (_a) {
|
|
3503
|
+
body = parsedOutput.body;
|
|
3504
|
+
deserialized = deserializeAws_json1_1InvalidEventDataStoreCategoryException(body, context);
|
|
3505
|
+
exception = new InvalidEventDataStoreCategoryException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3506
|
+
return [2, __decorateServiceException(exception, body)];
|
|
3507
|
+
});
|
|
3508
|
+
}); };
|
|
3067
3509
|
var deserializeAws_json1_1InvalidEventDataStoreStatusExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3068
3510
|
var body, deserialized, exception;
|
|
3069
3511
|
return __generator(this, function (_a) {
|
|
@@ -3091,6 +3533,15 @@ var deserializeAws_json1_1InvalidHomeRegionExceptionResponse = function (parsedO
|
|
|
3091
3533
|
return [2, __decorateServiceException(exception, body)];
|
|
3092
3534
|
});
|
|
3093
3535
|
}); };
|
|
3536
|
+
var deserializeAws_json1_1InvalidImportSourceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3537
|
+
var body, deserialized, exception;
|
|
3538
|
+
return __generator(this, function (_a) {
|
|
3539
|
+
body = parsedOutput.body;
|
|
3540
|
+
deserialized = deserializeAws_json1_1InvalidImportSourceException(body, context);
|
|
3541
|
+
exception = new InvalidImportSourceException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3542
|
+
return [2, __decorateServiceException(exception, body)];
|
|
3543
|
+
});
|
|
3544
|
+
}); };
|
|
3094
3545
|
var deserializeAws_json1_1InvalidInsightSelectorsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3095
3546
|
var body, deserialized, exception;
|
|
3096
3547
|
return __generator(this, function (_a) {
|
|
@@ -3496,6 +3947,9 @@ var serializeAws_json1_1GetEventDataStoreRequest = function (input, context) {
|
|
|
3496
3947
|
var serializeAws_json1_1GetEventSelectorsRequest = function (input, context) {
|
|
3497
3948
|
return __assign({}, (input.TrailName != null && { TrailName: input.TrailName }));
|
|
3498
3949
|
};
|
|
3950
|
+
var serializeAws_json1_1GetImportRequest = function (input, context) {
|
|
3951
|
+
return __assign({}, (input.ImportId != null && { ImportId: input.ImportId }));
|
|
3952
|
+
};
|
|
3499
3953
|
var serializeAws_json1_1GetInsightSelectorsRequest = function (input, context) {
|
|
3500
3954
|
return __assign({}, (input.TrailName != null && { TrailName: input.TrailName }));
|
|
3501
3955
|
};
|
|
@@ -3508,6 +3962,16 @@ var serializeAws_json1_1GetTrailRequest = function (input, context) {
|
|
|
3508
3962
|
var serializeAws_json1_1GetTrailStatusRequest = function (input, context) {
|
|
3509
3963
|
return __assign({}, (input.Name != null && { Name: input.Name }));
|
|
3510
3964
|
};
|
|
3965
|
+
var serializeAws_json1_1ImportDestinations = function (input, context) {
|
|
3966
|
+
return input
|
|
3967
|
+
.filter(function (e) { return e != null; })
|
|
3968
|
+
.map(function (entry) {
|
|
3969
|
+
return entry;
|
|
3970
|
+
});
|
|
3971
|
+
};
|
|
3972
|
+
var serializeAws_json1_1ImportSource = function (input, context) {
|
|
3973
|
+
return __assign({}, (input.S3 != null && { S3: serializeAws_json1_1S3ImportSource(input.S3, context) }));
|
|
3974
|
+
};
|
|
3511
3975
|
var serializeAws_json1_1InsightSelector = function (input, context) {
|
|
3512
3976
|
return __assign({}, (input.InsightType != null && { InsightType: input.InsightType }));
|
|
3513
3977
|
};
|
|
@@ -3524,6 +3988,12 @@ var serializeAws_json1_1ListChannelsRequest = function (input, context) {
|
|
|
3524
3988
|
var serializeAws_json1_1ListEventDataStoresRequest = function (input, context) {
|
|
3525
3989
|
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
3526
3990
|
};
|
|
3991
|
+
var serializeAws_json1_1ListImportFailuresRequest = function (input, context) {
|
|
3992
|
+
return __assign(__assign(__assign({}, (input.ImportId != null && { ImportId: input.ImportId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
3993
|
+
};
|
|
3994
|
+
var serializeAws_json1_1ListImportsRequest = function (input, context) {
|
|
3995
|
+
return __assign(__assign(__assign(__assign({}, (input.Destination != null && { Destination: input.Destination })), (input.ImportStatus != null && { ImportStatus: input.ImportStatus })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
3996
|
+
};
|
|
3527
3997
|
var serializeAws_json1_1ListPublicKeysRequest = function (input, context) {
|
|
3528
3998
|
return __assign(__assign(__assign({}, (input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.NextToken != null && { NextToken: input.NextToken })), (input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
|
|
3529
3999
|
};
|
|
@@ -3585,12 +4055,23 @@ var serializeAws_json1_1ResourceIdList = function (input, context) {
|
|
|
3585
4055
|
var serializeAws_json1_1RestoreEventDataStoreRequest = function (input, context) {
|
|
3586
4056
|
return __assign({}, (input.EventDataStore != null && { EventDataStore: input.EventDataStore }));
|
|
3587
4057
|
};
|
|
4058
|
+
var serializeAws_json1_1S3ImportSource = function (input, context) {
|
|
4059
|
+
return __assign(__assign(__assign({}, (input.S3BucketAccessRoleArn != null && { S3BucketAccessRoleArn: input.S3BucketAccessRoleArn })), (input.S3BucketRegion != null && { S3BucketRegion: input.S3BucketRegion })), (input.S3LocationUri != null && { S3LocationUri: input.S3LocationUri }));
|
|
4060
|
+
};
|
|
4061
|
+
var serializeAws_json1_1StartImportRequest = function (input, context) {
|
|
4062
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Destinations != null && {
|
|
4063
|
+
Destinations: serializeAws_json1_1ImportDestinations(input.Destinations, context),
|
|
4064
|
+
})), (input.EndEventTime != null && { EndEventTime: Math.round(input.EndEventTime.getTime() / 1000) })), (input.ImportId != null && { ImportId: input.ImportId })), (input.ImportSource != null && { ImportSource: serializeAws_json1_1ImportSource(input.ImportSource, context) })), (input.StartEventTime != null && { StartEventTime: Math.round(input.StartEventTime.getTime() / 1000) }));
|
|
4065
|
+
};
|
|
3588
4066
|
var serializeAws_json1_1StartLoggingRequest = function (input, context) {
|
|
3589
4067
|
return __assign({}, (input.Name != null && { Name: input.Name }));
|
|
3590
4068
|
};
|
|
3591
4069
|
var serializeAws_json1_1StartQueryRequest = function (input, context) {
|
|
3592
4070
|
return __assign({}, (input.QueryStatement != null && { QueryStatement: input.QueryStatement }));
|
|
3593
4071
|
};
|
|
4072
|
+
var serializeAws_json1_1StopImportRequest = function (input, context) {
|
|
4073
|
+
return __assign({}, (input.ImportId != null && { ImportId: input.ImportId }));
|
|
4074
|
+
};
|
|
3594
4075
|
var serializeAws_json1_1StopLoggingRequest = function (input, context) {
|
|
3595
4076
|
return __assign({}, (input.Name != null && { Name: input.Name }));
|
|
3596
4077
|
};
|
|
@@ -3621,6 +4102,11 @@ var serializeAws_json1_1UpdateEventDataStoreRequest = function (input, context)
|
|
|
3621
4102
|
var serializeAws_json1_1UpdateTrailRequest = function (input, context) {
|
|
3622
4103
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CloudWatchLogsLogGroupArn != null && { CloudWatchLogsLogGroupArn: input.CloudWatchLogsLogGroupArn })), (input.CloudWatchLogsRoleArn != null && { CloudWatchLogsRoleArn: input.CloudWatchLogsRoleArn })), (input.EnableLogFileValidation != null && { EnableLogFileValidation: input.EnableLogFileValidation })), (input.IncludeGlobalServiceEvents != null && { IncludeGlobalServiceEvents: input.IncludeGlobalServiceEvents })), (input.IsMultiRegionTrail != null && { IsMultiRegionTrail: input.IsMultiRegionTrail })), (input.IsOrganizationTrail != null && { IsOrganizationTrail: input.IsOrganizationTrail })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.Name != null && { Name: input.Name })), (input.S3BucketName != null && { S3BucketName: input.S3BucketName })), (input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix })), (input.SnsTopicName != null && { SnsTopicName: input.SnsTopicName }));
|
|
3623
4104
|
};
|
|
4105
|
+
var deserializeAws_json1_1AccountHasOngoingImportException = function (output, context) {
|
|
4106
|
+
return {
|
|
4107
|
+
Message: __expectString(output.Message),
|
|
4108
|
+
};
|
|
4109
|
+
};
|
|
3624
4110
|
var deserializeAws_json1_1AddTagsResponse = function (output, context) {
|
|
3625
4111
|
return {};
|
|
3626
4112
|
};
|
|
@@ -3871,6 +4357,11 @@ var deserializeAws_json1_1EventDataStoreARNInvalidException = function (output,
|
|
|
3871
4357
|
Message: __expectString(output.Message),
|
|
3872
4358
|
};
|
|
3873
4359
|
};
|
|
4360
|
+
var deserializeAws_json1_1EventDataStoreHasOngoingImportException = function (output, context) {
|
|
4361
|
+
return {
|
|
4362
|
+
Message: __expectString(output.Message),
|
|
4363
|
+
};
|
|
4364
|
+
};
|
|
3874
4365
|
var deserializeAws_json1_1EventDataStoreMaxLimitExceededException = function (output, context) {
|
|
3875
4366
|
return {
|
|
3876
4367
|
Message: __expectString(output.Message),
|
|
@@ -3978,6 +4469,29 @@ var deserializeAws_json1_1GetEventSelectorsResponse = function (output, context)
|
|
|
3978
4469
|
TrailARN: __expectString(output.TrailARN),
|
|
3979
4470
|
};
|
|
3980
4471
|
};
|
|
4472
|
+
var deserializeAws_json1_1GetImportResponse = function (output, context) {
|
|
4473
|
+
return {
|
|
4474
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
4475
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
4476
|
+
: undefined,
|
|
4477
|
+
Destinations: output.Destinations != null ? deserializeAws_json1_1ImportDestinations(output.Destinations, context) : undefined,
|
|
4478
|
+
EndEventTime: output.EndEventTime != null
|
|
4479
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndEventTime)))
|
|
4480
|
+
: undefined,
|
|
4481
|
+
ImportId: __expectString(output.ImportId),
|
|
4482
|
+
ImportSource: output.ImportSource != null ? deserializeAws_json1_1ImportSource(output.ImportSource, context) : undefined,
|
|
4483
|
+
ImportStatistics: output.ImportStatistics != null
|
|
4484
|
+
? deserializeAws_json1_1ImportStatistics(output.ImportStatistics, context)
|
|
4485
|
+
: undefined,
|
|
4486
|
+
ImportStatus: __expectString(output.ImportStatus),
|
|
4487
|
+
StartEventTime: output.StartEventTime != null
|
|
4488
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartEventTime)))
|
|
4489
|
+
: undefined,
|
|
4490
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
4491
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedTimestamp)))
|
|
4492
|
+
: undefined,
|
|
4493
|
+
};
|
|
4494
|
+
};
|
|
3981
4495
|
var deserializeAws_json1_1GetInsightSelectorsResponse = function (output, context) {
|
|
3982
4496
|
return {
|
|
3983
4497
|
InsightSelectors: output.InsightSelectors != null
|
|
@@ -4037,6 +4551,82 @@ var deserializeAws_json1_1GetTrailStatusResponse = function (output, context) {
|
|
|
4037
4551
|
TimeLoggingStopped: __expectString(output.TimeLoggingStopped),
|
|
4038
4552
|
};
|
|
4039
4553
|
};
|
|
4554
|
+
var deserializeAws_json1_1ImportDestinations = function (output, context) {
|
|
4555
|
+
var retVal = (output || [])
|
|
4556
|
+
.filter(function (e) { return e != null; })
|
|
4557
|
+
.map(function (entry) {
|
|
4558
|
+
if (entry === null) {
|
|
4559
|
+
return null;
|
|
4560
|
+
}
|
|
4561
|
+
return __expectString(entry);
|
|
4562
|
+
});
|
|
4563
|
+
return retVal;
|
|
4564
|
+
};
|
|
4565
|
+
var deserializeAws_json1_1ImportFailureList = function (output, context) {
|
|
4566
|
+
var retVal = (output || [])
|
|
4567
|
+
.filter(function (e) { return e != null; })
|
|
4568
|
+
.map(function (entry) {
|
|
4569
|
+
if (entry === null) {
|
|
4570
|
+
return null;
|
|
4571
|
+
}
|
|
4572
|
+
return deserializeAws_json1_1ImportFailureListItem(entry, context);
|
|
4573
|
+
});
|
|
4574
|
+
return retVal;
|
|
4575
|
+
};
|
|
4576
|
+
var deserializeAws_json1_1ImportFailureListItem = function (output, context) {
|
|
4577
|
+
return {
|
|
4578
|
+
ErrorMessage: __expectString(output.ErrorMessage),
|
|
4579
|
+
ErrorType: __expectString(output.ErrorType),
|
|
4580
|
+
LastUpdatedTime: output.LastUpdatedTime != null
|
|
4581
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
|
|
4582
|
+
: undefined,
|
|
4583
|
+
Location: __expectString(output.Location),
|
|
4584
|
+
Status: __expectString(output.Status),
|
|
4585
|
+
};
|
|
4586
|
+
};
|
|
4587
|
+
var deserializeAws_json1_1ImportNotFoundException = function (output, context) {
|
|
4588
|
+
return {
|
|
4589
|
+
Message: __expectString(output.Message),
|
|
4590
|
+
};
|
|
4591
|
+
};
|
|
4592
|
+
var deserializeAws_json1_1ImportsList = function (output, context) {
|
|
4593
|
+
var retVal = (output || [])
|
|
4594
|
+
.filter(function (e) { return e != null; })
|
|
4595
|
+
.map(function (entry) {
|
|
4596
|
+
if (entry === null) {
|
|
4597
|
+
return null;
|
|
4598
|
+
}
|
|
4599
|
+
return deserializeAws_json1_1ImportsListItem(entry, context);
|
|
4600
|
+
});
|
|
4601
|
+
return retVal;
|
|
4602
|
+
};
|
|
4603
|
+
var deserializeAws_json1_1ImportsListItem = function (output, context) {
|
|
4604
|
+
return {
|
|
4605
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
4606
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
4607
|
+
: undefined,
|
|
4608
|
+
Destinations: output.Destinations != null ? deserializeAws_json1_1ImportDestinations(output.Destinations, context) : undefined,
|
|
4609
|
+
ImportId: __expectString(output.ImportId),
|
|
4610
|
+
ImportStatus: __expectString(output.ImportStatus),
|
|
4611
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
4612
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedTimestamp)))
|
|
4613
|
+
: undefined,
|
|
4614
|
+
};
|
|
4615
|
+
};
|
|
4616
|
+
var deserializeAws_json1_1ImportSource = function (output, context) {
|
|
4617
|
+
return {
|
|
4618
|
+
S3: output.S3 != null ? deserializeAws_json1_1S3ImportSource(output.S3, context) : undefined,
|
|
4619
|
+
};
|
|
4620
|
+
};
|
|
4621
|
+
var deserializeAws_json1_1ImportStatistics = function (output, context) {
|
|
4622
|
+
return {
|
|
4623
|
+
EventsCompleted: __expectLong(output.EventsCompleted),
|
|
4624
|
+
FailedEntries: __expectLong(output.FailedEntries),
|
|
4625
|
+
FilesCompleted: __expectLong(output.FilesCompleted),
|
|
4626
|
+
PrefixesCompleted: __expectLong(output.PrefixesCompleted),
|
|
4627
|
+
PrefixesFound: __expectLong(output.PrefixesFound),
|
|
4628
|
+
};
|
|
4629
|
+
};
|
|
4040
4630
|
var deserializeAws_json1_1InactiveEventDataStoreException = function (output, context) {
|
|
4041
4631
|
return {
|
|
4042
4632
|
Message: __expectString(output.Message),
|
|
@@ -4108,6 +4698,11 @@ var deserializeAws_json1_1InvalidEventCategoryException = function (output, cont
|
|
|
4108
4698
|
Message: __expectString(output.Message),
|
|
4109
4699
|
};
|
|
4110
4700
|
};
|
|
4701
|
+
var deserializeAws_json1_1InvalidEventDataStoreCategoryException = function (output, context) {
|
|
4702
|
+
return {
|
|
4703
|
+
Message: __expectString(output.Message),
|
|
4704
|
+
};
|
|
4705
|
+
};
|
|
4111
4706
|
var deserializeAws_json1_1InvalidEventDataStoreStatusException = function (output, context) {
|
|
4112
4707
|
return {
|
|
4113
4708
|
Message: __expectString(output.Message),
|
|
@@ -4123,6 +4718,11 @@ var deserializeAws_json1_1InvalidHomeRegionException = function (output, context
|
|
|
4123
4718
|
Message: __expectString(output.Message),
|
|
4124
4719
|
};
|
|
4125
4720
|
};
|
|
4721
|
+
var deserializeAws_json1_1InvalidImportSourceException = function (output, context) {
|
|
4722
|
+
return {
|
|
4723
|
+
Message: __expectString(output.Message),
|
|
4724
|
+
};
|
|
4725
|
+
};
|
|
4126
4726
|
var deserializeAws_json1_1InvalidInsightSelectorsException = function (output, context) {
|
|
4127
4727
|
return {
|
|
4128
4728
|
Message: __expectString(output.Message),
|
|
@@ -4232,6 +4832,18 @@ var deserializeAws_json1_1ListEventDataStoresResponse = function (output, contex
|
|
|
4232
4832
|
NextToken: __expectString(output.NextToken),
|
|
4233
4833
|
};
|
|
4234
4834
|
};
|
|
4835
|
+
var deserializeAws_json1_1ListImportFailuresResponse = function (output, context) {
|
|
4836
|
+
return {
|
|
4837
|
+
Failures: output.Failures != null ? deserializeAws_json1_1ImportFailureList(output.Failures, context) : undefined,
|
|
4838
|
+
NextToken: __expectString(output.NextToken),
|
|
4839
|
+
};
|
|
4840
|
+
};
|
|
4841
|
+
var deserializeAws_json1_1ListImportsResponse = function (output, context) {
|
|
4842
|
+
return {
|
|
4843
|
+
Imports: output.Imports != null ? deserializeAws_json1_1ImportsList(output.Imports, context) : undefined,
|
|
4844
|
+
NextToken: __expectString(output.NextToken),
|
|
4845
|
+
};
|
|
4846
|
+
};
|
|
4235
4847
|
var deserializeAws_json1_1ListPublicKeysResponse = function (output, context) {
|
|
4236
4848
|
return {
|
|
4237
4849
|
NextToken: __expectString(output.NextToken),
|
|
@@ -4492,6 +5104,13 @@ var deserializeAws_json1_1S3BucketDoesNotExistException = function (output, cont
|
|
|
4492
5104
|
Message: __expectString(output.Message),
|
|
4493
5105
|
};
|
|
4494
5106
|
};
|
|
5107
|
+
var deserializeAws_json1_1S3ImportSource = function (output, context) {
|
|
5108
|
+
return {
|
|
5109
|
+
S3BucketAccessRoleArn: __expectString(output.S3BucketAccessRoleArn),
|
|
5110
|
+
S3BucketRegion: __expectString(output.S3BucketRegion),
|
|
5111
|
+
S3LocationUri: __expectString(output.S3LocationUri),
|
|
5112
|
+
};
|
|
5113
|
+
};
|
|
4495
5114
|
var deserializeAws_json1_1SourceConfig = function (output, context) {
|
|
4496
5115
|
return {
|
|
4497
5116
|
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|
|
@@ -4500,6 +5119,26 @@ var deserializeAws_json1_1SourceConfig = function (output, context) {
|
|
|
4500
5119
|
ApplyToAllRegions: __expectBoolean(output.ApplyToAllRegions),
|
|
4501
5120
|
};
|
|
4502
5121
|
};
|
|
5122
|
+
var deserializeAws_json1_1StartImportResponse = function (output, context) {
|
|
5123
|
+
return {
|
|
5124
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
5125
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
5126
|
+
: undefined,
|
|
5127
|
+
Destinations: output.Destinations != null ? deserializeAws_json1_1ImportDestinations(output.Destinations, context) : undefined,
|
|
5128
|
+
EndEventTime: output.EndEventTime != null
|
|
5129
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndEventTime)))
|
|
5130
|
+
: undefined,
|
|
5131
|
+
ImportId: __expectString(output.ImportId),
|
|
5132
|
+
ImportSource: output.ImportSource != null ? deserializeAws_json1_1ImportSource(output.ImportSource, context) : undefined,
|
|
5133
|
+
ImportStatus: __expectString(output.ImportStatus),
|
|
5134
|
+
StartEventTime: output.StartEventTime != null
|
|
5135
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartEventTime)))
|
|
5136
|
+
: undefined,
|
|
5137
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
5138
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedTimestamp)))
|
|
5139
|
+
: undefined,
|
|
5140
|
+
};
|
|
5141
|
+
};
|
|
4503
5142
|
var deserializeAws_json1_1StartLoggingResponse = function (output, context) {
|
|
4504
5143
|
return {};
|
|
4505
5144
|
};
|
|
@@ -4508,6 +5147,29 @@ var deserializeAws_json1_1StartQueryResponse = function (output, context) {
|
|
|
4508
5147
|
QueryId: __expectString(output.QueryId),
|
|
4509
5148
|
};
|
|
4510
5149
|
};
|
|
5150
|
+
var deserializeAws_json1_1StopImportResponse = function (output, context) {
|
|
5151
|
+
return {
|
|
5152
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
5153
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
5154
|
+
: undefined,
|
|
5155
|
+
Destinations: output.Destinations != null ? deserializeAws_json1_1ImportDestinations(output.Destinations, context) : undefined,
|
|
5156
|
+
EndEventTime: output.EndEventTime != null
|
|
5157
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndEventTime)))
|
|
5158
|
+
: undefined,
|
|
5159
|
+
ImportId: __expectString(output.ImportId),
|
|
5160
|
+
ImportSource: output.ImportSource != null ? deserializeAws_json1_1ImportSource(output.ImportSource, context) : undefined,
|
|
5161
|
+
ImportStatistics: output.ImportStatistics != null
|
|
5162
|
+
? deserializeAws_json1_1ImportStatistics(output.ImportStatistics, context)
|
|
5163
|
+
: undefined,
|
|
5164
|
+
ImportStatus: __expectString(output.ImportStatus),
|
|
5165
|
+
StartEventTime: output.StartEventTime != null
|
|
5166
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartEventTime)))
|
|
5167
|
+
: undefined,
|
|
5168
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null
|
|
5169
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedTimestamp)))
|
|
5170
|
+
: undefined,
|
|
5171
|
+
};
|
|
5172
|
+
};
|
|
4511
5173
|
var deserializeAws_json1_1StopLoggingResponse = function (output, context) {
|
|
4512
5174
|
return {};
|
|
4513
5175
|
};
|