@aws-sdk/client-workmail 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +185 -2650
- package/dist-es/protocols/Aws_json1_1.js +355 -2820
- package/package.json +3 -3
|
@@ -509,7 +509,7 @@ export const se_UpdateUserCommand = async (input, context) => {
|
|
|
509
509
|
};
|
|
510
510
|
export const de_AssociateDelegateToResourceCommand = async (output, context) => {
|
|
511
511
|
if (output.statusCode >= 300) {
|
|
512
|
-
return
|
|
512
|
+
return de_CommandError(output, context);
|
|
513
513
|
}
|
|
514
514
|
const data = await parseBody(output.body, context);
|
|
515
515
|
let contents = {};
|
|
@@ -520,43 +520,9 @@ export const de_AssociateDelegateToResourceCommand = async (output, context) =>
|
|
|
520
520
|
};
|
|
521
521
|
return response;
|
|
522
522
|
};
|
|
523
|
-
const de_AssociateDelegateToResourceCommandError = async (output, context) => {
|
|
524
|
-
const parsedOutput = {
|
|
525
|
-
...output,
|
|
526
|
-
body: await parseErrorBody(output.body, context),
|
|
527
|
-
};
|
|
528
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
529
|
-
switch (errorCode) {
|
|
530
|
-
case "EntityNotFoundException":
|
|
531
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
532
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
533
|
-
case "EntityStateException":
|
|
534
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
535
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
536
|
-
case "InvalidParameterException":
|
|
537
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
538
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
539
|
-
case "OrganizationNotFoundException":
|
|
540
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
541
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
542
|
-
case "OrganizationStateException":
|
|
543
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
544
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
545
|
-
case "UnsupportedOperationException":
|
|
546
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
547
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
548
|
-
default:
|
|
549
|
-
const parsedBody = parsedOutput.body;
|
|
550
|
-
return throwDefaultError({
|
|
551
|
-
output,
|
|
552
|
-
parsedBody,
|
|
553
|
-
errorCode,
|
|
554
|
-
});
|
|
555
|
-
}
|
|
556
|
-
};
|
|
557
523
|
export const de_AssociateMemberToGroupCommand = async (output, context) => {
|
|
558
524
|
if (output.statusCode >= 300) {
|
|
559
|
-
return
|
|
525
|
+
return de_CommandError(output, context);
|
|
560
526
|
}
|
|
561
527
|
const data = await parseBody(output.body, context);
|
|
562
528
|
let contents = {};
|
|
@@ -567,49 +533,9 @@ export const de_AssociateMemberToGroupCommand = async (output, context) => {
|
|
|
567
533
|
};
|
|
568
534
|
return response;
|
|
569
535
|
};
|
|
570
|
-
const de_AssociateMemberToGroupCommandError = async (output, context) => {
|
|
571
|
-
const parsedOutput = {
|
|
572
|
-
...output,
|
|
573
|
-
body: await parseErrorBody(output.body, context),
|
|
574
|
-
};
|
|
575
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
576
|
-
switch (errorCode) {
|
|
577
|
-
case "DirectoryServiceAuthenticationFailedException":
|
|
578
|
-
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
579
|
-
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
580
|
-
case "DirectoryUnavailableException":
|
|
581
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
582
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
583
|
-
case "EntityNotFoundException":
|
|
584
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
585
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
586
|
-
case "EntityStateException":
|
|
587
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
588
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
589
|
-
case "InvalidParameterException":
|
|
590
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
591
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
592
|
-
case "OrganizationNotFoundException":
|
|
593
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
594
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
595
|
-
case "OrganizationStateException":
|
|
596
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
597
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
598
|
-
case "UnsupportedOperationException":
|
|
599
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
600
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
601
|
-
default:
|
|
602
|
-
const parsedBody = parsedOutput.body;
|
|
603
|
-
return throwDefaultError({
|
|
604
|
-
output,
|
|
605
|
-
parsedBody,
|
|
606
|
-
errorCode,
|
|
607
|
-
});
|
|
608
|
-
}
|
|
609
|
-
};
|
|
610
536
|
export const de_AssumeImpersonationRoleCommand = async (output, context) => {
|
|
611
537
|
if (output.statusCode >= 300) {
|
|
612
|
-
return
|
|
538
|
+
return de_CommandError(output, context);
|
|
613
539
|
}
|
|
614
540
|
const data = await parseBody(output.body, context);
|
|
615
541
|
let contents = {};
|
|
@@ -620,37 +546,9 @@ export const de_AssumeImpersonationRoleCommand = async (output, context) => {
|
|
|
620
546
|
};
|
|
621
547
|
return response;
|
|
622
548
|
};
|
|
623
|
-
const de_AssumeImpersonationRoleCommandError = async (output, context) => {
|
|
624
|
-
const parsedOutput = {
|
|
625
|
-
...output,
|
|
626
|
-
body: await parseErrorBody(output.body, context),
|
|
627
|
-
};
|
|
628
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
629
|
-
switch (errorCode) {
|
|
630
|
-
case "InvalidParameterException":
|
|
631
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
632
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
633
|
-
case "OrganizationNotFoundException":
|
|
634
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
635
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
636
|
-
case "OrganizationStateException":
|
|
637
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
638
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
639
|
-
case "ResourceNotFoundException":
|
|
640
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
641
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
642
|
-
default:
|
|
643
|
-
const parsedBody = parsedOutput.body;
|
|
644
|
-
return throwDefaultError({
|
|
645
|
-
output,
|
|
646
|
-
parsedBody,
|
|
647
|
-
errorCode,
|
|
648
|
-
});
|
|
649
|
-
}
|
|
650
|
-
};
|
|
651
549
|
export const de_CancelMailboxExportJobCommand = async (output, context) => {
|
|
652
550
|
if (output.statusCode >= 300) {
|
|
653
|
-
return
|
|
551
|
+
return de_CommandError(output, context);
|
|
654
552
|
}
|
|
655
553
|
const data = await parseBody(output.body, context);
|
|
656
554
|
let contents = {};
|
|
@@ -661,37 +559,9 @@ export const de_CancelMailboxExportJobCommand = async (output, context) => {
|
|
|
661
559
|
};
|
|
662
560
|
return response;
|
|
663
561
|
};
|
|
664
|
-
const de_CancelMailboxExportJobCommandError = async (output, context) => {
|
|
665
|
-
const parsedOutput = {
|
|
666
|
-
...output,
|
|
667
|
-
body: await parseErrorBody(output.body, context),
|
|
668
|
-
};
|
|
669
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
670
|
-
switch (errorCode) {
|
|
671
|
-
case "EntityNotFoundException":
|
|
672
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
673
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
674
|
-
case "InvalidParameterException":
|
|
675
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
676
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
677
|
-
case "OrganizationNotFoundException":
|
|
678
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
679
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
680
|
-
case "OrganizationStateException":
|
|
681
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
682
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
683
|
-
default:
|
|
684
|
-
const parsedBody = parsedOutput.body;
|
|
685
|
-
return throwDefaultError({
|
|
686
|
-
output,
|
|
687
|
-
parsedBody,
|
|
688
|
-
errorCode,
|
|
689
|
-
});
|
|
690
|
-
}
|
|
691
|
-
};
|
|
692
562
|
export const de_CreateAliasCommand = async (output, context) => {
|
|
693
563
|
if (output.statusCode >= 300) {
|
|
694
|
-
return
|
|
564
|
+
return de_CommandError(output, context);
|
|
695
565
|
}
|
|
696
566
|
const data = await parseBody(output.body, context);
|
|
697
567
|
let contents = {};
|
|
@@ -702,52 +572,9 @@ export const de_CreateAliasCommand = async (output, context) => {
|
|
|
702
572
|
};
|
|
703
573
|
return response;
|
|
704
574
|
};
|
|
705
|
-
const de_CreateAliasCommandError = async (output, context) => {
|
|
706
|
-
const parsedOutput = {
|
|
707
|
-
...output,
|
|
708
|
-
body: await parseErrorBody(output.body, context),
|
|
709
|
-
};
|
|
710
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
711
|
-
switch (errorCode) {
|
|
712
|
-
case "EmailAddressInUseException":
|
|
713
|
-
case "com.amazonaws.workmail#EmailAddressInUseException":
|
|
714
|
-
throw await de_EmailAddressInUseExceptionRes(parsedOutput, context);
|
|
715
|
-
case "EntityNotFoundException":
|
|
716
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
717
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
718
|
-
case "EntityStateException":
|
|
719
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
720
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
721
|
-
case "InvalidParameterException":
|
|
722
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
723
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
724
|
-
case "LimitExceededException":
|
|
725
|
-
case "com.amazonaws.workmail#LimitExceededException":
|
|
726
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
727
|
-
case "MailDomainNotFoundException":
|
|
728
|
-
case "com.amazonaws.workmail#MailDomainNotFoundException":
|
|
729
|
-
throw await de_MailDomainNotFoundExceptionRes(parsedOutput, context);
|
|
730
|
-
case "MailDomainStateException":
|
|
731
|
-
case "com.amazonaws.workmail#MailDomainStateException":
|
|
732
|
-
throw await de_MailDomainStateExceptionRes(parsedOutput, context);
|
|
733
|
-
case "OrganizationNotFoundException":
|
|
734
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
735
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
736
|
-
case "OrganizationStateException":
|
|
737
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
738
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
739
|
-
default:
|
|
740
|
-
const parsedBody = parsedOutput.body;
|
|
741
|
-
return throwDefaultError({
|
|
742
|
-
output,
|
|
743
|
-
parsedBody,
|
|
744
|
-
errorCode,
|
|
745
|
-
});
|
|
746
|
-
}
|
|
747
|
-
};
|
|
748
575
|
export const de_CreateAvailabilityConfigurationCommand = async (output, context) => {
|
|
749
576
|
if (output.statusCode >= 300) {
|
|
750
|
-
return
|
|
577
|
+
return de_CommandError(output, context);
|
|
751
578
|
}
|
|
752
579
|
const data = await parseBody(output.body, context);
|
|
753
580
|
let contents = {};
|
|
@@ -758,40 +585,9 @@ export const de_CreateAvailabilityConfigurationCommand = async (output, context)
|
|
|
758
585
|
};
|
|
759
586
|
return response;
|
|
760
587
|
};
|
|
761
|
-
const de_CreateAvailabilityConfigurationCommandError = async (output, context) => {
|
|
762
|
-
const parsedOutput = {
|
|
763
|
-
...output,
|
|
764
|
-
body: await parseErrorBody(output.body, context),
|
|
765
|
-
};
|
|
766
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
767
|
-
switch (errorCode) {
|
|
768
|
-
case "InvalidParameterException":
|
|
769
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
770
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
771
|
-
case "LimitExceededException":
|
|
772
|
-
case "com.amazonaws.workmail#LimitExceededException":
|
|
773
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
774
|
-
case "NameAvailabilityException":
|
|
775
|
-
case "com.amazonaws.workmail#NameAvailabilityException":
|
|
776
|
-
throw await de_NameAvailabilityExceptionRes(parsedOutput, context);
|
|
777
|
-
case "OrganizationNotFoundException":
|
|
778
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
779
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
780
|
-
case "OrganizationStateException":
|
|
781
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
782
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
783
|
-
default:
|
|
784
|
-
const parsedBody = parsedOutput.body;
|
|
785
|
-
return throwDefaultError({
|
|
786
|
-
output,
|
|
787
|
-
parsedBody,
|
|
788
|
-
errorCode,
|
|
789
|
-
});
|
|
790
|
-
}
|
|
791
|
-
};
|
|
792
588
|
export const de_CreateGroupCommand = async (output, context) => {
|
|
793
589
|
if (output.statusCode >= 300) {
|
|
794
|
-
return
|
|
590
|
+
return de_CommandError(output, context);
|
|
795
591
|
}
|
|
796
592
|
const data = await parseBody(output.body, context);
|
|
797
593
|
let contents = {};
|
|
@@ -802,49 +598,9 @@ export const de_CreateGroupCommand = async (output, context) => {
|
|
|
802
598
|
};
|
|
803
599
|
return response;
|
|
804
600
|
};
|
|
805
|
-
const de_CreateGroupCommandError = async (output, context) => {
|
|
806
|
-
const parsedOutput = {
|
|
807
|
-
...output,
|
|
808
|
-
body: await parseErrorBody(output.body, context),
|
|
809
|
-
};
|
|
810
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
811
|
-
switch (errorCode) {
|
|
812
|
-
case "DirectoryServiceAuthenticationFailedException":
|
|
813
|
-
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
814
|
-
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
815
|
-
case "DirectoryUnavailableException":
|
|
816
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
817
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
818
|
-
case "InvalidParameterException":
|
|
819
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
820
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
821
|
-
case "NameAvailabilityException":
|
|
822
|
-
case "com.amazonaws.workmail#NameAvailabilityException":
|
|
823
|
-
throw await de_NameAvailabilityExceptionRes(parsedOutput, context);
|
|
824
|
-
case "OrganizationNotFoundException":
|
|
825
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
826
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
827
|
-
case "OrganizationStateException":
|
|
828
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
829
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
830
|
-
case "ReservedNameException":
|
|
831
|
-
case "com.amazonaws.workmail#ReservedNameException":
|
|
832
|
-
throw await de_ReservedNameExceptionRes(parsedOutput, context);
|
|
833
|
-
case "UnsupportedOperationException":
|
|
834
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
835
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
836
|
-
default:
|
|
837
|
-
const parsedBody = parsedOutput.body;
|
|
838
|
-
return throwDefaultError({
|
|
839
|
-
output,
|
|
840
|
-
parsedBody,
|
|
841
|
-
errorCode,
|
|
842
|
-
});
|
|
843
|
-
}
|
|
844
|
-
};
|
|
845
601
|
export const de_CreateImpersonationRoleCommand = async (output, context) => {
|
|
846
602
|
if (output.statusCode >= 300) {
|
|
847
|
-
return
|
|
603
|
+
return de_CommandError(output, context);
|
|
848
604
|
}
|
|
849
605
|
const data = await parseBody(output.body, context);
|
|
850
606
|
let contents = {};
|
|
@@ -855,43 +611,22 @@ export const de_CreateImpersonationRoleCommand = async (output, context) => {
|
|
|
855
611
|
};
|
|
856
612
|
return response;
|
|
857
613
|
};
|
|
858
|
-
const
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
614
|
+
export const de_CreateMobileDeviceAccessRuleCommand = async (output, context) => {
|
|
615
|
+
if (output.statusCode >= 300) {
|
|
616
|
+
return de_CommandError(output, context);
|
|
617
|
+
}
|
|
618
|
+
const data = await parseBody(output.body, context);
|
|
619
|
+
let contents = {};
|
|
620
|
+
contents = _json(data);
|
|
621
|
+
const response = {
|
|
622
|
+
$metadata: deserializeMetadata(output),
|
|
623
|
+
...contents,
|
|
862
624
|
};
|
|
863
|
-
|
|
864
|
-
switch (errorCode) {
|
|
865
|
-
case "EntityNotFoundException":
|
|
866
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
867
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
868
|
-
case "EntityStateException":
|
|
869
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
870
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
871
|
-
case "InvalidParameterException":
|
|
872
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
873
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
874
|
-
case "LimitExceededException":
|
|
875
|
-
case "com.amazonaws.workmail#LimitExceededException":
|
|
876
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
877
|
-
case "OrganizationNotFoundException":
|
|
878
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
879
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
880
|
-
case "OrganizationStateException":
|
|
881
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
882
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
883
|
-
default:
|
|
884
|
-
const parsedBody = parsedOutput.body;
|
|
885
|
-
return throwDefaultError({
|
|
886
|
-
output,
|
|
887
|
-
parsedBody,
|
|
888
|
-
errorCode,
|
|
889
|
-
});
|
|
890
|
-
}
|
|
625
|
+
return response;
|
|
891
626
|
};
|
|
892
|
-
export const
|
|
627
|
+
export const de_CreateOrganizationCommand = async (output, context) => {
|
|
893
628
|
if (output.statusCode >= 300) {
|
|
894
|
-
return
|
|
629
|
+
return de_CommandError(output, context);
|
|
895
630
|
}
|
|
896
631
|
const data = await parseBody(output.body, context);
|
|
897
632
|
let contents = {};
|
|
@@ -902,37 +637,9 @@ export const de_CreateMobileDeviceAccessRuleCommand = async (output, context) =>
|
|
|
902
637
|
};
|
|
903
638
|
return response;
|
|
904
639
|
};
|
|
905
|
-
const
|
|
906
|
-
const parsedOutput = {
|
|
907
|
-
...output,
|
|
908
|
-
body: await parseErrorBody(output.body, context),
|
|
909
|
-
};
|
|
910
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
911
|
-
switch (errorCode) {
|
|
912
|
-
case "InvalidParameterException":
|
|
913
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
914
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
915
|
-
case "LimitExceededException":
|
|
916
|
-
case "com.amazonaws.workmail#LimitExceededException":
|
|
917
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
918
|
-
case "OrganizationNotFoundException":
|
|
919
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
920
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
921
|
-
case "OrganizationStateException":
|
|
922
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
923
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
924
|
-
default:
|
|
925
|
-
const parsedBody = parsedOutput.body;
|
|
926
|
-
return throwDefaultError({
|
|
927
|
-
output,
|
|
928
|
-
parsedBody,
|
|
929
|
-
errorCode,
|
|
930
|
-
});
|
|
931
|
-
}
|
|
932
|
-
};
|
|
933
|
-
export const de_CreateOrganizationCommand = async (output, context) => {
|
|
640
|
+
export const de_CreateResourceCommand = async (output, context) => {
|
|
934
641
|
if (output.statusCode >= 300) {
|
|
935
|
-
return
|
|
642
|
+
return de_CommandError(output, context);
|
|
936
643
|
}
|
|
937
644
|
const data = await parseBody(output.body, context);
|
|
938
645
|
let contents = {};
|
|
@@ -943,40 +650,9 @@ export const de_CreateOrganizationCommand = async (output, context) => {
|
|
|
943
650
|
};
|
|
944
651
|
return response;
|
|
945
652
|
};
|
|
946
|
-
const
|
|
947
|
-
const parsedOutput = {
|
|
948
|
-
...output,
|
|
949
|
-
body: await parseErrorBody(output.body, context),
|
|
950
|
-
};
|
|
951
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
952
|
-
switch (errorCode) {
|
|
953
|
-
case "DirectoryInUseException":
|
|
954
|
-
case "com.amazonaws.workmail#DirectoryInUseException":
|
|
955
|
-
throw await de_DirectoryInUseExceptionRes(parsedOutput, context);
|
|
956
|
-
case "DirectoryUnavailableException":
|
|
957
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
958
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
959
|
-
case "InvalidParameterException":
|
|
960
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
961
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
962
|
-
case "LimitExceededException":
|
|
963
|
-
case "com.amazonaws.workmail#LimitExceededException":
|
|
964
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
965
|
-
case "NameAvailabilityException":
|
|
966
|
-
case "com.amazonaws.workmail#NameAvailabilityException":
|
|
967
|
-
throw await de_NameAvailabilityExceptionRes(parsedOutput, context);
|
|
968
|
-
default:
|
|
969
|
-
const parsedBody = parsedOutput.body;
|
|
970
|
-
return throwDefaultError({
|
|
971
|
-
output,
|
|
972
|
-
parsedBody,
|
|
973
|
-
errorCode,
|
|
974
|
-
});
|
|
975
|
-
}
|
|
976
|
-
};
|
|
977
|
-
export const de_CreateResourceCommand = async (output, context) => {
|
|
653
|
+
export const de_CreateUserCommand = async (output, context) => {
|
|
978
654
|
if (output.statusCode >= 300) {
|
|
979
|
-
return
|
|
655
|
+
return de_CommandError(output, context);
|
|
980
656
|
}
|
|
981
657
|
const data = await parseBody(output.body, context);
|
|
982
658
|
let contents = {};
|
|
@@ -987,49 +663,9 @@ export const de_CreateResourceCommand = async (output, context) => {
|
|
|
987
663
|
};
|
|
988
664
|
return response;
|
|
989
665
|
};
|
|
990
|
-
const
|
|
991
|
-
const parsedOutput = {
|
|
992
|
-
...output,
|
|
993
|
-
body: await parseErrorBody(output.body, context),
|
|
994
|
-
};
|
|
995
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
996
|
-
switch (errorCode) {
|
|
997
|
-
case "DirectoryServiceAuthenticationFailedException":
|
|
998
|
-
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
999
|
-
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
1000
|
-
case "DirectoryUnavailableException":
|
|
1001
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
1002
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
1003
|
-
case "InvalidParameterException":
|
|
1004
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1005
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1006
|
-
case "NameAvailabilityException":
|
|
1007
|
-
case "com.amazonaws.workmail#NameAvailabilityException":
|
|
1008
|
-
throw await de_NameAvailabilityExceptionRes(parsedOutput, context);
|
|
1009
|
-
case "OrganizationNotFoundException":
|
|
1010
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1011
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1012
|
-
case "OrganizationStateException":
|
|
1013
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1014
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1015
|
-
case "ReservedNameException":
|
|
1016
|
-
case "com.amazonaws.workmail#ReservedNameException":
|
|
1017
|
-
throw await de_ReservedNameExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "UnsupportedOperationException":
|
|
1019
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
1020
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1021
|
-
default:
|
|
1022
|
-
const parsedBody = parsedOutput.body;
|
|
1023
|
-
return throwDefaultError({
|
|
1024
|
-
output,
|
|
1025
|
-
parsedBody,
|
|
1026
|
-
errorCode,
|
|
1027
|
-
});
|
|
1028
|
-
}
|
|
1029
|
-
};
|
|
1030
|
-
export const de_CreateUserCommand = async (output, context) => {
|
|
666
|
+
export const de_DeleteAccessControlRuleCommand = async (output, context) => {
|
|
1031
667
|
if (output.statusCode >= 300) {
|
|
1032
|
-
return
|
|
668
|
+
return de_CommandError(output, context);
|
|
1033
669
|
}
|
|
1034
670
|
const data = await parseBody(output.body, context);
|
|
1035
671
|
let contents = {};
|
|
@@ -1040,52 +676,9 @@ export const de_CreateUserCommand = async (output, context) => {
|
|
|
1040
676
|
};
|
|
1041
677
|
return response;
|
|
1042
678
|
};
|
|
1043
|
-
const
|
|
1044
|
-
const parsedOutput = {
|
|
1045
|
-
...output,
|
|
1046
|
-
body: await parseErrorBody(output.body, context),
|
|
1047
|
-
};
|
|
1048
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1049
|
-
switch (errorCode) {
|
|
1050
|
-
case "DirectoryServiceAuthenticationFailedException":
|
|
1051
|
-
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
1052
|
-
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
1053
|
-
case "DirectoryUnavailableException":
|
|
1054
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
1055
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
1056
|
-
case "InvalidParameterException":
|
|
1057
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1058
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1059
|
-
case "InvalidPasswordException":
|
|
1060
|
-
case "com.amazonaws.workmail#InvalidPasswordException":
|
|
1061
|
-
throw await de_InvalidPasswordExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "NameAvailabilityException":
|
|
1063
|
-
case "com.amazonaws.workmail#NameAvailabilityException":
|
|
1064
|
-
throw await de_NameAvailabilityExceptionRes(parsedOutput, context);
|
|
1065
|
-
case "OrganizationNotFoundException":
|
|
1066
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1067
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1068
|
-
case "OrganizationStateException":
|
|
1069
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1070
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1071
|
-
case "ReservedNameException":
|
|
1072
|
-
case "com.amazonaws.workmail#ReservedNameException":
|
|
1073
|
-
throw await de_ReservedNameExceptionRes(parsedOutput, context);
|
|
1074
|
-
case "UnsupportedOperationException":
|
|
1075
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
1076
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1077
|
-
default:
|
|
1078
|
-
const parsedBody = parsedOutput.body;
|
|
1079
|
-
return throwDefaultError({
|
|
1080
|
-
output,
|
|
1081
|
-
parsedBody,
|
|
1082
|
-
errorCode,
|
|
1083
|
-
});
|
|
1084
|
-
}
|
|
1085
|
-
};
|
|
1086
|
-
export const de_DeleteAccessControlRuleCommand = async (output, context) => {
|
|
679
|
+
export const de_DeleteAliasCommand = async (output, context) => {
|
|
1087
680
|
if (output.statusCode >= 300) {
|
|
1088
|
-
return
|
|
681
|
+
return de_CommandError(output, context);
|
|
1089
682
|
}
|
|
1090
683
|
const data = await parseBody(output.body, context);
|
|
1091
684
|
let contents = {};
|
|
@@ -1096,31 +689,9 @@ export const de_DeleteAccessControlRuleCommand = async (output, context) => {
|
|
|
1096
689
|
};
|
|
1097
690
|
return response;
|
|
1098
691
|
};
|
|
1099
|
-
const
|
|
1100
|
-
const parsedOutput = {
|
|
1101
|
-
...output,
|
|
1102
|
-
body: await parseErrorBody(output.body, context),
|
|
1103
|
-
};
|
|
1104
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1105
|
-
switch (errorCode) {
|
|
1106
|
-
case "OrganizationNotFoundException":
|
|
1107
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1108
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1109
|
-
case "OrganizationStateException":
|
|
1110
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1111
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1112
|
-
default:
|
|
1113
|
-
const parsedBody = parsedOutput.body;
|
|
1114
|
-
return throwDefaultError({
|
|
1115
|
-
output,
|
|
1116
|
-
parsedBody,
|
|
1117
|
-
errorCode,
|
|
1118
|
-
});
|
|
1119
|
-
}
|
|
1120
|
-
};
|
|
1121
|
-
export const de_DeleteAliasCommand = async (output, context) => {
|
|
692
|
+
export const de_DeleteAvailabilityConfigurationCommand = async (output, context) => {
|
|
1122
693
|
if (output.statusCode >= 300) {
|
|
1123
|
-
return
|
|
694
|
+
return de_CommandError(output, context);
|
|
1124
695
|
}
|
|
1125
696
|
const data = await parseBody(output.body, context);
|
|
1126
697
|
let contents = {};
|
|
@@ -1131,40 +702,9 @@ export const de_DeleteAliasCommand = async (output, context) => {
|
|
|
1131
702
|
};
|
|
1132
703
|
return response;
|
|
1133
704
|
};
|
|
1134
|
-
const
|
|
1135
|
-
const parsedOutput = {
|
|
1136
|
-
...output,
|
|
1137
|
-
body: await parseErrorBody(output.body, context),
|
|
1138
|
-
};
|
|
1139
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1140
|
-
switch (errorCode) {
|
|
1141
|
-
case "EntityNotFoundException":
|
|
1142
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
1143
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
1144
|
-
case "EntityStateException":
|
|
1145
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
1146
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
1147
|
-
case "InvalidParameterException":
|
|
1148
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1149
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1150
|
-
case "OrganizationNotFoundException":
|
|
1151
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1152
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1153
|
-
case "OrganizationStateException":
|
|
1154
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1155
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1156
|
-
default:
|
|
1157
|
-
const parsedBody = parsedOutput.body;
|
|
1158
|
-
return throwDefaultError({
|
|
1159
|
-
output,
|
|
1160
|
-
parsedBody,
|
|
1161
|
-
errorCode,
|
|
1162
|
-
});
|
|
1163
|
-
}
|
|
1164
|
-
};
|
|
1165
|
-
export const de_DeleteAvailabilityConfigurationCommand = async (output, context) => {
|
|
705
|
+
export const de_DeleteEmailMonitoringConfigurationCommand = async (output, context) => {
|
|
1166
706
|
if (output.statusCode >= 300) {
|
|
1167
|
-
return
|
|
707
|
+
return de_CommandError(output, context);
|
|
1168
708
|
}
|
|
1169
709
|
const data = await parseBody(output.body, context);
|
|
1170
710
|
let contents = {};
|
|
@@ -1175,31 +715,22 @@ export const de_DeleteAvailabilityConfigurationCommand = async (output, context)
|
|
|
1175
715
|
};
|
|
1176
716
|
return response;
|
|
1177
717
|
};
|
|
1178
|
-
const
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
body: await parseErrorBody(output.body, context),
|
|
1182
|
-
};
|
|
1183
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1184
|
-
switch (errorCode) {
|
|
1185
|
-
case "OrganizationNotFoundException":
|
|
1186
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1187
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "OrganizationStateException":
|
|
1189
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1190
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1191
|
-
default:
|
|
1192
|
-
const parsedBody = parsedOutput.body;
|
|
1193
|
-
return throwDefaultError({
|
|
1194
|
-
output,
|
|
1195
|
-
parsedBody,
|
|
1196
|
-
errorCode,
|
|
1197
|
-
});
|
|
718
|
+
export const de_DeleteGroupCommand = async (output, context) => {
|
|
719
|
+
if (output.statusCode >= 300) {
|
|
720
|
+
return de_CommandError(output, context);
|
|
1198
721
|
}
|
|
722
|
+
const data = await parseBody(output.body, context);
|
|
723
|
+
let contents = {};
|
|
724
|
+
contents = _json(data);
|
|
725
|
+
const response = {
|
|
726
|
+
$metadata: deserializeMetadata(output),
|
|
727
|
+
...contents,
|
|
728
|
+
};
|
|
729
|
+
return response;
|
|
1199
730
|
};
|
|
1200
|
-
export const
|
|
731
|
+
export const de_DeleteImpersonationRoleCommand = async (output, context) => {
|
|
1201
732
|
if (output.statusCode >= 300) {
|
|
1202
|
-
return
|
|
733
|
+
return de_CommandError(output, context);
|
|
1203
734
|
}
|
|
1204
735
|
const data = await parseBody(output.body, context);
|
|
1205
736
|
let contents = {};
|
|
@@ -1210,34 +741,9 @@ export const de_DeleteEmailMonitoringConfigurationCommand = async (output, conte
|
|
|
1210
741
|
};
|
|
1211
742
|
return response;
|
|
1212
743
|
};
|
|
1213
|
-
const
|
|
1214
|
-
const parsedOutput = {
|
|
1215
|
-
...output,
|
|
1216
|
-
body: await parseErrorBody(output.body, context),
|
|
1217
|
-
};
|
|
1218
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1219
|
-
switch (errorCode) {
|
|
1220
|
-
case "InvalidParameterException":
|
|
1221
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1222
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1223
|
-
case "OrganizationNotFoundException":
|
|
1224
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1225
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1226
|
-
case "OrganizationStateException":
|
|
1227
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1228
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1229
|
-
default:
|
|
1230
|
-
const parsedBody = parsedOutput.body;
|
|
1231
|
-
return throwDefaultError({
|
|
1232
|
-
output,
|
|
1233
|
-
parsedBody,
|
|
1234
|
-
errorCode,
|
|
1235
|
-
});
|
|
1236
|
-
}
|
|
1237
|
-
};
|
|
1238
|
-
export const de_DeleteGroupCommand = async (output, context) => {
|
|
744
|
+
export const de_DeleteMailboxPermissionsCommand = async (output, context) => {
|
|
1239
745
|
if (output.statusCode >= 300) {
|
|
1240
|
-
return
|
|
746
|
+
return de_CommandError(output, context);
|
|
1241
747
|
}
|
|
1242
748
|
const data = await parseBody(output.body, context);
|
|
1243
749
|
let contents = {};
|
|
@@ -1248,46 +754,9 @@ export const de_DeleteGroupCommand = async (output, context) => {
|
|
|
1248
754
|
};
|
|
1249
755
|
return response;
|
|
1250
756
|
};
|
|
1251
|
-
const
|
|
1252
|
-
const parsedOutput = {
|
|
1253
|
-
...output,
|
|
1254
|
-
body: await parseErrorBody(output.body, context),
|
|
1255
|
-
};
|
|
1256
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1257
|
-
switch (errorCode) {
|
|
1258
|
-
case "DirectoryServiceAuthenticationFailedException":
|
|
1259
|
-
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
1260
|
-
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
1261
|
-
case "DirectoryUnavailableException":
|
|
1262
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
1263
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
1264
|
-
case "EntityStateException":
|
|
1265
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
1266
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
1267
|
-
case "InvalidParameterException":
|
|
1268
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1269
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1270
|
-
case "OrganizationNotFoundException":
|
|
1271
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1272
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1273
|
-
case "OrganizationStateException":
|
|
1274
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1275
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1276
|
-
case "UnsupportedOperationException":
|
|
1277
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
1278
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1279
|
-
default:
|
|
1280
|
-
const parsedBody = parsedOutput.body;
|
|
1281
|
-
return throwDefaultError({
|
|
1282
|
-
output,
|
|
1283
|
-
parsedBody,
|
|
1284
|
-
errorCode,
|
|
1285
|
-
});
|
|
1286
|
-
}
|
|
1287
|
-
};
|
|
1288
|
-
export const de_DeleteImpersonationRoleCommand = async (output, context) => {
|
|
757
|
+
export const de_DeleteMobileDeviceAccessOverrideCommand = async (output, context) => {
|
|
1289
758
|
if (output.statusCode >= 300) {
|
|
1290
|
-
return
|
|
759
|
+
return de_CommandError(output, context);
|
|
1291
760
|
}
|
|
1292
761
|
const data = await parseBody(output.body, context);
|
|
1293
762
|
let contents = {};
|
|
@@ -1298,34 +767,9 @@ export const de_DeleteImpersonationRoleCommand = async (output, context) => {
|
|
|
1298
767
|
};
|
|
1299
768
|
return response;
|
|
1300
769
|
};
|
|
1301
|
-
const
|
|
1302
|
-
const parsedOutput = {
|
|
1303
|
-
...output,
|
|
1304
|
-
body: await parseErrorBody(output.body, context),
|
|
1305
|
-
};
|
|
1306
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1307
|
-
switch (errorCode) {
|
|
1308
|
-
case "InvalidParameterException":
|
|
1309
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1310
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1311
|
-
case "OrganizationNotFoundException":
|
|
1312
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1313
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1314
|
-
case "OrganizationStateException":
|
|
1315
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1316
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1317
|
-
default:
|
|
1318
|
-
const parsedBody = parsedOutput.body;
|
|
1319
|
-
return throwDefaultError({
|
|
1320
|
-
output,
|
|
1321
|
-
parsedBody,
|
|
1322
|
-
errorCode,
|
|
1323
|
-
});
|
|
1324
|
-
}
|
|
1325
|
-
};
|
|
1326
|
-
export const de_DeleteMailboxPermissionsCommand = async (output, context) => {
|
|
770
|
+
export const de_DeleteMobileDeviceAccessRuleCommand = async (output, context) => {
|
|
1327
771
|
if (output.statusCode >= 300) {
|
|
1328
|
-
return
|
|
772
|
+
return de_CommandError(output, context);
|
|
1329
773
|
}
|
|
1330
774
|
const data = await parseBody(output.body, context);
|
|
1331
775
|
let contents = {};
|
|
@@ -1336,40 +780,9 @@ export const de_DeleteMailboxPermissionsCommand = async (output, context) => {
|
|
|
1336
780
|
};
|
|
1337
781
|
return response;
|
|
1338
782
|
};
|
|
1339
|
-
const
|
|
1340
|
-
const parsedOutput = {
|
|
1341
|
-
...output,
|
|
1342
|
-
body: await parseErrorBody(output.body, context),
|
|
1343
|
-
};
|
|
1344
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1345
|
-
switch (errorCode) {
|
|
1346
|
-
case "EntityNotFoundException":
|
|
1347
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
1348
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
1349
|
-
case "EntityStateException":
|
|
1350
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
1351
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
1352
|
-
case "InvalidParameterException":
|
|
1353
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1354
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1355
|
-
case "OrganizationNotFoundException":
|
|
1356
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1357
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1358
|
-
case "OrganizationStateException":
|
|
1359
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1360
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1361
|
-
default:
|
|
1362
|
-
const parsedBody = parsedOutput.body;
|
|
1363
|
-
return throwDefaultError({
|
|
1364
|
-
output,
|
|
1365
|
-
parsedBody,
|
|
1366
|
-
errorCode,
|
|
1367
|
-
});
|
|
1368
|
-
}
|
|
1369
|
-
};
|
|
1370
|
-
export const de_DeleteMobileDeviceAccessOverrideCommand = async (output, context) => {
|
|
783
|
+
export const de_DeleteOrganizationCommand = async (output, context) => {
|
|
1371
784
|
if (output.statusCode >= 300) {
|
|
1372
|
-
return
|
|
785
|
+
return de_CommandError(output, context);
|
|
1373
786
|
}
|
|
1374
787
|
const data = await parseBody(output.body, context);
|
|
1375
788
|
let contents = {};
|
|
@@ -1380,37 +793,9 @@ export const de_DeleteMobileDeviceAccessOverrideCommand = async (output, context
|
|
|
1380
793
|
};
|
|
1381
794
|
return response;
|
|
1382
795
|
};
|
|
1383
|
-
const
|
|
1384
|
-
const parsedOutput = {
|
|
1385
|
-
...output,
|
|
1386
|
-
body: await parseErrorBody(output.body, context),
|
|
1387
|
-
};
|
|
1388
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1389
|
-
switch (errorCode) {
|
|
1390
|
-
case "EntityNotFoundException":
|
|
1391
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
1392
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
1393
|
-
case "InvalidParameterException":
|
|
1394
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1395
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1396
|
-
case "OrganizationNotFoundException":
|
|
1397
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1398
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1399
|
-
case "OrganizationStateException":
|
|
1400
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1401
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1402
|
-
default:
|
|
1403
|
-
const parsedBody = parsedOutput.body;
|
|
1404
|
-
return throwDefaultError({
|
|
1405
|
-
output,
|
|
1406
|
-
parsedBody,
|
|
1407
|
-
errorCode,
|
|
1408
|
-
});
|
|
1409
|
-
}
|
|
1410
|
-
};
|
|
1411
|
-
export const de_DeleteMobileDeviceAccessRuleCommand = async (output, context) => {
|
|
796
|
+
export const de_DeleteResourceCommand = async (output, context) => {
|
|
1412
797
|
if (output.statusCode >= 300) {
|
|
1413
|
-
return
|
|
798
|
+
return de_CommandError(output, context);
|
|
1414
799
|
}
|
|
1415
800
|
const data = await parseBody(output.body, context);
|
|
1416
801
|
let contents = {};
|
|
@@ -1421,34 +806,9 @@ export const de_DeleteMobileDeviceAccessRuleCommand = async (output, context) =>
|
|
|
1421
806
|
};
|
|
1422
807
|
return response;
|
|
1423
808
|
};
|
|
1424
|
-
const
|
|
1425
|
-
const parsedOutput = {
|
|
1426
|
-
...output,
|
|
1427
|
-
body: await parseErrorBody(output.body, context),
|
|
1428
|
-
};
|
|
1429
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1430
|
-
switch (errorCode) {
|
|
1431
|
-
case "InvalidParameterException":
|
|
1432
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1433
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1434
|
-
case "OrganizationNotFoundException":
|
|
1435
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1436
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "OrganizationStateException":
|
|
1438
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1439
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1440
|
-
default:
|
|
1441
|
-
const parsedBody = parsedOutput.body;
|
|
1442
|
-
return throwDefaultError({
|
|
1443
|
-
output,
|
|
1444
|
-
parsedBody,
|
|
1445
|
-
errorCode,
|
|
1446
|
-
});
|
|
1447
|
-
}
|
|
1448
|
-
};
|
|
1449
|
-
export const de_DeleteOrganizationCommand = async (output, context) => {
|
|
809
|
+
export const de_DeleteRetentionPolicyCommand = async (output, context) => {
|
|
1450
810
|
if (output.statusCode >= 300) {
|
|
1451
|
-
return
|
|
811
|
+
return de_CommandError(output, context);
|
|
1452
812
|
}
|
|
1453
813
|
const data = await parseBody(output.body, context);
|
|
1454
814
|
let contents = {};
|
|
@@ -1459,34 +819,22 @@ export const de_DeleteOrganizationCommand = async (output, context) => {
|
|
|
1459
819
|
};
|
|
1460
820
|
return response;
|
|
1461
821
|
};
|
|
1462
|
-
const
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
body: await parseErrorBody(output.body, context),
|
|
1466
|
-
};
|
|
1467
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1468
|
-
switch (errorCode) {
|
|
1469
|
-
case "InvalidParameterException":
|
|
1470
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1471
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1472
|
-
case "OrganizationNotFoundException":
|
|
1473
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1474
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1475
|
-
case "OrganizationStateException":
|
|
1476
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1477
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1478
|
-
default:
|
|
1479
|
-
const parsedBody = parsedOutput.body;
|
|
1480
|
-
return throwDefaultError({
|
|
1481
|
-
output,
|
|
1482
|
-
parsedBody,
|
|
1483
|
-
errorCode,
|
|
1484
|
-
});
|
|
822
|
+
export const de_DeleteUserCommand = async (output, context) => {
|
|
823
|
+
if (output.statusCode >= 300) {
|
|
824
|
+
return de_CommandError(output, context);
|
|
1485
825
|
}
|
|
826
|
+
const data = await parseBody(output.body, context);
|
|
827
|
+
let contents = {};
|
|
828
|
+
contents = _json(data);
|
|
829
|
+
const response = {
|
|
830
|
+
$metadata: deserializeMetadata(output),
|
|
831
|
+
...contents,
|
|
832
|
+
};
|
|
833
|
+
return response;
|
|
1486
834
|
};
|
|
1487
|
-
export const
|
|
835
|
+
export const de_DeregisterFromWorkMailCommand = async (output, context) => {
|
|
1488
836
|
if (output.statusCode >= 300) {
|
|
1489
|
-
return
|
|
837
|
+
return de_CommandError(output, context);
|
|
1490
838
|
}
|
|
1491
839
|
const data = await parseBody(output.body, context);
|
|
1492
840
|
let contents = {};
|
|
@@ -1497,40 +845,22 @@ export const de_DeleteResourceCommand = async (output, context) => {
|
|
|
1497
845
|
};
|
|
1498
846
|
return response;
|
|
1499
847
|
};
|
|
1500
|
-
const
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
body: await parseErrorBody(output.body, context),
|
|
1504
|
-
};
|
|
1505
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1506
|
-
switch (errorCode) {
|
|
1507
|
-
case "EntityStateException":
|
|
1508
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
1509
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
1510
|
-
case "InvalidParameterException":
|
|
1511
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1512
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1513
|
-
case "OrganizationNotFoundException":
|
|
1514
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1515
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1516
|
-
case "OrganizationStateException":
|
|
1517
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1518
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1519
|
-
case "UnsupportedOperationException":
|
|
1520
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
1521
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1522
|
-
default:
|
|
1523
|
-
const parsedBody = parsedOutput.body;
|
|
1524
|
-
return throwDefaultError({
|
|
1525
|
-
output,
|
|
1526
|
-
parsedBody,
|
|
1527
|
-
errorCode,
|
|
1528
|
-
});
|
|
848
|
+
export const de_DeregisterMailDomainCommand = async (output, context) => {
|
|
849
|
+
if (output.statusCode >= 300) {
|
|
850
|
+
return de_CommandError(output, context);
|
|
1529
851
|
}
|
|
852
|
+
const data = await parseBody(output.body, context);
|
|
853
|
+
let contents = {};
|
|
854
|
+
contents = _json(data);
|
|
855
|
+
const response = {
|
|
856
|
+
$metadata: deserializeMetadata(output),
|
|
857
|
+
...contents,
|
|
858
|
+
};
|
|
859
|
+
return response;
|
|
1530
860
|
};
|
|
1531
|
-
export const
|
|
861
|
+
export const de_DescribeEmailMonitoringConfigurationCommand = async (output, context) => {
|
|
1532
862
|
if (output.statusCode >= 300) {
|
|
1533
|
-
return
|
|
863
|
+
return de_CommandError(output, context);
|
|
1534
864
|
}
|
|
1535
865
|
const data = await parseBody(output.body, context);
|
|
1536
866
|
let contents = {};
|
|
@@ -1541,34 +871,9 @@ export const de_DeleteRetentionPolicyCommand = async (output, context) => {
|
|
|
1541
871
|
};
|
|
1542
872
|
return response;
|
|
1543
873
|
};
|
|
1544
|
-
const
|
|
1545
|
-
const parsedOutput = {
|
|
1546
|
-
...output,
|
|
1547
|
-
body: await parseErrorBody(output.body, context),
|
|
1548
|
-
};
|
|
1549
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1550
|
-
switch (errorCode) {
|
|
1551
|
-
case "InvalidParameterException":
|
|
1552
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1553
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1554
|
-
case "OrganizationNotFoundException":
|
|
1555
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1556
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1557
|
-
case "OrganizationStateException":
|
|
1558
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1559
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1560
|
-
default:
|
|
1561
|
-
const parsedBody = parsedOutput.body;
|
|
1562
|
-
return throwDefaultError({
|
|
1563
|
-
output,
|
|
1564
|
-
parsedBody,
|
|
1565
|
-
errorCode,
|
|
1566
|
-
});
|
|
1567
|
-
}
|
|
1568
|
-
};
|
|
1569
|
-
export const de_DeleteUserCommand = async (output, context) => {
|
|
874
|
+
export const de_DescribeEntityCommand = async (output, context) => {
|
|
1570
875
|
if (output.statusCode >= 300) {
|
|
1571
|
-
return
|
|
876
|
+
return de_CommandError(output, context);
|
|
1572
877
|
}
|
|
1573
878
|
const data = await parseBody(output.body, context);
|
|
1574
879
|
let contents = {};
|
|
@@ -1579,90 +884,22 @@ export const de_DeleteUserCommand = async (output, context) => {
|
|
|
1579
884
|
};
|
|
1580
885
|
return response;
|
|
1581
886
|
};
|
|
1582
|
-
const
|
|
1583
|
-
const parsedOutput = {
|
|
1584
|
-
...output,
|
|
1585
|
-
body: await parseErrorBody(output.body, context),
|
|
1586
|
-
};
|
|
1587
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1588
|
-
switch (errorCode) {
|
|
1589
|
-
case "DirectoryServiceAuthenticationFailedException":
|
|
1590
|
-
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
1591
|
-
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "DirectoryUnavailableException":
|
|
1593
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
1594
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "EntityStateException":
|
|
1596
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
1597
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
1598
|
-
case "InvalidParameterException":
|
|
1599
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1600
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1601
|
-
case "OrganizationNotFoundException":
|
|
1602
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1603
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1604
|
-
case "OrganizationStateException":
|
|
1605
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1606
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1607
|
-
case "UnsupportedOperationException":
|
|
1608
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
1609
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1610
|
-
default:
|
|
1611
|
-
const parsedBody = parsedOutput.body;
|
|
1612
|
-
return throwDefaultError({
|
|
1613
|
-
output,
|
|
1614
|
-
parsedBody,
|
|
1615
|
-
errorCode,
|
|
1616
|
-
});
|
|
1617
|
-
}
|
|
1618
|
-
};
|
|
1619
|
-
export const de_DeregisterFromWorkMailCommand = async (output, context) => {
|
|
887
|
+
export const de_DescribeGroupCommand = async (output, context) => {
|
|
1620
888
|
if (output.statusCode >= 300) {
|
|
1621
|
-
return
|
|
889
|
+
return de_CommandError(output, context);
|
|
1622
890
|
}
|
|
1623
891
|
const data = await parseBody(output.body, context);
|
|
1624
892
|
let contents = {};
|
|
1625
|
-
contents =
|
|
893
|
+
contents = de_DescribeGroupResponse(data, context);
|
|
1626
894
|
const response = {
|
|
1627
895
|
$metadata: deserializeMetadata(output),
|
|
1628
896
|
...contents,
|
|
1629
897
|
};
|
|
1630
898
|
return response;
|
|
1631
899
|
};
|
|
1632
|
-
const
|
|
1633
|
-
const parsedOutput = {
|
|
1634
|
-
...output,
|
|
1635
|
-
body: await parseErrorBody(output.body, context),
|
|
1636
|
-
};
|
|
1637
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1638
|
-
switch (errorCode) {
|
|
1639
|
-
case "EntityNotFoundException":
|
|
1640
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
1641
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
1642
|
-
case "EntityStateException":
|
|
1643
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
1644
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
1645
|
-
case "InvalidParameterException":
|
|
1646
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1647
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1648
|
-
case "OrganizationNotFoundException":
|
|
1649
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1650
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1651
|
-
case "OrganizationStateException":
|
|
1652
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1653
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1654
|
-
default:
|
|
1655
|
-
const parsedBody = parsedOutput.body;
|
|
1656
|
-
return throwDefaultError({
|
|
1657
|
-
output,
|
|
1658
|
-
parsedBody,
|
|
1659
|
-
errorCode,
|
|
1660
|
-
});
|
|
1661
|
-
}
|
|
1662
|
-
};
|
|
1663
|
-
export const de_DeregisterMailDomainCommand = async (output, context) => {
|
|
900
|
+
export const de_DescribeInboundDmarcSettingsCommand = async (output, context) => {
|
|
1664
901
|
if (output.statusCode >= 300) {
|
|
1665
|
-
return
|
|
902
|
+
return de_CommandError(output, context);
|
|
1666
903
|
}
|
|
1667
904
|
const data = await parseBody(output.body, context);
|
|
1668
905
|
let contents = {};
|
|
@@ -1673,163 +910,61 @@ export const de_DeregisterMailDomainCommand = async (output, context) => {
|
|
|
1673
910
|
};
|
|
1674
911
|
return response;
|
|
1675
912
|
};
|
|
1676
|
-
const
|
|
1677
|
-
const parsedOutput = {
|
|
1678
|
-
...output,
|
|
1679
|
-
body: await parseErrorBody(output.body, context),
|
|
1680
|
-
};
|
|
1681
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1682
|
-
switch (errorCode) {
|
|
1683
|
-
case "InvalidCustomSesConfigurationException":
|
|
1684
|
-
case "com.amazonaws.workmail#InvalidCustomSesConfigurationException":
|
|
1685
|
-
throw await de_InvalidCustomSesConfigurationExceptionRes(parsedOutput, context);
|
|
1686
|
-
case "InvalidParameterException":
|
|
1687
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1688
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1689
|
-
case "MailDomainInUseException":
|
|
1690
|
-
case "com.amazonaws.workmail#MailDomainInUseException":
|
|
1691
|
-
throw await de_MailDomainInUseExceptionRes(parsedOutput, context);
|
|
1692
|
-
case "OrganizationNotFoundException":
|
|
1693
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1694
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1695
|
-
case "OrganizationStateException":
|
|
1696
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1697
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1698
|
-
default:
|
|
1699
|
-
const parsedBody = parsedOutput.body;
|
|
1700
|
-
return throwDefaultError({
|
|
1701
|
-
output,
|
|
1702
|
-
parsedBody,
|
|
1703
|
-
errorCode,
|
|
1704
|
-
});
|
|
1705
|
-
}
|
|
1706
|
-
};
|
|
1707
|
-
export const de_DescribeEmailMonitoringConfigurationCommand = async (output, context) => {
|
|
913
|
+
export const de_DescribeMailboxExportJobCommand = async (output, context) => {
|
|
1708
914
|
if (output.statusCode >= 300) {
|
|
1709
|
-
return
|
|
915
|
+
return de_CommandError(output, context);
|
|
1710
916
|
}
|
|
1711
917
|
const data = await parseBody(output.body, context);
|
|
1712
918
|
let contents = {};
|
|
1713
|
-
contents =
|
|
919
|
+
contents = de_DescribeMailboxExportJobResponse(data, context);
|
|
1714
920
|
const response = {
|
|
1715
921
|
$metadata: deserializeMetadata(output),
|
|
1716
922
|
...contents,
|
|
1717
923
|
};
|
|
1718
924
|
return response;
|
|
1719
925
|
};
|
|
1720
|
-
const
|
|
1721
|
-
const parsedOutput = {
|
|
1722
|
-
...output,
|
|
1723
|
-
body: await parseErrorBody(output.body, context),
|
|
1724
|
-
};
|
|
1725
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1726
|
-
switch (errorCode) {
|
|
1727
|
-
case "InvalidParameterException":
|
|
1728
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1729
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1730
|
-
case "OrganizationNotFoundException":
|
|
1731
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1732
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1733
|
-
case "OrganizationStateException":
|
|
1734
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1735
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1736
|
-
case "ResourceNotFoundException":
|
|
1737
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
1738
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1739
|
-
default:
|
|
1740
|
-
const parsedBody = parsedOutput.body;
|
|
1741
|
-
return throwDefaultError({
|
|
1742
|
-
output,
|
|
1743
|
-
parsedBody,
|
|
1744
|
-
errorCode,
|
|
1745
|
-
});
|
|
1746
|
-
}
|
|
1747
|
-
};
|
|
1748
|
-
export const de_DescribeEntityCommand = async (output, context) => {
|
|
926
|
+
export const de_DescribeOrganizationCommand = async (output, context) => {
|
|
1749
927
|
if (output.statusCode >= 300) {
|
|
1750
|
-
return
|
|
928
|
+
return de_CommandError(output, context);
|
|
1751
929
|
}
|
|
1752
930
|
const data = await parseBody(output.body, context);
|
|
1753
931
|
let contents = {};
|
|
1754
|
-
contents =
|
|
932
|
+
contents = de_DescribeOrganizationResponse(data, context);
|
|
1755
933
|
const response = {
|
|
1756
934
|
$metadata: deserializeMetadata(output),
|
|
1757
935
|
...contents,
|
|
1758
936
|
};
|
|
1759
937
|
return response;
|
|
1760
938
|
};
|
|
1761
|
-
const
|
|
1762
|
-
const parsedOutput = {
|
|
1763
|
-
...output,
|
|
1764
|
-
body: await parseErrorBody(output.body, context),
|
|
1765
|
-
};
|
|
1766
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1767
|
-
switch (errorCode) {
|
|
1768
|
-
case "EntityNotFoundException":
|
|
1769
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
1770
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
1771
|
-
case "InvalidParameterException":
|
|
1772
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1773
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1774
|
-
case "OrganizationNotFoundException":
|
|
1775
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1776
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1777
|
-
case "OrganizationStateException":
|
|
1778
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1779
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1780
|
-
default:
|
|
1781
|
-
const parsedBody = parsedOutput.body;
|
|
1782
|
-
return throwDefaultError({
|
|
1783
|
-
output,
|
|
1784
|
-
parsedBody,
|
|
1785
|
-
errorCode,
|
|
1786
|
-
});
|
|
1787
|
-
}
|
|
1788
|
-
};
|
|
1789
|
-
export const de_DescribeGroupCommand = async (output, context) => {
|
|
939
|
+
export const de_DescribeResourceCommand = async (output, context) => {
|
|
1790
940
|
if (output.statusCode >= 300) {
|
|
1791
|
-
return
|
|
941
|
+
return de_CommandError(output, context);
|
|
1792
942
|
}
|
|
1793
943
|
const data = await parseBody(output.body, context);
|
|
1794
944
|
let contents = {};
|
|
1795
|
-
contents =
|
|
945
|
+
contents = de_DescribeResourceResponse(data, context);
|
|
1796
946
|
const response = {
|
|
1797
947
|
$metadata: deserializeMetadata(output),
|
|
1798
948
|
...contents,
|
|
1799
949
|
};
|
|
1800
950
|
return response;
|
|
1801
951
|
};
|
|
1802
|
-
const
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
body: await parseErrorBody(output.body, context),
|
|
1806
|
-
};
|
|
1807
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1808
|
-
switch (errorCode) {
|
|
1809
|
-
case "EntityNotFoundException":
|
|
1810
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
1811
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
1812
|
-
case "InvalidParameterException":
|
|
1813
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1814
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1815
|
-
case "OrganizationNotFoundException":
|
|
1816
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1817
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1818
|
-
case "OrganizationStateException":
|
|
1819
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1820
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1821
|
-
default:
|
|
1822
|
-
const parsedBody = parsedOutput.body;
|
|
1823
|
-
return throwDefaultError({
|
|
1824
|
-
output,
|
|
1825
|
-
parsedBody,
|
|
1826
|
-
errorCode,
|
|
1827
|
-
});
|
|
952
|
+
export const de_DescribeUserCommand = async (output, context) => {
|
|
953
|
+
if (output.statusCode >= 300) {
|
|
954
|
+
return de_CommandError(output, context);
|
|
1828
955
|
}
|
|
956
|
+
const data = await parseBody(output.body, context);
|
|
957
|
+
let contents = {};
|
|
958
|
+
contents = de_DescribeUserResponse(data, context);
|
|
959
|
+
const response = {
|
|
960
|
+
$metadata: deserializeMetadata(output),
|
|
961
|
+
...contents,
|
|
962
|
+
};
|
|
963
|
+
return response;
|
|
1829
964
|
};
|
|
1830
|
-
export const
|
|
965
|
+
export const de_DisassociateDelegateFromResourceCommand = async (output, context) => {
|
|
1831
966
|
if (output.statusCode >= 300) {
|
|
1832
|
-
return
|
|
967
|
+
return de_CommandError(output, context);
|
|
1833
968
|
}
|
|
1834
969
|
const data = await parseBody(output.body, context);
|
|
1835
970
|
let contents = {};
|
|
@@ -1840,192 +975,61 @@ export const de_DescribeInboundDmarcSettingsCommand = async (output, context) =>
|
|
|
1840
975
|
};
|
|
1841
976
|
return response;
|
|
1842
977
|
};
|
|
1843
|
-
const
|
|
1844
|
-
const parsedOutput = {
|
|
1845
|
-
...output,
|
|
1846
|
-
body: await parseErrorBody(output.body, context),
|
|
1847
|
-
};
|
|
1848
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1849
|
-
switch (errorCode) {
|
|
1850
|
-
case "OrganizationNotFoundException":
|
|
1851
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1852
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1853
|
-
case "OrganizationStateException":
|
|
1854
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1855
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1856
|
-
default:
|
|
1857
|
-
const parsedBody = parsedOutput.body;
|
|
1858
|
-
return throwDefaultError({
|
|
1859
|
-
output,
|
|
1860
|
-
parsedBody,
|
|
1861
|
-
errorCode,
|
|
1862
|
-
});
|
|
1863
|
-
}
|
|
1864
|
-
};
|
|
1865
|
-
export const de_DescribeMailboxExportJobCommand = async (output, context) => {
|
|
978
|
+
export const de_DisassociateMemberFromGroupCommand = async (output, context) => {
|
|
1866
979
|
if (output.statusCode >= 300) {
|
|
1867
|
-
return
|
|
980
|
+
return de_CommandError(output, context);
|
|
1868
981
|
}
|
|
1869
982
|
const data = await parseBody(output.body, context);
|
|
1870
983
|
let contents = {};
|
|
1871
|
-
contents =
|
|
984
|
+
contents = _json(data);
|
|
1872
985
|
const response = {
|
|
1873
986
|
$metadata: deserializeMetadata(output),
|
|
1874
987
|
...contents,
|
|
1875
988
|
};
|
|
1876
989
|
return response;
|
|
1877
990
|
};
|
|
1878
|
-
const
|
|
1879
|
-
const parsedOutput = {
|
|
1880
|
-
...output,
|
|
1881
|
-
body: await parseErrorBody(output.body, context),
|
|
1882
|
-
};
|
|
1883
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1884
|
-
switch (errorCode) {
|
|
1885
|
-
case "EntityNotFoundException":
|
|
1886
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
1887
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
1888
|
-
case "InvalidParameterException":
|
|
1889
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1890
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1891
|
-
case "OrganizationNotFoundException":
|
|
1892
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1893
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1894
|
-
case "OrganizationStateException":
|
|
1895
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1896
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1897
|
-
default:
|
|
1898
|
-
const parsedBody = parsedOutput.body;
|
|
1899
|
-
return throwDefaultError({
|
|
1900
|
-
output,
|
|
1901
|
-
parsedBody,
|
|
1902
|
-
errorCode,
|
|
1903
|
-
});
|
|
1904
|
-
}
|
|
1905
|
-
};
|
|
1906
|
-
export const de_DescribeOrganizationCommand = async (output, context) => {
|
|
991
|
+
export const de_GetAccessControlEffectCommand = async (output, context) => {
|
|
1907
992
|
if (output.statusCode >= 300) {
|
|
1908
|
-
return
|
|
993
|
+
return de_CommandError(output, context);
|
|
1909
994
|
}
|
|
1910
995
|
const data = await parseBody(output.body, context);
|
|
1911
996
|
let contents = {};
|
|
1912
|
-
contents =
|
|
997
|
+
contents = _json(data);
|
|
1913
998
|
const response = {
|
|
1914
999
|
$metadata: deserializeMetadata(output),
|
|
1915
1000
|
...contents,
|
|
1916
1001
|
};
|
|
1917
1002
|
return response;
|
|
1918
1003
|
};
|
|
1919
|
-
const
|
|
1920
|
-
const parsedOutput = {
|
|
1921
|
-
...output,
|
|
1922
|
-
body: await parseErrorBody(output.body, context),
|
|
1923
|
-
};
|
|
1924
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1925
|
-
switch (errorCode) {
|
|
1926
|
-
case "InvalidParameterException":
|
|
1927
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1928
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1929
|
-
case "OrganizationNotFoundException":
|
|
1930
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1931
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1932
|
-
default:
|
|
1933
|
-
const parsedBody = parsedOutput.body;
|
|
1934
|
-
return throwDefaultError({
|
|
1935
|
-
output,
|
|
1936
|
-
parsedBody,
|
|
1937
|
-
errorCode,
|
|
1938
|
-
});
|
|
1939
|
-
}
|
|
1940
|
-
};
|
|
1941
|
-
export const de_DescribeResourceCommand = async (output, context) => {
|
|
1004
|
+
export const de_GetDefaultRetentionPolicyCommand = async (output, context) => {
|
|
1942
1005
|
if (output.statusCode >= 300) {
|
|
1943
|
-
return
|
|
1006
|
+
return de_CommandError(output, context);
|
|
1944
1007
|
}
|
|
1945
1008
|
const data = await parseBody(output.body, context);
|
|
1946
1009
|
let contents = {};
|
|
1947
|
-
contents =
|
|
1010
|
+
contents = _json(data);
|
|
1948
1011
|
const response = {
|
|
1949
1012
|
$metadata: deserializeMetadata(output),
|
|
1950
1013
|
...contents,
|
|
1951
1014
|
};
|
|
1952
1015
|
return response;
|
|
1953
1016
|
};
|
|
1954
|
-
const
|
|
1955
|
-
const parsedOutput = {
|
|
1956
|
-
...output,
|
|
1957
|
-
body: await parseErrorBody(output.body, context),
|
|
1958
|
-
};
|
|
1959
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1960
|
-
switch (errorCode) {
|
|
1961
|
-
case "EntityNotFoundException":
|
|
1962
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
1963
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
1964
|
-
case "InvalidParameterException":
|
|
1965
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1966
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1967
|
-
case "OrganizationNotFoundException":
|
|
1968
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1969
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1970
|
-
case "OrganizationStateException":
|
|
1971
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1972
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1973
|
-
case "UnsupportedOperationException":
|
|
1974
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
1975
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1976
|
-
default:
|
|
1977
|
-
const parsedBody = parsedOutput.body;
|
|
1978
|
-
return throwDefaultError({
|
|
1979
|
-
output,
|
|
1980
|
-
parsedBody,
|
|
1981
|
-
errorCode,
|
|
1982
|
-
});
|
|
1983
|
-
}
|
|
1984
|
-
};
|
|
1985
|
-
export const de_DescribeUserCommand = async (output, context) => {
|
|
1017
|
+
export const de_GetImpersonationRoleCommand = async (output, context) => {
|
|
1986
1018
|
if (output.statusCode >= 300) {
|
|
1987
|
-
return
|
|
1019
|
+
return de_CommandError(output, context);
|
|
1988
1020
|
}
|
|
1989
1021
|
const data = await parseBody(output.body, context);
|
|
1990
1022
|
let contents = {};
|
|
1991
|
-
contents =
|
|
1023
|
+
contents = de_GetImpersonationRoleResponse(data, context);
|
|
1992
1024
|
const response = {
|
|
1993
1025
|
$metadata: deserializeMetadata(output),
|
|
1994
1026
|
...contents,
|
|
1995
1027
|
};
|
|
1996
1028
|
return response;
|
|
1997
1029
|
};
|
|
1998
|
-
const
|
|
1999
|
-
const parsedOutput = {
|
|
2000
|
-
...output,
|
|
2001
|
-
body: await parseErrorBody(output.body, context),
|
|
2002
|
-
};
|
|
2003
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2004
|
-
switch (errorCode) {
|
|
2005
|
-
case "EntityNotFoundException":
|
|
2006
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2007
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2008
|
-
case "InvalidParameterException":
|
|
2009
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2010
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2011
|
-
case "OrganizationNotFoundException":
|
|
2012
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2013
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2014
|
-
case "OrganizationStateException":
|
|
2015
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2016
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2017
|
-
default:
|
|
2018
|
-
const parsedBody = parsedOutput.body;
|
|
2019
|
-
return throwDefaultError({
|
|
2020
|
-
output,
|
|
2021
|
-
parsedBody,
|
|
2022
|
-
errorCode,
|
|
2023
|
-
});
|
|
2024
|
-
}
|
|
2025
|
-
};
|
|
2026
|
-
export const de_DisassociateDelegateFromResourceCommand = async (output, context) => {
|
|
1030
|
+
export const de_GetImpersonationRoleEffectCommand = async (output, context) => {
|
|
2027
1031
|
if (output.statusCode >= 300) {
|
|
2028
|
-
return
|
|
1032
|
+
return de_CommandError(output, context);
|
|
2029
1033
|
}
|
|
2030
1034
|
const data = await parseBody(output.body, context);
|
|
2031
1035
|
let contents = {};
|
|
@@ -2036,96 +1040,22 @@ export const de_DisassociateDelegateFromResourceCommand = async (output, context
|
|
|
2036
1040
|
};
|
|
2037
1041
|
return response;
|
|
2038
1042
|
};
|
|
2039
|
-
const
|
|
2040
|
-
const parsedOutput = {
|
|
2041
|
-
...output,
|
|
2042
|
-
body: await parseErrorBody(output.body, context),
|
|
2043
|
-
};
|
|
2044
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2045
|
-
switch (errorCode) {
|
|
2046
|
-
case "EntityNotFoundException":
|
|
2047
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2048
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2049
|
-
case "EntityStateException":
|
|
2050
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
2051
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
2052
|
-
case "InvalidParameterException":
|
|
2053
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2054
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2055
|
-
case "OrganizationNotFoundException":
|
|
2056
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2057
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2058
|
-
case "OrganizationStateException":
|
|
2059
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2060
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2061
|
-
case "UnsupportedOperationException":
|
|
2062
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
2063
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2064
|
-
default:
|
|
2065
|
-
const parsedBody = parsedOutput.body;
|
|
2066
|
-
return throwDefaultError({
|
|
2067
|
-
output,
|
|
2068
|
-
parsedBody,
|
|
2069
|
-
errorCode,
|
|
2070
|
-
});
|
|
2071
|
-
}
|
|
2072
|
-
};
|
|
2073
|
-
export const de_DisassociateMemberFromGroupCommand = async (output, context) => {
|
|
1043
|
+
export const de_GetMailboxDetailsCommand = async (output, context) => {
|
|
2074
1044
|
if (output.statusCode >= 300) {
|
|
2075
|
-
return
|
|
1045
|
+
return de_CommandError(output, context);
|
|
2076
1046
|
}
|
|
2077
1047
|
const data = await parseBody(output.body, context);
|
|
2078
1048
|
let contents = {};
|
|
2079
|
-
contents =
|
|
1049
|
+
contents = de_GetMailboxDetailsResponse(data, context);
|
|
2080
1050
|
const response = {
|
|
2081
1051
|
$metadata: deserializeMetadata(output),
|
|
2082
1052
|
...contents,
|
|
2083
1053
|
};
|
|
2084
1054
|
return response;
|
|
2085
1055
|
};
|
|
2086
|
-
const
|
|
2087
|
-
const parsedOutput = {
|
|
2088
|
-
...output,
|
|
2089
|
-
body: await parseErrorBody(output.body, context),
|
|
2090
|
-
};
|
|
2091
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2092
|
-
switch (errorCode) {
|
|
2093
|
-
case "DirectoryServiceAuthenticationFailedException":
|
|
2094
|
-
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
2095
|
-
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
2096
|
-
case "DirectoryUnavailableException":
|
|
2097
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
2098
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
2099
|
-
case "EntityNotFoundException":
|
|
2100
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2101
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2102
|
-
case "EntityStateException":
|
|
2103
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
2104
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
2105
|
-
case "InvalidParameterException":
|
|
2106
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2107
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2108
|
-
case "OrganizationNotFoundException":
|
|
2109
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2110
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2111
|
-
case "OrganizationStateException":
|
|
2112
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2113
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2114
|
-
case "UnsupportedOperationException":
|
|
2115
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
2116
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2117
|
-
default:
|
|
2118
|
-
const parsedBody = parsedOutput.body;
|
|
2119
|
-
return throwDefaultError({
|
|
2120
|
-
output,
|
|
2121
|
-
parsedBody,
|
|
2122
|
-
errorCode,
|
|
2123
|
-
});
|
|
2124
|
-
}
|
|
2125
|
-
};
|
|
2126
|
-
export const de_GetAccessControlEffectCommand = async (output, context) => {
|
|
1056
|
+
export const de_GetMailDomainCommand = async (output, context) => {
|
|
2127
1057
|
if (output.statusCode >= 300) {
|
|
2128
|
-
return
|
|
1058
|
+
return de_CommandError(output, context);
|
|
2129
1059
|
}
|
|
2130
1060
|
const data = await parseBody(output.body, context);
|
|
2131
1061
|
let contents = {};
|
|
@@ -2136,40 +1066,9 @@ export const de_GetAccessControlEffectCommand = async (output, context) => {
|
|
|
2136
1066
|
};
|
|
2137
1067
|
return response;
|
|
2138
1068
|
};
|
|
2139
|
-
const
|
|
2140
|
-
const parsedOutput = {
|
|
2141
|
-
...output,
|
|
2142
|
-
body: await parseErrorBody(output.body, context),
|
|
2143
|
-
};
|
|
2144
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2145
|
-
switch (errorCode) {
|
|
2146
|
-
case "EntityNotFoundException":
|
|
2147
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2148
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2149
|
-
case "InvalidParameterException":
|
|
2150
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2151
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2152
|
-
case "OrganizationNotFoundException":
|
|
2153
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2154
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2155
|
-
case "OrganizationStateException":
|
|
2156
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2157
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2158
|
-
case "ResourceNotFoundException":
|
|
2159
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
2160
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2161
|
-
default:
|
|
2162
|
-
const parsedBody = parsedOutput.body;
|
|
2163
|
-
return throwDefaultError({
|
|
2164
|
-
output,
|
|
2165
|
-
parsedBody,
|
|
2166
|
-
errorCode,
|
|
2167
|
-
});
|
|
2168
|
-
}
|
|
2169
|
-
};
|
|
2170
|
-
export const de_GetDefaultRetentionPolicyCommand = async (output, context) => {
|
|
1069
|
+
export const de_GetMobileDeviceAccessEffectCommand = async (output, context) => {
|
|
2171
1070
|
if (output.statusCode >= 300) {
|
|
2172
|
-
return
|
|
1071
|
+
return de_CommandError(output, context);
|
|
2173
1072
|
}
|
|
2174
1073
|
const data = await parseBody(output.body, context);
|
|
2175
1074
|
let contents = {};
|
|
@@ -2180,78 +1079,35 @@ export const de_GetDefaultRetentionPolicyCommand = async (output, context) => {
|
|
|
2180
1079
|
};
|
|
2181
1080
|
return response;
|
|
2182
1081
|
};
|
|
2183
|
-
const
|
|
2184
|
-
const parsedOutput = {
|
|
2185
|
-
...output,
|
|
2186
|
-
body: await parseErrorBody(output.body, context),
|
|
2187
|
-
};
|
|
2188
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2189
|
-
switch (errorCode) {
|
|
2190
|
-
case "EntityNotFoundException":
|
|
2191
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2192
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2193
|
-
case "InvalidParameterException":
|
|
2194
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2195
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2196
|
-
case "OrganizationNotFoundException":
|
|
2197
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2198
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2199
|
-
case "OrganizationStateException":
|
|
2200
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2201
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2202
|
-
default:
|
|
2203
|
-
const parsedBody = parsedOutput.body;
|
|
2204
|
-
return throwDefaultError({
|
|
2205
|
-
output,
|
|
2206
|
-
parsedBody,
|
|
2207
|
-
errorCode,
|
|
2208
|
-
});
|
|
2209
|
-
}
|
|
2210
|
-
};
|
|
2211
|
-
export const de_GetImpersonationRoleCommand = async (output, context) => {
|
|
1082
|
+
export const de_GetMobileDeviceAccessOverrideCommand = async (output, context) => {
|
|
2212
1083
|
if (output.statusCode >= 300) {
|
|
2213
|
-
return
|
|
1084
|
+
return de_CommandError(output, context);
|
|
2214
1085
|
}
|
|
2215
1086
|
const data = await parseBody(output.body, context);
|
|
2216
1087
|
let contents = {};
|
|
2217
|
-
contents =
|
|
1088
|
+
contents = de_GetMobileDeviceAccessOverrideResponse(data, context);
|
|
2218
1089
|
const response = {
|
|
2219
1090
|
$metadata: deserializeMetadata(output),
|
|
2220
1091
|
...contents,
|
|
2221
1092
|
};
|
|
2222
1093
|
return response;
|
|
2223
1094
|
};
|
|
2224
|
-
const
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
body: await parseErrorBody(output.body, context),
|
|
2228
|
-
};
|
|
2229
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2230
|
-
switch (errorCode) {
|
|
2231
|
-
case "InvalidParameterException":
|
|
2232
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2233
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2234
|
-
case "OrganizationNotFoundException":
|
|
2235
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2236
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2237
|
-
case "OrganizationStateException":
|
|
2238
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2239
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2240
|
-
case "ResourceNotFoundException":
|
|
2241
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
2242
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2243
|
-
default:
|
|
2244
|
-
const parsedBody = parsedOutput.body;
|
|
2245
|
-
return throwDefaultError({
|
|
2246
|
-
output,
|
|
2247
|
-
parsedBody,
|
|
2248
|
-
errorCode,
|
|
2249
|
-
});
|
|
1095
|
+
export const de_ListAccessControlRulesCommand = async (output, context) => {
|
|
1096
|
+
if (output.statusCode >= 300) {
|
|
1097
|
+
return de_CommandError(output, context);
|
|
2250
1098
|
}
|
|
1099
|
+
const data = await parseBody(output.body, context);
|
|
1100
|
+
let contents = {};
|
|
1101
|
+
contents = de_ListAccessControlRulesResponse(data, context);
|
|
1102
|
+
const response = {
|
|
1103
|
+
$metadata: deserializeMetadata(output),
|
|
1104
|
+
...contents,
|
|
1105
|
+
};
|
|
1106
|
+
return response;
|
|
2251
1107
|
};
|
|
2252
|
-
export const
|
|
1108
|
+
export const de_ListAliasesCommand = async (output, context) => {
|
|
2253
1109
|
if (output.statusCode >= 300) {
|
|
2254
|
-
return
|
|
1110
|
+
return de_CommandError(output, context);
|
|
2255
1111
|
}
|
|
2256
1112
|
const data = await parseBody(output.body, context);
|
|
2257
1113
|
let contents = {};
|
|
@@ -2262,406 +1118,139 @@ export const de_GetImpersonationRoleEffectCommand = async (output, context) => {
|
|
|
2262
1118
|
};
|
|
2263
1119
|
return response;
|
|
2264
1120
|
};
|
|
2265
|
-
const
|
|
2266
|
-
const parsedOutput = {
|
|
2267
|
-
...output,
|
|
2268
|
-
body: await parseErrorBody(output.body, context),
|
|
2269
|
-
};
|
|
2270
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2271
|
-
switch (errorCode) {
|
|
2272
|
-
case "EntityNotFoundException":
|
|
2273
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2274
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2275
|
-
case "EntityStateException":
|
|
2276
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
2277
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
2278
|
-
case "InvalidParameterException":
|
|
2279
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2280
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2281
|
-
case "OrganizationNotFoundException":
|
|
2282
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2283
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2284
|
-
case "OrganizationStateException":
|
|
2285
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2286
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2287
|
-
case "ResourceNotFoundException":
|
|
2288
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
2289
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2290
|
-
default:
|
|
2291
|
-
const parsedBody = parsedOutput.body;
|
|
2292
|
-
return throwDefaultError({
|
|
2293
|
-
output,
|
|
2294
|
-
parsedBody,
|
|
2295
|
-
errorCode,
|
|
2296
|
-
});
|
|
2297
|
-
}
|
|
2298
|
-
};
|
|
2299
|
-
export const de_GetMailboxDetailsCommand = async (output, context) => {
|
|
1121
|
+
export const de_ListAvailabilityConfigurationsCommand = async (output, context) => {
|
|
2300
1122
|
if (output.statusCode >= 300) {
|
|
2301
|
-
return
|
|
1123
|
+
return de_CommandError(output, context);
|
|
2302
1124
|
}
|
|
2303
1125
|
const data = await parseBody(output.body, context);
|
|
2304
1126
|
let contents = {};
|
|
2305
|
-
contents =
|
|
1127
|
+
contents = de_ListAvailabilityConfigurationsResponse(data, context);
|
|
2306
1128
|
const response = {
|
|
2307
1129
|
$metadata: deserializeMetadata(output),
|
|
2308
1130
|
...contents,
|
|
2309
1131
|
};
|
|
2310
1132
|
return response;
|
|
2311
1133
|
};
|
|
2312
|
-
const
|
|
2313
|
-
const parsedOutput = {
|
|
2314
|
-
...output,
|
|
2315
|
-
body: await parseErrorBody(output.body, context),
|
|
2316
|
-
};
|
|
2317
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2318
|
-
switch (errorCode) {
|
|
2319
|
-
case "EntityNotFoundException":
|
|
2320
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2321
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2322
|
-
case "InvalidParameterException":
|
|
2323
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2324
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2325
|
-
case "OrganizationNotFoundException":
|
|
2326
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2327
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2328
|
-
case "OrganizationStateException":
|
|
2329
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2330
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2331
|
-
default:
|
|
2332
|
-
const parsedBody = parsedOutput.body;
|
|
2333
|
-
return throwDefaultError({
|
|
2334
|
-
output,
|
|
2335
|
-
parsedBody,
|
|
2336
|
-
errorCode,
|
|
2337
|
-
});
|
|
2338
|
-
}
|
|
2339
|
-
};
|
|
2340
|
-
export const de_GetMailDomainCommand = async (output, context) => {
|
|
1134
|
+
export const de_ListGroupMembersCommand = async (output, context) => {
|
|
2341
1135
|
if (output.statusCode >= 300) {
|
|
2342
|
-
return
|
|
1136
|
+
return de_CommandError(output, context);
|
|
2343
1137
|
}
|
|
2344
1138
|
const data = await parseBody(output.body, context);
|
|
2345
1139
|
let contents = {};
|
|
2346
|
-
contents =
|
|
1140
|
+
contents = de_ListGroupMembersResponse(data, context);
|
|
2347
1141
|
const response = {
|
|
2348
1142
|
$metadata: deserializeMetadata(output),
|
|
2349
1143
|
...contents,
|
|
2350
1144
|
};
|
|
2351
1145
|
return response;
|
|
2352
1146
|
};
|
|
2353
|
-
const
|
|
2354
|
-
const parsedOutput = {
|
|
2355
|
-
...output,
|
|
2356
|
-
body: await parseErrorBody(output.body, context),
|
|
2357
|
-
};
|
|
2358
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2359
|
-
switch (errorCode) {
|
|
2360
|
-
case "InvalidParameterException":
|
|
2361
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2362
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2363
|
-
case "MailDomainNotFoundException":
|
|
2364
|
-
case "com.amazonaws.workmail#MailDomainNotFoundException":
|
|
2365
|
-
throw await de_MailDomainNotFoundExceptionRes(parsedOutput, context);
|
|
2366
|
-
case "OrganizationNotFoundException":
|
|
2367
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2368
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2369
|
-
case "OrganizationStateException":
|
|
2370
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2371
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2372
|
-
default:
|
|
2373
|
-
const parsedBody = parsedOutput.body;
|
|
2374
|
-
return throwDefaultError({
|
|
2375
|
-
output,
|
|
2376
|
-
parsedBody,
|
|
2377
|
-
errorCode,
|
|
2378
|
-
});
|
|
2379
|
-
}
|
|
2380
|
-
};
|
|
2381
|
-
export const de_GetMobileDeviceAccessEffectCommand = async (output, context) => {
|
|
1147
|
+
export const de_ListGroupsCommand = async (output, context) => {
|
|
2382
1148
|
if (output.statusCode >= 300) {
|
|
2383
|
-
return
|
|
1149
|
+
return de_CommandError(output, context);
|
|
2384
1150
|
}
|
|
2385
1151
|
const data = await parseBody(output.body, context);
|
|
2386
1152
|
let contents = {};
|
|
2387
|
-
contents =
|
|
1153
|
+
contents = de_ListGroupsResponse(data, context);
|
|
2388
1154
|
const response = {
|
|
2389
1155
|
$metadata: deserializeMetadata(output),
|
|
2390
1156
|
...contents,
|
|
2391
1157
|
};
|
|
2392
1158
|
return response;
|
|
2393
1159
|
};
|
|
2394
|
-
const
|
|
2395
|
-
const parsedOutput = {
|
|
2396
|
-
...output,
|
|
2397
|
-
body: await parseErrorBody(output.body, context),
|
|
2398
|
-
};
|
|
2399
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2400
|
-
switch (errorCode) {
|
|
2401
|
-
case "InvalidParameterException":
|
|
2402
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2403
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2404
|
-
case "OrganizationNotFoundException":
|
|
2405
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2406
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2407
|
-
case "OrganizationStateException":
|
|
2408
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2409
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2410
|
-
default:
|
|
2411
|
-
const parsedBody = parsedOutput.body;
|
|
2412
|
-
return throwDefaultError({
|
|
2413
|
-
output,
|
|
2414
|
-
parsedBody,
|
|
2415
|
-
errorCode,
|
|
2416
|
-
});
|
|
2417
|
-
}
|
|
2418
|
-
};
|
|
2419
|
-
export const de_GetMobileDeviceAccessOverrideCommand = async (output, context) => {
|
|
1160
|
+
export const de_ListGroupsForEntityCommand = async (output, context) => {
|
|
2420
1161
|
if (output.statusCode >= 300) {
|
|
2421
|
-
return
|
|
1162
|
+
return de_CommandError(output, context);
|
|
2422
1163
|
}
|
|
2423
1164
|
const data = await parseBody(output.body, context);
|
|
2424
1165
|
let contents = {};
|
|
2425
|
-
contents =
|
|
1166
|
+
contents = _json(data);
|
|
2426
1167
|
const response = {
|
|
2427
1168
|
$metadata: deserializeMetadata(output),
|
|
2428
1169
|
...contents,
|
|
2429
1170
|
};
|
|
2430
1171
|
return response;
|
|
2431
1172
|
};
|
|
2432
|
-
const
|
|
2433
|
-
const parsedOutput = {
|
|
2434
|
-
...output,
|
|
2435
|
-
body: await parseErrorBody(output.body, context),
|
|
2436
|
-
};
|
|
2437
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2438
|
-
switch (errorCode) {
|
|
2439
|
-
case "EntityNotFoundException":
|
|
2440
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2441
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2442
|
-
case "InvalidParameterException":
|
|
2443
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2444
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2445
|
-
case "OrganizationNotFoundException":
|
|
2446
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2447
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2448
|
-
case "OrganizationStateException":
|
|
2449
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2450
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2451
|
-
case "ResourceNotFoundException":
|
|
2452
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
2453
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2454
|
-
default:
|
|
2455
|
-
const parsedBody = parsedOutput.body;
|
|
2456
|
-
return throwDefaultError({
|
|
2457
|
-
output,
|
|
2458
|
-
parsedBody,
|
|
2459
|
-
errorCode,
|
|
2460
|
-
});
|
|
2461
|
-
}
|
|
2462
|
-
};
|
|
2463
|
-
export const de_ListAccessControlRulesCommand = async (output, context) => {
|
|
1173
|
+
export const de_ListImpersonationRolesCommand = async (output, context) => {
|
|
2464
1174
|
if (output.statusCode >= 300) {
|
|
2465
|
-
return
|
|
1175
|
+
return de_CommandError(output, context);
|
|
2466
1176
|
}
|
|
2467
1177
|
const data = await parseBody(output.body, context);
|
|
2468
1178
|
let contents = {};
|
|
2469
|
-
contents =
|
|
1179
|
+
contents = de_ListImpersonationRolesResponse(data, context);
|
|
2470
1180
|
const response = {
|
|
2471
1181
|
$metadata: deserializeMetadata(output),
|
|
2472
1182
|
...contents,
|
|
2473
1183
|
};
|
|
2474
1184
|
return response;
|
|
2475
1185
|
};
|
|
2476
|
-
const
|
|
2477
|
-
const parsedOutput = {
|
|
2478
|
-
...output,
|
|
2479
|
-
body: await parseErrorBody(output.body, context),
|
|
2480
|
-
};
|
|
2481
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2482
|
-
switch (errorCode) {
|
|
2483
|
-
case "OrganizationNotFoundException":
|
|
2484
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2485
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2486
|
-
case "OrganizationStateException":
|
|
2487
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2488
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2489
|
-
default:
|
|
2490
|
-
const parsedBody = parsedOutput.body;
|
|
2491
|
-
return throwDefaultError({
|
|
2492
|
-
output,
|
|
2493
|
-
parsedBody,
|
|
2494
|
-
errorCode,
|
|
2495
|
-
});
|
|
2496
|
-
}
|
|
2497
|
-
};
|
|
2498
|
-
export const de_ListAliasesCommand = async (output, context) => {
|
|
1186
|
+
export const de_ListMailboxExportJobsCommand = async (output, context) => {
|
|
2499
1187
|
if (output.statusCode >= 300) {
|
|
2500
|
-
return
|
|
1188
|
+
return de_CommandError(output, context);
|
|
2501
1189
|
}
|
|
2502
1190
|
const data = await parseBody(output.body, context);
|
|
2503
1191
|
let contents = {};
|
|
2504
|
-
contents =
|
|
1192
|
+
contents = de_ListMailboxExportJobsResponse(data, context);
|
|
2505
1193
|
const response = {
|
|
2506
1194
|
$metadata: deserializeMetadata(output),
|
|
2507
1195
|
...contents,
|
|
2508
1196
|
};
|
|
2509
1197
|
return response;
|
|
2510
1198
|
};
|
|
2511
|
-
const
|
|
2512
|
-
const parsedOutput = {
|
|
2513
|
-
...output,
|
|
2514
|
-
body: await parseErrorBody(output.body, context),
|
|
2515
|
-
};
|
|
2516
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2517
|
-
switch (errorCode) {
|
|
2518
|
-
case "EntityNotFoundException":
|
|
2519
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2520
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2521
|
-
case "EntityStateException":
|
|
2522
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
2523
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
2524
|
-
case "InvalidParameterException":
|
|
2525
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2526
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2527
|
-
case "OrganizationNotFoundException":
|
|
2528
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2529
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2530
|
-
case "OrganizationStateException":
|
|
2531
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2532
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2533
|
-
default:
|
|
2534
|
-
const parsedBody = parsedOutput.body;
|
|
2535
|
-
return throwDefaultError({
|
|
2536
|
-
output,
|
|
2537
|
-
parsedBody,
|
|
2538
|
-
errorCode,
|
|
2539
|
-
});
|
|
2540
|
-
}
|
|
2541
|
-
};
|
|
2542
|
-
export const de_ListAvailabilityConfigurationsCommand = async (output, context) => {
|
|
1199
|
+
export const de_ListMailboxPermissionsCommand = async (output, context) => {
|
|
2543
1200
|
if (output.statusCode >= 300) {
|
|
2544
|
-
return
|
|
1201
|
+
return de_CommandError(output, context);
|
|
2545
1202
|
}
|
|
2546
1203
|
const data = await parseBody(output.body, context);
|
|
2547
1204
|
let contents = {};
|
|
2548
|
-
contents =
|
|
1205
|
+
contents = _json(data);
|
|
2549
1206
|
const response = {
|
|
2550
1207
|
$metadata: deserializeMetadata(output),
|
|
2551
1208
|
...contents,
|
|
2552
1209
|
};
|
|
2553
1210
|
return response;
|
|
2554
1211
|
};
|
|
2555
|
-
const
|
|
2556
|
-
const parsedOutput = {
|
|
2557
|
-
...output,
|
|
2558
|
-
body: await parseErrorBody(output.body, context),
|
|
2559
|
-
};
|
|
2560
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2561
|
-
switch (errorCode) {
|
|
2562
|
-
case "OrganizationNotFoundException":
|
|
2563
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2564
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2565
|
-
case "OrganizationStateException":
|
|
2566
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2567
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2568
|
-
default:
|
|
2569
|
-
const parsedBody = parsedOutput.body;
|
|
2570
|
-
return throwDefaultError({
|
|
2571
|
-
output,
|
|
2572
|
-
parsedBody,
|
|
2573
|
-
errorCode,
|
|
2574
|
-
});
|
|
2575
|
-
}
|
|
2576
|
-
};
|
|
2577
|
-
export const de_ListGroupMembersCommand = async (output, context) => {
|
|
1212
|
+
export const de_ListMailDomainsCommand = async (output, context) => {
|
|
2578
1213
|
if (output.statusCode >= 300) {
|
|
2579
|
-
return
|
|
1214
|
+
return de_CommandError(output, context);
|
|
2580
1215
|
}
|
|
2581
1216
|
const data = await parseBody(output.body, context);
|
|
2582
1217
|
let contents = {};
|
|
2583
|
-
contents =
|
|
1218
|
+
contents = _json(data);
|
|
2584
1219
|
const response = {
|
|
2585
1220
|
$metadata: deserializeMetadata(output),
|
|
2586
1221
|
...contents,
|
|
2587
1222
|
};
|
|
2588
1223
|
return response;
|
|
2589
1224
|
};
|
|
2590
|
-
const
|
|
2591
|
-
const parsedOutput = {
|
|
2592
|
-
...output,
|
|
2593
|
-
body: await parseErrorBody(output.body, context),
|
|
2594
|
-
};
|
|
2595
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2596
|
-
switch (errorCode) {
|
|
2597
|
-
case "EntityNotFoundException":
|
|
2598
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2599
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2600
|
-
case "EntityStateException":
|
|
2601
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
2602
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
2603
|
-
case "InvalidParameterException":
|
|
2604
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2605
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2606
|
-
case "OrganizationNotFoundException":
|
|
2607
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2608
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2609
|
-
case "OrganizationStateException":
|
|
2610
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2611
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2612
|
-
default:
|
|
2613
|
-
const parsedBody = parsedOutput.body;
|
|
2614
|
-
return throwDefaultError({
|
|
2615
|
-
output,
|
|
2616
|
-
parsedBody,
|
|
2617
|
-
errorCode,
|
|
2618
|
-
});
|
|
2619
|
-
}
|
|
2620
|
-
};
|
|
2621
|
-
export const de_ListGroupsCommand = async (output, context) => {
|
|
1225
|
+
export const de_ListMobileDeviceAccessOverridesCommand = async (output, context) => {
|
|
2622
1226
|
if (output.statusCode >= 300) {
|
|
2623
|
-
return
|
|
1227
|
+
return de_CommandError(output, context);
|
|
2624
1228
|
}
|
|
2625
1229
|
const data = await parseBody(output.body, context);
|
|
2626
1230
|
let contents = {};
|
|
2627
|
-
contents =
|
|
1231
|
+
contents = de_ListMobileDeviceAccessOverridesResponse(data, context);
|
|
2628
1232
|
const response = {
|
|
2629
1233
|
$metadata: deserializeMetadata(output),
|
|
2630
1234
|
...contents,
|
|
2631
1235
|
};
|
|
2632
1236
|
return response;
|
|
2633
1237
|
};
|
|
2634
|
-
const
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
body: await parseErrorBody(output.body, context),
|
|
2638
|
-
};
|
|
2639
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2640
|
-
switch (errorCode) {
|
|
2641
|
-
case "EntityNotFoundException":
|
|
2642
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2643
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2644
|
-
case "InvalidParameterException":
|
|
2645
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2646
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2647
|
-
case "OrganizationNotFoundException":
|
|
2648
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2649
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2650
|
-
case "OrganizationStateException":
|
|
2651
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2652
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2653
|
-
default:
|
|
2654
|
-
const parsedBody = parsedOutput.body;
|
|
2655
|
-
return throwDefaultError({
|
|
2656
|
-
output,
|
|
2657
|
-
parsedBody,
|
|
2658
|
-
errorCode,
|
|
2659
|
-
});
|
|
1238
|
+
export const de_ListMobileDeviceAccessRulesCommand = async (output, context) => {
|
|
1239
|
+
if (output.statusCode >= 300) {
|
|
1240
|
+
return de_CommandError(output, context);
|
|
2660
1241
|
}
|
|
1242
|
+
const data = await parseBody(output.body, context);
|
|
1243
|
+
let contents = {};
|
|
1244
|
+
contents = de_ListMobileDeviceAccessRulesResponse(data, context);
|
|
1245
|
+
const response = {
|
|
1246
|
+
$metadata: deserializeMetadata(output),
|
|
1247
|
+
...contents,
|
|
1248
|
+
};
|
|
1249
|
+
return response;
|
|
2661
1250
|
};
|
|
2662
|
-
export const
|
|
1251
|
+
export const de_ListOrganizationsCommand = async (output, context) => {
|
|
2663
1252
|
if (output.statusCode >= 300) {
|
|
2664
|
-
return
|
|
1253
|
+
return de_CommandError(output, context);
|
|
2665
1254
|
}
|
|
2666
1255
|
const data = await parseBody(output.body, context);
|
|
2667
1256
|
let contents = {};
|
|
@@ -2672,116 +1261,35 @@ export const de_ListGroupsForEntityCommand = async (output, context) => {
|
|
|
2672
1261
|
};
|
|
2673
1262
|
return response;
|
|
2674
1263
|
};
|
|
2675
|
-
const
|
|
2676
|
-
const parsedOutput = {
|
|
2677
|
-
...output,
|
|
2678
|
-
body: await parseErrorBody(output.body, context),
|
|
2679
|
-
};
|
|
2680
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2681
|
-
switch (errorCode) {
|
|
2682
|
-
case "EntityNotFoundException":
|
|
2683
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2684
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2685
|
-
case "EntityStateException":
|
|
2686
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
2687
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
2688
|
-
case "InvalidParameterException":
|
|
2689
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2690
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2691
|
-
case "OrganizationNotFoundException":
|
|
2692
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2693
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2694
|
-
case "OrganizationStateException":
|
|
2695
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2696
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2697
|
-
default:
|
|
2698
|
-
const parsedBody = parsedOutput.body;
|
|
2699
|
-
return throwDefaultError({
|
|
2700
|
-
output,
|
|
2701
|
-
parsedBody,
|
|
2702
|
-
errorCode,
|
|
2703
|
-
});
|
|
2704
|
-
}
|
|
2705
|
-
};
|
|
2706
|
-
export const de_ListImpersonationRolesCommand = async (output, context) => {
|
|
1264
|
+
export const de_ListResourceDelegatesCommand = async (output, context) => {
|
|
2707
1265
|
if (output.statusCode >= 300) {
|
|
2708
|
-
return
|
|
1266
|
+
return de_CommandError(output, context);
|
|
2709
1267
|
}
|
|
2710
1268
|
const data = await parseBody(output.body, context);
|
|
2711
1269
|
let contents = {};
|
|
2712
|
-
contents =
|
|
1270
|
+
contents = _json(data);
|
|
2713
1271
|
const response = {
|
|
2714
1272
|
$metadata: deserializeMetadata(output),
|
|
2715
1273
|
...contents,
|
|
2716
1274
|
};
|
|
2717
1275
|
return response;
|
|
2718
1276
|
};
|
|
2719
|
-
const
|
|
2720
|
-
const parsedOutput = {
|
|
2721
|
-
...output,
|
|
2722
|
-
body: await parseErrorBody(output.body, context),
|
|
2723
|
-
};
|
|
2724
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2725
|
-
switch (errorCode) {
|
|
2726
|
-
case "InvalidParameterException":
|
|
2727
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2728
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2729
|
-
case "OrganizationNotFoundException":
|
|
2730
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2731
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2732
|
-
case "OrganizationStateException":
|
|
2733
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2734
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2735
|
-
default:
|
|
2736
|
-
const parsedBody = parsedOutput.body;
|
|
2737
|
-
return throwDefaultError({
|
|
2738
|
-
output,
|
|
2739
|
-
parsedBody,
|
|
2740
|
-
errorCode,
|
|
2741
|
-
});
|
|
2742
|
-
}
|
|
2743
|
-
};
|
|
2744
|
-
export const de_ListMailboxExportJobsCommand = async (output, context) => {
|
|
1277
|
+
export const de_ListResourcesCommand = async (output, context) => {
|
|
2745
1278
|
if (output.statusCode >= 300) {
|
|
2746
|
-
return
|
|
1279
|
+
return de_CommandError(output, context);
|
|
2747
1280
|
}
|
|
2748
1281
|
const data = await parseBody(output.body, context);
|
|
2749
1282
|
let contents = {};
|
|
2750
|
-
contents =
|
|
1283
|
+
contents = de_ListResourcesResponse(data, context);
|
|
2751
1284
|
const response = {
|
|
2752
1285
|
$metadata: deserializeMetadata(output),
|
|
2753
1286
|
...contents,
|
|
2754
1287
|
};
|
|
2755
1288
|
return response;
|
|
2756
1289
|
};
|
|
2757
|
-
const
|
|
2758
|
-
const parsedOutput = {
|
|
2759
|
-
...output,
|
|
2760
|
-
body: await parseErrorBody(output.body, context),
|
|
2761
|
-
};
|
|
2762
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2763
|
-
switch (errorCode) {
|
|
2764
|
-
case "InvalidParameterException":
|
|
2765
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2766
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2767
|
-
case "OrganizationNotFoundException":
|
|
2768
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2769
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2770
|
-
case "OrganizationStateException":
|
|
2771
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2772
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2773
|
-
default:
|
|
2774
|
-
const parsedBody = parsedOutput.body;
|
|
2775
|
-
return throwDefaultError({
|
|
2776
|
-
output,
|
|
2777
|
-
parsedBody,
|
|
2778
|
-
errorCode,
|
|
2779
|
-
});
|
|
2780
|
-
}
|
|
2781
|
-
};
|
|
2782
|
-
export const de_ListMailboxPermissionsCommand = async (output, context) => {
|
|
1290
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2783
1291
|
if (output.statusCode >= 300) {
|
|
2784
|
-
return
|
|
1292
|
+
return de_CommandError(output, context);
|
|
2785
1293
|
}
|
|
2786
1294
|
const data = await parseBody(output.body, context);
|
|
2787
1295
|
let contents = {};
|
|
@@ -2792,702 +1300,35 @@ export const de_ListMailboxPermissionsCommand = async (output, context) => {
|
|
|
2792
1300
|
};
|
|
2793
1301
|
return response;
|
|
2794
1302
|
};
|
|
2795
|
-
const
|
|
2796
|
-
const parsedOutput = {
|
|
2797
|
-
...output,
|
|
2798
|
-
body: await parseErrorBody(output.body, context),
|
|
2799
|
-
};
|
|
2800
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2801
|
-
switch (errorCode) {
|
|
2802
|
-
case "EntityNotFoundException":
|
|
2803
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2804
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2805
|
-
case "InvalidParameterException":
|
|
2806
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2807
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2808
|
-
case "OrganizationNotFoundException":
|
|
2809
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2810
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2811
|
-
case "OrganizationStateException":
|
|
2812
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2813
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2814
|
-
default:
|
|
2815
|
-
const parsedBody = parsedOutput.body;
|
|
2816
|
-
return throwDefaultError({
|
|
2817
|
-
output,
|
|
2818
|
-
parsedBody,
|
|
2819
|
-
errorCode,
|
|
2820
|
-
});
|
|
2821
|
-
}
|
|
2822
|
-
};
|
|
2823
|
-
export const de_ListMailDomainsCommand = async (output, context) => {
|
|
1303
|
+
export const de_ListUsersCommand = async (output, context) => {
|
|
2824
1304
|
if (output.statusCode >= 300) {
|
|
2825
|
-
return
|
|
1305
|
+
return de_CommandError(output, context);
|
|
2826
1306
|
}
|
|
2827
1307
|
const data = await parseBody(output.body, context);
|
|
2828
1308
|
let contents = {};
|
|
2829
|
-
contents =
|
|
1309
|
+
contents = de_ListUsersResponse(data, context);
|
|
2830
1310
|
const response = {
|
|
2831
1311
|
$metadata: deserializeMetadata(output),
|
|
2832
1312
|
...contents,
|
|
2833
1313
|
};
|
|
2834
1314
|
return response;
|
|
2835
1315
|
};
|
|
2836
|
-
const
|
|
2837
|
-
const parsedOutput = {
|
|
2838
|
-
...output,
|
|
2839
|
-
body: await parseErrorBody(output.body, context),
|
|
2840
|
-
};
|
|
2841
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2842
|
-
switch (errorCode) {
|
|
2843
|
-
case "InvalidParameterException":
|
|
2844
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2845
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2846
|
-
case "OrganizationNotFoundException":
|
|
2847
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2848
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2849
|
-
case "OrganizationStateException":
|
|
2850
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2851
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2852
|
-
default:
|
|
2853
|
-
const parsedBody = parsedOutput.body;
|
|
2854
|
-
return throwDefaultError({
|
|
2855
|
-
output,
|
|
2856
|
-
parsedBody,
|
|
2857
|
-
errorCode,
|
|
2858
|
-
});
|
|
2859
|
-
}
|
|
2860
|
-
};
|
|
2861
|
-
export const de_ListMobileDeviceAccessOverridesCommand = async (output, context) => {
|
|
1316
|
+
export const de_PutAccessControlRuleCommand = async (output, context) => {
|
|
2862
1317
|
if (output.statusCode >= 300) {
|
|
2863
|
-
return
|
|
1318
|
+
return de_CommandError(output, context);
|
|
2864
1319
|
}
|
|
2865
1320
|
const data = await parseBody(output.body, context);
|
|
2866
1321
|
let contents = {};
|
|
2867
|
-
contents =
|
|
1322
|
+
contents = _json(data);
|
|
2868
1323
|
const response = {
|
|
2869
1324
|
$metadata: deserializeMetadata(output),
|
|
2870
1325
|
...contents,
|
|
2871
1326
|
};
|
|
2872
1327
|
return response;
|
|
2873
1328
|
};
|
|
2874
|
-
const
|
|
2875
|
-
const parsedOutput = {
|
|
2876
|
-
...output,
|
|
2877
|
-
body: await parseErrorBody(output.body, context),
|
|
2878
|
-
};
|
|
2879
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2880
|
-
switch (errorCode) {
|
|
2881
|
-
case "EntityNotFoundException":
|
|
2882
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2883
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2884
|
-
case "InvalidParameterException":
|
|
2885
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2886
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2887
|
-
case "OrganizationNotFoundException":
|
|
2888
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2889
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2890
|
-
case "OrganizationStateException":
|
|
2891
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2892
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2893
|
-
default:
|
|
2894
|
-
const parsedBody = parsedOutput.body;
|
|
2895
|
-
return throwDefaultError({
|
|
2896
|
-
output,
|
|
2897
|
-
parsedBody,
|
|
2898
|
-
errorCode,
|
|
2899
|
-
});
|
|
2900
|
-
}
|
|
2901
|
-
};
|
|
2902
|
-
export const de_ListMobileDeviceAccessRulesCommand = async (output, context) => {
|
|
2903
|
-
if (output.statusCode >= 300) {
|
|
2904
|
-
return de_ListMobileDeviceAccessRulesCommandError(output, context);
|
|
2905
|
-
}
|
|
2906
|
-
const data = await parseBody(output.body, context);
|
|
2907
|
-
let contents = {};
|
|
2908
|
-
contents = de_ListMobileDeviceAccessRulesResponse(data, context);
|
|
2909
|
-
const response = {
|
|
2910
|
-
$metadata: deserializeMetadata(output),
|
|
2911
|
-
...contents,
|
|
2912
|
-
};
|
|
2913
|
-
return response;
|
|
2914
|
-
};
|
|
2915
|
-
const de_ListMobileDeviceAccessRulesCommandError = async (output, context) => {
|
|
2916
|
-
const parsedOutput = {
|
|
2917
|
-
...output,
|
|
2918
|
-
body: await parseErrorBody(output.body, context),
|
|
2919
|
-
};
|
|
2920
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2921
|
-
switch (errorCode) {
|
|
2922
|
-
case "InvalidParameterException":
|
|
2923
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2924
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2925
|
-
case "OrganizationNotFoundException":
|
|
2926
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2927
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2928
|
-
case "OrganizationStateException":
|
|
2929
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2930
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2931
|
-
default:
|
|
2932
|
-
const parsedBody = parsedOutput.body;
|
|
2933
|
-
return throwDefaultError({
|
|
2934
|
-
output,
|
|
2935
|
-
parsedBody,
|
|
2936
|
-
errorCode,
|
|
2937
|
-
});
|
|
2938
|
-
}
|
|
2939
|
-
};
|
|
2940
|
-
export const de_ListOrganizationsCommand = async (output, context) => {
|
|
2941
|
-
if (output.statusCode >= 300) {
|
|
2942
|
-
return de_ListOrganizationsCommandError(output, context);
|
|
2943
|
-
}
|
|
2944
|
-
const data = await parseBody(output.body, context);
|
|
2945
|
-
let contents = {};
|
|
2946
|
-
contents = _json(data);
|
|
2947
|
-
const response = {
|
|
2948
|
-
$metadata: deserializeMetadata(output),
|
|
2949
|
-
...contents,
|
|
2950
|
-
};
|
|
2951
|
-
return response;
|
|
2952
|
-
};
|
|
2953
|
-
const de_ListOrganizationsCommandError = async (output, context) => {
|
|
2954
|
-
const parsedOutput = {
|
|
2955
|
-
...output,
|
|
2956
|
-
body: await parseErrorBody(output.body, context),
|
|
2957
|
-
};
|
|
2958
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2959
|
-
switch (errorCode) {
|
|
2960
|
-
case "InvalidParameterException":
|
|
2961
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2962
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2963
|
-
default:
|
|
2964
|
-
const parsedBody = parsedOutput.body;
|
|
2965
|
-
return throwDefaultError({
|
|
2966
|
-
output,
|
|
2967
|
-
parsedBody,
|
|
2968
|
-
errorCode,
|
|
2969
|
-
});
|
|
2970
|
-
}
|
|
2971
|
-
};
|
|
2972
|
-
export const de_ListResourceDelegatesCommand = async (output, context) => {
|
|
2973
|
-
if (output.statusCode >= 300) {
|
|
2974
|
-
return de_ListResourceDelegatesCommandError(output, context);
|
|
2975
|
-
}
|
|
2976
|
-
const data = await parseBody(output.body, context);
|
|
2977
|
-
let contents = {};
|
|
2978
|
-
contents = _json(data);
|
|
2979
|
-
const response = {
|
|
2980
|
-
$metadata: deserializeMetadata(output),
|
|
2981
|
-
...contents,
|
|
2982
|
-
};
|
|
2983
|
-
return response;
|
|
2984
|
-
};
|
|
2985
|
-
const de_ListResourceDelegatesCommandError = async (output, context) => {
|
|
2986
|
-
const parsedOutput = {
|
|
2987
|
-
...output,
|
|
2988
|
-
body: await parseErrorBody(output.body, context),
|
|
2989
|
-
};
|
|
2990
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2991
|
-
switch (errorCode) {
|
|
2992
|
-
case "EntityNotFoundException":
|
|
2993
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2994
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2995
|
-
case "EntityStateException":
|
|
2996
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
2997
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
2998
|
-
case "InvalidParameterException":
|
|
2999
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3000
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3001
|
-
case "OrganizationNotFoundException":
|
|
3002
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3003
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3004
|
-
case "OrganizationStateException":
|
|
3005
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3006
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3007
|
-
case "UnsupportedOperationException":
|
|
3008
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
3009
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3010
|
-
default:
|
|
3011
|
-
const parsedBody = parsedOutput.body;
|
|
3012
|
-
return throwDefaultError({
|
|
3013
|
-
output,
|
|
3014
|
-
parsedBody,
|
|
3015
|
-
errorCode,
|
|
3016
|
-
});
|
|
3017
|
-
}
|
|
3018
|
-
};
|
|
3019
|
-
export const de_ListResourcesCommand = async (output, context) => {
|
|
3020
|
-
if (output.statusCode >= 300) {
|
|
3021
|
-
return de_ListResourcesCommandError(output, context);
|
|
3022
|
-
}
|
|
3023
|
-
const data = await parseBody(output.body, context);
|
|
3024
|
-
let contents = {};
|
|
3025
|
-
contents = de_ListResourcesResponse(data, context);
|
|
3026
|
-
const response = {
|
|
3027
|
-
$metadata: deserializeMetadata(output),
|
|
3028
|
-
...contents,
|
|
3029
|
-
};
|
|
3030
|
-
return response;
|
|
3031
|
-
};
|
|
3032
|
-
const de_ListResourcesCommandError = async (output, context) => {
|
|
3033
|
-
const parsedOutput = {
|
|
3034
|
-
...output,
|
|
3035
|
-
body: await parseErrorBody(output.body, context),
|
|
3036
|
-
};
|
|
3037
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3038
|
-
switch (errorCode) {
|
|
3039
|
-
case "InvalidParameterException":
|
|
3040
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3041
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3042
|
-
case "OrganizationNotFoundException":
|
|
3043
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3044
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3045
|
-
case "OrganizationStateException":
|
|
3046
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3047
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3048
|
-
case "UnsupportedOperationException":
|
|
3049
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
3050
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3051
|
-
default:
|
|
3052
|
-
const parsedBody = parsedOutput.body;
|
|
3053
|
-
return throwDefaultError({
|
|
3054
|
-
output,
|
|
3055
|
-
parsedBody,
|
|
3056
|
-
errorCode,
|
|
3057
|
-
});
|
|
3058
|
-
}
|
|
3059
|
-
};
|
|
3060
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
3061
|
-
if (output.statusCode >= 300) {
|
|
3062
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
3063
|
-
}
|
|
3064
|
-
const data = await parseBody(output.body, context);
|
|
3065
|
-
let contents = {};
|
|
3066
|
-
contents = _json(data);
|
|
3067
|
-
const response = {
|
|
3068
|
-
$metadata: deserializeMetadata(output),
|
|
3069
|
-
...contents,
|
|
3070
|
-
};
|
|
3071
|
-
return response;
|
|
3072
|
-
};
|
|
3073
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
3074
|
-
const parsedOutput = {
|
|
3075
|
-
...output,
|
|
3076
|
-
body: await parseErrorBody(output.body, context),
|
|
3077
|
-
};
|
|
3078
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3079
|
-
switch (errorCode) {
|
|
3080
|
-
case "ResourceNotFoundException":
|
|
3081
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
3082
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3083
|
-
default:
|
|
3084
|
-
const parsedBody = parsedOutput.body;
|
|
3085
|
-
return throwDefaultError({
|
|
3086
|
-
output,
|
|
3087
|
-
parsedBody,
|
|
3088
|
-
errorCode,
|
|
3089
|
-
});
|
|
3090
|
-
}
|
|
3091
|
-
};
|
|
3092
|
-
export const de_ListUsersCommand = async (output, context) => {
|
|
3093
|
-
if (output.statusCode >= 300) {
|
|
3094
|
-
return de_ListUsersCommandError(output, context);
|
|
3095
|
-
}
|
|
3096
|
-
const data = await parseBody(output.body, context);
|
|
3097
|
-
let contents = {};
|
|
3098
|
-
contents = de_ListUsersResponse(data, context);
|
|
3099
|
-
const response = {
|
|
3100
|
-
$metadata: deserializeMetadata(output),
|
|
3101
|
-
...contents,
|
|
3102
|
-
};
|
|
3103
|
-
return response;
|
|
3104
|
-
};
|
|
3105
|
-
const de_ListUsersCommandError = async (output, context) => {
|
|
3106
|
-
const parsedOutput = {
|
|
3107
|
-
...output,
|
|
3108
|
-
body: await parseErrorBody(output.body, context),
|
|
3109
|
-
};
|
|
3110
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3111
|
-
switch (errorCode) {
|
|
3112
|
-
case "InvalidParameterException":
|
|
3113
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3114
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3115
|
-
case "OrganizationNotFoundException":
|
|
3116
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3117
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3118
|
-
case "OrganizationStateException":
|
|
3119
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3120
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3121
|
-
default:
|
|
3122
|
-
const parsedBody = parsedOutput.body;
|
|
3123
|
-
return throwDefaultError({
|
|
3124
|
-
output,
|
|
3125
|
-
parsedBody,
|
|
3126
|
-
errorCode,
|
|
3127
|
-
});
|
|
3128
|
-
}
|
|
3129
|
-
};
|
|
3130
|
-
export const de_PutAccessControlRuleCommand = async (output, context) => {
|
|
3131
|
-
if (output.statusCode >= 300) {
|
|
3132
|
-
return de_PutAccessControlRuleCommandError(output, context);
|
|
3133
|
-
}
|
|
3134
|
-
const data = await parseBody(output.body, context);
|
|
3135
|
-
let contents = {};
|
|
3136
|
-
contents = _json(data);
|
|
3137
|
-
const response = {
|
|
3138
|
-
$metadata: deserializeMetadata(output),
|
|
3139
|
-
...contents,
|
|
3140
|
-
};
|
|
3141
|
-
return response;
|
|
3142
|
-
};
|
|
3143
|
-
const de_PutAccessControlRuleCommandError = async (output, context) => {
|
|
3144
|
-
const parsedOutput = {
|
|
3145
|
-
...output,
|
|
3146
|
-
body: await parseErrorBody(output.body, context),
|
|
3147
|
-
};
|
|
3148
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3149
|
-
switch (errorCode) {
|
|
3150
|
-
case "EntityNotFoundException":
|
|
3151
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
3152
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
3153
|
-
case "InvalidParameterException":
|
|
3154
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3155
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3156
|
-
case "LimitExceededException":
|
|
3157
|
-
case "com.amazonaws.workmail#LimitExceededException":
|
|
3158
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3159
|
-
case "OrganizationNotFoundException":
|
|
3160
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3161
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3162
|
-
case "OrganizationStateException":
|
|
3163
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3164
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3165
|
-
case "ResourceNotFoundException":
|
|
3166
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
3167
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3168
|
-
default:
|
|
3169
|
-
const parsedBody = parsedOutput.body;
|
|
3170
|
-
return throwDefaultError({
|
|
3171
|
-
output,
|
|
3172
|
-
parsedBody,
|
|
3173
|
-
errorCode,
|
|
3174
|
-
});
|
|
3175
|
-
}
|
|
3176
|
-
};
|
|
3177
|
-
export const de_PutEmailMonitoringConfigurationCommand = async (output, context) => {
|
|
3178
|
-
if (output.statusCode >= 300) {
|
|
3179
|
-
return de_PutEmailMonitoringConfigurationCommandError(output, context);
|
|
3180
|
-
}
|
|
3181
|
-
const data = await parseBody(output.body, context);
|
|
3182
|
-
let contents = {};
|
|
3183
|
-
contents = _json(data);
|
|
3184
|
-
const response = {
|
|
3185
|
-
$metadata: deserializeMetadata(output),
|
|
3186
|
-
...contents,
|
|
3187
|
-
};
|
|
3188
|
-
return response;
|
|
3189
|
-
};
|
|
3190
|
-
const de_PutEmailMonitoringConfigurationCommandError = async (output, context) => {
|
|
3191
|
-
const parsedOutput = {
|
|
3192
|
-
...output,
|
|
3193
|
-
body: await parseErrorBody(output.body, context),
|
|
3194
|
-
};
|
|
3195
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3196
|
-
switch (errorCode) {
|
|
3197
|
-
case "InvalidParameterException":
|
|
3198
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3199
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3200
|
-
case "OrganizationNotFoundException":
|
|
3201
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3202
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3203
|
-
case "OrganizationStateException":
|
|
3204
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3205
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3206
|
-
case "ResourceNotFoundException":
|
|
3207
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
3208
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3209
|
-
default:
|
|
3210
|
-
const parsedBody = parsedOutput.body;
|
|
3211
|
-
return throwDefaultError({
|
|
3212
|
-
output,
|
|
3213
|
-
parsedBody,
|
|
3214
|
-
errorCode,
|
|
3215
|
-
});
|
|
3216
|
-
}
|
|
3217
|
-
};
|
|
3218
|
-
export const de_PutInboundDmarcSettingsCommand = async (output, context) => {
|
|
3219
|
-
if (output.statusCode >= 300) {
|
|
3220
|
-
return de_PutInboundDmarcSettingsCommandError(output, context);
|
|
3221
|
-
}
|
|
3222
|
-
const data = await parseBody(output.body, context);
|
|
3223
|
-
let contents = {};
|
|
3224
|
-
contents = _json(data);
|
|
3225
|
-
const response = {
|
|
3226
|
-
$metadata: deserializeMetadata(output),
|
|
3227
|
-
...contents,
|
|
3228
|
-
};
|
|
3229
|
-
return response;
|
|
3230
|
-
};
|
|
3231
|
-
const de_PutInboundDmarcSettingsCommandError = async (output, context) => {
|
|
3232
|
-
const parsedOutput = {
|
|
3233
|
-
...output,
|
|
3234
|
-
body: await parseErrorBody(output.body, context),
|
|
3235
|
-
};
|
|
3236
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3237
|
-
switch (errorCode) {
|
|
3238
|
-
case "OrganizationNotFoundException":
|
|
3239
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3240
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3241
|
-
case "OrganizationStateException":
|
|
3242
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3243
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3244
|
-
default:
|
|
3245
|
-
const parsedBody = parsedOutput.body;
|
|
3246
|
-
return throwDefaultError({
|
|
3247
|
-
output,
|
|
3248
|
-
parsedBody,
|
|
3249
|
-
errorCode,
|
|
3250
|
-
});
|
|
3251
|
-
}
|
|
3252
|
-
};
|
|
3253
|
-
export const de_PutMailboxPermissionsCommand = async (output, context) => {
|
|
3254
|
-
if (output.statusCode >= 300) {
|
|
3255
|
-
return de_PutMailboxPermissionsCommandError(output, context);
|
|
3256
|
-
}
|
|
3257
|
-
const data = await parseBody(output.body, context);
|
|
3258
|
-
let contents = {};
|
|
3259
|
-
contents = _json(data);
|
|
3260
|
-
const response = {
|
|
3261
|
-
$metadata: deserializeMetadata(output),
|
|
3262
|
-
...contents,
|
|
3263
|
-
};
|
|
3264
|
-
return response;
|
|
3265
|
-
};
|
|
3266
|
-
const de_PutMailboxPermissionsCommandError = async (output, context) => {
|
|
3267
|
-
const parsedOutput = {
|
|
3268
|
-
...output,
|
|
3269
|
-
body: await parseErrorBody(output.body, context),
|
|
3270
|
-
};
|
|
3271
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3272
|
-
switch (errorCode) {
|
|
3273
|
-
case "EntityNotFoundException":
|
|
3274
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
3275
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
3276
|
-
case "EntityStateException":
|
|
3277
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
3278
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
3279
|
-
case "InvalidParameterException":
|
|
3280
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3281
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3282
|
-
case "OrganizationNotFoundException":
|
|
3283
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3284
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3285
|
-
case "OrganizationStateException":
|
|
3286
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3287
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3288
|
-
default:
|
|
3289
|
-
const parsedBody = parsedOutput.body;
|
|
3290
|
-
return throwDefaultError({
|
|
3291
|
-
output,
|
|
3292
|
-
parsedBody,
|
|
3293
|
-
errorCode,
|
|
3294
|
-
});
|
|
3295
|
-
}
|
|
3296
|
-
};
|
|
3297
|
-
export const de_PutMobileDeviceAccessOverrideCommand = async (output, context) => {
|
|
3298
|
-
if (output.statusCode >= 300) {
|
|
3299
|
-
return de_PutMobileDeviceAccessOverrideCommandError(output, context);
|
|
3300
|
-
}
|
|
3301
|
-
const data = await parseBody(output.body, context);
|
|
3302
|
-
let contents = {};
|
|
3303
|
-
contents = _json(data);
|
|
3304
|
-
const response = {
|
|
3305
|
-
$metadata: deserializeMetadata(output),
|
|
3306
|
-
...contents,
|
|
3307
|
-
};
|
|
3308
|
-
return response;
|
|
3309
|
-
};
|
|
3310
|
-
const de_PutMobileDeviceAccessOverrideCommandError = async (output, context) => {
|
|
3311
|
-
const parsedOutput = {
|
|
3312
|
-
...output,
|
|
3313
|
-
body: await parseErrorBody(output.body, context),
|
|
3314
|
-
};
|
|
3315
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3316
|
-
switch (errorCode) {
|
|
3317
|
-
case "EntityNotFoundException":
|
|
3318
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
3319
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
3320
|
-
case "EntityStateException":
|
|
3321
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
3322
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
3323
|
-
case "InvalidParameterException":
|
|
3324
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3325
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3326
|
-
case "OrganizationNotFoundException":
|
|
3327
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3328
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3329
|
-
case "OrganizationStateException":
|
|
3330
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3331
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3332
|
-
default:
|
|
3333
|
-
const parsedBody = parsedOutput.body;
|
|
3334
|
-
return throwDefaultError({
|
|
3335
|
-
output,
|
|
3336
|
-
parsedBody,
|
|
3337
|
-
errorCode,
|
|
3338
|
-
});
|
|
3339
|
-
}
|
|
3340
|
-
};
|
|
3341
|
-
export const de_PutRetentionPolicyCommand = async (output, context) => {
|
|
3342
|
-
if (output.statusCode >= 300) {
|
|
3343
|
-
return de_PutRetentionPolicyCommandError(output, context);
|
|
3344
|
-
}
|
|
3345
|
-
const data = await parseBody(output.body, context);
|
|
3346
|
-
let contents = {};
|
|
3347
|
-
contents = _json(data);
|
|
3348
|
-
const response = {
|
|
3349
|
-
$metadata: deserializeMetadata(output),
|
|
3350
|
-
...contents,
|
|
3351
|
-
};
|
|
3352
|
-
return response;
|
|
3353
|
-
};
|
|
3354
|
-
const de_PutRetentionPolicyCommandError = async (output, context) => {
|
|
3355
|
-
const parsedOutput = {
|
|
3356
|
-
...output,
|
|
3357
|
-
body: await parseErrorBody(output.body, context),
|
|
3358
|
-
};
|
|
3359
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3360
|
-
switch (errorCode) {
|
|
3361
|
-
case "InvalidParameterException":
|
|
3362
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3363
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3364
|
-
case "LimitExceededException":
|
|
3365
|
-
case "com.amazonaws.workmail#LimitExceededException":
|
|
3366
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3367
|
-
case "OrganizationNotFoundException":
|
|
3368
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3369
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3370
|
-
case "OrganizationStateException":
|
|
3371
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3372
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3373
|
-
default:
|
|
3374
|
-
const parsedBody = parsedOutput.body;
|
|
3375
|
-
return throwDefaultError({
|
|
3376
|
-
output,
|
|
3377
|
-
parsedBody,
|
|
3378
|
-
errorCode,
|
|
3379
|
-
});
|
|
3380
|
-
}
|
|
3381
|
-
};
|
|
3382
|
-
export const de_RegisterMailDomainCommand = async (output, context) => {
|
|
3383
|
-
if (output.statusCode >= 300) {
|
|
3384
|
-
return de_RegisterMailDomainCommandError(output, context);
|
|
3385
|
-
}
|
|
3386
|
-
const data = await parseBody(output.body, context);
|
|
3387
|
-
let contents = {};
|
|
3388
|
-
contents = _json(data);
|
|
3389
|
-
const response = {
|
|
3390
|
-
$metadata: deserializeMetadata(output),
|
|
3391
|
-
...contents,
|
|
3392
|
-
};
|
|
3393
|
-
return response;
|
|
3394
|
-
};
|
|
3395
|
-
const de_RegisterMailDomainCommandError = async (output, context) => {
|
|
3396
|
-
const parsedOutput = {
|
|
3397
|
-
...output,
|
|
3398
|
-
body: await parseErrorBody(output.body, context),
|
|
3399
|
-
};
|
|
3400
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3401
|
-
switch (errorCode) {
|
|
3402
|
-
case "InvalidParameterException":
|
|
3403
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3404
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3405
|
-
case "LimitExceededException":
|
|
3406
|
-
case "com.amazonaws.workmail#LimitExceededException":
|
|
3407
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3408
|
-
case "MailDomainInUseException":
|
|
3409
|
-
case "com.amazonaws.workmail#MailDomainInUseException":
|
|
3410
|
-
throw await de_MailDomainInUseExceptionRes(parsedOutput, context);
|
|
3411
|
-
case "OrganizationNotFoundException":
|
|
3412
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3413
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3414
|
-
case "OrganizationStateException":
|
|
3415
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3416
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3417
|
-
default:
|
|
3418
|
-
const parsedBody = parsedOutput.body;
|
|
3419
|
-
return throwDefaultError({
|
|
3420
|
-
output,
|
|
3421
|
-
parsedBody,
|
|
3422
|
-
errorCode,
|
|
3423
|
-
});
|
|
3424
|
-
}
|
|
3425
|
-
};
|
|
3426
|
-
export const de_RegisterToWorkMailCommand = async (output, context) => {
|
|
3427
|
-
if (output.statusCode >= 300) {
|
|
3428
|
-
return de_RegisterToWorkMailCommandError(output, context);
|
|
3429
|
-
}
|
|
3430
|
-
const data = await parseBody(output.body, context);
|
|
3431
|
-
let contents = {};
|
|
3432
|
-
contents = _json(data);
|
|
3433
|
-
const response = {
|
|
3434
|
-
$metadata: deserializeMetadata(output),
|
|
3435
|
-
...contents,
|
|
3436
|
-
};
|
|
3437
|
-
return response;
|
|
3438
|
-
};
|
|
3439
|
-
const de_RegisterToWorkMailCommandError = async (output, context) => {
|
|
3440
|
-
const parsedOutput = {
|
|
3441
|
-
...output,
|
|
3442
|
-
body: await parseErrorBody(output.body, context),
|
|
3443
|
-
};
|
|
3444
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3445
|
-
switch (errorCode) {
|
|
3446
|
-
case "DirectoryServiceAuthenticationFailedException":
|
|
3447
|
-
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
3448
|
-
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
3449
|
-
case "DirectoryUnavailableException":
|
|
3450
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
3451
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
3452
|
-
case "EmailAddressInUseException":
|
|
3453
|
-
case "com.amazonaws.workmail#EmailAddressInUseException":
|
|
3454
|
-
throw await de_EmailAddressInUseExceptionRes(parsedOutput, context);
|
|
3455
|
-
case "EntityAlreadyRegisteredException":
|
|
3456
|
-
case "com.amazonaws.workmail#EntityAlreadyRegisteredException":
|
|
3457
|
-
throw await de_EntityAlreadyRegisteredExceptionRes(parsedOutput, context);
|
|
3458
|
-
case "EntityNotFoundException":
|
|
3459
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
3460
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
3461
|
-
case "EntityStateException":
|
|
3462
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
3463
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
3464
|
-
case "InvalidParameterException":
|
|
3465
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3466
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3467
|
-
case "MailDomainNotFoundException":
|
|
3468
|
-
case "com.amazonaws.workmail#MailDomainNotFoundException":
|
|
3469
|
-
throw await de_MailDomainNotFoundExceptionRes(parsedOutput, context);
|
|
3470
|
-
case "MailDomainStateException":
|
|
3471
|
-
case "com.amazonaws.workmail#MailDomainStateException":
|
|
3472
|
-
throw await de_MailDomainStateExceptionRes(parsedOutput, context);
|
|
3473
|
-
case "OrganizationNotFoundException":
|
|
3474
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3475
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3476
|
-
case "OrganizationStateException":
|
|
3477
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3478
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3479
|
-
default:
|
|
3480
|
-
const parsedBody = parsedOutput.body;
|
|
3481
|
-
return throwDefaultError({
|
|
3482
|
-
output,
|
|
3483
|
-
parsedBody,
|
|
3484
|
-
errorCode,
|
|
3485
|
-
});
|
|
3486
|
-
}
|
|
3487
|
-
};
|
|
3488
|
-
export const de_ResetPasswordCommand = async (output, context) => {
|
|
1329
|
+
export const de_PutEmailMonitoringConfigurationCommand = async (output, context) => {
|
|
3489
1330
|
if (output.statusCode >= 300) {
|
|
3490
|
-
return
|
|
1331
|
+
return de_CommandError(output, context);
|
|
3491
1332
|
}
|
|
3492
1333
|
const data = await parseBody(output.body, context);
|
|
3493
1334
|
let contents = {};
|
|
@@ -3495,55 +1336,12 @@ export const de_ResetPasswordCommand = async (output, context) => {
|
|
|
3495
1336
|
const response = {
|
|
3496
1337
|
$metadata: deserializeMetadata(output),
|
|
3497
1338
|
...contents,
|
|
3498
|
-
};
|
|
3499
|
-
return response;
|
|
3500
|
-
};
|
|
3501
|
-
const de_ResetPasswordCommandError = async (output, context) => {
|
|
3502
|
-
const parsedOutput = {
|
|
3503
|
-
...output,
|
|
3504
|
-
body: await parseErrorBody(output.body, context),
|
|
3505
|
-
};
|
|
3506
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3507
|
-
switch (errorCode) {
|
|
3508
|
-
case "DirectoryServiceAuthenticationFailedException":
|
|
3509
|
-
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
3510
|
-
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
3511
|
-
case "DirectoryUnavailableException":
|
|
3512
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
3513
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
3514
|
-
case "EntityNotFoundException":
|
|
3515
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
3516
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
3517
|
-
case "EntityStateException":
|
|
3518
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
3519
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
3520
|
-
case "InvalidParameterException":
|
|
3521
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3522
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3523
|
-
case "InvalidPasswordException":
|
|
3524
|
-
case "com.amazonaws.workmail#InvalidPasswordException":
|
|
3525
|
-
throw await de_InvalidPasswordExceptionRes(parsedOutput, context);
|
|
3526
|
-
case "OrganizationNotFoundException":
|
|
3527
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3528
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3529
|
-
case "OrganizationStateException":
|
|
3530
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3531
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3532
|
-
case "UnsupportedOperationException":
|
|
3533
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
3534
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3535
|
-
default:
|
|
3536
|
-
const parsedBody = parsedOutput.body;
|
|
3537
|
-
return throwDefaultError({
|
|
3538
|
-
output,
|
|
3539
|
-
parsedBody,
|
|
3540
|
-
errorCode,
|
|
3541
|
-
});
|
|
3542
|
-
}
|
|
1339
|
+
};
|
|
1340
|
+
return response;
|
|
3543
1341
|
};
|
|
3544
|
-
export const
|
|
1342
|
+
export const de_PutInboundDmarcSettingsCommand = async (output, context) => {
|
|
3545
1343
|
if (output.statusCode >= 300) {
|
|
3546
|
-
return
|
|
1344
|
+
return de_CommandError(output, context);
|
|
3547
1345
|
}
|
|
3548
1346
|
const data = await parseBody(output.body, context);
|
|
3549
1347
|
let contents = {};
|
|
@@ -3554,40 +1352,9 @@ export const de_StartMailboxExportJobCommand = async (output, context) => {
|
|
|
3554
1352
|
};
|
|
3555
1353
|
return response;
|
|
3556
1354
|
};
|
|
3557
|
-
const
|
|
3558
|
-
const parsedOutput = {
|
|
3559
|
-
...output,
|
|
3560
|
-
body: await parseErrorBody(output.body, context),
|
|
3561
|
-
};
|
|
3562
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3563
|
-
switch (errorCode) {
|
|
3564
|
-
case "EntityNotFoundException":
|
|
3565
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
3566
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
3567
|
-
case "InvalidParameterException":
|
|
3568
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3569
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3570
|
-
case "LimitExceededException":
|
|
3571
|
-
case "com.amazonaws.workmail#LimitExceededException":
|
|
3572
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3573
|
-
case "OrganizationNotFoundException":
|
|
3574
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3575
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3576
|
-
case "OrganizationStateException":
|
|
3577
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3578
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3579
|
-
default:
|
|
3580
|
-
const parsedBody = parsedOutput.body;
|
|
3581
|
-
return throwDefaultError({
|
|
3582
|
-
output,
|
|
3583
|
-
parsedBody,
|
|
3584
|
-
errorCode,
|
|
3585
|
-
});
|
|
3586
|
-
}
|
|
3587
|
-
};
|
|
3588
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
1355
|
+
export const de_PutMailboxPermissionsCommand = async (output, context) => {
|
|
3589
1356
|
if (output.statusCode >= 300) {
|
|
3590
|
-
return
|
|
1357
|
+
return de_CommandError(output, context);
|
|
3591
1358
|
}
|
|
3592
1359
|
const data = await parseBody(output.body, context);
|
|
3593
1360
|
let contents = {};
|
|
@@ -3598,37 +1365,22 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
3598
1365
|
};
|
|
3599
1366
|
return response;
|
|
3600
1367
|
};
|
|
3601
|
-
const
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
body: await parseErrorBody(output.body, context),
|
|
3605
|
-
};
|
|
3606
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3607
|
-
switch (errorCode) {
|
|
3608
|
-
case "InvalidParameterException":
|
|
3609
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3610
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3611
|
-
case "OrganizationStateException":
|
|
3612
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3613
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3614
|
-
case "ResourceNotFoundException":
|
|
3615
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
3616
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3617
|
-
case "TooManyTagsException":
|
|
3618
|
-
case "com.amazonaws.workmail#TooManyTagsException":
|
|
3619
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
3620
|
-
default:
|
|
3621
|
-
const parsedBody = parsedOutput.body;
|
|
3622
|
-
return throwDefaultError({
|
|
3623
|
-
output,
|
|
3624
|
-
parsedBody,
|
|
3625
|
-
errorCode,
|
|
3626
|
-
});
|
|
1368
|
+
export const de_PutMobileDeviceAccessOverrideCommand = async (output, context) => {
|
|
1369
|
+
if (output.statusCode >= 300) {
|
|
1370
|
+
return de_CommandError(output, context);
|
|
3627
1371
|
}
|
|
1372
|
+
const data = await parseBody(output.body, context);
|
|
1373
|
+
let contents = {};
|
|
1374
|
+
contents = _json(data);
|
|
1375
|
+
const response = {
|
|
1376
|
+
$metadata: deserializeMetadata(output),
|
|
1377
|
+
...contents,
|
|
1378
|
+
};
|
|
1379
|
+
return response;
|
|
3628
1380
|
};
|
|
3629
|
-
export const
|
|
1381
|
+
export const de_PutRetentionPolicyCommand = async (output, context) => {
|
|
3630
1382
|
if (output.statusCode >= 300) {
|
|
3631
|
-
return
|
|
1383
|
+
return de_CommandError(output, context);
|
|
3632
1384
|
}
|
|
3633
1385
|
const data = await parseBody(output.body, context);
|
|
3634
1386
|
let contents = {};
|
|
@@ -3639,37 +1391,22 @@ export const de_TestAvailabilityConfigurationCommand = async (output, context) =
|
|
|
3639
1391
|
};
|
|
3640
1392
|
return response;
|
|
3641
1393
|
};
|
|
3642
|
-
const
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
body: await parseErrorBody(output.body, context),
|
|
3646
|
-
};
|
|
3647
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3648
|
-
switch (errorCode) {
|
|
3649
|
-
case "InvalidParameterException":
|
|
3650
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3651
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3652
|
-
case "OrganizationNotFoundException":
|
|
3653
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3654
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3655
|
-
case "OrganizationStateException":
|
|
3656
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3657
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3658
|
-
case "ResourceNotFoundException":
|
|
3659
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
3660
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3661
|
-
default:
|
|
3662
|
-
const parsedBody = parsedOutput.body;
|
|
3663
|
-
return throwDefaultError({
|
|
3664
|
-
output,
|
|
3665
|
-
parsedBody,
|
|
3666
|
-
errorCode,
|
|
3667
|
-
});
|
|
1394
|
+
export const de_RegisterMailDomainCommand = async (output, context) => {
|
|
1395
|
+
if (output.statusCode >= 300) {
|
|
1396
|
+
return de_CommandError(output, context);
|
|
3668
1397
|
}
|
|
1398
|
+
const data = await parseBody(output.body, context);
|
|
1399
|
+
let contents = {};
|
|
1400
|
+
contents = _json(data);
|
|
1401
|
+
const response = {
|
|
1402
|
+
$metadata: deserializeMetadata(output),
|
|
1403
|
+
...contents,
|
|
1404
|
+
};
|
|
1405
|
+
return response;
|
|
3669
1406
|
};
|
|
3670
|
-
export const
|
|
1407
|
+
export const de_RegisterToWorkMailCommand = async (output, context) => {
|
|
3671
1408
|
if (output.statusCode >= 300) {
|
|
3672
|
-
return
|
|
1409
|
+
return de_CommandError(output, context);
|
|
3673
1410
|
}
|
|
3674
1411
|
const data = await parseBody(output.body, context);
|
|
3675
1412
|
let contents = {};
|
|
@@ -3680,28 +1417,22 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
3680
1417
|
};
|
|
3681
1418
|
return response;
|
|
3682
1419
|
};
|
|
3683
|
-
const
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
body: await parseErrorBody(output.body, context),
|
|
3687
|
-
};
|
|
3688
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3689
|
-
switch (errorCode) {
|
|
3690
|
-
case "ResourceNotFoundException":
|
|
3691
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
3692
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3693
|
-
default:
|
|
3694
|
-
const parsedBody = parsedOutput.body;
|
|
3695
|
-
return throwDefaultError({
|
|
3696
|
-
output,
|
|
3697
|
-
parsedBody,
|
|
3698
|
-
errorCode,
|
|
3699
|
-
});
|
|
1420
|
+
export const de_ResetPasswordCommand = async (output, context) => {
|
|
1421
|
+
if (output.statusCode >= 300) {
|
|
1422
|
+
return de_CommandError(output, context);
|
|
3700
1423
|
}
|
|
1424
|
+
const data = await parseBody(output.body, context);
|
|
1425
|
+
let contents = {};
|
|
1426
|
+
contents = _json(data);
|
|
1427
|
+
const response = {
|
|
1428
|
+
$metadata: deserializeMetadata(output),
|
|
1429
|
+
...contents,
|
|
1430
|
+
};
|
|
1431
|
+
return response;
|
|
3701
1432
|
};
|
|
3702
|
-
export const
|
|
1433
|
+
export const de_StartMailboxExportJobCommand = async (output, context) => {
|
|
3703
1434
|
if (output.statusCode >= 300) {
|
|
3704
|
-
return
|
|
1435
|
+
return de_CommandError(output, context);
|
|
3705
1436
|
}
|
|
3706
1437
|
const data = await parseBody(output.body, context);
|
|
3707
1438
|
let contents = {};
|
|
@@ -3712,37 +1443,22 @@ export const de_UpdateAvailabilityConfigurationCommand = async (output, context)
|
|
|
3712
1443
|
};
|
|
3713
1444
|
return response;
|
|
3714
1445
|
};
|
|
3715
|
-
const
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
body: await parseErrorBody(output.body, context),
|
|
3719
|
-
};
|
|
3720
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3721
|
-
switch (errorCode) {
|
|
3722
|
-
case "InvalidParameterException":
|
|
3723
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3724
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3725
|
-
case "OrganizationNotFoundException":
|
|
3726
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3727
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3728
|
-
case "OrganizationStateException":
|
|
3729
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3730
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3731
|
-
case "ResourceNotFoundException":
|
|
3732
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
3733
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3734
|
-
default:
|
|
3735
|
-
const parsedBody = parsedOutput.body;
|
|
3736
|
-
return throwDefaultError({
|
|
3737
|
-
output,
|
|
3738
|
-
parsedBody,
|
|
3739
|
-
errorCode,
|
|
3740
|
-
});
|
|
1446
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
1447
|
+
if (output.statusCode >= 300) {
|
|
1448
|
+
return de_CommandError(output, context);
|
|
3741
1449
|
}
|
|
1450
|
+
const data = await parseBody(output.body, context);
|
|
1451
|
+
let contents = {};
|
|
1452
|
+
contents = _json(data);
|
|
1453
|
+
const response = {
|
|
1454
|
+
$metadata: deserializeMetadata(output),
|
|
1455
|
+
...contents,
|
|
1456
|
+
};
|
|
1457
|
+
return response;
|
|
3742
1458
|
};
|
|
3743
|
-
export const
|
|
1459
|
+
export const de_TestAvailabilityConfigurationCommand = async (output, context) => {
|
|
3744
1460
|
if (output.statusCode >= 300) {
|
|
3745
|
-
return
|
|
1461
|
+
return de_CommandError(output, context);
|
|
3746
1462
|
}
|
|
3747
1463
|
const data = await parseBody(output.body, context);
|
|
3748
1464
|
let contents = {};
|
|
@@ -3753,40 +1469,22 @@ export const de_UpdateDefaultMailDomainCommand = async (output, context) => {
|
|
|
3753
1469
|
};
|
|
3754
1470
|
return response;
|
|
3755
1471
|
};
|
|
3756
|
-
const
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
body: await parseErrorBody(output.body, context),
|
|
3760
|
-
};
|
|
3761
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3762
|
-
switch (errorCode) {
|
|
3763
|
-
case "InvalidParameterException":
|
|
3764
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3765
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3766
|
-
case "MailDomainNotFoundException":
|
|
3767
|
-
case "com.amazonaws.workmail#MailDomainNotFoundException":
|
|
3768
|
-
throw await de_MailDomainNotFoundExceptionRes(parsedOutput, context);
|
|
3769
|
-
case "MailDomainStateException":
|
|
3770
|
-
case "com.amazonaws.workmail#MailDomainStateException":
|
|
3771
|
-
throw await de_MailDomainStateExceptionRes(parsedOutput, context);
|
|
3772
|
-
case "OrganizationNotFoundException":
|
|
3773
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3774
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3775
|
-
case "OrganizationStateException":
|
|
3776
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3777
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3778
|
-
default:
|
|
3779
|
-
const parsedBody = parsedOutput.body;
|
|
3780
|
-
return throwDefaultError({
|
|
3781
|
-
output,
|
|
3782
|
-
parsedBody,
|
|
3783
|
-
errorCode,
|
|
3784
|
-
});
|
|
1472
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1473
|
+
if (output.statusCode >= 300) {
|
|
1474
|
+
return de_CommandError(output, context);
|
|
3785
1475
|
}
|
|
1476
|
+
const data = await parseBody(output.body, context);
|
|
1477
|
+
let contents = {};
|
|
1478
|
+
contents = _json(data);
|
|
1479
|
+
const response = {
|
|
1480
|
+
$metadata: deserializeMetadata(output),
|
|
1481
|
+
...contents,
|
|
1482
|
+
};
|
|
1483
|
+
return response;
|
|
3786
1484
|
};
|
|
3787
|
-
export const
|
|
1485
|
+
export const de_UpdateAvailabilityConfigurationCommand = async (output, context) => {
|
|
3788
1486
|
if (output.statusCode >= 300) {
|
|
3789
|
-
return
|
|
1487
|
+
return de_CommandError(output, context);
|
|
3790
1488
|
}
|
|
3791
1489
|
const data = await parseBody(output.body, context);
|
|
3792
1490
|
let contents = {};
|
|
@@ -3797,43 +1495,22 @@ export const de_UpdateGroupCommand = async (output, context) => {
|
|
|
3797
1495
|
};
|
|
3798
1496
|
return response;
|
|
3799
1497
|
};
|
|
3800
|
-
const
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
body: await parseErrorBody(output.body, context),
|
|
3804
|
-
};
|
|
3805
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3806
|
-
switch (errorCode) {
|
|
3807
|
-
case "EntityNotFoundException":
|
|
3808
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
3809
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
3810
|
-
case "EntityStateException":
|
|
3811
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
3812
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
3813
|
-
case "InvalidParameterException":
|
|
3814
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3815
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3816
|
-
case "OrganizationNotFoundException":
|
|
3817
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3818
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3819
|
-
case "OrganizationStateException":
|
|
3820
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3821
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3822
|
-
case "UnsupportedOperationException":
|
|
3823
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
3824
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3825
|
-
default:
|
|
3826
|
-
const parsedBody = parsedOutput.body;
|
|
3827
|
-
return throwDefaultError({
|
|
3828
|
-
output,
|
|
3829
|
-
parsedBody,
|
|
3830
|
-
errorCode,
|
|
3831
|
-
});
|
|
1498
|
+
export const de_UpdateDefaultMailDomainCommand = async (output, context) => {
|
|
1499
|
+
if (output.statusCode >= 300) {
|
|
1500
|
+
return de_CommandError(output, context);
|
|
3832
1501
|
}
|
|
1502
|
+
const data = await parseBody(output.body, context);
|
|
1503
|
+
let contents = {};
|
|
1504
|
+
contents = _json(data);
|
|
1505
|
+
const response = {
|
|
1506
|
+
$metadata: deserializeMetadata(output),
|
|
1507
|
+
...contents,
|
|
1508
|
+
};
|
|
1509
|
+
return response;
|
|
3833
1510
|
};
|
|
3834
|
-
export const
|
|
1511
|
+
export const de_UpdateGroupCommand = async (output, context) => {
|
|
3835
1512
|
if (output.statusCode >= 300) {
|
|
3836
|
-
return
|
|
1513
|
+
return de_CommandError(output, context);
|
|
3837
1514
|
}
|
|
3838
1515
|
const data = await parseBody(output.body, context);
|
|
3839
1516
|
let contents = {};
|
|
@@ -3844,46 +1521,22 @@ export const de_UpdateImpersonationRoleCommand = async (output, context) => {
|
|
|
3844
1521
|
};
|
|
3845
1522
|
return response;
|
|
3846
1523
|
};
|
|
3847
|
-
const
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
body: await parseErrorBody(output.body, context),
|
|
3851
|
-
};
|
|
3852
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3853
|
-
switch (errorCode) {
|
|
3854
|
-
case "EntityNotFoundException":
|
|
3855
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
3856
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
3857
|
-
case "EntityStateException":
|
|
3858
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
3859
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
3860
|
-
case "InvalidParameterException":
|
|
3861
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3862
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3863
|
-
case "LimitExceededException":
|
|
3864
|
-
case "com.amazonaws.workmail#LimitExceededException":
|
|
3865
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3866
|
-
case "OrganizationNotFoundException":
|
|
3867
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3868
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3869
|
-
case "OrganizationStateException":
|
|
3870
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3871
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3872
|
-
case "ResourceNotFoundException":
|
|
3873
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
3874
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3875
|
-
default:
|
|
3876
|
-
const parsedBody = parsedOutput.body;
|
|
3877
|
-
return throwDefaultError({
|
|
3878
|
-
output,
|
|
3879
|
-
parsedBody,
|
|
3880
|
-
errorCode,
|
|
3881
|
-
});
|
|
1524
|
+
export const de_UpdateImpersonationRoleCommand = async (output, context) => {
|
|
1525
|
+
if (output.statusCode >= 300) {
|
|
1526
|
+
return de_CommandError(output, context);
|
|
3882
1527
|
}
|
|
1528
|
+
const data = await parseBody(output.body, context);
|
|
1529
|
+
let contents = {};
|
|
1530
|
+
contents = _json(data);
|
|
1531
|
+
const response = {
|
|
1532
|
+
$metadata: deserializeMetadata(output),
|
|
1533
|
+
...contents,
|
|
1534
|
+
};
|
|
1535
|
+
return response;
|
|
3883
1536
|
};
|
|
3884
1537
|
export const de_UpdateMailboxQuotaCommand = async (output, context) => {
|
|
3885
1538
|
if (output.statusCode >= 300) {
|
|
3886
|
-
return
|
|
1539
|
+
return de_CommandError(output, context);
|
|
3887
1540
|
}
|
|
3888
1541
|
const data = await parseBody(output.body, context);
|
|
3889
1542
|
let contents = {};
|
|
@@ -3894,40 +1547,9 @@ export const de_UpdateMailboxQuotaCommand = async (output, context) => {
|
|
|
3894
1547
|
};
|
|
3895
1548
|
return response;
|
|
3896
1549
|
};
|
|
3897
|
-
const de_UpdateMailboxQuotaCommandError = async (output, context) => {
|
|
3898
|
-
const parsedOutput = {
|
|
3899
|
-
...output,
|
|
3900
|
-
body: await parseErrorBody(output.body, context),
|
|
3901
|
-
};
|
|
3902
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3903
|
-
switch (errorCode) {
|
|
3904
|
-
case "EntityNotFoundException":
|
|
3905
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
3906
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
3907
|
-
case "EntityStateException":
|
|
3908
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
3909
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
3910
|
-
case "InvalidParameterException":
|
|
3911
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3912
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3913
|
-
case "OrganizationNotFoundException":
|
|
3914
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3915
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3916
|
-
case "OrganizationStateException":
|
|
3917
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3918
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3919
|
-
default:
|
|
3920
|
-
const parsedBody = parsedOutput.body;
|
|
3921
|
-
return throwDefaultError({
|
|
3922
|
-
output,
|
|
3923
|
-
parsedBody,
|
|
3924
|
-
errorCode,
|
|
3925
|
-
});
|
|
3926
|
-
}
|
|
3927
|
-
};
|
|
3928
1550
|
export const de_UpdateMobileDeviceAccessRuleCommand = async (output, context) => {
|
|
3929
1551
|
if (output.statusCode >= 300) {
|
|
3930
|
-
return
|
|
1552
|
+
return de_CommandError(output, context);
|
|
3931
1553
|
}
|
|
3932
1554
|
const data = await parseBody(output.body, context);
|
|
3933
1555
|
let contents = {};
|
|
@@ -3938,37 +1560,9 @@ export const de_UpdateMobileDeviceAccessRuleCommand = async (output, context) =>
|
|
|
3938
1560
|
};
|
|
3939
1561
|
return response;
|
|
3940
1562
|
};
|
|
3941
|
-
const de_UpdateMobileDeviceAccessRuleCommandError = async (output, context) => {
|
|
3942
|
-
const parsedOutput = {
|
|
3943
|
-
...output,
|
|
3944
|
-
body: await parseErrorBody(output.body, context),
|
|
3945
|
-
};
|
|
3946
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3947
|
-
switch (errorCode) {
|
|
3948
|
-
case "EntityNotFoundException":
|
|
3949
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
3950
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
3951
|
-
case "InvalidParameterException":
|
|
3952
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3953
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3954
|
-
case "OrganizationNotFoundException":
|
|
3955
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3956
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3957
|
-
case "OrganizationStateException":
|
|
3958
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3959
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3960
|
-
default:
|
|
3961
|
-
const parsedBody = parsedOutput.body;
|
|
3962
|
-
return throwDefaultError({
|
|
3963
|
-
output,
|
|
3964
|
-
parsedBody,
|
|
3965
|
-
errorCode,
|
|
3966
|
-
});
|
|
3967
|
-
}
|
|
3968
|
-
};
|
|
3969
1563
|
export const de_UpdatePrimaryEmailAddressCommand = async (output, context) => {
|
|
3970
1564
|
if (output.statusCode >= 300) {
|
|
3971
|
-
return
|
|
1565
|
+
return de_CommandError(output, context);
|
|
3972
1566
|
}
|
|
3973
1567
|
const data = await parseBody(output.body, context);
|
|
3974
1568
|
let contents = {};
|
|
@@ -3979,58 +1573,9 @@ export const de_UpdatePrimaryEmailAddressCommand = async (output, context) => {
|
|
|
3979
1573
|
};
|
|
3980
1574
|
return response;
|
|
3981
1575
|
};
|
|
3982
|
-
const de_UpdatePrimaryEmailAddressCommandError = async (output, context) => {
|
|
3983
|
-
const parsedOutput = {
|
|
3984
|
-
...output,
|
|
3985
|
-
body: await parseErrorBody(output.body, context),
|
|
3986
|
-
};
|
|
3987
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3988
|
-
switch (errorCode) {
|
|
3989
|
-
case "DirectoryServiceAuthenticationFailedException":
|
|
3990
|
-
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
3991
|
-
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
3992
|
-
case "DirectoryUnavailableException":
|
|
3993
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
3994
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
3995
|
-
case "EmailAddressInUseException":
|
|
3996
|
-
case "com.amazonaws.workmail#EmailAddressInUseException":
|
|
3997
|
-
throw await de_EmailAddressInUseExceptionRes(parsedOutput, context);
|
|
3998
|
-
case "EntityNotFoundException":
|
|
3999
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
4000
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
4001
|
-
case "EntityStateException":
|
|
4002
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
4003
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
4004
|
-
case "InvalidParameterException":
|
|
4005
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
4006
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4007
|
-
case "MailDomainNotFoundException":
|
|
4008
|
-
case "com.amazonaws.workmail#MailDomainNotFoundException":
|
|
4009
|
-
throw await de_MailDomainNotFoundExceptionRes(parsedOutput, context);
|
|
4010
|
-
case "MailDomainStateException":
|
|
4011
|
-
case "com.amazonaws.workmail#MailDomainStateException":
|
|
4012
|
-
throw await de_MailDomainStateExceptionRes(parsedOutput, context);
|
|
4013
|
-
case "OrganizationNotFoundException":
|
|
4014
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
4015
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
4016
|
-
case "OrganizationStateException":
|
|
4017
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
4018
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
4019
|
-
case "UnsupportedOperationException":
|
|
4020
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
4021
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4022
|
-
default:
|
|
4023
|
-
const parsedBody = parsedOutput.body;
|
|
4024
|
-
return throwDefaultError({
|
|
4025
|
-
output,
|
|
4026
|
-
parsedBody,
|
|
4027
|
-
errorCode,
|
|
4028
|
-
});
|
|
4029
|
-
}
|
|
4030
|
-
};
|
|
4031
1576
|
export const de_UpdateResourceCommand = async (output, context) => {
|
|
4032
1577
|
if (output.statusCode >= 300) {
|
|
4033
|
-
return
|
|
1578
|
+
return de_CommandError(output, context);
|
|
4034
1579
|
}
|
|
4035
1580
|
const data = await parseBody(output.body, context);
|
|
4036
1581
|
let contents = {};
|
|
@@ -4041,61 +1586,9 @@ export const de_UpdateResourceCommand = async (output, context) => {
|
|
|
4041
1586
|
};
|
|
4042
1587
|
return response;
|
|
4043
1588
|
};
|
|
4044
|
-
const de_UpdateResourceCommandError = async (output, context) => {
|
|
4045
|
-
const parsedOutput = {
|
|
4046
|
-
...output,
|
|
4047
|
-
body: await parseErrorBody(output.body, context),
|
|
4048
|
-
};
|
|
4049
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4050
|
-
switch (errorCode) {
|
|
4051
|
-
case "DirectoryUnavailableException":
|
|
4052
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
4053
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
4054
|
-
case "EmailAddressInUseException":
|
|
4055
|
-
case "com.amazonaws.workmail#EmailAddressInUseException":
|
|
4056
|
-
throw await de_EmailAddressInUseExceptionRes(parsedOutput, context);
|
|
4057
|
-
case "EntityNotFoundException":
|
|
4058
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
4059
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
4060
|
-
case "EntityStateException":
|
|
4061
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
4062
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
4063
|
-
case "InvalidConfigurationException":
|
|
4064
|
-
case "com.amazonaws.workmail#InvalidConfigurationException":
|
|
4065
|
-
throw await de_InvalidConfigurationExceptionRes(parsedOutput, context);
|
|
4066
|
-
case "InvalidParameterException":
|
|
4067
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
4068
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4069
|
-
case "MailDomainNotFoundException":
|
|
4070
|
-
case "com.amazonaws.workmail#MailDomainNotFoundException":
|
|
4071
|
-
throw await de_MailDomainNotFoundExceptionRes(parsedOutput, context);
|
|
4072
|
-
case "MailDomainStateException":
|
|
4073
|
-
case "com.amazonaws.workmail#MailDomainStateException":
|
|
4074
|
-
throw await de_MailDomainStateExceptionRes(parsedOutput, context);
|
|
4075
|
-
case "NameAvailabilityException":
|
|
4076
|
-
case "com.amazonaws.workmail#NameAvailabilityException":
|
|
4077
|
-
throw await de_NameAvailabilityExceptionRes(parsedOutput, context);
|
|
4078
|
-
case "OrganizationNotFoundException":
|
|
4079
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
4080
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
4081
|
-
case "OrganizationStateException":
|
|
4082
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
4083
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
4084
|
-
case "UnsupportedOperationException":
|
|
4085
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
4086
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4087
|
-
default:
|
|
4088
|
-
const parsedBody = parsedOutput.body;
|
|
4089
|
-
return throwDefaultError({
|
|
4090
|
-
output,
|
|
4091
|
-
parsedBody,
|
|
4092
|
-
errorCode,
|
|
4093
|
-
});
|
|
4094
|
-
}
|
|
4095
|
-
};
|
|
4096
1589
|
export const de_UpdateUserCommand = async (output, context) => {
|
|
4097
1590
|
if (output.statusCode >= 300) {
|
|
4098
|
-
return
|
|
1591
|
+
return de_CommandError(output, context);
|
|
4099
1592
|
}
|
|
4100
1593
|
const data = await parseBody(output.body, context);
|
|
4101
1594
|
let contents = {};
|
|
@@ -4106,19 +1599,13 @@ export const de_UpdateUserCommand = async (output, context) => {
|
|
|
4106
1599
|
};
|
|
4107
1600
|
return response;
|
|
4108
1601
|
};
|
|
4109
|
-
const
|
|
1602
|
+
const de_CommandError = async (output, context) => {
|
|
4110
1603
|
const parsedOutput = {
|
|
4111
1604
|
...output,
|
|
4112
1605
|
body: await parseErrorBody(output.body, context),
|
|
4113
1606
|
};
|
|
4114
1607
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4115
1608
|
switch (errorCode) {
|
|
4116
|
-
case "DirectoryServiceAuthenticationFailedException":
|
|
4117
|
-
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
4118
|
-
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
4119
|
-
case "DirectoryUnavailableException":
|
|
4120
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
4121
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
4122
1609
|
case "EntityNotFoundException":
|
|
4123
1610
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
4124
1611
|
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -4137,6 +1624,54 @@ const de_UpdateUserCommandError = async (output, context) => {
|
|
|
4137
1624
|
case "UnsupportedOperationException":
|
|
4138
1625
|
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
4139
1626
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1627
|
+
case "DirectoryServiceAuthenticationFailedException":
|
|
1628
|
+
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
1629
|
+
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
1630
|
+
case "DirectoryUnavailableException":
|
|
1631
|
+
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
1632
|
+
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
1633
|
+
case "ResourceNotFoundException":
|
|
1634
|
+
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
1635
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1636
|
+
case "EmailAddressInUseException":
|
|
1637
|
+
case "com.amazonaws.workmail#EmailAddressInUseException":
|
|
1638
|
+
throw await de_EmailAddressInUseExceptionRes(parsedOutput, context);
|
|
1639
|
+
case "LimitExceededException":
|
|
1640
|
+
case "com.amazonaws.workmail#LimitExceededException":
|
|
1641
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1642
|
+
case "MailDomainNotFoundException":
|
|
1643
|
+
case "com.amazonaws.workmail#MailDomainNotFoundException":
|
|
1644
|
+
throw await de_MailDomainNotFoundExceptionRes(parsedOutput, context);
|
|
1645
|
+
case "MailDomainStateException":
|
|
1646
|
+
case "com.amazonaws.workmail#MailDomainStateException":
|
|
1647
|
+
throw await de_MailDomainStateExceptionRes(parsedOutput, context);
|
|
1648
|
+
case "NameAvailabilityException":
|
|
1649
|
+
case "com.amazonaws.workmail#NameAvailabilityException":
|
|
1650
|
+
throw await de_NameAvailabilityExceptionRes(parsedOutput, context);
|
|
1651
|
+
case "ReservedNameException":
|
|
1652
|
+
case "com.amazonaws.workmail#ReservedNameException":
|
|
1653
|
+
throw await de_ReservedNameExceptionRes(parsedOutput, context);
|
|
1654
|
+
case "DirectoryInUseException":
|
|
1655
|
+
case "com.amazonaws.workmail#DirectoryInUseException":
|
|
1656
|
+
throw await de_DirectoryInUseExceptionRes(parsedOutput, context);
|
|
1657
|
+
case "InvalidPasswordException":
|
|
1658
|
+
case "com.amazonaws.workmail#InvalidPasswordException":
|
|
1659
|
+
throw await de_InvalidPasswordExceptionRes(parsedOutput, context);
|
|
1660
|
+
case "InvalidCustomSesConfigurationException":
|
|
1661
|
+
case "com.amazonaws.workmail#InvalidCustomSesConfigurationException":
|
|
1662
|
+
throw await de_InvalidCustomSesConfigurationExceptionRes(parsedOutput, context);
|
|
1663
|
+
case "MailDomainInUseException":
|
|
1664
|
+
case "com.amazonaws.workmail#MailDomainInUseException":
|
|
1665
|
+
throw await de_MailDomainInUseExceptionRes(parsedOutput, context);
|
|
1666
|
+
case "EntityAlreadyRegisteredException":
|
|
1667
|
+
case "com.amazonaws.workmail#EntityAlreadyRegisteredException":
|
|
1668
|
+
throw await de_EntityAlreadyRegisteredExceptionRes(parsedOutput, context);
|
|
1669
|
+
case "TooManyTagsException":
|
|
1670
|
+
case "com.amazonaws.workmail#TooManyTagsException":
|
|
1671
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1672
|
+
case "InvalidConfigurationException":
|
|
1673
|
+
case "com.amazonaws.workmail#InvalidConfigurationException":
|
|
1674
|
+
throw await de_InvalidConfigurationExceptionRes(parsedOutput, context);
|
|
4140
1675
|
default:
|
|
4141
1676
|
const parsedBody = parsedOutput.body;
|
|
4142
1677
|
return throwDefaultError({
|