@aws-sdk/client-directory-service 3.504.0 → 3.509.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 +201 -2265
- package/dist-es/protocols/Aws_json1_1.js +435 -2499
- package/package.json +3 -3
|
@@ -406,7 +406,7 @@ export const se_VerifyTrustCommand = async (input, context) => {
|
|
|
406
406
|
};
|
|
407
407
|
export const de_AcceptSharedDirectoryCommand = async (output, context) => {
|
|
408
408
|
if (output.statusCode >= 300) {
|
|
409
|
-
return
|
|
409
|
+
return de_CommandError(output, context);
|
|
410
410
|
}
|
|
411
411
|
const data = await parseBody(output.body, context);
|
|
412
412
|
let contents = {};
|
|
@@ -417,40 +417,9 @@ export const de_AcceptSharedDirectoryCommand = async (output, context) => {
|
|
|
417
417
|
};
|
|
418
418
|
return response;
|
|
419
419
|
};
|
|
420
|
-
const de_AcceptSharedDirectoryCommandError = async (output, context) => {
|
|
421
|
-
const parsedOutput = {
|
|
422
|
-
...output,
|
|
423
|
-
body: await parseErrorBody(output.body, context),
|
|
424
|
-
};
|
|
425
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
426
|
-
switch (errorCode) {
|
|
427
|
-
case "ClientException":
|
|
428
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
429
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
430
|
-
case "DirectoryAlreadySharedException":
|
|
431
|
-
case "com.amazonaws.directoryservice#DirectoryAlreadySharedException":
|
|
432
|
-
throw await de_DirectoryAlreadySharedExceptionRes(parsedOutput, context);
|
|
433
|
-
case "EntityDoesNotExistException":
|
|
434
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
435
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
436
|
-
case "InvalidParameterException":
|
|
437
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
438
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
439
|
-
case "ServiceException":
|
|
440
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
441
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
442
|
-
default:
|
|
443
|
-
const parsedBody = parsedOutput.body;
|
|
444
|
-
return throwDefaultError({
|
|
445
|
-
output,
|
|
446
|
-
parsedBody,
|
|
447
|
-
errorCode,
|
|
448
|
-
});
|
|
449
|
-
}
|
|
450
|
-
};
|
|
451
420
|
export const de_AddIpRoutesCommand = async (output, context) => {
|
|
452
421
|
if (output.statusCode >= 300) {
|
|
453
|
-
return
|
|
422
|
+
return de_CommandError(output, context);
|
|
454
423
|
}
|
|
455
424
|
const data = await parseBody(output.body, context);
|
|
456
425
|
let contents = {};
|
|
@@ -461,46 +430,9 @@ export const de_AddIpRoutesCommand = async (output, context) => {
|
|
|
461
430
|
};
|
|
462
431
|
return response;
|
|
463
432
|
};
|
|
464
|
-
const de_AddIpRoutesCommandError = async (output, context) => {
|
|
465
|
-
const parsedOutput = {
|
|
466
|
-
...output,
|
|
467
|
-
body: await parseErrorBody(output.body, context),
|
|
468
|
-
};
|
|
469
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
470
|
-
switch (errorCode) {
|
|
471
|
-
case "ClientException":
|
|
472
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
473
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
474
|
-
case "DirectoryUnavailableException":
|
|
475
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
476
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
477
|
-
case "EntityAlreadyExistsException":
|
|
478
|
-
case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
|
|
479
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
480
|
-
case "EntityDoesNotExistException":
|
|
481
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
482
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
483
|
-
case "InvalidParameterException":
|
|
484
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
485
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
486
|
-
case "IpRouteLimitExceededException":
|
|
487
|
-
case "com.amazonaws.directoryservice#IpRouteLimitExceededException":
|
|
488
|
-
throw await de_IpRouteLimitExceededExceptionRes(parsedOutput, context);
|
|
489
|
-
case "ServiceException":
|
|
490
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
491
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
492
|
-
default:
|
|
493
|
-
const parsedBody = parsedOutput.body;
|
|
494
|
-
return throwDefaultError({
|
|
495
|
-
output,
|
|
496
|
-
parsedBody,
|
|
497
|
-
errorCode,
|
|
498
|
-
});
|
|
499
|
-
}
|
|
500
|
-
};
|
|
501
433
|
export const de_AddRegionCommand = async (output, context) => {
|
|
502
434
|
if (output.statusCode >= 300) {
|
|
503
|
-
return
|
|
435
|
+
return de_CommandError(output, context);
|
|
504
436
|
}
|
|
505
437
|
const data = await parseBody(output.body, context);
|
|
506
438
|
let contents = {};
|
|
@@ -511,55 +443,9 @@ export const de_AddRegionCommand = async (output, context) => {
|
|
|
511
443
|
};
|
|
512
444
|
return response;
|
|
513
445
|
};
|
|
514
|
-
const de_AddRegionCommandError = async (output, context) => {
|
|
515
|
-
const parsedOutput = {
|
|
516
|
-
...output,
|
|
517
|
-
body: await parseErrorBody(output.body, context),
|
|
518
|
-
};
|
|
519
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
520
|
-
switch (errorCode) {
|
|
521
|
-
case "AccessDeniedException":
|
|
522
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
523
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
524
|
-
case "ClientException":
|
|
525
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
526
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
527
|
-
case "DirectoryAlreadyInRegionException":
|
|
528
|
-
case "com.amazonaws.directoryservice#DirectoryAlreadyInRegionException":
|
|
529
|
-
throw await de_DirectoryAlreadyInRegionExceptionRes(parsedOutput, context);
|
|
530
|
-
case "DirectoryDoesNotExistException":
|
|
531
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
532
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
533
|
-
case "DirectoryUnavailableException":
|
|
534
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
535
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
536
|
-
case "EntityDoesNotExistException":
|
|
537
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
538
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
539
|
-
case "InvalidParameterException":
|
|
540
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
541
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
542
|
-
case "RegionLimitExceededException":
|
|
543
|
-
case "com.amazonaws.directoryservice#RegionLimitExceededException":
|
|
544
|
-
throw await de_RegionLimitExceededExceptionRes(parsedOutput, context);
|
|
545
|
-
case "ServiceException":
|
|
546
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
547
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
548
|
-
case "UnsupportedOperationException":
|
|
549
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
550
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
551
|
-
default:
|
|
552
|
-
const parsedBody = parsedOutput.body;
|
|
553
|
-
return throwDefaultError({
|
|
554
|
-
output,
|
|
555
|
-
parsedBody,
|
|
556
|
-
errorCode,
|
|
557
|
-
});
|
|
558
|
-
}
|
|
559
|
-
};
|
|
560
446
|
export const de_AddTagsToResourceCommand = async (output, context) => {
|
|
561
447
|
if (output.statusCode >= 300) {
|
|
562
|
-
return
|
|
448
|
+
return de_CommandError(output, context);
|
|
563
449
|
}
|
|
564
450
|
const data = await parseBody(output.body, context);
|
|
565
451
|
let contents = {};
|
|
@@ -570,40 +456,9 @@ export const de_AddTagsToResourceCommand = async (output, context) => {
|
|
|
570
456
|
};
|
|
571
457
|
return response;
|
|
572
458
|
};
|
|
573
|
-
const de_AddTagsToResourceCommandError = async (output, context) => {
|
|
574
|
-
const parsedOutput = {
|
|
575
|
-
...output,
|
|
576
|
-
body: await parseErrorBody(output.body, context),
|
|
577
|
-
};
|
|
578
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
579
|
-
switch (errorCode) {
|
|
580
|
-
case "ClientException":
|
|
581
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
582
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
583
|
-
case "EntityDoesNotExistException":
|
|
584
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
585
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
586
|
-
case "InvalidParameterException":
|
|
587
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
588
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
589
|
-
case "ServiceException":
|
|
590
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
591
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
592
|
-
case "TagLimitExceededException":
|
|
593
|
-
case "com.amazonaws.directoryservice#TagLimitExceededException":
|
|
594
|
-
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
595
|
-
default:
|
|
596
|
-
const parsedBody = parsedOutput.body;
|
|
597
|
-
return throwDefaultError({
|
|
598
|
-
output,
|
|
599
|
-
parsedBody,
|
|
600
|
-
errorCode,
|
|
601
|
-
});
|
|
602
|
-
}
|
|
603
|
-
};
|
|
604
459
|
export const de_CancelSchemaExtensionCommand = async (output, context) => {
|
|
605
460
|
if (output.statusCode >= 300) {
|
|
606
|
-
return
|
|
461
|
+
return de_CommandError(output, context);
|
|
607
462
|
}
|
|
608
463
|
const data = await parseBody(output.body, context);
|
|
609
464
|
let contents = {};
|
|
@@ -614,34 +469,9 @@ export const de_CancelSchemaExtensionCommand = async (output, context) => {
|
|
|
614
469
|
};
|
|
615
470
|
return response;
|
|
616
471
|
};
|
|
617
|
-
const de_CancelSchemaExtensionCommandError = async (output, context) => {
|
|
618
|
-
const parsedOutput = {
|
|
619
|
-
...output,
|
|
620
|
-
body: await parseErrorBody(output.body, context),
|
|
621
|
-
};
|
|
622
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
623
|
-
switch (errorCode) {
|
|
624
|
-
case "ClientException":
|
|
625
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
626
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
627
|
-
case "EntityDoesNotExistException":
|
|
628
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
629
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
630
|
-
case "ServiceException":
|
|
631
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
632
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
633
|
-
default:
|
|
634
|
-
const parsedBody = parsedOutput.body;
|
|
635
|
-
return throwDefaultError({
|
|
636
|
-
output,
|
|
637
|
-
parsedBody,
|
|
638
|
-
errorCode,
|
|
639
|
-
});
|
|
640
|
-
}
|
|
641
|
-
};
|
|
642
472
|
export const de_ConnectDirectoryCommand = async (output, context) => {
|
|
643
473
|
if (output.statusCode >= 300) {
|
|
644
|
-
return
|
|
474
|
+
return de_CommandError(output, context);
|
|
645
475
|
}
|
|
646
476
|
const data = await parseBody(output.body, context);
|
|
647
477
|
let contents = {};
|
|
@@ -652,37 +482,9 @@ export const de_ConnectDirectoryCommand = async (output, context) => {
|
|
|
652
482
|
};
|
|
653
483
|
return response;
|
|
654
484
|
};
|
|
655
|
-
const de_ConnectDirectoryCommandError = async (output, context) => {
|
|
656
|
-
const parsedOutput = {
|
|
657
|
-
...output,
|
|
658
|
-
body: await parseErrorBody(output.body, context),
|
|
659
|
-
};
|
|
660
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
661
|
-
switch (errorCode) {
|
|
662
|
-
case "ClientException":
|
|
663
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
664
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
665
|
-
case "DirectoryLimitExceededException":
|
|
666
|
-
case "com.amazonaws.directoryservice#DirectoryLimitExceededException":
|
|
667
|
-
throw await de_DirectoryLimitExceededExceptionRes(parsedOutput, context);
|
|
668
|
-
case "InvalidParameterException":
|
|
669
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
670
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
671
|
-
case "ServiceException":
|
|
672
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
673
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
674
|
-
default:
|
|
675
|
-
const parsedBody = parsedOutput.body;
|
|
676
|
-
return throwDefaultError({
|
|
677
|
-
output,
|
|
678
|
-
parsedBody,
|
|
679
|
-
errorCode,
|
|
680
|
-
});
|
|
681
|
-
}
|
|
682
|
-
};
|
|
683
485
|
export const de_CreateAliasCommand = async (output, context) => {
|
|
684
486
|
if (output.statusCode >= 300) {
|
|
685
|
-
return
|
|
487
|
+
return de_CommandError(output, context);
|
|
686
488
|
}
|
|
687
489
|
const data = await parseBody(output.body, context);
|
|
688
490
|
let contents = {};
|
|
@@ -693,40 +495,35 @@ export const de_CreateAliasCommand = async (output, context) => {
|
|
|
693
495
|
};
|
|
694
496
|
return response;
|
|
695
497
|
};
|
|
696
|
-
const
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
498
|
+
export const de_CreateComputerCommand = async (output, context) => {
|
|
499
|
+
if (output.statusCode >= 300) {
|
|
500
|
+
return de_CommandError(output, context);
|
|
501
|
+
}
|
|
502
|
+
const data = await parseBody(output.body, context);
|
|
503
|
+
let contents = {};
|
|
504
|
+
contents = _json(data);
|
|
505
|
+
const response = {
|
|
506
|
+
$metadata: deserializeMetadata(output),
|
|
507
|
+
...contents,
|
|
700
508
|
};
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
case "EntityAlreadyExistsException":
|
|
707
|
-
case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
|
|
708
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
709
|
-
case "EntityDoesNotExistException":
|
|
710
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
711
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
712
|
-
case "InvalidParameterException":
|
|
713
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
714
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
715
|
-
case "ServiceException":
|
|
716
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
717
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
718
|
-
default:
|
|
719
|
-
const parsedBody = parsedOutput.body;
|
|
720
|
-
return throwDefaultError({
|
|
721
|
-
output,
|
|
722
|
-
parsedBody,
|
|
723
|
-
errorCode,
|
|
724
|
-
});
|
|
509
|
+
return response;
|
|
510
|
+
};
|
|
511
|
+
export const de_CreateConditionalForwarderCommand = async (output, context) => {
|
|
512
|
+
if (output.statusCode >= 300) {
|
|
513
|
+
return de_CommandError(output, context);
|
|
725
514
|
}
|
|
515
|
+
const data = await parseBody(output.body, context);
|
|
516
|
+
let contents = {};
|
|
517
|
+
contents = _json(data);
|
|
518
|
+
const response = {
|
|
519
|
+
$metadata: deserializeMetadata(output),
|
|
520
|
+
...contents,
|
|
521
|
+
};
|
|
522
|
+
return response;
|
|
726
523
|
};
|
|
727
|
-
export const
|
|
524
|
+
export const de_CreateDirectoryCommand = async (output, context) => {
|
|
728
525
|
if (output.statusCode >= 300) {
|
|
729
|
-
return
|
|
526
|
+
return de_CommandError(output, context);
|
|
730
527
|
}
|
|
731
528
|
const data = await parseBody(output.body, context);
|
|
732
529
|
let contents = {};
|
|
@@ -737,49 +534,22 @@ export const de_CreateComputerCommand = async (output, context) => {
|
|
|
737
534
|
};
|
|
738
535
|
return response;
|
|
739
536
|
};
|
|
740
|
-
const
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
537
|
+
export const de_CreateLogSubscriptionCommand = async (output, context) => {
|
|
538
|
+
if (output.statusCode >= 300) {
|
|
539
|
+
return de_CommandError(output, context);
|
|
540
|
+
}
|
|
541
|
+
const data = await parseBody(output.body, context);
|
|
542
|
+
let contents = {};
|
|
543
|
+
contents = _json(data);
|
|
544
|
+
const response = {
|
|
545
|
+
$metadata: deserializeMetadata(output),
|
|
546
|
+
...contents,
|
|
744
547
|
};
|
|
745
|
-
|
|
746
|
-
switch (errorCode) {
|
|
747
|
-
case "AuthenticationFailedException":
|
|
748
|
-
case "com.amazonaws.directoryservice#AuthenticationFailedException":
|
|
749
|
-
throw await de_AuthenticationFailedExceptionRes(parsedOutput, context);
|
|
750
|
-
case "ClientException":
|
|
751
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
752
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
753
|
-
case "DirectoryUnavailableException":
|
|
754
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
755
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
756
|
-
case "EntityAlreadyExistsException":
|
|
757
|
-
case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
|
|
758
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
759
|
-
case "EntityDoesNotExistException":
|
|
760
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
761
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
762
|
-
case "InvalidParameterException":
|
|
763
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
764
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
765
|
-
case "ServiceException":
|
|
766
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
767
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
768
|
-
case "UnsupportedOperationException":
|
|
769
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
770
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
771
|
-
default:
|
|
772
|
-
const parsedBody = parsedOutput.body;
|
|
773
|
-
return throwDefaultError({
|
|
774
|
-
output,
|
|
775
|
-
parsedBody,
|
|
776
|
-
errorCode,
|
|
777
|
-
});
|
|
778
|
-
}
|
|
548
|
+
return response;
|
|
779
549
|
};
|
|
780
|
-
export const
|
|
550
|
+
export const de_CreateMicrosoftADCommand = async (output, context) => {
|
|
781
551
|
if (output.statusCode >= 300) {
|
|
782
|
-
return
|
|
552
|
+
return de_CommandError(output, context);
|
|
783
553
|
}
|
|
784
554
|
const data = await parseBody(output.body, context);
|
|
785
555
|
let contents = {};
|
|
@@ -790,46 +560,9 @@ export const de_CreateConditionalForwarderCommand = async (output, context) => {
|
|
|
790
560
|
};
|
|
791
561
|
return response;
|
|
792
562
|
};
|
|
793
|
-
const
|
|
794
|
-
const parsedOutput = {
|
|
795
|
-
...output,
|
|
796
|
-
body: await parseErrorBody(output.body, context),
|
|
797
|
-
};
|
|
798
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
799
|
-
switch (errorCode) {
|
|
800
|
-
case "ClientException":
|
|
801
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
802
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
803
|
-
case "DirectoryUnavailableException":
|
|
804
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
805
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
806
|
-
case "EntityAlreadyExistsException":
|
|
807
|
-
case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
|
|
808
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
809
|
-
case "EntityDoesNotExistException":
|
|
810
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
811
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
812
|
-
case "InvalidParameterException":
|
|
813
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
814
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
815
|
-
case "ServiceException":
|
|
816
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
817
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
818
|
-
case "UnsupportedOperationException":
|
|
819
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
820
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
821
|
-
default:
|
|
822
|
-
const parsedBody = parsedOutput.body;
|
|
823
|
-
return throwDefaultError({
|
|
824
|
-
output,
|
|
825
|
-
parsedBody,
|
|
826
|
-
errorCode,
|
|
827
|
-
});
|
|
828
|
-
}
|
|
829
|
-
};
|
|
830
|
-
export const de_CreateDirectoryCommand = async (output, context) => {
|
|
563
|
+
export const de_CreateSnapshotCommand = async (output, context) => {
|
|
831
564
|
if (output.statusCode >= 300) {
|
|
832
|
-
return
|
|
565
|
+
return de_CommandError(output, context);
|
|
833
566
|
}
|
|
834
567
|
const data = await parseBody(output.body, context);
|
|
835
568
|
let contents = {};
|
|
@@ -840,37 +573,9 @@ export const de_CreateDirectoryCommand = async (output, context) => {
|
|
|
840
573
|
};
|
|
841
574
|
return response;
|
|
842
575
|
};
|
|
843
|
-
const
|
|
844
|
-
const parsedOutput = {
|
|
845
|
-
...output,
|
|
846
|
-
body: await parseErrorBody(output.body, context),
|
|
847
|
-
};
|
|
848
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
849
|
-
switch (errorCode) {
|
|
850
|
-
case "ClientException":
|
|
851
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
852
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
853
|
-
case "DirectoryLimitExceededException":
|
|
854
|
-
case "com.amazonaws.directoryservice#DirectoryLimitExceededException":
|
|
855
|
-
throw await de_DirectoryLimitExceededExceptionRes(parsedOutput, context);
|
|
856
|
-
case "InvalidParameterException":
|
|
857
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
858
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
859
|
-
case "ServiceException":
|
|
860
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
861
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
862
|
-
default:
|
|
863
|
-
const parsedBody = parsedOutput.body;
|
|
864
|
-
return throwDefaultError({
|
|
865
|
-
output,
|
|
866
|
-
parsedBody,
|
|
867
|
-
errorCode,
|
|
868
|
-
});
|
|
869
|
-
}
|
|
870
|
-
};
|
|
871
|
-
export const de_CreateLogSubscriptionCommand = async (output, context) => {
|
|
576
|
+
export const de_CreateTrustCommand = async (output, context) => {
|
|
872
577
|
if (output.statusCode >= 300) {
|
|
873
|
-
return
|
|
578
|
+
return de_CommandError(output, context);
|
|
874
579
|
}
|
|
875
580
|
const data = await parseBody(output.body, context);
|
|
876
581
|
let contents = {};
|
|
@@ -881,43 +586,9 @@ export const de_CreateLogSubscriptionCommand = async (output, context) => {
|
|
|
881
586
|
};
|
|
882
587
|
return response;
|
|
883
588
|
};
|
|
884
|
-
const
|
|
885
|
-
const parsedOutput = {
|
|
886
|
-
...output,
|
|
887
|
-
body: await parseErrorBody(output.body, context),
|
|
888
|
-
};
|
|
889
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
890
|
-
switch (errorCode) {
|
|
891
|
-
case "ClientException":
|
|
892
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
893
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
894
|
-
case "EntityAlreadyExistsException":
|
|
895
|
-
case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
|
|
896
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
897
|
-
case "EntityDoesNotExistException":
|
|
898
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
899
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
900
|
-
case "InsufficientPermissionsException":
|
|
901
|
-
case "com.amazonaws.directoryservice#InsufficientPermissionsException":
|
|
902
|
-
throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
|
|
903
|
-
case "ServiceException":
|
|
904
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
905
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
906
|
-
case "UnsupportedOperationException":
|
|
907
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
908
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
909
|
-
default:
|
|
910
|
-
const parsedBody = parsedOutput.body;
|
|
911
|
-
return throwDefaultError({
|
|
912
|
-
output,
|
|
913
|
-
parsedBody,
|
|
914
|
-
errorCode,
|
|
915
|
-
});
|
|
916
|
-
}
|
|
917
|
-
};
|
|
918
|
-
export const de_CreateMicrosoftADCommand = async (output, context) => {
|
|
589
|
+
export const de_DeleteConditionalForwarderCommand = async (output, context) => {
|
|
919
590
|
if (output.statusCode >= 300) {
|
|
920
|
-
return
|
|
591
|
+
return de_CommandError(output, context);
|
|
921
592
|
}
|
|
922
593
|
const data = await parseBody(output.body, context);
|
|
923
594
|
let contents = {};
|
|
@@ -928,40 +599,9 @@ export const de_CreateMicrosoftADCommand = async (output, context) => {
|
|
|
928
599
|
};
|
|
929
600
|
return response;
|
|
930
601
|
};
|
|
931
|
-
const
|
|
932
|
-
const parsedOutput = {
|
|
933
|
-
...output,
|
|
934
|
-
body: await parseErrorBody(output.body, context),
|
|
935
|
-
};
|
|
936
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
937
|
-
switch (errorCode) {
|
|
938
|
-
case "ClientException":
|
|
939
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
940
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
941
|
-
case "DirectoryLimitExceededException":
|
|
942
|
-
case "com.amazonaws.directoryservice#DirectoryLimitExceededException":
|
|
943
|
-
throw await de_DirectoryLimitExceededExceptionRes(parsedOutput, context);
|
|
944
|
-
case "InvalidParameterException":
|
|
945
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
946
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
947
|
-
case "ServiceException":
|
|
948
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
949
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
950
|
-
case "UnsupportedOperationException":
|
|
951
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
952
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
953
|
-
default:
|
|
954
|
-
const parsedBody = parsedOutput.body;
|
|
955
|
-
return throwDefaultError({
|
|
956
|
-
output,
|
|
957
|
-
parsedBody,
|
|
958
|
-
errorCode,
|
|
959
|
-
});
|
|
960
|
-
}
|
|
961
|
-
};
|
|
962
|
-
export const de_CreateSnapshotCommand = async (output, context) => {
|
|
602
|
+
export const de_DeleteDirectoryCommand = async (output, context) => {
|
|
963
603
|
if (output.statusCode >= 300) {
|
|
964
|
-
return
|
|
604
|
+
return de_CommandError(output, context);
|
|
965
605
|
}
|
|
966
606
|
const data = await parseBody(output.body, context);
|
|
967
607
|
let contents = {};
|
|
@@ -972,40 +612,22 @@ export const de_CreateSnapshotCommand = async (output, context) => {
|
|
|
972
612
|
};
|
|
973
613
|
return response;
|
|
974
614
|
};
|
|
975
|
-
const
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
body: await parseErrorBody(output.body, context),
|
|
979
|
-
};
|
|
980
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
981
|
-
switch (errorCode) {
|
|
982
|
-
case "ClientException":
|
|
983
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
984
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
985
|
-
case "EntityDoesNotExistException":
|
|
986
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
987
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
988
|
-
case "InvalidParameterException":
|
|
989
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
990
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
991
|
-
case "ServiceException":
|
|
992
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
993
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
994
|
-
case "SnapshotLimitExceededException":
|
|
995
|
-
case "com.amazonaws.directoryservice#SnapshotLimitExceededException":
|
|
996
|
-
throw await de_SnapshotLimitExceededExceptionRes(parsedOutput, context);
|
|
997
|
-
default:
|
|
998
|
-
const parsedBody = parsedOutput.body;
|
|
999
|
-
return throwDefaultError({
|
|
1000
|
-
output,
|
|
1001
|
-
parsedBody,
|
|
1002
|
-
errorCode,
|
|
1003
|
-
});
|
|
615
|
+
export const de_DeleteLogSubscriptionCommand = async (output, context) => {
|
|
616
|
+
if (output.statusCode >= 300) {
|
|
617
|
+
return de_CommandError(output, context);
|
|
1004
618
|
}
|
|
619
|
+
const data = await parseBody(output.body, context);
|
|
620
|
+
let contents = {};
|
|
621
|
+
contents = _json(data);
|
|
622
|
+
const response = {
|
|
623
|
+
$metadata: deserializeMetadata(output),
|
|
624
|
+
...contents,
|
|
625
|
+
};
|
|
626
|
+
return response;
|
|
1005
627
|
};
|
|
1006
|
-
export const
|
|
628
|
+
export const de_DeleteSnapshotCommand = async (output, context) => {
|
|
1007
629
|
if (output.statusCode >= 300) {
|
|
1008
|
-
return
|
|
630
|
+
return de_CommandError(output, context);
|
|
1009
631
|
}
|
|
1010
632
|
const data = await parseBody(output.body, context);
|
|
1011
633
|
let contents = {};
|
|
@@ -1016,43 +638,22 @@ export const de_CreateTrustCommand = async (output, context) => {
|
|
|
1016
638
|
};
|
|
1017
639
|
return response;
|
|
1018
640
|
};
|
|
1019
|
-
const
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
body: await parseErrorBody(output.body, context),
|
|
1023
|
-
};
|
|
1024
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1025
|
-
switch (errorCode) {
|
|
1026
|
-
case "ClientException":
|
|
1027
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1028
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1029
|
-
case "EntityAlreadyExistsException":
|
|
1030
|
-
case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
|
|
1031
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1032
|
-
case "EntityDoesNotExistException":
|
|
1033
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1034
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1035
|
-
case "InvalidParameterException":
|
|
1036
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1037
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1038
|
-
case "ServiceException":
|
|
1039
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1040
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1041
|
-
case "UnsupportedOperationException":
|
|
1042
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1043
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1044
|
-
default:
|
|
1045
|
-
const parsedBody = parsedOutput.body;
|
|
1046
|
-
return throwDefaultError({
|
|
1047
|
-
output,
|
|
1048
|
-
parsedBody,
|
|
1049
|
-
errorCode,
|
|
1050
|
-
});
|
|
641
|
+
export const de_DeleteTrustCommand = async (output, context) => {
|
|
642
|
+
if (output.statusCode >= 300) {
|
|
643
|
+
return de_CommandError(output, context);
|
|
1051
644
|
}
|
|
645
|
+
const data = await parseBody(output.body, context);
|
|
646
|
+
let contents = {};
|
|
647
|
+
contents = _json(data);
|
|
648
|
+
const response = {
|
|
649
|
+
$metadata: deserializeMetadata(output),
|
|
650
|
+
...contents,
|
|
651
|
+
};
|
|
652
|
+
return response;
|
|
1052
653
|
};
|
|
1053
|
-
export const
|
|
654
|
+
export const de_DeregisterCertificateCommand = async (output, context) => {
|
|
1054
655
|
if (output.statusCode >= 300) {
|
|
1055
|
-
return
|
|
656
|
+
return de_CommandError(output, context);
|
|
1056
657
|
}
|
|
1057
658
|
const data = await parseBody(output.body, context);
|
|
1058
659
|
let contents = {};
|
|
@@ -1063,43 +664,9 @@ export const de_DeleteConditionalForwarderCommand = async (output, context) => {
|
|
|
1063
664
|
};
|
|
1064
665
|
return response;
|
|
1065
666
|
};
|
|
1066
|
-
const
|
|
1067
|
-
const parsedOutput = {
|
|
1068
|
-
...output,
|
|
1069
|
-
body: await parseErrorBody(output.body, context),
|
|
1070
|
-
};
|
|
1071
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1072
|
-
switch (errorCode) {
|
|
1073
|
-
case "ClientException":
|
|
1074
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1075
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "DirectoryUnavailableException":
|
|
1077
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
1078
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
1079
|
-
case "EntityDoesNotExistException":
|
|
1080
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1081
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1082
|
-
case "InvalidParameterException":
|
|
1083
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1084
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1085
|
-
case "ServiceException":
|
|
1086
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1087
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1088
|
-
case "UnsupportedOperationException":
|
|
1089
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1090
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1091
|
-
default:
|
|
1092
|
-
const parsedBody = parsedOutput.body;
|
|
1093
|
-
return throwDefaultError({
|
|
1094
|
-
output,
|
|
1095
|
-
parsedBody,
|
|
1096
|
-
errorCode,
|
|
1097
|
-
});
|
|
1098
|
-
}
|
|
1099
|
-
};
|
|
1100
|
-
export const de_DeleteDirectoryCommand = async (output, context) => {
|
|
667
|
+
export const de_DeregisterEventTopicCommand = async (output, context) => {
|
|
1101
668
|
if (output.statusCode >= 300) {
|
|
1102
|
-
return
|
|
669
|
+
return de_CommandError(output, context);
|
|
1103
670
|
}
|
|
1104
671
|
const data = await parseBody(output.body, context);
|
|
1105
672
|
let contents = {};
|
|
@@ -1110,116 +677,35 @@ export const de_DeleteDirectoryCommand = async (output, context) => {
|
|
|
1110
677
|
};
|
|
1111
678
|
return response;
|
|
1112
679
|
};
|
|
1113
|
-
const
|
|
1114
|
-
const parsedOutput = {
|
|
1115
|
-
...output,
|
|
1116
|
-
body: await parseErrorBody(output.body, context),
|
|
1117
|
-
};
|
|
1118
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1119
|
-
switch (errorCode) {
|
|
1120
|
-
case "ClientException":
|
|
1121
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1122
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1123
|
-
case "EntityDoesNotExistException":
|
|
1124
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1125
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1126
|
-
case "ServiceException":
|
|
1127
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1128
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1129
|
-
default:
|
|
1130
|
-
const parsedBody = parsedOutput.body;
|
|
1131
|
-
return throwDefaultError({
|
|
1132
|
-
output,
|
|
1133
|
-
parsedBody,
|
|
1134
|
-
errorCode,
|
|
1135
|
-
});
|
|
1136
|
-
}
|
|
1137
|
-
};
|
|
1138
|
-
export const de_DeleteLogSubscriptionCommand = async (output, context) => {
|
|
680
|
+
export const de_DescribeCertificateCommand = async (output, context) => {
|
|
1139
681
|
if (output.statusCode >= 300) {
|
|
1140
|
-
return
|
|
682
|
+
return de_CommandError(output, context);
|
|
1141
683
|
}
|
|
1142
684
|
const data = await parseBody(output.body, context);
|
|
1143
685
|
let contents = {};
|
|
1144
|
-
contents =
|
|
686
|
+
contents = de_DescribeCertificateResult(data, context);
|
|
1145
687
|
const response = {
|
|
1146
688
|
$metadata: deserializeMetadata(output),
|
|
1147
689
|
...contents,
|
|
1148
690
|
};
|
|
1149
691
|
return response;
|
|
1150
692
|
};
|
|
1151
|
-
const
|
|
1152
|
-
const parsedOutput = {
|
|
1153
|
-
...output,
|
|
1154
|
-
body: await parseErrorBody(output.body, context),
|
|
1155
|
-
};
|
|
1156
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1157
|
-
switch (errorCode) {
|
|
1158
|
-
case "ClientException":
|
|
1159
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1160
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1161
|
-
case "EntityDoesNotExistException":
|
|
1162
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1163
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1164
|
-
case "ServiceException":
|
|
1165
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1166
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1167
|
-
case "UnsupportedOperationException":
|
|
1168
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1169
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1170
|
-
default:
|
|
1171
|
-
const parsedBody = parsedOutput.body;
|
|
1172
|
-
return throwDefaultError({
|
|
1173
|
-
output,
|
|
1174
|
-
parsedBody,
|
|
1175
|
-
errorCode,
|
|
1176
|
-
});
|
|
1177
|
-
}
|
|
1178
|
-
};
|
|
1179
|
-
export const de_DeleteSnapshotCommand = async (output, context) => {
|
|
693
|
+
export const de_DescribeClientAuthenticationSettingsCommand = async (output, context) => {
|
|
1180
694
|
if (output.statusCode >= 300) {
|
|
1181
|
-
return
|
|
695
|
+
return de_CommandError(output, context);
|
|
1182
696
|
}
|
|
1183
697
|
const data = await parseBody(output.body, context);
|
|
1184
698
|
let contents = {};
|
|
1185
|
-
contents =
|
|
699
|
+
contents = de_DescribeClientAuthenticationSettingsResult(data, context);
|
|
1186
700
|
const response = {
|
|
1187
701
|
$metadata: deserializeMetadata(output),
|
|
1188
702
|
...contents,
|
|
1189
703
|
};
|
|
1190
704
|
return response;
|
|
1191
705
|
};
|
|
1192
|
-
const
|
|
1193
|
-
const parsedOutput = {
|
|
1194
|
-
...output,
|
|
1195
|
-
body: await parseErrorBody(output.body, context),
|
|
1196
|
-
};
|
|
1197
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1198
|
-
switch (errorCode) {
|
|
1199
|
-
case "ClientException":
|
|
1200
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1201
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1202
|
-
case "EntityDoesNotExistException":
|
|
1203
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1204
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1205
|
-
case "InvalidParameterException":
|
|
1206
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1207
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1208
|
-
case "ServiceException":
|
|
1209
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1210
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1211
|
-
default:
|
|
1212
|
-
const parsedBody = parsedOutput.body;
|
|
1213
|
-
return throwDefaultError({
|
|
1214
|
-
output,
|
|
1215
|
-
parsedBody,
|
|
1216
|
-
errorCode,
|
|
1217
|
-
});
|
|
1218
|
-
}
|
|
1219
|
-
};
|
|
1220
|
-
export const de_DeleteTrustCommand = async (output, context) => {
|
|
706
|
+
export const de_DescribeConditionalForwardersCommand = async (output, context) => {
|
|
1221
707
|
if (output.statusCode >= 300) {
|
|
1222
|
-
return
|
|
708
|
+
return de_CommandError(output, context);
|
|
1223
709
|
}
|
|
1224
710
|
const data = await parseBody(output.body, context);
|
|
1225
711
|
let contents = {};
|
|
@@ -1230,1355 +716,139 @@ export const de_DeleteTrustCommand = async (output, context) => {
|
|
|
1230
716
|
};
|
|
1231
717
|
return response;
|
|
1232
718
|
};
|
|
1233
|
-
const
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
body: await parseErrorBody(output.body, context),
|
|
1237
|
-
};
|
|
1238
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1239
|
-
switch (errorCode) {
|
|
1240
|
-
case "ClientException":
|
|
1241
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1242
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1243
|
-
case "EntityDoesNotExistException":
|
|
1244
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1245
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1246
|
-
case "InvalidParameterException":
|
|
1247
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1248
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1249
|
-
case "ServiceException":
|
|
1250
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1251
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1252
|
-
case "UnsupportedOperationException":
|
|
1253
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1254
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1255
|
-
default:
|
|
1256
|
-
const parsedBody = parsedOutput.body;
|
|
1257
|
-
return throwDefaultError({
|
|
1258
|
-
output,
|
|
1259
|
-
parsedBody,
|
|
1260
|
-
errorCode,
|
|
1261
|
-
});
|
|
719
|
+
export const de_DescribeDirectoriesCommand = async (output, context) => {
|
|
720
|
+
if (output.statusCode >= 300) {
|
|
721
|
+
return de_CommandError(output, context);
|
|
1262
722
|
}
|
|
723
|
+
const data = await parseBody(output.body, context);
|
|
724
|
+
let contents = {};
|
|
725
|
+
contents = de_DescribeDirectoriesResult(data, context);
|
|
726
|
+
const response = {
|
|
727
|
+
$metadata: deserializeMetadata(output),
|
|
728
|
+
...contents,
|
|
729
|
+
};
|
|
730
|
+
return response;
|
|
1263
731
|
};
|
|
1264
|
-
export const
|
|
732
|
+
export const de_DescribeDomainControllersCommand = async (output, context) => {
|
|
1265
733
|
if (output.statusCode >= 300) {
|
|
1266
|
-
return
|
|
734
|
+
return de_CommandError(output, context);
|
|
1267
735
|
}
|
|
1268
736
|
const data = await parseBody(output.body, context);
|
|
1269
737
|
let contents = {};
|
|
1270
|
-
contents =
|
|
738
|
+
contents = de_DescribeDomainControllersResult(data, context);
|
|
1271
739
|
const response = {
|
|
1272
740
|
$metadata: deserializeMetadata(output),
|
|
1273
741
|
...contents,
|
|
1274
742
|
};
|
|
1275
743
|
return response;
|
|
1276
744
|
};
|
|
1277
|
-
const
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
body: await parseErrorBody(output.body, context),
|
|
1281
|
-
};
|
|
1282
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1283
|
-
switch (errorCode) {
|
|
1284
|
-
case "CertificateDoesNotExistException":
|
|
1285
|
-
case "com.amazonaws.directoryservice#CertificateDoesNotExistException":
|
|
1286
|
-
throw await de_CertificateDoesNotExistExceptionRes(parsedOutput, context);
|
|
1287
|
-
case "CertificateInUseException":
|
|
1288
|
-
case "com.amazonaws.directoryservice#CertificateInUseException":
|
|
1289
|
-
throw await de_CertificateInUseExceptionRes(parsedOutput, context);
|
|
1290
|
-
case "ClientException":
|
|
1291
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1292
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1293
|
-
case "DirectoryDoesNotExistException":
|
|
1294
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
1295
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
1296
|
-
case "DirectoryUnavailableException":
|
|
1297
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
1298
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
1299
|
-
case "InvalidParameterException":
|
|
1300
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1301
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1302
|
-
case "ServiceException":
|
|
1303
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1304
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1305
|
-
case "UnsupportedOperationException":
|
|
1306
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1307
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1308
|
-
default:
|
|
1309
|
-
const parsedBody = parsedOutput.body;
|
|
1310
|
-
return throwDefaultError({
|
|
1311
|
-
output,
|
|
1312
|
-
parsedBody,
|
|
1313
|
-
errorCode,
|
|
1314
|
-
});
|
|
745
|
+
export const de_DescribeEventTopicsCommand = async (output, context) => {
|
|
746
|
+
if (output.statusCode >= 300) {
|
|
747
|
+
return de_CommandError(output, context);
|
|
1315
748
|
}
|
|
749
|
+
const data = await parseBody(output.body, context);
|
|
750
|
+
let contents = {};
|
|
751
|
+
contents = de_DescribeEventTopicsResult(data, context);
|
|
752
|
+
const response = {
|
|
753
|
+
$metadata: deserializeMetadata(output),
|
|
754
|
+
...contents,
|
|
755
|
+
};
|
|
756
|
+
return response;
|
|
1316
757
|
};
|
|
1317
|
-
export const
|
|
758
|
+
export const de_DescribeLDAPSSettingsCommand = async (output, context) => {
|
|
1318
759
|
if (output.statusCode >= 300) {
|
|
1319
|
-
return
|
|
760
|
+
return de_CommandError(output, context);
|
|
1320
761
|
}
|
|
1321
762
|
const data = await parseBody(output.body, context);
|
|
1322
763
|
let contents = {};
|
|
1323
|
-
contents =
|
|
764
|
+
contents = de_DescribeLDAPSSettingsResult(data, context);
|
|
1324
765
|
const response = {
|
|
1325
766
|
$metadata: deserializeMetadata(output),
|
|
1326
767
|
...contents,
|
|
1327
768
|
};
|
|
1328
769
|
return response;
|
|
1329
770
|
};
|
|
1330
|
-
const
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
body: await parseErrorBody(output.body, context),
|
|
1334
|
-
};
|
|
1335
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1336
|
-
switch (errorCode) {
|
|
1337
|
-
case "ClientException":
|
|
1338
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1339
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1340
|
-
case "EntityDoesNotExistException":
|
|
1341
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1342
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1343
|
-
case "InvalidParameterException":
|
|
1344
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1345
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1346
|
-
case "ServiceException":
|
|
1347
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1348
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1349
|
-
default:
|
|
1350
|
-
const parsedBody = parsedOutput.body;
|
|
1351
|
-
return throwDefaultError({
|
|
1352
|
-
output,
|
|
1353
|
-
parsedBody,
|
|
1354
|
-
errorCode,
|
|
1355
|
-
});
|
|
771
|
+
export const de_DescribeRegionsCommand = async (output, context) => {
|
|
772
|
+
if (output.statusCode >= 300) {
|
|
773
|
+
return de_CommandError(output, context);
|
|
1356
774
|
}
|
|
775
|
+
const data = await parseBody(output.body, context);
|
|
776
|
+
let contents = {};
|
|
777
|
+
contents = de_DescribeRegionsResult(data, context);
|
|
778
|
+
const response = {
|
|
779
|
+
$metadata: deserializeMetadata(output),
|
|
780
|
+
...contents,
|
|
781
|
+
};
|
|
782
|
+
return response;
|
|
1357
783
|
};
|
|
1358
|
-
export const
|
|
784
|
+
export const de_DescribeSettingsCommand = async (output, context) => {
|
|
1359
785
|
if (output.statusCode >= 300) {
|
|
1360
|
-
return
|
|
786
|
+
return de_CommandError(output, context);
|
|
1361
787
|
}
|
|
1362
788
|
const data = await parseBody(output.body, context);
|
|
1363
789
|
let contents = {};
|
|
1364
|
-
contents =
|
|
790
|
+
contents = de_DescribeSettingsResult(data, context);
|
|
1365
791
|
const response = {
|
|
1366
792
|
$metadata: deserializeMetadata(output),
|
|
1367
793
|
...contents,
|
|
1368
794
|
};
|
|
1369
795
|
return response;
|
|
1370
796
|
};
|
|
1371
|
-
const
|
|
1372
|
-
const parsedOutput = {
|
|
1373
|
-
...output,
|
|
1374
|
-
body: await parseErrorBody(output.body, context),
|
|
1375
|
-
};
|
|
1376
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1377
|
-
switch (errorCode) {
|
|
1378
|
-
case "CertificateDoesNotExistException":
|
|
1379
|
-
case "com.amazonaws.directoryservice#CertificateDoesNotExistException":
|
|
1380
|
-
throw await de_CertificateDoesNotExistExceptionRes(parsedOutput, context);
|
|
1381
|
-
case "ClientException":
|
|
1382
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1383
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1384
|
-
case "DirectoryDoesNotExistException":
|
|
1385
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
1386
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
1387
|
-
case "InvalidParameterException":
|
|
1388
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1389
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1390
|
-
case "ServiceException":
|
|
1391
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1392
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1393
|
-
case "UnsupportedOperationException":
|
|
1394
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1395
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1396
|
-
default:
|
|
1397
|
-
const parsedBody = parsedOutput.body;
|
|
1398
|
-
return throwDefaultError({
|
|
1399
|
-
output,
|
|
1400
|
-
parsedBody,
|
|
1401
|
-
errorCode,
|
|
1402
|
-
});
|
|
1403
|
-
}
|
|
1404
|
-
};
|
|
1405
|
-
export const de_DescribeClientAuthenticationSettingsCommand = async (output, context) => {
|
|
1406
|
-
if (output.statusCode >= 300) {
|
|
1407
|
-
return de_DescribeClientAuthenticationSettingsCommandError(output, context);
|
|
1408
|
-
}
|
|
1409
|
-
const data = await parseBody(output.body, context);
|
|
1410
|
-
let contents = {};
|
|
1411
|
-
contents = de_DescribeClientAuthenticationSettingsResult(data, context);
|
|
1412
|
-
const response = {
|
|
1413
|
-
$metadata: deserializeMetadata(output),
|
|
1414
|
-
...contents,
|
|
1415
|
-
};
|
|
1416
|
-
return response;
|
|
1417
|
-
};
|
|
1418
|
-
const de_DescribeClientAuthenticationSettingsCommandError = async (output, context) => {
|
|
1419
|
-
const parsedOutput = {
|
|
1420
|
-
...output,
|
|
1421
|
-
body: await parseErrorBody(output.body, context),
|
|
1422
|
-
};
|
|
1423
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1424
|
-
switch (errorCode) {
|
|
1425
|
-
case "AccessDeniedException":
|
|
1426
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
1427
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1428
|
-
case "ClientException":
|
|
1429
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1430
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1431
|
-
case "DirectoryDoesNotExistException":
|
|
1432
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
1433
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
1434
|
-
case "InvalidParameterException":
|
|
1435
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1436
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "ServiceException":
|
|
1438
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1439
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1440
|
-
case "UnsupportedOperationException":
|
|
1441
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1442
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1443
|
-
default:
|
|
1444
|
-
const parsedBody = parsedOutput.body;
|
|
1445
|
-
return throwDefaultError({
|
|
1446
|
-
output,
|
|
1447
|
-
parsedBody,
|
|
1448
|
-
errorCode,
|
|
1449
|
-
});
|
|
1450
|
-
}
|
|
1451
|
-
};
|
|
1452
|
-
export const de_DescribeConditionalForwardersCommand = async (output, context) => {
|
|
1453
|
-
if (output.statusCode >= 300) {
|
|
1454
|
-
return de_DescribeConditionalForwardersCommandError(output, context);
|
|
1455
|
-
}
|
|
1456
|
-
const data = await parseBody(output.body, context);
|
|
1457
|
-
let contents = {};
|
|
1458
|
-
contents = _json(data);
|
|
1459
|
-
const response = {
|
|
1460
|
-
$metadata: deserializeMetadata(output),
|
|
1461
|
-
...contents,
|
|
1462
|
-
};
|
|
1463
|
-
return response;
|
|
1464
|
-
};
|
|
1465
|
-
const de_DescribeConditionalForwardersCommandError = async (output, context) => {
|
|
1466
|
-
const parsedOutput = {
|
|
1467
|
-
...output,
|
|
1468
|
-
body: await parseErrorBody(output.body, context),
|
|
1469
|
-
};
|
|
1470
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1471
|
-
switch (errorCode) {
|
|
1472
|
-
case "ClientException":
|
|
1473
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1474
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1475
|
-
case "DirectoryUnavailableException":
|
|
1476
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
1477
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
1478
|
-
case "EntityDoesNotExistException":
|
|
1479
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1480
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1481
|
-
case "InvalidParameterException":
|
|
1482
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1483
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1484
|
-
case "ServiceException":
|
|
1485
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1486
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1487
|
-
case "UnsupportedOperationException":
|
|
1488
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1489
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1490
|
-
default:
|
|
1491
|
-
const parsedBody = parsedOutput.body;
|
|
1492
|
-
return throwDefaultError({
|
|
1493
|
-
output,
|
|
1494
|
-
parsedBody,
|
|
1495
|
-
errorCode,
|
|
1496
|
-
});
|
|
1497
|
-
}
|
|
1498
|
-
};
|
|
1499
|
-
export const de_DescribeDirectoriesCommand = async (output, context) => {
|
|
1500
|
-
if (output.statusCode >= 300) {
|
|
1501
|
-
return de_DescribeDirectoriesCommandError(output, context);
|
|
1502
|
-
}
|
|
1503
|
-
const data = await parseBody(output.body, context);
|
|
1504
|
-
let contents = {};
|
|
1505
|
-
contents = de_DescribeDirectoriesResult(data, context);
|
|
1506
|
-
const response = {
|
|
1507
|
-
$metadata: deserializeMetadata(output),
|
|
1508
|
-
...contents,
|
|
1509
|
-
};
|
|
1510
|
-
return response;
|
|
1511
|
-
};
|
|
1512
|
-
const de_DescribeDirectoriesCommandError = async (output, context) => {
|
|
1513
|
-
const parsedOutput = {
|
|
1514
|
-
...output,
|
|
1515
|
-
body: await parseErrorBody(output.body, context),
|
|
1516
|
-
};
|
|
1517
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1518
|
-
switch (errorCode) {
|
|
1519
|
-
case "ClientException":
|
|
1520
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1521
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1522
|
-
case "EntityDoesNotExistException":
|
|
1523
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1524
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1525
|
-
case "InvalidNextTokenException":
|
|
1526
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
1527
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1528
|
-
case "InvalidParameterException":
|
|
1529
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1530
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1531
|
-
case "ServiceException":
|
|
1532
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1533
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1534
|
-
default:
|
|
1535
|
-
const parsedBody = parsedOutput.body;
|
|
1536
|
-
return throwDefaultError({
|
|
1537
|
-
output,
|
|
1538
|
-
parsedBody,
|
|
1539
|
-
errorCode,
|
|
1540
|
-
});
|
|
1541
|
-
}
|
|
1542
|
-
};
|
|
1543
|
-
export const de_DescribeDomainControllersCommand = async (output, context) => {
|
|
1544
|
-
if (output.statusCode >= 300) {
|
|
1545
|
-
return de_DescribeDomainControllersCommandError(output, context);
|
|
1546
|
-
}
|
|
1547
|
-
const data = await parseBody(output.body, context);
|
|
1548
|
-
let contents = {};
|
|
1549
|
-
contents = de_DescribeDomainControllersResult(data, context);
|
|
1550
|
-
const response = {
|
|
1551
|
-
$metadata: deserializeMetadata(output),
|
|
1552
|
-
...contents,
|
|
1553
|
-
};
|
|
1554
|
-
return response;
|
|
1555
|
-
};
|
|
1556
|
-
const de_DescribeDomainControllersCommandError = async (output, context) => {
|
|
1557
|
-
const parsedOutput = {
|
|
1558
|
-
...output,
|
|
1559
|
-
body: await parseErrorBody(output.body, context),
|
|
1560
|
-
};
|
|
1561
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1562
|
-
switch (errorCode) {
|
|
1563
|
-
case "ClientException":
|
|
1564
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1565
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1566
|
-
case "EntityDoesNotExistException":
|
|
1567
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1568
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1569
|
-
case "InvalidNextTokenException":
|
|
1570
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
1571
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1572
|
-
case "InvalidParameterException":
|
|
1573
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1574
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1575
|
-
case "ServiceException":
|
|
1576
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1577
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1578
|
-
case "UnsupportedOperationException":
|
|
1579
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1580
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1581
|
-
default:
|
|
1582
|
-
const parsedBody = parsedOutput.body;
|
|
1583
|
-
return throwDefaultError({
|
|
1584
|
-
output,
|
|
1585
|
-
parsedBody,
|
|
1586
|
-
errorCode,
|
|
1587
|
-
});
|
|
1588
|
-
}
|
|
1589
|
-
};
|
|
1590
|
-
export const de_DescribeEventTopicsCommand = async (output, context) => {
|
|
1591
|
-
if (output.statusCode >= 300) {
|
|
1592
|
-
return de_DescribeEventTopicsCommandError(output, context);
|
|
1593
|
-
}
|
|
1594
|
-
const data = await parseBody(output.body, context);
|
|
1595
|
-
let contents = {};
|
|
1596
|
-
contents = de_DescribeEventTopicsResult(data, context);
|
|
1597
|
-
const response = {
|
|
1598
|
-
$metadata: deserializeMetadata(output),
|
|
1599
|
-
...contents,
|
|
1600
|
-
};
|
|
1601
|
-
return response;
|
|
1602
|
-
};
|
|
1603
|
-
const de_DescribeEventTopicsCommandError = async (output, context) => {
|
|
1604
|
-
const parsedOutput = {
|
|
1605
|
-
...output,
|
|
1606
|
-
body: await parseErrorBody(output.body, context),
|
|
1607
|
-
};
|
|
1608
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1609
|
-
switch (errorCode) {
|
|
1610
|
-
case "ClientException":
|
|
1611
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1612
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1613
|
-
case "EntityDoesNotExistException":
|
|
1614
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1615
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1616
|
-
case "InvalidParameterException":
|
|
1617
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1618
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1619
|
-
case "ServiceException":
|
|
1620
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1621
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1622
|
-
default:
|
|
1623
|
-
const parsedBody = parsedOutput.body;
|
|
1624
|
-
return throwDefaultError({
|
|
1625
|
-
output,
|
|
1626
|
-
parsedBody,
|
|
1627
|
-
errorCode,
|
|
1628
|
-
});
|
|
1629
|
-
}
|
|
1630
|
-
};
|
|
1631
|
-
export const de_DescribeLDAPSSettingsCommand = async (output, context) => {
|
|
1632
|
-
if (output.statusCode >= 300) {
|
|
1633
|
-
return de_DescribeLDAPSSettingsCommandError(output, context);
|
|
1634
|
-
}
|
|
1635
|
-
const data = await parseBody(output.body, context);
|
|
1636
|
-
let contents = {};
|
|
1637
|
-
contents = de_DescribeLDAPSSettingsResult(data, context);
|
|
1638
|
-
const response = {
|
|
1639
|
-
$metadata: deserializeMetadata(output),
|
|
1640
|
-
...contents,
|
|
1641
|
-
};
|
|
1642
|
-
return response;
|
|
1643
|
-
};
|
|
1644
|
-
const de_DescribeLDAPSSettingsCommandError = async (output, context) => {
|
|
1645
|
-
const parsedOutput = {
|
|
1646
|
-
...output,
|
|
1647
|
-
body: await parseErrorBody(output.body, context),
|
|
1648
|
-
};
|
|
1649
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1650
|
-
switch (errorCode) {
|
|
1651
|
-
case "ClientException":
|
|
1652
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1653
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1654
|
-
case "DirectoryDoesNotExistException":
|
|
1655
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
1656
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
1657
|
-
case "InvalidNextTokenException":
|
|
1658
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
1659
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1660
|
-
case "InvalidParameterException":
|
|
1661
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1662
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1663
|
-
case "ServiceException":
|
|
1664
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1665
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1666
|
-
case "UnsupportedOperationException":
|
|
1667
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1668
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1669
|
-
default:
|
|
1670
|
-
const parsedBody = parsedOutput.body;
|
|
1671
|
-
return throwDefaultError({
|
|
1672
|
-
output,
|
|
1673
|
-
parsedBody,
|
|
1674
|
-
errorCode,
|
|
1675
|
-
});
|
|
1676
|
-
}
|
|
1677
|
-
};
|
|
1678
|
-
export const de_DescribeRegionsCommand = async (output, context) => {
|
|
1679
|
-
if (output.statusCode >= 300) {
|
|
1680
|
-
return de_DescribeRegionsCommandError(output, context);
|
|
1681
|
-
}
|
|
1682
|
-
const data = await parseBody(output.body, context);
|
|
1683
|
-
let contents = {};
|
|
1684
|
-
contents = de_DescribeRegionsResult(data, context);
|
|
1685
|
-
const response = {
|
|
1686
|
-
$metadata: deserializeMetadata(output),
|
|
1687
|
-
...contents,
|
|
1688
|
-
};
|
|
1689
|
-
return response;
|
|
1690
|
-
};
|
|
1691
|
-
const de_DescribeRegionsCommandError = async (output, context) => {
|
|
1692
|
-
const parsedOutput = {
|
|
1693
|
-
...output,
|
|
1694
|
-
body: await parseErrorBody(output.body, context),
|
|
1695
|
-
};
|
|
1696
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1697
|
-
switch (errorCode) {
|
|
1698
|
-
case "AccessDeniedException":
|
|
1699
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
1700
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1701
|
-
case "ClientException":
|
|
1702
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1703
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1704
|
-
case "DirectoryDoesNotExistException":
|
|
1705
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
1706
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
1707
|
-
case "InvalidNextTokenException":
|
|
1708
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
1709
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1710
|
-
case "InvalidParameterException":
|
|
1711
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1712
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1713
|
-
case "ServiceException":
|
|
1714
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1715
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1716
|
-
case "UnsupportedOperationException":
|
|
1717
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1718
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1719
|
-
default:
|
|
1720
|
-
const parsedBody = parsedOutput.body;
|
|
1721
|
-
return throwDefaultError({
|
|
1722
|
-
output,
|
|
1723
|
-
parsedBody,
|
|
1724
|
-
errorCode,
|
|
1725
|
-
});
|
|
1726
|
-
}
|
|
1727
|
-
};
|
|
1728
|
-
export const de_DescribeSettingsCommand = async (output, context) => {
|
|
1729
|
-
if (output.statusCode >= 300) {
|
|
1730
|
-
return de_DescribeSettingsCommandError(output, context);
|
|
1731
|
-
}
|
|
1732
|
-
const data = await parseBody(output.body, context);
|
|
1733
|
-
let contents = {};
|
|
1734
|
-
contents = de_DescribeSettingsResult(data, context);
|
|
1735
|
-
const response = {
|
|
1736
|
-
$metadata: deserializeMetadata(output),
|
|
1737
|
-
...contents,
|
|
1738
|
-
};
|
|
1739
|
-
return response;
|
|
1740
|
-
};
|
|
1741
|
-
const de_DescribeSettingsCommandError = async (output, context) => {
|
|
1742
|
-
const parsedOutput = {
|
|
1743
|
-
...output,
|
|
1744
|
-
body: await parseErrorBody(output.body, context),
|
|
1745
|
-
};
|
|
1746
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1747
|
-
switch (errorCode) {
|
|
1748
|
-
case "ClientException":
|
|
1749
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1750
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1751
|
-
case "DirectoryDoesNotExistException":
|
|
1752
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
1753
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
1754
|
-
case "InvalidNextTokenException":
|
|
1755
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
1756
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1757
|
-
case "InvalidParameterException":
|
|
1758
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1759
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1760
|
-
case "ServiceException":
|
|
1761
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1762
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1763
|
-
case "UnsupportedOperationException":
|
|
1764
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1765
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1766
|
-
default:
|
|
1767
|
-
const parsedBody = parsedOutput.body;
|
|
1768
|
-
return throwDefaultError({
|
|
1769
|
-
output,
|
|
1770
|
-
parsedBody,
|
|
1771
|
-
errorCode,
|
|
1772
|
-
});
|
|
1773
|
-
}
|
|
1774
|
-
};
|
|
1775
|
-
export const de_DescribeSharedDirectoriesCommand = async (output, context) => {
|
|
1776
|
-
if (output.statusCode >= 300) {
|
|
1777
|
-
return de_DescribeSharedDirectoriesCommandError(output, context);
|
|
1778
|
-
}
|
|
1779
|
-
const data = await parseBody(output.body, context);
|
|
1780
|
-
let contents = {};
|
|
1781
|
-
contents = de_DescribeSharedDirectoriesResult(data, context);
|
|
1782
|
-
const response = {
|
|
1783
|
-
$metadata: deserializeMetadata(output),
|
|
1784
|
-
...contents,
|
|
1785
|
-
};
|
|
1786
|
-
return response;
|
|
1787
|
-
};
|
|
1788
|
-
const de_DescribeSharedDirectoriesCommandError = async (output, context) => {
|
|
1789
|
-
const parsedOutput = {
|
|
1790
|
-
...output,
|
|
1791
|
-
body: await parseErrorBody(output.body, context),
|
|
1792
|
-
};
|
|
1793
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1794
|
-
switch (errorCode) {
|
|
1795
|
-
case "ClientException":
|
|
1796
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1797
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1798
|
-
case "EntityDoesNotExistException":
|
|
1799
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1800
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1801
|
-
case "InvalidNextTokenException":
|
|
1802
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
1803
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1804
|
-
case "InvalidParameterException":
|
|
1805
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1806
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1807
|
-
case "ServiceException":
|
|
1808
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1809
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1810
|
-
case "UnsupportedOperationException":
|
|
1811
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1812
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1813
|
-
default:
|
|
1814
|
-
const parsedBody = parsedOutput.body;
|
|
1815
|
-
return throwDefaultError({
|
|
1816
|
-
output,
|
|
1817
|
-
parsedBody,
|
|
1818
|
-
errorCode,
|
|
1819
|
-
});
|
|
1820
|
-
}
|
|
1821
|
-
};
|
|
1822
|
-
export const de_DescribeSnapshotsCommand = async (output, context) => {
|
|
1823
|
-
if (output.statusCode >= 300) {
|
|
1824
|
-
return de_DescribeSnapshotsCommandError(output, context);
|
|
1825
|
-
}
|
|
1826
|
-
const data = await parseBody(output.body, context);
|
|
1827
|
-
let contents = {};
|
|
1828
|
-
contents = de_DescribeSnapshotsResult(data, context);
|
|
1829
|
-
const response = {
|
|
1830
|
-
$metadata: deserializeMetadata(output),
|
|
1831
|
-
...contents,
|
|
1832
|
-
};
|
|
1833
|
-
return response;
|
|
1834
|
-
};
|
|
1835
|
-
const de_DescribeSnapshotsCommandError = async (output, context) => {
|
|
1836
|
-
const parsedOutput = {
|
|
1837
|
-
...output,
|
|
1838
|
-
body: await parseErrorBody(output.body, context),
|
|
1839
|
-
};
|
|
1840
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1841
|
-
switch (errorCode) {
|
|
1842
|
-
case "ClientException":
|
|
1843
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1844
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1845
|
-
case "EntityDoesNotExistException":
|
|
1846
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1847
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1848
|
-
case "InvalidNextTokenException":
|
|
1849
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
1850
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1851
|
-
case "InvalidParameterException":
|
|
1852
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1853
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1854
|
-
case "ServiceException":
|
|
1855
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1856
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1857
|
-
default:
|
|
1858
|
-
const parsedBody = parsedOutput.body;
|
|
1859
|
-
return throwDefaultError({
|
|
1860
|
-
output,
|
|
1861
|
-
parsedBody,
|
|
1862
|
-
errorCode,
|
|
1863
|
-
});
|
|
1864
|
-
}
|
|
1865
|
-
};
|
|
1866
|
-
export const de_DescribeTrustsCommand = async (output, context) => {
|
|
1867
|
-
if (output.statusCode >= 300) {
|
|
1868
|
-
return de_DescribeTrustsCommandError(output, context);
|
|
1869
|
-
}
|
|
1870
|
-
const data = await parseBody(output.body, context);
|
|
1871
|
-
let contents = {};
|
|
1872
|
-
contents = de_DescribeTrustsResult(data, context);
|
|
1873
|
-
const response = {
|
|
1874
|
-
$metadata: deserializeMetadata(output),
|
|
1875
|
-
...contents,
|
|
1876
|
-
};
|
|
1877
|
-
return response;
|
|
1878
|
-
};
|
|
1879
|
-
const de_DescribeTrustsCommandError = async (output, context) => {
|
|
1880
|
-
const parsedOutput = {
|
|
1881
|
-
...output,
|
|
1882
|
-
body: await parseErrorBody(output.body, context),
|
|
1883
|
-
};
|
|
1884
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1885
|
-
switch (errorCode) {
|
|
1886
|
-
case "ClientException":
|
|
1887
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1888
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1889
|
-
case "EntityDoesNotExistException":
|
|
1890
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1891
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1892
|
-
case "InvalidNextTokenException":
|
|
1893
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
1894
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1895
|
-
case "InvalidParameterException":
|
|
1896
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1897
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1898
|
-
case "ServiceException":
|
|
1899
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1900
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1901
|
-
case "UnsupportedOperationException":
|
|
1902
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1903
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1904
|
-
default:
|
|
1905
|
-
const parsedBody = parsedOutput.body;
|
|
1906
|
-
return throwDefaultError({
|
|
1907
|
-
output,
|
|
1908
|
-
parsedBody,
|
|
1909
|
-
errorCode,
|
|
1910
|
-
});
|
|
1911
|
-
}
|
|
1912
|
-
};
|
|
1913
|
-
export const de_DescribeUpdateDirectoryCommand = async (output, context) => {
|
|
1914
|
-
if (output.statusCode >= 300) {
|
|
1915
|
-
return de_DescribeUpdateDirectoryCommandError(output, context);
|
|
1916
|
-
}
|
|
1917
|
-
const data = await parseBody(output.body, context);
|
|
1918
|
-
let contents = {};
|
|
1919
|
-
contents = de_DescribeUpdateDirectoryResult(data, context);
|
|
1920
|
-
const response = {
|
|
1921
|
-
$metadata: deserializeMetadata(output),
|
|
1922
|
-
...contents,
|
|
1923
|
-
};
|
|
1924
|
-
return response;
|
|
1925
|
-
};
|
|
1926
|
-
const de_DescribeUpdateDirectoryCommandError = async (output, context) => {
|
|
1927
|
-
const parsedOutput = {
|
|
1928
|
-
...output,
|
|
1929
|
-
body: await parseErrorBody(output.body, context),
|
|
1930
|
-
};
|
|
1931
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1932
|
-
switch (errorCode) {
|
|
1933
|
-
case "AccessDeniedException":
|
|
1934
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
1935
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1936
|
-
case "ClientException":
|
|
1937
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1938
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1939
|
-
case "DirectoryDoesNotExistException":
|
|
1940
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
1941
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
1942
|
-
case "InvalidNextTokenException":
|
|
1943
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
1944
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1945
|
-
case "InvalidParameterException":
|
|
1946
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1947
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1948
|
-
case "ServiceException":
|
|
1949
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1950
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1951
|
-
default:
|
|
1952
|
-
const parsedBody = parsedOutput.body;
|
|
1953
|
-
return throwDefaultError({
|
|
1954
|
-
output,
|
|
1955
|
-
parsedBody,
|
|
1956
|
-
errorCode,
|
|
1957
|
-
});
|
|
1958
|
-
}
|
|
1959
|
-
};
|
|
1960
|
-
export const de_DisableClientAuthenticationCommand = async (output, context) => {
|
|
1961
|
-
if (output.statusCode >= 300) {
|
|
1962
|
-
return de_DisableClientAuthenticationCommandError(output, context);
|
|
1963
|
-
}
|
|
1964
|
-
const data = await parseBody(output.body, context);
|
|
1965
|
-
let contents = {};
|
|
1966
|
-
contents = _json(data);
|
|
1967
|
-
const response = {
|
|
1968
|
-
$metadata: deserializeMetadata(output),
|
|
1969
|
-
...contents,
|
|
1970
|
-
};
|
|
1971
|
-
return response;
|
|
1972
|
-
};
|
|
1973
|
-
const de_DisableClientAuthenticationCommandError = async (output, context) => {
|
|
1974
|
-
const parsedOutput = {
|
|
1975
|
-
...output,
|
|
1976
|
-
body: await parseErrorBody(output.body, context),
|
|
1977
|
-
};
|
|
1978
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1979
|
-
switch (errorCode) {
|
|
1980
|
-
case "AccessDeniedException":
|
|
1981
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
1982
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1983
|
-
case "ClientException":
|
|
1984
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1985
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1986
|
-
case "DirectoryDoesNotExistException":
|
|
1987
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
1988
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
1989
|
-
case "InvalidClientAuthStatusException":
|
|
1990
|
-
case "com.amazonaws.directoryservice#InvalidClientAuthStatusException":
|
|
1991
|
-
throw await de_InvalidClientAuthStatusExceptionRes(parsedOutput, context);
|
|
1992
|
-
case "ServiceException":
|
|
1993
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1994
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1995
|
-
case "UnsupportedOperationException":
|
|
1996
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1997
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1998
|
-
default:
|
|
1999
|
-
const parsedBody = parsedOutput.body;
|
|
2000
|
-
return throwDefaultError({
|
|
2001
|
-
output,
|
|
2002
|
-
parsedBody,
|
|
2003
|
-
errorCode,
|
|
2004
|
-
});
|
|
2005
|
-
}
|
|
2006
|
-
};
|
|
2007
|
-
export const de_DisableLDAPSCommand = async (output, context) => {
|
|
2008
|
-
if (output.statusCode >= 300) {
|
|
2009
|
-
return de_DisableLDAPSCommandError(output, context);
|
|
2010
|
-
}
|
|
2011
|
-
const data = await parseBody(output.body, context);
|
|
2012
|
-
let contents = {};
|
|
2013
|
-
contents = _json(data);
|
|
2014
|
-
const response = {
|
|
2015
|
-
$metadata: deserializeMetadata(output),
|
|
2016
|
-
...contents,
|
|
2017
|
-
};
|
|
2018
|
-
return response;
|
|
2019
|
-
};
|
|
2020
|
-
const de_DisableLDAPSCommandError = async (output, context) => {
|
|
2021
|
-
const parsedOutput = {
|
|
2022
|
-
...output,
|
|
2023
|
-
body: await parseErrorBody(output.body, context),
|
|
2024
|
-
};
|
|
2025
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2026
|
-
switch (errorCode) {
|
|
2027
|
-
case "ClientException":
|
|
2028
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2029
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2030
|
-
case "DirectoryDoesNotExistException":
|
|
2031
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
2032
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
2033
|
-
case "DirectoryUnavailableException":
|
|
2034
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
2035
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
2036
|
-
case "InvalidLDAPSStatusException":
|
|
2037
|
-
case "com.amazonaws.directoryservice#InvalidLDAPSStatusException":
|
|
2038
|
-
throw await de_InvalidLDAPSStatusExceptionRes(parsedOutput, context);
|
|
2039
|
-
case "InvalidParameterException":
|
|
2040
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2041
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2042
|
-
case "ServiceException":
|
|
2043
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2044
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2045
|
-
case "UnsupportedOperationException":
|
|
2046
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2047
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2048
|
-
default:
|
|
2049
|
-
const parsedBody = parsedOutput.body;
|
|
2050
|
-
return throwDefaultError({
|
|
2051
|
-
output,
|
|
2052
|
-
parsedBody,
|
|
2053
|
-
errorCode,
|
|
2054
|
-
});
|
|
2055
|
-
}
|
|
2056
|
-
};
|
|
2057
|
-
export const de_DisableRadiusCommand = async (output, context) => {
|
|
2058
|
-
if (output.statusCode >= 300) {
|
|
2059
|
-
return de_DisableRadiusCommandError(output, context);
|
|
2060
|
-
}
|
|
2061
|
-
const data = await parseBody(output.body, context);
|
|
2062
|
-
let contents = {};
|
|
2063
|
-
contents = _json(data);
|
|
2064
|
-
const response = {
|
|
2065
|
-
$metadata: deserializeMetadata(output),
|
|
2066
|
-
...contents,
|
|
2067
|
-
};
|
|
2068
|
-
return response;
|
|
2069
|
-
};
|
|
2070
|
-
const de_DisableRadiusCommandError = async (output, context) => {
|
|
2071
|
-
const parsedOutput = {
|
|
2072
|
-
...output,
|
|
2073
|
-
body: await parseErrorBody(output.body, context),
|
|
2074
|
-
};
|
|
2075
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2076
|
-
switch (errorCode) {
|
|
2077
|
-
case "ClientException":
|
|
2078
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2079
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2080
|
-
case "EntityDoesNotExistException":
|
|
2081
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2082
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2083
|
-
case "ServiceException":
|
|
2084
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2085
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2086
|
-
default:
|
|
2087
|
-
const parsedBody = parsedOutput.body;
|
|
2088
|
-
return throwDefaultError({
|
|
2089
|
-
output,
|
|
2090
|
-
parsedBody,
|
|
2091
|
-
errorCode,
|
|
2092
|
-
});
|
|
2093
|
-
}
|
|
2094
|
-
};
|
|
2095
|
-
export const de_DisableSsoCommand = async (output, context) => {
|
|
2096
|
-
if (output.statusCode >= 300) {
|
|
2097
|
-
return de_DisableSsoCommandError(output, context);
|
|
2098
|
-
}
|
|
2099
|
-
const data = await parseBody(output.body, context);
|
|
2100
|
-
let contents = {};
|
|
2101
|
-
contents = _json(data);
|
|
2102
|
-
const response = {
|
|
2103
|
-
$metadata: deserializeMetadata(output),
|
|
2104
|
-
...contents,
|
|
2105
|
-
};
|
|
2106
|
-
return response;
|
|
2107
|
-
};
|
|
2108
|
-
const de_DisableSsoCommandError = async (output, context) => {
|
|
2109
|
-
const parsedOutput = {
|
|
2110
|
-
...output,
|
|
2111
|
-
body: await parseErrorBody(output.body, context),
|
|
2112
|
-
};
|
|
2113
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2114
|
-
switch (errorCode) {
|
|
2115
|
-
case "AuthenticationFailedException":
|
|
2116
|
-
case "com.amazonaws.directoryservice#AuthenticationFailedException":
|
|
2117
|
-
throw await de_AuthenticationFailedExceptionRes(parsedOutput, context);
|
|
2118
|
-
case "ClientException":
|
|
2119
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2120
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2121
|
-
case "EntityDoesNotExistException":
|
|
2122
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2123
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2124
|
-
case "InsufficientPermissionsException":
|
|
2125
|
-
case "com.amazonaws.directoryservice#InsufficientPermissionsException":
|
|
2126
|
-
throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
|
|
2127
|
-
case "ServiceException":
|
|
2128
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2129
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2130
|
-
default:
|
|
2131
|
-
const parsedBody = parsedOutput.body;
|
|
2132
|
-
return throwDefaultError({
|
|
2133
|
-
output,
|
|
2134
|
-
parsedBody,
|
|
2135
|
-
errorCode,
|
|
2136
|
-
});
|
|
2137
|
-
}
|
|
2138
|
-
};
|
|
2139
|
-
export const de_EnableClientAuthenticationCommand = async (output, context) => {
|
|
2140
|
-
if (output.statusCode >= 300) {
|
|
2141
|
-
return de_EnableClientAuthenticationCommandError(output, context);
|
|
2142
|
-
}
|
|
2143
|
-
const data = await parseBody(output.body, context);
|
|
2144
|
-
let contents = {};
|
|
2145
|
-
contents = _json(data);
|
|
2146
|
-
const response = {
|
|
2147
|
-
$metadata: deserializeMetadata(output),
|
|
2148
|
-
...contents,
|
|
2149
|
-
};
|
|
2150
|
-
return response;
|
|
2151
|
-
};
|
|
2152
|
-
const de_EnableClientAuthenticationCommandError = async (output, context) => {
|
|
2153
|
-
const parsedOutput = {
|
|
2154
|
-
...output,
|
|
2155
|
-
body: await parseErrorBody(output.body, context),
|
|
2156
|
-
};
|
|
2157
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2158
|
-
switch (errorCode) {
|
|
2159
|
-
case "AccessDeniedException":
|
|
2160
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
2161
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2162
|
-
case "ClientException":
|
|
2163
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2164
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2165
|
-
case "DirectoryDoesNotExistException":
|
|
2166
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
2167
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
2168
|
-
case "InvalidClientAuthStatusException":
|
|
2169
|
-
case "com.amazonaws.directoryservice#InvalidClientAuthStatusException":
|
|
2170
|
-
throw await de_InvalidClientAuthStatusExceptionRes(parsedOutput, context);
|
|
2171
|
-
case "NoAvailableCertificateException":
|
|
2172
|
-
case "com.amazonaws.directoryservice#NoAvailableCertificateException":
|
|
2173
|
-
throw await de_NoAvailableCertificateExceptionRes(parsedOutput, context);
|
|
2174
|
-
case "ServiceException":
|
|
2175
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2176
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2177
|
-
case "UnsupportedOperationException":
|
|
2178
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2179
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2180
|
-
default:
|
|
2181
|
-
const parsedBody = parsedOutput.body;
|
|
2182
|
-
return throwDefaultError({
|
|
2183
|
-
output,
|
|
2184
|
-
parsedBody,
|
|
2185
|
-
errorCode,
|
|
2186
|
-
});
|
|
2187
|
-
}
|
|
2188
|
-
};
|
|
2189
|
-
export const de_EnableLDAPSCommand = async (output, context) => {
|
|
2190
|
-
if (output.statusCode >= 300) {
|
|
2191
|
-
return de_EnableLDAPSCommandError(output, context);
|
|
2192
|
-
}
|
|
2193
|
-
const data = await parseBody(output.body, context);
|
|
2194
|
-
let contents = {};
|
|
2195
|
-
contents = _json(data);
|
|
2196
|
-
const response = {
|
|
2197
|
-
$metadata: deserializeMetadata(output),
|
|
2198
|
-
...contents,
|
|
2199
|
-
};
|
|
2200
|
-
return response;
|
|
2201
|
-
};
|
|
2202
|
-
const de_EnableLDAPSCommandError = async (output, context) => {
|
|
2203
|
-
const parsedOutput = {
|
|
2204
|
-
...output,
|
|
2205
|
-
body: await parseErrorBody(output.body, context),
|
|
2206
|
-
};
|
|
2207
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2208
|
-
switch (errorCode) {
|
|
2209
|
-
case "ClientException":
|
|
2210
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2211
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2212
|
-
case "DirectoryDoesNotExistException":
|
|
2213
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
2214
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
2215
|
-
case "DirectoryUnavailableException":
|
|
2216
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
2217
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
2218
|
-
case "InvalidLDAPSStatusException":
|
|
2219
|
-
case "com.amazonaws.directoryservice#InvalidLDAPSStatusException":
|
|
2220
|
-
throw await de_InvalidLDAPSStatusExceptionRes(parsedOutput, context);
|
|
2221
|
-
case "InvalidParameterException":
|
|
2222
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2223
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2224
|
-
case "NoAvailableCertificateException":
|
|
2225
|
-
case "com.amazonaws.directoryservice#NoAvailableCertificateException":
|
|
2226
|
-
throw await de_NoAvailableCertificateExceptionRes(parsedOutput, context);
|
|
2227
|
-
case "ServiceException":
|
|
2228
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2229
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2230
|
-
case "UnsupportedOperationException":
|
|
2231
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2232
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2233
|
-
default:
|
|
2234
|
-
const parsedBody = parsedOutput.body;
|
|
2235
|
-
return throwDefaultError({
|
|
2236
|
-
output,
|
|
2237
|
-
parsedBody,
|
|
2238
|
-
errorCode,
|
|
2239
|
-
});
|
|
2240
|
-
}
|
|
2241
|
-
};
|
|
2242
|
-
export const de_EnableRadiusCommand = async (output, context) => {
|
|
2243
|
-
if (output.statusCode >= 300) {
|
|
2244
|
-
return de_EnableRadiusCommandError(output, context);
|
|
2245
|
-
}
|
|
2246
|
-
const data = await parseBody(output.body, context);
|
|
2247
|
-
let contents = {};
|
|
2248
|
-
contents = _json(data);
|
|
2249
|
-
const response = {
|
|
2250
|
-
$metadata: deserializeMetadata(output),
|
|
2251
|
-
...contents,
|
|
2252
|
-
};
|
|
2253
|
-
return response;
|
|
2254
|
-
};
|
|
2255
|
-
const de_EnableRadiusCommandError = async (output, context) => {
|
|
2256
|
-
const parsedOutput = {
|
|
2257
|
-
...output,
|
|
2258
|
-
body: await parseErrorBody(output.body, context),
|
|
2259
|
-
};
|
|
2260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2261
|
-
switch (errorCode) {
|
|
2262
|
-
case "ClientException":
|
|
2263
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2264
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2265
|
-
case "EntityAlreadyExistsException":
|
|
2266
|
-
case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
|
|
2267
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2268
|
-
case "EntityDoesNotExistException":
|
|
2269
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2270
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2271
|
-
case "InvalidParameterException":
|
|
2272
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2273
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2274
|
-
case "ServiceException":
|
|
2275
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2276
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2277
|
-
default:
|
|
2278
|
-
const parsedBody = parsedOutput.body;
|
|
2279
|
-
return throwDefaultError({
|
|
2280
|
-
output,
|
|
2281
|
-
parsedBody,
|
|
2282
|
-
errorCode,
|
|
2283
|
-
});
|
|
2284
|
-
}
|
|
2285
|
-
};
|
|
2286
|
-
export const de_EnableSsoCommand = async (output, context) => {
|
|
2287
|
-
if (output.statusCode >= 300) {
|
|
2288
|
-
return de_EnableSsoCommandError(output, context);
|
|
2289
|
-
}
|
|
2290
|
-
const data = await parseBody(output.body, context);
|
|
2291
|
-
let contents = {};
|
|
2292
|
-
contents = _json(data);
|
|
2293
|
-
const response = {
|
|
2294
|
-
$metadata: deserializeMetadata(output),
|
|
2295
|
-
...contents,
|
|
2296
|
-
};
|
|
2297
|
-
return response;
|
|
2298
|
-
};
|
|
2299
|
-
const de_EnableSsoCommandError = async (output, context) => {
|
|
2300
|
-
const parsedOutput = {
|
|
2301
|
-
...output,
|
|
2302
|
-
body: await parseErrorBody(output.body, context),
|
|
2303
|
-
};
|
|
2304
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2305
|
-
switch (errorCode) {
|
|
2306
|
-
case "AuthenticationFailedException":
|
|
2307
|
-
case "com.amazonaws.directoryservice#AuthenticationFailedException":
|
|
2308
|
-
throw await de_AuthenticationFailedExceptionRes(parsedOutput, context);
|
|
2309
|
-
case "ClientException":
|
|
2310
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2311
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2312
|
-
case "EntityDoesNotExistException":
|
|
2313
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2314
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2315
|
-
case "InsufficientPermissionsException":
|
|
2316
|
-
case "com.amazonaws.directoryservice#InsufficientPermissionsException":
|
|
2317
|
-
throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
|
|
2318
|
-
case "ServiceException":
|
|
2319
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2320
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2321
|
-
default:
|
|
2322
|
-
const parsedBody = parsedOutput.body;
|
|
2323
|
-
return throwDefaultError({
|
|
2324
|
-
output,
|
|
2325
|
-
parsedBody,
|
|
2326
|
-
errorCode,
|
|
2327
|
-
});
|
|
2328
|
-
}
|
|
2329
|
-
};
|
|
2330
|
-
export const de_GetDirectoryLimitsCommand = async (output, context) => {
|
|
2331
|
-
if (output.statusCode >= 300) {
|
|
2332
|
-
return de_GetDirectoryLimitsCommandError(output, context);
|
|
2333
|
-
}
|
|
2334
|
-
const data = await parseBody(output.body, context);
|
|
2335
|
-
let contents = {};
|
|
2336
|
-
contents = _json(data);
|
|
2337
|
-
const response = {
|
|
2338
|
-
$metadata: deserializeMetadata(output),
|
|
2339
|
-
...contents,
|
|
2340
|
-
};
|
|
2341
|
-
return response;
|
|
2342
|
-
};
|
|
2343
|
-
const de_GetDirectoryLimitsCommandError = async (output, context) => {
|
|
2344
|
-
const parsedOutput = {
|
|
2345
|
-
...output,
|
|
2346
|
-
body: await parseErrorBody(output.body, context),
|
|
2347
|
-
};
|
|
2348
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2349
|
-
switch (errorCode) {
|
|
2350
|
-
case "ClientException":
|
|
2351
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2352
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2353
|
-
case "EntityDoesNotExistException":
|
|
2354
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2355
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2356
|
-
case "ServiceException":
|
|
2357
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2358
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2359
|
-
default:
|
|
2360
|
-
const parsedBody = parsedOutput.body;
|
|
2361
|
-
return throwDefaultError({
|
|
2362
|
-
output,
|
|
2363
|
-
parsedBody,
|
|
2364
|
-
errorCode,
|
|
2365
|
-
});
|
|
2366
|
-
}
|
|
2367
|
-
};
|
|
2368
|
-
export const de_GetSnapshotLimitsCommand = async (output, context) => {
|
|
2369
|
-
if (output.statusCode >= 300) {
|
|
2370
|
-
return de_GetSnapshotLimitsCommandError(output, context);
|
|
2371
|
-
}
|
|
2372
|
-
const data = await parseBody(output.body, context);
|
|
2373
|
-
let contents = {};
|
|
2374
|
-
contents = _json(data);
|
|
2375
|
-
const response = {
|
|
2376
|
-
$metadata: deserializeMetadata(output),
|
|
2377
|
-
...contents,
|
|
2378
|
-
};
|
|
2379
|
-
return response;
|
|
2380
|
-
};
|
|
2381
|
-
const de_GetSnapshotLimitsCommandError = async (output, context) => {
|
|
2382
|
-
const parsedOutput = {
|
|
2383
|
-
...output,
|
|
2384
|
-
body: await parseErrorBody(output.body, context),
|
|
2385
|
-
};
|
|
2386
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2387
|
-
switch (errorCode) {
|
|
2388
|
-
case "ClientException":
|
|
2389
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2390
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2391
|
-
case "EntityDoesNotExistException":
|
|
2392
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2393
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2394
|
-
case "ServiceException":
|
|
2395
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2396
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2397
|
-
default:
|
|
2398
|
-
const parsedBody = parsedOutput.body;
|
|
2399
|
-
return throwDefaultError({
|
|
2400
|
-
output,
|
|
2401
|
-
parsedBody,
|
|
2402
|
-
errorCode,
|
|
2403
|
-
});
|
|
2404
|
-
}
|
|
2405
|
-
};
|
|
2406
|
-
export const de_ListCertificatesCommand = async (output, context) => {
|
|
797
|
+
export const de_DescribeSharedDirectoriesCommand = async (output, context) => {
|
|
2407
798
|
if (output.statusCode >= 300) {
|
|
2408
|
-
return
|
|
799
|
+
return de_CommandError(output, context);
|
|
2409
800
|
}
|
|
2410
801
|
const data = await parseBody(output.body, context);
|
|
2411
802
|
let contents = {};
|
|
2412
|
-
contents =
|
|
803
|
+
contents = de_DescribeSharedDirectoriesResult(data, context);
|
|
2413
804
|
const response = {
|
|
2414
805
|
$metadata: deserializeMetadata(output),
|
|
2415
806
|
...contents,
|
|
2416
807
|
};
|
|
2417
808
|
return response;
|
|
2418
809
|
};
|
|
2419
|
-
const
|
|
2420
|
-
const parsedOutput = {
|
|
2421
|
-
...output,
|
|
2422
|
-
body: await parseErrorBody(output.body, context),
|
|
2423
|
-
};
|
|
2424
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2425
|
-
switch (errorCode) {
|
|
2426
|
-
case "ClientException":
|
|
2427
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2428
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2429
|
-
case "DirectoryDoesNotExistException":
|
|
2430
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
2431
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
2432
|
-
case "InvalidNextTokenException":
|
|
2433
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
2434
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2435
|
-
case "InvalidParameterException":
|
|
2436
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2437
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2438
|
-
case "ServiceException":
|
|
2439
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2440
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2441
|
-
case "UnsupportedOperationException":
|
|
2442
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2443
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2444
|
-
default:
|
|
2445
|
-
const parsedBody = parsedOutput.body;
|
|
2446
|
-
return throwDefaultError({
|
|
2447
|
-
output,
|
|
2448
|
-
parsedBody,
|
|
2449
|
-
errorCode,
|
|
2450
|
-
});
|
|
2451
|
-
}
|
|
2452
|
-
};
|
|
2453
|
-
export const de_ListIpRoutesCommand = async (output, context) => {
|
|
810
|
+
export const de_DescribeSnapshotsCommand = async (output, context) => {
|
|
2454
811
|
if (output.statusCode >= 300) {
|
|
2455
|
-
return
|
|
812
|
+
return de_CommandError(output, context);
|
|
2456
813
|
}
|
|
2457
814
|
const data = await parseBody(output.body, context);
|
|
2458
815
|
let contents = {};
|
|
2459
|
-
contents =
|
|
816
|
+
contents = de_DescribeSnapshotsResult(data, context);
|
|
2460
817
|
const response = {
|
|
2461
818
|
$metadata: deserializeMetadata(output),
|
|
2462
819
|
...contents,
|
|
2463
820
|
};
|
|
2464
821
|
return response;
|
|
2465
822
|
};
|
|
2466
|
-
const
|
|
2467
|
-
const parsedOutput = {
|
|
2468
|
-
...output,
|
|
2469
|
-
body: await parseErrorBody(output.body, context),
|
|
2470
|
-
};
|
|
2471
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2472
|
-
switch (errorCode) {
|
|
2473
|
-
case "ClientException":
|
|
2474
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2475
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2476
|
-
case "EntityDoesNotExistException":
|
|
2477
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2478
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2479
|
-
case "InvalidNextTokenException":
|
|
2480
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
2481
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2482
|
-
case "InvalidParameterException":
|
|
2483
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2484
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2485
|
-
case "ServiceException":
|
|
2486
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2487
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2488
|
-
default:
|
|
2489
|
-
const parsedBody = parsedOutput.body;
|
|
2490
|
-
return throwDefaultError({
|
|
2491
|
-
output,
|
|
2492
|
-
parsedBody,
|
|
2493
|
-
errorCode,
|
|
2494
|
-
});
|
|
2495
|
-
}
|
|
2496
|
-
};
|
|
2497
|
-
export const de_ListLogSubscriptionsCommand = async (output, context) => {
|
|
823
|
+
export const de_DescribeTrustsCommand = async (output, context) => {
|
|
2498
824
|
if (output.statusCode >= 300) {
|
|
2499
|
-
return
|
|
825
|
+
return de_CommandError(output, context);
|
|
2500
826
|
}
|
|
2501
827
|
const data = await parseBody(output.body, context);
|
|
2502
828
|
let contents = {};
|
|
2503
|
-
contents =
|
|
829
|
+
contents = de_DescribeTrustsResult(data, context);
|
|
2504
830
|
const response = {
|
|
2505
831
|
$metadata: deserializeMetadata(output),
|
|
2506
832
|
...contents,
|
|
2507
833
|
};
|
|
2508
834
|
return response;
|
|
2509
835
|
};
|
|
2510
|
-
const
|
|
2511
|
-
const parsedOutput = {
|
|
2512
|
-
...output,
|
|
2513
|
-
body: await parseErrorBody(output.body, context),
|
|
2514
|
-
};
|
|
2515
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2516
|
-
switch (errorCode) {
|
|
2517
|
-
case "ClientException":
|
|
2518
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2519
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2520
|
-
case "EntityDoesNotExistException":
|
|
2521
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2522
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2523
|
-
case "InvalidNextTokenException":
|
|
2524
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
2525
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2526
|
-
case "ServiceException":
|
|
2527
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2528
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2529
|
-
default:
|
|
2530
|
-
const parsedBody = parsedOutput.body;
|
|
2531
|
-
return throwDefaultError({
|
|
2532
|
-
output,
|
|
2533
|
-
parsedBody,
|
|
2534
|
-
errorCode,
|
|
2535
|
-
});
|
|
2536
|
-
}
|
|
2537
|
-
};
|
|
2538
|
-
export const de_ListSchemaExtensionsCommand = async (output, context) => {
|
|
836
|
+
export const de_DescribeUpdateDirectoryCommand = async (output, context) => {
|
|
2539
837
|
if (output.statusCode >= 300) {
|
|
2540
|
-
return
|
|
838
|
+
return de_CommandError(output, context);
|
|
2541
839
|
}
|
|
2542
840
|
const data = await parseBody(output.body, context);
|
|
2543
841
|
let contents = {};
|
|
2544
|
-
contents =
|
|
842
|
+
contents = de_DescribeUpdateDirectoryResult(data, context);
|
|
2545
843
|
const response = {
|
|
2546
844
|
$metadata: deserializeMetadata(output),
|
|
2547
845
|
...contents,
|
|
2548
846
|
};
|
|
2549
847
|
return response;
|
|
2550
848
|
};
|
|
2551
|
-
const
|
|
2552
|
-
const parsedOutput = {
|
|
2553
|
-
...output,
|
|
2554
|
-
body: await parseErrorBody(output.body, context),
|
|
2555
|
-
};
|
|
2556
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2557
|
-
switch (errorCode) {
|
|
2558
|
-
case "ClientException":
|
|
2559
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2560
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2561
|
-
case "EntityDoesNotExistException":
|
|
2562
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2563
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2564
|
-
case "InvalidNextTokenException":
|
|
2565
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
2566
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2567
|
-
case "ServiceException":
|
|
2568
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2569
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2570
|
-
default:
|
|
2571
|
-
const parsedBody = parsedOutput.body;
|
|
2572
|
-
return throwDefaultError({
|
|
2573
|
-
output,
|
|
2574
|
-
parsedBody,
|
|
2575
|
-
errorCode,
|
|
2576
|
-
});
|
|
2577
|
-
}
|
|
2578
|
-
};
|
|
2579
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
849
|
+
export const de_DisableClientAuthenticationCommand = async (output, context) => {
|
|
2580
850
|
if (output.statusCode >= 300) {
|
|
2581
|
-
return
|
|
851
|
+
return de_CommandError(output, context);
|
|
2582
852
|
}
|
|
2583
853
|
const data = await parseBody(output.body, context);
|
|
2584
854
|
let contents = {};
|
|
@@ -2589,40 +859,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2589
859
|
};
|
|
2590
860
|
return response;
|
|
2591
861
|
};
|
|
2592
|
-
const
|
|
2593
|
-
const parsedOutput = {
|
|
2594
|
-
...output,
|
|
2595
|
-
body: await parseErrorBody(output.body, context),
|
|
2596
|
-
};
|
|
2597
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2598
|
-
switch (errorCode) {
|
|
2599
|
-
case "ClientException":
|
|
2600
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2601
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2602
|
-
case "EntityDoesNotExistException":
|
|
2603
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2604
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2605
|
-
case "InvalidNextTokenException":
|
|
2606
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
2607
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2608
|
-
case "InvalidParameterException":
|
|
2609
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2610
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2611
|
-
case "ServiceException":
|
|
2612
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2613
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2614
|
-
default:
|
|
2615
|
-
const parsedBody = parsedOutput.body;
|
|
2616
|
-
return throwDefaultError({
|
|
2617
|
-
output,
|
|
2618
|
-
parsedBody,
|
|
2619
|
-
errorCode,
|
|
2620
|
-
});
|
|
2621
|
-
}
|
|
2622
|
-
};
|
|
2623
|
-
export const de_RegisterCertificateCommand = async (output, context) => {
|
|
862
|
+
export const de_DisableLDAPSCommand = async (output, context) => {
|
|
2624
863
|
if (output.statusCode >= 300) {
|
|
2625
|
-
return
|
|
864
|
+
return de_CommandError(output, context);
|
|
2626
865
|
}
|
|
2627
866
|
const data = await parseBody(output.body, context);
|
|
2628
867
|
let contents = {};
|
|
@@ -2630,55 +869,12 @@ export const de_RegisterCertificateCommand = async (output, context) => {
|
|
|
2630
869
|
const response = {
|
|
2631
870
|
$metadata: deserializeMetadata(output),
|
|
2632
871
|
...contents,
|
|
2633
|
-
};
|
|
2634
|
-
return response;
|
|
2635
|
-
};
|
|
2636
|
-
const de_RegisterCertificateCommandError = async (output, context) => {
|
|
2637
|
-
const parsedOutput = {
|
|
2638
|
-
...output,
|
|
2639
|
-
body: await parseErrorBody(output.body, context),
|
|
2640
|
-
};
|
|
2641
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2642
|
-
switch (errorCode) {
|
|
2643
|
-
case "CertificateAlreadyExistsException":
|
|
2644
|
-
case "com.amazonaws.directoryservice#CertificateAlreadyExistsException":
|
|
2645
|
-
throw await de_CertificateAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2646
|
-
case "CertificateLimitExceededException":
|
|
2647
|
-
case "com.amazonaws.directoryservice#CertificateLimitExceededException":
|
|
2648
|
-
throw await de_CertificateLimitExceededExceptionRes(parsedOutput, context);
|
|
2649
|
-
case "ClientException":
|
|
2650
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2651
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2652
|
-
case "DirectoryDoesNotExistException":
|
|
2653
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
2654
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
2655
|
-
case "DirectoryUnavailableException":
|
|
2656
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
2657
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
2658
|
-
case "InvalidCertificateException":
|
|
2659
|
-
case "com.amazonaws.directoryservice#InvalidCertificateException":
|
|
2660
|
-
throw await de_InvalidCertificateExceptionRes(parsedOutput, context);
|
|
2661
|
-
case "InvalidParameterException":
|
|
2662
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2663
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2664
|
-
case "ServiceException":
|
|
2665
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2666
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2667
|
-
case "UnsupportedOperationException":
|
|
2668
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2669
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2670
|
-
default:
|
|
2671
|
-
const parsedBody = parsedOutput.body;
|
|
2672
|
-
return throwDefaultError({
|
|
2673
|
-
output,
|
|
2674
|
-
parsedBody,
|
|
2675
|
-
errorCode,
|
|
2676
|
-
});
|
|
2677
|
-
}
|
|
872
|
+
};
|
|
873
|
+
return response;
|
|
2678
874
|
};
|
|
2679
|
-
export const
|
|
875
|
+
export const de_DisableRadiusCommand = async (output, context) => {
|
|
2680
876
|
if (output.statusCode >= 300) {
|
|
2681
|
-
return
|
|
877
|
+
return de_CommandError(output, context);
|
|
2682
878
|
}
|
|
2683
879
|
const data = await parseBody(output.body, context);
|
|
2684
880
|
let contents = {};
|
|
@@ -2689,37 +885,9 @@ export const de_RegisterEventTopicCommand = async (output, context) => {
|
|
|
2689
885
|
};
|
|
2690
886
|
return response;
|
|
2691
887
|
};
|
|
2692
|
-
const
|
|
2693
|
-
const parsedOutput = {
|
|
2694
|
-
...output,
|
|
2695
|
-
body: await parseErrorBody(output.body, context),
|
|
2696
|
-
};
|
|
2697
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2698
|
-
switch (errorCode) {
|
|
2699
|
-
case "ClientException":
|
|
2700
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2701
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2702
|
-
case "EntityDoesNotExistException":
|
|
2703
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2704
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2705
|
-
case "InvalidParameterException":
|
|
2706
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2707
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2708
|
-
case "ServiceException":
|
|
2709
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2710
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2711
|
-
default:
|
|
2712
|
-
const parsedBody = parsedOutput.body;
|
|
2713
|
-
return throwDefaultError({
|
|
2714
|
-
output,
|
|
2715
|
-
parsedBody,
|
|
2716
|
-
errorCode,
|
|
2717
|
-
});
|
|
2718
|
-
}
|
|
2719
|
-
};
|
|
2720
|
-
export const de_RejectSharedDirectoryCommand = async (output, context) => {
|
|
888
|
+
export const de_DisableSsoCommand = async (output, context) => {
|
|
2721
889
|
if (output.statusCode >= 300) {
|
|
2722
|
-
return
|
|
890
|
+
return de_CommandError(output, context);
|
|
2723
891
|
}
|
|
2724
892
|
const data = await parseBody(output.body, context);
|
|
2725
893
|
let contents = {};
|
|
@@ -2730,40 +898,22 @@ export const de_RejectSharedDirectoryCommand = async (output, context) => {
|
|
|
2730
898
|
};
|
|
2731
899
|
return response;
|
|
2732
900
|
};
|
|
2733
|
-
const
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
body: await parseErrorBody(output.body, context),
|
|
2737
|
-
};
|
|
2738
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2739
|
-
switch (errorCode) {
|
|
2740
|
-
case "ClientException":
|
|
2741
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2742
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2743
|
-
case "DirectoryAlreadySharedException":
|
|
2744
|
-
case "com.amazonaws.directoryservice#DirectoryAlreadySharedException":
|
|
2745
|
-
throw await de_DirectoryAlreadySharedExceptionRes(parsedOutput, context);
|
|
2746
|
-
case "EntityDoesNotExistException":
|
|
2747
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2748
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2749
|
-
case "InvalidParameterException":
|
|
2750
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2751
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2752
|
-
case "ServiceException":
|
|
2753
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2754
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2755
|
-
default:
|
|
2756
|
-
const parsedBody = parsedOutput.body;
|
|
2757
|
-
return throwDefaultError({
|
|
2758
|
-
output,
|
|
2759
|
-
parsedBody,
|
|
2760
|
-
errorCode,
|
|
2761
|
-
});
|
|
901
|
+
export const de_EnableClientAuthenticationCommand = async (output, context) => {
|
|
902
|
+
if (output.statusCode >= 300) {
|
|
903
|
+
return de_CommandError(output, context);
|
|
2762
904
|
}
|
|
905
|
+
const data = await parseBody(output.body, context);
|
|
906
|
+
let contents = {};
|
|
907
|
+
contents = _json(data);
|
|
908
|
+
const response = {
|
|
909
|
+
$metadata: deserializeMetadata(output),
|
|
910
|
+
...contents,
|
|
911
|
+
};
|
|
912
|
+
return response;
|
|
2763
913
|
};
|
|
2764
|
-
export const
|
|
914
|
+
export const de_EnableLDAPSCommand = async (output, context) => {
|
|
2765
915
|
if (output.statusCode >= 300) {
|
|
2766
|
-
return
|
|
916
|
+
return de_CommandError(output, context);
|
|
2767
917
|
}
|
|
2768
918
|
const data = await parseBody(output.body, context);
|
|
2769
919
|
let contents = {};
|
|
@@ -2774,40 +924,22 @@ export const de_RemoveIpRoutesCommand = async (output, context) => {
|
|
|
2774
924
|
};
|
|
2775
925
|
return response;
|
|
2776
926
|
};
|
|
2777
|
-
const
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
body: await parseErrorBody(output.body, context),
|
|
2781
|
-
};
|
|
2782
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2783
|
-
switch (errorCode) {
|
|
2784
|
-
case "ClientException":
|
|
2785
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2786
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2787
|
-
case "DirectoryUnavailableException":
|
|
2788
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
2789
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
2790
|
-
case "EntityDoesNotExistException":
|
|
2791
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2792
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2793
|
-
case "InvalidParameterException":
|
|
2794
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2795
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2796
|
-
case "ServiceException":
|
|
2797
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2798
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2799
|
-
default:
|
|
2800
|
-
const parsedBody = parsedOutput.body;
|
|
2801
|
-
return throwDefaultError({
|
|
2802
|
-
output,
|
|
2803
|
-
parsedBody,
|
|
2804
|
-
errorCode,
|
|
2805
|
-
});
|
|
927
|
+
export const de_EnableRadiusCommand = async (output, context) => {
|
|
928
|
+
if (output.statusCode >= 300) {
|
|
929
|
+
return de_CommandError(output, context);
|
|
2806
930
|
}
|
|
931
|
+
const data = await parseBody(output.body, context);
|
|
932
|
+
let contents = {};
|
|
933
|
+
contents = _json(data);
|
|
934
|
+
const response = {
|
|
935
|
+
$metadata: deserializeMetadata(output),
|
|
936
|
+
...contents,
|
|
937
|
+
};
|
|
938
|
+
return response;
|
|
2807
939
|
};
|
|
2808
|
-
export const
|
|
940
|
+
export const de_EnableSsoCommand = async (output, context) => {
|
|
2809
941
|
if (output.statusCode >= 300) {
|
|
2810
|
-
return
|
|
942
|
+
return de_CommandError(output, context);
|
|
2811
943
|
}
|
|
2812
944
|
const data = await parseBody(output.body, context);
|
|
2813
945
|
let contents = {};
|
|
@@ -2818,43 +950,22 @@ export const de_RemoveRegionCommand = async (output, context) => {
|
|
|
2818
950
|
};
|
|
2819
951
|
return response;
|
|
2820
952
|
};
|
|
2821
|
-
const
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
body: await parseErrorBody(output.body, context),
|
|
2825
|
-
};
|
|
2826
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2827
|
-
switch (errorCode) {
|
|
2828
|
-
case "AccessDeniedException":
|
|
2829
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
2830
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2831
|
-
case "ClientException":
|
|
2832
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2833
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2834
|
-
case "DirectoryDoesNotExistException":
|
|
2835
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
2836
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
2837
|
-
case "DirectoryUnavailableException":
|
|
2838
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
2839
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
2840
|
-
case "ServiceException":
|
|
2841
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2842
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2843
|
-
case "UnsupportedOperationException":
|
|
2844
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2845
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2846
|
-
default:
|
|
2847
|
-
const parsedBody = parsedOutput.body;
|
|
2848
|
-
return throwDefaultError({
|
|
2849
|
-
output,
|
|
2850
|
-
parsedBody,
|
|
2851
|
-
errorCode,
|
|
2852
|
-
});
|
|
953
|
+
export const de_GetDirectoryLimitsCommand = async (output, context) => {
|
|
954
|
+
if (output.statusCode >= 300) {
|
|
955
|
+
return de_CommandError(output, context);
|
|
2853
956
|
}
|
|
957
|
+
const data = await parseBody(output.body, context);
|
|
958
|
+
let contents = {};
|
|
959
|
+
contents = _json(data);
|
|
960
|
+
const response = {
|
|
961
|
+
$metadata: deserializeMetadata(output),
|
|
962
|
+
...contents,
|
|
963
|
+
};
|
|
964
|
+
return response;
|
|
2854
965
|
};
|
|
2855
|
-
export const
|
|
966
|
+
export const de_GetSnapshotLimitsCommand = async (output, context) => {
|
|
2856
967
|
if (output.statusCode >= 300) {
|
|
2857
|
-
return
|
|
968
|
+
return de_CommandError(output, context);
|
|
2858
969
|
}
|
|
2859
970
|
const data = await parseBody(output.body, context);
|
|
2860
971
|
let contents = {};
|
|
@@ -2865,87 +976,74 @@ export const de_RemoveTagsFromResourceCommand = async (output, context) => {
|
|
|
2865
976
|
};
|
|
2866
977
|
return response;
|
|
2867
978
|
};
|
|
2868
|
-
const
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
979
|
+
export const de_ListCertificatesCommand = async (output, context) => {
|
|
980
|
+
if (output.statusCode >= 300) {
|
|
981
|
+
return de_CommandError(output, context);
|
|
982
|
+
}
|
|
983
|
+
const data = await parseBody(output.body, context);
|
|
984
|
+
let contents = {};
|
|
985
|
+
contents = de_ListCertificatesResult(data, context);
|
|
986
|
+
const response = {
|
|
987
|
+
$metadata: deserializeMetadata(output),
|
|
988
|
+
...contents,
|
|
2872
989
|
};
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
case "EntityDoesNotExistException":
|
|
2879
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2880
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2881
|
-
case "InvalidParameterException":
|
|
2882
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2883
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2884
|
-
case "ServiceException":
|
|
2885
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2886
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2887
|
-
default:
|
|
2888
|
-
const parsedBody = parsedOutput.body;
|
|
2889
|
-
return throwDefaultError({
|
|
2890
|
-
output,
|
|
2891
|
-
parsedBody,
|
|
2892
|
-
errorCode,
|
|
2893
|
-
});
|
|
990
|
+
return response;
|
|
991
|
+
};
|
|
992
|
+
export const de_ListIpRoutesCommand = async (output, context) => {
|
|
993
|
+
if (output.statusCode >= 300) {
|
|
994
|
+
return de_CommandError(output, context);
|
|
2894
995
|
}
|
|
996
|
+
const data = await parseBody(output.body, context);
|
|
997
|
+
let contents = {};
|
|
998
|
+
contents = de_ListIpRoutesResult(data, context);
|
|
999
|
+
const response = {
|
|
1000
|
+
$metadata: deserializeMetadata(output),
|
|
1001
|
+
...contents,
|
|
1002
|
+
};
|
|
1003
|
+
return response;
|
|
2895
1004
|
};
|
|
2896
|
-
export const
|
|
1005
|
+
export const de_ListLogSubscriptionsCommand = async (output, context) => {
|
|
2897
1006
|
if (output.statusCode >= 300) {
|
|
2898
|
-
return
|
|
1007
|
+
return de_CommandError(output, context);
|
|
2899
1008
|
}
|
|
2900
1009
|
const data = await parseBody(output.body, context);
|
|
2901
1010
|
let contents = {};
|
|
2902
|
-
contents =
|
|
1011
|
+
contents = de_ListLogSubscriptionsResult(data, context);
|
|
2903
1012
|
const response = {
|
|
2904
1013
|
$metadata: deserializeMetadata(output),
|
|
2905
1014
|
...contents,
|
|
2906
1015
|
};
|
|
2907
1016
|
return response;
|
|
2908
1017
|
};
|
|
2909
|
-
const
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
1018
|
+
export const de_ListSchemaExtensionsCommand = async (output, context) => {
|
|
1019
|
+
if (output.statusCode >= 300) {
|
|
1020
|
+
return de_CommandError(output, context);
|
|
1021
|
+
}
|
|
1022
|
+
const data = await parseBody(output.body, context);
|
|
1023
|
+
let contents = {};
|
|
1024
|
+
contents = de_ListSchemaExtensionsResult(data, context);
|
|
1025
|
+
const response = {
|
|
1026
|
+
$metadata: deserializeMetadata(output),
|
|
1027
|
+
...contents,
|
|
2913
1028
|
};
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
case "DirectoryUnavailableException":
|
|
2920
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
2921
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
2922
|
-
case "EntityDoesNotExistException":
|
|
2923
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2924
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2925
|
-
case "InvalidPasswordException":
|
|
2926
|
-
case "com.amazonaws.directoryservice#InvalidPasswordException":
|
|
2927
|
-
throw await de_InvalidPasswordExceptionRes(parsedOutput, context);
|
|
2928
|
-
case "ServiceException":
|
|
2929
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2930
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2931
|
-
case "UnsupportedOperationException":
|
|
2932
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2933
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2934
|
-
case "UserDoesNotExistException":
|
|
2935
|
-
case "com.amazonaws.directoryservice#UserDoesNotExistException":
|
|
2936
|
-
throw await de_UserDoesNotExistExceptionRes(parsedOutput, context);
|
|
2937
|
-
default:
|
|
2938
|
-
const parsedBody = parsedOutput.body;
|
|
2939
|
-
return throwDefaultError({
|
|
2940
|
-
output,
|
|
2941
|
-
parsedBody,
|
|
2942
|
-
errorCode,
|
|
2943
|
-
});
|
|
1029
|
+
return response;
|
|
1030
|
+
};
|
|
1031
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1032
|
+
if (output.statusCode >= 300) {
|
|
1033
|
+
return de_CommandError(output, context);
|
|
2944
1034
|
}
|
|
1035
|
+
const data = await parseBody(output.body, context);
|
|
1036
|
+
let contents = {};
|
|
1037
|
+
contents = _json(data);
|
|
1038
|
+
const response = {
|
|
1039
|
+
$metadata: deserializeMetadata(output),
|
|
1040
|
+
...contents,
|
|
1041
|
+
};
|
|
1042
|
+
return response;
|
|
2945
1043
|
};
|
|
2946
|
-
export const
|
|
1044
|
+
export const de_RegisterCertificateCommand = async (output, context) => {
|
|
2947
1045
|
if (output.statusCode >= 300) {
|
|
2948
|
-
return
|
|
1046
|
+
return de_CommandError(output, context);
|
|
2949
1047
|
}
|
|
2950
1048
|
const data = await parseBody(output.body, context);
|
|
2951
1049
|
let contents = {};
|
|
@@ -2956,37 +1054,9 @@ export const de_RestoreFromSnapshotCommand = async (output, context) => {
|
|
|
2956
1054
|
};
|
|
2957
1055
|
return response;
|
|
2958
1056
|
};
|
|
2959
|
-
const
|
|
2960
|
-
const parsedOutput = {
|
|
2961
|
-
...output,
|
|
2962
|
-
body: await parseErrorBody(output.body, context),
|
|
2963
|
-
};
|
|
2964
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2965
|
-
switch (errorCode) {
|
|
2966
|
-
case "ClientException":
|
|
2967
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2968
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2969
|
-
case "EntityDoesNotExistException":
|
|
2970
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2971
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2972
|
-
case "InvalidParameterException":
|
|
2973
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2974
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2975
|
-
case "ServiceException":
|
|
2976
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2977
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2978
|
-
default:
|
|
2979
|
-
const parsedBody = parsedOutput.body;
|
|
2980
|
-
return throwDefaultError({
|
|
2981
|
-
output,
|
|
2982
|
-
parsedBody,
|
|
2983
|
-
errorCode,
|
|
2984
|
-
});
|
|
2985
|
-
}
|
|
2986
|
-
};
|
|
2987
|
-
export const de_ShareDirectoryCommand = async (output, context) => {
|
|
1057
|
+
export const de_RegisterEventTopicCommand = async (output, context) => {
|
|
2988
1058
|
if (output.statusCode >= 300) {
|
|
2989
|
-
return
|
|
1059
|
+
return de_CommandError(output, context);
|
|
2990
1060
|
}
|
|
2991
1061
|
const data = await parseBody(output.body, context);
|
|
2992
1062
|
let contents = {};
|
|
@@ -2997,55 +1067,9 @@ export const de_ShareDirectoryCommand = async (output, context) => {
|
|
|
2997
1067
|
};
|
|
2998
1068
|
return response;
|
|
2999
1069
|
};
|
|
3000
|
-
const
|
|
3001
|
-
const parsedOutput = {
|
|
3002
|
-
...output,
|
|
3003
|
-
body: await parseErrorBody(output.body, context),
|
|
3004
|
-
};
|
|
3005
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3006
|
-
switch (errorCode) {
|
|
3007
|
-
case "AccessDeniedException":
|
|
3008
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
3009
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3010
|
-
case "ClientException":
|
|
3011
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3012
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3013
|
-
case "DirectoryAlreadySharedException":
|
|
3014
|
-
case "com.amazonaws.directoryservice#DirectoryAlreadySharedException":
|
|
3015
|
-
throw await de_DirectoryAlreadySharedExceptionRes(parsedOutput, context);
|
|
3016
|
-
case "EntityDoesNotExistException":
|
|
3017
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3018
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3019
|
-
case "InvalidParameterException":
|
|
3020
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3021
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3022
|
-
case "InvalidTargetException":
|
|
3023
|
-
case "com.amazonaws.directoryservice#InvalidTargetException":
|
|
3024
|
-
throw await de_InvalidTargetExceptionRes(parsedOutput, context);
|
|
3025
|
-
case "OrganizationsException":
|
|
3026
|
-
case "com.amazonaws.directoryservice#OrganizationsException":
|
|
3027
|
-
throw await de_OrganizationsExceptionRes(parsedOutput, context);
|
|
3028
|
-
case "ServiceException":
|
|
3029
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3030
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3031
|
-
case "ShareLimitExceededException":
|
|
3032
|
-
case "com.amazonaws.directoryservice#ShareLimitExceededException":
|
|
3033
|
-
throw await de_ShareLimitExceededExceptionRes(parsedOutput, context);
|
|
3034
|
-
case "UnsupportedOperationException":
|
|
3035
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
3036
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3037
|
-
default:
|
|
3038
|
-
const parsedBody = parsedOutput.body;
|
|
3039
|
-
return throwDefaultError({
|
|
3040
|
-
output,
|
|
3041
|
-
parsedBody,
|
|
3042
|
-
errorCode,
|
|
3043
|
-
});
|
|
3044
|
-
}
|
|
3045
|
-
};
|
|
3046
|
-
export const de_StartSchemaExtensionCommand = async (output, context) => {
|
|
1070
|
+
export const de_RejectSharedDirectoryCommand = async (output, context) => {
|
|
3047
1071
|
if (output.statusCode >= 300) {
|
|
3048
|
-
return
|
|
1072
|
+
return de_CommandError(output, context);
|
|
3049
1073
|
}
|
|
3050
1074
|
const data = await parseBody(output.body, context);
|
|
3051
1075
|
let contents = {};
|
|
@@ -3056,43 +1080,22 @@ export const de_StartSchemaExtensionCommand = async (output, context) => {
|
|
|
3056
1080
|
};
|
|
3057
1081
|
return response;
|
|
3058
1082
|
};
|
|
3059
|
-
const
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
body: await parseErrorBody(output.body, context),
|
|
3063
|
-
};
|
|
3064
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3065
|
-
switch (errorCode) {
|
|
3066
|
-
case "ClientException":
|
|
3067
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3068
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3069
|
-
case "DirectoryUnavailableException":
|
|
3070
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
3071
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
3072
|
-
case "EntityDoesNotExistException":
|
|
3073
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3074
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3075
|
-
case "InvalidParameterException":
|
|
3076
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3077
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3078
|
-
case "ServiceException":
|
|
3079
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3080
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3081
|
-
case "SnapshotLimitExceededException":
|
|
3082
|
-
case "com.amazonaws.directoryservice#SnapshotLimitExceededException":
|
|
3083
|
-
throw await de_SnapshotLimitExceededExceptionRes(parsedOutput, context);
|
|
3084
|
-
default:
|
|
3085
|
-
const parsedBody = parsedOutput.body;
|
|
3086
|
-
return throwDefaultError({
|
|
3087
|
-
output,
|
|
3088
|
-
parsedBody,
|
|
3089
|
-
errorCode,
|
|
3090
|
-
});
|
|
1083
|
+
export const de_RemoveIpRoutesCommand = async (output, context) => {
|
|
1084
|
+
if (output.statusCode >= 300) {
|
|
1085
|
+
return de_CommandError(output, context);
|
|
3091
1086
|
}
|
|
1087
|
+
const data = await parseBody(output.body, context);
|
|
1088
|
+
let contents = {};
|
|
1089
|
+
contents = _json(data);
|
|
1090
|
+
const response = {
|
|
1091
|
+
$metadata: deserializeMetadata(output),
|
|
1092
|
+
...contents,
|
|
1093
|
+
};
|
|
1094
|
+
return response;
|
|
3092
1095
|
};
|
|
3093
|
-
export const
|
|
1096
|
+
export const de_RemoveRegionCommand = async (output, context) => {
|
|
3094
1097
|
if (output.statusCode >= 300) {
|
|
3095
|
-
return
|
|
1098
|
+
return de_CommandError(output, context);
|
|
3096
1099
|
}
|
|
3097
1100
|
const data = await parseBody(output.body, context);
|
|
3098
1101
|
let contents = {};
|
|
@@ -3103,40 +1106,22 @@ export const de_UnshareDirectoryCommand = async (output, context) => {
|
|
|
3103
1106
|
};
|
|
3104
1107
|
return response;
|
|
3105
1108
|
};
|
|
3106
|
-
const
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
body: await parseErrorBody(output.body, context),
|
|
3110
|
-
};
|
|
3111
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3112
|
-
switch (errorCode) {
|
|
3113
|
-
case "ClientException":
|
|
3114
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3115
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3116
|
-
case "DirectoryNotSharedException":
|
|
3117
|
-
case "com.amazonaws.directoryservice#DirectoryNotSharedException":
|
|
3118
|
-
throw await de_DirectoryNotSharedExceptionRes(parsedOutput, context);
|
|
3119
|
-
case "EntityDoesNotExistException":
|
|
3120
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3121
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3122
|
-
case "InvalidTargetException":
|
|
3123
|
-
case "com.amazonaws.directoryservice#InvalidTargetException":
|
|
3124
|
-
throw await de_InvalidTargetExceptionRes(parsedOutput, context);
|
|
3125
|
-
case "ServiceException":
|
|
3126
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3127
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3128
|
-
default:
|
|
3129
|
-
const parsedBody = parsedOutput.body;
|
|
3130
|
-
return throwDefaultError({
|
|
3131
|
-
output,
|
|
3132
|
-
parsedBody,
|
|
3133
|
-
errorCode,
|
|
3134
|
-
});
|
|
1109
|
+
export const de_RemoveTagsFromResourceCommand = async (output, context) => {
|
|
1110
|
+
if (output.statusCode >= 300) {
|
|
1111
|
+
return de_CommandError(output, context);
|
|
3135
1112
|
}
|
|
1113
|
+
const data = await parseBody(output.body, context);
|
|
1114
|
+
let contents = {};
|
|
1115
|
+
contents = _json(data);
|
|
1116
|
+
const response = {
|
|
1117
|
+
$metadata: deserializeMetadata(output),
|
|
1118
|
+
...contents,
|
|
1119
|
+
};
|
|
1120
|
+
return response;
|
|
3136
1121
|
};
|
|
3137
|
-
export const
|
|
1122
|
+
export const de_ResetUserPasswordCommand = async (output, context) => {
|
|
3138
1123
|
if (output.statusCode >= 300) {
|
|
3139
|
-
return
|
|
1124
|
+
return de_CommandError(output, context);
|
|
3140
1125
|
}
|
|
3141
1126
|
const data = await parseBody(output.body, context);
|
|
3142
1127
|
let contents = {};
|
|
@@ -3147,43 +1132,22 @@ export const de_UpdateConditionalForwarderCommand = async (output, context) => {
|
|
|
3147
1132
|
};
|
|
3148
1133
|
return response;
|
|
3149
1134
|
};
|
|
3150
|
-
const
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
body: await parseErrorBody(output.body, context),
|
|
3154
|
-
};
|
|
3155
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3156
|
-
switch (errorCode) {
|
|
3157
|
-
case "ClientException":
|
|
3158
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3159
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3160
|
-
case "DirectoryUnavailableException":
|
|
3161
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
3162
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
3163
|
-
case "EntityDoesNotExistException":
|
|
3164
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3165
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3166
|
-
case "InvalidParameterException":
|
|
3167
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3168
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3169
|
-
case "ServiceException":
|
|
3170
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3171
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3172
|
-
case "UnsupportedOperationException":
|
|
3173
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
3174
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3175
|
-
default:
|
|
3176
|
-
const parsedBody = parsedOutput.body;
|
|
3177
|
-
return throwDefaultError({
|
|
3178
|
-
output,
|
|
3179
|
-
parsedBody,
|
|
3180
|
-
errorCode,
|
|
3181
|
-
});
|
|
1135
|
+
export const de_RestoreFromSnapshotCommand = async (output, context) => {
|
|
1136
|
+
if (output.statusCode >= 300) {
|
|
1137
|
+
return de_CommandError(output, context);
|
|
3182
1138
|
}
|
|
1139
|
+
const data = await parseBody(output.body, context);
|
|
1140
|
+
let contents = {};
|
|
1141
|
+
contents = _json(data);
|
|
1142
|
+
const response = {
|
|
1143
|
+
$metadata: deserializeMetadata(output),
|
|
1144
|
+
...contents,
|
|
1145
|
+
};
|
|
1146
|
+
return response;
|
|
3183
1147
|
};
|
|
3184
|
-
export const
|
|
1148
|
+
export const de_ShareDirectoryCommand = async (output, context) => {
|
|
3185
1149
|
if (output.statusCode >= 300) {
|
|
3186
|
-
return
|
|
1150
|
+
return de_CommandError(output, context);
|
|
3187
1151
|
}
|
|
3188
1152
|
const data = await parseBody(output.body, context);
|
|
3189
1153
|
let contents = {};
|
|
@@ -3194,52 +1158,22 @@ export const de_UpdateDirectorySetupCommand = async (output, context) => {
|
|
|
3194
1158
|
};
|
|
3195
1159
|
return response;
|
|
3196
1160
|
};
|
|
3197
|
-
const
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
body: await parseErrorBody(output.body, context),
|
|
3201
|
-
};
|
|
3202
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3203
|
-
switch (errorCode) {
|
|
3204
|
-
case "AccessDeniedException":
|
|
3205
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
3206
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3207
|
-
case "ClientException":
|
|
3208
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3209
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3210
|
-
case "DirectoryDoesNotExistException":
|
|
3211
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
3212
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
3213
|
-
case "DirectoryInDesiredStateException":
|
|
3214
|
-
case "com.amazonaws.directoryservice#DirectoryInDesiredStateException":
|
|
3215
|
-
throw await de_DirectoryInDesiredStateExceptionRes(parsedOutput, context);
|
|
3216
|
-
case "DirectoryUnavailableException":
|
|
3217
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
3218
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
3219
|
-
case "InvalidParameterException":
|
|
3220
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3221
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3222
|
-
case "ServiceException":
|
|
3223
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3224
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3225
|
-
case "SnapshotLimitExceededException":
|
|
3226
|
-
case "com.amazonaws.directoryservice#SnapshotLimitExceededException":
|
|
3227
|
-
throw await de_SnapshotLimitExceededExceptionRes(parsedOutput, context);
|
|
3228
|
-
case "UnsupportedOperationException":
|
|
3229
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
3230
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3231
|
-
default:
|
|
3232
|
-
const parsedBody = parsedOutput.body;
|
|
3233
|
-
return throwDefaultError({
|
|
3234
|
-
output,
|
|
3235
|
-
parsedBody,
|
|
3236
|
-
errorCode,
|
|
3237
|
-
});
|
|
1161
|
+
export const de_StartSchemaExtensionCommand = async (output, context) => {
|
|
1162
|
+
if (output.statusCode >= 300) {
|
|
1163
|
+
return de_CommandError(output, context);
|
|
3238
1164
|
}
|
|
1165
|
+
const data = await parseBody(output.body, context);
|
|
1166
|
+
let contents = {};
|
|
1167
|
+
contents = _json(data);
|
|
1168
|
+
const response = {
|
|
1169
|
+
$metadata: deserializeMetadata(output),
|
|
1170
|
+
...contents,
|
|
1171
|
+
};
|
|
1172
|
+
return response;
|
|
3239
1173
|
};
|
|
3240
|
-
export const
|
|
1174
|
+
export const de_UnshareDirectoryCommand = async (output, context) => {
|
|
3241
1175
|
if (output.statusCode >= 300) {
|
|
3242
|
-
return
|
|
1176
|
+
return de_CommandError(output, context);
|
|
3243
1177
|
}
|
|
3244
1178
|
const data = await parseBody(output.body, context);
|
|
3245
1179
|
let contents = {};
|
|
@@ -3250,46 +1184,22 @@ export const de_UpdateNumberOfDomainControllersCommand = async (output, context)
|
|
|
3250
1184
|
};
|
|
3251
1185
|
return response;
|
|
3252
1186
|
};
|
|
3253
|
-
const
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
body: await parseErrorBody(output.body, context),
|
|
3257
|
-
};
|
|
3258
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3259
|
-
switch (errorCode) {
|
|
3260
|
-
case "ClientException":
|
|
3261
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3262
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3263
|
-
case "DirectoryUnavailableException":
|
|
3264
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
3265
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
3266
|
-
case "DomainControllerLimitExceededException":
|
|
3267
|
-
case "com.amazonaws.directoryservice#DomainControllerLimitExceededException":
|
|
3268
|
-
throw await de_DomainControllerLimitExceededExceptionRes(parsedOutput, context);
|
|
3269
|
-
case "EntityDoesNotExistException":
|
|
3270
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3271
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3272
|
-
case "InvalidParameterException":
|
|
3273
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3274
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3275
|
-
case "ServiceException":
|
|
3276
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3277
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3278
|
-
case "UnsupportedOperationException":
|
|
3279
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
3280
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3281
|
-
default:
|
|
3282
|
-
const parsedBody = parsedOutput.body;
|
|
3283
|
-
return throwDefaultError({
|
|
3284
|
-
output,
|
|
3285
|
-
parsedBody,
|
|
3286
|
-
errorCode,
|
|
3287
|
-
});
|
|
1187
|
+
export const de_UpdateConditionalForwarderCommand = async (output, context) => {
|
|
1188
|
+
if (output.statusCode >= 300) {
|
|
1189
|
+
return de_CommandError(output, context);
|
|
3288
1190
|
}
|
|
1191
|
+
const data = await parseBody(output.body, context);
|
|
1192
|
+
let contents = {};
|
|
1193
|
+
contents = _json(data);
|
|
1194
|
+
const response = {
|
|
1195
|
+
$metadata: deserializeMetadata(output),
|
|
1196
|
+
...contents,
|
|
1197
|
+
};
|
|
1198
|
+
return response;
|
|
3289
1199
|
};
|
|
3290
|
-
export const
|
|
1200
|
+
export const de_UpdateDirectorySetupCommand = async (output, context) => {
|
|
3291
1201
|
if (output.statusCode >= 300) {
|
|
3292
|
-
return
|
|
1202
|
+
return de_CommandError(output, context);
|
|
3293
1203
|
}
|
|
3294
1204
|
const data = await parseBody(output.body, context);
|
|
3295
1205
|
let contents = {};
|
|
@@ -3300,37 +1210,22 @@ export const de_UpdateRadiusCommand = async (output, context) => {
|
|
|
3300
1210
|
};
|
|
3301
1211
|
return response;
|
|
3302
1212
|
};
|
|
3303
|
-
const
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
body: await parseErrorBody(output.body, context),
|
|
3307
|
-
};
|
|
3308
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3309
|
-
switch (errorCode) {
|
|
3310
|
-
case "ClientException":
|
|
3311
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3312
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3313
|
-
case "EntityDoesNotExistException":
|
|
3314
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3315
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3316
|
-
case "InvalidParameterException":
|
|
3317
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3318
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3319
|
-
case "ServiceException":
|
|
3320
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3321
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3322
|
-
default:
|
|
3323
|
-
const parsedBody = parsedOutput.body;
|
|
3324
|
-
return throwDefaultError({
|
|
3325
|
-
output,
|
|
3326
|
-
parsedBody,
|
|
3327
|
-
errorCode,
|
|
3328
|
-
});
|
|
1213
|
+
export const de_UpdateNumberOfDomainControllersCommand = async (output, context) => {
|
|
1214
|
+
if (output.statusCode >= 300) {
|
|
1215
|
+
return de_CommandError(output, context);
|
|
3329
1216
|
}
|
|
1217
|
+
const data = await parseBody(output.body, context);
|
|
1218
|
+
let contents = {};
|
|
1219
|
+
contents = _json(data);
|
|
1220
|
+
const response = {
|
|
1221
|
+
$metadata: deserializeMetadata(output),
|
|
1222
|
+
...contents,
|
|
1223
|
+
};
|
|
1224
|
+
return response;
|
|
3330
1225
|
};
|
|
3331
|
-
export const
|
|
1226
|
+
export const de_UpdateRadiusCommand = async (output, context) => {
|
|
3332
1227
|
if (output.statusCode >= 300) {
|
|
3333
|
-
return
|
|
1228
|
+
return de_CommandError(output, context);
|
|
3334
1229
|
}
|
|
3335
1230
|
const data = await parseBody(output.body, context);
|
|
3336
1231
|
let contents = {};
|
|
@@ -3341,49 +1236,22 @@ export const de_UpdateSettingsCommand = async (output, context) => {
|
|
|
3341
1236
|
};
|
|
3342
1237
|
return response;
|
|
3343
1238
|
};
|
|
3344
|
-
const
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
body: await parseErrorBody(output.body, context),
|
|
3348
|
-
};
|
|
3349
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3350
|
-
switch (errorCode) {
|
|
3351
|
-
case "ClientException":
|
|
3352
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3353
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3354
|
-
case "DirectoryDoesNotExistException":
|
|
3355
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
3356
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
3357
|
-
case "DirectoryUnavailableException":
|
|
3358
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
3359
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
3360
|
-
case "IncompatibleSettingsException":
|
|
3361
|
-
case "com.amazonaws.directoryservice#IncompatibleSettingsException":
|
|
3362
|
-
throw await de_IncompatibleSettingsExceptionRes(parsedOutput, context);
|
|
3363
|
-
case "InvalidParameterException":
|
|
3364
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3365
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3366
|
-
case "ServiceException":
|
|
3367
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3368
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3369
|
-
case "UnsupportedOperationException":
|
|
3370
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
3371
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3372
|
-
case "UnsupportedSettingsException":
|
|
3373
|
-
case "com.amazonaws.directoryservice#UnsupportedSettingsException":
|
|
3374
|
-
throw await de_UnsupportedSettingsExceptionRes(parsedOutput, context);
|
|
3375
|
-
default:
|
|
3376
|
-
const parsedBody = parsedOutput.body;
|
|
3377
|
-
return throwDefaultError({
|
|
3378
|
-
output,
|
|
3379
|
-
parsedBody,
|
|
3380
|
-
errorCode,
|
|
3381
|
-
});
|
|
1239
|
+
export const de_UpdateSettingsCommand = async (output, context) => {
|
|
1240
|
+
if (output.statusCode >= 300) {
|
|
1241
|
+
return de_CommandError(output, context);
|
|
3382
1242
|
}
|
|
1243
|
+
const data = await parseBody(output.body, context);
|
|
1244
|
+
let contents = {};
|
|
1245
|
+
contents = _json(data);
|
|
1246
|
+
const response = {
|
|
1247
|
+
$metadata: deserializeMetadata(output),
|
|
1248
|
+
...contents,
|
|
1249
|
+
};
|
|
1250
|
+
return response;
|
|
3383
1251
|
};
|
|
3384
1252
|
export const de_UpdateTrustCommand = async (output, context) => {
|
|
3385
1253
|
if (output.statusCode >= 300) {
|
|
3386
|
-
return
|
|
1254
|
+
return de_CommandError(output, context);
|
|
3387
1255
|
}
|
|
3388
1256
|
const data = await parseBody(output.body, context);
|
|
3389
1257
|
let contents = {};
|
|
@@ -3394,37 +1262,9 @@ export const de_UpdateTrustCommand = async (output, context) => {
|
|
|
3394
1262
|
};
|
|
3395
1263
|
return response;
|
|
3396
1264
|
};
|
|
3397
|
-
const de_UpdateTrustCommandError = async (output, context) => {
|
|
3398
|
-
const parsedOutput = {
|
|
3399
|
-
...output,
|
|
3400
|
-
body: await parseErrorBody(output.body, context),
|
|
3401
|
-
};
|
|
3402
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3403
|
-
switch (errorCode) {
|
|
3404
|
-
case "ClientException":
|
|
3405
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3406
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3407
|
-
case "EntityDoesNotExistException":
|
|
3408
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3409
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3410
|
-
case "InvalidParameterException":
|
|
3411
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3412
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3413
|
-
case "ServiceException":
|
|
3414
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3415
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3416
|
-
default:
|
|
3417
|
-
const parsedBody = parsedOutput.body;
|
|
3418
|
-
return throwDefaultError({
|
|
3419
|
-
output,
|
|
3420
|
-
parsedBody,
|
|
3421
|
-
errorCode,
|
|
3422
|
-
});
|
|
3423
|
-
}
|
|
3424
|
-
};
|
|
3425
1265
|
export const de_VerifyTrustCommand = async (output, context) => {
|
|
3426
1266
|
if (output.statusCode >= 300) {
|
|
3427
|
-
return
|
|
1267
|
+
return de_CommandError(output, context);
|
|
3428
1268
|
}
|
|
3429
1269
|
const data = await parseBody(output.body, context);
|
|
3430
1270
|
let contents = {};
|
|
@@ -3435,7 +1275,7 @@ export const de_VerifyTrustCommand = async (output, context) => {
|
|
|
3435
1275
|
};
|
|
3436
1276
|
return response;
|
|
3437
1277
|
};
|
|
3438
|
-
const
|
|
1278
|
+
const de_CommandError = async (output, context) => {
|
|
3439
1279
|
const parsedOutput = {
|
|
3440
1280
|
...output,
|
|
3441
1281
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3445,6 +1285,9 @@ const de_VerifyTrustCommandError = async (output, context) => {
|
|
|
3445
1285
|
case "ClientException":
|
|
3446
1286
|
case "com.amazonaws.directoryservice#ClientException":
|
|
3447
1287
|
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1288
|
+
case "DirectoryAlreadySharedException":
|
|
1289
|
+
case "com.amazonaws.directoryservice#DirectoryAlreadySharedException":
|
|
1290
|
+
throw await de_DirectoryAlreadySharedExceptionRes(parsedOutput, context);
|
|
3448
1291
|
case "EntityDoesNotExistException":
|
|
3449
1292
|
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3450
1293
|
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
@@ -3454,9 +1297,102 @@ const de_VerifyTrustCommandError = async (output, context) => {
|
|
|
3454
1297
|
case "ServiceException":
|
|
3455
1298
|
case "com.amazonaws.directoryservice#ServiceException":
|
|
3456
1299
|
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1300
|
+
case "DirectoryUnavailableException":
|
|
1301
|
+
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
1302
|
+
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
1303
|
+
case "EntityAlreadyExistsException":
|
|
1304
|
+
case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
|
|
1305
|
+
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1306
|
+
case "IpRouteLimitExceededException":
|
|
1307
|
+
case "com.amazonaws.directoryservice#IpRouteLimitExceededException":
|
|
1308
|
+
throw await de_IpRouteLimitExceededExceptionRes(parsedOutput, context);
|
|
1309
|
+
case "AccessDeniedException":
|
|
1310
|
+
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
1311
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1312
|
+
case "DirectoryAlreadyInRegionException":
|
|
1313
|
+
case "com.amazonaws.directoryservice#DirectoryAlreadyInRegionException":
|
|
1314
|
+
throw await de_DirectoryAlreadyInRegionExceptionRes(parsedOutput, context);
|
|
1315
|
+
case "DirectoryDoesNotExistException":
|
|
1316
|
+
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
1317
|
+
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
1318
|
+
case "RegionLimitExceededException":
|
|
1319
|
+
case "com.amazonaws.directoryservice#RegionLimitExceededException":
|
|
1320
|
+
throw await de_RegionLimitExceededExceptionRes(parsedOutput, context);
|
|
3457
1321
|
case "UnsupportedOperationException":
|
|
3458
1322
|
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
3459
1323
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1324
|
+
case "TagLimitExceededException":
|
|
1325
|
+
case "com.amazonaws.directoryservice#TagLimitExceededException":
|
|
1326
|
+
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
1327
|
+
case "DirectoryLimitExceededException":
|
|
1328
|
+
case "com.amazonaws.directoryservice#DirectoryLimitExceededException":
|
|
1329
|
+
throw await de_DirectoryLimitExceededExceptionRes(parsedOutput, context);
|
|
1330
|
+
case "AuthenticationFailedException":
|
|
1331
|
+
case "com.amazonaws.directoryservice#AuthenticationFailedException":
|
|
1332
|
+
throw await de_AuthenticationFailedExceptionRes(parsedOutput, context);
|
|
1333
|
+
case "InsufficientPermissionsException":
|
|
1334
|
+
case "com.amazonaws.directoryservice#InsufficientPermissionsException":
|
|
1335
|
+
throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
|
|
1336
|
+
case "SnapshotLimitExceededException":
|
|
1337
|
+
case "com.amazonaws.directoryservice#SnapshotLimitExceededException":
|
|
1338
|
+
throw await de_SnapshotLimitExceededExceptionRes(parsedOutput, context);
|
|
1339
|
+
case "CertificateDoesNotExistException":
|
|
1340
|
+
case "com.amazonaws.directoryservice#CertificateDoesNotExistException":
|
|
1341
|
+
throw await de_CertificateDoesNotExistExceptionRes(parsedOutput, context);
|
|
1342
|
+
case "CertificateInUseException":
|
|
1343
|
+
case "com.amazonaws.directoryservice#CertificateInUseException":
|
|
1344
|
+
throw await de_CertificateInUseExceptionRes(parsedOutput, context);
|
|
1345
|
+
case "InvalidNextTokenException":
|
|
1346
|
+
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
1347
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1348
|
+
case "InvalidClientAuthStatusException":
|
|
1349
|
+
case "com.amazonaws.directoryservice#InvalidClientAuthStatusException":
|
|
1350
|
+
throw await de_InvalidClientAuthStatusExceptionRes(parsedOutput, context);
|
|
1351
|
+
case "InvalidLDAPSStatusException":
|
|
1352
|
+
case "com.amazonaws.directoryservice#InvalidLDAPSStatusException":
|
|
1353
|
+
throw await de_InvalidLDAPSStatusExceptionRes(parsedOutput, context);
|
|
1354
|
+
case "NoAvailableCertificateException":
|
|
1355
|
+
case "com.amazonaws.directoryservice#NoAvailableCertificateException":
|
|
1356
|
+
throw await de_NoAvailableCertificateExceptionRes(parsedOutput, context);
|
|
1357
|
+
case "CertificateAlreadyExistsException":
|
|
1358
|
+
case "com.amazonaws.directoryservice#CertificateAlreadyExistsException":
|
|
1359
|
+
throw await de_CertificateAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1360
|
+
case "CertificateLimitExceededException":
|
|
1361
|
+
case "com.amazonaws.directoryservice#CertificateLimitExceededException":
|
|
1362
|
+
throw await de_CertificateLimitExceededExceptionRes(parsedOutput, context);
|
|
1363
|
+
case "InvalidCertificateException":
|
|
1364
|
+
case "com.amazonaws.directoryservice#InvalidCertificateException":
|
|
1365
|
+
throw await de_InvalidCertificateExceptionRes(parsedOutput, context);
|
|
1366
|
+
case "InvalidPasswordException":
|
|
1367
|
+
case "com.amazonaws.directoryservice#InvalidPasswordException":
|
|
1368
|
+
throw await de_InvalidPasswordExceptionRes(parsedOutput, context);
|
|
1369
|
+
case "UserDoesNotExistException":
|
|
1370
|
+
case "com.amazonaws.directoryservice#UserDoesNotExistException":
|
|
1371
|
+
throw await de_UserDoesNotExistExceptionRes(parsedOutput, context);
|
|
1372
|
+
case "InvalidTargetException":
|
|
1373
|
+
case "com.amazonaws.directoryservice#InvalidTargetException":
|
|
1374
|
+
throw await de_InvalidTargetExceptionRes(parsedOutput, context);
|
|
1375
|
+
case "OrganizationsException":
|
|
1376
|
+
case "com.amazonaws.directoryservice#OrganizationsException":
|
|
1377
|
+
throw await de_OrganizationsExceptionRes(parsedOutput, context);
|
|
1378
|
+
case "ShareLimitExceededException":
|
|
1379
|
+
case "com.amazonaws.directoryservice#ShareLimitExceededException":
|
|
1380
|
+
throw await de_ShareLimitExceededExceptionRes(parsedOutput, context);
|
|
1381
|
+
case "DirectoryNotSharedException":
|
|
1382
|
+
case "com.amazonaws.directoryservice#DirectoryNotSharedException":
|
|
1383
|
+
throw await de_DirectoryNotSharedExceptionRes(parsedOutput, context);
|
|
1384
|
+
case "DirectoryInDesiredStateException":
|
|
1385
|
+
case "com.amazonaws.directoryservice#DirectoryInDesiredStateException":
|
|
1386
|
+
throw await de_DirectoryInDesiredStateExceptionRes(parsedOutput, context);
|
|
1387
|
+
case "DomainControllerLimitExceededException":
|
|
1388
|
+
case "com.amazonaws.directoryservice#DomainControllerLimitExceededException":
|
|
1389
|
+
throw await de_DomainControllerLimitExceededExceptionRes(parsedOutput, context);
|
|
1390
|
+
case "IncompatibleSettingsException":
|
|
1391
|
+
case "com.amazonaws.directoryservice#IncompatibleSettingsException":
|
|
1392
|
+
throw await de_IncompatibleSettingsExceptionRes(parsedOutput, context);
|
|
1393
|
+
case "UnsupportedSettingsException":
|
|
1394
|
+
case "com.amazonaws.directoryservice#UnsupportedSettingsException":
|
|
1395
|
+
throw await de_UnsupportedSettingsExceptionRes(parsedOutput, context);
|
|
3460
1396
|
default:
|
|
3461
1397
|
const parsedBody = parsedOutput.body;
|
|
3462
1398
|
return throwDefaultError({
|