@aws-sdk/client-cloudtrail 3.504.0 → 3.507.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/dist-cjs/index.js +362 -2369
- package/dist-es/protocols/Aws_json1_1.js +358 -2365
- package/package.json +3 -3
|
@@ -298,7 +298,7 @@ export const se_UpdateTrailCommand = async (input, context) => {
|
|
|
298
298
|
};
|
|
299
299
|
export const de_AddTagsCommand = async (output, context) => {
|
|
300
300
|
if (output.statusCode >= 300) {
|
|
301
|
-
return
|
|
301
|
+
return de_CommandError(output, context);
|
|
302
302
|
}
|
|
303
303
|
const data = await parseBody(output.body, context);
|
|
304
304
|
let contents = {};
|
|
@@ -309,73 +309,9 @@ export const de_AddTagsCommand = async (output, context) => {
|
|
|
309
309
|
};
|
|
310
310
|
return response;
|
|
311
311
|
};
|
|
312
|
-
const de_AddTagsCommandError = async (output, context) => {
|
|
313
|
-
const parsedOutput = {
|
|
314
|
-
...output,
|
|
315
|
-
body: await parseErrorBody(output.body, context),
|
|
316
|
-
};
|
|
317
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
318
|
-
switch (errorCode) {
|
|
319
|
-
case "ChannelARNInvalidException":
|
|
320
|
-
case "com.amazonaws.cloudtrail#ChannelARNInvalidException":
|
|
321
|
-
throw await de_ChannelARNInvalidExceptionRes(parsedOutput, context);
|
|
322
|
-
case "ChannelNotFoundException":
|
|
323
|
-
case "com.amazonaws.cloudtrail#ChannelNotFoundException":
|
|
324
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
325
|
-
case "CloudTrailARNInvalidException":
|
|
326
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
327
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
328
|
-
case "ConflictException":
|
|
329
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
330
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
331
|
-
case "EventDataStoreARNInvalidException":
|
|
332
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
333
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
334
|
-
case "EventDataStoreNotFoundException":
|
|
335
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
336
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
337
|
-
case "InactiveEventDataStoreException":
|
|
338
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
339
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
340
|
-
case "InvalidTagParameterException":
|
|
341
|
-
case "com.amazonaws.cloudtrail#InvalidTagParameterException":
|
|
342
|
-
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
343
|
-
case "InvalidTrailNameException":
|
|
344
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
345
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
346
|
-
case "NoManagementAccountSLRExistsException":
|
|
347
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
348
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
349
|
-
case "NotOrganizationMasterAccountException":
|
|
350
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
351
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
352
|
-
case "OperationNotPermittedException":
|
|
353
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
354
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
355
|
-
case "ResourceNotFoundException":
|
|
356
|
-
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
357
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
358
|
-
case "ResourceTypeNotSupportedException":
|
|
359
|
-
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
360
|
-
throw await de_ResourceTypeNotSupportedExceptionRes(parsedOutput, context);
|
|
361
|
-
case "TagsLimitExceededException":
|
|
362
|
-
case "com.amazonaws.cloudtrail#TagsLimitExceededException":
|
|
363
|
-
throw await de_TagsLimitExceededExceptionRes(parsedOutput, context);
|
|
364
|
-
case "UnsupportedOperationException":
|
|
365
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
366
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
367
|
-
default:
|
|
368
|
-
const parsedBody = parsedOutput.body;
|
|
369
|
-
return throwDefaultError({
|
|
370
|
-
output,
|
|
371
|
-
parsedBody,
|
|
372
|
-
errorCode,
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
};
|
|
376
312
|
export const de_CancelQueryCommand = async (output, context) => {
|
|
377
313
|
if (output.statusCode >= 300) {
|
|
378
|
-
return
|
|
314
|
+
return de_CommandError(output, context);
|
|
379
315
|
}
|
|
380
316
|
const data = await parseBody(output.body, context);
|
|
381
317
|
let contents = {};
|
|
@@ -386,55 +322,9 @@ export const de_CancelQueryCommand = async (output, context) => {
|
|
|
386
322
|
};
|
|
387
323
|
return response;
|
|
388
324
|
};
|
|
389
|
-
const de_CancelQueryCommandError = async (output, context) => {
|
|
390
|
-
const parsedOutput = {
|
|
391
|
-
...output,
|
|
392
|
-
body: await parseErrorBody(output.body, context),
|
|
393
|
-
};
|
|
394
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
395
|
-
switch (errorCode) {
|
|
396
|
-
case "ConflictException":
|
|
397
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
398
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
399
|
-
case "EventDataStoreARNInvalidException":
|
|
400
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
401
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
402
|
-
case "EventDataStoreNotFoundException":
|
|
403
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
404
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
405
|
-
case "InactiveEventDataStoreException":
|
|
406
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
407
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
408
|
-
case "InactiveQueryException":
|
|
409
|
-
case "com.amazonaws.cloudtrail#InactiveQueryException":
|
|
410
|
-
throw await de_InactiveQueryExceptionRes(parsedOutput, context);
|
|
411
|
-
case "InvalidParameterException":
|
|
412
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
413
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
414
|
-
case "NoManagementAccountSLRExistsException":
|
|
415
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
416
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
417
|
-
case "OperationNotPermittedException":
|
|
418
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
419
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
420
|
-
case "QueryIdNotFoundException":
|
|
421
|
-
case "com.amazonaws.cloudtrail#QueryIdNotFoundException":
|
|
422
|
-
throw await de_QueryIdNotFoundExceptionRes(parsedOutput, context);
|
|
423
|
-
case "UnsupportedOperationException":
|
|
424
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
425
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
426
|
-
default:
|
|
427
|
-
const parsedBody = parsedOutput.body;
|
|
428
|
-
return throwDefaultError({
|
|
429
|
-
output,
|
|
430
|
-
parsedBody,
|
|
431
|
-
errorCode,
|
|
432
|
-
});
|
|
433
|
-
}
|
|
434
|
-
};
|
|
435
325
|
export const de_CreateChannelCommand = async (output, context) => {
|
|
436
326
|
if (output.statusCode >= 300) {
|
|
437
|
-
return
|
|
327
|
+
return de_CommandError(output, context);
|
|
438
328
|
}
|
|
439
329
|
const data = await parseBody(output.body, context);
|
|
440
330
|
let contents = {};
|
|
@@ -445,61 +335,9 @@ export const de_CreateChannelCommand = async (output, context) => {
|
|
|
445
335
|
};
|
|
446
336
|
return response;
|
|
447
337
|
};
|
|
448
|
-
const de_CreateChannelCommandError = async (output, context) => {
|
|
449
|
-
const parsedOutput = {
|
|
450
|
-
...output,
|
|
451
|
-
body: await parseErrorBody(output.body, context),
|
|
452
|
-
};
|
|
453
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
454
|
-
switch (errorCode) {
|
|
455
|
-
case "ChannelAlreadyExistsException":
|
|
456
|
-
case "com.amazonaws.cloudtrail#ChannelAlreadyExistsException":
|
|
457
|
-
throw await de_ChannelAlreadyExistsExceptionRes(parsedOutput, context);
|
|
458
|
-
case "ChannelMaxLimitExceededException":
|
|
459
|
-
case "com.amazonaws.cloudtrail#ChannelMaxLimitExceededException":
|
|
460
|
-
throw await de_ChannelMaxLimitExceededExceptionRes(parsedOutput, context);
|
|
461
|
-
case "EventDataStoreARNInvalidException":
|
|
462
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
463
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
464
|
-
case "EventDataStoreNotFoundException":
|
|
465
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
466
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
467
|
-
case "InactiveEventDataStoreException":
|
|
468
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
469
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
470
|
-
case "InvalidEventDataStoreCategoryException":
|
|
471
|
-
case "com.amazonaws.cloudtrail#InvalidEventDataStoreCategoryException":
|
|
472
|
-
throw await de_InvalidEventDataStoreCategoryExceptionRes(parsedOutput, context);
|
|
473
|
-
case "InvalidParameterException":
|
|
474
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
475
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
476
|
-
case "InvalidSourceException":
|
|
477
|
-
case "com.amazonaws.cloudtrail#InvalidSourceException":
|
|
478
|
-
throw await de_InvalidSourceExceptionRes(parsedOutput, context);
|
|
479
|
-
case "InvalidTagParameterException":
|
|
480
|
-
case "com.amazonaws.cloudtrail#InvalidTagParameterException":
|
|
481
|
-
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
482
|
-
case "OperationNotPermittedException":
|
|
483
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
484
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
485
|
-
case "TagsLimitExceededException":
|
|
486
|
-
case "com.amazonaws.cloudtrail#TagsLimitExceededException":
|
|
487
|
-
throw await de_TagsLimitExceededExceptionRes(parsedOutput, context);
|
|
488
|
-
case "UnsupportedOperationException":
|
|
489
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
490
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
491
|
-
default:
|
|
492
|
-
const parsedBody = parsedOutput.body;
|
|
493
|
-
return throwDefaultError({
|
|
494
|
-
output,
|
|
495
|
-
parsedBody,
|
|
496
|
-
errorCode,
|
|
497
|
-
});
|
|
498
|
-
}
|
|
499
|
-
};
|
|
500
338
|
export const de_CreateEventDataStoreCommand = async (output, context) => {
|
|
501
339
|
if (output.statusCode >= 300) {
|
|
502
|
-
return
|
|
340
|
+
return de_CommandError(output, context);
|
|
503
341
|
}
|
|
504
342
|
const data = await parseBody(output.body, context);
|
|
505
343
|
let contents = {};
|
|
@@ -510,652 +348,9 @@ export const de_CreateEventDataStoreCommand = async (output, context) => {
|
|
|
510
348
|
};
|
|
511
349
|
return response;
|
|
512
350
|
};
|
|
513
|
-
const
|
|
514
|
-
const parsedOutput = {
|
|
515
|
-
...output,
|
|
516
|
-
body: await parseErrorBody(output.body, context),
|
|
517
|
-
};
|
|
518
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
519
|
-
switch (errorCode) {
|
|
520
|
-
case "CloudTrailAccessNotEnabledException":
|
|
521
|
-
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
522
|
-
throw await de_CloudTrailAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
523
|
-
case "ConflictException":
|
|
524
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
525
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
526
|
-
case "EventDataStoreAlreadyExistsException":
|
|
527
|
-
case "com.amazonaws.cloudtrail#EventDataStoreAlreadyExistsException":
|
|
528
|
-
throw await de_EventDataStoreAlreadyExistsExceptionRes(parsedOutput, context);
|
|
529
|
-
case "EventDataStoreMaxLimitExceededException":
|
|
530
|
-
case "com.amazonaws.cloudtrail#EventDataStoreMaxLimitExceededException":
|
|
531
|
-
throw await de_EventDataStoreMaxLimitExceededExceptionRes(parsedOutput, context);
|
|
532
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
533
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
534
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
535
|
-
case "InsufficientEncryptionPolicyException":
|
|
536
|
-
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
537
|
-
throw await de_InsufficientEncryptionPolicyExceptionRes(parsedOutput, context);
|
|
538
|
-
case "InvalidEventSelectorsException":
|
|
539
|
-
case "com.amazonaws.cloudtrail#InvalidEventSelectorsException":
|
|
540
|
-
throw await de_InvalidEventSelectorsExceptionRes(parsedOutput, context);
|
|
541
|
-
case "InvalidKmsKeyIdException":
|
|
542
|
-
case "com.amazonaws.cloudtrail#InvalidKmsKeyIdException":
|
|
543
|
-
throw await de_InvalidKmsKeyIdExceptionRes(parsedOutput, context);
|
|
544
|
-
case "InvalidParameterException":
|
|
545
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
546
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
547
|
-
case "InvalidTagParameterException":
|
|
548
|
-
case "com.amazonaws.cloudtrail#InvalidTagParameterException":
|
|
549
|
-
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
550
|
-
case "KmsException":
|
|
551
|
-
case "com.amazonaws.cloudtrail#KmsException":
|
|
552
|
-
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
553
|
-
case "KmsKeyNotFoundException":
|
|
554
|
-
case "com.amazonaws.cloudtrail#KmsKeyNotFoundException":
|
|
555
|
-
throw await de_KmsKeyNotFoundExceptionRes(parsedOutput, context);
|
|
556
|
-
case "NoManagementAccountSLRExistsException":
|
|
557
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
558
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
559
|
-
case "NotOrganizationMasterAccountException":
|
|
560
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
561
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
562
|
-
case "OperationNotPermittedException":
|
|
563
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
564
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
565
|
-
case "OrganizationNotInAllFeaturesModeException":
|
|
566
|
-
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
567
|
-
throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
|
|
568
|
-
case "OrganizationsNotInUseException":
|
|
569
|
-
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
570
|
-
throw await de_OrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
571
|
-
case "UnsupportedOperationException":
|
|
572
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
573
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
574
|
-
default:
|
|
575
|
-
const parsedBody = parsedOutput.body;
|
|
576
|
-
return throwDefaultError({
|
|
577
|
-
output,
|
|
578
|
-
parsedBody,
|
|
579
|
-
errorCode,
|
|
580
|
-
});
|
|
581
|
-
}
|
|
582
|
-
};
|
|
583
|
-
export const de_CreateTrailCommand = async (output, context) => {
|
|
584
|
-
if (output.statusCode >= 300) {
|
|
585
|
-
return de_CreateTrailCommandError(output, context);
|
|
586
|
-
}
|
|
587
|
-
const data = await parseBody(output.body, context);
|
|
588
|
-
let contents = {};
|
|
589
|
-
contents = _json(data);
|
|
590
|
-
const response = {
|
|
591
|
-
$metadata: deserializeMetadata(output),
|
|
592
|
-
...contents,
|
|
593
|
-
};
|
|
594
|
-
return response;
|
|
595
|
-
};
|
|
596
|
-
const de_CreateTrailCommandError = async (output, context) => {
|
|
597
|
-
const parsedOutput = {
|
|
598
|
-
...output,
|
|
599
|
-
body: await parseErrorBody(output.body, context),
|
|
600
|
-
};
|
|
601
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
602
|
-
switch (errorCode) {
|
|
603
|
-
case "CloudTrailAccessNotEnabledException":
|
|
604
|
-
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
605
|
-
throw await de_CloudTrailAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
606
|
-
case "CloudTrailInvalidClientTokenIdException":
|
|
607
|
-
case "com.amazonaws.cloudtrail#CloudTrailInvalidClientTokenIdException":
|
|
608
|
-
throw await de_CloudTrailInvalidClientTokenIdExceptionRes(parsedOutput, context);
|
|
609
|
-
case "CloudWatchLogsDeliveryUnavailableException":
|
|
610
|
-
case "com.amazonaws.cloudtrail#CloudWatchLogsDeliveryUnavailableException":
|
|
611
|
-
throw await de_CloudWatchLogsDeliveryUnavailableExceptionRes(parsedOutput, context);
|
|
612
|
-
case "ConflictException":
|
|
613
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
614
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
615
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
616
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
617
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
618
|
-
case "InsufficientEncryptionPolicyException":
|
|
619
|
-
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
620
|
-
throw await de_InsufficientEncryptionPolicyExceptionRes(parsedOutput, context);
|
|
621
|
-
case "InsufficientS3BucketPolicyException":
|
|
622
|
-
case "com.amazonaws.cloudtrail#InsufficientS3BucketPolicyException":
|
|
623
|
-
throw await de_InsufficientS3BucketPolicyExceptionRes(parsedOutput, context);
|
|
624
|
-
case "InsufficientSnsTopicPolicyException":
|
|
625
|
-
case "com.amazonaws.cloudtrail#InsufficientSnsTopicPolicyException":
|
|
626
|
-
throw await de_InsufficientSnsTopicPolicyExceptionRes(parsedOutput, context);
|
|
627
|
-
case "InvalidCloudWatchLogsLogGroupArnException":
|
|
628
|
-
case "com.amazonaws.cloudtrail#InvalidCloudWatchLogsLogGroupArnException":
|
|
629
|
-
throw await de_InvalidCloudWatchLogsLogGroupArnExceptionRes(parsedOutput, context);
|
|
630
|
-
case "InvalidCloudWatchLogsRoleArnException":
|
|
631
|
-
case "com.amazonaws.cloudtrail#InvalidCloudWatchLogsRoleArnException":
|
|
632
|
-
throw await de_InvalidCloudWatchLogsRoleArnExceptionRes(parsedOutput, context);
|
|
633
|
-
case "InvalidKmsKeyIdException":
|
|
634
|
-
case "com.amazonaws.cloudtrail#InvalidKmsKeyIdException":
|
|
635
|
-
throw await de_InvalidKmsKeyIdExceptionRes(parsedOutput, context);
|
|
636
|
-
case "InvalidParameterCombinationException":
|
|
637
|
-
case "com.amazonaws.cloudtrail#InvalidParameterCombinationException":
|
|
638
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
639
|
-
case "InvalidS3BucketNameException":
|
|
640
|
-
case "com.amazonaws.cloudtrail#InvalidS3BucketNameException":
|
|
641
|
-
throw await de_InvalidS3BucketNameExceptionRes(parsedOutput, context);
|
|
642
|
-
case "InvalidS3PrefixException":
|
|
643
|
-
case "com.amazonaws.cloudtrail#InvalidS3PrefixException":
|
|
644
|
-
throw await de_InvalidS3PrefixExceptionRes(parsedOutput, context);
|
|
645
|
-
case "InvalidSnsTopicNameException":
|
|
646
|
-
case "com.amazonaws.cloudtrail#InvalidSnsTopicNameException":
|
|
647
|
-
throw await de_InvalidSnsTopicNameExceptionRes(parsedOutput, context);
|
|
648
|
-
case "InvalidTagParameterException":
|
|
649
|
-
case "com.amazonaws.cloudtrail#InvalidTagParameterException":
|
|
650
|
-
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
651
|
-
case "InvalidTrailNameException":
|
|
652
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
653
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
654
|
-
case "KmsException":
|
|
655
|
-
case "com.amazonaws.cloudtrail#KmsException":
|
|
656
|
-
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
657
|
-
case "KmsKeyDisabledException":
|
|
658
|
-
case "com.amazonaws.cloudtrail#KmsKeyDisabledException":
|
|
659
|
-
throw await de_KmsKeyDisabledExceptionRes(parsedOutput, context);
|
|
660
|
-
case "KmsKeyNotFoundException":
|
|
661
|
-
case "com.amazonaws.cloudtrail#KmsKeyNotFoundException":
|
|
662
|
-
throw await de_KmsKeyNotFoundExceptionRes(parsedOutput, context);
|
|
663
|
-
case "MaximumNumberOfTrailsExceededException":
|
|
664
|
-
case "com.amazonaws.cloudtrail#MaximumNumberOfTrailsExceededException":
|
|
665
|
-
throw await de_MaximumNumberOfTrailsExceededExceptionRes(parsedOutput, context);
|
|
666
|
-
case "NoManagementAccountSLRExistsException":
|
|
667
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
668
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
669
|
-
case "NotOrganizationMasterAccountException":
|
|
670
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
671
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
672
|
-
case "OperationNotPermittedException":
|
|
673
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
674
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
675
|
-
case "OrganizationNotInAllFeaturesModeException":
|
|
676
|
-
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
677
|
-
throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
|
|
678
|
-
case "OrganizationsNotInUseException":
|
|
679
|
-
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
680
|
-
throw await de_OrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
681
|
-
case "S3BucketDoesNotExistException":
|
|
682
|
-
case "com.amazonaws.cloudtrail#S3BucketDoesNotExistException":
|
|
683
|
-
throw await de_S3BucketDoesNotExistExceptionRes(parsedOutput, context);
|
|
684
|
-
case "TagsLimitExceededException":
|
|
685
|
-
case "com.amazonaws.cloudtrail#TagsLimitExceededException":
|
|
686
|
-
throw await de_TagsLimitExceededExceptionRes(parsedOutput, context);
|
|
687
|
-
case "ThrottlingException":
|
|
688
|
-
case "com.amazonaws.cloudtrail#ThrottlingException":
|
|
689
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
690
|
-
case "TrailAlreadyExistsException":
|
|
691
|
-
case "com.amazonaws.cloudtrail#TrailAlreadyExistsException":
|
|
692
|
-
throw await de_TrailAlreadyExistsExceptionRes(parsedOutput, context);
|
|
693
|
-
case "TrailNotProvidedException":
|
|
694
|
-
case "com.amazonaws.cloudtrail#TrailNotProvidedException":
|
|
695
|
-
throw await de_TrailNotProvidedExceptionRes(parsedOutput, context);
|
|
696
|
-
case "UnsupportedOperationException":
|
|
697
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
698
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
699
|
-
default:
|
|
700
|
-
const parsedBody = parsedOutput.body;
|
|
701
|
-
return throwDefaultError({
|
|
702
|
-
output,
|
|
703
|
-
parsedBody,
|
|
704
|
-
errorCode,
|
|
705
|
-
});
|
|
706
|
-
}
|
|
707
|
-
};
|
|
708
|
-
export const de_DeleteChannelCommand = async (output, context) => {
|
|
709
|
-
if (output.statusCode >= 300) {
|
|
710
|
-
return de_DeleteChannelCommandError(output, context);
|
|
711
|
-
}
|
|
712
|
-
const data = await parseBody(output.body, context);
|
|
713
|
-
let contents = {};
|
|
714
|
-
contents = _json(data);
|
|
715
|
-
const response = {
|
|
716
|
-
$metadata: deserializeMetadata(output),
|
|
717
|
-
...contents,
|
|
718
|
-
};
|
|
719
|
-
return response;
|
|
720
|
-
};
|
|
721
|
-
const de_DeleteChannelCommandError = async (output, context) => {
|
|
722
|
-
const parsedOutput = {
|
|
723
|
-
...output,
|
|
724
|
-
body: await parseErrorBody(output.body, context),
|
|
725
|
-
};
|
|
726
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
727
|
-
switch (errorCode) {
|
|
728
|
-
case "ChannelARNInvalidException":
|
|
729
|
-
case "com.amazonaws.cloudtrail#ChannelARNInvalidException":
|
|
730
|
-
throw await de_ChannelARNInvalidExceptionRes(parsedOutput, context);
|
|
731
|
-
case "ChannelNotFoundException":
|
|
732
|
-
case "com.amazonaws.cloudtrail#ChannelNotFoundException":
|
|
733
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
734
|
-
case "OperationNotPermittedException":
|
|
735
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
736
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
737
|
-
case "UnsupportedOperationException":
|
|
738
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
739
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
740
|
-
default:
|
|
741
|
-
const parsedBody = parsedOutput.body;
|
|
742
|
-
return throwDefaultError({
|
|
743
|
-
output,
|
|
744
|
-
parsedBody,
|
|
745
|
-
errorCode,
|
|
746
|
-
});
|
|
747
|
-
}
|
|
748
|
-
};
|
|
749
|
-
export const de_DeleteEventDataStoreCommand = async (output, context) => {
|
|
750
|
-
if (output.statusCode >= 300) {
|
|
751
|
-
return de_DeleteEventDataStoreCommandError(output, context);
|
|
752
|
-
}
|
|
753
|
-
const data = await parseBody(output.body, context);
|
|
754
|
-
let contents = {};
|
|
755
|
-
contents = _json(data);
|
|
756
|
-
const response = {
|
|
757
|
-
$metadata: deserializeMetadata(output),
|
|
758
|
-
...contents,
|
|
759
|
-
};
|
|
760
|
-
return response;
|
|
761
|
-
};
|
|
762
|
-
const de_DeleteEventDataStoreCommandError = async (output, context) => {
|
|
763
|
-
const parsedOutput = {
|
|
764
|
-
...output,
|
|
765
|
-
body: await parseErrorBody(output.body, context),
|
|
766
|
-
};
|
|
767
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
768
|
-
switch (errorCode) {
|
|
769
|
-
case "ChannelExistsForEDSException":
|
|
770
|
-
case "com.amazonaws.cloudtrail#ChannelExistsForEDSException":
|
|
771
|
-
throw await de_ChannelExistsForEDSExceptionRes(parsedOutput, context);
|
|
772
|
-
case "ConflictException":
|
|
773
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
774
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
775
|
-
case "EventDataStoreARNInvalidException":
|
|
776
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
777
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
778
|
-
case "EventDataStoreFederationEnabledException":
|
|
779
|
-
case "com.amazonaws.cloudtrail#EventDataStoreFederationEnabledException":
|
|
780
|
-
throw await de_EventDataStoreFederationEnabledExceptionRes(parsedOutput, context);
|
|
781
|
-
case "EventDataStoreHasOngoingImportException":
|
|
782
|
-
case "com.amazonaws.cloudtrail#EventDataStoreHasOngoingImportException":
|
|
783
|
-
throw await de_EventDataStoreHasOngoingImportExceptionRes(parsedOutput, context);
|
|
784
|
-
case "EventDataStoreNotFoundException":
|
|
785
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
786
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
787
|
-
case "EventDataStoreTerminationProtectedException":
|
|
788
|
-
case "com.amazonaws.cloudtrail#EventDataStoreTerminationProtectedException":
|
|
789
|
-
throw await de_EventDataStoreTerminationProtectedExceptionRes(parsedOutput, context);
|
|
790
|
-
case "InactiveEventDataStoreException":
|
|
791
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
792
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
793
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
794
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
795
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
796
|
-
case "InvalidParameterException":
|
|
797
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
798
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
799
|
-
case "NoManagementAccountSLRExistsException":
|
|
800
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
801
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
802
|
-
case "NotOrganizationMasterAccountException":
|
|
803
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
804
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
805
|
-
case "OperationNotPermittedException":
|
|
806
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
807
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
808
|
-
case "UnsupportedOperationException":
|
|
809
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
810
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
811
|
-
default:
|
|
812
|
-
const parsedBody = parsedOutput.body;
|
|
813
|
-
return throwDefaultError({
|
|
814
|
-
output,
|
|
815
|
-
parsedBody,
|
|
816
|
-
errorCode,
|
|
817
|
-
});
|
|
818
|
-
}
|
|
819
|
-
};
|
|
820
|
-
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
821
|
-
if (output.statusCode >= 300) {
|
|
822
|
-
return de_DeleteResourcePolicyCommandError(output, context);
|
|
823
|
-
}
|
|
824
|
-
const data = await parseBody(output.body, context);
|
|
825
|
-
let contents = {};
|
|
826
|
-
contents = _json(data);
|
|
827
|
-
const response = {
|
|
828
|
-
$metadata: deserializeMetadata(output),
|
|
829
|
-
...contents,
|
|
830
|
-
};
|
|
831
|
-
return response;
|
|
832
|
-
};
|
|
833
|
-
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
834
|
-
const parsedOutput = {
|
|
835
|
-
...output,
|
|
836
|
-
body: await parseErrorBody(output.body, context),
|
|
837
|
-
};
|
|
838
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
839
|
-
switch (errorCode) {
|
|
840
|
-
case "OperationNotPermittedException":
|
|
841
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
842
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
843
|
-
case "ResourceARNNotValidException":
|
|
844
|
-
case "com.amazonaws.cloudtrail#ResourceARNNotValidException":
|
|
845
|
-
throw await de_ResourceARNNotValidExceptionRes(parsedOutput, context);
|
|
846
|
-
case "ResourceNotFoundException":
|
|
847
|
-
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
848
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
849
|
-
case "ResourcePolicyNotFoundException":
|
|
850
|
-
case "com.amazonaws.cloudtrail#ResourcePolicyNotFoundException":
|
|
851
|
-
throw await de_ResourcePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
852
|
-
case "ResourceTypeNotSupportedException":
|
|
853
|
-
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
854
|
-
throw await de_ResourceTypeNotSupportedExceptionRes(parsedOutput, context);
|
|
855
|
-
case "UnsupportedOperationException":
|
|
856
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
857
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
858
|
-
default:
|
|
859
|
-
const parsedBody = parsedOutput.body;
|
|
860
|
-
return throwDefaultError({
|
|
861
|
-
output,
|
|
862
|
-
parsedBody,
|
|
863
|
-
errorCode,
|
|
864
|
-
});
|
|
865
|
-
}
|
|
866
|
-
};
|
|
867
|
-
export const de_DeleteTrailCommand = async (output, context) => {
|
|
868
|
-
if (output.statusCode >= 300) {
|
|
869
|
-
return de_DeleteTrailCommandError(output, context);
|
|
870
|
-
}
|
|
871
|
-
const data = await parseBody(output.body, context);
|
|
872
|
-
let contents = {};
|
|
873
|
-
contents = _json(data);
|
|
874
|
-
const response = {
|
|
875
|
-
$metadata: deserializeMetadata(output),
|
|
876
|
-
...contents,
|
|
877
|
-
};
|
|
878
|
-
return response;
|
|
879
|
-
};
|
|
880
|
-
const de_DeleteTrailCommandError = async (output, context) => {
|
|
881
|
-
const parsedOutput = {
|
|
882
|
-
...output,
|
|
883
|
-
body: await parseErrorBody(output.body, context),
|
|
884
|
-
};
|
|
885
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
886
|
-
switch (errorCode) {
|
|
887
|
-
case "CloudTrailARNInvalidException":
|
|
888
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
889
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
890
|
-
case "ConflictException":
|
|
891
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
892
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
893
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
894
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
895
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
896
|
-
case "InvalidHomeRegionException":
|
|
897
|
-
case "com.amazonaws.cloudtrail#InvalidHomeRegionException":
|
|
898
|
-
throw await de_InvalidHomeRegionExceptionRes(parsedOutput, context);
|
|
899
|
-
case "InvalidTrailNameException":
|
|
900
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
901
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
902
|
-
case "NoManagementAccountSLRExistsException":
|
|
903
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
904
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
905
|
-
case "NotOrganizationMasterAccountException":
|
|
906
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
907
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
908
|
-
case "OperationNotPermittedException":
|
|
909
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
910
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
911
|
-
case "ThrottlingException":
|
|
912
|
-
case "com.amazonaws.cloudtrail#ThrottlingException":
|
|
913
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
914
|
-
case "TrailNotFoundException":
|
|
915
|
-
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
916
|
-
throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
|
|
917
|
-
case "UnsupportedOperationException":
|
|
918
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
919
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
920
|
-
default:
|
|
921
|
-
const parsedBody = parsedOutput.body;
|
|
922
|
-
return throwDefaultError({
|
|
923
|
-
output,
|
|
924
|
-
parsedBody,
|
|
925
|
-
errorCode,
|
|
926
|
-
});
|
|
927
|
-
}
|
|
928
|
-
};
|
|
929
|
-
export const de_DeregisterOrganizationDelegatedAdminCommand = async (output, context) => {
|
|
930
|
-
if (output.statusCode >= 300) {
|
|
931
|
-
return de_DeregisterOrganizationDelegatedAdminCommandError(output, context);
|
|
932
|
-
}
|
|
933
|
-
const data = await parseBody(output.body, context);
|
|
934
|
-
let contents = {};
|
|
935
|
-
contents = _json(data);
|
|
936
|
-
const response = {
|
|
937
|
-
$metadata: deserializeMetadata(output),
|
|
938
|
-
...contents,
|
|
939
|
-
};
|
|
940
|
-
return response;
|
|
941
|
-
};
|
|
942
|
-
const de_DeregisterOrganizationDelegatedAdminCommandError = async (output, context) => {
|
|
943
|
-
const parsedOutput = {
|
|
944
|
-
...output,
|
|
945
|
-
body: await parseErrorBody(output.body, context),
|
|
946
|
-
};
|
|
947
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
948
|
-
switch (errorCode) {
|
|
949
|
-
case "AccountNotFoundException":
|
|
950
|
-
case "com.amazonaws.cloudtrail#AccountNotFoundException":
|
|
951
|
-
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
952
|
-
case "AccountNotRegisteredException":
|
|
953
|
-
case "com.amazonaws.cloudtrail#AccountNotRegisteredException":
|
|
954
|
-
throw await de_AccountNotRegisteredExceptionRes(parsedOutput, context);
|
|
955
|
-
case "CloudTrailAccessNotEnabledException":
|
|
956
|
-
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
957
|
-
throw await de_CloudTrailAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
958
|
-
case "ConflictException":
|
|
959
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
960
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
961
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
962
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
963
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
964
|
-
case "InvalidParameterException":
|
|
965
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
966
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
967
|
-
case "NotOrganizationManagementAccountException":
|
|
968
|
-
case "com.amazonaws.cloudtrail#NotOrganizationManagementAccountException":
|
|
969
|
-
throw await de_NotOrganizationManagementAccountExceptionRes(parsedOutput, context);
|
|
970
|
-
case "OperationNotPermittedException":
|
|
971
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
972
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
973
|
-
case "OrganizationNotInAllFeaturesModeException":
|
|
974
|
-
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
975
|
-
throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
|
|
976
|
-
case "OrganizationsNotInUseException":
|
|
977
|
-
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
978
|
-
throw await de_OrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
979
|
-
case "UnsupportedOperationException":
|
|
980
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
981
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
982
|
-
default:
|
|
983
|
-
const parsedBody = parsedOutput.body;
|
|
984
|
-
return throwDefaultError({
|
|
985
|
-
output,
|
|
986
|
-
parsedBody,
|
|
987
|
-
errorCode,
|
|
988
|
-
});
|
|
989
|
-
}
|
|
990
|
-
};
|
|
991
|
-
export const de_DescribeQueryCommand = async (output, context) => {
|
|
992
|
-
if (output.statusCode >= 300) {
|
|
993
|
-
return de_DescribeQueryCommandError(output, context);
|
|
994
|
-
}
|
|
995
|
-
const data = await parseBody(output.body, context);
|
|
996
|
-
let contents = {};
|
|
997
|
-
contents = de_DescribeQueryResponse(data, context);
|
|
998
|
-
const response = {
|
|
999
|
-
$metadata: deserializeMetadata(output),
|
|
1000
|
-
...contents,
|
|
1001
|
-
};
|
|
1002
|
-
return response;
|
|
1003
|
-
};
|
|
1004
|
-
const de_DescribeQueryCommandError = async (output, context) => {
|
|
1005
|
-
const parsedOutput = {
|
|
1006
|
-
...output,
|
|
1007
|
-
body: await parseErrorBody(output.body, context),
|
|
1008
|
-
};
|
|
1009
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1010
|
-
switch (errorCode) {
|
|
1011
|
-
case "EventDataStoreARNInvalidException":
|
|
1012
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
1013
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "EventDataStoreNotFoundException":
|
|
1015
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
1016
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "InactiveEventDataStoreException":
|
|
1018
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
1019
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "InvalidParameterException":
|
|
1021
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1022
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "NoManagementAccountSLRExistsException":
|
|
1024
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
1025
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
1026
|
-
case "OperationNotPermittedException":
|
|
1027
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1028
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1029
|
-
case "QueryIdNotFoundException":
|
|
1030
|
-
case "com.amazonaws.cloudtrail#QueryIdNotFoundException":
|
|
1031
|
-
throw await de_QueryIdNotFoundExceptionRes(parsedOutput, context);
|
|
1032
|
-
case "UnsupportedOperationException":
|
|
1033
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1034
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1035
|
-
default:
|
|
1036
|
-
const parsedBody = parsedOutput.body;
|
|
1037
|
-
return throwDefaultError({
|
|
1038
|
-
output,
|
|
1039
|
-
parsedBody,
|
|
1040
|
-
errorCode,
|
|
1041
|
-
});
|
|
1042
|
-
}
|
|
1043
|
-
};
|
|
1044
|
-
export const de_DescribeTrailsCommand = async (output, context) => {
|
|
1045
|
-
if (output.statusCode >= 300) {
|
|
1046
|
-
return de_DescribeTrailsCommandError(output, context);
|
|
1047
|
-
}
|
|
1048
|
-
const data = await parseBody(output.body, context);
|
|
1049
|
-
let contents = {};
|
|
1050
|
-
contents = _json(data);
|
|
1051
|
-
const response = {
|
|
1052
|
-
$metadata: deserializeMetadata(output),
|
|
1053
|
-
...contents,
|
|
1054
|
-
};
|
|
1055
|
-
return response;
|
|
1056
|
-
};
|
|
1057
|
-
const de_DescribeTrailsCommandError = async (output, context) => {
|
|
1058
|
-
const parsedOutput = {
|
|
1059
|
-
...output,
|
|
1060
|
-
body: await parseErrorBody(output.body, context),
|
|
1061
|
-
};
|
|
1062
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1063
|
-
switch (errorCode) {
|
|
1064
|
-
case "InvalidTrailNameException":
|
|
1065
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1066
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "NoManagementAccountSLRExistsException":
|
|
1068
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
1069
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "OperationNotPermittedException":
|
|
1071
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1072
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "UnsupportedOperationException":
|
|
1074
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1075
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1076
|
-
default:
|
|
1077
|
-
const parsedBody = parsedOutput.body;
|
|
1078
|
-
return throwDefaultError({
|
|
1079
|
-
output,
|
|
1080
|
-
parsedBody,
|
|
1081
|
-
errorCode,
|
|
1082
|
-
});
|
|
1083
|
-
}
|
|
1084
|
-
};
|
|
1085
|
-
export const de_DisableFederationCommand = async (output, context) => {
|
|
1086
|
-
if (output.statusCode >= 300) {
|
|
1087
|
-
return de_DisableFederationCommandError(output, context);
|
|
1088
|
-
}
|
|
1089
|
-
const data = await parseBody(output.body, context);
|
|
1090
|
-
let contents = {};
|
|
1091
|
-
contents = _json(data);
|
|
1092
|
-
const response = {
|
|
1093
|
-
$metadata: deserializeMetadata(output),
|
|
1094
|
-
...contents,
|
|
1095
|
-
};
|
|
1096
|
-
return response;
|
|
1097
|
-
};
|
|
1098
|
-
const de_DisableFederationCommandError = async (output, context) => {
|
|
1099
|
-
const parsedOutput = {
|
|
1100
|
-
...output,
|
|
1101
|
-
body: await parseErrorBody(output.body, context),
|
|
1102
|
-
};
|
|
1103
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1104
|
-
switch (errorCode) {
|
|
1105
|
-
case "AccessDeniedException":
|
|
1106
|
-
case "com.amazonaws.cloudtrail#AccessDeniedException":
|
|
1107
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1108
|
-
case "CloudTrailAccessNotEnabledException":
|
|
1109
|
-
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
1110
|
-
throw await de_CloudTrailAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "ConcurrentModificationException":
|
|
1112
|
-
case "com.amazonaws.cloudtrail#ConcurrentModificationException":
|
|
1113
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "EventDataStoreARNInvalidException":
|
|
1115
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
1116
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "EventDataStoreNotFoundException":
|
|
1118
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
1119
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "InactiveEventDataStoreException":
|
|
1121
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
1122
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
1123
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
1124
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
1125
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
1126
|
-
case "InvalidParameterException":
|
|
1127
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1128
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1129
|
-
case "NoManagementAccountSLRExistsException":
|
|
1130
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
1131
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
1132
|
-
case "NotOrganizationMasterAccountException":
|
|
1133
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
1134
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
1135
|
-
case "OperationNotPermittedException":
|
|
1136
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1137
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1138
|
-
case "OrganizationNotInAllFeaturesModeException":
|
|
1139
|
-
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
1140
|
-
throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
|
|
1141
|
-
case "OrganizationsNotInUseException":
|
|
1142
|
-
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
1143
|
-
throw await de_OrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
1144
|
-
case "UnsupportedOperationException":
|
|
1145
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1146
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1147
|
-
default:
|
|
1148
|
-
const parsedBody = parsedOutput.body;
|
|
1149
|
-
return throwDefaultError({
|
|
1150
|
-
output,
|
|
1151
|
-
parsedBody,
|
|
1152
|
-
errorCode,
|
|
1153
|
-
});
|
|
1154
|
-
}
|
|
1155
|
-
};
|
|
1156
|
-
export const de_EnableFederationCommand = async (output, context) => {
|
|
351
|
+
export const de_CreateTrailCommand = async (output, context) => {
|
|
1157
352
|
if (output.statusCode >= 300) {
|
|
1158
|
-
return
|
|
353
|
+
return de_CommandError(output, context);
|
|
1159
354
|
}
|
|
1160
355
|
const data = await parseBody(output.body, context);
|
|
1161
356
|
let contents = {};
|
|
@@ -1166,158 +361,35 @@ export const de_EnableFederationCommand = async (output, context) => {
|
|
|
1166
361
|
};
|
|
1167
362
|
return response;
|
|
1168
363
|
};
|
|
1169
|
-
const
|
|
1170
|
-
const parsedOutput = {
|
|
1171
|
-
...output,
|
|
1172
|
-
body: await parseErrorBody(output.body, context),
|
|
1173
|
-
};
|
|
1174
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1175
|
-
switch (errorCode) {
|
|
1176
|
-
case "AccessDeniedException":
|
|
1177
|
-
case "com.amazonaws.cloudtrail#AccessDeniedException":
|
|
1178
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1179
|
-
case "CloudTrailAccessNotEnabledException":
|
|
1180
|
-
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
1181
|
-
throw await de_CloudTrailAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "ConcurrentModificationException":
|
|
1183
|
-
case "com.amazonaws.cloudtrail#ConcurrentModificationException":
|
|
1184
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "EventDataStoreARNInvalidException":
|
|
1186
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
1187
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "EventDataStoreFederationEnabledException":
|
|
1189
|
-
case "com.amazonaws.cloudtrail#EventDataStoreFederationEnabledException":
|
|
1190
|
-
throw await de_EventDataStoreFederationEnabledExceptionRes(parsedOutput, context);
|
|
1191
|
-
case "EventDataStoreNotFoundException":
|
|
1192
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
1193
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
1194
|
-
case "InactiveEventDataStoreException":
|
|
1195
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
1196
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
1197
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
1198
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
1199
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
1200
|
-
case "InvalidParameterException":
|
|
1201
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1202
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "NoManagementAccountSLRExistsException":
|
|
1204
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
1205
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
1206
|
-
case "NotOrganizationMasterAccountException":
|
|
1207
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
1208
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
1209
|
-
case "OperationNotPermittedException":
|
|
1210
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1211
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1212
|
-
case "OrganizationNotInAllFeaturesModeException":
|
|
1213
|
-
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
1214
|
-
throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
|
|
1215
|
-
case "OrganizationsNotInUseException":
|
|
1216
|
-
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
1217
|
-
throw await de_OrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
1218
|
-
case "UnsupportedOperationException":
|
|
1219
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1220
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1221
|
-
default:
|
|
1222
|
-
const parsedBody = parsedOutput.body;
|
|
1223
|
-
return throwDefaultError({
|
|
1224
|
-
output,
|
|
1225
|
-
parsedBody,
|
|
1226
|
-
errorCode,
|
|
1227
|
-
});
|
|
1228
|
-
}
|
|
1229
|
-
};
|
|
1230
|
-
export const de_GetChannelCommand = async (output, context) => {
|
|
364
|
+
export const de_DeleteChannelCommand = async (output, context) => {
|
|
1231
365
|
if (output.statusCode >= 300) {
|
|
1232
|
-
return
|
|
366
|
+
return de_CommandError(output, context);
|
|
1233
367
|
}
|
|
1234
368
|
const data = await parseBody(output.body, context);
|
|
1235
369
|
let contents = {};
|
|
1236
|
-
contents =
|
|
370
|
+
contents = _json(data);
|
|
1237
371
|
const response = {
|
|
1238
372
|
$metadata: deserializeMetadata(output),
|
|
1239
373
|
...contents,
|
|
1240
374
|
};
|
|
1241
375
|
return response;
|
|
1242
376
|
};
|
|
1243
|
-
const
|
|
1244
|
-
const parsedOutput = {
|
|
1245
|
-
...output,
|
|
1246
|
-
body: await parseErrorBody(output.body, context),
|
|
1247
|
-
};
|
|
1248
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1249
|
-
switch (errorCode) {
|
|
1250
|
-
case "ChannelARNInvalidException":
|
|
1251
|
-
case "com.amazonaws.cloudtrail#ChannelARNInvalidException":
|
|
1252
|
-
throw await de_ChannelARNInvalidExceptionRes(parsedOutput, context);
|
|
1253
|
-
case "ChannelNotFoundException":
|
|
1254
|
-
case "com.amazonaws.cloudtrail#ChannelNotFoundException":
|
|
1255
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
1256
|
-
case "OperationNotPermittedException":
|
|
1257
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1258
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1259
|
-
case "UnsupportedOperationException":
|
|
1260
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1261
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1262
|
-
default:
|
|
1263
|
-
const parsedBody = parsedOutput.body;
|
|
1264
|
-
return throwDefaultError({
|
|
1265
|
-
output,
|
|
1266
|
-
parsedBody,
|
|
1267
|
-
errorCode,
|
|
1268
|
-
});
|
|
1269
|
-
}
|
|
1270
|
-
};
|
|
1271
|
-
export const de_GetEventDataStoreCommand = async (output, context) => {
|
|
377
|
+
export const de_DeleteEventDataStoreCommand = async (output, context) => {
|
|
1272
378
|
if (output.statusCode >= 300) {
|
|
1273
|
-
return
|
|
379
|
+
return de_CommandError(output, context);
|
|
1274
380
|
}
|
|
1275
381
|
const data = await parseBody(output.body, context);
|
|
1276
382
|
let contents = {};
|
|
1277
|
-
contents =
|
|
383
|
+
contents = _json(data);
|
|
1278
384
|
const response = {
|
|
1279
385
|
$metadata: deserializeMetadata(output),
|
|
1280
386
|
...contents,
|
|
1281
387
|
};
|
|
1282
388
|
return response;
|
|
1283
389
|
};
|
|
1284
|
-
const
|
|
1285
|
-
const parsedOutput = {
|
|
1286
|
-
...output,
|
|
1287
|
-
body: await parseErrorBody(output.body, context),
|
|
1288
|
-
};
|
|
1289
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1290
|
-
switch (errorCode) {
|
|
1291
|
-
case "EventDataStoreARNInvalidException":
|
|
1292
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
1293
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
1294
|
-
case "EventDataStoreNotFoundException":
|
|
1295
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
1296
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
1297
|
-
case "InvalidParameterException":
|
|
1298
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1299
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1300
|
-
case "NoManagementAccountSLRExistsException":
|
|
1301
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
1302
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
1303
|
-
case "OperationNotPermittedException":
|
|
1304
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1305
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1306
|
-
case "UnsupportedOperationException":
|
|
1307
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1308
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1309
|
-
default:
|
|
1310
|
-
const parsedBody = parsedOutput.body;
|
|
1311
|
-
return throwDefaultError({
|
|
1312
|
-
output,
|
|
1313
|
-
parsedBody,
|
|
1314
|
-
errorCode,
|
|
1315
|
-
});
|
|
1316
|
-
}
|
|
1317
|
-
};
|
|
1318
|
-
export const de_GetEventSelectorsCommand = async (output, context) => {
|
|
390
|
+
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
1319
391
|
if (output.statusCode >= 300) {
|
|
1320
|
-
return
|
|
392
|
+
return de_CommandError(output, context);
|
|
1321
393
|
}
|
|
1322
394
|
const data = await parseBody(output.body, context);
|
|
1323
395
|
let contents = {};
|
|
@@ -1328,84 +400,22 @@ export const de_GetEventSelectorsCommand = async (output, context) => {
|
|
|
1328
400
|
};
|
|
1329
401
|
return response;
|
|
1330
402
|
};
|
|
1331
|
-
const
|
|
1332
|
-
const parsedOutput = {
|
|
1333
|
-
...output,
|
|
1334
|
-
body: await parseErrorBody(output.body, context),
|
|
1335
|
-
};
|
|
1336
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1337
|
-
switch (errorCode) {
|
|
1338
|
-
case "CloudTrailARNInvalidException":
|
|
1339
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
1340
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
1341
|
-
case "InvalidTrailNameException":
|
|
1342
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1343
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
1344
|
-
case "NoManagementAccountSLRExistsException":
|
|
1345
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
1346
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
1347
|
-
case "OperationNotPermittedException":
|
|
1348
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1349
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1350
|
-
case "TrailNotFoundException":
|
|
1351
|
-
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
1352
|
-
throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
|
|
1353
|
-
case "UnsupportedOperationException":
|
|
1354
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1355
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1356
|
-
default:
|
|
1357
|
-
const parsedBody = parsedOutput.body;
|
|
1358
|
-
return throwDefaultError({
|
|
1359
|
-
output,
|
|
1360
|
-
parsedBody,
|
|
1361
|
-
errorCode,
|
|
1362
|
-
});
|
|
1363
|
-
}
|
|
1364
|
-
};
|
|
1365
|
-
export const de_GetImportCommand = async (output, context) => {
|
|
403
|
+
export const de_DeleteTrailCommand = async (output, context) => {
|
|
1366
404
|
if (output.statusCode >= 300) {
|
|
1367
|
-
return
|
|
405
|
+
return de_CommandError(output, context);
|
|
1368
406
|
}
|
|
1369
407
|
const data = await parseBody(output.body, context);
|
|
1370
408
|
let contents = {};
|
|
1371
|
-
contents =
|
|
409
|
+
contents = _json(data);
|
|
1372
410
|
const response = {
|
|
1373
411
|
$metadata: deserializeMetadata(output),
|
|
1374
412
|
...contents,
|
|
1375
413
|
};
|
|
1376
414
|
return response;
|
|
1377
415
|
};
|
|
1378
|
-
const
|
|
1379
|
-
const parsedOutput = {
|
|
1380
|
-
...output,
|
|
1381
|
-
body: await parseErrorBody(output.body, context),
|
|
1382
|
-
};
|
|
1383
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1384
|
-
switch (errorCode) {
|
|
1385
|
-
case "ImportNotFoundException":
|
|
1386
|
-
case "com.amazonaws.cloudtrail#ImportNotFoundException":
|
|
1387
|
-
throw await de_ImportNotFoundExceptionRes(parsedOutput, context);
|
|
1388
|
-
case "InvalidParameterException":
|
|
1389
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1390
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1391
|
-
case "OperationNotPermittedException":
|
|
1392
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1393
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1394
|
-
case "UnsupportedOperationException":
|
|
1395
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1396
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1397
|
-
default:
|
|
1398
|
-
const parsedBody = parsedOutput.body;
|
|
1399
|
-
return throwDefaultError({
|
|
1400
|
-
output,
|
|
1401
|
-
parsedBody,
|
|
1402
|
-
errorCode,
|
|
1403
|
-
});
|
|
1404
|
-
}
|
|
1405
|
-
};
|
|
1406
|
-
export const de_GetInsightSelectorsCommand = async (output, context) => {
|
|
416
|
+
export const de_DeregisterOrganizationDelegatedAdminCommand = async (output, context) => {
|
|
1407
417
|
if (output.statusCode >= 300) {
|
|
1408
|
-
return
|
|
418
|
+
return de_CommandError(output, context);
|
|
1409
419
|
}
|
|
1410
420
|
const data = await parseBody(output.body, context);
|
|
1411
421
|
let contents = {};
|
|
@@ -1416,55 +426,35 @@ export const de_GetInsightSelectorsCommand = async (output, context) => {
|
|
|
1416
426
|
};
|
|
1417
427
|
return response;
|
|
1418
428
|
};
|
|
1419
|
-
const
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
429
|
+
export const de_DescribeQueryCommand = async (output, context) => {
|
|
430
|
+
if (output.statusCode >= 300) {
|
|
431
|
+
return de_CommandError(output, context);
|
|
432
|
+
}
|
|
433
|
+
const data = await parseBody(output.body, context);
|
|
434
|
+
let contents = {};
|
|
435
|
+
contents = de_DescribeQueryResponse(data, context);
|
|
436
|
+
const response = {
|
|
437
|
+
$metadata: deserializeMetadata(output),
|
|
438
|
+
...contents,
|
|
1423
439
|
};
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
case "InsightNotEnabledException":
|
|
1430
|
-
case "com.amazonaws.cloudtrail#InsightNotEnabledException":
|
|
1431
|
-
throw await de_InsightNotEnabledExceptionRes(parsedOutput, context);
|
|
1432
|
-
case "InvalidParameterCombinationException":
|
|
1433
|
-
case "com.amazonaws.cloudtrail#InvalidParameterCombinationException":
|
|
1434
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1435
|
-
case "InvalidParameterException":
|
|
1436
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1437
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1438
|
-
case "InvalidTrailNameException":
|
|
1439
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1440
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
1441
|
-
case "NoManagementAccountSLRExistsException":
|
|
1442
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
1443
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
1444
|
-
case "OperationNotPermittedException":
|
|
1445
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1446
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1447
|
-
case "ThrottlingException":
|
|
1448
|
-
case "com.amazonaws.cloudtrail#ThrottlingException":
|
|
1449
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1450
|
-
case "TrailNotFoundException":
|
|
1451
|
-
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
1452
|
-
throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
|
|
1453
|
-
case "UnsupportedOperationException":
|
|
1454
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1455
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1456
|
-
default:
|
|
1457
|
-
const parsedBody = parsedOutput.body;
|
|
1458
|
-
return throwDefaultError({
|
|
1459
|
-
output,
|
|
1460
|
-
parsedBody,
|
|
1461
|
-
errorCode,
|
|
1462
|
-
});
|
|
440
|
+
return response;
|
|
441
|
+
};
|
|
442
|
+
export const de_DescribeTrailsCommand = async (output, context) => {
|
|
443
|
+
if (output.statusCode >= 300) {
|
|
444
|
+
return de_CommandError(output, context);
|
|
1463
445
|
}
|
|
446
|
+
const data = await parseBody(output.body, context);
|
|
447
|
+
let contents = {};
|
|
448
|
+
contents = _json(data);
|
|
449
|
+
const response = {
|
|
450
|
+
$metadata: deserializeMetadata(output),
|
|
451
|
+
...contents,
|
|
452
|
+
};
|
|
453
|
+
return response;
|
|
1464
454
|
};
|
|
1465
|
-
export const
|
|
455
|
+
export const de_DisableFederationCommand = async (output, context) => {
|
|
1466
456
|
if (output.statusCode >= 300) {
|
|
1467
|
-
return
|
|
457
|
+
return de_CommandError(output, context);
|
|
1468
458
|
}
|
|
1469
459
|
const data = await parseBody(output.body, context);
|
|
1470
460
|
let contents = {};
|
|
@@ -1475,58 +465,9 @@ export const de_GetQueryResultsCommand = async (output, context) => {
|
|
|
1475
465
|
};
|
|
1476
466
|
return response;
|
|
1477
467
|
};
|
|
1478
|
-
const
|
|
1479
|
-
const parsedOutput = {
|
|
1480
|
-
...output,
|
|
1481
|
-
body: await parseErrorBody(output.body, context),
|
|
1482
|
-
};
|
|
1483
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1484
|
-
switch (errorCode) {
|
|
1485
|
-
case "EventDataStoreARNInvalidException":
|
|
1486
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
1487
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
1488
|
-
case "EventDataStoreNotFoundException":
|
|
1489
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
1490
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
1491
|
-
case "InactiveEventDataStoreException":
|
|
1492
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
1493
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
1494
|
-
case "InsufficientEncryptionPolicyException":
|
|
1495
|
-
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
1496
|
-
throw await de_InsufficientEncryptionPolicyExceptionRes(parsedOutput, context);
|
|
1497
|
-
case "InvalidMaxResultsException":
|
|
1498
|
-
case "com.amazonaws.cloudtrail#InvalidMaxResultsException":
|
|
1499
|
-
throw await de_InvalidMaxResultsExceptionRes(parsedOutput, context);
|
|
1500
|
-
case "InvalidNextTokenException":
|
|
1501
|
-
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
1502
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1503
|
-
case "InvalidParameterException":
|
|
1504
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1505
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1506
|
-
case "NoManagementAccountSLRExistsException":
|
|
1507
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
1508
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
1509
|
-
case "OperationNotPermittedException":
|
|
1510
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1511
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1512
|
-
case "QueryIdNotFoundException":
|
|
1513
|
-
case "com.amazonaws.cloudtrail#QueryIdNotFoundException":
|
|
1514
|
-
throw await de_QueryIdNotFoundExceptionRes(parsedOutput, context);
|
|
1515
|
-
case "UnsupportedOperationException":
|
|
1516
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1517
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1518
|
-
default:
|
|
1519
|
-
const parsedBody = parsedOutput.body;
|
|
1520
|
-
return throwDefaultError({
|
|
1521
|
-
output,
|
|
1522
|
-
parsedBody,
|
|
1523
|
-
errorCode,
|
|
1524
|
-
});
|
|
1525
|
-
}
|
|
1526
|
-
};
|
|
1527
|
-
export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
468
|
+
export const de_EnableFederationCommand = async (output, context) => {
|
|
1528
469
|
if (output.statusCode >= 300) {
|
|
1529
|
-
return
|
|
470
|
+
return de_CommandError(output, context);
|
|
1530
471
|
}
|
|
1531
472
|
const data = await parseBody(output.body, context);
|
|
1532
473
|
let contents = {};
|
|
@@ -1537,131 +478,74 @@ export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
|
1537
478
|
};
|
|
1538
479
|
return response;
|
|
1539
480
|
};
|
|
1540
|
-
const
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
body: await parseErrorBody(output.body, context),
|
|
1544
|
-
};
|
|
1545
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1546
|
-
switch (errorCode) {
|
|
1547
|
-
case "OperationNotPermittedException":
|
|
1548
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1549
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1550
|
-
case "ResourceARNNotValidException":
|
|
1551
|
-
case "com.amazonaws.cloudtrail#ResourceARNNotValidException":
|
|
1552
|
-
throw await de_ResourceARNNotValidExceptionRes(parsedOutput, context);
|
|
1553
|
-
case "ResourceNotFoundException":
|
|
1554
|
-
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
1555
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1556
|
-
case "ResourcePolicyNotFoundException":
|
|
1557
|
-
case "com.amazonaws.cloudtrail#ResourcePolicyNotFoundException":
|
|
1558
|
-
throw await de_ResourcePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1559
|
-
case "ResourceTypeNotSupportedException":
|
|
1560
|
-
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
1561
|
-
throw await de_ResourceTypeNotSupportedExceptionRes(parsedOutput, context);
|
|
1562
|
-
case "UnsupportedOperationException":
|
|
1563
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1564
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1565
|
-
default:
|
|
1566
|
-
const parsedBody = parsedOutput.body;
|
|
1567
|
-
return throwDefaultError({
|
|
1568
|
-
output,
|
|
1569
|
-
parsedBody,
|
|
1570
|
-
errorCode,
|
|
1571
|
-
});
|
|
481
|
+
export const de_GetChannelCommand = async (output, context) => {
|
|
482
|
+
if (output.statusCode >= 300) {
|
|
483
|
+
return de_CommandError(output, context);
|
|
1572
484
|
}
|
|
485
|
+
const data = await parseBody(output.body, context);
|
|
486
|
+
let contents = {};
|
|
487
|
+
contents = de_GetChannelResponse(data, context);
|
|
488
|
+
const response = {
|
|
489
|
+
$metadata: deserializeMetadata(output),
|
|
490
|
+
...contents,
|
|
491
|
+
};
|
|
492
|
+
return response;
|
|
1573
493
|
};
|
|
1574
|
-
export const
|
|
494
|
+
export const de_GetEventDataStoreCommand = async (output, context) => {
|
|
1575
495
|
if (output.statusCode >= 300) {
|
|
1576
|
-
return
|
|
496
|
+
return de_CommandError(output, context);
|
|
1577
497
|
}
|
|
1578
498
|
const data = await parseBody(output.body, context);
|
|
1579
499
|
let contents = {};
|
|
1580
|
-
contents =
|
|
500
|
+
contents = de_GetEventDataStoreResponse(data, context);
|
|
1581
501
|
const response = {
|
|
1582
502
|
$metadata: deserializeMetadata(output),
|
|
1583
503
|
...contents,
|
|
1584
504
|
};
|
|
1585
505
|
return response;
|
|
1586
506
|
};
|
|
1587
|
-
const
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
body: await parseErrorBody(output.body, context),
|
|
1591
|
-
};
|
|
1592
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1593
|
-
switch (errorCode) {
|
|
1594
|
-
case "CloudTrailARNInvalidException":
|
|
1595
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
1596
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
1597
|
-
case "InvalidTrailNameException":
|
|
1598
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1599
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
1600
|
-
case "OperationNotPermittedException":
|
|
1601
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1602
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1603
|
-
case "TrailNotFoundException":
|
|
1604
|
-
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
1605
|
-
throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
|
|
1606
|
-
case "UnsupportedOperationException":
|
|
1607
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1608
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1609
|
-
default:
|
|
1610
|
-
const parsedBody = parsedOutput.body;
|
|
1611
|
-
return throwDefaultError({
|
|
1612
|
-
output,
|
|
1613
|
-
parsedBody,
|
|
1614
|
-
errorCode,
|
|
1615
|
-
});
|
|
507
|
+
export const de_GetEventSelectorsCommand = async (output, context) => {
|
|
508
|
+
if (output.statusCode >= 300) {
|
|
509
|
+
return de_CommandError(output, context);
|
|
1616
510
|
}
|
|
511
|
+
const data = await parseBody(output.body, context);
|
|
512
|
+
let contents = {};
|
|
513
|
+
contents = _json(data);
|
|
514
|
+
const response = {
|
|
515
|
+
$metadata: deserializeMetadata(output),
|
|
516
|
+
...contents,
|
|
517
|
+
};
|
|
518
|
+
return response;
|
|
1617
519
|
};
|
|
1618
|
-
export const
|
|
520
|
+
export const de_GetImportCommand = async (output, context) => {
|
|
1619
521
|
if (output.statusCode >= 300) {
|
|
1620
|
-
return
|
|
522
|
+
return de_CommandError(output, context);
|
|
1621
523
|
}
|
|
1622
524
|
const data = await parseBody(output.body, context);
|
|
1623
525
|
let contents = {};
|
|
1624
|
-
contents =
|
|
526
|
+
contents = de_GetImportResponse(data, context);
|
|
1625
527
|
const response = {
|
|
1626
528
|
$metadata: deserializeMetadata(output),
|
|
1627
529
|
...contents,
|
|
1628
530
|
};
|
|
1629
531
|
return response;
|
|
1630
532
|
};
|
|
1631
|
-
const
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
body: await parseErrorBody(output.body, context),
|
|
1635
|
-
};
|
|
1636
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1637
|
-
switch (errorCode) {
|
|
1638
|
-
case "CloudTrailARNInvalidException":
|
|
1639
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
1640
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
1641
|
-
case "InvalidTrailNameException":
|
|
1642
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1643
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
1644
|
-
case "OperationNotPermittedException":
|
|
1645
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1646
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1647
|
-
case "TrailNotFoundException":
|
|
1648
|
-
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
1649
|
-
throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
|
|
1650
|
-
case "UnsupportedOperationException":
|
|
1651
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1652
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1653
|
-
default:
|
|
1654
|
-
const parsedBody = parsedOutput.body;
|
|
1655
|
-
return throwDefaultError({
|
|
1656
|
-
output,
|
|
1657
|
-
parsedBody,
|
|
1658
|
-
errorCode,
|
|
1659
|
-
});
|
|
533
|
+
export const de_GetInsightSelectorsCommand = async (output, context) => {
|
|
534
|
+
if (output.statusCode >= 300) {
|
|
535
|
+
return de_CommandError(output, context);
|
|
1660
536
|
}
|
|
537
|
+
const data = await parseBody(output.body, context);
|
|
538
|
+
let contents = {};
|
|
539
|
+
contents = _json(data);
|
|
540
|
+
const response = {
|
|
541
|
+
$metadata: deserializeMetadata(output),
|
|
542
|
+
...contents,
|
|
543
|
+
};
|
|
544
|
+
return response;
|
|
1661
545
|
};
|
|
1662
|
-
export const
|
|
546
|
+
export const de_GetQueryResultsCommand = async (output, context) => {
|
|
1663
547
|
if (output.statusCode >= 300) {
|
|
1664
|
-
return
|
|
548
|
+
return de_CommandError(output, context);
|
|
1665
549
|
}
|
|
1666
550
|
const data = await parseBody(output.body, context);
|
|
1667
551
|
let contents = {};
|
|
@@ -1672,401 +556,165 @@ export const de_ListChannelsCommand = async (output, context) => {
|
|
|
1672
556
|
};
|
|
1673
557
|
return response;
|
|
1674
558
|
};
|
|
1675
|
-
const
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
body: await parseErrorBody(output.body, context),
|
|
1679
|
-
};
|
|
1680
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1681
|
-
switch (errorCode) {
|
|
1682
|
-
case "InvalidNextTokenException":
|
|
1683
|
-
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
1684
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1685
|
-
case "OperationNotPermittedException":
|
|
1686
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1687
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1688
|
-
case "UnsupportedOperationException":
|
|
1689
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1690
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1691
|
-
default:
|
|
1692
|
-
const parsedBody = parsedOutput.body;
|
|
1693
|
-
return throwDefaultError({
|
|
1694
|
-
output,
|
|
1695
|
-
parsedBody,
|
|
1696
|
-
errorCode,
|
|
1697
|
-
});
|
|
559
|
+
export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
560
|
+
if (output.statusCode >= 300) {
|
|
561
|
+
return de_CommandError(output, context);
|
|
1698
562
|
}
|
|
563
|
+
const data = await parseBody(output.body, context);
|
|
564
|
+
let contents = {};
|
|
565
|
+
contents = _json(data);
|
|
566
|
+
const response = {
|
|
567
|
+
$metadata: deserializeMetadata(output),
|
|
568
|
+
...contents,
|
|
569
|
+
};
|
|
570
|
+
return response;
|
|
1699
571
|
};
|
|
1700
|
-
export const
|
|
572
|
+
export const de_GetTrailCommand = async (output, context) => {
|
|
1701
573
|
if (output.statusCode >= 300) {
|
|
1702
|
-
return
|
|
574
|
+
return de_CommandError(output, context);
|
|
1703
575
|
}
|
|
1704
576
|
const data = await parseBody(output.body, context);
|
|
1705
577
|
let contents = {};
|
|
1706
|
-
contents =
|
|
578
|
+
contents = _json(data);
|
|
1707
579
|
const response = {
|
|
1708
580
|
$metadata: deserializeMetadata(output),
|
|
1709
581
|
...contents,
|
|
1710
582
|
};
|
|
1711
583
|
return response;
|
|
1712
584
|
};
|
|
1713
|
-
const
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
body: await parseErrorBody(output.body, context),
|
|
1717
|
-
};
|
|
1718
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1719
|
-
switch (errorCode) {
|
|
1720
|
-
case "InvalidMaxResultsException":
|
|
1721
|
-
case "com.amazonaws.cloudtrail#InvalidMaxResultsException":
|
|
1722
|
-
throw await de_InvalidMaxResultsExceptionRes(parsedOutput, context);
|
|
1723
|
-
case "InvalidNextTokenException":
|
|
1724
|
-
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
1725
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1726
|
-
case "NoManagementAccountSLRExistsException":
|
|
1727
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
1728
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
1729
|
-
case "OperationNotPermittedException":
|
|
1730
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1731
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1732
|
-
case "UnsupportedOperationException":
|
|
1733
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1734
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1735
|
-
default:
|
|
1736
|
-
const parsedBody = parsedOutput.body;
|
|
1737
|
-
return throwDefaultError({
|
|
1738
|
-
output,
|
|
1739
|
-
parsedBody,
|
|
1740
|
-
errorCode,
|
|
1741
|
-
});
|
|
585
|
+
export const de_GetTrailStatusCommand = async (output, context) => {
|
|
586
|
+
if (output.statusCode >= 300) {
|
|
587
|
+
return de_CommandError(output, context);
|
|
1742
588
|
}
|
|
589
|
+
const data = await parseBody(output.body, context);
|
|
590
|
+
let contents = {};
|
|
591
|
+
contents = de_GetTrailStatusResponse(data, context);
|
|
592
|
+
const response = {
|
|
593
|
+
$metadata: deserializeMetadata(output),
|
|
594
|
+
...contents,
|
|
595
|
+
};
|
|
596
|
+
return response;
|
|
1743
597
|
};
|
|
1744
|
-
export const
|
|
598
|
+
export const de_ListChannelsCommand = async (output, context) => {
|
|
1745
599
|
if (output.statusCode >= 300) {
|
|
1746
|
-
return
|
|
600
|
+
return de_CommandError(output, context);
|
|
1747
601
|
}
|
|
1748
602
|
const data = await parseBody(output.body, context);
|
|
1749
603
|
let contents = {};
|
|
1750
|
-
contents =
|
|
604
|
+
contents = _json(data);
|
|
1751
605
|
const response = {
|
|
1752
606
|
$metadata: deserializeMetadata(output),
|
|
1753
607
|
...contents,
|
|
1754
608
|
};
|
|
1755
609
|
return response;
|
|
1756
610
|
};
|
|
1757
|
-
const
|
|
1758
|
-
const parsedOutput = {
|
|
1759
|
-
...output,
|
|
1760
|
-
body: await parseErrorBody(output.body, context),
|
|
1761
|
-
};
|
|
1762
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1763
|
-
switch (errorCode) {
|
|
1764
|
-
case "InvalidNextTokenException":
|
|
1765
|
-
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
1766
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1767
|
-
case "OperationNotPermittedException":
|
|
1768
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1769
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1770
|
-
case "UnsupportedOperationException":
|
|
1771
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1772
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1773
|
-
default:
|
|
1774
|
-
const parsedBody = parsedOutput.body;
|
|
1775
|
-
return throwDefaultError({
|
|
1776
|
-
output,
|
|
1777
|
-
parsedBody,
|
|
1778
|
-
errorCode,
|
|
1779
|
-
});
|
|
1780
|
-
}
|
|
1781
|
-
};
|
|
1782
|
-
export const de_ListImportsCommand = async (output, context) => {
|
|
611
|
+
export const de_ListEventDataStoresCommand = async (output, context) => {
|
|
1783
612
|
if (output.statusCode >= 300) {
|
|
1784
|
-
return
|
|
613
|
+
return de_CommandError(output, context);
|
|
1785
614
|
}
|
|
1786
615
|
const data = await parseBody(output.body, context);
|
|
1787
616
|
let contents = {};
|
|
1788
|
-
contents =
|
|
617
|
+
contents = de_ListEventDataStoresResponse(data, context);
|
|
1789
618
|
const response = {
|
|
1790
619
|
$metadata: deserializeMetadata(output),
|
|
1791
620
|
...contents,
|
|
1792
621
|
};
|
|
1793
622
|
return response;
|
|
1794
623
|
};
|
|
1795
|
-
const
|
|
1796
|
-
const parsedOutput = {
|
|
1797
|
-
...output,
|
|
1798
|
-
body: await parseErrorBody(output.body, context),
|
|
1799
|
-
};
|
|
1800
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1801
|
-
switch (errorCode) {
|
|
1802
|
-
case "EventDataStoreARNInvalidException":
|
|
1803
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
1804
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
1805
|
-
case "InvalidNextTokenException":
|
|
1806
|
-
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
1807
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1808
|
-
case "InvalidParameterException":
|
|
1809
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1810
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1811
|
-
case "OperationNotPermittedException":
|
|
1812
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1813
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1814
|
-
case "UnsupportedOperationException":
|
|
1815
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1816
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1817
|
-
default:
|
|
1818
|
-
const parsedBody = parsedOutput.body;
|
|
1819
|
-
return throwDefaultError({
|
|
1820
|
-
output,
|
|
1821
|
-
parsedBody,
|
|
1822
|
-
errorCode,
|
|
1823
|
-
});
|
|
1824
|
-
}
|
|
1825
|
-
};
|
|
1826
|
-
export const de_ListInsightsMetricDataCommand = async (output, context) => {
|
|
624
|
+
export const de_ListImportFailuresCommand = async (output, context) => {
|
|
1827
625
|
if (output.statusCode >= 300) {
|
|
1828
|
-
return
|
|
626
|
+
return de_CommandError(output, context);
|
|
1829
627
|
}
|
|
1830
628
|
const data = await parseBody(output.body, context);
|
|
1831
629
|
let contents = {};
|
|
1832
|
-
contents =
|
|
630
|
+
contents = de_ListImportFailuresResponse(data, context);
|
|
1833
631
|
const response = {
|
|
1834
632
|
$metadata: deserializeMetadata(output),
|
|
1835
633
|
...contents,
|
|
1836
634
|
};
|
|
1837
635
|
return response;
|
|
1838
636
|
};
|
|
1839
|
-
const
|
|
1840
|
-
const parsedOutput = {
|
|
1841
|
-
...output,
|
|
1842
|
-
body: await parseErrorBody(output.body, context),
|
|
1843
|
-
};
|
|
1844
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1845
|
-
switch (errorCode) {
|
|
1846
|
-
case "InvalidParameterException":
|
|
1847
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1848
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1849
|
-
case "OperationNotPermittedException":
|
|
1850
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1851
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1852
|
-
case "UnsupportedOperationException":
|
|
1853
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1854
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1855
|
-
default:
|
|
1856
|
-
const parsedBody = parsedOutput.body;
|
|
1857
|
-
return throwDefaultError({
|
|
1858
|
-
output,
|
|
1859
|
-
parsedBody,
|
|
1860
|
-
errorCode,
|
|
1861
|
-
});
|
|
1862
|
-
}
|
|
1863
|
-
};
|
|
1864
|
-
export const de_ListPublicKeysCommand = async (output, context) => {
|
|
637
|
+
export const de_ListImportsCommand = async (output, context) => {
|
|
1865
638
|
if (output.statusCode >= 300) {
|
|
1866
|
-
return
|
|
639
|
+
return de_CommandError(output, context);
|
|
1867
640
|
}
|
|
1868
641
|
const data = await parseBody(output.body, context);
|
|
1869
642
|
let contents = {};
|
|
1870
|
-
contents =
|
|
643
|
+
contents = de_ListImportsResponse(data, context);
|
|
1871
644
|
const response = {
|
|
1872
645
|
$metadata: deserializeMetadata(output),
|
|
1873
646
|
...contents,
|
|
1874
647
|
};
|
|
1875
648
|
return response;
|
|
1876
649
|
};
|
|
1877
|
-
const
|
|
1878
|
-
const parsedOutput = {
|
|
1879
|
-
...output,
|
|
1880
|
-
body: await parseErrorBody(output.body, context),
|
|
1881
|
-
};
|
|
1882
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1883
|
-
switch (errorCode) {
|
|
1884
|
-
case "InvalidTimeRangeException":
|
|
1885
|
-
case "com.amazonaws.cloudtrail#InvalidTimeRangeException":
|
|
1886
|
-
throw await de_InvalidTimeRangeExceptionRes(parsedOutput, context);
|
|
1887
|
-
case "InvalidTokenException":
|
|
1888
|
-
case "com.amazonaws.cloudtrail#InvalidTokenException":
|
|
1889
|
-
throw await de_InvalidTokenExceptionRes(parsedOutput, context);
|
|
1890
|
-
case "OperationNotPermittedException":
|
|
1891
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1892
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1893
|
-
case "UnsupportedOperationException":
|
|
1894
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1895
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1896
|
-
default:
|
|
1897
|
-
const parsedBody = parsedOutput.body;
|
|
1898
|
-
return throwDefaultError({
|
|
1899
|
-
output,
|
|
1900
|
-
parsedBody,
|
|
1901
|
-
errorCode,
|
|
1902
|
-
});
|
|
1903
|
-
}
|
|
1904
|
-
};
|
|
1905
|
-
export const de_ListQueriesCommand = async (output, context) => {
|
|
650
|
+
export const de_ListInsightsMetricDataCommand = async (output, context) => {
|
|
1906
651
|
if (output.statusCode >= 300) {
|
|
1907
|
-
return
|
|
652
|
+
return de_CommandError(output, context);
|
|
1908
653
|
}
|
|
1909
654
|
const data = await parseBody(output.body, context);
|
|
1910
655
|
let contents = {};
|
|
1911
|
-
contents =
|
|
656
|
+
contents = de_ListInsightsMetricDataResponse(data, context);
|
|
1912
657
|
const response = {
|
|
1913
658
|
$metadata: deserializeMetadata(output),
|
|
1914
659
|
...contents,
|
|
1915
660
|
};
|
|
1916
661
|
return response;
|
|
1917
662
|
};
|
|
1918
|
-
const
|
|
1919
|
-
const parsedOutput = {
|
|
1920
|
-
...output,
|
|
1921
|
-
body: await parseErrorBody(output.body, context),
|
|
1922
|
-
};
|
|
1923
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1924
|
-
switch (errorCode) {
|
|
1925
|
-
case "EventDataStoreARNInvalidException":
|
|
1926
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
1927
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
1928
|
-
case "EventDataStoreNotFoundException":
|
|
1929
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
1930
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
1931
|
-
case "InactiveEventDataStoreException":
|
|
1932
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
1933
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
1934
|
-
case "InvalidDateRangeException":
|
|
1935
|
-
case "com.amazonaws.cloudtrail#InvalidDateRangeException":
|
|
1936
|
-
throw await de_InvalidDateRangeExceptionRes(parsedOutput, context);
|
|
1937
|
-
case "InvalidMaxResultsException":
|
|
1938
|
-
case "com.amazonaws.cloudtrail#InvalidMaxResultsException":
|
|
1939
|
-
throw await de_InvalidMaxResultsExceptionRes(parsedOutput, context);
|
|
1940
|
-
case "InvalidNextTokenException":
|
|
1941
|
-
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
1942
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1943
|
-
case "InvalidParameterException":
|
|
1944
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1945
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1946
|
-
case "InvalidQueryStatusException":
|
|
1947
|
-
case "com.amazonaws.cloudtrail#InvalidQueryStatusException":
|
|
1948
|
-
throw await de_InvalidQueryStatusExceptionRes(parsedOutput, context);
|
|
1949
|
-
case "NoManagementAccountSLRExistsException":
|
|
1950
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
1951
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
1952
|
-
case "OperationNotPermittedException":
|
|
1953
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1954
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1955
|
-
case "UnsupportedOperationException":
|
|
1956
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1957
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1958
|
-
default:
|
|
1959
|
-
const parsedBody = parsedOutput.body;
|
|
1960
|
-
return throwDefaultError({
|
|
1961
|
-
output,
|
|
1962
|
-
parsedBody,
|
|
1963
|
-
errorCode,
|
|
1964
|
-
});
|
|
1965
|
-
}
|
|
1966
|
-
};
|
|
1967
|
-
export const de_ListTagsCommand = async (output, context) => {
|
|
663
|
+
export const de_ListPublicKeysCommand = async (output, context) => {
|
|
1968
664
|
if (output.statusCode >= 300) {
|
|
1969
|
-
return
|
|
665
|
+
return de_CommandError(output, context);
|
|
1970
666
|
}
|
|
1971
667
|
const data = await parseBody(output.body, context);
|
|
1972
668
|
let contents = {};
|
|
1973
|
-
contents =
|
|
669
|
+
contents = de_ListPublicKeysResponse(data, context);
|
|
1974
670
|
const response = {
|
|
1975
671
|
$metadata: deserializeMetadata(output),
|
|
1976
672
|
...contents,
|
|
1977
673
|
};
|
|
1978
674
|
return response;
|
|
1979
675
|
};
|
|
1980
|
-
const
|
|
1981
|
-
const parsedOutput = {
|
|
1982
|
-
...output,
|
|
1983
|
-
body: await parseErrorBody(output.body, context),
|
|
1984
|
-
};
|
|
1985
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1986
|
-
switch (errorCode) {
|
|
1987
|
-
case "ChannelARNInvalidException":
|
|
1988
|
-
case "com.amazonaws.cloudtrail#ChannelARNInvalidException":
|
|
1989
|
-
throw await de_ChannelARNInvalidExceptionRes(parsedOutput, context);
|
|
1990
|
-
case "CloudTrailARNInvalidException":
|
|
1991
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
1992
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
1993
|
-
case "EventDataStoreARNInvalidException":
|
|
1994
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
1995
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
1996
|
-
case "EventDataStoreNotFoundException":
|
|
1997
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
1998
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
1999
|
-
case "InactiveEventDataStoreException":
|
|
2000
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
2001
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
2002
|
-
case "InvalidTokenException":
|
|
2003
|
-
case "com.amazonaws.cloudtrail#InvalidTokenException":
|
|
2004
|
-
throw await de_InvalidTokenExceptionRes(parsedOutput, context);
|
|
2005
|
-
case "InvalidTrailNameException":
|
|
2006
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
2007
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
2008
|
-
case "NoManagementAccountSLRExistsException":
|
|
2009
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2010
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
2011
|
-
case "OperationNotPermittedException":
|
|
2012
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2013
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2014
|
-
case "ResourceNotFoundException":
|
|
2015
|
-
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
2016
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2017
|
-
case "ResourceTypeNotSupportedException":
|
|
2018
|
-
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
2019
|
-
throw await de_ResourceTypeNotSupportedExceptionRes(parsedOutput, context);
|
|
2020
|
-
case "UnsupportedOperationException":
|
|
2021
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2022
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2023
|
-
default:
|
|
2024
|
-
const parsedBody = parsedOutput.body;
|
|
2025
|
-
return throwDefaultError({
|
|
2026
|
-
output,
|
|
2027
|
-
parsedBody,
|
|
2028
|
-
errorCode,
|
|
2029
|
-
});
|
|
2030
|
-
}
|
|
2031
|
-
};
|
|
2032
|
-
export const de_ListTrailsCommand = async (output, context) => {
|
|
676
|
+
export const de_ListQueriesCommand = async (output, context) => {
|
|
2033
677
|
if (output.statusCode >= 300) {
|
|
2034
|
-
return
|
|
678
|
+
return de_CommandError(output, context);
|
|
2035
679
|
}
|
|
2036
680
|
const data = await parseBody(output.body, context);
|
|
2037
681
|
let contents = {};
|
|
2038
|
-
contents =
|
|
682
|
+
contents = de_ListQueriesResponse(data, context);
|
|
2039
683
|
const response = {
|
|
2040
684
|
$metadata: deserializeMetadata(output),
|
|
2041
685
|
...contents,
|
|
2042
686
|
};
|
|
2043
687
|
return response;
|
|
2044
688
|
};
|
|
2045
|
-
const
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
output,
|
|
2062
|
-
parsedBody,
|
|
2063
|
-
errorCode,
|
|
2064
|
-
});
|
|
689
|
+
export const de_ListTagsCommand = async (output, context) => {
|
|
690
|
+
if (output.statusCode >= 300) {
|
|
691
|
+
return de_CommandError(output, context);
|
|
692
|
+
}
|
|
693
|
+
const data = await parseBody(output.body, context);
|
|
694
|
+
let contents = {};
|
|
695
|
+
contents = _json(data);
|
|
696
|
+
const response = {
|
|
697
|
+
$metadata: deserializeMetadata(output),
|
|
698
|
+
...contents,
|
|
699
|
+
};
|
|
700
|
+
return response;
|
|
701
|
+
};
|
|
702
|
+
export const de_ListTrailsCommand = async (output, context) => {
|
|
703
|
+
if (output.statusCode >= 300) {
|
|
704
|
+
return de_CommandError(output, context);
|
|
2065
705
|
}
|
|
706
|
+
const data = await parseBody(output.body, context);
|
|
707
|
+
let contents = {};
|
|
708
|
+
contents = _json(data);
|
|
709
|
+
const response = {
|
|
710
|
+
$metadata: deserializeMetadata(output),
|
|
711
|
+
...contents,
|
|
712
|
+
};
|
|
713
|
+
return response;
|
|
2066
714
|
};
|
|
2067
715
|
export const de_LookupEventsCommand = async (output, context) => {
|
|
2068
716
|
if (output.statusCode >= 300) {
|
|
2069
|
-
return
|
|
717
|
+
return de_CommandError(output, context);
|
|
2070
718
|
}
|
|
2071
719
|
const data = await parseBody(output.body, context);
|
|
2072
720
|
let contents = {};
|
|
@@ -2077,46 +725,9 @@ export const de_LookupEventsCommand = async (output, context) => {
|
|
|
2077
725
|
};
|
|
2078
726
|
return response;
|
|
2079
727
|
};
|
|
2080
|
-
const de_LookupEventsCommandError = async (output, context) => {
|
|
2081
|
-
const parsedOutput = {
|
|
2082
|
-
...output,
|
|
2083
|
-
body: await parseErrorBody(output.body, context),
|
|
2084
|
-
};
|
|
2085
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2086
|
-
switch (errorCode) {
|
|
2087
|
-
case "InvalidEventCategoryException":
|
|
2088
|
-
case "com.amazonaws.cloudtrail#InvalidEventCategoryException":
|
|
2089
|
-
throw await de_InvalidEventCategoryExceptionRes(parsedOutput, context);
|
|
2090
|
-
case "InvalidLookupAttributesException":
|
|
2091
|
-
case "com.amazonaws.cloudtrail#InvalidLookupAttributesException":
|
|
2092
|
-
throw await de_InvalidLookupAttributesExceptionRes(parsedOutput, context);
|
|
2093
|
-
case "InvalidMaxResultsException":
|
|
2094
|
-
case "com.amazonaws.cloudtrail#InvalidMaxResultsException":
|
|
2095
|
-
throw await de_InvalidMaxResultsExceptionRes(parsedOutput, context);
|
|
2096
|
-
case "InvalidNextTokenException":
|
|
2097
|
-
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
2098
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2099
|
-
case "InvalidTimeRangeException":
|
|
2100
|
-
case "com.amazonaws.cloudtrail#InvalidTimeRangeException":
|
|
2101
|
-
throw await de_InvalidTimeRangeExceptionRes(parsedOutput, context);
|
|
2102
|
-
case "OperationNotPermittedException":
|
|
2103
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2104
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2105
|
-
case "UnsupportedOperationException":
|
|
2106
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2107
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2108
|
-
default:
|
|
2109
|
-
const parsedBody = parsedOutput.body;
|
|
2110
|
-
return throwDefaultError({
|
|
2111
|
-
output,
|
|
2112
|
-
parsedBody,
|
|
2113
|
-
errorCode,
|
|
2114
|
-
});
|
|
2115
|
-
}
|
|
2116
|
-
};
|
|
2117
728
|
export const de_PutEventSelectorsCommand = async (output, context) => {
|
|
2118
729
|
if (output.statusCode >= 300) {
|
|
2119
|
-
return
|
|
730
|
+
return de_CommandError(output, context);
|
|
2120
731
|
}
|
|
2121
732
|
const data = await parseBody(output.body, context);
|
|
2122
733
|
let contents = {};
|
|
@@ -2127,61 +738,9 @@ export const de_PutEventSelectorsCommand = async (output, context) => {
|
|
|
2127
738
|
};
|
|
2128
739
|
return response;
|
|
2129
740
|
};
|
|
2130
|
-
const de_PutEventSelectorsCommandError = async (output, context) => {
|
|
2131
|
-
const parsedOutput = {
|
|
2132
|
-
...output,
|
|
2133
|
-
body: await parseErrorBody(output.body, context),
|
|
2134
|
-
};
|
|
2135
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2136
|
-
switch (errorCode) {
|
|
2137
|
-
case "CloudTrailARNInvalidException":
|
|
2138
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
2139
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
2140
|
-
case "ConflictException":
|
|
2141
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
2142
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2143
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2144
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2145
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
2146
|
-
case "InvalidEventSelectorsException":
|
|
2147
|
-
case "com.amazonaws.cloudtrail#InvalidEventSelectorsException":
|
|
2148
|
-
throw await de_InvalidEventSelectorsExceptionRes(parsedOutput, context);
|
|
2149
|
-
case "InvalidHomeRegionException":
|
|
2150
|
-
case "com.amazonaws.cloudtrail#InvalidHomeRegionException":
|
|
2151
|
-
throw await de_InvalidHomeRegionExceptionRes(parsedOutput, context);
|
|
2152
|
-
case "InvalidTrailNameException":
|
|
2153
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
2154
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
2155
|
-
case "NoManagementAccountSLRExistsException":
|
|
2156
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2157
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
2158
|
-
case "NotOrganizationMasterAccountException":
|
|
2159
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2160
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
2161
|
-
case "OperationNotPermittedException":
|
|
2162
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2163
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2164
|
-
case "ThrottlingException":
|
|
2165
|
-
case "com.amazonaws.cloudtrail#ThrottlingException":
|
|
2166
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2167
|
-
case "TrailNotFoundException":
|
|
2168
|
-
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
2169
|
-
throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
|
|
2170
|
-
case "UnsupportedOperationException":
|
|
2171
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2172
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2173
|
-
default:
|
|
2174
|
-
const parsedBody = parsedOutput.body;
|
|
2175
|
-
return throwDefaultError({
|
|
2176
|
-
output,
|
|
2177
|
-
parsedBody,
|
|
2178
|
-
errorCode,
|
|
2179
|
-
});
|
|
2180
|
-
}
|
|
2181
|
-
};
|
|
2182
741
|
export const de_PutInsightSelectorsCommand = async (output, context) => {
|
|
2183
742
|
if (output.statusCode >= 300) {
|
|
2184
|
-
return
|
|
743
|
+
return de_CommandError(output, context);
|
|
2185
744
|
}
|
|
2186
745
|
const data = await parseBody(output.body, context);
|
|
2187
746
|
let contents = {};
|
|
@@ -2192,73 +751,9 @@ export const de_PutInsightSelectorsCommand = async (output, context) => {
|
|
|
2192
751
|
};
|
|
2193
752
|
return response;
|
|
2194
753
|
};
|
|
2195
|
-
const de_PutInsightSelectorsCommandError = async (output, context) => {
|
|
2196
|
-
const parsedOutput = {
|
|
2197
|
-
...output,
|
|
2198
|
-
body: await parseErrorBody(output.body, context),
|
|
2199
|
-
};
|
|
2200
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2201
|
-
switch (errorCode) {
|
|
2202
|
-
case "CloudTrailARNInvalidException":
|
|
2203
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
2204
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
2205
|
-
case "InsufficientEncryptionPolicyException":
|
|
2206
|
-
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
2207
|
-
throw await de_InsufficientEncryptionPolicyExceptionRes(parsedOutput, context);
|
|
2208
|
-
case "InsufficientS3BucketPolicyException":
|
|
2209
|
-
case "com.amazonaws.cloudtrail#InsufficientS3BucketPolicyException":
|
|
2210
|
-
throw await de_InsufficientS3BucketPolicyExceptionRes(parsedOutput, context);
|
|
2211
|
-
case "InvalidHomeRegionException":
|
|
2212
|
-
case "com.amazonaws.cloudtrail#InvalidHomeRegionException":
|
|
2213
|
-
throw await de_InvalidHomeRegionExceptionRes(parsedOutput, context);
|
|
2214
|
-
case "InvalidInsightSelectorsException":
|
|
2215
|
-
case "com.amazonaws.cloudtrail#InvalidInsightSelectorsException":
|
|
2216
|
-
throw await de_InvalidInsightSelectorsExceptionRes(parsedOutput, context);
|
|
2217
|
-
case "InvalidParameterCombinationException":
|
|
2218
|
-
case "com.amazonaws.cloudtrail#InvalidParameterCombinationException":
|
|
2219
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2220
|
-
case "InvalidParameterException":
|
|
2221
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2222
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2223
|
-
case "InvalidTrailNameException":
|
|
2224
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
2225
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
2226
|
-
case "KmsException":
|
|
2227
|
-
case "com.amazonaws.cloudtrail#KmsException":
|
|
2228
|
-
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
2229
|
-
case "NoManagementAccountSLRExistsException":
|
|
2230
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2231
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
2232
|
-
case "NotOrganizationMasterAccountException":
|
|
2233
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2234
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
2235
|
-
case "OperationNotPermittedException":
|
|
2236
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2237
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2238
|
-
case "S3BucketDoesNotExistException":
|
|
2239
|
-
case "com.amazonaws.cloudtrail#S3BucketDoesNotExistException":
|
|
2240
|
-
throw await de_S3BucketDoesNotExistExceptionRes(parsedOutput, context);
|
|
2241
|
-
case "ThrottlingException":
|
|
2242
|
-
case "com.amazonaws.cloudtrail#ThrottlingException":
|
|
2243
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2244
|
-
case "TrailNotFoundException":
|
|
2245
|
-
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
2246
|
-
throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
|
|
2247
|
-
case "UnsupportedOperationException":
|
|
2248
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2249
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2250
|
-
default:
|
|
2251
|
-
const parsedBody = parsedOutput.body;
|
|
2252
|
-
return throwDefaultError({
|
|
2253
|
-
output,
|
|
2254
|
-
parsedBody,
|
|
2255
|
-
errorCode,
|
|
2256
|
-
});
|
|
2257
|
-
}
|
|
2258
|
-
};
|
|
2259
754
|
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
2260
755
|
if (output.statusCode >= 300) {
|
|
2261
|
-
return
|
|
756
|
+
return de_CommandError(output, context);
|
|
2262
757
|
}
|
|
2263
758
|
const data = await parseBody(output.body, context);
|
|
2264
759
|
let contents = {};
|
|
@@ -2269,43 +764,9 @@ export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
|
2269
764
|
};
|
|
2270
765
|
return response;
|
|
2271
766
|
};
|
|
2272
|
-
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
2273
|
-
const parsedOutput = {
|
|
2274
|
-
...output,
|
|
2275
|
-
body: await parseErrorBody(output.body, context),
|
|
2276
|
-
};
|
|
2277
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2278
|
-
switch (errorCode) {
|
|
2279
|
-
case "OperationNotPermittedException":
|
|
2280
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2281
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2282
|
-
case "ResourceARNNotValidException":
|
|
2283
|
-
case "com.amazonaws.cloudtrail#ResourceARNNotValidException":
|
|
2284
|
-
throw await de_ResourceARNNotValidExceptionRes(parsedOutput, context);
|
|
2285
|
-
case "ResourceNotFoundException":
|
|
2286
|
-
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
2287
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2288
|
-
case "ResourcePolicyNotValidException":
|
|
2289
|
-
case "com.amazonaws.cloudtrail#ResourcePolicyNotValidException":
|
|
2290
|
-
throw await de_ResourcePolicyNotValidExceptionRes(parsedOutput, context);
|
|
2291
|
-
case "ResourceTypeNotSupportedException":
|
|
2292
|
-
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
2293
|
-
throw await de_ResourceTypeNotSupportedExceptionRes(parsedOutput, context);
|
|
2294
|
-
case "UnsupportedOperationException":
|
|
2295
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2296
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2297
|
-
default:
|
|
2298
|
-
const parsedBody = parsedOutput.body;
|
|
2299
|
-
return throwDefaultError({
|
|
2300
|
-
output,
|
|
2301
|
-
parsedBody,
|
|
2302
|
-
errorCode,
|
|
2303
|
-
});
|
|
2304
|
-
}
|
|
2305
|
-
};
|
|
2306
767
|
export const de_RegisterOrganizationDelegatedAdminCommand = async (output, context) => {
|
|
2307
768
|
if (output.statusCode >= 300) {
|
|
2308
|
-
return
|
|
769
|
+
return de_CommandError(output, context);
|
|
2309
770
|
}
|
|
2310
771
|
const data = await parseBody(output.body, context);
|
|
2311
772
|
let contents = {};
|
|
@@ -2316,64 +777,9 @@ export const de_RegisterOrganizationDelegatedAdminCommand = async (output, conte
|
|
|
2316
777
|
};
|
|
2317
778
|
return response;
|
|
2318
779
|
};
|
|
2319
|
-
const de_RegisterOrganizationDelegatedAdminCommandError = async (output, context) => {
|
|
2320
|
-
const parsedOutput = {
|
|
2321
|
-
...output,
|
|
2322
|
-
body: await parseErrorBody(output.body, context),
|
|
2323
|
-
};
|
|
2324
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2325
|
-
switch (errorCode) {
|
|
2326
|
-
case "AccountNotFoundException":
|
|
2327
|
-
case "com.amazonaws.cloudtrail#AccountNotFoundException":
|
|
2328
|
-
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
2329
|
-
case "AccountRegisteredException":
|
|
2330
|
-
case "com.amazonaws.cloudtrail#AccountRegisteredException":
|
|
2331
|
-
throw await de_AccountRegisteredExceptionRes(parsedOutput, context);
|
|
2332
|
-
case "CannotDelegateManagementAccountException":
|
|
2333
|
-
case "com.amazonaws.cloudtrail#CannotDelegateManagementAccountException":
|
|
2334
|
-
throw await de_CannotDelegateManagementAccountExceptionRes(parsedOutput, context);
|
|
2335
|
-
case "CloudTrailAccessNotEnabledException":
|
|
2336
|
-
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
2337
|
-
throw await de_CloudTrailAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
2338
|
-
case "ConflictException":
|
|
2339
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
2340
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2341
|
-
case "DelegatedAdminAccountLimitExceededException":
|
|
2342
|
-
case "com.amazonaws.cloudtrail#DelegatedAdminAccountLimitExceededException":
|
|
2343
|
-
throw await de_DelegatedAdminAccountLimitExceededExceptionRes(parsedOutput, context);
|
|
2344
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2345
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2346
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
2347
|
-
case "InvalidParameterException":
|
|
2348
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2349
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2350
|
-
case "NotOrganizationManagementAccountException":
|
|
2351
|
-
case "com.amazonaws.cloudtrail#NotOrganizationManagementAccountException":
|
|
2352
|
-
throw await de_NotOrganizationManagementAccountExceptionRes(parsedOutput, context);
|
|
2353
|
-
case "OperationNotPermittedException":
|
|
2354
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2355
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2356
|
-
case "OrganizationNotInAllFeaturesModeException":
|
|
2357
|
-
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
2358
|
-
throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
|
|
2359
|
-
case "OrganizationsNotInUseException":
|
|
2360
|
-
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
2361
|
-
throw await de_OrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2362
|
-
case "UnsupportedOperationException":
|
|
2363
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2364
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2365
|
-
default:
|
|
2366
|
-
const parsedBody = parsedOutput.body;
|
|
2367
|
-
return throwDefaultError({
|
|
2368
|
-
output,
|
|
2369
|
-
parsedBody,
|
|
2370
|
-
errorCode,
|
|
2371
|
-
});
|
|
2372
|
-
}
|
|
2373
|
-
};
|
|
2374
780
|
export const de_RemoveTagsCommand = async (output, context) => {
|
|
2375
781
|
if (output.statusCode >= 300) {
|
|
2376
|
-
return
|
|
782
|
+
return de_CommandError(output, context);
|
|
2377
783
|
}
|
|
2378
784
|
const data = await parseBody(output.body, context);
|
|
2379
785
|
let contents = {};
|
|
@@ -2384,67 +790,9 @@ export const de_RemoveTagsCommand = async (output, context) => {
|
|
|
2384
790
|
};
|
|
2385
791
|
return response;
|
|
2386
792
|
};
|
|
2387
|
-
const de_RemoveTagsCommandError = async (output, context) => {
|
|
2388
|
-
const parsedOutput = {
|
|
2389
|
-
...output,
|
|
2390
|
-
body: await parseErrorBody(output.body, context),
|
|
2391
|
-
};
|
|
2392
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2393
|
-
switch (errorCode) {
|
|
2394
|
-
case "ChannelARNInvalidException":
|
|
2395
|
-
case "com.amazonaws.cloudtrail#ChannelARNInvalidException":
|
|
2396
|
-
throw await de_ChannelARNInvalidExceptionRes(parsedOutput, context);
|
|
2397
|
-
case "ChannelNotFoundException":
|
|
2398
|
-
case "com.amazonaws.cloudtrail#ChannelNotFoundException":
|
|
2399
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
2400
|
-
case "CloudTrailARNInvalidException":
|
|
2401
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
2402
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
2403
|
-
case "EventDataStoreARNInvalidException":
|
|
2404
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
2405
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
2406
|
-
case "EventDataStoreNotFoundException":
|
|
2407
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
2408
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
2409
|
-
case "InactiveEventDataStoreException":
|
|
2410
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
2411
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
2412
|
-
case "InvalidTagParameterException":
|
|
2413
|
-
case "com.amazonaws.cloudtrail#InvalidTagParameterException":
|
|
2414
|
-
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
2415
|
-
case "InvalidTrailNameException":
|
|
2416
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
2417
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
2418
|
-
case "NoManagementAccountSLRExistsException":
|
|
2419
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2420
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
2421
|
-
case "NotOrganizationMasterAccountException":
|
|
2422
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2423
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
2424
|
-
case "OperationNotPermittedException":
|
|
2425
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2426
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2427
|
-
case "ResourceNotFoundException":
|
|
2428
|
-
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
2429
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2430
|
-
case "ResourceTypeNotSupportedException":
|
|
2431
|
-
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
2432
|
-
throw await de_ResourceTypeNotSupportedExceptionRes(parsedOutput, context);
|
|
2433
|
-
case "UnsupportedOperationException":
|
|
2434
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2435
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2436
|
-
default:
|
|
2437
|
-
const parsedBody = parsedOutput.body;
|
|
2438
|
-
return throwDefaultError({
|
|
2439
|
-
output,
|
|
2440
|
-
parsedBody,
|
|
2441
|
-
errorCode,
|
|
2442
|
-
});
|
|
2443
|
-
}
|
|
2444
|
-
};
|
|
2445
793
|
export const de_RestoreEventDataStoreCommand = async (output, context) => {
|
|
2446
794
|
if (output.statusCode >= 300) {
|
|
2447
|
-
return
|
|
795
|
+
return de_CommandError(output, context);
|
|
2448
796
|
}
|
|
2449
797
|
const data = await parseBody(output.body, context);
|
|
2450
798
|
let contents = {};
|
|
@@ -2455,64 +803,9 @@ export const de_RestoreEventDataStoreCommand = async (output, context) => {
|
|
|
2455
803
|
};
|
|
2456
804
|
return response;
|
|
2457
805
|
};
|
|
2458
|
-
const de_RestoreEventDataStoreCommandError = async (output, context) => {
|
|
2459
|
-
const parsedOutput = {
|
|
2460
|
-
...output,
|
|
2461
|
-
body: await parseErrorBody(output.body, context),
|
|
2462
|
-
};
|
|
2463
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2464
|
-
switch (errorCode) {
|
|
2465
|
-
case "CloudTrailAccessNotEnabledException":
|
|
2466
|
-
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
2467
|
-
throw await de_CloudTrailAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
2468
|
-
case "EventDataStoreARNInvalidException":
|
|
2469
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
2470
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
2471
|
-
case "EventDataStoreMaxLimitExceededException":
|
|
2472
|
-
case "com.amazonaws.cloudtrail#EventDataStoreMaxLimitExceededException":
|
|
2473
|
-
throw await de_EventDataStoreMaxLimitExceededExceptionRes(parsedOutput, context);
|
|
2474
|
-
case "EventDataStoreNotFoundException":
|
|
2475
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
2476
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
2477
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2478
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2479
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
2480
|
-
case "InvalidEventDataStoreStatusException":
|
|
2481
|
-
case "com.amazonaws.cloudtrail#InvalidEventDataStoreStatusException":
|
|
2482
|
-
throw await de_InvalidEventDataStoreStatusExceptionRes(parsedOutput, context);
|
|
2483
|
-
case "InvalidParameterException":
|
|
2484
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2485
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2486
|
-
case "NoManagementAccountSLRExistsException":
|
|
2487
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2488
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
2489
|
-
case "NotOrganizationMasterAccountException":
|
|
2490
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2491
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
2492
|
-
case "OperationNotPermittedException":
|
|
2493
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2494
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2495
|
-
case "OrganizationNotInAllFeaturesModeException":
|
|
2496
|
-
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
2497
|
-
throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
|
|
2498
|
-
case "OrganizationsNotInUseException":
|
|
2499
|
-
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
2500
|
-
throw await de_OrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2501
|
-
case "UnsupportedOperationException":
|
|
2502
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2503
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2504
|
-
default:
|
|
2505
|
-
const parsedBody = parsedOutput.body;
|
|
2506
|
-
return throwDefaultError({
|
|
2507
|
-
output,
|
|
2508
|
-
parsedBody,
|
|
2509
|
-
errorCode,
|
|
2510
|
-
});
|
|
2511
|
-
}
|
|
2512
|
-
};
|
|
2513
806
|
export const de_StartEventDataStoreIngestionCommand = async (output, context) => {
|
|
2514
807
|
if (output.statusCode >= 300) {
|
|
2515
|
-
return
|
|
808
|
+
return de_CommandError(output, context);
|
|
2516
809
|
}
|
|
2517
810
|
const data = await parseBody(output.body, context);
|
|
2518
811
|
let contents = {};
|
|
@@ -2523,55 +816,9 @@ export const de_StartEventDataStoreIngestionCommand = async (output, context) =>
|
|
|
2523
816
|
};
|
|
2524
817
|
return response;
|
|
2525
818
|
};
|
|
2526
|
-
const de_StartEventDataStoreIngestionCommandError = async (output, context) => {
|
|
2527
|
-
const parsedOutput = {
|
|
2528
|
-
...output,
|
|
2529
|
-
body: await parseErrorBody(output.body, context),
|
|
2530
|
-
};
|
|
2531
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2532
|
-
switch (errorCode) {
|
|
2533
|
-
case "EventDataStoreARNInvalidException":
|
|
2534
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
2535
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
2536
|
-
case "EventDataStoreNotFoundException":
|
|
2537
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
2538
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
2539
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2540
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2541
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
2542
|
-
case "InvalidEventDataStoreCategoryException":
|
|
2543
|
-
case "com.amazonaws.cloudtrail#InvalidEventDataStoreCategoryException":
|
|
2544
|
-
throw await de_InvalidEventDataStoreCategoryExceptionRes(parsedOutput, context);
|
|
2545
|
-
case "InvalidEventDataStoreStatusException":
|
|
2546
|
-
case "com.amazonaws.cloudtrail#InvalidEventDataStoreStatusException":
|
|
2547
|
-
throw await de_InvalidEventDataStoreStatusExceptionRes(parsedOutput, context);
|
|
2548
|
-
case "InvalidParameterException":
|
|
2549
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2550
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2551
|
-
case "NoManagementAccountSLRExistsException":
|
|
2552
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2553
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
2554
|
-
case "NotOrganizationMasterAccountException":
|
|
2555
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2556
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
2557
|
-
case "OperationNotPermittedException":
|
|
2558
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2559
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2560
|
-
case "UnsupportedOperationException":
|
|
2561
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2562
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2563
|
-
default:
|
|
2564
|
-
const parsedBody = parsedOutput.body;
|
|
2565
|
-
return throwDefaultError({
|
|
2566
|
-
output,
|
|
2567
|
-
parsedBody,
|
|
2568
|
-
errorCode,
|
|
2569
|
-
});
|
|
2570
|
-
}
|
|
2571
|
-
};
|
|
2572
819
|
export const de_StartImportCommand = async (output, context) => {
|
|
2573
820
|
if (output.statusCode >= 300) {
|
|
2574
|
-
return
|
|
821
|
+
return de_CommandError(output, context);
|
|
2575
822
|
}
|
|
2576
823
|
const data = await parseBody(output.body, context);
|
|
2577
824
|
let contents = {};
|
|
@@ -2582,61 +829,9 @@ export const de_StartImportCommand = async (output, context) => {
|
|
|
2582
829
|
};
|
|
2583
830
|
return response;
|
|
2584
831
|
};
|
|
2585
|
-
const de_StartImportCommandError = async (output, context) => {
|
|
2586
|
-
const parsedOutput = {
|
|
2587
|
-
...output,
|
|
2588
|
-
body: await parseErrorBody(output.body, context),
|
|
2589
|
-
};
|
|
2590
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2591
|
-
switch (errorCode) {
|
|
2592
|
-
case "AccountHasOngoingImportException":
|
|
2593
|
-
case "com.amazonaws.cloudtrail#AccountHasOngoingImportException":
|
|
2594
|
-
throw await de_AccountHasOngoingImportExceptionRes(parsedOutput, context);
|
|
2595
|
-
case "EventDataStoreARNInvalidException":
|
|
2596
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
2597
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
2598
|
-
case "EventDataStoreNotFoundException":
|
|
2599
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
2600
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
2601
|
-
case "ImportNotFoundException":
|
|
2602
|
-
case "com.amazonaws.cloudtrail#ImportNotFoundException":
|
|
2603
|
-
throw await de_ImportNotFoundExceptionRes(parsedOutput, context);
|
|
2604
|
-
case "InactiveEventDataStoreException":
|
|
2605
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
2606
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
2607
|
-
case "InsufficientEncryptionPolicyException":
|
|
2608
|
-
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
2609
|
-
throw await de_InsufficientEncryptionPolicyExceptionRes(parsedOutput, context);
|
|
2610
|
-
case "InvalidEventDataStoreCategoryException":
|
|
2611
|
-
case "com.amazonaws.cloudtrail#InvalidEventDataStoreCategoryException":
|
|
2612
|
-
throw await de_InvalidEventDataStoreCategoryExceptionRes(parsedOutput, context);
|
|
2613
|
-
case "InvalidEventDataStoreStatusException":
|
|
2614
|
-
case "com.amazonaws.cloudtrail#InvalidEventDataStoreStatusException":
|
|
2615
|
-
throw await de_InvalidEventDataStoreStatusExceptionRes(parsedOutput, context);
|
|
2616
|
-
case "InvalidImportSourceException":
|
|
2617
|
-
case "com.amazonaws.cloudtrail#InvalidImportSourceException":
|
|
2618
|
-
throw await de_InvalidImportSourceExceptionRes(parsedOutput, context);
|
|
2619
|
-
case "InvalidParameterException":
|
|
2620
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2621
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2622
|
-
case "OperationNotPermittedException":
|
|
2623
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2624
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2625
|
-
case "UnsupportedOperationException":
|
|
2626
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2627
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2628
|
-
default:
|
|
2629
|
-
const parsedBody = parsedOutput.body;
|
|
2630
|
-
return throwDefaultError({
|
|
2631
|
-
output,
|
|
2632
|
-
parsedBody,
|
|
2633
|
-
errorCode,
|
|
2634
|
-
});
|
|
2635
|
-
}
|
|
2636
|
-
};
|
|
2637
832
|
export const de_StartLoggingCommand = async (output, context) => {
|
|
2638
833
|
if (output.statusCode >= 300) {
|
|
2639
|
-
return
|
|
834
|
+
return de_CommandError(output, context);
|
|
2640
835
|
}
|
|
2641
836
|
const data = await parseBody(output.body, context);
|
|
2642
837
|
let contents = {};
|
|
@@ -2645,60 +840,11 @@ export const de_StartLoggingCommand = async (output, context) => {
|
|
|
2645
840
|
$metadata: deserializeMetadata(output),
|
|
2646
841
|
...contents,
|
|
2647
842
|
};
|
|
2648
|
-
return response;
|
|
2649
|
-
};
|
|
2650
|
-
const de_StartLoggingCommandError = async (output, context) => {
|
|
2651
|
-
const parsedOutput = {
|
|
2652
|
-
...output,
|
|
2653
|
-
body: await parseErrorBody(output.body, context),
|
|
2654
|
-
};
|
|
2655
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2656
|
-
switch (errorCode) {
|
|
2657
|
-
case "CloudTrailARNInvalidException":
|
|
2658
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
2659
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
2660
|
-
case "ConflictException":
|
|
2661
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
2662
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2663
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2664
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2665
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
2666
|
-
case "InvalidHomeRegionException":
|
|
2667
|
-
case "com.amazonaws.cloudtrail#InvalidHomeRegionException":
|
|
2668
|
-
throw await de_InvalidHomeRegionExceptionRes(parsedOutput, context);
|
|
2669
|
-
case "InvalidTrailNameException":
|
|
2670
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
2671
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
2672
|
-
case "NoManagementAccountSLRExistsException":
|
|
2673
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2674
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
2675
|
-
case "NotOrganizationMasterAccountException":
|
|
2676
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2677
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
2678
|
-
case "OperationNotPermittedException":
|
|
2679
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2680
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2681
|
-
case "ThrottlingException":
|
|
2682
|
-
case "com.amazonaws.cloudtrail#ThrottlingException":
|
|
2683
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2684
|
-
case "TrailNotFoundException":
|
|
2685
|
-
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
2686
|
-
throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
|
|
2687
|
-
case "UnsupportedOperationException":
|
|
2688
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2689
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2690
|
-
default:
|
|
2691
|
-
const parsedBody = parsedOutput.body;
|
|
2692
|
-
return throwDefaultError({
|
|
2693
|
-
output,
|
|
2694
|
-
parsedBody,
|
|
2695
|
-
errorCode,
|
|
2696
|
-
});
|
|
2697
|
-
}
|
|
843
|
+
return response;
|
|
2698
844
|
};
|
|
2699
845
|
export const de_StartQueryCommand = async (output, context) => {
|
|
2700
846
|
if (output.statusCode >= 300) {
|
|
2701
|
-
return
|
|
847
|
+
return de_CommandError(output, context);
|
|
2702
848
|
}
|
|
2703
849
|
const data = await parseBody(output.body, context);
|
|
2704
850
|
let contents = {};
|
|
@@ -2709,67 +855,9 @@ export const de_StartQueryCommand = async (output, context) => {
|
|
|
2709
855
|
};
|
|
2710
856
|
return response;
|
|
2711
857
|
};
|
|
2712
|
-
const de_StartQueryCommandError = async (output, context) => {
|
|
2713
|
-
const parsedOutput = {
|
|
2714
|
-
...output,
|
|
2715
|
-
body: await parseErrorBody(output.body, context),
|
|
2716
|
-
};
|
|
2717
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2718
|
-
switch (errorCode) {
|
|
2719
|
-
case "EventDataStoreARNInvalidException":
|
|
2720
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
2721
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
2722
|
-
case "EventDataStoreNotFoundException":
|
|
2723
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
2724
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
2725
|
-
case "InactiveEventDataStoreException":
|
|
2726
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
2727
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
2728
|
-
case "InsufficientEncryptionPolicyException":
|
|
2729
|
-
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
2730
|
-
throw await de_InsufficientEncryptionPolicyExceptionRes(parsedOutput, context);
|
|
2731
|
-
case "InsufficientS3BucketPolicyException":
|
|
2732
|
-
case "com.amazonaws.cloudtrail#InsufficientS3BucketPolicyException":
|
|
2733
|
-
throw await de_InsufficientS3BucketPolicyExceptionRes(parsedOutput, context);
|
|
2734
|
-
case "InvalidParameterException":
|
|
2735
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2736
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2737
|
-
case "InvalidQueryStatementException":
|
|
2738
|
-
case "com.amazonaws.cloudtrail#InvalidQueryStatementException":
|
|
2739
|
-
throw await de_InvalidQueryStatementExceptionRes(parsedOutput, context);
|
|
2740
|
-
case "InvalidS3BucketNameException":
|
|
2741
|
-
case "com.amazonaws.cloudtrail#InvalidS3BucketNameException":
|
|
2742
|
-
throw await de_InvalidS3BucketNameExceptionRes(parsedOutput, context);
|
|
2743
|
-
case "InvalidS3PrefixException":
|
|
2744
|
-
case "com.amazonaws.cloudtrail#InvalidS3PrefixException":
|
|
2745
|
-
throw await de_InvalidS3PrefixExceptionRes(parsedOutput, context);
|
|
2746
|
-
case "MaxConcurrentQueriesException":
|
|
2747
|
-
case "com.amazonaws.cloudtrail#MaxConcurrentQueriesException":
|
|
2748
|
-
throw await de_MaxConcurrentQueriesExceptionRes(parsedOutput, context);
|
|
2749
|
-
case "NoManagementAccountSLRExistsException":
|
|
2750
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2751
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
2752
|
-
case "OperationNotPermittedException":
|
|
2753
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2754
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2755
|
-
case "S3BucketDoesNotExistException":
|
|
2756
|
-
case "com.amazonaws.cloudtrail#S3BucketDoesNotExistException":
|
|
2757
|
-
throw await de_S3BucketDoesNotExistExceptionRes(parsedOutput, context);
|
|
2758
|
-
case "UnsupportedOperationException":
|
|
2759
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2760
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2761
|
-
default:
|
|
2762
|
-
const parsedBody = parsedOutput.body;
|
|
2763
|
-
return throwDefaultError({
|
|
2764
|
-
output,
|
|
2765
|
-
parsedBody,
|
|
2766
|
-
errorCode,
|
|
2767
|
-
});
|
|
2768
|
-
}
|
|
2769
|
-
};
|
|
2770
858
|
export const de_StopEventDataStoreIngestionCommand = async (output, context) => {
|
|
2771
859
|
if (output.statusCode >= 300) {
|
|
2772
|
-
return
|
|
860
|
+
return de_CommandError(output, context);
|
|
2773
861
|
}
|
|
2774
862
|
const data = await parseBody(output.body, context);
|
|
2775
863
|
let contents = {};
|
|
@@ -2780,55 +868,9 @@ export const de_StopEventDataStoreIngestionCommand = async (output, context) =>
|
|
|
2780
868
|
};
|
|
2781
869
|
return response;
|
|
2782
870
|
};
|
|
2783
|
-
const de_StopEventDataStoreIngestionCommandError = async (output, context) => {
|
|
2784
|
-
const parsedOutput = {
|
|
2785
|
-
...output,
|
|
2786
|
-
body: await parseErrorBody(output.body, context),
|
|
2787
|
-
};
|
|
2788
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2789
|
-
switch (errorCode) {
|
|
2790
|
-
case "EventDataStoreARNInvalidException":
|
|
2791
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
2792
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
2793
|
-
case "EventDataStoreNotFoundException":
|
|
2794
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
2795
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
2796
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2797
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2798
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
2799
|
-
case "InvalidEventDataStoreCategoryException":
|
|
2800
|
-
case "com.amazonaws.cloudtrail#InvalidEventDataStoreCategoryException":
|
|
2801
|
-
throw await de_InvalidEventDataStoreCategoryExceptionRes(parsedOutput, context);
|
|
2802
|
-
case "InvalidEventDataStoreStatusException":
|
|
2803
|
-
case "com.amazonaws.cloudtrail#InvalidEventDataStoreStatusException":
|
|
2804
|
-
throw await de_InvalidEventDataStoreStatusExceptionRes(parsedOutput, context);
|
|
2805
|
-
case "InvalidParameterException":
|
|
2806
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2807
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2808
|
-
case "NoManagementAccountSLRExistsException":
|
|
2809
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2810
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
2811
|
-
case "NotOrganizationMasterAccountException":
|
|
2812
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2813
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
2814
|
-
case "OperationNotPermittedException":
|
|
2815
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2816
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2817
|
-
case "UnsupportedOperationException":
|
|
2818
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2819
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2820
|
-
default:
|
|
2821
|
-
const parsedBody = parsedOutput.body;
|
|
2822
|
-
return throwDefaultError({
|
|
2823
|
-
output,
|
|
2824
|
-
parsedBody,
|
|
2825
|
-
errorCode,
|
|
2826
|
-
});
|
|
2827
|
-
}
|
|
2828
|
-
};
|
|
2829
871
|
export const de_StopImportCommand = async (output, context) => {
|
|
2830
872
|
if (output.statusCode >= 300) {
|
|
2831
|
-
return
|
|
873
|
+
return de_CommandError(output, context);
|
|
2832
874
|
}
|
|
2833
875
|
const data = await parseBody(output.body, context);
|
|
2834
876
|
let contents = {};
|
|
@@ -2839,37 +881,9 @@ export const de_StopImportCommand = async (output, context) => {
|
|
|
2839
881
|
};
|
|
2840
882
|
return response;
|
|
2841
883
|
};
|
|
2842
|
-
const de_StopImportCommandError = async (output, context) => {
|
|
2843
|
-
const parsedOutput = {
|
|
2844
|
-
...output,
|
|
2845
|
-
body: await parseErrorBody(output.body, context),
|
|
2846
|
-
};
|
|
2847
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2848
|
-
switch (errorCode) {
|
|
2849
|
-
case "ImportNotFoundException":
|
|
2850
|
-
case "com.amazonaws.cloudtrail#ImportNotFoundException":
|
|
2851
|
-
throw await de_ImportNotFoundExceptionRes(parsedOutput, context);
|
|
2852
|
-
case "InvalidParameterException":
|
|
2853
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2854
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2855
|
-
case "OperationNotPermittedException":
|
|
2856
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2857
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2858
|
-
case "UnsupportedOperationException":
|
|
2859
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2860
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2861
|
-
default:
|
|
2862
|
-
const parsedBody = parsedOutput.body;
|
|
2863
|
-
return throwDefaultError({
|
|
2864
|
-
output,
|
|
2865
|
-
parsedBody,
|
|
2866
|
-
errorCode,
|
|
2867
|
-
});
|
|
2868
|
-
}
|
|
2869
|
-
};
|
|
2870
884
|
export const de_StopLoggingCommand = async (output, context) => {
|
|
2871
885
|
if (output.statusCode >= 300) {
|
|
2872
|
-
return
|
|
886
|
+
return de_CommandError(output, context);
|
|
2873
887
|
}
|
|
2874
888
|
const data = await parseBody(output.body, context);
|
|
2875
889
|
let contents = {};
|
|
@@ -2880,58 +894,35 @@ export const de_StopLoggingCommand = async (output, context) => {
|
|
|
2880
894
|
};
|
|
2881
895
|
return response;
|
|
2882
896
|
};
|
|
2883
|
-
const
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
897
|
+
export const de_UpdateChannelCommand = async (output, context) => {
|
|
898
|
+
if (output.statusCode >= 300) {
|
|
899
|
+
return de_CommandError(output, context);
|
|
900
|
+
}
|
|
901
|
+
const data = await parseBody(output.body, context);
|
|
902
|
+
let contents = {};
|
|
903
|
+
contents = _json(data);
|
|
904
|
+
const response = {
|
|
905
|
+
$metadata: deserializeMetadata(output),
|
|
906
|
+
...contents,
|
|
2887
907
|
};
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
case "ConflictException":
|
|
2894
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
2895
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2896
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2897
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2898
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
2899
|
-
case "InvalidHomeRegionException":
|
|
2900
|
-
case "com.amazonaws.cloudtrail#InvalidHomeRegionException":
|
|
2901
|
-
throw await de_InvalidHomeRegionExceptionRes(parsedOutput, context);
|
|
2902
|
-
case "InvalidTrailNameException":
|
|
2903
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
2904
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
2905
|
-
case "NoManagementAccountSLRExistsException":
|
|
2906
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2907
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
2908
|
-
case "NotOrganizationMasterAccountException":
|
|
2909
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2910
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
2911
|
-
case "OperationNotPermittedException":
|
|
2912
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2913
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2914
|
-
case "ThrottlingException":
|
|
2915
|
-
case "com.amazonaws.cloudtrail#ThrottlingException":
|
|
2916
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2917
|
-
case "TrailNotFoundException":
|
|
2918
|
-
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
2919
|
-
throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
|
|
2920
|
-
case "UnsupportedOperationException":
|
|
2921
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2922
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2923
|
-
default:
|
|
2924
|
-
const parsedBody = parsedOutput.body;
|
|
2925
|
-
return throwDefaultError({
|
|
2926
|
-
output,
|
|
2927
|
-
parsedBody,
|
|
2928
|
-
errorCode,
|
|
2929
|
-
});
|
|
908
|
+
return response;
|
|
909
|
+
};
|
|
910
|
+
export const de_UpdateEventDataStoreCommand = async (output, context) => {
|
|
911
|
+
if (output.statusCode >= 300) {
|
|
912
|
+
return de_CommandError(output, context);
|
|
2930
913
|
}
|
|
914
|
+
const data = await parseBody(output.body, context);
|
|
915
|
+
let contents = {};
|
|
916
|
+
contents = de_UpdateEventDataStoreResponse(data, context);
|
|
917
|
+
const response = {
|
|
918
|
+
$metadata: deserializeMetadata(output),
|
|
919
|
+
...contents,
|
|
920
|
+
};
|
|
921
|
+
return response;
|
|
2931
922
|
};
|
|
2932
|
-
export const
|
|
923
|
+
export const de_UpdateTrailCommand = async (output, context) => {
|
|
2933
924
|
if (output.statusCode >= 300) {
|
|
2934
|
-
return
|
|
925
|
+
return de_CommandError(output, context);
|
|
2935
926
|
}
|
|
2936
927
|
const data = await parseBody(output.body, context);
|
|
2937
928
|
let contents = {};
|
|
@@ -2942,7 +933,7 @@ export const de_UpdateChannelCommand = async (output, context) => {
|
|
|
2942
933
|
};
|
|
2943
934
|
return response;
|
|
2944
935
|
};
|
|
2945
|
-
const
|
|
936
|
+
const de_CommandError = async (output, context) => {
|
|
2946
937
|
const parsedOutput = {
|
|
2947
938
|
...output,
|
|
2948
939
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2952,12 +943,15 @@ const de_UpdateChannelCommandError = async (output, context) => {
|
|
|
2952
943
|
case "ChannelARNInvalidException":
|
|
2953
944
|
case "com.amazonaws.cloudtrail#ChannelARNInvalidException":
|
|
2954
945
|
throw await de_ChannelARNInvalidExceptionRes(parsedOutput, context);
|
|
2955
|
-
case "ChannelAlreadyExistsException":
|
|
2956
|
-
case "com.amazonaws.cloudtrail#ChannelAlreadyExistsException":
|
|
2957
|
-
throw await de_ChannelAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2958
946
|
case "ChannelNotFoundException":
|
|
2959
947
|
case "com.amazonaws.cloudtrail#ChannelNotFoundException":
|
|
2960
948
|
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
949
|
+
case "CloudTrailARNInvalidException":
|
|
950
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
951
|
+
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
952
|
+
case "ConflictException":
|
|
953
|
+
case "com.amazonaws.cloudtrail#ConflictException":
|
|
954
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2961
955
|
case "EventDataStoreARNInvalidException":
|
|
2962
956
|
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
2963
957
|
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
@@ -2967,65 +961,63 @@ const de_UpdateChannelCommandError = async (output, context) => {
|
|
|
2967
961
|
case "InactiveEventDataStoreException":
|
|
2968
962
|
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
2969
963
|
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
2970
|
-
case "
|
|
2971
|
-
case "com.amazonaws.cloudtrail#
|
|
2972
|
-
throw await
|
|
2973
|
-
case "
|
|
2974
|
-
case "com.amazonaws.cloudtrail#
|
|
2975
|
-
throw await
|
|
964
|
+
case "InvalidTagParameterException":
|
|
965
|
+
case "com.amazonaws.cloudtrail#InvalidTagParameterException":
|
|
966
|
+
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
967
|
+
case "InvalidTrailNameException":
|
|
968
|
+
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
969
|
+
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
970
|
+
case "NoManagementAccountSLRExistsException":
|
|
971
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
972
|
+
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
973
|
+
case "NotOrganizationMasterAccountException":
|
|
974
|
+
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
975
|
+
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
2976
976
|
case "OperationNotPermittedException":
|
|
2977
977
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2978
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2979
|
-
case "
|
|
2980
|
-
case "com.amazonaws.cloudtrail#
|
|
2981
|
-
throw await
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
978
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
979
|
+
case "ResourceNotFoundException":
|
|
980
|
+
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
981
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
982
|
+
case "ResourceTypeNotSupportedException":
|
|
983
|
+
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
984
|
+
throw await de_ResourceTypeNotSupportedExceptionRes(parsedOutput, context);
|
|
985
|
+
case "TagsLimitExceededException":
|
|
986
|
+
case "com.amazonaws.cloudtrail#TagsLimitExceededException":
|
|
987
|
+
throw await de_TagsLimitExceededExceptionRes(parsedOutput, context);
|
|
988
|
+
case "UnsupportedOperationException":
|
|
989
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
990
|
+
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
991
|
+
case "InactiveQueryException":
|
|
992
|
+
case "com.amazonaws.cloudtrail#InactiveQueryException":
|
|
993
|
+
throw await de_InactiveQueryExceptionRes(parsedOutput, context);
|
|
994
|
+
case "InvalidParameterException":
|
|
995
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
996
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
997
|
+
case "QueryIdNotFoundException":
|
|
998
|
+
case "com.amazonaws.cloudtrail#QueryIdNotFoundException":
|
|
999
|
+
throw await de_QueryIdNotFoundExceptionRes(parsedOutput, context);
|
|
1000
|
+
case "ChannelAlreadyExistsException":
|
|
1001
|
+
case "com.amazonaws.cloudtrail#ChannelAlreadyExistsException":
|
|
1002
|
+
throw await de_ChannelAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1003
|
+
case "ChannelMaxLimitExceededException":
|
|
1004
|
+
case "com.amazonaws.cloudtrail#ChannelMaxLimitExceededException":
|
|
1005
|
+
throw await de_ChannelMaxLimitExceededExceptionRes(parsedOutput, context);
|
|
1006
|
+
case "InvalidEventDataStoreCategoryException":
|
|
1007
|
+
case "com.amazonaws.cloudtrail#InvalidEventDataStoreCategoryException":
|
|
1008
|
+
throw await de_InvalidEventDataStoreCategoryExceptionRes(parsedOutput, context);
|
|
1009
|
+
case "InvalidSourceException":
|
|
1010
|
+
case "com.amazonaws.cloudtrail#InvalidSourceException":
|
|
1011
|
+
throw await de_InvalidSourceExceptionRes(parsedOutput, context);
|
|
3011
1012
|
case "CloudTrailAccessNotEnabledException":
|
|
3012
1013
|
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
3013
1014
|
throw await de_CloudTrailAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
3014
|
-
case "EventDataStoreARNInvalidException":
|
|
3015
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
3016
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
3017
1015
|
case "EventDataStoreAlreadyExistsException":
|
|
3018
1016
|
case "com.amazonaws.cloudtrail#EventDataStoreAlreadyExistsException":
|
|
3019
1017
|
throw await de_EventDataStoreAlreadyExistsExceptionRes(parsedOutput, context);
|
|
3020
|
-
case "
|
|
3021
|
-
case "com.amazonaws.cloudtrail#
|
|
3022
|
-
throw await
|
|
3023
|
-
case "EventDataStoreNotFoundException":
|
|
3024
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
3025
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
3026
|
-
case "InactiveEventDataStoreException":
|
|
3027
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
3028
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
1018
|
+
case "EventDataStoreMaxLimitExceededException":
|
|
1019
|
+
case "com.amazonaws.cloudtrail#EventDataStoreMaxLimitExceededException":
|
|
1020
|
+
throw await de_EventDataStoreMaxLimitExceededExceptionRes(parsedOutput, context);
|
|
3029
1021
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
3030
1022
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
3031
1023
|
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
@@ -3035,89 +1027,27 @@ const de_UpdateEventDataStoreCommandError = async (output, context) => {
|
|
|
3035
1027
|
case "InvalidEventSelectorsException":
|
|
3036
1028
|
case "com.amazonaws.cloudtrail#InvalidEventSelectorsException":
|
|
3037
1029
|
throw await de_InvalidEventSelectorsExceptionRes(parsedOutput, context);
|
|
3038
|
-
case "InvalidInsightSelectorsException":
|
|
3039
|
-
case "com.amazonaws.cloudtrail#InvalidInsightSelectorsException":
|
|
3040
|
-
throw await de_InvalidInsightSelectorsExceptionRes(parsedOutput, context);
|
|
3041
1030
|
case "InvalidKmsKeyIdException":
|
|
3042
1031
|
case "com.amazonaws.cloudtrail#InvalidKmsKeyIdException":
|
|
3043
1032
|
throw await de_InvalidKmsKeyIdExceptionRes(parsedOutput, context);
|
|
3044
|
-
case "InvalidParameterException":
|
|
3045
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
3046
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3047
1033
|
case "KmsException":
|
|
3048
1034
|
case "com.amazonaws.cloudtrail#KmsException":
|
|
3049
1035
|
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
3050
1036
|
case "KmsKeyNotFoundException":
|
|
3051
1037
|
case "com.amazonaws.cloudtrail#KmsKeyNotFoundException":
|
|
3052
1038
|
throw await de_KmsKeyNotFoundExceptionRes(parsedOutput, context);
|
|
3053
|
-
case "NoManagementAccountSLRExistsException":
|
|
3054
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
3055
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
3056
|
-
case "NotOrganizationMasterAccountException":
|
|
3057
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
3058
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
3059
|
-
case "OperationNotPermittedException":
|
|
3060
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3061
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
3062
1039
|
case "OrganizationNotInAllFeaturesModeException":
|
|
3063
1040
|
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
3064
1041
|
throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
|
|
3065
1042
|
case "OrganizationsNotInUseException":
|
|
3066
1043
|
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
3067
1044
|
throw await de_OrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3068
|
-
case "UnsupportedOperationException":
|
|
3069
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3070
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3071
|
-
default:
|
|
3072
|
-
const parsedBody = parsedOutput.body;
|
|
3073
|
-
return throwDefaultError({
|
|
3074
|
-
output,
|
|
3075
|
-
parsedBody,
|
|
3076
|
-
errorCode,
|
|
3077
|
-
});
|
|
3078
|
-
}
|
|
3079
|
-
};
|
|
3080
|
-
export const de_UpdateTrailCommand = async (output, context) => {
|
|
3081
|
-
if (output.statusCode >= 300) {
|
|
3082
|
-
return de_UpdateTrailCommandError(output, context);
|
|
3083
|
-
}
|
|
3084
|
-
const data = await parseBody(output.body, context);
|
|
3085
|
-
let contents = {};
|
|
3086
|
-
contents = _json(data);
|
|
3087
|
-
const response = {
|
|
3088
|
-
$metadata: deserializeMetadata(output),
|
|
3089
|
-
...contents,
|
|
3090
|
-
};
|
|
3091
|
-
return response;
|
|
3092
|
-
};
|
|
3093
|
-
const de_UpdateTrailCommandError = async (output, context) => {
|
|
3094
|
-
const parsedOutput = {
|
|
3095
|
-
...output,
|
|
3096
|
-
body: await parseErrorBody(output.body, context),
|
|
3097
|
-
};
|
|
3098
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3099
|
-
switch (errorCode) {
|
|
3100
|
-
case "CloudTrailARNInvalidException":
|
|
3101
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
3102
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
3103
|
-
case "CloudTrailAccessNotEnabledException":
|
|
3104
|
-
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
3105
|
-
throw await de_CloudTrailAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
3106
1045
|
case "CloudTrailInvalidClientTokenIdException":
|
|
3107
1046
|
case "com.amazonaws.cloudtrail#CloudTrailInvalidClientTokenIdException":
|
|
3108
1047
|
throw await de_CloudTrailInvalidClientTokenIdExceptionRes(parsedOutput, context);
|
|
3109
1048
|
case "CloudWatchLogsDeliveryUnavailableException":
|
|
3110
1049
|
case "com.amazonaws.cloudtrail#CloudWatchLogsDeliveryUnavailableException":
|
|
3111
1050
|
throw await de_CloudWatchLogsDeliveryUnavailableExceptionRes(parsedOutput, context);
|
|
3112
|
-
case "ConflictException":
|
|
3113
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
3114
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3115
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
3116
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
3117
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
3118
|
-
case "InsufficientEncryptionPolicyException":
|
|
3119
|
-
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
3120
|
-
throw await de_InsufficientEncryptionPolicyExceptionRes(parsedOutput, context);
|
|
3121
1051
|
case "InsufficientS3BucketPolicyException":
|
|
3122
1052
|
case "com.amazonaws.cloudtrail#InsufficientS3BucketPolicyException":
|
|
3123
1053
|
throw await de_InsufficientS3BucketPolicyExceptionRes(parsedOutput, context);
|
|
@@ -3130,21 +1060,9 @@ const de_UpdateTrailCommandError = async (output, context) => {
|
|
|
3130
1060
|
case "InvalidCloudWatchLogsRoleArnException":
|
|
3131
1061
|
case "com.amazonaws.cloudtrail#InvalidCloudWatchLogsRoleArnException":
|
|
3132
1062
|
throw await de_InvalidCloudWatchLogsRoleArnExceptionRes(parsedOutput, context);
|
|
3133
|
-
case "InvalidEventSelectorsException":
|
|
3134
|
-
case "com.amazonaws.cloudtrail#InvalidEventSelectorsException":
|
|
3135
|
-
throw await de_InvalidEventSelectorsExceptionRes(parsedOutput, context);
|
|
3136
|
-
case "InvalidHomeRegionException":
|
|
3137
|
-
case "com.amazonaws.cloudtrail#InvalidHomeRegionException":
|
|
3138
|
-
throw await de_InvalidHomeRegionExceptionRes(parsedOutput, context);
|
|
3139
|
-
case "InvalidKmsKeyIdException":
|
|
3140
|
-
case "com.amazonaws.cloudtrail#InvalidKmsKeyIdException":
|
|
3141
|
-
throw await de_InvalidKmsKeyIdExceptionRes(parsedOutput, context);
|
|
3142
1063
|
case "InvalidParameterCombinationException":
|
|
3143
1064
|
case "com.amazonaws.cloudtrail#InvalidParameterCombinationException":
|
|
3144
1065
|
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3145
|
-
case "InvalidParameterException":
|
|
3146
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
3147
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3148
1066
|
case "InvalidS3BucketNameException":
|
|
3149
1067
|
case "com.amazonaws.cloudtrail#InvalidS3BucketNameException":
|
|
3150
1068
|
throw await de_InvalidS3BucketNameExceptionRes(parsedOutput, context);
|
|
@@ -3154,48 +1072,123 @@ const de_UpdateTrailCommandError = async (output, context) => {
|
|
|
3154
1072
|
case "InvalidSnsTopicNameException":
|
|
3155
1073
|
case "com.amazonaws.cloudtrail#InvalidSnsTopicNameException":
|
|
3156
1074
|
throw await de_InvalidSnsTopicNameExceptionRes(parsedOutput, context);
|
|
3157
|
-
case "InvalidTrailNameException":
|
|
3158
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
3159
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
3160
|
-
case "KmsException":
|
|
3161
|
-
case "com.amazonaws.cloudtrail#KmsException":
|
|
3162
|
-
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
3163
1075
|
case "KmsKeyDisabledException":
|
|
3164
1076
|
case "com.amazonaws.cloudtrail#KmsKeyDisabledException":
|
|
3165
1077
|
throw await de_KmsKeyDisabledExceptionRes(parsedOutput, context);
|
|
3166
|
-
case "
|
|
3167
|
-
case "com.amazonaws.cloudtrail#
|
|
3168
|
-
throw await
|
|
3169
|
-
case "NoManagementAccountSLRExistsException":
|
|
3170
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
3171
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
3172
|
-
case "NotOrganizationMasterAccountException":
|
|
3173
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
3174
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
3175
|
-
case "OperationNotPermittedException":
|
|
3176
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3177
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
3178
|
-
case "OrganizationNotInAllFeaturesModeException":
|
|
3179
|
-
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
3180
|
-
throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
|
|
3181
|
-
case "OrganizationsNotInUseException":
|
|
3182
|
-
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
3183
|
-
throw await de_OrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
1078
|
+
case "MaximumNumberOfTrailsExceededException":
|
|
1079
|
+
case "com.amazonaws.cloudtrail#MaximumNumberOfTrailsExceededException":
|
|
1080
|
+
throw await de_MaximumNumberOfTrailsExceededExceptionRes(parsedOutput, context);
|
|
3184
1081
|
case "S3BucketDoesNotExistException":
|
|
3185
1082
|
case "com.amazonaws.cloudtrail#S3BucketDoesNotExistException":
|
|
3186
1083
|
throw await de_S3BucketDoesNotExistExceptionRes(parsedOutput, context);
|
|
3187
1084
|
case "ThrottlingException":
|
|
3188
1085
|
case "com.amazonaws.cloudtrail#ThrottlingException":
|
|
3189
1086
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3190
|
-
case "
|
|
3191
|
-
case "com.amazonaws.cloudtrail#
|
|
3192
|
-
throw await
|
|
1087
|
+
case "TrailAlreadyExistsException":
|
|
1088
|
+
case "com.amazonaws.cloudtrail#TrailAlreadyExistsException":
|
|
1089
|
+
throw await de_TrailAlreadyExistsExceptionRes(parsedOutput, context);
|
|
3193
1090
|
case "TrailNotProvidedException":
|
|
3194
1091
|
case "com.amazonaws.cloudtrail#TrailNotProvidedException":
|
|
3195
1092
|
throw await de_TrailNotProvidedExceptionRes(parsedOutput, context);
|
|
3196
|
-
case "
|
|
3197
|
-
case "com.amazonaws.cloudtrail#
|
|
3198
|
-
throw await
|
|
1093
|
+
case "ChannelExistsForEDSException":
|
|
1094
|
+
case "com.amazonaws.cloudtrail#ChannelExistsForEDSException":
|
|
1095
|
+
throw await de_ChannelExistsForEDSExceptionRes(parsedOutput, context);
|
|
1096
|
+
case "EventDataStoreFederationEnabledException":
|
|
1097
|
+
case "com.amazonaws.cloudtrail#EventDataStoreFederationEnabledException":
|
|
1098
|
+
throw await de_EventDataStoreFederationEnabledExceptionRes(parsedOutput, context);
|
|
1099
|
+
case "EventDataStoreHasOngoingImportException":
|
|
1100
|
+
case "com.amazonaws.cloudtrail#EventDataStoreHasOngoingImportException":
|
|
1101
|
+
throw await de_EventDataStoreHasOngoingImportExceptionRes(parsedOutput, context);
|
|
1102
|
+
case "EventDataStoreTerminationProtectedException":
|
|
1103
|
+
case "com.amazonaws.cloudtrail#EventDataStoreTerminationProtectedException":
|
|
1104
|
+
throw await de_EventDataStoreTerminationProtectedExceptionRes(parsedOutput, context);
|
|
1105
|
+
case "ResourceARNNotValidException":
|
|
1106
|
+
case "com.amazonaws.cloudtrail#ResourceARNNotValidException":
|
|
1107
|
+
throw await de_ResourceARNNotValidExceptionRes(parsedOutput, context);
|
|
1108
|
+
case "ResourcePolicyNotFoundException":
|
|
1109
|
+
case "com.amazonaws.cloudtrail#ResourcePolicyNotFoundException":
|
|
1110
|
+
throw await de_ResourcePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1111
|
+
case "InvalidHomeRegionException":
|
|
1112
|
+
case "com.amazonaws.cloudtrail#InvalidHomeRegionException":
|
|
1113
|
+
throw await de_InvalidHomeRegionExceptionRes(parsedOutput, context);
|
|
1114
|
+
case "TrailNotFoundException":
|
|
1115
|
+
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
1116
|
+
throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
|
|
1117
|
+
case "AccountNotFoundException":
|
|
1118
|
+
case "com.amazonaws.cloudtrail#AccountNotFoundException":
|
|
1119
|
+
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
1120
|
+
case "AccountNotRegisteredException":
|
|
1121
|
+
case "com.amazonaws.cloudtrail#AccountNotRegisteredException":
|
|
1122
|
+
throw await de_AccountNotRegisteredExceptionRes(parsedOutput, context);
|
|
1123
|
+
case "NotOrganizationManagementAccountException":
|
|
1124
|
+
case "com.amazonaws.cloudtrail#NotOrganizationManagementAccountException":
|
|
1125
|
+
throw await de_NotOrganizationManagementAccountExceptionRes(parsedOutput, context);
|
|
1126
|
+
case "AccessDeniedException":
|
|
1127
|
+
case "com.amazonaws.cloudtrail#AccessDeniedException":
|
|
1128
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1129
|
+
case "ConcurrentModificationException":
|
|
1130
|
+
case "com.amazonaws.cloudtrail#ConcurrentModificationException":
|
|
1131
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1132
|
+
case "ImportNotFoundException":
|
|
1133
|
+
case "com.amazonaws.cloudtrail#ImportNotFoundException":
|
|
1134
|
+
throw await de_ImportNotFoundExceptionRes(parsedOutput, context);
|
|
1135
|
+
case "InsightNotEnabledException":
|
|
1136
|
+
case "com.amazonaws.cloudtrail#InsightNotEnabledException":
|
|
1137
|
+
throw await de_InsightNotEnabledExceptionRes(parsedOutput, context);
|
|
1138
|
+
case "InvalidMaxResultsException":
|
|
1139
|
+
case "com.amazonaws.cloudtrail#InvalidMaxResultsException":
|
|
1140
|
+
throw await de_InvalidMaxResultsExceptionRes(parsedOutput, context);
|
|
1141
|
+
case "InvalidNextTokenException":
|
|
1142
|
+
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
1143
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1144
|
+
case "InvalidTimeRangeException":
|
|
1145
|
+
case "com.amazonaws.cloudtrail#InvalidTimeRangeException":
|
|
1146
|
+
throw await de_InvalidTimeRangeExceptionRes(parsedOutput, context);
|
|
1147
|
+
case "InvalidTokenException":
|
|
1148
|
+
case "com.amazonaws.cloudtrail#InvalidTokenException":
|
|
1149
|
+
throw await de_InvalidTokenExceptionRes(parsedOutput, context);
|
|
1150
|
+
case "InvalidDateRangeException":
|
|
1151
|
+
case "com.amazonaws.cloudtrail#InvalidDateRangeException":
|
|
1152
|
+
throw await de_InvalidDateRangeExceptionRes(parsedOutput, context);
|
|
1153
|
+
case "InvalidQueryStatusException":
|
|
1154
|
+
case "com.amazonaws.cloudtrail#InvalidQueryStatusException":
|
|
1155
|
+
throw await de_InvalidQueryStatusExceptionRes(parsedOutput, context);
|
|
1156
|
+
case "InvalidEventCategoryException":
|
|
1157
|
+
case "com.amazonaws.cloudtrail#InvalidEventCategoryException":
|
|
1158
|
+
throw await de_InvalidEventCategoryExceptionRes(parsedOutput, context);
|
|
1159
|
+
case "InvalidLookupAttributesException":
|
|
1160
|
+
case "com.amazonaws.cloudtrail#InvalidLookupAttributesException":
|
|
1161
|
+
throw await de_InvalidLookupAttributesExceptionRes(parsedOutput, context);
|
|
1162
|
+
case "InvalidInsightSelectorsException":
|
|
1163
|
+
case "com.amazonaws.cloudtrail#InvalidInsightSelectorsException":
|
|
1164
|
+
throw await de_InvalidInsightSelectorsExceptionRes(parsedOutput, context);
|
|
1165
|
+
case "ResourcePolicyNotValidException":
|
|
1166
|
+
case "com.amazonaws.cloudtrail#ResourcePolicyNotValidException":
|
|
1167
|
+
throw await de_ResourcePolicyNotValidExceptionRes(parsedOutput, context);
|
|
1168
|
+
case "AccountRegisteredException":
|
|
1169
|
+
case "com.amazonaws.cloudtrail#AccountRegisteredException":
|
|
1170
|
+
throw await de_AccountRegisteredExceptionRes(parsedOutput, context);
|
|
1171
|
+
case "CannotDelegateManagementAccountException":
|
|
1172
|
+
case "com.amazonaws.cloudtrail#CannotDelegateManagementAccountException":
|
|
1173
|
+
throw await de_CannotDelegateManagementAccountExceptionRes(parsedOutput, context);
|
|
1174
|
+
case "DelegatedAdminAccountLimitExceededException":
|
|
1175
|
+
case "com.amazonaws.cloudtrail#DelegatedAdminAccountLimitExceededException":
|
|
1176
|
+
throw await de_DelegatedAdminAccountLimitExceededExceptionRes(parsedOutput, context);
|
|
1177
|
+
case "InvalidEventDataStoreStatusException":
|
|
1178
|
+
case "com.amazonaws.cloudtrail#InvalidEventDataStoreStatusException":
|
|
1179
|
+
throw await de_InvalidEventDataStoreStatusExceptionRes(parsedOutput, context);
|
|
1180
|
+
case "AccountHasOngoingImportException":
|
|
1181
|
+
case "com.amazonaws.cloudtrail#AccountHasOngoingImportException":
|
|
1182
|
+
throw await de_AccountHasOngoingImportExceptionRes(parsedOutput, context);
|
|
1183
|
+
case "InvalidImportSourceException":
|
|
1184
|
+
case "com.amazonaws.cloudtrail#InvalidImportSourceException":
|
|
1185
|
+
throw await de_InvalidImportSourceExceptionRes(parsedOutput, context);
|
|
1186
|
+
case "InvalidQueryStatementException":
|
|
1187
|
+
case "com.amazonaws.cloudtrail#InvalidQueryStatementException":
|
|
1188
|
+
throw await de_InvalidQueryStatementExceptionRes(parsedOutput, context);
|
|
1189
|
+
case "MaxConcurrentQueriesException":
|
|
1190
|
+
case "com.amazonaws.cloudtrail#MaxConcurrentQueriesException":
|
|
1191
|
+
throw await de_MaxConcurrentQueriesExceptionRes(parsedOutput, context);
|
|
3199
1192
|
default:
|
|
3200
1193
|
const parsedBody = parsedOutput.body;
|
|
3201
1194
|
return throwDefaultError({
|