@aws-sdk/client-cloudtrail 3.50.0 → 3.53.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 +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/CloudTrailServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +816 -2
- package/dist-cjs/protocols/Aws_json1_1.js +587 -2141
- package/dist-es/index.js +1 -0
- package/dist-es/models/CloudTrailServiceException.js +12 -0
- package/dist-es/models/models_0.js +756 -1
- package/dist-es/protocols/Aws_json1_1.js +1077 -2142
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/CloudTrailServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +408 -175
- package/dist-types/ts3.4/CloudTrail.d.ts +150 -0
- package/dist-types/ts3.4/CloudTrailClient.d.ts +102 -0
- package/dist-types/ts3.4/commands/AddTagsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CancelQueryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateEventDataStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateTrailCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteEventDataStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteTrailCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeQueryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeTrailsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetEventDataStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetEventSelectorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetInsightSelectorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetTrailCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetTrailStatusCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListEventDataStoresCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListPublicKeysCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListQueriesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTrailsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/LookupEventsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutEventSelectorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutInsightSelectorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RemoveTagsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RestoreEventDataStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartLoggingCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartQueryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopLoggingCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateEventDataStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateTrailCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +29 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/CloudTrailServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1617 -0
- package/dist-types/ts3.4/pagination/GetQueryResultsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListEventDataStoresPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListPublicKeysPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListQueriesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListTagsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListTrailsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/LookupEventsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +89 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -4,6 +4,8 @@ exports.deserializeAws_json1_1PutEventSelectorsCommand = exports.deserializeAws_
|
|
|
4
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 = 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
|
+
const CloudTrailServiceException_1 = require("../models/CloudTrailServiceException");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
7
9
|
const serializeAws_json1_1AddTagsCommand = async (input, context) => {
|
|
8
10
|
const headers = {
|
|
9
11
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -319,115 +321,49 @@ const deserializeAws_json1_1AddTagsCommandError = async (output, context) => {
|
|
|
319
321
|
switch (errorCode) {
|
|
320
322
|
case "CloudTrailARNInvalidException":
|
|
321
323
|
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
322
|
-
|
|
323
|
-
...(await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context)),
|
|
324
|
-
name: errorCode,
|
|
325
|
-
$metadata: deserializeMetadata(output),
|
|
326
|
-
};
|
|
327
|
-
break;
|
|
324
|
+
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
328
325
|
case "ConflictException":
|
|
329
326
|
case "com.amazonaws.cloudtrail#ConflictException":
|
|
330
|
-
|
|
331
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
332
|
-
name: errorCode,
|
|
333
|
-
$metadata: deserializeMetadata(output),
|
|
334
|
-
};
|
|
335
|
-
break;
|
|
327
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
336
328
|
case "EventDataStoreNotFoundException":
|
|
337
329
|
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
338
|
-
|
|
339
|
-
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
340
|
-
name: errorCode,
|
|
341
|
-
$metadata: deserializeMetadata(output),
|
|
342
|
-
};
|
|
343
|
-
break;
|
|
330
|
+
throw await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context);
|
|
344
331
|
case "InactiveEventDataStoreException":
|
|
345
332
|
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
346
|
-
|
|
347
|
-
...(await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context)),
|
|
348
|
-
name: errorCode,
|
|
349
|
-
$metadata: deserializeMetadata(output),
|
|
350
|
-
};
|
|
351
|
-
break;
|
|
333
|
+
throw await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context);
|
|
352
334
|
case "InvalidTagParameterException":
|
|
353
335
|
case "com.amazonaws.cloudtrail#InvalidTagParameterException":
|
|
354
|
-
|
|
355
|
-
...(await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)),
|
|
356
|
-
name: errorCode,
|
|
357
|
-
$metadata: deserializeMetadata(output),
|
|
358
|
-
};
|
|
359
|
-
break;
|
|
336
|
+
throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context);
|
|
360
337
|
case "InvalidTrailNameException":
|
|
361
338
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
362
|
-
|
|
363
|
-
...(await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context)),
|
|
364
|
-
name: errorCode,
|
|
365
|
-
$metadata: deserializeMetadata(output),
|
|
366
|
-
};
|
|
367
|
-
break;
|
|
339
|
+
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
368
340
|
case "NotOrganizationMasterAccountException":
|
|
369
341
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
370
|
-
|
|
371
|
-
...(await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context)),
|
|
372
|
-
name: errorCode,
|
|
373
|
-
$metadata: deserializeMetadata(output),
|
|
374
|
-
};
|
|
375
|
-
break;
|
|
342
|
+
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
376
343
|
case "OperationNotPermittedException":
|
|
377
344
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
378
|
-
|
|
379
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
380
|
-
name: errorCode,
|
|
381
|
-
$metadata: deserializeMetadata(output),
|
|
382
|
-
};
|
|
383
|
-
break;
|
|
345
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
384
346
|
case "ResourceNotFoundException":
|
|
385
347
|
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
386
|
-
|
|
387
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
388
|
-
name: errorCode,
|
|
389
|
-
$metadata: deserializeMetadata(output),
|
|
390
|
-
};
|
|
391
|
-
break;
|
|
348
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
392
349
|
case "ResourceTypeNotSupportedException":
|
|
393
350
|
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
394
|
-
|
|
395
|
-
...(await deserializeAws_json1_1ResourceTypeNotSupportedExceptionResponse(parsedOutput, context)),
|
|
396
|
-
name: errorCode,
|
|
397
|
-
$metadata: deserializeMetadata(output),
|
|
398
|
-
};
|
|
399
|
-
break;
|
|
351
|
+
throw await deserializeAws_json1_1ResourceTypeNotSupportedExceptionResponse(parsedOutput, context);
|
|
400
352
|
case "TagsLimitExceededException":
|
|
401
353
|
case "com.amazonaws.cloudtrail#TagsLimitExceededException":
|
|
402
|
-
|
|
403
|
-
...(await deserializeAws_json1_1TagsLimitExceededExceptionResponse(parsedOutput, context)),
|
|
404
|
-
name: errorCode,
|
|
405
|
-
$metadata: deserializeMetadata(output),
|
|
406
|
-
};
|
|
407
|
-
break;
|
|
354
|
+
throw await deserializeAws_json1_1TagsLimitExceededExceptionResponse(parsedOutput, context);
|
|
408
355
|
case "UnsupportedOperationException":
|
|
409
356
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
410
|
-
|
|
411
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
412
|
-
name: errorCode,
|
|
413
|
-
$metadata: deserializeMetadata(output),
|
|
414
|
-
};
|
|
415
|
-
break;
|
|
357
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
416
358
|
default:
|
|
417
359
|
const parsedBody = parsedOutput.body;
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
...parsedBody,
|
|
421
|
-
name: `${errorCode}`,
|
|
422
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
360
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
361
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
423
362
|
$fault: "client",
|
|
424
363
|
$metadata: deserializeMetadata(output),
|
|
425
|
-
};
|
|
364
|
+
});
|
|
365
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
426
366
|
}
|
|
427
|
-
const message = response.message || response.Message || errorCode;
|
|
428
|
-
response.message = message;
|
|
429
|
-
delete response.Message;
|
|
430
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
431
367
|
};
|
|
432
368
|
const deserializeAws_json1_1CancelQueryCommand = async (output, context) => {
|
|
433
369
|
if (output.statusCode >= 300) {
|
|
@@ -454,91 +390,40 @@ const deserializeAws_json1_1CancelQueryCommandError = async (output, context) =>
|
|
|
454
390
|
switch (errorCode) {
|
|
455
391
|
case "ConflictException":
|
|
456
392
|
case "com.amazonaws.cloudtrail#ConflictException":
|
|
457
|
-
|
|
458
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
459
|
-
name: errorCode,
|
|
460
|
-
$metadata: deserializeMetadata(output),
|
|
461
|
-
};
|
|
462
|
-
break;
|
|
393
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
463
394
|
case "EventDataStoreARNInvalidException":
|
|
464
395
|
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
465
|
-
|
|
466
|
-
...(await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context)),
|
|
467
|
-
name: errorCode,
|
|
468
|
-
$metadata: deserializeMetadata(output),
|
|
469
|
-
};
|
|
470
|
-
break;
|
|
396
|
+
throw await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context);
|
|
471
397
|
case "EventDataStoreNotFoundException":
|
|
472
398
|
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
473
|
-
|
|
474
|
-
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
475
|
-
name: errorCode,
|
|
476
|
-
$metadata: deserializeMetadata(output),
|
|
477
|
-
};
|
|
478
|
-
break;
|
|
399
|
+
throw await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context);
|
|
479
400
|
case "InactiveEventDataStoreException":
|
|
480
401
|
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
481
|
-
|
|
482
|
-
...(await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context)),
|
|
483
|
-
name: errorCode,
|
|
484
|
-
$metadata: deserializeMetadata(output),
|
|
485
|
-
};
|
|
486
|
-
break;
|
|
402
|
+
throw await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context);
|
|
487
403
|
case "InactiveQueryException":
|
|
488
404
|
case "com.amazonaws.cloudtrail#InactiveQueryException":
|
|
489
|
-
|
|
490
|
-
...(await deserializeAws_json1_1InactiveQueryExceptionResponse(parsedOutput, context)),
|
|
491
|
-
name: errorCode,
|
|
492
|
-
$metadata: deserializeMetadata(output),
|
|
493
|
-
};
|
|
494
|
-
break;
|
|
405
|
+
throw await deserializeAws_json1_1InactiveQueryExceptionResponse(parsedOutput, context);
|
|
495
406
|
case "InvalidParameterException":
|
|
496
407
|
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
497
|
-
|
|
498
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
499
|
-
name: errorCode,
|
|
500
|
-
$metadata: deserializeMetadata(output),
|
|
501
|
-
};
|
|
502
|
-
break;
|
|
408
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
503
409
|
case "OperationNotPermittedException":
|
|
504
410
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
505
|
-
|
|
506
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
507
|
-
name: errorCode,
|
|
508
|
-
$metadata: deserializeMetadata(output),
|
|
509
|
-
};
|
|
510
|
-
break;
|
|
411
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
511
412
|
case "QueryIdNotFoundException":
|
|
512
413
|
case "com.amazonaws.cloudtrail#QueryIdNotFoundException":
|
|
513
|
-
|
|
514
|
-
...(await deserializeAws_json1_1QueryIdNotFoundExceptionResponse(parsedOutput, context)),
|
|
515
|
-
name: errorCode,
|
|
516
|
-
$metadata: deserializeMetadata(output),
|
|
517
|
-
};
|
|
518
|
-
break;
|
|
414
|
+
throw await deserializeAws_json1_1QueryIdNotFoundExceptionResponse(parsedOutput, context);
|
|
519
415
|
case "UnsupportedOperationException":
|
|
520
416
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
521
|
-
|
|
522
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
523
|
-
name: errorCode,
|
|
524
|
-
$metadata: deserializeMetadata(output),
|
|
525
|
-
};
|
|
526
|
-
break;
|
|
417
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
527
418
|
default:
|
|
528
419
|
const parsedBody = parsedOutput.body;
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
...parsedBody,
|
|
532
|
-
name: `${errorCode}`,
|
|
533
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
420
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
421
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
534
422
|
$fault: "client",
|
|
535
423
|
$metadata: deserializeMetadata(output),
|
|
536
|
-
};
|
|
424
|
+
});
|
|
425
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
537
426
|
}
|
|
538
|
-
const message = response.message || response.Message || errorCode;
|
|
539
|
-
response.message = message;
|
|
540
|
-
delete response.Message;
|
|
541
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
542
427
|
};
|
|
543
428
|
const deserializeAws_json1_1CreateEventDataStoreCommand = async (output, context) => {
|
|
544
429
|
if (output.statusCode >= 300) {
|
|
@@ -565,115 +450,49 @@ const deserializeAws_json1_1CreateEventDataStoreCommandError = async (output, co
|
|
|
565
450
|
switch (errorCode) {
|
|
566
451
|
case "CloudTrailAccessNotEnabledException":
|
|
567
452
|
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
568
|
-
|
|
569
|
-
...(await deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context)),
|
|
570
|
-
name: errorCode,
|
|
571
|
-
$metadata: deserializeMetadata(output),
|
|
572
|
-
};
|
|
573
|
-
break;
|
|
453
|
+
throw await deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
574
454
|
case "ConflictException":
|
|
575
455
|
case "com.amazonaws.cloudtrail#ConflictException":
|
|
576
|
-
|
|
577
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
578
|
-
name: errorCode,
|
|
579
|
-
$metadata: deserializeMetadata(output),
|
|
580
|
-
};
|
|
581
|
-
break;
|
|
456
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
582
457
|
case "EventDataStoreAlreadyExistsException":
|
|
583
458
|
case "com.amazonaws.cloudtrail#EventDataStoreAlreadyExistsException":
|
|
584
|
-
|
|
585
|
-
...(await deserializeAws_json1_1EventDataStoreAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
586
|
-
name: errorCode,
|
|
587
|
-
$metadata: deserializeMetadata(output),
|
|
588
|
-
};
|
|
589
|
-
break;
|
|
459
|
+
throw await deserializeAws_json1_1EventDataStoreAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
590
460
|
case "EventDataStoreMaxLimitExceededException":
|
|
591
461
|
case "com.amazonaws.cloudtrail#EventDataStoreMaxLimitExceededException":
|
|
592
|
-
|
|
593
|
-
...(await deserializeAws_json1_1EventDataStoreMaxLimitExceededExceptionResponse(parsedOutput, context)),
|
|
594
|
-
name: errorCode,
|
|
595
|
-
$metadata: deserializeMetadata(output),
|
|
596
|
-
};
|
|
597
|
-
break;
|
|
462
|
+
throw await deserializeAws_json1_1EventDataStoreMaxLimitExceededExceptionResponse(parsedOutput, context);
|
|
598
463
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
599
464
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
600
|
-
|
|
601
|
-
...(await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context)),
|
|
602
|
-
name: errorCode,
|
|
603
|
-
$metadata: deserializeMetadata(output),
|
|
604
|
-
};
|
|
605
|
-
break;
|
|
465
|
+
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
606
466
|
case "InvalidParameterException":
|
|
607
467
|
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
608
|
-
|
|
609
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
610
|
-
name: errorCode,
|
|
611
|
-
$metadata: deserializeMetadata(output),
|
|
612
|
-
};
|
|
613
|
-
break;
|
|
468
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
614
469
|
case "InvalidTagParameterException":
|
|
615
470
|
case "com.amazonaws.cloudtrail#InvalidTagParameterException":
|
|
616
|
-
|
|
617
|
-
...(await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)),
|
|
618
|
-
name: errorCode,
|
|
619
|
-
$metadata: deserializeMetadata(output),
|
|
620
|
-
};
|
|
621
|
-
break;
|
|
471
|
+
throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context);
|
|
622
472
|
case "NotOrganizationMasterAccountException":
|
|
623
473
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
624
|
-
|
|
625
|
-
...(await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context)),
|
|
626
|
-
name: errorCode,
|
|
627
|
-
$metadata: deserializeMetadata(output),
|
|
628
|
-
};
|
|
629
|
-
break;
|
|
474
|
+
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
630
475
|
case "OperationNotPermittedException":
|
|
631
476
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
632
|
-
|
|
633
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
634
|
-
name: errorCode,
|
|
635
|
-
$metadata: deserializeMetadata(output),
|
|
636
|
-
};
|
|
637
|
-
break;
|
|
477
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
638
478
|
case "OrganizationNotInAllFeaturesModeException":
|
|
639
479
|
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
640
|
-
|
|
641
|
-
...(await deserializeAws_json1_1OrganizationNotInAllFeaturesModeExceptionResponse(parsedOutput, context)),
|
|
642
|
-
name: errorCode,
|
|
643
|
-
$metadata: deserializeMetadata(output),
|
|
644
|
-
};
|
|
645
|
-
break;
|
|
480
|
+
throw await deserializeAws_json1_1OrganizationNotInAllFeaturesModeExceptionResponse(parsedOutput, context);
|
|
646
481
|
case "OrganizationsNotInUseException":
|
|
647
482
|
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
648
|
-
|
|
649
|
-
...(await deserializeAws_json1_1OrganizationsNotInUseExceptionResponse(parsedOutput, context)),
|
|
650
|
-
name: errorCode,
|
|
651
|
-
$metadata: deserializeMetadata(output),
|
|
652
|
-
};
|
|
653
|
-
break;
|
|
483
|
+
throw await deserializeAws_json1_1OrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
654
484
|
case "UnsupportedOperationException":
|
|
655
485
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
656
|
-
|
|
657
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
658
|
-
name: errorCode,
|
|
659
|
-
$metadata: deserializeMetadata(output),
|
|
660
|
-
};
|
|
661
|
-
break;
|
|
486
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
662
487
|
default:
|
|
663
488
|
const parsedBody = parsedOutput.body;
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
...parsedBody,
|
|
667
|
-
name: `${errorCode}`,
|
|
668
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
489
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
490
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
669
491
|
$fault: "client",
|
|
670
492
|
$metadata: deserializeMetadata(output),
|
|
671
|
-
};
|
|
493
|
+
});
|
|
494
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
672
495
|
}
|
|
673
|
-
const message = response.message || response.Message || errorCode;
|
|
674
|
-
response.message = message;
|
|
675
|
-
delete response.Message;
|
|
676
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
677
496
|
};
|
|
678
497
|
const deserializeAws_json1_1CreateTrailCommand = async (output, context) => {
|
|
679
498
|
if (output.statusCode >= 300) {
|
|
@@ -700,251 +519,100 @@ const deserializeAws_json1_1CreateTrailCommandError = async (output, context) =>
|
|
|
700
519
|
switch (errorCode) {
|
|
701
520
|
case "CloudTrailAccessNotEnabledException":
|
|
702
521
|
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
703
|
-
|
|
704
|
-
...(await deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context)),
|
|
705
|
-
name: errorCode,
|
|
706
|
-
$metadata: deserializeMetadata(output),
|
|
707
|
-
};
|
|
708
|
-
break;
|
|
522
|
+
throw await deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
709
523
|
case "CloudTrailInvalidClientTokenIdException":
|
|
710
524
|
case "com.amazonaws.cloudtrail#CloudTrailInvalidClientTokenIdException":
|
|
711
|
-
|
|
712
|
-
...(await deserializeAws_json1_1CloudTrailInvalidClientTokenIdExceptionResponse(parsedOutput, context)),
|
|
713
|
-
name: errorCode,
|
|
714
|
-
$metadata: deserializeMetadata(output),
|
|
715
|
-
};
|
|
716
|
-
break;
|
|
525
|
+
throw await deserializeAws_json1_1CloudTrailInvalidClientTokenIdExceptionResponse(parsedOutput, context);
|
|
717
526
|
case "CloudWatchLogsDeliveryUnavailableException":
|
|
718
527
|
case "com.amazonaws.cloudtrail#CloudWatchLogsDeliveryUnavailableException":
|
|
719
|
-
|
|
720
|
-
...(await deserializeAws_json1_1CloudWatchLogsDeliveryUnavailableExceptionResponse(parsedOutput, context)),
|
|
721
|
-
name: errorCode,
|
|
722
|
-
$metadata: deserializeMetadata(output),
|
|
723
|
-
};
|
|
724
|
-
break;
|
|
528
|
+
throw await deserializeAws_json1_1CloudWatchLogsDeliveryUnavailableExceptionResponse(parsedOutput, context);
|
|
725
529
|
case "ConflictException":
|
|
726
530
|
case "com.amazonaws.cloudtrail#ConflictException":
|
|
727
|
-
|
|
728
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
729
|
-
name: errorCode,
|
|
730
|
-
$metadata: deserializeMetadata(output),
|
|
731
|
-
};
|
|
732
|
-
break;
|
|
531
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
733
532
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
734
533
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
735
|
-
|
|
736
|
-
...(await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context)),
|
|
737
|
-
name: errorCode,
|
|
738
|
-
$metadata: deserializeMetadata(output),
|
|
739
|
-
};
|
|
740
|
-
break;
|
|
534
|
+
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
741
535
|
case "InsufficientEncryptionPolicyException":
|
|
742
536
|
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
743
|
-
|
|
744
|
-
...(await deserializeAws_json1_1InsufficientEncryptionPolicyExceptionResponse(parsedOutput, context)),
|
|
745
|
-
name: errorCode,
|
|
746
|
-
$metadata: deserializeMetadata(output),
|
|
747
|
-
};
|
|
748
|
-
break;
|
|
537
|
+
throw await deserializeAws_json1_1InsufficientEncryptionPolicyExceptionResponse(parsedOutput, context);
|
|
749
538
|
case "InsufficientS3BucketPolicyException":
|
|
750
539
|
case "com.amazonaws.cloudtrail#InsufficientS3BucketPolicyException":
|
|
751
|
-
|
|
752
|
-
...(await deserializeAws_json1_1InsufficientS3BucketPolicyExceptionResponse(parsedOutput, context)),
|
|
753
|
-
name: errorCode,
|
|
754
|
-
$metadata: deserializeMetadata(output),
|
|
755
|
-
};
|
|
756
|
-
break;
|
|
540
|
+
throw await deserializeAws_json1_1InsufficientS3BucketPolicyExceptionResponse(parsedOutput, context);
|
|
757
541
|
case "InsufficientSnsTopicPolicyException":
|
|
758
542
|
case "com.amazonaws.cloudtrail#InsufficientSnsTopicPolicyException":
|
|
759
|
-
|
|
760
|
-
...(await deserializeAws_json1_1InsufficientSnsTopicPolicyExceptionResponse(parsedOutput, context)),
|
|
761
|
-
name: errorCode,
|
|
762
|
-
$metadata: deserializeMetadata(output),
|
|
763
|
-
};
|
|
764
|
-
break;
|
|
543
|
+
throw await deserializeAws_json1_1InsufficientSnsTopicPolicyExceptionResponse(parsedOutput, context);
|
|
765
544
|
case "InvalidCloudWatchLogsLogGroupArnException":
|
|
766
545
|
case "com.amazonaws.cloudtrail#InvalidCloudWatchLogsLogGroupArnException":
|
|
767
|
-
|
|
768
|
-
...(await deserializeAws_json1_1InvalidCloudWatchLogsLogGroupArnExceptionResponse(parsedOutput, context)),
|
|
769
|
-
name: errorCode,
|
|
770
|
-
$metadata: deserializeMetadata(output),
|
|
771
|
-
};
|
|
772
|
-
break;
|
|
546
|
+
throw await deserializeAws_json1_1InvalidCloudWatchLogsLogGroupArnExceptionResponse(parsedOutput, context);
|
|
773
547
|
case "InvalidCloudWatchLogsRoleArnException":
|
|
774
548
|
case "com.amazonaws.cloudtrail#InvalidCloudWatchLogsRoleArnException":
|
|
775
|
-
|
|
776
|
-
...(await deserializeAws_json1_1InvalidCloudWatchLogsRoleArnExceptionResponse(parsedOutput, context)),
|
|
777
|
-
name: errorCode,
|
|
778
|
-
$metadata: deserializeMetadata(output),
|
|
779
|
-
};
|
|
780
|
-
break;
|
|
549
|
+
throw await deserializeAws_json1_1InvalidCloudWatchLogsRoleArnExceptionResponse(parsedOutput, context);
|
|
781
550
|
case "InvalidKmsKeyIdException":
|
|
782
551
|
case "com.amazonaws.cloudtrail#InvalidKmsKeyIdException":
|
|
783
|
-
|
|
784
|
-
...(await deserializeAws_json1_1InvalidKmsKeyIdExceptionResponse(parsedOutput, context)),
|
|
785
|
-
name: errorCode,
|
|
786
|
-
$metadata: deserializeMetadata(output),
|
|
787
|
-
};
|
|
788
|
-
break;
|
|
552
|
+
throw await deserializeAws_json1_1InvalidKmsKeyIdExceptionResponse(parsedOutput, context);
|
|
789
553
|
case "InvalidParameterCombinationException":
|
|
790
554
|
case "com.amazonaws.cloudtrail#InvalidParameterCombinationException":
|
|
791
|
-
|
|
792
|
-
...(await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)),
|
|
793
|
-
name: errorCode,
|
|
794
|
-
$metadata: deserializeMetadata(output),
|
|
795
|
-
};
|
|
796
|
-
break;
|
|
555
|
+
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
797
556
|
case "InvalidS3BucketNameException":
|
|
798
557
|
case "com.amazonaws.cloudtrail#InvalidS3BucketNameException":
|
|
799
|
-
|
|
800
|
-
...(await deserializeAws_json1_1InvalidS3BucketNameExceptionResponse(parsedOutput, context)),
|
|
801
|
-
name: errorCode,
|
|
802
|
-
$metadata: deserializeMetadata(output),
|
|
803
|
-
};
|
|
804
|
-
break;
|
|
558
|
+
throw await deserializeAws_json1_1InvalidS3BucketNameExceptionResponse(parsedOutput, context);
|
|
805
559
|
case "InvalidS3PrefixException":
|
|
806
560
|
case "com.amazonaws.cloudtrail#InvalidS3PrefixException":
|
|
807
|
-
|
|
808
|
-
...(await deserializeAws_json1_1InvalidS3PrefixExceptionResponse(parsedOutput, context)),
|
|
809
|
-
name: errorCode,
|
|
810
|
-
$metadata: deserializeMetadata(output),
|
|
811
|
-
};
|
|
812
|
-
break;
|
|
561
|
+
throw await deserializeAws_json1_1InvalidS3PrefixExceptionResponse(parsedOutput, context);
|
|
813
562
|
case "InvalidSnsTopicNameException":
|
|
814
563
|
case "com.amazonaws.cloudtrail#InvalidSnsTopicNameException":
|
|
815
|
-
|
|
816
|
-
...(await deserializeAws_json1_1InvalidSnsTopicNameExceptionResponse(parsedOutput, context)),
|
|
817
|
-
name: errorCode,
|
|
818
|
-
$metadata: deserializeMetadata(output),
|
|
819
|
-
};
|
|
820
|
-
break;
|
|
564
|
+
throw await deserializeAws_json1_1InvalidSnsTopicNameExceptionResponse(parsedOutput, context);
|
|
821
565
|
case "InvalidTagParameterException":
|
|
822
566
|
case "com.amazonaws.cloudtrail#InvalidTagParameterException":
|
|
823
|
-
|
|
824
|
-
...(await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)),
|
|
825
|
-
name: errorCode,
|
|
826
|
-
$metadata: deserializeMetadata(output),
|
|
827
|
-
};
|
|
828
|
-
break;
|
|
567
|
+
throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context);
|
|
829
568
|
case "InvalidTrailNameException":
|
|
830
569
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
831
|
-
|
|
832
|
-
...(await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context)),
|
|
833
|
-
name: errorCode,
|
|
834
|
-
$metadata: deserializeMetadata(output),
|
|
835
|
-
};
|
|
836
|
-
break;
|
|
570
|
+
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
837
571
|
case "KmsException":
|
|
838
572
|
case "com.amazonaws.cloudtrail#KmsException":
|
|
839
|
-
|
|
840
|
-
...(await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)),
|
|
841
|
-
name: errorCode,
|
|
842
|
-
$metadata: deserializeMetadata(output),
|
|
843
|
-
};
|
|
844
|
-
break;
|
|
573
|
+
throw await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context);
|
|
845
574
|
case "KmsKeyDisabledException":
|
|
846
575
|
case "com.amazonaws.cloudtrail#KmsKeyDisabledException":
|
|
847
|
-
|
|
848
|
-
...(await deserializeAws_json1_1KmsKeyDisabledExceptionResponse(parsedOutput, context)),
|
|
849
|
-
name: errorCode,
|
|
850
|
-
$metadata: deserializeMetadata(output),
|
|
851
|
-
};
|
|
852
|
-
break;
|
|
576
|
+
throw await deserializeAws_json1_1KmsKeyDisabledExceptionResponse(parsedOutput, context);
|
|
853
577
|
case "KmsKeyNotFoundException":
|
|
854
578
|
case "com.amazonaws.cloudtrail#KmsKeyNotFoundException":
|
|
855
|
-
|
|
856
|
-
...(await deserializeAws_json1_1KmsKeyNotFoundExceptionResponse(parsedOutput, context)),
|
|
857
|
-
name: errorCode,
|
|
858
|
-
$metadata: deserializeMetadata(output),
|
|
859
|
-
};
|
|
860
|
-
break;
|
|
579
|
+
throw await deserializeAws_json1_1KmsKeyNotFoundExceptionResponse(parsedOutput, context);
|
|
861
580
|
case "MaximumNumberOfTrailsExceededException":
|
|
862
581
|
case "com.amazonaws.cloudtrail#MaximumNumberOfTrailsExceededException":
|
|
863
|
-
|
|
864
|
-
...(await deserializeAws_json1_1MaximumNumberOfTrailsExceededExceptionResponse(parsedOutput, context)),
|
|
865
|
-
name: errorCode,
|
|
866
|
-
$metadata: deserializeMetadata(output),
|
|
867
|
-
};
|
|
868
|
-
break;
|
|
582
|
+
throw await deserializeAws_json1_1MaximumNumberOfTrailsExceededExceptionResponse(parsedOutput, context);
|
|
869
583
|
case "NotOrganizationMasterAccountException":
|
|
870
584
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
871
|
-
|
|
872
|
-
...(await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context)),
|
|
873
|
-
name: errorCode,
|
|
874
|
-
$metadata: deserializeMetadata(output),
|
|
875
|
-
};
|
|
876
|
-
break;
|
|
585
|
+
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
877
586
|
case "OperationNotPermittedException":
|
|
878
587
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
879
|
-
|
|
880
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
881
|
-
name: errorCode,
|
|
882
|
-
$metadata: deserializeMetadata(output),
|
|
883
|
-
};
|
|
884
|
-
break;
|
|
588
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
885
589
|
case "OrganizationNotInAllFeaturesModeException":
|
|
886
590
|
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
887
|
-
|
|
888
|
-
...(await deserializeAws_json1_1OrganizationNotInAllFeaturesModeExceptionResponse(parsedOutput, context)),
|
|
889
|
-
name: errorCode,
|
|
890
|
-
$metadata: deserializeMetadata(output),
|
|
891
|
-
};
|
|
892
|
-
break;
|
|
591
|
+
throw await deserializeAws_json1_1OrganizationNotInAllFeaturesModeExceptionResponse(parsedOutput, context);
|
|
893
592
|
case "OrganizationsNotInUseException":
|
|
894
593
|
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
895
|
-
|
|
896
|
-
...(await deserializeAws_json1_1OrganizationsNotInUseExceptionResponse(parsedOutput, context)),
|
|
897
|
-
name: errorCode,
|
|
898
|
-
$metadata: deserializeMetadata(output),
|
|
899
|
-
};
|
|
900
|
-
break;
|
|
594
|
+
throw await deserializeAws_json1_1OrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
901
595
|
case "S3BucketDoesNotExistException":
|
|
902
596
|
case "com.amazonaws.cloudtrail#S3BucketDoesNotExistException":
|
|
903
|
-
|
|
904
|
-
...(await deserializeAws_json1_1S3BucketDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
905
|
-
name: errorCode,
|
|
906
|
-
$metadata: deserializeMetadata(output),
|
|
907
|
-
};
|
|
908
|
-
break;
|
|
597
|
+
throw await deserializeAws_json1_1S3BucketDoesNotExistExceptionResponse(parsedOutput, context);
|
|
909
598
|
case "TrailAlreadyExistsException":
|
|
910
599
|
case "com.amazonaws.cloudtrail#TrailAlreadyExistsException":
|
|
911
|
-
|
|
912
|
-
...(await deserializeAws_json1_1TrailAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
913
|
-
name: errorCode,
|
|
914
|
-
$metadata: deserializeMetadata(output),
|
|
915
|
-
};
|
|
916
|
-
break;
|
|
600
|
+
throw await deserializeAws_json1_1TrailAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
917
601
|
case "TrailNotProvidedException":
|
|
918
602
|
case "com.amazonaws.cloudtrail#TrailNotProvidedException":
|
|
919
|
-
|
|
920
|
-
...(await deserializeAws_json1_1TrailNotProvidedExceptionResponse(parsedOutput, context)),
|
|
921
|
-
name: errorCode,
|
|
922
|
-
$metadata: deserializeMetadata(output),
|
|
923
|
-
};
|
|
924
|
-
break;
|
|
603
|
+
throw await deserializeAws_json1_1TrailNotProvidedExceptionResponse(parsedOutput, context);
|
|
925
604
|
case "UnsupportedOperationException":
|
|
926
605
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
927
|
-
|
|
928
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
929
|
-
name: errorCode,
|
|
930
|
-
$metadata: deserializeMetadata(output),
|
|
931
|
-
};
|
|
932
|
-
break;
|
|
606
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
933
607
|
default:
|
|
934
608
|
const parsedBody = parsedOutput.body;
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
...parsedBody,
|
|
938
|
-
name: `${errorCode}`,
|
|
939
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
609
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
610
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
940
611
|
$fault: "client",
|
|
941
612
|
$metadata: deserializeMetadata(output),
|
|
942
|
-
};
|
|
613
|
+
});
|
|
614
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
943
615
|
}
|
|
944
|
-
const message = response.message || response.Message || errorCode;
|
|
945
|
-
response.message = message;
|
|
946
|
-
delete response.Message;
|
|
947
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
948
616
|
};
|
|
949
617
|
const deserializeAws_json1_1DeleteEventDataStoreCommand = async (output, context) => {
|
|
950
618
|
if (output.statusCode >= 300) {
|
|
@@ -971,83 +639,37 @@ const deserializeAws_json1_1DeleteEventDataStoreCommandError = async (output, co
|
|
|
971
639
|
switch (errorCode) {
|
|
972
640
|
case "EventDataStoreARNInvalidException":
|
|
973
641
|
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
974
|
-
|
|
975
|
-
...(await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context)),
|
|
976
|
-
name: errorCode,
|
|
977
|
-
$metadata: deserializeMetadata(output),
|
|
978
|
-
};
|
|
979
|
-
break;
|
|
642
|
+
throw await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context);
|
|
980
643
|
case "EventDataStoreNotFoundException":
|
|
981
644
|
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
982
|
-
|
|
983
|
-
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
984
|
-
name: errorCode,
|
|
985
|
-
$metadata: deserializeMetadata(output),
|
|
986
|
-
};
|
|
987
|
-
break;
|
|
645
|
+
throw await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context);
|
|
988
646
|
case "EventDataStoreTerminationProtectedException":
|
|
989
647
|
case "com.amazonaws.cloudtrail#EventDataStoreTerminationProtectedException":
|
|
990
|
-
|
|
991
|
-
...(await deserializeAws_json1_1EventDataStoreTerminationProtectedExceptionResponse(parsedOutput, context)),
|
|
992
|
-
name: errorCode,
|
|
993
|
-
$metadata: deserializeMetadata(output),
|
|
994
|
-
};
|
|
995
|
-
break;
|
|
648
|
+
throw await deserializeAws_json1_1EventDataStoreTerminationProtectedExceptionResponse(parsedOutput, context);
|
|
996
649
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
997
650
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
998
|
-
|
|
999
|
-
...(await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context)),
|
|
1000
|
-
name: errorCode,
|
|
1001
|
-
$metadata: deserializeMetadata(output),
|
|
1002
|
-
};
|
|
1003
|
-
break;
|
|
651
|
+
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
1004
652
|
case "InvalidParameterException":
|
|
1005
653
|
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1006
|
-
|
|
1007
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1008
|
-
name: errorCode,
|
|
1009
|
-
$metadata: deserializeMetadata(output),
|
|
1010
|
-
};
|
|
1011
|
-
break;
|
|
654
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1012
655
|
case "NotOrganizationMasterAccountException":
|
|
1013
656
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
1014
|
-
|
|
1015
|
-
...(await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context)),
|
|
1016
|
-
name: errorCode,
|
|
1017
|
-
$metadata: deserializeMetadata(output),
|
|
1018
|
-
};
|
|
1019
|
-
break;
|
|
657
|
+
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
1020
658
|
case "OperationNotPermittedException":
|
|
1021
659
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1022
|
-
|
|
1023
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1024
|
-
name: errorCode,
|
|
1025
|
-
$metadata: deserializeMetadata(output),
|
|
1026
|
-
};
|
|
1027
|
-
break;
|
|
660
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
1028
661
|
case "UnsupportedOperationException":
|
|
1029
662
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1030
|
-
|
|
1031
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1032
|
-
name: errorCode,
|
|
1033
|
-
$metadata: deserializeMetadata(output),
|
|
1034
|
-
};
|
|
1035
|
-
break;
|
|
663
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1036
664
|
default:
|
|
1037
665
|
const parsedBody = parsedOutput.body;
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
...parsedBody,
|
|
1041
|
-
name: `${errorCode}`,
|
|
1042
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
666
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
667
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1043
668
|
$fault: "client",
|
|
1044
669
|
$metadata: deserializeMetadata(output),
|
|
1045
|
-
};
|
|
670
|
+
});
|
|
671
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1046
672
|
}
|
|
1047
|
-
const message = response.message || response.Message || errorCode;
|
|
1048
|
-
response.message = message;
|
|
1049
|
-
delete response.Message;
|
|
1050
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1051
673
|
};
|
|
1052
674
|
const deserializeAws_json1_1DeleteTrailCommand = async (output, context) => {
|
|
1053
675
|
if (output.statusCode >= 300) {
|
|
@@ -1074,83 +696,37 @@ const deserializeAws_json1_1DeleteTrailCommandError = async (output, context) =>
|
|
|
1074
696
|
switch (errorCode) {
|
|
1075
697
|
case "ConflictException":
|
|
1076
698
|
case "com.amazonaws.cloudtrail#ConflictException":
|
|
1077
|
-
|
|
1078
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
1079
|
-
name: errorCode,
|
|
1080
|
-
$metadata: deserializeMetadata(output),
|
|
1081
|
-
};
|
|
1082
|
-
break;
|
|
699
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1083
700
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
1084
701
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
1085
|
-
|
|
1086
|
-
...(await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context)),
|
|
1087
|
-
name: errorCode,
|
|
1088
|
-
$metadata: deserializeMetadata(output),
|
|
1089
|
-
};
|
|
1090
|
-
break;
|
|
702
|
+
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
1091
703
|
case "InvalidHomeRegionException":
|
|
1092
704
|
case "com.amazonaws.cloudtrail#InvalidHomeRegionException":
|
|
1093
|
-
|
|
1094
|
-
...(await deserializeAws_json1_1InvalidHomeRegionExceptionResponse(parsedOutput, context)),
|
|
1095
|
-
name: errorCode,
|
|
1096
|
-
$metadata: deserializeMetadata(output),
|
|
1097
|
-
};
|
|
1098
|
-
break;
|
|
705
|
+
throw await deserializeAws_json1_1InvalidHomeRegionExceptionResponse(parsedOutput, context);
|
|
1099
706
|
case "InvalidTrailNameException":
|
|
1100
707
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1101
|
-
|
|
1102
|
-
...(await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context)),
|
|
1103
|
-
name: errorCode,
|
|
1104
|
-
$metadata: deserializeMetadata(output),
|
|
1105
|
-
};
|
|
1106
|
-
break;
|
|
708
|
+
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
1107
709
|
case "NotOrganizationMasterAccountException":
|
|
1108
710
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
1109
|
-
|
|
1110
|
-
...(await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context)),
|
|
1111
|
-
name: errorCode,
|
|
1112
|
-
$metadata: deserializeMetadata(output),
|
|
1113
|
-
};
|
|
1114
|
-
break;
|
|
711
|
+
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
1115
712
|
case "OperationNotPermittedException":
|
|
1116
713
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1117
|
-
|
|
1118
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1119
|
-
name: errorCode,
|
|
1120
|
-
$metadata: deserializeMetadata(output),
|
|
1121
|
-
};
|
|
1122
|
-
break;
|
|
714
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
1123
715
|
case "TrailNotFoundException":
|
|
1124
716
|
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
1125
|
-
|
|
1126
|
-
...(await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context)),
|
|
1127
|
-
name: errorCode,
|
|
1128
|
-
$metadata: deserializeMetadata(output),
|
|
1129
|
-
};
|
|
1130
|
-
break;
|
|
717
|
+
throw await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context);
|
|
1131
718
|
case "UnsupportedOperationException":
|
|
1132
719
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1133
|
-
|
|
1134
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1135
|
-
name: errorCode,
|
|
1136
|
-
$metadata: deserializeMetadata(output),
|
|
1137
|
-
};
|
|
1138
|
-
break;
|
|
720
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1139
721
|
default:
|
|
1140
722
|
const parsedBody = parsedOutput.body;
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
...parsedBody,
|
|
1144
|
-
name: `${errorCode}`,
|
|
1145
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
723
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
724
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1146
725
|
$fault: "client",
|
|
1147
726
|
$metadata: deserializeMetadata(output),
|
|
1148
|
-
};
|
|
727
|
+
});
|
|
728
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1149
729
|
}
|
|
1150
|
-
const message = response.message || response.Message || errorCode;
|
|
1151
|
-
response.message = message;
|
|
1152
|
-
delete response.Message;
|
|
1153
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1154
730
|
};
|
|
1155
731
|
const deserializeAws_json1_1DescribeQueryCommand = async (output, context) => {
|
|
1156
732
|
if (output.statusCode >= 300) {
|
|
@@ -1177,75 +753,34 @@ const deserializeAws_json1_1DescribeQueryCommandError = async (output, context)
|
|
|
1177
753
|
switch (errorCode) {
|
|
1178
754
|
case "EventDataStoreARNInvalidException":
|
|
1179
755
|
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
1180
|
-
|
|
1181
|
-
...(await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context)),
|
|
1182
|
-
name: errorCode,
|
|
1183
|
-
$metadata: deserializeMetadata(output),
|
|
1184
|
-
};
|
|
1185
|
-
break;
|
|
756
|
+
throw await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context);
|
|
1186
757
|
case "EventDataStoreNotFoundException":
|
|
1187
758
|
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
1188
|
-
|
|
1189
|
-
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
1190
|
-
name: errorCode,
|
|
1191
|
-
$metadata: deserializeMetadata(output),
|
|
1192
|
-
};
|
|
1193
|
-
break;
|
|
759
|
+
throw await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context);
|
|
1194
760
|
case "InactiveEventDataStoreException":
|
|
1195
761
|
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
1196
|
-
|
|
1197
|
-
...(await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context)),
|
|
1198
|
-
name: errorCode,
|
|
1199
|
-
$metadata: deserializeMetadata(output),
|
|
1200
|
-
};
|
|
1201
|
-
break;
|
|
762
|
+
throw await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context);
|
|
1202
763
|
case "InvalidParameterException":
|
|
1203
764
|
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1204
|
-
|
|
1205
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1206
|
-
name: errorCode,
|
|
1207
|
-
$metadata: deserializeMetadata(output),
|
|
1208
|
-
};
|
|
1209
|
-
break;
|
|
765
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1210
766
|
case "OperationNotPermittedException":
|
|
1211
767
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1212
|
-
|
|
1213
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1214
|
-
name: errorCode,
|
|
1215
|
-
$metadata: deserializeMetadata(output),
|
|
1216
|
-
};
|
|
1217
|
-
break;
|
|
768
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
1218
769
|
case "QueryIdNotFoundException":
|
|
1219
770
|
case "com.amazonaws.cloudtrail#QueryIdNotFoundException":
|
|
1220
|
-
|
|
1221
|
-
...(await deserializeAws_json1_1QueryIdNotFoundExceptionResponse(parsedOutput, context)),
|
|
1222
|
-
name: errorCode,
|
|
1223
|
-
$metadata: deserializeMetadata(output),
|
|
1224
|
-
};
|
|
1225
|
-
break;
|
|
771
|
+
throw await deserializeAws_json1_1QueryIdNotFoundExceptionResponse(parsedOutput, context);
|
|
1226
772
|
case "UnsupportedOperationException":
|
|
1227
773
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1228
|
-
|
|
1229
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1230
|
-
name: errorCode,
|
|
1231
|
-
$metadata: deserializeMetadata(output),
|
|
1232
|
-
};
|
|
1233
|
-
break;
|
|
774
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1234
775
|
default:
|
|
1235
776
|
const parsedBody = parsedOutput.body;
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
...parsedBody,
|
|
1239
|
-
name: `${errorCode}`,
|
|
1240
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
777
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
778
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1241
779
|
$fault: "client",
|
|
1242
780
|
$metadata: deserializeMetadata(output),
|
|
1243
|
-
};
|
|
781
|
+
});
|
|
782
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1244
783
|
}
|
|
1245
|
-
const message = response.message || response.Message || errorCode;
|
|
1246
|
-
response.message = message;
|
|
1247
|
-
delete response.Message;
|
|
1248
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1249
784
|
};
|
|
1250
785
|
const deserializeAws_json1_1DescribeTrailsCommand = async (output, context) => {
|
|
1251
786
|
if (output.statusCode >= 300) {
|
|
@@ -1272,43 +807,22 @@ const deserializeAws_json1_1DescribeTrailsCommandError = async (output, context)
|
|
|
1272
807
|
switch (errorCode) {
|
|
1273
808
|
case "InvalidTrailNameException":
|
|
1274
809
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1275
|
-
|
|
1276
|
-
...(await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context)),
|
|
1277
|
-
name: errorCode,
|
|
1278
|
-
$metadata: deserializeMetadata(output),
|
|
1279
|
-
};
|
|
1280
|
-
break;
|
|
810
|
+
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
1281
811
|
case "OperationNotPermittedException":
|
|
1282
812
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1283
|
-
|
|
1284
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1285
|
-
name: errorCode,
|
|
1286
|
-
$metadata: deserializeMetadata(output),
|
|
1287
|
-
};
|
|
1288
|
-
break;
|
|
813
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
1289
814
|
case "UnsupportedOperationException":
|
|
1290
815
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1291
|
-
|
|
1292
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1293
|
-
name: errorCode,
|
|
1294
|
-
$metadata: deserializeMetadata(output),
|
|
1295
|
-
};
|
|
1296
|
-
break;
|
|
816
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1297
817
|
default:
|
|
1298
818
|
const parsedBody = parsedOutput.body;
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
...parsedBody,
|
|
1302
|
-
name: `${errorCode}`,
|
|
1303
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
819
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
820
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1304
821
|
$fault: "client",
|
|
1305
822
|
$metadata: deserializeMetadata(output),
|
|
1306
|
-
};
|
|
823
|
+
});
|
|
824
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1307
825
|
}
|
|
1308
|
-
const message = response.message || response.Message || errorCode;
|
|
1309
|
-
response.message = message;
|
|
1310
|
-
delete response.Message;
|
|
1311
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1312
826
|
};
|
|
1313
827
|
const deserializeAws_json1_1GetEventDataStoreCommand = async (output, context) => {
|
|
1314
828
|
if (output.statusCode >= 300) {
|
|
@@ -1335,59 +849,28 @@ const deserializeAws_json1_1GetEventDataStoreCommandError = async (output, conte
|
|
|
1335
849
|
switch (errorCode) {
|
|
1336
850
|
case "EventDataStoreARNInvalidException":
|
|
1337
851
|
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
1338
|
-
|
|
1339
|
-
...(await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context)),
|
|
1340
|
-
name: errorCode,
|
|
1341
|
-
$metadata: deserializeMetadata(output),
|
|
1342
|
-
};
|
|
1343
|
-
break;
|
|
852
|
+
throw await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context);
|
|
1344
853
|
case "EventDataStoreNotFoundException":
|
|
1345
854
|
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
1346
|
-
|
|
1347
|
-
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
1348
|
-
name: errorCode,
|
|
1349
|
-
$metadata: deserializeMetadata(output),
|
|
1350
|
-
};
|
|
1351
|
-
break;
|
|
855
|
+
throw await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context);
|
|
1352
856
|
case "InvalidParameterException":
|
|
1353
857
|
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1354
|
-
|
|
1355
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1356
|
-
name: errorCode,
|
|
1357
|
-
$metadata: deserializeMetadata(output),
|
|
1358
|
-
};
|
|
1359
|
-
break;
|
|
858
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1360
859
|
case "OperationNotPermittedException":
|
|
1361
860
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1362
|
-
|
|
1363
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1364
|
-
name: errorCode,
|
|
1365
|
-
$metadata: deserializeMetadata(output),
|
|
1366
|
-
};
|
|
1367
|
-
break;
|
|
861
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
1368
862
|
case "UnsupportedOperationException":
|
|
1369
863
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1370
|
-
|
|
1371
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1372
|
-
name: errorCode,
|
|
1373
|
-
$metadata: deserializeMetadata(output),
|
|
1374
|
-
};
|
|
1375
|
-
break;
|
|
864
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1376
865
|
default:
|
|
1377
866
|
const parsedBody = parsedOutput.body;
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
...parsedBody,
|
|
1381
|
-
name: `${errorCode}`,
|
|
1382
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
867
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
868
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1383
869
|
$fault: "client",
|
|
1384
870
|
$metadata: deserializeMetadata(output),
|
|
1385
|
-
};
|
|
871
|
+
});
|
|
872
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1386
873
|
}
|
|
1387
|
-
const message = response.message || response.Message || errorCode;
|
|
1388
|
-
response.message = message;
|
|
1389
|
-
delete response.Message;
|
|
1390
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1391
874
|
};
|
|
1392
875
|
const deserializeAws_json1_1GetEventSelectorsCommand = async (output, context) => {
|
|
1393
876
|
if (output.statusCode >= 300) {
|
|
@@ -1414,51 +897,25 @@ const deserializeAws_json1_1GetEventSelectorsCommandError = async (output, conte
|
|
|
1414
897
|
switch (errorCode) {
|
|
1415
898
|
case "InvalidTrailNameException":
|
|
1416
899
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1417
|
-
|
|
1418
|
-
...(await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context)),
|
|
1419
|
-
name: errorCode,
|
|
1420
|
-
$metadata: deserializeMetadata(output),
|
|
1421
|
-
};
|
|
1422
|
-
break;
|
|
900
|
+
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
1423
901
|
case "OperationNotPermittedException":
|
|
1424
902
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1425
|
-
|
|
1426
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1427
|
-
name: errorCode,
|
|
1428
|
-
$metadata: deserializeMetadata(output),
|
|
1429
|
-
};
|
|
1430
|
-
break;
|
|
903
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
1431
904
|
case "TrailNotFoundException":
|
|
1432
905
|
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
1433
|
-
|
|
1434
|
-
...(await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context)),
|
|
1435
|
-
name: errorCode,
|
|
1436
|
-
$metadata: deserializeMetadata(output),
|
|
1437
|
-
};
|
|
1438
|
-
break;
|
|
906
|
+
throw await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context);
|
|
1439
907
|
case "UnsupportedOperationException":
|
|
1440
908
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1441
|
-
|
|
1442
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1443
|
-
name: errorCode,
|
|
1444
|
-
$metadata: deserializeMetadata(output),
|
|
1445
|
-
};
|
|
1446
|
-
break;
|
|
909
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1447
910
|
default:
|
|
1448
911
|
const parsedBody = parsedOutput.body;
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
...parsedBody,
|
|
1452
|
-
name: `${errorCode}`,
|
|
1453
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
912
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
913
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1454
914
|
$fault: "client",
|
|
1455
915
|
$metadata: deserializeMetadata(output),
|
|
1456
|
-
};
|
|
916
|
+
});
|
|
917
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1457
918
|
}
|
|
1458
|
-
const message = response.message || response.Message || errorCode;
|
|
1459
|
-
response.message = message;
|
|
1460
|
-
delete response.Message;
|
|
1461
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1462
919
|
};
|
|
1463
920
|
const deserializeAws_json1_1GetInsightSelectorsCommand = async (output, context) => {
|
|
1464
921
|
if (output.statusCode >= 300) {
|
|
@@ -1485,59 +942,28 @@ const deserializeAws_json1_1GetInsightSelectorsCommandError = async (output, con
|
|
|
1485
942
|
switch (errorCode) {
|
|
1486
943
|
case "InsightNotEnabledException":
|
|
1487
944
|
case "com.amazonaws.cloudtrail#InsightNotEnabledException":
|
|
1488
|
-
|
|
1489
|
-
...(await deserializeAws_json1_1InsightNotEnabledExceptionResponse(parsedOutput, context)),
|
|
1490
|
-
name: errorCode,
|
|
1491
|
-
$metadata: deserializeMetadata(output),
|
|
1492
|
-
};
|
|
1493
|
-
break;
|
|
945
|
+
throw await deserializeAws_json1_1InsightNotEnabledExceptionResponse(parsedOutput, context);
|
|
1494
946
|
case "InvalidTrailNameException":
|
|
1495
947
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1496
|
-
|
|
1497
|
-
...(await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context)),
|
|
1498
|
-
name: errorCode,
|
|
1499
|
-
$metadata: deserializeMetadata(output),
|
|
1500
|
-
};
|
|
1501
|
-
break;
|
|
948
|
+
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
1502
949
|
case "OperationNotPermittedException":
|
|
1503
950
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1504
|
-
|
|
1505
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1506
|
-
name: errorCode,
|
|
1507
|
-
$metadata: deserializeMetadata(output),
|
|
1508
|
-
};
|
|
1509
|
-
break;
|
|
951
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
1510
952
|
case "TrailNotFoundException":
|
|
1511
953
|
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
1512
|
-
|
|
1513
|
-
...(await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context)),
|
|
1514
|
-
name: errorCode,
|
|
1515
|
-
$metadata: deserializeMetadata(output),
|
|
1516
|
-
};
|
|
1517
|
-
break;
|
|
954
|
+
throw await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context);
|
|
1518
955
|
case "UnsupportedOperationException":
|
|
1519
956
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1520
|
-
|
|
1521
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1522
|
-
name: errorCode,
|
|
1523
|
-
$metadata: deserializeMetadata(output),
|
|
1524
|
-
};
|
|
1525
|
-
break;
|
|
957
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1526
958
|
default:
|
|
1527
959
|
const parsedBody = parsedOutput.body;
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
...parsedBody,
|
|
1531
|
-
name: `${errorCode}`,
|
|
1532
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
960
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
961
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1533
962
|
$fault: "client",
|
|
1534
963
|
$metadata: deserializeMetadata(output),
|
|
1535
|
-
};
|
|
964
|
+
});
|
|
965
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1536
966
|
}
|
|
1537
|
-
const message = response.message || response.Message || errorCode;
|
|
1538
|
-
response.message = message;
|
|
1539
|
-
delete response.Message;
|
|
1540
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1541
967
|
};
|
|
1542
968
|
const deserializeAws_json1_1GetQueryResultsCommand = async (output, context) => {
|
|
1543
969
|
if (output.statusCode >= 300) {
|
|
@@ -1564,91 +990,40 @@ const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context
|
|
|
1564
990
|
switch (errorCode) {
|
|
1565
991
|
case "EventDataStoreARNInvalidException":
|
|
1566
992
|
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
1567
|
-
|
|
1568
|
-
...(await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context)),
|
|
1569
|
-
name: errorCode,
|
|
1570
|
-
$metadata: deserializeMetadata(output),
|
|
1571
|
-
};
|
|
1572
|
-
break;
|
|
993
|
+
throw await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context);
|
|
1573
994
|
case "EventDataStoreNotFoundException":
|
|
1574
995
|
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
1575
|
-
|
|
1576
|
-
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
1577
|
-
name: errorCode,
|
|
1578
|
-
$metadata: deserializeMetadata(output),
|
|
1579
|
-
};
|
|
1580
|
-
break;
|
|
996
|
+
throw await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context);
|
|
1581
997
|
case "InactiveEventDataStoreException":
|
|
1582
998
|
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
1583
|
-
|
|
1584
|
-
...(await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context)),
|
|
1585
|
-
name: errorCode,
|
|
1586
|
-
$metadata: deserializeMetadata(output),
|
|
1587
|
-
};
|
|
1588
|
-
break;
|
|
999
|
+
throw await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context);
|
|
1589
1000
|
case "InvalidMaxResultsException":
|
|
1590
1001
|
case "com.amazonaws.cloudtrail#InvalidMaxResultsException":
|
|
1591
|
-
|
|
1592
|
-
...(await deserializeAws_json1_1InvalidMaxResultsExceptionResponse(parsedOutput, context)),
|
|
1593
|
-
name: errorCode,
|
|
1594
|
-
$metadata: deserializeMetadata(output),
|
|
1595
|
-
};
|
|
1596
|
-
break;
|
|
1002
|
+
throw await deserializeAws_json1_1InvalidMaxResultsExceptionResponse(parsedOutput, context);
|
|
1597
1003
|
case "InvalidNextTokenException":
|
|
1598
1004
|
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
1599
|
-
|
|
1600
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1601
|
-
name: errorCode,
|
|
1602
|
-
$metadata: deserializeMetadata(output),
|
|
1603
|
-
};
|
|
1604
|
-
break;
|
|
1005
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1605
1006
|
case "InvalidParameterException":
|
|
1606
1007
|
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1607
|
-
|
|
1608
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1609
|
-
name: errorCode,
|
|
1610
|
-
$metadata: deserializeMetadata(output),
|
|
1611
|
-
};
|
|
1612
|
-
break;
|
|
1008
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1613
1009
|
case "OperationNotPermittedException":
|
|
1614
1010
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1615
|
-
|
|
1616
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1617
|
-
name: errorCode,
|
|
1618
|
-
$metadata: deserializeMetadata(output),
|
|
1619
|
-
};
|
|
1620
|
-
break;
|
|
1011
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
1621
1012
|
case "QueryIdNotFoundException":
|
|
1622
1013
|
case "com.amazonaws.cloudtrail#QueryIdNotFoundException":
|
|
1623
|
-
|
|
1624
|
-
...(await deserializeAws_json1_1QueryIdNotFoundExceptionResponse(parsedOutput, context)),
|
|
1625
|
-
name: errorCode,
|
|
1626
|
-
$metadata: deserializeMetadata(output),
|
|
1627
|
-
};
|
|
1628
|
-
break;
|
|
1014
|
+
throw await deserializeAws_json1_1QueryIdNotFoundExceptionResponse(parsedOutput, context);
|
|
1629
1015
|
case "UnsupportedOperationException":
|
|
1630
1016
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1631
|
-
|
|
1632
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1633
|
-
name: errorCode,
|
|
1634
|
-
$metadata: deserializeMetadata(output),
|
|
1635
|
-
};
|
|
1636
|
-
break;
|
|
1017
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1637
1018
|
default:
|
|
1638
1019
|
const parsedBody = parsedOutput.body;
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
...parsedBody,
|
|
1642
|
-
name: `${errorCode}`,
|
|
1643
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1020
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1021
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1644
1022
|
$fault: "client",
|
|
1645
1023
|
$metadata: deserializeMetadata(output),
|
|
1646
|
-
};
|
|
1024
|
+
});
|
|
1025
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1647
1026
|
}
|
|
1648
|
-
const message = response.message || response.Message || errorCode;
|
|
1649
|
-
response.message = message;
|
|
1650
|
-
delete response.Message;
|
|
1651
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1652
1027
|
};
|
|
1653
1028
|
const deserializeAws_json1_1GetTrailCommand = async (output, context) => {
|
|
1654
1029
|
if (output.statusCode >= 300) {
|
|
@@ -1675,51 +1050,25 @@ const deserializeAws_json1_1GetTrailCommandError = async (output, context) => {
|
|
|
1675
1050
|
switch (errorCode) {
|
|
1676
1051
|
case "InvalidTrailNameException":
|
|
1677
1052
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1678
|
-
|
|
1679
|
-
...(await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context)),
|
|
1680
|
-
name: errorCode,
|
|
1681
|
-
$metadata: deserializeMetadata(output),
|
|
1682
|
-
};
|
|
1683
|
-
break;
|
|
1053
|
+
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
1684
1054
|
case "OperationNotPermittedException":
|
|
1685
1055
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1686
|
-
|
|
1687
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1688
|
-
name: errorCode,
|
|
1689
|
-
$metadata: deserializeMetadata(output),
|
|
1690
|
-
};
|
|
1691
|
-
break;
|
|
1056
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
1692
1057
|
case "TrailNotFoundException":
|
|
1693
1058
|
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
1694
|
-
|
|
1695
|
-
...(await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context)),
|
|
1696
|
-
name: errorCode,
|
|
1697
|
-
$metadata: deserializeMetadata(output),
|
|
1698
|
-
};
|
|
1699
|
-
break;
|
|
1059
|
+
throw await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context);
|
|
1700
1060
|
case "UnsupportedOperationException":
|
|
1701
1061
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1702
|
-
|
|
1703
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1704
|
-
name: errorCode,
|
|
1705
|
-
$metadata: deserializeMetadata(output),
|
|
1706
|
-
};
|
|
1707
|
-
break;
|
|
1062
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1708
1063
|
default:
|
|
1709
1064
|
const parsedBody = parsedOutput.body;
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
...parsedBody,
|
|
1713
|
-
name: `${errorCode}`,
|
|
1714
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1065
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1066
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1715
1067
|
$fault: "client",
|
|
1716
1068
|
$metadata: deserializeMetadata(output),
|
|
1717
|
-
};
|
|
1069
|
+
});
|
|
1070
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1718
1071
|
}
|
|
1719
|
-
const message = response.message || response.Message || errorCode;
|
|
1720
|
-
response.message = message;
|
|
1721
|
-
delete response.Message;
|
|
1722
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1723
1072
|
};
|
|
1724
1073
|
const deserializeAws_json1_1GetTrailStatusCommand = async (output, context) => {
|
|
1725
1074
|
if (output.statusCode >= 300) {
|
|
@@ -1746,51 +1095,25 @@ const deserializeAws_json1_1GetTrailStatusCommandError = async (output, context)
|
|
|
1746
1095
|
switch (errorCode) {
|
|
1747
1096
|
case "InvalidTrailNameException":
|
|
1748
1097
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1749
|
-
|
|
1750
|
-
...(await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context)),
|
|
1751
|
-
name: errorCode,
|
|
1752
|
-
$metadata: deserializeMetadata(output),
|
|
1753
|
-
};
|
|
1754
|
-
break;
|
|
1098
|
+
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
1755
1099
|
case "OperationNotPermittedException":
|
|
1756
1100
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1757
|
-
|
|
1758
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1759
|
-
name: errorCode,
|
|
1760
|
-
$metadata: deserializeMetadata(output),
|
|
1761
|
-
};
|
|
1762
|
-
break;
|
|
1101
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
1763
1102
|
case "TrailNotFoundException":
|
|
1764
1103
|
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
1765
|
-
|
|
1766
|
-
...(await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context)),
|
|
1767
|
-
name: errorCode,
|
|
1768
|
-
$metadata: deserializeMetadata(output),
|
|
1769
|
-
};
|
|
1770
|
-
break;
|
|
1104
|
+
throw await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context);
|
|
1771
1105
|
case "UnsupportedOperationException":
|
|
1772
1106
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1773
|
-
|
|
1774
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1775
|
-
name: errorCode,
|
|
1776
|
-
$metadata: deserializeMetadata(output),
|
|
1777
|
-
};
|
|
1778
|
-
break;
|
|
1107
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1779
1108
|
default:
|
|
1780
1109
|
const parsedBody = parsedOutput.body;
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
...parsedBody,
|
|
1784
|
-
name: `${errorCode}`,
|
|
1785
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1110
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1111
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1786
1112
|
$fault: "client",
|
|
1787
1113
|
$metadata: deserializeMetadata(output),
|
|
1788
|
-
};
|
|
1114
|
+
});
|
|
1115
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1789
1116
|
}
|
|
1790
|
-
const message = response.message || response.Message || errorCode;
|
|
1791
|
-
response.message = message;
|
|
1792
|
-
delete response.Message;
|
|
1793
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1794
1117
|
};
|
|
1795
1118
|
const deserializeAws_json1_1ListEventDataStoresCommand = async (output, context) => {
|
|
1796
1119
|
if (output.statusCode >= 300) {
|
|
@@ -1817,51 +1140,25 @@ const deserializeAws_json1_1ListEventDataStoresCommandError = async (output, con
|
|
|
1817
1140
|
switch (errorCode) {
|
|
1818
1141
|
case "InvalidMaxResultsException":
|
|
1819
1142
|
case "com.amazonaws.cloudtrail#InvalidMaxResultsException":
|
|
1820
|
-
|
|
1821
|
-
...(await deserializeAws_json1_1InvalidMaxResultsExceptionResponse(parsedOutput, context)),
|
|
1822
|
-
name: errorCode,
|
|
1823
|
-
$metadata: deserializeMetadata(output),
|
|
1824
|
-
};
|
|
1825
|
-
break;
|
|
1143
|
+
throw await deserializeAws_json1_1InvalidMaxResultsExceptionResponse(parsedOutput, context);
|
|
1826
1144
|
case "InvalidNextTokenException":
|
|
1827
1145
|
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
1828
|
-
|
|
1829
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1830
|
-
name: errorCode,
|
|
1831
|
-
$metadata: deserializeMetadata(output),
|
|
1832
|
-
};
|
|
1833
|
-
break;
|
|
1146
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1834
1147
|
case "OperationNotPermittedException":
|
|
1835
1148
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1836
|
-
|
|
1837
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1838
|
-
name: errorCode,
|
|
1839
|
-
$metadata: deserializeMetadata(output),
|
|
1840
|
-
};
|
|
1841
|
-
break;
|
|
1149
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
1842
1150
|
case "UnsupportedOperationException":
|
|
1843
1151
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1844
|
-
|
|
1845
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1846
|
-
name: errorCode,
|
|
1847
|
-
$metadata: deserializeMetadata(output),
|
|
1848
|
-
};
|
|
1849
|
-
break;
|
|
1152
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1850
1153
|
default:
|
|
1851
1154
|
const parsedBody = parsedOutput.body;
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
...parsedBody,
|
|
1855
|
-
name: `${errorCode}`,
|
|
1856
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1155
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1156
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1857
1157
|
$fault: "client",
|
|
1858
1158
|
$metadata: deserializeMetadata(output),
|
|
1859
|
-
};
|
|
1159
|
+
});
|
|
1160
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1860
1161
|
}
|
|
1861
|
-
const message = response.message || response.Message || errorCode;
|
|
1862
|
-
response.message = message;
|
|
1863
|
-
delete response.Message;
|
|
1864
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1865
1162
|
};
|
|
1866
1163
|
const deserializeAws_json1_1ListPublicKeysCommand = async (output, context) => {
|
|
1867
1164
|
if (output.statusCode >= 300) {
|
|
@@ -1888,51 +1185,25 @@ const deserializeAws_json1_1ListPublicKeysCommandError = async (output, context)
|
|
|
1888
1185
|
switch (errorCode) {
|
|
1889
1186
|
case "InvalidTimeRangeException":
|
|
1890
1187
|
case "com.amazonaws.cloudtrail#InvalidTimeRangeException":
|
|
1891
|
-
|
|
1892
|
-
...(await deserializeAws_json1_1InvalidTimeRangeExceptionResponse(parsedOutput, context)),
|
|
1893
|
-
name: errorCode,
|
|
1894
|
-
$metadata: deserializeMetadata(output),
|
|
1895
|
-
};
|
|
1896
|
-
break;
|
|
1188
|
+
throw await deserializeAws_json1_1InvalidTimeRangeExceptionResponse(parsedOutput, context);
|
|
1897
1189
|
case "InvalidTokenException":
|
|
1898
1190
|
case "com.amazonaws.cloudtrail#InvalidTokenException":
|
|
1899
|
-
|
|
1900
|
-
...(await deserializeAws_json1_1InvalidTokenExceptionResponse(parsedOutput, context)),
|
|
1901
|
-
name: errorCode,
|
|
1902
|
-
$metadata: deserializeMetadata(output),
|
|
1903
|
-
};
|
|
1904
|
-
break;
|
|
1191
|
+
throw await deserializeAws_json1_1InvalidTokenExceptionResponse(parsedOutput, context);
|
|
1905
1192
|
case "OperationNotPermittedException":
|
|
1906
1193
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1907
|
-
|
|
1908
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1909
|
-
name: errorCode,
|
|
1910
|
-
$metadata: deserializeMetadata(output),
|
|
1911
|
-
};
|
|
1912
|
-
break;
|
|
1194
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
1913
1195
|
case "UnsupportedOperationException":
|
|
1914
1196
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1915
|
-
|
|
1916
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1917
|
-
name: errorCode,
|
|
1918
|
-
$metadata: deserializeMetadata(output),
|
|
1919
|
-
};
|
|
1920
|
-
break;
|
|
1197
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1921
1198
|
default:
|
|
1922
1199
|
const parsedBody = parsedOutput.body;
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
...parsedBody,
|
|
1926
|
-
name: `${errorCode}`,
|
|
1927
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1200
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1201
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1928
1202
|
$fault: "client",
|
|
1929
1203
|
$metadata: deserializeMetadata(output),
|
|
1930
|
-
};
|
|
1204
|
+
});
|
|
1205
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1931
1206
|
}
|
|
1932
|
-
const message = response.message || response.Message || errorCode;
|
|
1933
|
-
response.message = message;
|
|
1934
|
-
delete response.Message;
|
|
1935
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1936
1207
|
};
|
|
1937
1208
|
const deserializeAws_json1_1ListQueriesCommand = async (output, context) => {
|
|
1938
1209
|
if (output.statusCode >= 300) {
|
|
@@ -1959,99 +1230,43 @@ const deserializeAws_json1_1ListQueriesCommandError = async (output, context) =>
|
|
|
1959
1230
|
switch (errorCode) {
|
|
1960
1231
|
case "EventDataStoreARNInvalidException":
|
|
1961
1232
|
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
1962
|
-
|
|
1963
|
-
...(await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context)),
|
|
1964
|
-
name: errorCode,
|
|
1965
|
-
$metadata: deserializeMetadata(output),
|
|
1966
|
-
};
|
|
1967
|
-
break;
|
|
1233
|
+
throw await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context);
|
|
1968
1234
|
case "EventDataStoreNotFoundException":
|
|
1969
1235
|
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
1970
|
-
|
|
1971
|
-
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
1972
|
-
name: errorCode,
|
|
1973
|
-
$metadata: deserializeMetadata(output),
|
|
1974
|
-
};
|
|
1975
|
-
break;
|
|
1236
|
+
throw await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context);
|
|
1976
1237
|
case "InactiveEventDataStoreException":
|
|
1977
1238
|
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
1978
|
-
|
|
1979
|
-
...(await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context)),
|
|
1980
|
-
name: errorCode,
|
|
1981
|
-
$metadata: deserializeMetadata(output),
|
|
1982
|
-
};
|
|
1983
|
-
break;
|
|
1239
|
+
throw await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context);
|
|
1984
1240
|
case "InvalidDateRangeException":
|
|
1985
1241
|
case "com.amazonaws.cloudtrail#InvalidDateRangeException":
|
|
1986
|
-
|
|
1987
|
-
...(await deserializeAws_json1_1InvalidDateRangeExceptionResponse(parsedOutput, context)),
|
|
1988
|
-
name: errorCode,
|
|
1989
|
-
$metadata: deserializeMetadata(output),
|
|
1990
|
-
};
|
|
1991
|
-
break;
|
|
1242
|
+
throw await deserializeAws_json1_1InvalidDateRangeExceptionResponse(parsedOutput, context);
|
|
1992
1243
|
case "InvalidMaxResultsException":
|
|
1993
1244
|
case "com.amazonaws.cloudtrail#InvalidMaxResultsException":
|
|
1994
|
-
|
|
1995
|
-
...(await deserializeAws_json1_1InvalidMaxResultsExceptionResponse(parsedOutput, context)),
|
|
1996
|
-
name: errorCode,
|
|
1997
|
-
$metadata: deserializeMetadata(output),
|
|
1998
|
-
};
|
|
1999
|
-
break;
|
|
1245
|
+
throw await deserializeAws_json1_1InvalidMaxResultsExceptionResponse(parsedOutput, context);
|
|
2000
1246
|
case "InvalidNextTokenException":
|
|
2001
1247
|
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
2002
|
-
|
|
2003
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
2004
|
-
name: errorCode,
|
|
2005
|
-
$metadata: deserializeMetadata(output),
|
|
2006
|
-
};
|
|
2007
|
-
break;
|
|
1248
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2008
1249
|
case "InvalidParameterException":
|
|
2009
1250
|
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2010
|
-
|
|
2011
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2012
|
-
name: errorCode,
|
|
2013
|
-
$metadata: deserializeMetadata(output),
|
|
2014
|
-
};
|
|
2015
|
-
break;
|
|
1251
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2016
1252
|
case "InvalidQueryStatusException":
|
|
2017
1253
|
case "com.amazonaws.cloudtrail#InvalidQueryStatusException":
|
|
2018
|
-
|
|
2019
|
-
...(await deserializeAws_json1_1InvalidQueryStatusExceptionResponse(parsedOutput, context)),
|
|
2020
|
-
name: errorCode,
|
|
2021
|
-
$metadata: deserializeMetadata(output),
|
|
2022
|
-
};
|
|
2023
|
-
break;
|
|
1254
|
+
throw await deserializeAws_json1_1InvalidQueryStatusExceptionResponse(parsedOutput, context);
|
|
2024
1255
|
case "OperationNotPermittedException":
|
|
2025
1256
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2026
|
-
|
|
2027
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
2028
|
-
name: errorCode,
|
|
2029
|
-
$metadata: deserializeMetadata(output),
|
|
2030
|
-
};
|
|
2031
|
-
break;
|
|
1257
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
2032
1258
|
case "UnsupportedOperationException":
|
|
2033
1259
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2034
|
-
|
|
2035
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
2036
|
-
name: errorCode,
|
|
2037
|
-
$metadata: deserializeMetadata(output),
|
|
2038
|
-
};
|
|
2039
|
-
break;
|
|
1260
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2040
1261
|
default:
|
|
2041
1262
|
const parsedBody = parsedOutput.body;
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
...parsedBody,
|
|
2045
|
-
name: `${errorCode}`,
|
|
2046
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1263
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1264
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2047
1265
|
$fault: "client",
|
|
2048
1266
|
$metadata: deserializeMetadata(output),
|
|
2049
|
-
};
|
|
1267
|
+
});
|
|
1268
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2050
1269
|
}
|
|
2051
|
-
const message = response.message || response.Message || errorCode;
|
|
2052
|
-
response.message = message;
|
|
2053
|
-
delete response.Message;
|
|
2054
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2055
1270
|
};
|
|
2056
1271
|
const deserializeAws_json1_1ListTagsCommand = async (output, context) => {
|
|
2057
1272
|
if (output.statusCode >= 300) {
|
|
@@ -2078,91 +1293,40 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
2078
1293
|
switch (errorCode) {
|
|
2079
1294
|
case "CloudTrailARNInvalidException":
|
|
2080
1295
|
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
2081
|
-
|
|
2082
|
-
...(await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context)),
|
|
2083
|
-
name: errorCode,
|
|
2084
|
-
$metadata: deserializeMetadata(output),
|
|
2085
|
-
};
|
|
2086
|
-
break;
|
|
1296
|
+
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
2087
1297
|
case "EventDataStoreNotFoundException":
|
|
2088
1298
|
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
2089
|
-
|
|
2090
|
-
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
2091
|
-
name: errorCode,
|
|
2092
|
-
$metadata: deserializeMetadata(output),
|
|
2093
|
-
};
|
|
2094
|
-
break;
|
|
1299
|
+
throw await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context);
|
|
2095
1300
|
case "InactiveEventDataStoreException":
|
|
2096
1301
|
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
2097
|
-
|
|
2098
|
-
...(await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context)),
|
|
2099
|
-
name: errorCode,
|
|
2100
|
-
$metadata: deserializeMetadata(output),
|
|
2101
|
-
};
|
|
2102
|
-
break;
|
|
1302
|
+
throw await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context);
|
|
2103
1303
|
case "InvalidTokenException":
|
|
2104
1304
|
case "com.amazonaws.cloudtrail#InvalidTokenException":
|
|
2105
|
-
|
|
2106
|
-
...(await deserializeAws_json1_1InvalidTokenExceptionResponse(parsedOutput, context)),
|
|
2107
|
-
name: errorCode,
|
|
2108
|
-
$metadata: deserializeMetadata(output),
|
|
2109
|
-
};
|
|
2110
|
-
break;
|
|
1305
|
+
throw await deserializeAws_json1_1InvalidTokenExceptionResponse(parsedOutput, context);
|
|
2111
1306
|
case "InvalidTrailNameException":
|
|
2112
1307
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
2113
|
-
|
|
2114
|
-
...(await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context)),
|
|
2115
|
-
name: errorCode,
|
|
2116
|
-
$metadata: deserializeMetadata(output),
|
|
2117
|
-
};
|
|
2118
|
-
break;
|
|
1308
|
+
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
2119
1309
|
case "OperationNotPermittedException":
|
|
2120
1310
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2121
|
-
|
|
2122
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
2123
|
-
name: errorCode,
|
|
2124
|
-
$metadata: deserializeMetadata(output),
|
|
2125
|
-
};
|
|
2126
|
-
break;
|
|
1311
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
2127
1312
|
case "ResourceNotFoundException":
|
|
2128
1313
|
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
2129
|
-
|
|
2130
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2131
|
-
name: errorCode,
|
|
2132
|
-
$metadata: deserializeMetadata(output),
|
|
2133
|
-
};
|
|
2134
|
-
break;
|
|
1314
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2135
1315
|
case "ResourceTypeNotSupportedException":
|
|
2136
1316
|
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
2137
|
-
|
|
2138
|
-
...(await deserializeAws_json1_1ResourceTypeNotSupportedExceptionResponse(parsedOutput, context)),
|
|
2139
|
-
name: errorCode,
|
|
2140
|
-
$metadata: deserializeMetadata(output),
|
|
2141
|
-
};
|
|
2142
|
-
break;
|
|
1317
|
+
throw await deserializeAws_json1_1ResourceTypeNotSupportedExceptionResponse(parsedOutput, context);
|
|
2143
1318
|
case "UnsupportedOperationException":
|
|
2144
1319
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2145
|
-
|
|
2146
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
2147
|
-
name: errorCode,
|
|
2148
|
-
$metadata: deserializeMetadata(output),
|
|
2149
|
-
};
|
|
2150
|
-
break;
|
|
1320
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2151
1321
|
default:
|
|
2152
1322
|
const parsedBody = parsedOutput.body;
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
...parsedBody,
|
|
2156
|
-
name: `${errorCode}`,
|
|
2157
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1323
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1324
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2158
1325
|
$fault: "client",
|
|
2159
1326
|
$metadata: deserializeMetadata(output),
|
|
2160
|
-
};
|
|
1327
|
+
});
|
|
1328
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2161
1329
|
}
|
|
2162
|
-
const message = response.message || response.Message || errorCode;
|
|
2163
|
-
response.message = message;
|
|
2164
|
-
delete response.Message;
|
|
2165
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2166
1330
|
};
|
|
2167
1331
|
const deserializeAws_json1_1ListTrailsCommand = async (output, context) => {
|
|
2168
1332
|
if (output.statusCode >= 300) {
|
|
@@ -2189,35 +1353,19 @@ const deserializeAws_json1_1ListTrailsCommandError = async (output, context) =>
|
|
|
2189
1353
|
switch (errorCode) {
|
|
2190
1354
|
case "OperationNotPermittedException":
|
|
2191
1355
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2192
|
-
|
|
2193
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
2194
|
-
name: errorCode,
|
|
2195
|
-
$metadata: deserializeMetadata(output),
|
|
2196
|
-
};
|
|
2197
|
-
break;
|
|
1356
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
2198
1357
|
case "UnsupportedOperationException":
|
|
2199
1358
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2200
|
-
|
|
2201
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
2202
|
-
name: errorCode,
|
|
2203
|
-
$metadata: deserializeMetadata(output),
|
|
2204
|
-
};
|
|
2205
|
-
break;
|
|
1359
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2206
1360
|
default:
|
|
2207
1361
|
const parsedBody = parsedOutput.body;
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
...parsedBody,
|
|
2211
|
-
name: `${errorCode}`,
|
|
2212
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1362
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1363
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2213
1364
|
$fault: "client",
|
|
2214
1365
|
$metadata: deserializeMetadata(output),
|
|
2215
|
-
};
|
|
1366
|
+
});
|
|
1367
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2216
1368
|
}
|
|
2217
|
-
const message = response.message || response.Message || errorCode;
|
|
2218
|
-
response.message = message;
|
|
2219
|
-
delete response.Message;
|
|
2220
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2221
1369
|
};
|
|
2222
1370
|
const deserializeAws_json1_1LookupEventsCommand = async (output, context) => {
|
|
2223
1371
|
if (output.statusCode >= 300) {
|
|
@@ -2244,75 +1392,34 @@ const deserializeAws_json1_1LookupEventsCommandError = async (output, context) =
|
|
|
2244
1392
|
switch (errorCode) {
|
|
2245
1393
|
case "InvalidEventCategoryException":
|
|
2246
1394
|
case "com.amazonaws.cloudtrail#InvalidEventCategoryException":
|
|
2247
|
-
|
|
2248
|
-
...(await deserializeAws_json1_1InvalidEventCategoryExceptionResponse(parsedOutput, context)),
|
|
2249
|
-
name: errorCode,
|
|
2250
|
-
$metadata: deserializeMetadata(output),
|
|
2251
|
-
};
|
|
2252
|
-
break;
|
|
1395
|
+
throw await deserializeAws_json1_1InvalidEventCategoryExceptionResponse(parsedOutput, context);
|
|
2253
1396
|
case "InvalidLookupAttributesException":
|
|
2254
1397
|
case "com.amazonaws.cloudtrail#InvalidLookupAttributesException":
|
|
2255
|
-
|
|
2256
|
-
...(await deserializeAws_json1_1InvalidLookupAttributesExceptionResponse(parsedOutput, context)),
|
|
2257
|
-
name: errorCode,
|
|
2258
|
-
$metadata: deserializeMetadata(output),
|
|
2259
|
-
};
|
|
2260
|
-
break;
|
|
1398
|
+
throw await deserializeAws_json1_1InvalidLookupAttributesExceptionResponse(parsedOutput, context);
|
|
2261
1399
|
case "InvalidMaxResultsException":
|
|
2262
1400
|
case "com.amazonaws.cloudtrail#InvalidMaxResultsException":
|
|
2263
|
-
|
|
2264
|
-
...(await deserializeAws_json1_1InvalidMaxResultsExceptionResponse(parsedOutput, context)),
|
|
2265
|
-
name: errorCode,
|
|
2266
|
-
$metadata: deserializeMetadata(output),
|
|
2267
|
-
};
|
|
2268
|
-
break;
|
|
1401
|
+
throw await deserializeAws_json1_1InvalidMaxResultsExceptionResponse(parsedOutput, context);
|
|
2269
1402
|
case "InvalidNextTokenException":
|
|
2270
1403
|
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
2271
|
-
|
|
2272
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
2273
|
-
name: errorCode,
|
|
2274
|
-
$metadata: deserializeMetadata(output),
|
|
2275
|
-
};
|
|
2276
|
-
break;
|
|
1404
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2277
1405
|
case "InvalidTimeRangeException":
|
|
2278
1406
|
case "com.amazonaws.cloudtrail#InvalidTimeRangeException":
|
|
2279
|
-
|
|
2280
|
-
...(await deserializeAws_json1_1InvalidTimeRangeExceptionResponse(parsedOutput, context)),
|
|
2281
|
-
name: errorCode,
|
|
2282
|
-
$metadata: deserializeMetadata(output),
|
|
2283
|
-
};
|
|
2284
|
-
break;
|
|
1407
|
+
throw await deserializeAws_json1_1InvalidTimeRangeExceptionResponse(parsedOutput, context);
|
|
2285
1408
|
case "OperationNotPermittedException":
|
|
2286
1409
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2287
|
-
|
|
2288
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
2289
|
-
name: errorCode,
|
|
2290
|
-
$metadata: deserializeMetadata(output),
|
|
2291
|
-
};
|
|
2292
|
-
break;
|
|
1410
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
2293
1411
|
case "UnsupportedOperationException":
|
|
2294
1412
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2295
|
-
|
|
2296
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
2297
|
-
name: errorCode,
|
|
2298
|
-
$metadata: deserializeMetadata(output),
|
|
2299
|
-
};
|
|
2300
|
-
break;
|
|
1413
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2301
1414
|
default:
|
|
2302
1415
|
const parsedBody = parsedOutput.body;
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
...parsedBody,
|
|
2306
|
-
name: `${errorCode}`,
|
|
2307
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1416
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1417
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2308
1418
|
$fault: "client",
|
|
2309
1419
|
$metadata: deserializeMetadata(output),
|
|
2310
|
-
};
|
|
1420
|
+
});
|
|
1421
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2311
1422
|
}
|
|
2312
|
-
const message = response.message || response.Message || errorCode;
|
|
2313
|
-
response.message = message;
|
|
2314
|
-
delete response.Message;
|
|
2315
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2316
1423
|
};
|
|
2317
1424
|
const deserializeAws_json1_1PutEventSelectorsCommand = async (output, context) => {
|
|
2318
1425
|
if (output.statusCode >= 300) {
|
|
@@ -2339,83 +1446,37 @@ const deserializeAws_json1_1PutEventSelectorsCommandError = async (output, conte
|
|
|
2339
1446
|
switch (errorCode) {
|
|
2340
1447
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2341
1448
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2342
|
-
|
|
2343
|
-
...(await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context)),
|
|
2344
|
-
name: errorCode,
|
|
2345
|
-
$metadata: deserializeMetadata(output),
|
|
2346
|
-
};
|
|
2347
|
-
break;
|
|
1449
|
+
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
2348
1450
|
case "InvalidEventSelectorsException":
|
|
2349
1451
|
case "com.amazonaws.cloudtrail#InvalidEventSelectorsException":
|
|
2350
|
-
|
|
2351
|
-
...(await deserializeAws_json1_1InvalidEventSelectorsExceptionResponse(parsedOutput, context)),
|
|
2352
|
-
name: errorCode,
|
|
2353
|
-
$metadata: deserializeMetadata(output),
|
|
2354
|
-
};
|
|
2355
|
-
break;
|
|
1452
|
+
throw await deserializeAws_json1_1InvalidEventSelectorsExceptionResponse(parsedOutput, context);
|
|
2356
1453
|
case "InvalidHomeRegionException":
|
|
2357
1454
|
case "com.amazonaws.cloudtrail#InvalidHomeRegionException":
|
|
2358
|
-
|
|
2359
|
-
...(await deserializeAws_json1_1InvalidHomeRegionExceptionResponse(parsedOutput, context)),
|
|
2360
|
-
name: errorCode,
|
|
2361
|
-
$metadata: deserializeMetadata(output),
|
|
2362
|
-
};
|
|
2363
|
-
break;
|
|
1455
|
+
throw await deserializeAws_json1_1InvalidHomeRegionExceptionResponse(parsedOutput, context);
|
|
2364
1456
|
case "InvalidTrailNameException":
|
|
2365
1457
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
2366
|
-
|
|
2367
|
-
...(await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context)),
|
|
2368
|
-
name: errorCode,
|
|
2369
|
-
$metadata: deserializeMetadata(output),
|
|
2370
|
-
};
|
|
2371
|
-
break;
|
|
1458
|
+
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
2372
1459
|
case "NotOrganizationMasterAccountException":
|
|
2373
1460
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2374
|
-
|
|
2375
|
-
...(await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context)),
|
|
2376
|
-
name: errorCode,
|
|
2377
|
-
$metadata: deserializeMetadata(output),
|
|
2378
|
-
};
|
|
2379
|
-
break;
|
|
1461
|
+
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
2380
1462
|
case "OperationNotPermittedException":
|
|
2381
1463
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2382
|
-
|
|
2383
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
2384
|
-
name: errorCode,
|
|
2385
|
-
$metadata: deserializeMetadata(output),
|
|
2386
|
-
};
|
|
2387
|
-
break;
|
|
1464
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
2388
1465
|
case "TrailNotFoundException":
|
|
2389
1466
|
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
2390
|
-
|
|
2391
|
-
...(await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context)),
|
|
2392
|
-
name: errorCode,
|
|
2393
|
-
$metadata: deserializeMetadata(output),
|
|
2394
|
-
};
|
|
2395
|
-
break;
|
|
1467
|
+
throw await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context);
|
|
2396
1468
|
case "UnsupportedOperationException":
|
|
2397
1469
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2398
|
-
|
|
2399
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
2400
|
-
name: errorCode,
|
|
2401
|
-
$metadata: deserializeMetadata(output),
|
|
2402
|
-
};
|
|
2403
|
-
break;
|
|
1470
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2404
1471
|
default:
|
|
2405
1472
|
const parsedBody = parsedOutput.body;
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
...parsedBody,
|
|
2409
|
-
name: `${errorCode}`,
|
|
2410
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1473
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1474
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2411
1475
|
$fault: "client",
|
|
2412
1476
|
$metadata: deserializeMetadata(output),
|
|
2413
|
-
};
|
|
1477
|
+
});
|
|
1478
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2414
1479
|
}
|
|
2415
|
-
const message = response.message || response.Message || errorCode;
|
|
2416
|
-
response.message = message;
|
|
2417
|
-
delete response.Message;
|
|
2418
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2419
1480
|
};
|
|
2420
1481
|
const deserializeAws_json1_1PutInsightSelectorsCommand = async (output, context) => {
|
|
2421
1482
|
if (output.statusCode >= 300) {
|
|
@@ -2442,107 +1503,46 @@ const deserializeAws_json1_1PutInsightSelectorsCommandError = async (output, con
|
|
|
2442
1503
|
switch (errorCode) {
|
|
2443
1504
|
case "InsufficientEncryptionPolicyException":
|
|
2444
1505
|
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
2445
|
-
|
|
2446
|
-
...(await deserializeAws_json1_1InsufficientEncryptionPolicyExceptionResponse(parsedOutput, context)),
|
|
2447
|
-
name: errorCode,
|
|
2448
|
-
$metadata: deserializeMetadata(output),
|
|
2449
|
-
};
|
|
2450
|
-
break;
|
|
1506
|
+
throw await deserializeAws_json1_1InsufficientEncryptionPolicyExceptionResponse(parsedOutput, context);
|
|
2451
1507
|
case "InsufficientS3BucketPolicyException":
|
|
2452
1508
|
case "com.amazonaws.cloudtrail#InsufficientS3BucketPolicyException":
|
|
2453
|
-
|
|
2454
|
-
...(await deserializeAws_json1_1InsufficientS3BucketPolicyExceptionResponse(parsedOutput, context)),
|
|
2455
|
-
name: errorCode,
|
|
2456
|
-
$metadata: deserializeMetadata(output),
|
|
2457
|
-
};
|
|
2458
|
-
break;
|
|
1509
|
+
throw await deserializeAws_json1_1InsufficientS3BucketPolicyExceptionResponse(parsedOutput, context);
|
|
2459
1510
|
case "InvalidHomeRegionException":
|
|
2460
1511
|
case "com.amazonaws.cloudtrail#InvalidHomeRegionException":
|
|
2461
|
-
|
|
2462
|
-
...(await deserializeAws_json1_1InvalidHomeRegionExceptionResponse(parsedOutput, context)),
|
|
2463
|
-
name: errorCode,
|
|
2464
|
-
$metadata: deserializeMetadata(output),
|
|
2465
|
-
};
|
|
2466
|
-
break;
|
|
1512
|
+
throw await deserializeAws_json1_1InvalidHomeRegionExceptionResponse(parsedOutput, context);
|
|
2467
1513
|
case "InvalidInsightSelectorsException":
|
|
2468
1514
|
case "com.amazonaws.cloudtrail#InvalidInsightSelectorsException":
|
|
2469
|
-
|
|
2470
|
-
...(await deserializeAws_json1_1InvalidInsightSelectorsExceptionResponse(parsedOutput, context)),
|
|
2471
|
-
name: errorCode,
|
|
2472
|
-
$metadata: deserializeMetadata(output),
|
|
2473
|
-
};
|
|
2474
|
-
break;
|
|
1515
|
+
throw await deserializeAws_json1_1InvalidInsightSelectorsExceptionResponse(parsedOutput, context);
|
|
2475
1516
|
case "InvalidTrailNameException":
|
|
2476
1517
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
2477
|
-
|
|
2478
|
-
...(await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context)),
|
|
2479
|
-
name: errorCode,
|
|
2480
|
-
$metadata: deserializeMetadata(output),
|
|
2481
|
-
};
|
|
2482
|
-
break;
|
|
1518
|
+
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
2483
1519
|
case "KmsException":
|
|
2484
1520
|
case "com.amazonaws.cloudtrail#KmsException":
|
|
2485
|
-
|
|
2486
|
-
...(await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)),
|
|
2487
|
-
name: errorCode,
|
|
2488
|
-
$metadata: deserializeMetadata(output),
|
|
2489
|
-
};
|
|
2490
|
-
break;
|
|
1521
|
+
throw await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context);
|
|
2491
1522
|
case "NotOrganizationMasterAccountException":
|
|
2492
1523
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2493
|
-
|
|
2494
|
-
...(await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context)),
|
|
2495
|
-
name: errorCode,
|
|
2496
|
-
$metadata: deserializeMetadata(output),
|
|
2497
|
-
};
|
|
2498
|
-
break;
|
|
1524
|
+
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
2499
1525
|
case "OperationNotPermittedException":
|
|
2500
1526
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2501
|
-
|
|
2502
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
2503
|
-
name: errorCode,
|
|
2504
|
-
$metadata: deserializeMetadata(output),
|
|
2505
|
-
};
|
|
2506
|
-
break;
|
|
1527
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
2507
1528
|
case "S3BucketDoesNotExistException":
|
|
2508
1529
|
case "com.amazonaws.cloudtrail#S3BucketDoesNotExistException":
|
|
2509
|
-
|
|
2510
|
-
...(await deserializeAws_json1_1S3BucketDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
2511
|
-
name: errorCode,
|
|
2512
|
-
$metadata: deserializeMetadata(output),
|
|
2513
|
-
};
|
|
2514
|
-
break;
|
|
1530
|
+
throw await deserializeAws_json1_1S3BucketDoesNotExistExceptionResponse(parsedOutput, context);
|
|
2515
1531
|
case "TrailNotFoundException":
|
|
2516
1532
|
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
2517
|
-
|
|
2518
|
-
...(await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context)),
|
|
2519
|
-
name: errorCode,
|
|
2520
|
-
$metadata: deserializeMetadata(output),
|
|
2521
|
-
};
|
|
2522
|
-
break;
|
|
1533
|
+
throw await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context);
|
|
2523
1534
|
case "UnsupportedOperationException":
|
|
2524
1535
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2525
|
-
|
|
2526
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
2527
|
-
name: errorCode,
|
|
2528
|
-
$metadata: deserializeMetadata(output),
|
|
2529
|
-
};
|
|
2530
|
-
break;
|
|
1536
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2531
1537
|
default:
|
|
2532
1538
|
const parsedBody = parsedOutput.body;
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
...parsedBody,
|
|
2536
|
-
name: `${errorCode}`,
|
|
2537
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1539
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1540
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2538
1541
|
$fault: "client",
|
|
2539
1542
|
$metadata: deserializeMetadata(output),
|
|
2540
|
-
};
|
|
1543
|
+
});
|
|
1544
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2541
1545
|
}
|
|
2542
|
-
const message = response.message || response.Message || errorCode;
|
|
2543
|
-
response.message = message;
|
|
2544
|
-
delete response.Message;
|
|
2545
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2546
1546
|
};
|
|
2547
1547
|
const deserializeAws_json1_1RemoveTagsCommand = async (output, context) => {
|
|
2548
1548
|
if (output.statusCode >= 300) {
|
|
@@ -2569,99 +1569,43 @@ const deserializeAws_json1_1RemoveTagsCommandError = async (output, context) =>
|
|
|
2569
1569
|
switch (errorCode) {
|
|
2570
1570
|
case "CloudTrailARNInvalidException":
|
|
2571
1571
|
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
2572
|
-
|
|
2573
|
-
...(await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context)),
|
|
2574
|
-
name: errorCode,
|
|
2575
|
-
$metadata: deserializeMetadata(output),
|
|
2576
|
-
};
|
|
2577
|
-
break;
|
|
1572
|
+
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
2578
1573
|
case "EventDataStoreNotFoundException":
|
|
2579
1574
|
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
2580
|
-
|
|
2581
|
-
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
2582
|
-
name: errorCode,
|
|
2583
|
-
$metadata: deserializeMetadata(output),
|
|
2584
|
-
};
|
|
2585
|
-
break;
|
|
1575
|
+
throw await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context);
|
|
2586
1576
|
case "InactiveEventDataStoreException":
|
|
2587
1577
|
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
2588
|
-
|
|
2589
|
-
...(await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context)),
|
|
2590
|
-
name: errorCode,
|
|
2591
|
-
$metadata: deserializeMetadata(output),
|
|
2592
|
-
};
|
|
2593
|
-
break;
|
|
1578
|
+
throw await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context);
|
|
2594
1579
|
case "InvalidTagParameterException":
|
|
2595
1580
|
case "com.amazonaws.cloudtrail#InvalidTagParameterException":
|
|
2596
|
-
|
|
2597
|
-
...(await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)),
|
|
2598
|
-
name: errorCode,
|
|
2599
|
-
$metadata: deserializeMetadata(output),
|
|
2600
|
-
};
|
|
2601
|
-
break;
|
|
1581
|
+
throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context);
|
|
2602
1582
|
case "InvalidTrailNameException":
|
|
2603
1583
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
2604
|
-
|
|
2605
|
-
...(await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context)),
|
|
2606
|
-
name: errorCode,
|
|
2607
|
-
$metadata: deserializeMetadata(output),
|
|
2608
|
-
};
|
|
2609
|
-
break;
|
|
1584
|
+
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
2610
1585
|
case "NotOrganizationMasterAccountException":
|
|
2611
1586
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2612
|
-
|
|
2613
|
-
...(await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context)),
|
|
2614
|
-
name: errorCode,
|
|
2615
|
-
$metadata: deserializeMetadata(output),
|
|
2616
|
-
};
|
|
2617
|
-
break;
|
|
1587
|
+
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
2618
1588
|
case "OperationNotPermittedException":
|
|
2619
1589
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2620
|
-
|
|
2621
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
2622
|
-
name: errorCode,
|
|
2623
|
-
$metadata: deserializeMetadata(output),
|
|
2624
|
-
};
|
|
2625
|
-
break;
|
|
1590
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
2626
1591
|
case "ResourceNotFoundException":
|
|
2627
1592
|
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
2628
|
-
|
|
2629
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2630
|
-
name: errorCode,
|
|
2631
|
-
$metadata: deserializeMetadata(output),
|
|
2632
|
-
};
|
|
2633
|
-
break;
|
|
1593
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2634
1594
|
case "ResourceTypeNotSupportedException":
|
|
2635
1595
|
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
2636
|
-
|
|
2637
|
-
...(await deserializeAws_json1_1ResourceTypeNotSupportedExceptionResponse(parsedOutput, context)),
|
|
2638
|
-
name: errorCode,
|
|
2639
|
-
$metadata: deserializeMetadata(output),
|
|
2640
|
-
};
|
|
2641
|
-
break;
|
|
1596
|
+
throw await deserializeAws_json1_1ResourceTypeNotSupportedExceptionResponse(parsedOutput, context);
|
|
2642
1597
|
case "UnsupportedOperationException":
|
|
2643
1598
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2644
|
-
|
|
2645
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
2646
|
-
name: errorCode,
|
|
2647
|
-
$metadata: deserializeMetadata(output),
|
|
2648
|
-
};
|
|
2649
|
-
break;
|
|
1599
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2650
1600
|
default:
|
|
2651
1601
|
const parsedBody = parsedOutput.body;
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
...parsedBody,
|
|
2655
|
-
name: `${errorCode}`,
|
|
2656
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1602
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1603
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2657
1604
|
$fault: "client",
|
|
2658
1605
|
$metadata: deserializeMetadata(output),
|
|
2659
|
-
};
|
|
1606
|
+
});
|
|
1607
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2660
1608
|
}
|
|
2661
|
-
const message = response.message || response.Message || errorCode;
|
|
2662
|
-
response.message = message;
|
|
2663
|
-
delete response.Message;
|
|
2664
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2665
1609
|
};
|
|
2666
1610
|
const deserializeAws_json1_1RestoreEventDataStoreCommand = async (output, context) => {
|
|
2667
1611
|
if (output.statusCode >= 300) {
|
|
@@ -2688,115 +1632,49 @@ const deserializeAws_json1_1RestoreEventDataStoreCommandError = async (output, c
|
|
|
2688
1632
|
switch (errorCode) {
|
|
2689
1633
|
case "CloudTrailAccessNotEnabledException":
|
|
2690
1634
|
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
2691
|
-
|
|
2692
|
-
...(await deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context)),
|
|
2693
|
-
name: errorCode,
|
|
2694
|
-
$metadata: deserializeMetadata(output),
|
|
2695
|
-
};
|
|
2696
|
-
break;
|
|
1635
|
+
throw await deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
2697
1636
|
case "EventDataStoreARNInvalidException":
|
|
2698
1637
|
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
2699
|
-
|
|
2700
|
-
...(await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context)),
|
|
2701
|
-
name: errorCode,
|
|
2702
|
-
$metadata: deserializeMetadata(output),
|
|
2703
|
-
};
|
|
2704
|
-
break;
|
|
1638
|
+
throw await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context);
|
|
2705
1639
|
case "EventDataStoreMaxLimitExceededException":
|
|
2706
1640
|
case "com.amazonaws.cloudtrail#EventDataStoreMaxLimitExceededException":
|
|
2707
|
-
|
|
2708
|
-
...(await deserializeAws_json1_1EventDataStoreMaxLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2709
|
-
name: errorCode,
|
|
2710
|
-
$metadata: deserializeMetadata(output),
|
|
2711
|
-
};
|
|
2712
|
-
break;
|
|
1641
|
+
throw await deserializeAws_json1_1EventDataStoreMaxLimitExceededExceptionResponse(parsedOutput, context);
|
|
2713
1642
|
case "EventDataStoreNotFoundException":
|
|
2714
1643
|
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
2715
|
-
|
|
2716
|
-
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
2717
|
-
name: errorCode,
|
|
2718
|
-
$metadata: deserializeMetadata(output),
|
|
2719
|
-
};
|
|
2720
|
-
break;
|
|
1644
|
+
throw await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context);
|
|
2721
1645
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2722
1646
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2723
|
-
|
|
2724
|
-
...(await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context)),
|
|
2725
|
-
name: errorCode,
|
|
2726
|
-
$metadata: deserializeMetadata(output),
|
|
2727
|
-
};
|
|
2728
|
-
break;
|
|
1647
|
+
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
2729
1648
|
case "InvalidEventDataStoreStatusException":
|
|
2730
1649
|
case "com.amazonaws.cloudtrail#InvalidEventDataStoreStatusException":
|
|
2731
|
-
|
|
2732
|
-
...(await deserializeAws_json1_1InvalidEventDataStoreStatusExceptionResponse(parsedOutput, context)),
|
|
2733
|
-
name: errorCode,
|
|
2734
|
-
$metadata: deserializeMetadata(output),
|
|
2735
|
-
};
|
|
2736
|
-
break;
|
|
1650
|
+
throw await deserializeAws_json1_1InvalidEventDataStoreStatusExceptionResponse(parsedOutput, context);
|
|
2737
1651
|
case "InvalidParameterException":
|
|
2738
1652
|
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2739
|
-
|
|
2740
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2741
|
-
name: errorCode,
|
|
2742
|
-
$metadata: deserializeMetadata(output),
|
|
2743
|
-
};
|
|
2744
|
-
break;
|
|
1653
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2745
1654
|
case "NotOrganizationMasterAccountException":
|
|
2746
1655
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2747
|
-
|
|
2748
|
-
...(await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context)),
|
|
2749
|
-
name: errorCode,
|
|
2750
|
-
$metadata: deserializeMetadata(output),
|
|
2751
|
-
};
|
|
2752
|
-
break;
|
|
1656
|
+
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
2753
1657
|
case "OperationNotPermittedException":
|
|
2754
1658
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2755
|
-
|
|
2756
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
2757
|
-
name: errorCode,
|
|
2758
|
-
$metadata: deserializeMetadata(output),
|
|
2759
|
-
};
|
|
2760
|
-
break;
|
|
1659
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
2761
1660
|
case "OrganizationNotInAllFeaturesModeException":
|
|
2762
1661
|
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
2763
|
-
|
|
2764
|
-
...(await deserializeAws_json1_1OrganizationNotInAllFeaturesModeExceptionResponse(parsedOutput, context)),
|
|
2765
|
-
name: errorCode,
|
|
2766
|
-
$metadata: deserializeMetadata(output),
|
|
2767
|
-
};
|
|
2768
|
-
break;
|
|
1662
|
+
throw await deserializeAws_json1_1OrganizationNotInAllFeaturesModeExceptionResponse(parsedOutput, context);
|
|
2769
1663
|
case "OrganizationsNotInUseException":
|
|
2770
1664
|
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
2771
|
-
|
|
2772
|
-
...(await deserializeAws_json1_1OrganizationsNotInUseExceptionResponse(parsedOutput, context)),
|
|
2773
|
-
name: errorCode,
|
|
2774
|
-
$metadata: deserializeMetadata(output),
|
|
2775
|
-
};
|
|
2776
|
-
break;
|
|
1665
|
+
throw await deserializeAws_json1_1OrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
2777
1666
|
case "UnsupportedOperationException":
|
|
2778
1667
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2779
|
-
|
|
2780
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
2781
|
-
name: errorCode,
|
|
2782
|
-
$metadata: deserializeMetadata(output),
|
|
2783
|
-
};
|
|
2784
|
-
break;
|
|
1668
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2785
1669
|
default:
|
|
2786
1670
|
const parsedBody = parsedOutput.body;
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
...parsedBody,
|
|
2790
|
-
name: `${errorCode}`,
|
|
2791
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1671
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1672
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2792
1673
|
$fault: "client",
|
|
2793
1674
|
$metadata: deserializeMetadata(output),
|
|
2794
|
-
};
|
|
1675
|
+
});
|
|
1676
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2795
1677
|
}
|
|
2796
|
-
const message = response.message || response.Message || errorCode;
|
|
2797
|
-
response.message = message;
|
|
2798
|
-
delete response.Message;
|
|
2799
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2800
1678
|
};
|
|
2801
1679
|
const deserializeAws_json1_1StartLoggingCommand = async (output, context) => {
|
|
2802
1680
|
if (output.statusCode >= 300) {
|
|
@@ -2823,75 +1701,34 @@ const deserializeAws_json1_1StartLoggingCommandError = async (output, context) =
|
|
|
2823
1701
|
switch (errorCode) {
|
|
2824
1702
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2825
1703
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2826
|
-
|
|
2827
|
-
...(await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context)),
|
|
2828
|
-
name: errorCode,
|
|
2829
|
-
$metadata: deserializeMetadata(output),
|
|
2830
|
-
};
|
|
2831
|
-
break;
|
|
1704
|
+
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
2832
1705
|
case "InvalidHomeRegionException":
|
|
2833
1706
|
case "com.amazonaws.cloudtrail#InvalidHomeRegionException":
|
|
2834
|
-
|
|
2835
|
-
...(await deserializeAws_json1_1InvalidHomeRegionExceptionResponse(parsedOutput, context)),
|
|
2836
|
-
name: errorCode,
|
|
2837
|
-
$metadata: deserializeMetadata(output),
|
|
2838
|
-
};
|
|
2839
|
-
break;
|
|
1707
|
+
throw await deserializeAws_json1_1InvalidHomeRegionExceptionResponse(parsedOutput, context);
|
|
2840
1708
|
case "InvalidTrailNameException":
|
|
2841
1709
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
2842
|
-
|
|
2843
|
-
...(await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context)),
|
|
2844
|
-
name: errorCode,
|
|
2845
|
-
$metadata: deserializeMetadata(output),
|
|
2846
|
-
};
|
|
2847
|
-
break;
|
|
1710
|
+
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
2848
1711
|
case "NotOrganizationMasterAccountException":
|
|
2849
1712
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2850
|
-
|
|
2851
|
-
...(await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context)),
|
|
2852
|
-
name: errorCode,
|
|
2853
|
-
$metadata: deserializeMetadata(output),
|
|
2854
|
-
};
|
|
2855
|
-
break;
|
|
1713
|
+
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
2856
1714
|
case "OperationNotPermittedException":
|
|
2857
1715
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2858
|
-
|
|
2859
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
2860
|
-
name: errorCode,
|
|
2861
|
-
$metadata: deserializeMetadata(output),
|
|
2862
|
-
};
|
|
2863
|
-
break;
|
|
1716
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
2864
1717
|
case "TrailNotFoundException":
|
|
2865
1718
|
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
2866
|
-
|
|
2867
|
-
...(await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context)),
|
|
2868
|
-
name: errorCode,
|
|
2869
|
-
$metadata: deserializeMetadata(output),
|
|
2870
|
-
};
|
|
2871
|
-
break;
|
|
1719
|
+
throw await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context);
|
|
2872
1720
|
case "UnsupportedOperationException":
|
|
2873
1721
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2874
|
-
|
|
2875
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
2876
|
-
name: errorCode,
|
|
2877
|
-
$metadata: deserializeMetadata(output),
|
|
2878
|
-
};
|
|
2879
|
-
break;
|
|
1722
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2880
1723
|
default:
|
|
2881
1724
|
const parsedBody = parsedOutput.body;
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
...parsedBody,
|
|
2885
|
-
name: `${errorCode}`,
|
|
2886
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1725
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1726
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2887
1727
|
$fault: "client",
|
|
2888
1728
|
$metadata: deserializeMetadata(output),
|
|
2889
|
-
};
|
|
1729
|
+
});
|
|
1730
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2890
1731
|
}
|
|
2891
|
-
const message = response.message || response.Message || errorCode;
|
|
2892
|
-
response.message = message;
|
|
2893
|
-
delete response.Message;
|
|
2894
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2895
1732
|
};
|
|
2896
1733
|
const deserializeAws_json1_1StartQueryCommand = async (output, context) => {
|
|
2897
1734
|
if (output.statusCode >= 300) {
|
|
@@ -2918,83 +1755,37 @@ const deserializeAws_json1_1StartQueryCommandError = async (output, context) =>
|
|
|
2918
1755
|
switch (errorCode) {
|
|
2919
1756
|
case "EventDataStoreARNInvalidException":
|
|
2920
1757
|
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
2921
|
-
|
|
2922
|
-
...(await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context)),
|
|
2923
|
-
name: errorCode,
|
|
2924
|
-
$metadata: deserializeMetadata(output),
|
|
2925
|
-
};
|
|
2926
|
-
break;
|
|
1758
|
+
throw await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context);
|
|
2927
1759
|
case "EventDataStoreNotFoundException":
|
|
2928
1760
|
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
2929
|
-
|
|
2930
|
-
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
2931
|
-
name: errorCode,
|
|
2932
|
-
$metadata: deserializeMetadata(output),
|
|
2933
|
-
};
|
|
2934
|
-
break;
|
|
1761
|
+
throw await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context);
|
|
2935
1762
|
case "InactiveEventDataStoreException":
|
|
2936
1763
|
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
2937
|
-
|
|
2938
|
-
...(await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context)),
|
|
2939
|
-
name: errorCode,
|
|
2940
|
-
$metadata: deserializeMetadata(output),
|
|
2941
|
-
};
|
|
2942
|
-
break;
|
|
1764
|
+
throw await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context);
|
|
2943
1765
|
case "InvalidParameterException":
|
|
2944
1766
|
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2945
|
-
|
|
2946
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2947
|
-
name: errorCode,
|
|
2948
|
-
$metadata: deserializeMetadata(output),
|
|
2949
|
-
};
|
|
2950
|
-
break;
|
|
1767
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2951
1768
|
case "InvalidQueryStatementException":
|
|
2952
1769
|
case "com.amazonaws.cloudtrail#InvalidQueryStatementException":
|
|
2953
|
-
|
|
2954
|
-
...(await deserializeAws_json1_1InvalidQueryStatementExceptionResponse(parsedOutput, context)),
|
|
2955
|
-
name: errorCode,
|
|
2956
|
-
$metadata: deserializeMetadata(output),
|
|
2957
|
-
};
|
|
2958
|
-
break;
|
|
1770
|
+
throw await deserializeAws_json1_1InvalidQueryStatementExceptionResponse(parsedOutput, context);
|
|
2959
1771
|
case "MaxConcurrentQueriesException":
|
|
2960
1772
|
case "com.amazonaws.cloudtrail#MaxConcurrentQueriesException":
|
|
2961
|
-
|
|
2962
|
-
...(await deserializeAws_json1_1MaxConcurrentQueriesExceptionResponse(parsedOutput, context)),
|
|
2963
|
-
name: errorCode,
|
|
2964
|
-
$metadata: deserializeMetadata(output),
|
|
2965
|
-
};
|
|
2966
|
-
break;
|
|
1773
|
+
throw await deserializeAws_json1_1MaxConcurrentQueriesExceptionResponse(parsedOutput, context);
|
|
2967
1774
|
case "OperationNotPermittedException":
|
|
2968
1775
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2969
|
-
|
|
2970
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
2971
|
-
name: errorCode,
|
|
2972
|
-
$metadata: deserializeMetadata(output),
|
|
2973
|
-
};
|
|
2974
|
-
break;
|
|
1776
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
2975
1777
|
case "UnsupportedOperationException":
|
|
2976
1778
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2977
|
-
|
|
2978
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
2979
|
-
name: errorCode,
|
|
2980
|
-
$metadata: deserializeMetadata(output),
|
|
2981
|
-
};
|
|
2982
|
-
break;
|
|
1779
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2983
1780
|
default:
|
|
2984
1781
|
const parsedBody = parsedOutput.body;
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
...parsedBody,
|
|
2988
|
-
name: `${errorCode}`,
|
|
2989
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1782
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1783
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2990
1784
|
$fault: "client",
|
|
2991
1785
|
$metadata: deserializeMetadata(output),
|
|
2992
|
-
};
|
|
1786
|
+
});
|
|
1787
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2993
1788
|
}
|
|
2994
|
-
const message = response.message || response.Message || errorCode;
|
|
2995
|
-
response.message = message;
|
|
2996
|
-
delete response.Message;
|
|
2997
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2998
1789
|
};
|
|
2999
1790
|
const deserializeAws_json1_1StopLoggingCommand = async (output, context) => {
|
|
3000
1791
|
if (output.statusCode >= 300) {
|
|
@@ -3021,75 +1812,34 @@ const deserializeAws_json1_1StopLoggingCommandError = async (output, context) =>
|
|
|
3021
1812
|
switch (errorCode) {
|
|
3022
1813
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
3023
1814
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
3024
|
-
|
|
3025
|
-
...(await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context)),
|
|
3026
|
-
name: errorCode,
|
|
3027
|
-
$metadata: deserializeMetadata(output),
|
|
3028
|
-
};
|
|
3029
|
-
break;
|
|
1815
|
+
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
3030
1816
|
case "InvalidHomeRegionException":
|
|
3031
1817
|
case "com.amazonaws.cloudtrail#InvalidHomeRegionException":
|
|
3032
|
-
|
|
3033
|
-
...(await deserializeAws_json1_1InvalidHomeRegionExceptionResponse(parsedOutput, context)),
|
|
3034
|
-
name: errorCode,
|
|
3035
|
-
$metadata: deserializeMetadata(output),
|
|
3036
|
-
};
|
|
3037
|
-
break;
|
|
1818
|
+
throw await deserializeAws_json1_1InvalidHomeRegionExceptionResponse(parsedOutput, context);
|
|
3038
1819
|
case "InvalidTrailNameException":
|
|
3039
1820
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
3040
|
-
|
|
3041
|
-
...(await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context)),
|
|
3042
|
-
name: errorCode,
|
|
3043
|
-
$metadata: deserializeMetadata(output),
|
|
3044
|
-
};
|
|
3045
|
-
break;
|
|
1821
|
+
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
3046
1822
|
case "NotOrganizationMasterAccountException":
|
|
3047
1823
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
3048
|
-
|
|
3049
|
-
...(await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context)),
|
|
3050
|
-
name: errorCode,
|
|
3051
|
-
$metadata: deserializeMetadata(output),
|
|
3052
|
-
};
|
|
3053
|
-
break;
|
|
1824
|
+
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
3054
1825
|
case "OperationNotPermittedException":
|
|
3055
1826
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3056
|
-
|
|
3057
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
3058
|
-
name: errorCode,
|
|
3059
|
-
$metadata: deserializeMetadata(output),
|
|
3060
|
-
};
|
|
3061
|
-
break;
|
|
1827
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
3062
1828
|
case "TrailNotFoundException":
|
|
3063
1829
|
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
3064
|
-
|
|
3065
|
-
...(await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context)),
|
|
3066
|
-
name: errorCode,
|
|
3067
|
-
$metadata: deserializeMetadata(output),
|
|
3068
|
-
};
|
|
3069
|
-
break;
|
|
1830
|
+
throw await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context);
|
|
3070
1831
|
case "UnsupportedOperationException":
|
|
3071
1832
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3072
|
-
|
|
3073
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
3074
|
-
name: errorCode,
|
|
3075
|
-
$metadata: deserializeMetadata(output),
|
|
3076
|
-
};
|
|
3077
|
-
break;
|
|
1833
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
3078
1834
|
default:
|
|
3079
1835
|
const parsedBody = parsedOutput.body;
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
...parsedBody,
|
|
3083
|
-
name: `${errorCode}`,
|
|
3084
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1836
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1837
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3085
1838
|
$fault: "client",
|
|
3086
1839
|
$metadata: deserializeMetadata(output),
|
|
3087
|
-
};
|
|
1840
|
+
});
|
|
1841
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3088
1842
|
}
|
|
3089
|
-
const message = response.message || response.Message || errorCode;
|
|
3090
|
-
response.message = message;
|
|
3091
|
-
delete response.Message;
|
|
3092
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3093
1843
|
};
|
|
3094
1844
|
const deserializeAws_json1_1UpdateEventDataStoreCommand = async (output, context) => {
|
|
3095
1845
|
if (output.statusCode >= 300) {
|
|
@@ -3116,107 +1866,46 @@ const deserializeAws_json1_1UpdateEventDataStoreCommandError = async (output, co
|
|
|
3116
1866
|
switch (errorCode) {
|
|
3117
1867
|
case "CloudTrailAccessNotEnabledException":
|
|
3118
1868
|
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
3119
|
-
|
|
3120
|
-
...(await deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context)),
|
|
3121
|
-
name: errorCode,
|
|
3122
|
-
$metadata: deserializeMetadata(output),
|
|
3123
|
-
};
|
|
3124
|
-
break;
|
|
1869
|
+
throw await deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
3125
1870
|
case "EventDataStoreARNInvalidException":
|
|
3126
1871
|
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
3127
|
-
|
|
3128
|
-
...(await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context)),
|
|
3129
|
-
name: errorCode,
|
|
3130
|
-
$metadata: deserializeMetadata(output),
|
|
3131
|
-
};
|
|
3132
|
-
break;
|
|
1872
|
+
throw await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context);
|
|
3133
1873
|
case "EventDataStoreNotFoundException":
|
|
3134
1874
|
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
3135
|
-
|
|
3136
|
-
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
3137
|
-
name: errorCode,
|
|
3138
|
-
$metadata: deserializeMetadata(output),
|
|
3139
|
-
};
|
|
3140
|
-
break;
|
|
1875
|
+
throw await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context);
|
|
3141
1876
|
case "InactiveEventDataStoreException":
|
|
3142
1877
|
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
3143
|
-
|
|
3144
|
-
...(await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context)),
|
|
3145
|
-
name: errorCode,
|
|
3146
|
-
$metadata: deserializeMetadata(output),
|
|
3147
|
-
};
|
|
3148
|
-
break;
|
|
1878
|
+
throw await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context);
|
|
3149
1879
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
3150
1880
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
3151
|
-
|
|
3152
|
-
...(await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context)),
|
|
3153
|
-
name: errorCode,
|
|
3154
|
-
$metadata: deserializeMetadata(output),
|
|
3155
|
-
};
|
|
3156
|
-
break;
|
|
1881
|
+
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
3157
1882
|
case "InvalidParameterException":
|
|
3158
1883
|
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
3159
|
-
|
|
3160
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
3161
|
-
name: errorCode,
|
|
3162
|
-
$metadata: deserializeMetadata(output),
|
|
3163
|
-
};
|
|
3164
|
-
break;
|
|
1884
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
3165
1885
|
case "NotOrganizationMasterAccountException":
|
|
3166
1886
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
3167
|
-
|
|
3168
|
-
...(await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context)),
|
|
3169
|
-
name: errorCode,
|
|
3170
|
-
$metadata: deserializeMetadata(output),
|
|
3171
|
-
};
|
|
3172
|
-
break;
|
|
1887
|
+
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
3173
1888
|
case "OperationNotPermittedException":
|
|
3174
1889
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3175
|
-
|
|
3176
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
3177
|
-
name: errorCode,
|
|
3178
|
-
$metadata: deserializeMetadata(output),
|
|
3179
|
-
};
|
|
3180
|
-
break;
|
|
1890
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
3181
1891
|
case "OrganizationNotInAllFeaturesModeException":
|
|
3182
1892
|
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
3183
|
-
|
|
3184
|
-
...(await deserializeAws_json1_1OrganizationNotInAllFeaturesModeExceptionResponse(parsedOutput, context)),
|
|
3185
|
-
name: errorCode,
|
|
3186
|
-
$metadata: deserializeMetadata(output),
|
|
3187
|
-
};
|
|
3188
|
-
break;
|
|
1893
|
+
throw await deserializeAws_json1_1OrganizationNotInAllFeaturesModeExceptionResponse(parsedOutput, context);
|
|
3189
1894
|
case "OrganizationsNotInUseException":
|
|
3190
1895
|
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
3191
|
-
|
|
3192
|
-
...(await deserializeAws_json1_1OrganizationsNotInUseExceptionResponse(parsedOutput, context)),
|
|
3193
|
-
name: errorCode,
|
|
3194
|
-
$metadata: deserializeMetadata(output),
|
|
3195
|
-
};
|
|
3196
|
-
break;
|
|
1896
|
+
throw await deserializeAws_json1_1OrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
3197
1897
|
case "UnsupportedOperationException":
|
|
3198
1898
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3199
|
-
|
|
3200
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
3201
|
-
name: errorCode,
|
|
3202
|
-
$metadata: deserializeMetadata(output),
|
|
3203
|
-
};
|
|
3204
|
-
break;
|
|
1899
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
3205
1900
|
default:
|
|
3206
1901
|
const parsedBody = parsedOutput.body;
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
...parsedBody,
|
|
3210
|
-
name: `${errorCode}`,
|
|
3211
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1902
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
1903
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3212
1904
|
$fault: "client",
|
|
3213
1905
|
$metadata: deserializeMetadata(output),
|
|
3214
|
-
};
|
|
1906
|
+
});
|
|
1907
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3215
1908
|
}
|
|
3216
|
-
const message = response.message || response.Message || errorCode;
|
|
3217
|
-
response.message = message;
|
|
3218
|
-
delete response.Message;
|
|
3219
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3220
1909
|
};
|
|
3221
1910
|
const deserializeAws_json1_1UpdateTrailCommand = async (output, context) => {
|
|
3222
1911
|
if (output.statusCode >= 300) {
|
|
@@ -3243,881 +1932,619 @@ const deserializeAws_json1_1UpdateTrailCommandError = async (output, context) =>
|
|
|
3243
1932
|
switch (errorCode) {
|
|
3244
1933
|
case "CloudTrailAccessNotEnabledException":
|
|
3245
1934
|
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
3246
|
-
|
|
3247
|
-
...(await deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context)),
|
|
3248
|
-
name: errorCode,
|
|
3249
|
-
$metadata: deserializeMetadata(output),
|
|
3250
|
-
};
|
|
3251
|
-
break;
|
|
1935
|
+
throw await deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
3252
1936
|
case "CloudTrailInvalidClientTokenIdException":
|
|
3253
1937
|
case "com.amazonaws.cloudtrail#CloudTrailInvalidClientTokenIdException":
|
|
3254
|
-
|
|
3255
|
-
...(await deserializeAws_json1_1CloudTrailInvalidClientTokenIdExceptionResponse(parsedOutput, context)),
|
|
3256
|
-
name: errorCode,
|
|
3257
|
-
$metadata: deserializeMetadata(output),
|
|
3258
|
-
};
|
|
3259
|
-
break;
|
|
1938
|
+
throw await deserializeAws_json1_1CloudTrailInvalidClientTokenIdExceptionResponse(parsedOutput, context);
|
|
3260
1939
|
case "CloudWatchLogsDeliveryUnavailableException":
|
|
3261
1940
|
case "com.amazonaws.cloudtrail#CloudWatchLogsDeliveryUnavailableException":
|
|
3262
|
-
|
|
3263
|
-
...(await deserializeAws_json1_1CloudWatchLogsDeliveryUnavailableExceptionResponse(parsedOutput, context)),
|
|
3264
|
-
name: errorCode,
|
|
3265
|
-
$metadata: deserializeMetadata(output),
|
|
3266
|
-
};
|
|
3267
|
-
break;
|
|
1941
|
+
throw await deserializeAws_json1_1CloudWatchLogsDeliveryUnavailableExceptionResponse(parsedOutput, context);
|
|
3268
1942
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
3269
1943
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
3270
|
-
|
|
3271
|
-
...(await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context)),
|
|
3272
|
-
name: errorCode,
|
|
3273
|
-
$metadata: deserializeMetadata(output),
|
|
3274
|
-
};
|
|
3275
|
-
break;
|
|
1944
|
+
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
3276
1945
|
case "InsufficientEncryptionPolicyException":
|
|
3277
1946
|
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
3278
|
-
|
|
3279
|
-
...(await deserializeAws_json1_1InsufficientEncryptionPolicyExceptionResponse(parsedOutput, context)),
|
|
3280
|
-
name: errorCode,
|
|
3281
|
-
$metadata: deserializeMetadata(output),
|
|
3282
|
-
};
|
|
3283
|
-
break;
|
|
1947
|
+
throw await deserializeAws_json1_1InsufficientEncryptionPolicyExceptionResponse(parsedOutput, context);
|
|
3284
1948
|
case "InsufficientS3BucketPolicyException":
|
|
3285
1949
|
case "com.amazonaws.cloudtrail#InsufficientS3BucketPolicyException":
|
|
3286
|
-
|
|
3287
|
-
...(await deserializeAws_json1_1InsufficientS3BucketPolicyExceptionResponse(parsedOutput, context)),
|
|
3288
|
-
name: errorCode,
|
|
3289
|
-
$metadata: deserializeMetadata(output),
|
|
3290
|
-
};
|
|
3291
|
-
break;
|
|
1950
|
+
throw await deserializeAws_json1_1InsufficientS3BucketPolicyExceptionResponse(parsedOutput, context);
|
|
3292
1951
|
case "InsufficientSnsTopicPolicyException":
|
|
3293
1952
|
case "com.amazonaws.cloudtrail#InsufficientSnsTopicPolicyException":
|
|
3294
|
-
|
|
3295
|
-
...(await deserializeAws_json1_1InsufficientSnsTopicPolicyExceptionResponse(parsedOutput, context)),
|
|
3296
|
-
name: errorCode,
|
|
3297
|
-
$metadata: deserializeMetadata(output),
|
|
3298
|
-
};
|
|
3299
|
-
break;
|
|
1953
|
+
throw await deserializeAws_json1_1InsufficientSnsTopicPolicyExceptionResponse(parsedOutput, context);
|
|
3300
1954
|
case "InvalidCloudWatchLogsLogGroupArnException":
|
|
3301
1955
|
case "com.amazonaws.cloudtrail#InvalidCloudWatchLogsLogGroupArnException":
|
|
3302
|
-
|
|
3303
|
-
...(await deserializeAws_json1_1InvalidCloudWatchLogsLogGroupArnExceptionResponse(parsedOutput, context)),
|
|
3304
|
-
name: errorCode,
|
|
3305
|
-
$metadata: deserializeMetadata(output),
|
|
3306
|
-
};
|
|
3307
|
-
break;
|
|
1956
|
+
throw await deserializeAws_json1_1InvalidCloudWatchLogsLogGroupArnExceptionResponse(parsedOutput, context);
|
|
3308
1957
|
case "InvalidCloudWatchLogsRoleArnException":
|
|
3309
1958
|
case "com.amazonaws.cloudtrail#InvalidCloudWatchLogsRoleArnException":
|
|
3310
|
-
|
|
3311
|
-
...(await deserializeAws_json1_1InvalidCloudWatchLogsRoleArnExceptionResponse(parsedOutput, context)),
|
|
3312
|
-
name: errorCode,
|
|
3313
|
-
$metadata: deserializeMetadata(output),
|
|
3314
|
-
};
|
|
3315
|
-
break;
|
|
1959
|
+
throw await deserializeAws_json1_1InvalidCloudWatchLogsRoleArnExceptionResponse(parsedOutput, context);
|
|
3316
1960
|
case "InvalidEventSelectorsException":
|
|
3317
1961
|
case "com.amazonaws.cloudtrail#InvalidEventSelectorsException":
|
|
3318
|
-
|
|
3319
|
-
...(await deserializeAws_json1_1InvalidEventSelectorsExceptionResponse(parsedOutput, context)),
|
|
3320
|
-
name: errorCode,
|
|
3321
|
-
$metadata: deserializeMetadata(output),
|
|
3322
|
-
};
|
|
3323
|
-
break;
|
|
1962
|
+
throw await deserializeAws_json1_1InvalidEventSelectorsExceptionResponse(parsedOutput, context);
|
|
3324
1963
|
case "InvalidHomeRegionException":
|
|
3325
1964
|
case "com.amazonaws.cloudtrail#InvalidHomeRegionException":
|
|
3326
|
-
|
|
3327
|
-
...(await deserializeAws_json1_1InvalidHomeRegionExceptionResponse(parsedOutput, context)),
|
|
3328
|
-
name: errorCode,
|
|
3329
|
-
$metadata: deserializeMetadata(output),
|
|
3330
|
-
};
|
|
3331
|
-
break;
|
|
1965
|
+
throw await deserializeAws_json1_1InvalidHomeRegionExceptionResponse(parsedOutput, context);
|
|
3332
1966
|
case "InvalidKmsKeyIdException":
|
|
3333
1967
|
case "com.amazonaws.cloudtrail#InvalidKmsKeyIdException":
|
|
3334
|
-
|
|
3335
|
-
...(await deserializeAws_json1_1InvalidKmsKeyIdExceptionResponse(parsedOutput, context)),
|
|
3336
|
-
name: errorCode,
|
|
3337
|
-
$metadata: deserializeMetadata(output),
|
|
3338
|
-
};
|
|
3339
|
-
break;
|
|
1968
|
+
throw await deserializeAws_json1_1InvalidKmsKeyIdExceptionResponse(parsedOutput, context);
|
|
3340
1969
|
case "InvalidParameterCombinationException":
|
|
3341
1970
|
case "com.amazonaws.cloudtrail#InvalidParameterCombinationException":
|
|
3342
|
-
|
|
3343
|
-
...(await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)),
|
|
3344
|
-
name: errorCode,
|
|
3345
|
-
$metadata: deserializeMetadata(output),
|
|
3346
|
-
};
|
|
3347
|
-
break;
|
|
1971
|
+
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
3348
1972
|
case "InvalidS3BucketNameException":
|
|
3349
1973
|
case "com.amazonaws.cloudtrail#InvalidS3BucketNameException":
|
|
3350
|
-
|
|
3351
|
-
...(await deserializeAws_json1_1InvalidS3BucketNameExceptionResponse(parsedOutput, context)),
|
|
3352
|
-
name: errorCode,
|
|
3353
|
-
$metadata: deserializeMetadata(output),
|
|
3354
|
-
};
|
|
3355
|
-
break;
|
|
1974
|
+
throw await deserializeAws_json1_1InvalidS3BucketNameExceptionResponse(parsedOutput, context);
|
|
3356
1975
|
case "InvalidS3PrefixException":
|
|
3357
1976
|
case "com.amazonaws.cloudtrail#InvalidS3PrefixException":
|
|
3358
|
-
|
|
3359
|
-
...(await deserializeAws_json1_1InvalidS3PrefixExceptionResponse(parsedOutput, context)),
|
|
3360
|
-
name: errorCode,
|
|
3361
|
-
$metadata: deserializeMetadata(output),
|
|
3362
|
-
};
|
|
3363
|
-
break;
|
|
1977
|
+
throw await deserializeAws_json1_1InvalidS3PrefixExceptionResponse(parsedOutput, context);
|
|
3364
1978
|
case "InvalidSnsTopicNameException":
|
|
3365
1979
|
case "com.amazonaws.cloudtrail#InvalidSnsTopicNameException":
|
|
3366
|
-
|
|
3367
|
-
...(await deserializeAws_json1_1InvalidSnsTopicNameExceptionResponse(parsedOutput, context)),
|
|
3368
|
-
name: errorCode,
|
|
3369
|
-
$metadata: deserializeMetadata(output),
|
|
3370
|
-
};
|
|
3371
|
-
break;
|
|
1980
|
+
throw await deserializeAws_json1_1InvalidSnsTopicNameExceptionResponse(parsedOutput, context);
|
|
3372
1981
|
case "InvalidTrailNameException":
|
|
3373
1982
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
3374
|
-
|
|
3375
|
-
...(await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context)),
|
|
3376
|
-
name: errorCode,
|
|
3377
|
-
$metadata: deserializeMetadata(output),
|
|
3378
|
-
};
|
|
3379
|
-
break;
|
|
1983
|
+
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
3380
1984
|
case "KmsException":
|
|
3381
1985
|
case "com.amazonaws.cloudtrail#KmsException":
|
|
3382
|
-
|
|
3383
|
-
...(await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)),
|
|
3384
|
-
name: errorCode,
|
|
3385
|
-
$metadata: deserializeMetadata(output),
|
|
3386
|
-
};
|
|
3387
|
-
break;
|
|
1986
|
+
throw await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context);
|
|
3388
1987
|
case "KmsKeyDisabledException":
|
|
3389
1988
|
case "com.amazonaws.cloudtrail#KmsKeyDisabledException":
|
|
3390
|
-
|
|
3391
|
-
...(await deserializeAws_json1_1KmsKeyDisabledExceptionResponse(parsedOutput, context)),
|
|
3392
|
-
name: errorCode,
|
|
3393
|
-
$metadata: deserializeMetadata(output),
|
|
3394
|
-
};
|
|
3395
|
-
break;
|
|
1989
|
+
throw await deserializeAws_json1_1KmsKeyDisabledExceptionResponse(parsedOutput, context);
|
|
3396
1990
|
case "KmsKeyNotFoundException":
|
|
3397
1991
|
case "com.amazonaws.cloudtrail#KmsKeyNotFoundException":
|
|
3398
|
-
|
|
3399
|
-
...(await deserializeAws_json1_1KmsKeyNotFoundExceptionResponse(parsedOutput, context)),
|
|
3400
|
-
name: errorCode,
|
|
3401
|
-
$metadata: deserializeMetadata(output),
|
|
3402
|
-
};
|
|
3403
|
-
break;
|
|
1992
|
+
throw await deserializeAws_json1_1KmsKeyNotFoundExceptionResponse(parsedOutput, context);
|
|
3404
1993
|
case "NotOrganizationMasterAccountException":
|
|
3405
1994
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
3406
|
-
|
|
3407
|
-
...(await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context)),
|
|
3408
|
-
name: errorCode,
|
|
3409
|
-
$metadata: deserializeMetadata(output),
|
|
3410
|
-
};
|
|
3411
|
-
break;
|
|
1995
|
+
throw await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context);
|
|
3412
1996
|
case "OperationNotPermittedException":
|
|
3413
1997
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3414
|
-
|
|
3415
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
3416
|
-
name: errorCode,
|
|
3417
|
-
$metadata: deserializeMetadata(output),
|
|
3418
|
-
};
|
|
3419
|
-
break;
|
|
1998
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
3420
1999
|
case "OrganizationNotInAllFeaturesModeException":
|
|
3421
2000
|
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
3422
|
-
|
|
3423
|
-
...(await deserializeAws_json1_1OrganizationNotInAllFeaturesModeExceptionResponse(parsedOutput, context)),
|
|
3424
|
-
name: errorCode,
|
|
3425
|
-
$metadata: deserializeMetadata(output),
|
|
3426
|
-
};
|
|
3427
|
-
break;
|
|
2001
|
+
throw await deserializeAws_json1_1OrganizationNotInAllFeaturesModeExceptionResponse(parsedOutput, context);
|
|
3428
2002
|
case "OrganizationsNotInUseException":
|
|
3429
2003
|
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
3430
|
-
|
|
3431
|
-
...(await deserializeAws_json1_1OrganizationsNotInUseExceptionResponse(parsedOutput, context)),
|
|
3432
|
-
name: errorCode,
|
|
3433
|
-
$metadata: deserializeMetadata(output),
|
|
3434
|
-
};
|
|
3435
|
-
break;
|
|
2004
|
+
throw await deserializeAws_json1_1OrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
3436
2005
|
case "S3BucketDoesNotExistException":
|
|
3437
2006
|
case "com.amazonaws.cloudtrail#S3BucketDoesNotExistException":
|
|
3438
|
-
|
|
3439
|
-
...(await deserializeAws_json1_1S3BucketDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
3440
|
-
name: errorCode,
|
|
3441
|
-
$metadata: deserializeMetadata(output),
|
|
3442
|
-
};
|
|
3443
|
-
break;
|
|
2007
|
+
throw await deserializeAws_json1_1S3BucketDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3444
2008
|
case "TrailNotFoundException":
|
|
3445
2009
|
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
3446
|
-
|
|
3447
|
-
...(await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context)),
|
|
3448
|
-
name: errorCode,
|
|
3449
|
-
$metadata: deserializeMetadata(output),
|
|
3450
|
-
};
|
|
3451
|
-
break;
|
|
2010
|
+
throw await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context);
|
|
3452
2011
|
case "TrailNotProvidedException":
|
|
3453
2012
|
case "com.amazonaws.cloudtrail#TrailNotProvidedException":
|
|
3454
|
-
|
|
3455
|
-
...(await deserializeAws_json1_1TrailNotProvidedExceptionResponse(parsedOutput, context)),
|
|
3456
|
-
name: errorCode,
|
|
3457
|
-
$metadata: deserializeMetadata(output),
|
|
3458
|
-
};
|
|
3459
|
-
break;
|
|
2013
|
+
throw await deserializeAws_json1_1TrailNotProvidedExceptionResponse(parsedOutput, context);
|
|
3460
2014
|
case "UnsupportedOperationException":
|
|
3461
2015
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3462
|
-
|
|
3463
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
3464
|
-
name: errorCode,
|
|
3465
|
-
$metadata: deserializeMetadata(output),
|
|
3466
|
-
};
|
|
3467
|
-
break;
|
|
2016
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
3468
2017
|
default:
|
|
3469
2018
|
const parsedBody = parsedOutput.body;
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
...parsedBody,
|
|
3473
|
-
name: `${errorCode}`,
|
|
3474
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2019
|
+
response = new CloudTrailServiceException_1.CloudTrailServiceException({
|
|
2020
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3475
2021
|
$fault: "client",
|
|
3476
2022
|
$metadata: deserializeMetadata(output),
|
|
3477
|
-
};
|
|
2023
|
+
});
|
|
2024
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3478
2025
|
}
|
|
3479
|
-
const message = response.message || response.Message || errorCode;
|
|
3480
|
-
response.message = message;
|
|
3481
|
-
delete response.Message;
|
|
3482
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3483
2026
|
};
|
|
3484
2027
|
const deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse = async (parsedOutput, context) => {
|
|
3485
2028
|
const body = parsedOutput.body;
|
|
3486
2029
|
const deserialized = deserializeAws_json1_1CloudTrailAccessNotEnabledException(body, context);
|
|
3487
|
-
const
|
|
3488
|
-
name: "CloudTrailAccessNotEnabledException",
|
|
3489
|
-
$fault: "client",
|
|
2030
|
+
const exception = new models_0_1.CloudTrailAccessNotEnabledException({
|
|
3490
2031
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3491
2032
|
...deserialized,
|
|
3492
|
-
};
|
|
3493
|
-
return
|
|
2033
|
+
});
|
|
2034
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3494
2035
|
};
|
|
3495
2036
|
const deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse = async (parsedOutput, context) => {
|
|
3496
2037
|
const body = parsedOutput.body;
|
|
3497
2038
|
const deserialized = deserializeAws_json1_1CloudTrailARNInvalidException(body, context);
|
|
3498
|
-
const
|
|
3499
|
-
name: "CloudTrailARNInvalidException",
|
|
3500
|
-
$fault: "client",
|
|
2039
|
+
const exception = new models_0_1.CloudTrailARNInvalidException({
|
|
3501
2040
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3502
2041
|
...deserialized,
|
|
3503
|
-
};
|
|
3504
|
-
return
|
|
2042
|
+
});
|
|
2043
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3505
2044
|
};
|
|
3506
2045
|
const deserializeAws_json1_1CloudTrailInvalidClientTokenIdExceptionResponse = async (parsedOutput, context) => {
|
|
3507
2046
|
const body = parsedOutput.body;
|
|
3508
2047
|
const deserialized = deserializeAws_json1_1CloudTrailInvalidClientTokenIdException(body, context);
|
|
3509
|
-
const
|
|
3510
|
-
name: "CloudTrailInvalidClientTokenIdException",
|
|
3511
|
-
$fault: "client",
|
|
2048
|
+
const exception = new models_0_1.CloudTrailInvalidClientTokenIdException({
|
|
3512
2049
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3513
2050
|
...deserialized,
|
|
3514
|
-
};
|
|
3515
|
-
return
|
|
2051
|
+
});
|
|
2052
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3516
2053
|
};
|
|
3517
2054
|
const deserializeAws_json1_1CloudWatchLogsDeliveryUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
3518
2055
|
const body = parsedOutput.body;
|
|
3519
2056
|
const deserialized = deserializeAws_json1_1CloudWatchLogsDeliveryUnavailableException(body, context);
|
|
3520
|
-
const
|
|
3521
|
-
name: "CloudWatchLogsDeliveryUnavailableException",
|
|
3522
|
-
$fault: "client",
|
|
2057
|
+
const exception = new models_0_1.CloudWatchLogsDeliveryUnavailableException({
|
|
3523
2058
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3524
2059
|
...deserialized,
|
|
3525
|
-
};
|
|
3526
|
-
return
|
|
2060
|
+
});
|
|
2061
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3527
2062
|
};
|
|
3528
2063
|
const deserializeAws_json1_1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
3529
2064
|
const body = parsedOutput.body;
|
|
3530
2065
|
const deserialized = deserializeAws_json1_1ConflictException(body, context);
|
|
3531
|
-
const
|
|
3532
|
-
name: "ConflictException",
|
|
3533
|
-
$fault: "client",
|
|
2066
|
+
const exception = new models_0_1.ConflictException({
|
|
3534
2067
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3535
2068
|
...deserialized,
|
|
3536
|
-
};
|
|
3537
|
-
return
|
|
2069
|
+
});
|
|
2070
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3538
2071
|
};
|
|
3539
2072
|
const deserializeAws_json1_1EventDataStoreAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
3540
2073
|
const body = parsedOutput.body;
|
|
3541
2074
|
const deserialized = deserializeAws_json1_1EventDataStoreAlreadyExistsException(body, context);
|
|
3542
|
-
const
|
|
3543
|
-
name: "EventDataStoreAlreadyExistsException",
|
|
3544
|
-
$fault: "client",
|
|
2075
|
+
const exception = new models_0_1.EventDataStoreAlreadyExistsException({
|
|
3545
2076
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3546
2077
|
...deserialized,
|
|
3547
|
-
};
|
|
3548
|
-
return
|
|
2078
|
+
});
|
|
2079
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3549
2080
|
};
|
|
3550
2081
|
const deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse = async (parsedOutput, context) => {
|
|
3551
2082
|
const body = parsedOutput.body;
|
|
3552
2083
|
const deserialized = deserializeAws_json1_1EventDataStoreARNInvalidException(body, context);
|
|
3553
|
-
const
|
|
3554
|
-
name: "EventDataStoreARNInvalidException",
|
|
3555
|
-
$fault: "client",
|
|
2084
|
+
const exception = new models_0_1.EventDataStoreARNInvalidException({
|
|
3556
2085
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3557
2086
|
...deserialized,
|
|
3558
|
-
};
|
|
3559
|
-
return
|
|
2087
|
+
});
|
|
2088
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3560
2089
|
};
|
|
3561
2090
|
const deserializeAws_json1_1EventDataStoreMaxLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3562
2091
|
const body = parsedOutput.body;
|
|
3563
2092
|
const deserialized = deserializeAws_json1_1EventDataStoreMaxLimitExceededException(body, context);
|
|
3564
|
-
const
|
|
3565
|
-
name: "EventDataStoreMaxLimitExceededException",
|
|
3566
|
-
$fault: "client",
|
|
2093
|
+
const exception = new models_0_1.EventDataStoreMaxLimitExceededException({
|
|
3567
2094
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3568
2095
|
...deserialized,
|
|
3569
|
-
};
|
|
3570
|
-
return
|
|
2096
|
+
});
|
|
2097
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3571
2098
|
};
|
|
3572
2099
|
const deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3573
2100
|
const body = parsedOutput.body;
|
|
3574
2101
|
const deserialized = deserializeAws_json1_1EventDataStoreNotFoundException(body, context);
|
|
3575
|
-
const
|
|
3576
|
-
name: "EventDataStoreNotFoundException",
|
|
3577
|
-
$fault: "client",
|
|
2102
|
+
const exception = new models_0_1.EventDataStoreNotFoundException({
|
|
3578
2103
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3579
2104
|
...deserialized,
|
|
3580
|
-
};
|
|
3581
|
-
return
|
|
2105
|
+
});
|
|
2106
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3582
2107
|
};
|
|
3583
2108
|
const deserializeAws_json1_1EventDataStoreTerminationProtectedExceptionResponse = async (parsedOutput, context) => {
|
|
3584
2109
|
const body = parsedOutput.body;
|
|
3585
2110
|
const deserialized = deserializeAws_json1_1EventDataStoreTerminationProtectedException(body, context);
|
|
3586
|
-
const
|
|
3587
|
-
name: "EventDataStoreTerminationProtectedException",
|
|
3588
|
-
$fault: "client",
|
|
2111
|
+
const exception = new models_0_1.EventDataStoreTerminationProtectedException({
|
|
3589
2112
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3590
2113
|
...deserialized,
|
|
3591
|
-
};
|
|
3592
|
-
return
|
|
2114
|
+
});
|
|
2115
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3593
2116
|
};
|
|
3594
2117
|
const deserializeAws_json1_1InactiveEventDataStoreExceptionResponse = async (parsedOutput, context) => {
|
|
3595
2118
|
const body = parsedOutput.body;
|
|
3596
2119
|
const deserialized = deserializeAws_json1_1InactiveEventDataStoreException(body, context);
|
|
3597
|
-
const
|
|
3598
|
-
name: "InactiveEventDataStoreException",
|
|
3599
|
-
$fault: "client",
|
|
2120
|
+
const exception = new models_0_1.InactiveEventDataStoreException({
|
|
3600
2121
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3601
2122
|
...deserialized,
|
|
3602
|
-
};
|
|
3603
|
-
return
|
|
2123
|
+
});
|
|
2124
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3604
2125
|
};
|
|
3605
2126
|
const deserializeAws_json1_1InactiveQueryExceptionResponse = async (parsedOutput, context) => {
|
|
3606
2127
|
const body = parsedOutput.body;
|
|
3607
2128
|
const deserialized = deserializeAws_json1_1InactiveQueryException(body, context);
|
|
3608
|
-
const
|
|
3609
|
-
name: "InactiveQueryException",
|
|
3610
|
-
$fault: "client",
|
|
2129
|
+
const exception = new models_0_1.InactiveQueryException({
|
|
3611
2130
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3612
2131
|
...deserialized,
|
|
3613
|
-
};
|
|
3614
|
-
return
|
|
2132
|
+
});
|
|
2133
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3615
2134
|
};
|
|
3616
2135
|
const deserializeAws_json1_1InsightNotEnabledExceptionResponse = async (parsedOutput, context) => {
|
|
3617
2136
|
const body = parsedOutput.body;
|
|
3618
2137
|
const deserialized = deserializeAws_json1_1InsightNotEnabledException(body, context);
|
|
3619
|
-
const
|
|
3620
|
-
name: "InsightNotEnabledException",
|
|
3621
|
-
$fault: "client",
|
|
2138
|
+
const exception = new models_0_1.InsightNotEnabledException({
|
|
3622
2139
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3623
2140
|
...deserialized,
|
|
3624
|
-
};
|
|
3625
|
-
return
|
|
2141
|
+
});
|
|
2142
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3626
2143
|
};
|
|
3627
2144
|
const deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse = async (parsedOutput, context) => {
|
|
3628
2145
|
const body = parsedOutput.body;
|
|
3629
2146
|
const deserialized = deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionException(body, context);
|
|
3630
|
-
const
|
|
3631
|
-
name: "InsufficientDependencyServiceAccessPermissionException",
|
|
3632
|
-
$fault: "client",
|
|
2147
|
+
const exception = new models_0_1.InsufficientDependencyServiceAccessPermissionException({
|
|
3633
2148
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3634
2149
|
...deserialized,
|
|
3635
|
-
};
|
|
3636
|
-
return
|
|
2150
|
+
});
|
|
2151
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3637
2152
|
};
|
|
3638
2153
|
const deserializeAws_json1_1InsufficientEncryptionPolicyExceptionResponse = async (parsedOutput, context) => {
|
|
3639
2154
|
const body = parsedOutput.body;
|
|
3640
2155
|
const deserialized = deserializeAws_json1_1InsufficientEncryptionPolicyException(body, context);
|
|
3641
|
-
const
|
|
3642
|
-
name: "InsufficientEncryptionPolicyException",
|
|
3643
|
-
$fault: "client",
|
|
2156
|
+
const exception = new models_0_1.InsufficientEncryptionPolicyException({
|
|
3644
2157
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3645
2158
|
...deserialized,
|
|
3646
|
-
};
|
|
3647
|
-
return
|
|
2159
|
+
});
|
|
2160
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3648
2161
|
};
|
|
3649
2162
|
const deserializeAws_json1_1InsufficientS3BucketPolicyExceptionResponse = async (parsedOutput, context) => {
|
|
3650
2163
|
const body = parsedOutput.body;
|
|
3651
2164
|
const deserialized = deserializeAws_json1_1InsufficientS3BucketPolicyException(body, context);
|
|
3652
|
-
const
|
|
3653
|
-
name: "InsufficientS3BucketPolicyException",
|
|
3654
|
-
$fault: "client",
|
|
2165
|
+
const exception = new models_0_1.InsufficientS3BucketPolicyException({
|
|
3655
2166
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3656
2167
|
...deserialized,
|
|
3657
|
-
};
|
|
3658
|
-
return
|
|
2168
|
+
});
|
|
2169
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3659
2170
|
};
|
|
3660
2171
|
const deserializeAws_json1_1InsufficientSnsTopicPolicyExceptionResponse = async (parsedOutput, context) => {
|
|
3661
2172
|
const body = parsedOutput.body;
|
|
3662
2173
|
const deserialized = deserializeAws_json1_1InsufficientSnsTopicPolicyException(body, context);
|
|
3663
|
-
const
|
|
3664
|
-
name: "InsufficientSnsTopicPolicyException",
|
|
3665
|
-
$fault: "client",
|
|
2174
|
+
const exception = new models_0_1.InsufficientSnsTopicPolicyException({
|
|
3666
2175
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3667
2176
|
...deserialized,
|
|
3668
|
-
};
|
|
3669
|
-
return
|
|
2177
|
+
});
|
|
2178
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3670
2179
|
};
|
|
3671
2180
|
const deserializeAws_json1_1InvalidCloudWatchLogsLogGroupArnExceptionResponse = async (parsedOutput, context) => {
|
|
3672
2181
|
const body = parsedOutput.body;
|
|
3673
2182
|
const deserialized = deserializeAws_json1_1InvalidCloudWatchLogsLogGroupArnException(body, context);
|
|
3674
|
-
const
|
|
3675
|
-
name: "InvalidCloudWatchLogsLogGroupArnException",
|
|
3676
|
-
$fault: "client",
|
|
2183
|
+
const exception = new models_0_1.InvalidCloudWatchLogsLogGroupArnException({
|
|
3677
2184
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3678
2185
|
...deserialized,
|
|
3679
|
-
};
|
|
3680
|
-
return
|
|
2186
|
+
});
|
|
2187
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3681
2188
|
};
|
|
3682
2189
|
const deserializeAws_json1_1InvalidCloudWatchLogsRoleArnExceptionResponse = async (parsedOutput, context) => {
|
|
3683
2190
|
const body = parsedOutput.body;
|
|
3684
2191
|
const deserialized = deserializeAws_json1_1InvalidCloudWatchLogsRoleArnException(body, context);
|
|
3685
|
-
const
|
|
3686
|
-
name: "InvalidCloudWatchLogsRoleArnException",
|
|
3687
|
-
$fault: "client",
|
|
2192
|
+
const exception = new models_0_1.InvalidCloudWatchLogsRoleArnException({
|
|
3688
2193
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3689
2194
|
...deserialized,
|
|
3690
|
-
};
|
|
3691
|
-
return
|
|
2195
|
+
});
|
|
2196
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3692
2197
|
};
|
|
3693
2198
|
const deserializeAws_json1_1InvalidDateRangeExceptionResponse = async (parsedOutput, context) => {
|
|
3694
2199
|
const body = parsedOutput.body;
|
|
3695
2200
|
const deserialized = deserializeAws_json1_1InvalidDateRangeException(body, context);
|
|
3696
|
-
const
|
|
3697
|
-
name: "InvalidDateRangeException",
|
|
3698
|
-
$fault: "client",
|
|
2201
|
+
const exception = new models_0_1.InvalidDateRangeException({
|
|
3699
2202
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3700
2203
|
...deserialized,
|
|
3701
|
-
};
|
|
3702
|
-
return
|
|
2204
|
+
});
|
|
2205
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3703
2206
|
};
|
|
3704
2207
|
const deserializeAws_json1_1InvalidEventCategoryExceptionResponse = async (parsedOutput, context) => {
|
|
3705
2208
|
const body = parsedOutput.body;
|
|
3706
2209
|
const deserialized = deserializeAws_json1_1InvalidEventCategoryException(body, context);
|
|
3707
|
-
const
|
|
3708
|
-
name: "InvalidEventCategoryException",
|
|
3709
|
-
$fault: "client",
|
|
2210
|
+
const exception = new models_0_1.InvalidEventCategoryException({
|
|
3710
2211
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3711
2212
|
...deserialized,
|
|
3712
|
-
};
|
|
3713
|
-
return
|
|
2213
|
+
});
|
|
2214
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3714
2215
|
};
|
|
3715
2216
|
const deserializeAws_json1_1InvalidEventDataStoreStatusExceptionResponse = async (parsedOutput, context) => {
|
|
3716
2217
|
const body = parsedOutput.body;
|
|
3717
2218
|
const deserialized = deserializeAws_json1_1InvalidEventDataStoreStatusException(body, context);
|
|
3718
|
-
const
|
|
3719
|
-
name: "InvalidEventDataStoreStatusException",
|
|
3720
|
-
$fault: "client",
|
|
2219
|
+
const exception = new models_0_1.InvalidEventDataStoreStatusException({
|
|
3721
2220
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3722
2221
|
...deserialized,
|
|
3723
|
-
};
|
|
3724
|
-
return
|
|
2222
|
+
});
|
|
2223
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3725
2224
|
};
|
|
3726
2225
|
const deserializeAws_json1_1InvalidEventSelectorsExceptionResponse = async (parsedOutput, context) => {
|
|
3727
2226
|
const body = parsedOutput.body;
|
|
3728
2227
|
const deserialized = deserializeAws_json1_1InvalidEventSelectorsException(body, context);
|
|
3729
|
-
const
|
|
3730
|
-
name: "InvalidEventSelectorsException",
|
|
3731
|
-
$fault: "client",
|
|
2228
|
+
const exception = new models_0_1.InvalidEventSelectorsException({
|
|
3732
2229
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3733
2230
|
...deserialized,
|
|
3734
|
-
};
|
|
3735
|
-
return
|
|
2231
|
+
});
|
|
2232
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3736
2233
|
};
|
|
3737
2234
|
const deserializeAws_json1_1InvalidHomeRegionExceptionResponse = async (parsedOutput, context) => {
|
|
3738
2235
|
const body = parsedOutput.body;
|
|
3739
2236
|
const deserialized = deserializeAws_json1_1InvalidHomeRegionException(body, context);
|
|
3740
|
-
const
|
|
3741
|
-
name: "InvalidHomeRegionException",
|
|
3742
|
-
$fault: "client",
|
|
2237
|
+
const exception = new models_0_1.InvalidHomeRegionException({
|
|
3743
2238
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3744
2239
|
...deserialized,
|
|
3745
|
-
};
|
|
3746
|
-
return
|
|
2240
|
+
});
|
|
2241
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3747
2242
|
};
|
|
3748
2243
|
const deserializeAws_json1_1InvalidInsightSelectorsExceptionResponse = async (parsedOutput, context) => {
|
|
3749
2244
|
const body = parsedOutput.body;
|
|
3750
2245
|
const deserialized = deserializeAws_json1_1InvalidInsightSelectorsException(body, context);
|
|
3751
|
-
const
|
|
3752
|
-
name: "InvalidInsightSelectorsException",
|
|
3753
|
-
$fault: "client",
|
|
2246
|
+
const exception = new models_0_1.InvalidInsightSelectorsException({
|
|
3754
2247
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3755
2248
|
...deserialized,
|
|
3756
|
-
};
|
|
3757
|
-
return
|
|
2249
|
+
});
|
|
2250
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3758
2251
|
};
|
|
3759
2252
|
const deserializeAws_json1_1InvalidKmsKeyIdExceptionResponse = async (parsedOutput, context) => {
|
|
3760
2253
|
const body = parsedOutput.body;
|
|
3761
2254
|
const deserialized = deserializeAws_json1_1InvalidKmsKeyIdException(body, context);
|
|
3762
|
-
const
|
|
3763
|
-
name: "InvalidKmsKeyIdException",
|
|
3764
|
-
$fault: "client",
|
|
2255
|
+
const exception = new models_0_1.InvalidKmsKeyIdException({
|
|
3765
2256
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3766
2257
|
...deserialized,
|
|
3767
|
-
};
|
|
3768
|
-
return
|
|
2258
|
+
});
|
|
2259
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3769
2260
|
};
|
|
3770
2261
|
const deserializeAws_json1_1InvalidLookupAttributesExceptionResponse = async (parsedOutput, context) => {
|
|
3771
2262
|
const body = parsedOutput.body;
|
|
3772
2263
|
const deserialized = deserializeAws_json1_1InvalidLookupAttributesException(body, context);
|
|
3773
|
-
const
|
|
3774
|
-
name: "InvalidLookupAttributesException",
|
|
3775
|
-
$fault: "client",
|
|
2264
|
+
const exception = new models_0_1.InvalidLookupAttributesException({
|
|
3776
2265
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3777
2266
|
...deserialized,
|
|
3778
|
-
};
|
|
3779
|
-
return
|
|
2267
|
+
});
|
|
2268
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3780
2269
|
};
|
|
3781
2270
|
const deserializeAws_json1_1InvalidMaxResultsExceptionResponse = async (parsedOutput, context) => {
|
|
3782
2271
|
const body = parsedOutput.body;
|
|
3783
2272
|
const deserialized = deserializeAws_json1_1InvalidMaxResultsException(body, context);
|
|
3784
|
-
const
|
|
3785
|
-
name: "InvalidMaxResultsException",
|
|
3786
|
-
$fault: "client",
|
|
2273
|
+
const exception = new models_0_1.InvalidMaxResultsException({
|
|
3787
2274
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3788
2275
|
...deserialized,
|
|
3789
|
-
};
|
|
3790
|
-
return
|
|
2276
|
+
});
|
|
2277
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3791
2278
|
};
|
|
3792
2279
|
const deserializeAws_json1_1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
|
|
3793
2280
|
const body = parsedOutput.body;
|
|
3794
2281
|
const deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
3795
|
-
const
|
|
3796
|
-
name: "InvalidNextTokenException",
|
|
3797
|
-
$fault: "client",
|
|
2282
|
+
const exception = new models_0_1.InvalidNextTokenException({
|
|
3798
2283
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3799
2284
|
...deserialized,
|
|
3800
|
-
};
|
|
3801
|
-
return
|
|
2285
|
+
});
|
|
2286
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3802
2287
|
};
|
|
3803
2288
|
const deserializeAws_json1_1InvalidParameterCombinationExceptionResponse = async (parsedOutput, context) => {
|
|
3804
2289
|
const body = parsedOutput.body;
|
|
3805
2290
|
const deserialized = deserializeAws_json1_1InvalidParameterCombinationException(body, context);
|
|
3806
|
-
const
|
|
3807
|
-
name: "InvalidParameterCombinationException",
|
|
3808
|
-
$fault: "client",
|
|
2291
|
+
const exception = new models_0_1.InvalidParameterCombinationException({
|
|
3809
2292
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3810
2293
|
...deserialized,
|
|
3811
|
-
};
|
|
3812
|
-
return
|
|
2294
|
+
});
|
|
2295
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3813
2296
|
};
|
|
3814
2297
|
const deserializeAws_json1_1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
|
|
3815
2298
|
const body = parsedOutput.body;
|
|
3816
2299
|
const deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
3817
|
-
const
|
|
3818
|
-
name: "InvalidParameterException",
|
|
3819
|
-
$fault: "client",
|
|
2300
|
+
const exception = new models_0_1.InvalidParameterException({
|
|
3820
2301
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3821
2302
|
...deserialized,
|
|
3822
|
-
};
|
|
3823
|
-
return
|
|
2303
|
+
});
|
|
2304
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3824
2305
|
};
|
|
3825
2306
|
const deserializeAws_json1_1InvalidQueryStatementExceptionResponse = async (parsedOutput, context) => {
|
|
3826
2307
|
const body = parsedOutput.body;
|
|
3827
2308
|
const deserialized = deserializeAws_json1_1InvalidQueryStatementException(body, context);
|
|
3828
|
-
const
|
|
3829
|
-
name: "InvalidQueryStatementException",
|
|
3830
|
-
$fault: "client",
|
|
2309
|
+
const exception = new models_0_1.InvalidQueryStatementException({
|
|
3831
2310
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3832
2311
|
...deserialized,
|
|
3833
|
-
};
|
|
3834
|
-
return
|
|
2312
|
+
});
|
|
2313
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3835
2314
|
};
|
|
3836
2315
|
const deserializeAws_json1_1InvalidQueryStatusExceptionResponse = async (parsedOutput, context) => {
|
|
3837
2316
|
const body = parsedOutput.body;
|
|
3838
2317
|
const deserialized = deserializeAws_json1_1InvalidQueryStatusException(body, context);
|
|
3839
|
-
const
|
|
3840
|
-
name: "InvalidQueryStatusException",
|
|
3841
|
-
$fault: "client",
|
|
2318
|
+
const exception = new models_0_1.InvalidQueryStatusException({
|
|
3842
2319
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3843
2320
|
...deserialized,
|
|
3844
|
-
};
|
|
3845
|
-
return
|
|
2321
|
+
});
|
|
2322
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3846
2323
|
};
|
|
3847
2324
|
const deserializeAws_json1_1InvalidS3BucketNameExceptionResponse = async (parsedOutput, context) => {
|
|
3848
2325
|
const body = parsedOutput.body;
|
|
3849
2326
|
const deserialized = deserializeAws_json1_1InvalidS3BucketNameException(body, context);
|
|
3850
|
-
const
|
|
3851
|
-
name: "InvalidS3BucketNameException",
|
|
3852
|
-
$fault: "client",
|
|
2327
|
+
const exception = new models_0_1.InvalidS3BucketNameException({
|
|
3853
2328
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3854
2329
|
...deserialized,
|
|
3855
|
-
};
|
|
3856
|
-
return
|
|
2330
|
+
});
|
|
2331
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3857
2332
|
};
|
|
3858
2333
|
const deserializeAws_json1_1InvalidS3PrefixExceptionResponse = async (parsedOutput, context) => {
|
|
3859
2334
|
const body = parsedOutput.body;
|
|
3860
2335
|
const deserialized = deserializeAws_json1_1InvalidS3PrefixException(body, context);
|
|
3861
|
-
const
|
|
3862
|
-
name: "InvalidS3PrefixException",
|
|
3863
|
-
$fault: "client",
|
|
2336
|
+
const exception = new models_0_1.InvalidS3PrefixException({
|
|
3864
2337
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3865
2338
|
...deserialized,
|
|
3866
|
-
};
|
|
3867
|
-
return
|
|
2339
|
+
});
|
|
2340
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3868
2341
|
};
|
|
3869
2342
|
const deserializeAws_json1_1InvalidSnsTopicNameExceptionResponse = async (parsedOutput, context) => {
|
|
3870
2343
|
const body = parsedOutput.body;
|
|
3871
2344
|
const deserialized = deserializeAws_json1_1InvalidSnsTopicNameException(body, context);
|
|
3872
|
-
const
|
|
3873
|
-
name: "InvalidSnsTopicNameException",
|
|
3874
|
-
$fault: "client",
|
|
2345
|
+
const exception = new models_0_1.InvalidSnsTopicNameException({
|
|
3875
2346
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3876
2347
|
...deserialized,
|
|
3877
|
-
};
|
|
3878
|
-
return
|
|
2348
|
+
});
|
|
2349
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3879
2350
|
};
|
|
3880
2351
|
const deserializeAws_json1_1InvalidTagParameterExceptionResponse = async (parsedOutput, context) => {
|
|
3881
2352
|
const body = parsedOutput.body;
|
|
3882
2353
|
const deserialized = deserializeAws_json1_1InvalidTagParameterException(body, context);
|
|
3883
|
-
const
|
|
3884
|
-
name: "InvalidTagParameterException",
|
|
3885
|
-
$fault: "client",
|
|
2354
|
+
const exception = new models_0_1.InvalidTagParameterException({
|
|
3886
2355
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3887
2356
|
...deserialized,
|
|
3888
|
-
};
|
|
3889
|
-
return
|
|
2357
|
+
});
|
|
2358
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3890
2359
|
};
|
|
3891
2360
|
const deserializeAws_json1_1InvalidTimeRangeExceptionResponse = async (parsedOutput, context) => {
|
|
3892
2361
|
const body = parsedOutput.body;
|
|
3893
2362
|
const deserialized = deserializeAws_json1_1InvalidTimeRangeException(body, context);
|
|
3894
|
-
const
|
|
3895
|
-
name: "InvalidTimeRangeException",
|
|
3896
|
-
$fault: "client",
|
|
2363
|
+
const exception = new models_0_1.InvalidTimeRangeException({
|
|
3897
2364
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3898
2365
|
...deserialized,
|
|
3899
|
-
};
|
|
3900
|
-
return
|
|
2366
|
+
});
|
|
2367
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3901
2368
|
};
|
|
3902
2369
|
const deserializeAws_json1_1InvalidTokenExceptionResponse = async (parsedOutput, context) => {
|
|
3903
2370
|
const body = parsedOutput.body;
|
|
3904
2371
|
const deserialized = deserializeAws_json1_1InvalidTokenException(body, context);
|
|
3905
|
-
const
|
|
3906
|
-
name: "InvalidTokenException",
|
|
3907
|
-
$fault: "client",
|
|
2372
|
+
const exception = new models_0_1.InvalidTokenException({
|
|
3908
2373
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3909
2374
|
...deserialized,
|
|
3910
|
-
};
|
|
3911
|
-
return
|
|
2375
|
+
});
|
|
2376
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3912
2377
|
};
|
|
3913
2378
|
const deserializeAws_json1_1InvalidTrailNameExceptionResponse = async (parsedOutput, context) => {
|
|
3914
2379
|
const body = parsedOutput.body;
|
|
3915
2380
|
const deserialized = deserializeAws_json1_1InvalidTrailNameException(body, context);
|
|
3916
|
-
const
|
|
3917
|
-
name: "InvalidTrailNameException",
|
|
3918
|
-
$fault: "client",
|
|
2381
|
+
const exception = new models_0_1.InvalidTrailNameException({
|
|
3919
2382
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3920
2383
|
...deserialized,
|
|
3921
|
-
};
|
|
3922
|
-
return
|
|
2384
|
+
});
|
|
2385
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3923
2386
|
};
|
|
3924
2387
|
const deserializeAws_json1_1KmsExceptionResponse = async (parsedOutput, context) => {
|
|
3925
2388
|
const body = parsedOutput.body;
|
|
3926
2389
|
const deserialized = deserializeAws_json1_1KmsException(body, context);
|
|
3927
|
-
const
|
|
3928
|
-
name: "KmsException",
|
|
3929
|
-
$fault: "client",
|
|
2390
|
+
const exception = new models_0_1.KmsException({
|
|
3930
2391
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3931
2392
|
...deserialized,
|
|
3932
|
-
};
|
|
3933
|
-
return
|
|
2393
|
+
});
|
|
2394
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3934
2395
|
};
|
|
3935
2396
|
const deserializeAws_json1_1KmsKeyDisabledExceptionResponse = async (parsedOutput, context) => {
|
|
3936
2397
|
const body = parsedOutput.body;
|
|
3937
2398
|
const deserialized = deserializeAws_json1_1KmsKeyDisabledException(body, context);
|
|
3938
|
-
const
|
|
3939
|
-
name: "KmsKeyDisabledException",
|
|
3940
|
-
$fault: "client",
|
|
2399
|
+
const exception = new models_0_1.KmsKeyDisabledException({
|
|
3941
2400
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3942
2401
|
...deserialized,
|
|
3943
|
-
};
|
|
3944
|
-
return
|
|
2402
|
+
});
|
|
2403
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3945
2404
|
};
|
|
3946
2405
|
const deserializeAws_json1_1KmsKeyNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3947
2406
|
const body = parsedOutput.body;
|
|
3948
2407
|
const deserialized = deserializeAws_json1_1KmsKeyNotFoundException(body, context);
|
|
3949
|
-
const
|
|
3950
|
-
name: "KmsKeyNotFoundException",
|
|
3951
|
-
$fault: "client",
|
|
2408
|
+
const exception = new models_0_1.KmsKeyNotFoundException({
|
|
3952
2409
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3953
2410
|
...deserialized,
|
|
3954
|
-
};
|
|
3955
|
-
return
|
|
2411
|
+
});
|
|
2412
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3956
2413
|
};
|
|
3957
2414
|
const deserializeAws_json1_1MaxConcurrentQueriesExceptionResponse = async (parsedOutput, context) => {
|
|
3958
2415
|
const body = parsedOutput.body;
|
|
3959
2416
|
const deserialized = deserializeAws_json1_1MaxConcurrentQueriesException(body, context);
|
|
3960
|
-
const
|
|
3961
|
-
name: "MaxConcurrentQueriesException",
|
|
3962
|
-
$fault: "client",
|
|
2417
|
+
const exception = new models_0_1.MaxConcurrentQueriesException({
|
|
3963
2418
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3964
2419
|
...deserialized,
|
|
3965
|
-
};
|
|
3966
|
-
return
|
|
2420
|
+
});
|
|
2421
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3967
2422
|
};
|
|
3968
2423
|
const deserializeAws_json1_1MaximumNumberOfTrailsExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3969
2424
|
const body = parsedOutput.body;
|
|
3970
2425
|
const deserialized = deserializeAws_json1_1MaximumNumberOfTrailsExceededException(body, context);
|
|
3971
|
-
const
|
|
3972
|
-
name: "MaximumNumberOfTrailsExceededException",
|
|
3973
|
-
$fault: "client",
|
|
2426
|
+
const exception = new models_0_1.MaximumNumberOfTrailsExceededException({
|
|
3974
2427
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3975
2428
|
...deserialized,
|
|
3976
|
-
};
|
|
3977
|
-
return
|
|
2429
|
+
});
|
|
2430
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3978
2431
|
};
|
|
3979
2432
|
const deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse = async (parsedOutput, context) => {
|
|
3980
2433
|
const body = parsedOutput.body;
|
|
3981
2434
|
const deserialized = deserializeAws_json1_1NotOrganizationMasterAccountException(body, context);
|
|
3982
|
-
const
|
|
3983
|
-
name: "NotOrganizationMasterAccountException",
|
|
3984
|
-
$fault: "client",
|
|
2435
|
+
const exception = new models_0_1.NotOrganizationMasterAccountException({
|
|
3985
2436
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3986
2437
|
...deserialized,
|
|
3987
|
-
};
|
|
3988
|
-
return
|
|
2438
|
+
});
|
|
2439
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3989
2440
|
};
|
|
3990
2441
|
const deserializeAws_json1_1OperationNotPermittedExceptionResponse = async (parsedOutput, context) => {
|
|
3991
2442
|
const body = parsedOutput.body;
|
|
3992
2443
|
const deserialized = deserializeAws_json1_1OperationNotPermittedException(body, context);
|
|
3993
|
-
const
|
|
3994
|
-
name: "OperationNotPermittedException",
|
|
3995
|
-
$fault: "client",
|
|
2444
|
+
const exception = new models_0_1.OperationNotPermittedException({
|
|
3996
2445
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3997
2446
|
...deserialized,
|
|
3998
|
-
};
|
|
3999
|
-
return
|
|
2447
|
+
});
|
|
2448
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4000
2449
|
};
|
|
4001
2450
|
const deserializeAws_json1_1OrganizationNotInAllFeaturesModeExceptionResponse = async (parsedOutput, context) => {
|
|
4002
2451
|
const body = parsedOutput.body;
|
|
4003
2452
|
const deserialized = deserializeAws_json1_1OrganizationNotInAllFeaturesModeException(body, context);
|
|
4004
|
-
const
|
|
4005
|
-
name: "OrganizationNotInAllFeaturesModeException",
|
|
4006
|
-
$fault: "client",
|
|
2453
|
+
const exception = new models_0_1.OrganizationNotInAllFeaturesModeException({
|
|
4007
2454
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4008
2455
|
...deserialized,
|
|
4009
|
-
};
|
|
4010
|
-
return
|
|
2456
|
+
});
|
|
2457
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4011
2458
|
};
|
|
4012
2459
|
const deserializeAws_json1_1OrganizationsNotInUseExceptionResponse = async (parsedOutput, context) => {
|
|
4013
2460
|
const body = parsedOutput.body;
|
|
4014
2461
|
const deserialized = deserializeAws_json1_1OrganizationsNotInUseException(body, context);
|
|
4015
|
-
const
|
|
4016
|
-
name: "OrganizationsNotInUseException",
|
|
4017
|
-
$fault: "client",
|
|
2462
|
+
const exception = new models_0_1.OrganizationsNotInUseException({
|
|
4018
2463
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4019
2464
|
...deserialized,
|
|
4020
|
-
};
|
|
4021
|
-
return
|
|
2465
|
+
});
|
|
2466
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4022
2467
|
};
|
|
4023
2468
|
const deserializeAws_json1_1QueryIdNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4024
2469
|
const body = parsedOutput.body;
|
|
4025
2470
|
const deserialized = deserializeAws_json1_1QueryIdNotFoundException(body, context);
|
|
4026
|
-
const
|
|
4027
|
-
name: "QueryIdNotFoundException",
|
|
4028
|
-
$fault: "client",
|
|
2471
|
+
const exception = new models_0_1.QueryIdNotFoundException({
|
|
4029
2472
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4030
2473
|
...deserialized,
|
|
4031
|
-
};
|
|
4032
|
-
return
|
|
2474
|
+
});
|
|
2475
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4033
2476
|
};
|
|
4034
2477
|
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4035
2478
|
const body = parsedOutput.body;
|
|
4036
2479
|
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
4037
|
-
const
|
|
4038
|
-
name: "ResourceNotFoundException",
|
|
4039
|
-
$fault: "client",
|
|
2480
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
4040
2481
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4041
2482
|
...deserialized,
|
|
4042
|
-
};
|
|
4043
|
-
return
|
|
2483
|
+
});
|
|
2484
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4044
2485
|
};
|
|
4045
2486
|
const deserializeAws_json1_1ResourceTypeNotSupportedExceptionResponse = async (parsedOutput, context) => {
|
|
4046
2487
|
const body = parsedOutput.body;
|
|
4047
2488
|
const deserialized = deserializeAws_json1_1ResourceTypeNotSupportedException(body, context);
|
|
4048
|
-
const
|
|
4049
|
-
name: "ResourceTypeNotSupportedException",
|
|
4050
|
-
$fault: "client",
|
|
2489
|
+
const exception = new models_0_1.ResourceTypeNotSupportedException({
|
|
4051
2490
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4052
2491
|
...deserialized,
|
|
4053
|
-
};
|
|
4054
|
-
return
|
|
2492
|
+
});
|
|
2493
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4055
2494
|
};
|
|
4056
2495
|
const deserializeAws_json1_1S3BucketDoesNotExistExceptionResponse = async (parsedOutput, context) => {
|
|
4057
2496
|
const body = parsedOutput.body;
|
|
4058
2497
|
const deserialized = deserializeAws_json1_1S3BucketDoesNotExistException(body, context);
|
|
4059
|
-
const
|
|
4060
|
-
name: "S3BucketDoesNotExistException",
|
|
4061
|
-
$fault: "client",
|
|
2498
|
+
const exception = new models_0_1.S3BucketDoesNotExistException({
|
|
4062
2499
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4063
2500
|
...deserialized,
|
|
4064
|
-
};
|
|
4065
|
-
return
|
|
2501
|
+
});
|
|
2502
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4066
2503
|
};
|
|
4067
2504
|
const deserializeAws_json1_1TagsLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
4068
2505
|
const body = parsedOutput.body;
|
|
4069
2506
|
const deserialized = deserializeAws_json1_1TagsLimitExceededException(body, context);
|
|
4070
|
-
const
|
|
4071
|
-
name: "TagsLimitExceededException",
|
|
4072
|
-
$fault: "client",
|
|
2507
|
+
const exception = new models_0_1.TagsLimitExceededException({
|
|
4073
2508
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4074
2509
|
...deserialized,
|
|
4075
|
-
};
|
|
4076
|
-
return
|
|
2510
|
+
});
|
|
2511
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4077
2512
|
};
|
|
4078
2513
|
const deserializeAws_json1_1TrailAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
4079
2514
|
const body = parsedOutput.body;
|
|
4080
2515
|
const deserialized = deserializeAws_json1_1TrailAlreadyExistsException(body, context);
|
|
4081
|
-
const
|
|
4082
|
-
name: "TrailAlreadyExistsException",
|
|
4083
|
-
$fault: "client",
|
|
2516
|
+
const exception = new models_0_1.TrailAlreadyExistsException({
|
|
4084
2517
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4085
2518
|
...deserialized,
|
|
4086
|
-
};
|
|
4087
|
-
return
|
|
2519
|
+
});
|
|
2520
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4088
2521
|
};
|
|
4089
2522
|
const deserializeAws_json1_1TrailNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4090
2523
|
const body = parsedOutput.body;
|
|
4091
2524
|
const deserialized = deserializeAws_json1_1TrailNotFoundException(body, context);
|
|
4092
|
-
const
|
|
4093
|
-
name: "TrailNotFoundException",
|
|
4094
|
-
$fault: "client",
|
|
2525
|
+
const exception = new models_0_1.TrailNotFoundException({
|
|
4095
2526
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4096
2527
|
...deserialized,
|
|
4097
|
-
};
|
|
4098
|
-
return
|
|
2528
|
+
});
|
|
2529
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4099
2530
|
};
|
|
4100
2531
|
const deserializeAws_json1_1TrailNotProvidedExceptionResponse = async (parsedOutput, context) => {
|
|
4101
2532
|
const body = parsedOutput.body;
|
|
4102
2533
|
const deserialized = deserializeAws_json1_1TrailNotProvidedException(body, context);
|
|
4103
|
-
const
|
|
4104
|
-
name: "TrailNotProvidedException",
|
|
4105
|
-
$fault: "client",
|
|
2534
|
+
const exception = new models_0_1.TrailNotProvidedException({
|
|
4106
2535
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4107
2536
|
...deserialized,
|
|
4108
|
-
};
|
|
4109
|
-
return
|
|
2537
|
+
});
|
|
2538
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4110
2539
|
};
|
|
4111
2540
|
const deserializeAws_json1_1UnsupportedOperationExceptionResponse = async (parsedOutput, context) => {
|
|
4112
2541
|
const body = parsedOutput.body;
|
|
4113
2542
|
const deserialized = deserializeAws_json1_1UnsupportedOperationException(body, context);
|
|
4114
|
-
const
|
|
4115
|
-
name: "UnsupportedOperationException",
|
|
4116
|
-
$fault: "client",
|
|
2543
|
+
const exception = new models_0_1.UnsupportedOperationException({
|
|
4117
2544
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4118
2545
|
...deserialized,
|
|
4119
|
-
};
|
|
4120
|
-
return
|
|
2546
|
+
});
|
|
2547
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4121
2548
|
};
|
|
4122
2549
|
const serializeAws_json1_1AddTagsRequest = (input, context) => {
|
|
4123
2550
|
return {
|
|
@@ -4589,7 +3016,7 @@ const deserializeAws_json1_1AdvancedEventSelector = (output, context) => {
|
|
|
4589
3016
|
};
|
|
4590
3017
|
};
|
|
4591
3018
|
const deserializeAws_json1_1AdvancedEventSelectors = (output, context) => {
|
|
4592
|
-
|
|
3019
|
+
const retVal = (output || [])
|
|
4593
3020
|
.filter((e) => e != null)
|
|
4594
3021
|
.map((entry) => {
|
|
4595
3022
|
if (entry === null) {
|
|
@@ -4597,6 +3024,7 @@ const deserializeAws_json1_1AdvancedEventSelectors = (output, context) => {
|
|
|
4597
3024
|
}
|
|
4598
3025
|
return deserializeAws_json1_1AdvancedEventSelector(entry, context);
|
|
4599
3026
|
});
|
|
3027
|
+
return retVal;
|
|
4600
3028
|
};
|
|
4601
3029
|
const deserializeAws_json1_1AdvancedFieldSelector = (output, context) => {
|
|
4602
3030
|
return {
|
|
@@ -4622,7 +3050,7 @@ const deserializeAws_json1_1AdvancedFieldSelector = (output, context) => {
|
|
|
4622
3050
|
};
|
|
4623
3051
|
};
|
|
4624
3052
|
const deserializeAws_json1_1AdvancedFieldSelectors = (output, context) => {
|
|
4625
|
-
|
|
3053
|
+
const retVal = (output || [])
|
|
4626
3054
|
.filter((e) => e != null)
|
|
4627
3055
|
.map((entry) => {
|
|
4628
3056
|
if (entry === null) {
|
|
@@ -4630,6 +3058,7 @@ const deserializeAws_json1_1AdvancedFieldSelectors = (output, context) => {
|
|
|
4630
3058
|
}
|
|
4631
3059
|
return deserializeAws_json1_1AdvancedFieldSelector(entry, context);
|
|
4632
3060
|
});
|
|
3061
|
+
return retVal;
|
|
4633
3062
|
};
|
|
4634
3063
|
const deserializeAws_json1_1CancelQueryResponse = (output, context) => {
|
|
4635
3064
|
return {
|
|
@@ -4711,7 +3140,7 @@ const deserializeAws_json1_1DataResource = (output, context) => {
|
|
|
4711
3140
|
};
|
|
4712
3141
|
};
|
|
4713
3142
|
const deserializeAws_json1_1DataResources = (output, context) => {
|
|
4714
|
-
|
|
3143
|
+
const retVal = (output || [])
|
|
4715
3144
|
.filter((e) => e != null)
|
|
4716
3145
|
.map((entry) => {
|
|
4717
3146
|
if (entry === null) {
|
|
@@ -4719,9 +3148,10 @@ const deserializeAws_json1_1DataResources = (output, context) => {
|
|
|
4719
3148
|
}
|
|
4720
3149
|
return deserializeAws_json1_1DataResource(entry, context);
|
|
4721
3150
|
});
|
|
3151
|
+
return retVal;
|
|
4722
3152
|
};
|
|
4723
3153
|
const deserializeAws_json1_1DataResourceValues = (output, context) => {
|
|
4724
|
-
|
|
3154
|
+
const retVal = (output || [])
|
|
4725
3155
|
.filter((e) => e != null)
|
|
4726
3156
|
.map((entry) => {
|
|
4727
3157
|
if (entry === null) {
|
|
@@ -4729,6 +3159,7 @@ const deserializeAws_json1_1DataResourceValues = (output, context) => {
|
|
|
4729
3159
|
}
|
|
4730
3160
|
return smithy_client_1.expectString(entry);
|
|
4731
3161
|
});
|
|
3162
|
+
return retVal;
|
|
4732
3163
|
};
|
|
4733
3164
|
const deserializeAws_json1_1DeleteEventDataStoreResponse = (output, context) => {
|
|
4734
3165
|
return {};
|
|
@@ -4812,7 +3243,7 @@ const deserializeAws_json1_1EventDataStoreNotFoundException = (output, context)
|
|
|
4812
3243
|
};
|
|
4813
3244
|
};
|
|
4814
3245
|
const deserializeAws_json1_1EventDataStores = (output, context) => {
|
|
4815
|
-
|
|
3246
|
+
const retVal = (output || [])
|
|
4816
3247
|
.filter((e) => e != null)
|
|
4817
3248
|
.map((entry) => {
|
|
4818
3249
|
if (entry === null) {
|
|
@@ -4820,6 +3251,7 @@ const deserializeAws_json1_1EventDataStores = (output, context) => {
|
|
|
4820
3251
|
}
|
|
4821
3252
|
return deserializeAws_json1_1EventDataStore(entry, context);
|
|
4822
3253
|
});
|
|
3254
|
+
return retVal;
|
|
4823
3255
|
};
|
|
4824
3256
|
const deserializeAws_json1_1EventDataStoreTerminationProtectedException = (output, context) => {
|
|
4825
3257
|
return {
|
|
@@ -4839,7 +3271,7 @@ const deserializeAws_json1_1EventSelector = (output, context) => {
|
|
|
4839
3271
|
};
|
|
4840
3272
|
};
|
|
4841
3273
|
const deserializeAws_json1_1EventSelectors = (output, context) => {
|
|
4842
|
-
|
|
3274
|
+
const retVal = (output || [])
|
|
4843
3275
|
.filter((e) => e != null)
|
|
4844
3276
|
.map((entry) => {
|
|
4845
3277
|
if (entry === null) {
|
|
@@ -4847,9 +3279,10 @@ const deserializeAws_json1_1EventSelectors = (output, context) => {
|
|
|
4847
3279
|
}
|
|
4848
3280
|
return deserializeAws_json1_1EventSelector(entry, context);
|
|
4849
3281
|
});
|
|
3282
|
+
return retVal;
|
|
4850
3283
|
};
|
|
4851
3284
|
const deserializeAws_json1_1EventsList = (output, context) => {
|
|
4852
|
-
|
|
3285
|
+
const retVal = (output || [])
|
|
4853
3286
|
.filter((e) => e != null)
|
|
4854
3287
|
.map((entry) => {
|
|
4855
3288
|
if (entry === null) {
|
|
@@ -4857,9 +3290,10 @@ const deserializeAws_json1_1EventsList = (output, context) => {
|
|
|
4857
3290
|
}
|
|
4858
3291
|
return deserializeAws_json1_1Event(entry, context);
|
|
4859
3292
|
});
|
|
3293
|
+
return retVal;
|
|
4860
3294
|
};
|
|
4861
3295
|
const deserializeAws_json1_1ExcludeManagementEventSources = (output, context) => {
|
|
4862
|
-
|
|
3296
|
+
const retVal = (output || [])
|
|
4863
3297
|
.filter((e) => e != null)
|
|
4864
3298
|
.map((entry) => {
|
|
4865
3299
|
if (entry === null) {
|
|
@@ -4867,6 +3301,7 @@ const deserializeAws_json1_1ExcludeManagementEventSources = (output, context) =>
|
|
|
4867
3301
|
}
|
|
4868
3302
|
return smithy_client_1.expectString(entry);
|
|
4869
3303
|
});
|
|
3304
|
+
return retVal;
|
|
4870
3305
|
};
|
|
4871
3306
|
const deserializeAws_json1_1GetEventDataStoreResponse = (output, context) => {
|
|
4872
3307
|
return {
|
|
@@ -4981,7 +3416,7 @@ const deserializeAws_json1_1InsightSelector = (output, context) => {
|
|
|
4981
3416
|
};
|
|
4982
3417
|
};
|
|
4983
3418
|
const deserializeAws_json1_1InsightSelectors = (output, context) => {
|
|
4984
|
-
|
|
3419
|
+
const retVal = (output || [])
|
|
4985
3420
|
.filter((e) => e != null)
|
|
4986
3421
|
.map((entry) => {
|
|
4987
3422
|
if (entry === null) {
|
|
@@ -4989,6 +3424,7 @@ const deserializeAws_json1_1InsightSelectors = (output, context) => {
|
|
|
4989
3424
|
}
|
|
4990
3425
|
return deserializeAws_json1_1InsightSelector(entry, context);
|
|
4991
3426
|
});
|
|
3427
|
+
return retVal;
|
|
4992
3428
|
};
|
|
4993
3429
|
const deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionException = (output, context) => {
|
|
4994
3430
|
return {
|
|
@@ -5209,7 +3645,7 @@ const deserializeAws_json1_1OperationNotPermittedException = (output, context) =
|
|
|
5209
3645
|
};
|
|
5210
3646
|
};
|
|
5211
3647
|
const deserializeAws_json1_1Operator = (output, context) => {
|
|
5212
|
-
|
|
3648
|
+
const retVal = (output || [])
|
|
5213
3649
|
.filter((e) => e != null)
|
|
5214
3650
|
.map((entry) => {
|
|
5215
3651
|
if (entry === null) {
|
|
@@ -5217,6 +3653,7 @@ const deserializeAws_json1_1Operator = (output, context) => {
|
|
|
5217
3653
|
}
|
|
5218
3654
|
return smithy_client_1.expectString(entry);
|
|
5219
3655
|
});
|
|
3656
|
+
return retVal;
|
|
5220
3657
|
};
|
|
5221
3658
|
const deserializeAws_json1_1OrganizationNotInAllFeaturesModeException = (output, context) => {
|
|
5222
3659
|
return {
|
|
@@ -5241,7 +3678,7 @@ const deserializeAws_json1_1PublicKey = (output, context) => {
|
|
|
5241
3678
|
};
|
|
5242
3679
|
};
|
|
5243
3680
|
const deserializeAws_json1_1PublicKeyList = (output, context) => {
|
|
5244
|
-
|
|
3681
|
+
const retVal = (output || [])
|
|
5245
3682
|
.filter((e) => e != null)
|
|
5246
3683
|
.map((entry) => {
|
|
5247
3684
|
if (entry === null) {
|
|
@@ -5249,6 +3686,7 @@ const deserializeAws_json1_1PublicKeyList = (output, context) => {
|
|
|
5249
3686
|
}
|
|
5250
3687
|
return deserializeAws_json1_1PublicKey(entry, context);
|
|
5251
3688
|
});
|
|
3689
|
+
return retVal;
|
|
5252
3690
|
};
|
|
5253
3691
|
const deserializeAws_json1_1PutEventSelectorsResponse = (output, context) => {
|
|
5254
3692
|
return {
|
|
@@ -5270,7 +3708,7 @@ const deserializeAws_json1_1PutInsightSelectorsResponse = (output, context) => {
|
|
|
5270
3708
|
};
|
|
5271
3709
|
};
|
|
5272
3710
|
const deserializeAws_json1_1Queries = (output, context) => {
|
|
5273
|
-
|
|
3711
|
+
const retVal = (output || [])
|
|
5274
3712
|
.filter((e) => e != null)
|
|
5275
3713
|
.map((entry) => {
|
|
5276
3714
|
if (entry === null) {
|
|
@@ -5278,6 +3716,7 @@ const deserializeAws_json1_1Queries = (output, context) => {
|
|
|
5278
3716
|
}
|
|
5279
3717
|
return deserializeAws_json1_1Query(entry, context);
|
|
5280
3718
|
});
|
|
3719
|
+
return retVal;
|
|
5281
3720
|
};
|
|
5282
3721
|
const deserializeAws_json1_1Query = (output, context) => {
|
|
5283
3722
|
return {
|
|
@@ -5305,7 +3744,7 @@ const deserializeAws_json1_1QueryResultColumn = (output, context) => {
|
|
|
5305
3744
|
}, {});
|
|
5306
3745
|
};
|
|
5307
3746
|
const deserializeAws_json1_1QueryResultRow = (output, context) => {
|
|
5308
|
-
|
|
3747
|
+
const retVal = (output || [])
|
|
5309
3748
|
.filter((e) => e != null)
|
|
5310
3749
|
.map((entry) => {
|
|
5311
3750
|
if (entry === null) {
|
|
@@ -5313,9 +3752,10 @@ const deserializeAws_json1_1QueryResultRow = (output, context) => {
|
|
|
5313
3752
|
}
|
|
5314
3753
|
return deserializeAws_json1_1QueryResultColumn(entry, context);
|
|
5315
3754
|
});
|
|
3755
|
+
return retVal;
|
|
5316
3756
|
};
|
|
5317
3757
|
const deserializeAws_json1_1QueryResultRows = (output, context) => {
|
|
5318
|
-
|
|
3758
|
+
const retVal = (output || [])
|
|
5319
3759
|
.filter((e) => e != null)
|
|
5320
3760
|
.map((entry) => {
|
|
5321
3761
|
if (entry === null) {
|
|
@@ -5323,6 +3763,7 @@ const deserializeAws_json1_1QueryResultRows = (output, context) => {
|
|
|
5323
3763
|
}
|
|
5324
3764
|
return deserializeAws_json1_1QueryResultRow(entry, context);
|
|
5325
3765
|
});
|
|
3766
|
+
return retVal;
|
|
5326
3767
|
};
|
|
5327
3768
|
const deserializeAws_json1_1QueryStatistics = (output, context) => {
|
|
5328
3769
|
return {
|
|
@@ -5350,7 +3791,7 @@ const deserializeAws_json1_1Resource = (output, context) => {
|
|
|
5350
3791
|
};
|
|
5351
3792
|
};
|
|
5352
3793
|
const deserializeAws_json1_1ResourceList = (output, context) => {
|
|
5353
|
-
|
|
3794
|
+
const retVal = (output || [])
|
|
5354
3795
|
.filter((e) => e != null)
|
|
5355
3796
|
.map((entry) => {
|
|
5356
3797
|
if (entry === null) {
|
|
@@ -5358,6 +3799,7 @@ const deserializeAws_json1_1ResourceList = (output, context) => {
|
|
|
5358
3799
|
}
|
|
5359
3800
|
return deserializeAws_json1_1Resource(entry, context);
|
|
5360
3801
|
});
|
|
3802
|
+
return retVal;
|
|
5361
3803
|
};
|
|
5362
3804
|
const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
5363
3805
|
return {
|
|
@@ -5373,7 +3815,7 @@ const deserializeAws_json1_1ResourceTag = (output, context) => {
|
|
|
5373
3815
|
};
|
|
5374
3816
|
};
|
|
5375
3817
|
const deserializeAws_json1_1ResourceTagList = (output, context) => {
|
|
5376
|
-
|
|
3818
|
+
const retVal = (output || [])
|
|
5377
3819
|
.filter((e) => e != null)
|
|
5378
3820
|
.map((entry) => {
|
|
5379
3821
|
if (entry === null) {
|
|
@@ -5381,6 +3823,7 @@ const deserializeAws_json1_1ResourceTagList = (output, context) => {
|
|
|
5381
3823
|
}
|
|
5382
3824
|
return deserializeAws_json1_1ResourceTag(entry, context);
|
|
5383
3825
|
});
|
|
3826
|
+
return retVal;
|
|
5384
3827
|
};
|
|
5385
3828
|
const deserializeAws_json1_1ResourceTypeNotSupportedException = (output, context) => {
|
|
5386
3829
|
return {
|
|
@@ -5435,7 +3878,7 @@ const deserializeAws_json1_1TagsLimitExceededException = (output, context) => {
|
|
|
5435
3878
|
};
|
|
5436
3879
|
};
|
|
5437
3880
|
const deserializeAws_json1_1TagsList = (output, context) => {
|
|
5438
|
-
|
|
3881
|
+
const retVal = (output || [])
|
|
5439
3882
|
.filter((e) => e != null)
|
|
5440
3883
|
.map((entry) => {
|
|
5441
3884
|
if (entry === null) {
|
|
@@ -5443,6 +3886,7 @@ const deserializeAws_json1_1TagsList = (output, context) => {
|
|
|
5443
3886
|
}
|
|
5444
3887
|
return deserializeAws_json1_1Tag(entry, context);
|
|
5445
3888
|
});
|
|
3889
|
+
return retVal;
|
|
5446
3890
|
};
|
|
5447
3891
|
const deserializeAws_json1_1Trail = (output, context) => {
|
|
5448
3892
|
return {
|
|
@@ -5477,7 +3921,7 @@ const deserializeAws_json1_1TrailInfo = (output, context) => {
|
|
|
5477
3921
|
};
|
|
5478
3922
|
};
|
|
5479
3923
|
const deserializeAws_json1_1TrailList = (output, context) => {
|
|
5480
|
-
|
|
3924
|
+
const retVal = (output || [])
|
|
5481
3925
|
.filter((e) => e != null)
|
|
5482
3926
|
.map((entry) => {
|
|
5483
3927
|
if (entry === null) {
|
|
@@ -5485,6 +3929,7 @@ const deserializeAws_json1_1TrailList = (output, context) => {
|
|
|
5485
3929
|
}
|
|
5486
3930
|
return deserializeAws_json1_1Trail(entry, context);
|
|
5487
3931
|
});
|
|
3932
|
+
return retVal;
|
|
5488
3933
|
};
|
|
5489
3934
|
const deserializeAws_json1_1TrailNotFoundException = (output, context) => {
|
|
5490
3935
|
return {
|
|
@@ -5497,7 +3942,7 @@ const deserializeAws_json1_1TrailNotProvidedException = (output, context) => {
|
|
|
5497
3942
|
};
|
|
5498
3943
|
};
|
|
5499
3944
|
const deserializeAws_json1_1Trails = (output, context) => {
|
|
5500
|
-
|
|
3945
|
+
const retVal = (output || [])
|
|
5501
3946
|
.filter((e) => e != null)
|
|
5502
3947
|
.map((entry) => {
|
|
5503
3948
|
if (entry === null) {
|
|
@@ -5505,6 +3950,7 @@ const deserializeAws_json1_1Trails = (output, context) => {
|
|
|
5505
3950
|
}
|
|
5506
3951
|
return deserializeAws_json1_1TrailInfo(entry, context);
|
|
5507
3952
|
});
|
|
3953
|
+
return retVal;
|
|
5508
3954
|
};
|
|
5509
3955
|
const deserializeAws_json1_1UnsupportedOperationException = (output, context) => {
|
|
5510
3956
|
return {
|