@aws-sdk/client-organizations 3.131.0 → 3.142.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/AcceptHandshakeCommand.js +2 -2
- package/dist-cjs/commands/AttachPolicyCommand.js +1 -1
- package/dist-cjs/commands/CancelHandshakeCommand.js +2 -2
- package/dist-cjs/commands/CloseAccountCommand.js +1 -1
- package/dist-cjs/commands/CreateAccountCommand.js +2 -2
- package/dist-cjs/commands/CreateGovCloudAccountCommand.js +2 -2
- package/dist-cjs/commands/CreateOrganizationCommand.js +2 -2
- package/dist-cjs/commands/CreateOrganizationalUnitCommand.js +2 -2
- package/dist-cjs/commands/CreatePolicyCommand.js +2 -2
- package/dist-cjs/commands/DeclineHandshakeCommand.js +2 -2
- package/dist-cjs/commands/DeleteOrganizationalUnitCommand.js +1 -1
- package/dist-cjs/commands/DeletePolicyCommand.js +1 -1
- package/dist-cjs/commands/DeregisterDelegatedAdministratorCommand.js +1 -1
- package/dist-cjs/commands/DescribeAccountCommand.js +2 -2
- package/dist-cjs/commands/DescribeCreateAccountStatusCommand.js +2 -2
- package/dist-cjs/commands/DescribeEffectivePolicyCommand.js +2 -2
- package/dist-cjs/commands/DescribeHandshakeCommand.js +2 -2
- package/dist-cjs/commands/DescribeOrganizationCommand.js +1 -1
- package/dist-cjs/commands/DescribeOrganizationalUnitCommand.js +2 -2
- package/dist-cjs/commands/DescribePolicyCommand.js +2 -2
- package/dist-cjs/commands/DetachPolicyCommand.js +1 -1
- package/dist-cjs/commands/DisableAWSServiceAccessCommand.js +1 -1
- package/dist-cjs/commands/DisablePolicyTypeCommand.js +2 -2
- package/dist-cjs/commands/EnableAWSServiceAccessCommand.js +1 -1
- package/dist-cjs/commands/EnableAllFeaturesCommand.js +2 -2
- package/dist-cjs/commands/EnablePolicyTypeCommand.js +2 -2
- package/dist-cjs/commands/InviteAccountToOrganizationCommand.js +2 -2
- package/dist-cjs/commands/ListAWSServiceAccessForOrganizationCommand.js +2 -2
- package/dist-cjs/commands/ListAccountsCommand.js +2 -2
- package/dist-cjs/commands/ListAccountsForParentCommand.js +2 -2
- package/dist-cjs/commands/ListChildrenCommand.js +2 -2
- package/dist-cjs/commands/ListCreateAccountStatusCommand.js +2 -2
- package/dist-cjs/commands/ListDelegatedAdministratorsCommand.js +2 -2
- package/dist-cjs/commands/ListDelegatedServicesForAccountCommand.js +2 -2
- package/dist-cjs/commands/ListHandshakesForAccountCommand.js +2 -2
- package/dist-cjs/commands/ListHandshakesForOrganizationCommand.js +2 -2
- package/dist-cjs/commands/ListOrganizationalUnitsForParentCommand.js +2 -2
- package/dist-cjs/commands/ListParentsCommand.js +2 -2
- package/dist-cjs/commands/ListPoliciesCommand.js +2 -2
- package/dist-cjs/commands/ListPoliciesForTargetCommand.js +2 -2
- package/dist-cjs/commands/ListRootsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListTargetsForPolicyCommand.js +2 -2
- package/dist-cjs/commands/MoveAccountCommand.js +1 -1
- package/dist-cjs/commands/RegisterDelegatedAdministratorCommand.js +1 -1
- package/dist-cjs/commands/RemoveAccountFromOrganizationCommand.js +1 -1
- package/dist-cjs/commands/TagResourceCommand.js +1 -1
- package/dist-cjs/commands/UntagResourceCommand.js +1 -1
- package/dist-cjs/commands/UpdateOrganizationalUnitCommand.js +2 -2
- package/dist-cjs/commands/UpdatePolicyCommand.js +2 -2
- package/dist-cjs/models/models_0.js +471 -683
- package/dist-cjs/protocols/Aws_json1_1.js +260 -425
- package/dist-es/commands/AcceptHandshakeCommand.js +3 -3
- package/dist-es/commands/AttachPolicyCommand.js +2 -2
- package/dist-es/commands/CancelHandshakeCommand.js +3 -3
- package/dist-es/commands/CloseAccountCommand.js +2 -2
- package/dist-es/commands/CreateAccountCommand.js +3 -3
- package/dist-es/commands/CreateGovCloudAccountCommand.js +3 -3
- package/dist-es/commands/CreateOrganizationCommand.js +3 -3
- package/dist-es/commands/CreateOrganizationalUnitCommand.js +3 -3
- package/dist-es/commands/CreatePolicyCommand.js +3 -3
- package/dist-es/commands/DeclineHandshakeCommand.js +3 -3
- package/dist-es/commands/DeleteOrganizationalUnitCommand.js +2 -2
- package/dist-es/commands/DeletePolicyCommand.js +2 -2
- package/dist-es/commands/DeregisterDelegatedAdministratorCommand.js +2 -2
- package/dist-es/commands/DescribeAccountCommand.js +3 -3
- package/dist-es/commands/DescribeCreateAccountStatusCommand.js +3 -3
- package/dist-es/commands/DescribeEffectivePolicyCommand.js +3 -3
- package/dist-es/commands/DescribeHandshakeCommand.js +3 -3
- package/dist-es/commands/DescribeOrganizationCommand.js +2 -2
- package/dist-es/commands/DescribeOrganizationalUnitCommand.js +3 -3
- package/dist-es/commands/DescribePolicyCommand.js +3 -3
- package/dist-es/commands/DetachPolicyCommand.js +2 -2
- package/dist-es/commands/DisableAWSServiceAccessCommand.js +2 -2
- package/dist-es/commands/DisablePolicyTypeCommand.js +3 -3
- package/dist-es/commands/EnableAWSServiceAccessCommand.js +2 -2
- package/dist-es/commands/EnableAllFeaturesCommand.js +3 -3
- package/dist-es/commands/EnablePolicyTypeCommand.js +3 -3
- package/dist-es/commands/InviteAccountToOrganizationCommand.js +3 -3
- package/dist-es/commands/ListAWSServiceAccessForOrganizationCommand.js +3 -3
- package/dist-es/commands/ListAccountsCommand.js +3 -3
- package/dist-es/commands/ListAccountsForParentCommand.js +3 -3
- package/dist-es/commands/ListChildrenCommand.js +3 -3
- package/dist-es/commands/ListCreateAccountStatusCommand.js +3 -3
- package/dist-es/commands/ListDelegatedAdministratorsCommand.js +3 -3
- package/dist-es/commands/ListDelegatedServicesForAccountCommand.js +3 -3
- package/dist-es/commands/ListHandshakesForAccountCommand.js +3 -3
- package/dist-es/commands/ListHandshakesForOrganizationCommand.js +3 -3
- package/dist-es/commands/ListOrganizationalUnitsForParentCommand.js +3 -3
- package/dist-es/commands/ListParentsCommand.js +3 -3
- package/dist-es/commands/ListPoliciesCommand.js +3 -3
- package/dist-es/commands/ListPoliciesForTargetCommand.js +3 -3
- package/dist-es/commands/ListRootsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListTargetsForPolicyCommand.js +3 -3
- package/dist-es/commands/MoveAccountCommand.js +2 -2
- package/dist-es/commands/RegisterDelegatedAdministratorCommand.js +2 -2
- package/dist-es/commands/RemoveAccountFromOrganizationCommand.js +2 -2
- package/dist-es/commands/TagResourceCommand.js +2 -2
- package/dist-es/commands/UntagResourceCommand.js +2 -2
- package/dist-es/commands/UpdateOrganizationalUnitCommand.js +3 -3
- package/dist-es/commands/UpdatePolicyCommand.js +3 -3
- package/dist-es/models/models_0.js +116 -436
- package/dist-es/protocols/Aws_json1_1.js +417 -426
- package/dist-types/models/models_0.d.ts +424 -636
- package/dist-types/ts3.4/models/models_0.d.ts +212 -424
- package/package.json +6 -6
|
@@ -543,7 +543,6 @@ const deserializeAws_json1_1AcceptHandshakeCommandError = async (output, context
|
|
|
543
543
|
...output,
|
|
544
544
|
body: await parseBody(output.body, context),
|
|
545
545
|
};
|
|
546
|
-
let response;
|
|
547
546
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
548
547
|
switch (errorCode) {
|
|
549
548
|
case "AccessDeniedException":
|
|
@@ -581,14 +580,12 @@ const deserializeAws_json1_1AcceptHandshakeCommandError = async (output, context
|
|
|
581
580
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
582
581
|
default:
|
|
583
582
|
const parsedBody = parsedOutput.body;
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
$metadata,
|
|
583
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
584
|
+
output,
|
|
585
|
+
parsedBody,
|
|
586
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
587
|
+
errorCode,
|
|
590
588
|
});
|
|
591
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
592
589
|
}
|
|
593
590
|
};
|
|
594
591
|
const deserializeAws_json1_1AttachPolicyCommand = async (output, context) => {
|
|
@@ -607,7 +604,6 @@ const deserializeAws_json1_1AttachPolicyCommandError = async (output, context) =
|
|
|
607
604
|
...output,
|
|
608
605
|
body: await parseBody(output.body, context),
|
|
609
606
|
};
|
|
610
|
-
let response;
|
|
611
607
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
612
608
|
switch (errorCode) {
|
|
613
609
|
case "AccessDeniedException":
|
|
@@ -651,14 +647,12 @@ const deserializeAws_json1_1AttachPolicyCommandError = async (output, context) =
|
|
|
651
647
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
652
648
|
default:
|
|
653
649
|
const parsedBody = parsedOutput.body;
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
$metadata,
|
|
650
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
651
|
+
output,
|
|
652
|
+
parsedBody,
|
|
653
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
654
|
+
errorCode,
|
|
660
655
|
});
|
|
661
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
662
656
|
}
|
|
663
657
|
};
|
|
664
658
|
const deserializeAws_json1_1CancelHandshakeCommand = async (output, context) => {
|
|
@@ -680,7 +674,6 @@ const deserializeAws_json1_1CancelHandshakeCommandError = async (output, context
|
|
|
680
674
|
...output,
|
|
681
675
|
body: await parseBody(output.body, context),
|
|
682
676
|
};
|
|
683
|
-
let response;
|
|
684
677
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
685
678
|
switch (errorCode) {
|
|
686
679
|
case "AccessDeniedException":
|
|
@@ -709,14 +702,12 @@ const deserializeAws_json1_1CancelHandshakeCommandError = async (output, context
|
|
|
709
702
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
710
703
|
default:
|
|
711
704
|
const parsedBody = parsedOutput.body;
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
$metadata,
|
|
705
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
706
|
+
output,
|
|
707
|
+
parsedBody,
|
|
708
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
709
|
+
errorCode,
|
|
718
710
|
});
|
|
719
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
720
711
|
}
|
|
721
712
|
};
|
|
722
713
|
const deserializeAws_json1_1CloseAccountCommand = async (output, context) => {
|
|
@@ -735,7 +726,6 @@ const deserializeAws_json1_1CloseAccountCommandError = async (output, context) =
|
|
|
735
726
|
...output,
|
|
736
727
|
body: await parseBody(output.body, context),
|
|
737
728
|
};
|
|
738
|
-
let response;
|
|
739
729
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
740
730
|
switch (errorCode) {
|
|
741
731
|
case "AccessDeniedException":
|
|
@@ -773,14 +763,12 @@ const deserializeAws_json1_1CloseAccountCommandError = async (output, context) =
|
|
|
773
763
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
774
764
|
default:
|
|
775
765
|
const parsedBody = parsedOutput.body;
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
$metadata,
|
|
766
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
767
|
+
output,
|
|
768
|
+
parsedBody,
|
|
769
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
770
|
+
errorCode,
|
|
782
771
|
});
|
|
783
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
784
772
|
}
|
|
785
773
|
};
|
|
786
774
|
const deserializeAws_json1_1CreateAccountCommand = async (output, context) => {
|
|
@@ -802,7 +790,6 @@ const deserializeAws_json1_1CreateAccountCommandError = async (output, context)
|
|
|
802
790
|
...output,
|
|
803
791
|
body: await parseBody(output.body, context),
|
|
804
792
|
};
|
|
805
|
-
let response;
|
|
806
793
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
807
794
|
switch (errorCode) {
|
|
808
795
|
case "AccessDeniedException":
|
|
@@ -834,14 +821,12 @@ const deserializeAws_json1_1CreateAccountCommandError = async (output, context)
|
|
|
834
821
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
835
822
|
default:
|
|
836
823
|
const parsedBody = parsedOutput.body;
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
$metadata,
|
|
824
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
825
|
+
output,
|
|
826
|
+
parsedBody,
|
|
827
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
828
|
+
errorCode,
|
|
843
829
|
});
|
|
844
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
845
830
|
}
|
|
846
831
|
};
|
|
847
832
|
const deserializeAws_json1_1CreateGovCloudAccountCommand = async (output, context) => {
|
|
@@ -863,7 +848,6 @@ const deserializeAws_json1_1CreateGovCloudAccountCommandError = async (output, c
|
|
|
863
848
|
...output,
|
|
864
849
|
body: await parseBody(output.body, context),
|
|
865
850
|
};
|
|
866
|
-
let response;
|
|
867
851
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
868
852
|
switch (errorCode) {
|
|
869
853
|
case "AccessDeniedException":
|
|
@@ -895,14 +879,12 @@ const deserializeAws_json1_1CreateGovCloudAccountCommandError = async (output, c
|
|
|
895
879
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
896
880
|
default:
|
|
897
881
|
const parsedBody = parsedOutput.body;
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
$metadata,
|
|
882
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
883
|
+
output,
|
|
884
|
+
parsedBody,
|
|
885
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
886
|
+
errorCode,
|
|
904
887
|
});
|
|
905
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
906
888
|
}
|
|
907
889
|
};
|
|
908
890
|
const deserializeAws_json1_1CreateOrganizationCommand = async (output, context) => {
|
|
@@ -924,7 +906,6 @@ const deserializeAws_json1_1CreateOrganizationCommandError = async (output, cont
|
|
|
924
906
|
...output,
|
|
925
907
|
body: await parseBody(output.body, context),
|
|
926
908
|
};
|
|
927
|
-
let response;
|
|
928
909
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
929
910
|
switch (errorCode) {
|
|
930
911
|
case "AccessDeniedException":
|
|
@@ -953,14 +934,12 @@ const deserializeAws_json1_1CreateOrganizationCommandError = async (output, cont
|
|
|
953
934
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
954
935
|
default:
|
|
955
936
|
const parsedBody = parsedOutput.body;
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
$metadata,
|
|
937
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
938
|
+
output,
|
|
939
|
+
parsedBody,
|
|
940
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
941
|
+
errorCode,
|
|
962
942
|
});
|
|
963
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
964
943
|
}
|
|
965
944
|
};
|
|
966
945
|
const deserializeAws_json1_1CreateOrganizationalUnitCommand = async (output, context) => {
|
|
@@ -982,7 +961,6 @@ const deserializeAws_json1_1CreateOrganizationalUnitCommandError = async (output
|
|
|
982
961
|
...output,
|
|
983
962
|
body: await parseBody(output.body, context),
|
|
984
963
|
};
|
|
985
|
-
let response;
|
|
986
964
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
987
965
|
switch (errorCode) {
|
|
988
966
|
case "AccessDeniedException":
|
|
@@ -1014,14 +992,12 @@ const deserializeAws_json1_1CreateOrganizationalUnitCommandError = async (output
|
|
|
1014
992
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1015
993
|
default:
|
|
1016
994
|
const parsedBody = parsedOutput.body;
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
$metadata,
|
|
995
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
996
|
+
output,
|
|
997
|
+
parsedBody,
|
|
998
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
999
|
+
errorCode,
|
|
1023
1000
|
});
|
|
1024
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1025
1001
|
}
|
|
1026
1002
|
};
|
|
1027
1003
|
const deserializeAws_json1_1CreatePolicyCommand = async (output, context) => {
|
|
@@ -1043,7 +1019,6 @@ const deserializeAws_json1_1CreatePolicyCommandError = async (output, context) =
|
|
|
1043
1019
|
...output,
|
|
1044
1020
|
body: await parseBody(output.body, context),
|
|
1045
1021
|
};
|
|
1046
|
-
let response;
|
|
1047
1022
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1048
1023
|
switch (errorCode) {
|
|
1049
1024
|
case "AccessDeniedException":
|
|
@@ -1081,14 +1056,12 @@ const deserializeAws_json1_1CreatePolicyCommandError = async (output, context) =
|
|
|
1081
1056
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
1082
1057
|
default:
|
|
1083
1058
|
const parsedBody = parsedOutput.body;
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
$metadata,
|
|
1059
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1060
|
+
output,
|
|
1061
|
+
parsedBody,
|
|
1062
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1063
|
+
errorCode,
|
|
1090
1064
|
});
|
|
1091
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1092
1065
|
}
|
|
1093
1066
|
};
|
|
1094
1067
|
const deserializeAws_json1_1DeclineHandshakeCommand = async (output, context) => {
|
|
@@ -1110,7 +1083,6 @@ const deserializeAws_json1_1DeclineHandshakeCommandError = async (output, contex
|
|
|
1110
1083
|
...output,
|
|
1111
1084
|
body: await parseBody(output.body, context),
|
|
1112
1085
|
};
|
|
1113
|
-
let response;
|
|
1114
1086
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1115
1087
|
switch (errorCode) {
|
|
1116
1088
|
case "AccessDeniedException":
|
|
@@ -1139,14 +1111,12 @@ const deserializeAws_json1_1DeclineHandshakeCommandError = async (output, contex
|
|
|
1139
1111
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1140
1112
|
default:
|
|
1141
1113
|
const parsedBody = parsedOutput.body;
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
$metadata,
|
|
1114
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1115
|
+
output,
|
|
1116
|
+
parsedBody,
|
|
1117
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1118
|
+
errorCode,
|
|
1148
1119
|
});
|
|
1149
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1150
1120
|
}
|
|
1151
1121
|
};
|
|
1152
1122
|
const deserializeAws_json1_1DeleteOrganizationCommand = async (output, context) => {
|
|
@@ -1165,7 +1135,6 @@ const deserializeAws_json1_1DeleteOrganizationCommandError = async (output, cont
|
|
|
1165
1135
|
...output,
|
|
1166
1136
|
body: await parseBody(output.body, context),
|
|
1167
1137
|
};
|
|
1168
|
-
let response;
|
|
1169
1138
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1170
1139
|
switch (errorCode) {
|
|
1171
1140
|
case "AccessDeniedException":
|
|
@@ -1191,14 +1160,12 @@ const deserializeAws_json1_1DeleteOrganizationCommandError = async (output, cont
|
|
|
1191
1160
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1192
1161
|
default:
|
|
1193
1162
|
const parsedBody = parsedOutput.body;
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
$metadata,
|
|
1163
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1164
|
+
output,
|
|
1165
|
+
parsedBody,
|
|
1166
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1167
|
+
errorCode,
|
|
1200
1168
|
});
|
|
1201
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1202
1169
|
}
|
|
1203
1170
|
};
|
|
1204
1171
|
const deserializeAws_json1_1DeleteOrganizationalUnitCommand = async (output, context) => {
|
|
@@ -1217,7 +1184,6 @@ const deserializeAws_json1_1DeleteOrganizationalUnitCommandError = async (output
|
|
|
1217
1184
|
...output,
|
|
1218
1185
|
body: await parseBody(output.body, context),
|
|
1219
1186
|
};
|
|
1220
|
-
let response;
|
|
1221
1187
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1222
1188
|
switch (errorCode) {
|
|
1223
1189
|
case "AccessDeniedException":
|
|
@@ -1246,14 +1212,12 @@ const deserializeAws_json1_1DeleteOrganizationalUnitCommandError = async (output
|
|
|
1246
1212
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1247
1213
|
default:
|
|
1248
1214
|
const parsedBody = parsedOutput.body;
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
$metadata,
|
|
1215
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1216
|
+
output,
|
|
1217
|
+
parsedBody,
|
|
1218
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1219
|
+
errorCode,
|
|
1255
1220
|
});
|
|
1256
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1257
1221
|
}
|
|
1258
1222
|
};
|
|
1259
1223
|
const deserializeAws_json1_1DeletePolicyCommand = async (output, context) => {
|
|
@@ -1272,7 +1236,6 @@ const deserializeAws_json1_1DeletePolicyCommandError = async (output, context) =
|
|
|
1272
1236
|
...output,
|
|
1273
1237
|
body: await parseBody(output.body, context),
|
|
1274
1238
|
};
|
|
1275
|
-
let response;
|
|
1276
1239
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1277
1240
|
switch (errorCode) {
|
|
1278
1241
|
case "AccessDeniedException":
|
|
@@ -1304,14 +1267,12 @@ const deserializeAws_json1_1DeletePolicyCommandError = async (output, context) =
|
|
|
1304
1267
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
1305
1268
|
default:
|
|
1306
1269
|
const parsedBody = parsedOutput.body;
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
$metadata,
|
|
1270
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1271
|
+
output,
|
|
1272
|
+
parsedBody,
|
|
1273
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1274
|
+
errorCode,
|
|
1313
1275
|
});
|
|
1314
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1315
1276
|
}
|
|
1316
1277
|
};
|
|
1317
1278
|
const deserializeAws_json1_1DeregisterDelegatedAdministratorCommand = async (output, context) => {
|
|
@@ -1330,7 +1291,6 @@ const deserializeAws_json1_1DeregisterDelegatedAdministratorCommandError = async
|
|
|
1330
1291
|
...output,
|
|
1331
1292
|
body: await parseBody(output.body, context),
|
|
1332
1293
|
};
|
|
1333
|
-
let response;
|
|
1334
1294
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1335
1295
|
switch (errorCode) {
|
|
1336
1296
|
case "AccessDeniedException":
|
|
@@ -1365,14 +1325,12 @@ const deserializeAws_json1_1DeregisterDelegatedAdministratorCommandError = async
|
|
|
1365
1325
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
1366
1326
|
default:
|
|
1367
1327
|
const parsedBody = parsedOutput.body;
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
$metadata,
|
|
1328
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1329
|
+
output,
|
|
1330
|
+
parsedBody,
|
|
1331
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1332
|
+
errorCode,
|
|
1374
1333
|
});
|
|
1375
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1376
1334
|
}
|
|
1377
1335
|
};
|
|
1378
1336
|
const deserializeAws_json1_1DescribeAccountCommand = async (output, context) => {
|
|
@@ -1394,7 +1352,6 @@ const deserializeAws_json1_1DescribeAccountCommandError = async (output, context
|
|
|
1394
1352
|
...output,
|
|
1395
1353
|
body: await parseBody(output.body, context),
|
|
1396
1354
|
};
|
|
1397
|
-
let response;
|
|
1398
1355
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1399
1356
|
switch (errorCode) {
|
|
1400
1357
|
case "AccessDeniedException":
|
|
@@ -1417,14 +1374,12 @@ const deserializeAws_json1_1DescribeAccountCommandError = async (output, context
|
|
|
1417
1374
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1418
1375
|
default:
|
|
1419
1376
|
const parsedBody = parsedOutput.body;
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
$metadata,
|
|
1377
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1378
|
+
output,
|
|
1379
|
+
parsedBody,
|
|
1380
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1381
|
+
errorCode,
|
|
1426
1382
|
});
|
|
1427
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1428
1383
|
}
|
|
1429
1384
|
};
|
|
1430
1385
|
const deserializeAws_json1_1DescribeCreateAccountStatusCommand = async (output, context) => {
|
|
@@ -1446,7 +1401,6 @@ const deserializeAws_json1_1DescribeCreateAccountStatusCommandError = async (out
|
|
|
1446
1401
|
...output,
|
|
1447
1402
|
body: await parseBody(output.body, context),
|
|
1448
1403
|
};
|
|
1449
|
-
let response;
|
|
1450
1404
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1451
1405
|
switch (errorCode) {
|
|
1452
1406
|
case "AccessDeniedException":
|
|
@@ -1472,14 +1426,12 @@ const deserializeAws_json1_1DescribeCreateAccountStatusCommandError = async (out
|
|
|
1472
1426
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
1473
1427
|
default:
|
|
1474
1428
|
const parsedBody = parsedOutput.body;
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
$metadata,
|
|
1429
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1430
|
+
output,
|
|
1431
|
+
parsedBody,
|
|
1432
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1433
|
+
errorCode,
|
|
1481
1434
|
});
|
|
1482
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1483
1435
|
}
|
|
1484
1436
|
};
|
|
1485
1437
|
const deserializeAws_json1_1DescribeEffectivePolicyCommand = async (output, context) => {
|
|
@@ -1501,7 +1453,6 @@ const deserializeAws_json1_1DescribeEffectivePolicyCommandError = async (output,
|
|
|
1501
1453
|
...output,
|
|
1502
1454
|
body: await parseBody(output.body, context),
|
|
1503
1455
|
};
|
|
1504
|
-
let response;
|
|
1505
1456
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1506
1457
|
switch (errorCode) {
|
|
1507
1458
|
case "AccessDeniedException":
|
|
@@ -1533,14 +1484,12 @@ const deserializeAws_json1_1DescribeEffectivePolicyCommandError = async (output,
|
|
|
1533
1484
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
1534
1485
|
default:
|
|
1535
1486
|
const parsedBody = parsedOutput.body;
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
$metadata,
|
|
1487
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1488
|
+
output,
|
|
1489
|
+
parsedBody,
|
|
1490
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1491
|
+
errorCode,
|
|
1542
1492
|
});
|
|
1543
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1544
1493
|
}
|
|
1545
1494
|
};
|
|
1546
1495
|
const deserializeAws_json1_1DescribeHandshakeCommand = async (output, context) => {
|
|
@@ -1562,7 +1511,6 @@ const deserializeAws_json1_1DescribeHandshakeCommandError = async (output, conte
|
|
|
1562
1511
|
...output,
|
|
1563
1512
|
body: await parseBody(output.body, context),
|
|
1564
1513
|
};
|
|
1565
|
-
let response;
|
|
1566
1514
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1567
1515
|
switch (errorCode) {
|
|
1568
1516
|
case "AccessDeniedException":
|
|
@@ -1585,14 +1533,12 @@ const deserializeAws_json1_1DescribeHandshakeCommandError = async (output, conte
|
|
|
1585
1533
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1586
1534
|
default:
|
|
1587
1535
|
const parsedBody = parsedOutput.body;
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
$metadata,
|
|
1536
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1537
|
+
output,
|
|
1538
|
+
parsedBody,
|
|
1539
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1540
|
+
errorCode,
|
|
1594
1541
|
});
|
|
1595
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1596
1542
|
}
|
|
1597
1543
|
};
|
|
1598
1544
|
const deserializeAws_json1_1DescribeOrganizationCommand = async (output, context) => {
|
|
@@ -1614,7 +1560,6 @@ const deserializeAws_json1_1DescribeOrganizationCommandError = async (output, co
|
|
|
1614
1560
|
...output,
|
|
1615
1561
|
body: await parseBody(output.body, context),
|
|
1616
1562
|
};
|
|
1617
|
-
let response;
|
|
1618
1563
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1619
1564
|
switch (errorCode) {
|
|
1620
1565
|
case "AccessDeniedException":
|
|
@@ -1634,14 +1579,12 @@ const deserializeAws_json1_1DescribeOrganizationCommandError = async (output, co
|
|
|
1634
1579
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1635
1580
|
default:
|
|
1636
1581
|
const parsedBody = parsedOutput.body;
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
$metadata,
|
|
1582
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1583
|
+
output,
|
|
1584
|
+
parsedBody,
|
|
1585
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1586
|
+
errorCode,
|
|
1643
1587
|
});
|
|
1644
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1645
1588
|
}
|
|
1646
1589
|
};
|
|
1647
1590
|
const deserializeAws_json1_1DescribeOrganizationalUnitCommand = async (output, context) => {
|
|
@@ -1663,7 +1606,6 @@ const deserializeAws_json1_1DescribeOrganizationalUnitCommandError = async (outp
|
|
|
1663
1606
|
...output,
|
|
1664
1607
|
body: await parseBody(output.body, context),
|
|
1665
1608
|
};
|
|
1666
|
-
let response;
|
|
1667
1609
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1668
1610
|
switch (errorCode) {
|
|
1669
1611
|
case "AccessDeniedException":
|
|
@@ -1686,14 +1628,12 @@ const deserializeAws_json1_1DescribeOrganizationalUnitCommandError = async (outp
|
|
|
1686
1628
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1687
1629
|
default:
|
|
1688
1630
|
const parsedBody = parsedOutput.body;
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
$metadata,
|
|
1631
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1632
|
+
output,
|
|
1633
|
+
parsedBody,
|
|
1634
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1635
|
+
errorCode,
|
|
1695
1636
|
});
|
|
1696
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1697
1637
|
}
|
|
1698
1638
|
};
|
|
1699
1639
|
const deserializeAws_json1_1DescribePolicyCommand = async (output, context) => {
|
|
@@ -1715,7 +1655,6 @@ const deserializeAws_json1_1DescribePolicyCommandError = async (output, context)
|
|
|
1715
1655
|
...output,
|
|
1716
1656
|
body: await parseBody(output.body, context),
|
|
1717
1657
|
};
|
|
1718
|
-
let response;
|
|
1719
1658
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1720
1659
|
switch (errorCode) {
|
|
1721
1660
|
case "AccessDeniedException":
|
|
@@ -1741,14 +1680,12 @@ const deserializeAws_json1_1DescribePolicyCommandError = async (output, context)
|
|
|
1741
1680
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
1742
1681
|
default:
|
|
1743
1682
|
const parsedBody = parsedOutput.body;
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
$metadata,
|
|
1683
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1684
|
+
output,
|
|
1685
|
+
parsedBody,
|
|
1686
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1687
|
+
errorCode,
|
|
1750
1688
|
});
|
|
1751
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1752
1689
|
}
|
|
1753
1690
|
};
|
|
1754
1691
|
const deserializeAws_json1_1DetachPolicyCommand = async (output, context) => {
|
|
@@ -1767,7 +1704,6 @@ const deserializeAws_json1_1DetachPolicyCommandError = async (output, context) =
|
|
|
1767
1704
|
...output,
|
|
1768
1705
|
body: await parseBody(output.body, context),
|
|
1769
1706
|
};
|
|
1770
|
-
let response;
|
|
1771
1707
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1772
1708
|
switch (errorCode) {
|
|
1773
1709
|
case "AccessDeniedException":
|
|
@@ -1808,14 +1744,12 @@ const deserializeAws_json1_1DetachPolicyCommandError = async (output, context) =
|
|
|
1808
1744
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
1809
1745
|
default:
|
|
1810
1746
|
const parsedBody = parsedOutput.body;
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
$metadata,
|
|
1747
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1748
|
+
output,
|
|
1749
|
+
parsedBody,
|
|
1750
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1751
|
+
errorCode,
|
|
1817
1752
|
});
|
|
1818
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1819
1753
|
}
|
|
1820
1754
|
};
|
|
1821
1755
|
const deserializeAws_json1_1DisableAWSServiceAccessCommand = async (output, context) => {
|
|
@@ -1834,7 +1768,6 @@ const deserializeAws_json1_1DisableAWSServiceAccessCommandError = async (output,
|
|
|
1834
1768
|
...output,
|
|
1835
1769
|
body: await parseBody(output.body, context),
|
|
1836
1770
|
};
|
|
1837
|
-
let response;
|
|
1838
1771
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1839
1772
|
switch (errorCode) {
|
|
1840
1773
|
case "AccessDeniedException":
|
|
@@ -1863,14 +1796,12 @@ const deserializeAws_json1_1DisableAWSServiceAccessCommandError = async (output,
|
|
|
1863
1796
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
1864
1797
|
default:
|
|
1865
1798
|
const parsedBody = parsedOutput.body;
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
$metadata,
|
|
1799
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1800
|
+
output,
|
|
1801
|
+
parsedBody,
|
|
1802
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1803
|
+
errorCode,
|
|
1872
1804
|
});
|
|
1873
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1874
1805
|
}
|
|
1875
1806
|
};
|
|
1876
1807
|
const deserializeAws_json1_1DisablePolicyTypeCommand = async (output, context) => {
|
|
@@ -1892,7 +1823,6 @@ const deserializeAws_json1_1DisablePolicyTypeCommandError = async (output, conte
|
|
|
1892
1823
|
...output,
|
|
1893
1824
|
body: await parseBody(output.body, context),
|
|
1894
1825
|
};
|
|
1895
|
-
let response;
|
|
1896
1826
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1897
1827
|
switch (errorCode) {
|
|
1898
1828
|
case "AccessDeniedException":
|
|
@@ -1930,14 +1860,12 @@ const deserializeAws_json1_1DisablePolicyTypeCommandError = async (output, conte
|
|
|
1930
1860
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
1931
1861
|
default:
|
|
1932
1862
|
const parsedBody = parsedOutput.body;
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
$metadata,
|
|
1863
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1864
|
+
output,
|
|
1865
|
+
parsedBody,
|
|
1866
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1867
|
+
errorCode,
|
|
1939
1868
|
});
|
|
1940
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1941
1869
|
}
|
|
1942
1870
|
};
|
|
1943
1871
|
const deserializeAws_json1_1EnableAllFeaturesCommand = async (output, context) => {
|
|
@@ -1959,7 +1887,6 @@ const deserializeAws_json1_1EnableAllFeaturesCommandError = async (output, conte
|
|
|
1959
1887
|
...output,
|
|
1960
1888
|
body: await parseBody(output.body, context),
|
|
1961
1889
|
};
|
|
1962
|
-
let response;
|
|
1963
1890
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1964
1891
|
switch (errorCode) {
|
|
1965
1892
|
case "AccessDeniedException":
|
|
@@ -1985,14 +1912,12 @@ const deserializeAws_json1_1EnableAllFeaturesCommandError = async (output, conte
|
|
|
1985
1912
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1986
1913
|
default:
|
|
1987
1914
|
const parsedBody = parsedOutput.body;
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
$metadata,
|
|
1915
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1916
|
+
output,
|
|
1917
|
+
parsedBody,
|
|
1918
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1919
|
+
errorCode,
|
|
1994
1920
|
});
|
|
1995
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1996
1921
|
}
|
|
1997
1922
|
};
|
|
1998
1923
|
const deserializeAws_json1_1EnableAWSServiceAccessCommand = async (output, context) => {
|
|
@@ -2011,7 +1936,6 @@ const deserializeAws_json1_1EnableAWSServiceAccessCommandError = async (output,
|
|
|
2011
1936
|
...output,
|
|
2012
1937
|
body: await parseBody(output.body, context),
|
|
2013
1938
|
};
|
|
2014
|
-
let response;
|
|
2015
1939
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2016
1940
|
switch (errorCode) {
|
|
2017
1941
|
case "AccessDeniedException":
|
|
@@ -2040,14 +1964,12 @@ const deserializeAws_json1_1EnableAWSServiceAccessCommandError = async (output,
|
|
|
2040
1964
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
2041
1965
|
default:
|
|
2042
1966
|
const parsedBody = parsedOutput.body;
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
$metadata,
|
|
1967
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1968
|
+
output,
|
|
1969
|
+
parsedBody,
|
|
1970
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1971
|
+
errorCode,
|
|
2049
1972
|
});
|
|
2050
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2051
1973
|
}
|
|
2052
1974
|
};
|
|
2053
1975
|
const deserializeAws_json1_1EnablePolicyTypeCommand = async (output, context) => {
|
|
@@ -2069,7 +1991,6 @@ const deserializeAws_json1_1EnablePolicyTypeCommandError = async (output, contex
|
|
|
2069
1991
|
...output,
|
|
2070
1992
|
body: await parseBody(output.body, context),
|
|
2071
1993
|
};
|
|
2072
|
-
let response;
|
|
2073
1994
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2074
1995
|
switch (errorCode) {
|
|
2075
1996
|
case "AccessDeniedException":
|
|
@@ -2110,14 +2031,12 @@ const deserializeAws_json1_1EnablePolicyTypeCommandError = async (output, contex
|
|
|
2110
2031
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
2111
2032
|
default:
|
|
2112
2033
|
const parsedBody = parsedOutput.body;
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
$metadata,
|
|
2034
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2035
|
+
output,
|
|
2036
|
+
parsedBody,
|
|
2037
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2038
|
+
errorCode,
|
|
2119
2039
|
});
|
|
2120
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2121
2040
|
}
|
|
2122
2041
|
};
|
|
2123
2042
|
const deserializeAws_json1_1InviteAccountToOrganizationCommand = async (output, context) => {
|
|
@@ -2139,7 +2058,6 @@ const deserializeAws_json1_1InviteAccountToOrganizationCommandError = async (out
|
|
|
2139
2058
|
...output,
|
|
2140
2059
|
body: await parseBody(output.body, context),
|
|
2141
2060
|
};
|
|
2142
|
-
let response;
|
|
2143
2061
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2144
2062
|
switch (errorCode) {
|
|
2145
2063
|
case "AccessDeniedException":
|
|
@@ -2177,14 +2095,12 @@ const deserializeAws_json1_1InviteAccountToOrganizationCommandError = async (out
|
|
|
2177
2095
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2178
2096
|
default:
|
|
2179
2097
|
const parsedBody = parsedOutput.body;
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
$metadata,
|
|
2098
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2099
|
+
output,
|
|
2100
|
+
parsedBody,
|
|
2101
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2102
|
+
errorCode,
|
|
2186
2103
|
});
|
|
2187
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2188
2104
|
}
|
|
2189
2105
|
};
|
|
2190
2106
|
const deserializeAws_json1_1LeaveOrganizationCommand = async (output, context) => {
|
|
@@ -2203,7 +2119,6 @@ const deserializeAws_json1_1LeaveOrganizationCommandError = async (output, conte
|
|
|
2203
2119
|
...output,
|
|
2204
2120
|
body: await parseBody(output.body, context),
|
|
2205
2121
|
};
|
|
2206
|
-
let response;
|
|
2207
2122
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2208
2123
|
switch (errorCode) {
|
|
2209
2124
|
case "AccessDeniedException":
|
|
@@ -2235,14 +2150,12 @@ const deserializeAws_json1_1LeaveOrganizationCommandError = async (output, conte
|
|
|
2235
2150
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2236
2151
|
default:
|
|
2237
2152
|
const parsedBody = parsedOutput.body;
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
$metadata,
|
|
2153
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2154
|
+
output,
|
|
2155
|
+
parsedBody,
|
|
2156
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2157
|
+
errorCode,
|
|
2244
2158
|
});
|
|
2245
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2246
2159
|
}
|
|
2247
2160
|
};
|
|
2248
2161
|
const deserializeAws_json1_1ListAccountsCommand = async (output, context) => {
|
|
@@ -2264,7 +2177,6 @@ const deserializeAws_json1_1ListAccountsCommandError = async (output, context) =
|
|
|
2264
2177
|
...output,
|
|
2265
2178
|
body: await parseBody(output.body, context),
|
|
2266
2179
|
};
|
|
2267
|
-
let response;
|
|
2268
2180
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2269
2181
|
switch (errorCode) {
|
|
2270
2182
|
case "AccessDeniedException":
|
|
@@ -2284,14 +2196,12 @@ const deserializeAws_json1_1ListAccountsCommandError = async (output, context) =
|
|
|
2284
2196
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2285
2197
|
default:
|
|
2286
2198
|
const parsedBody = parsedOutput.body;
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
$metadata,
|
|
2199
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2200
|
+
output,
|
|
2201
|
+
parsedBody,
|
|
2202
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2203
|
+
errorCode,
|
|
2293
2204
|
});
|
|
2294
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2295
2205
|
}
|
|
2296
2206
|
};
|
|
2297
2207
|
const deserializeAws_json1_1ListAccountsForParentCommand = async (output, context) => {
|
|
@@ -2313,7 +2223,6 @@ const deserializeAws_json1_1ListAccountsForParentCommandError = async (output, c
|
|
|
2313
2223
|
...output,
|
|
2314
2224
|
body: await parseBody(output.body, context),
|
|
2315
2225
|
};
|
|
2316
|
-
let response;
|
|
2317
2226
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2318
2227
|
switch (errorCode) {
|
|
2319
2228
|
case "AccessDeniedException":
|
|
@@ -2336,14 +2245,12 @@ const deserializeAws_json1_1ListAccountsForParentCommandError = async (output, c
|
|
|
2336
2245
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2337
2246
|
default:
|
|
2338
2247
|
const parsedBody = parsedOutput.body;
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
$metadata,
|
|
2248
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2249
|
+
output,
|
|
2250
|
+
parsedBody,
|
|
2251
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2252
|
+
errorCode,
|
|
2345
2253
|
});
|
|
2346
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2347
2254
|
}
|
|
2348
2255
|
};
|
|
2349
2256
|
const deserializeAws_json1_1ListAWSServiceAccessForOrganizationCommand = async (output, context) => {
|
|
@@ -2365,7 +2272,6 @@ const deserializeAws_json1_1ListAWSServiceAccessForOrganizationCommandError = as
|
|
|
2365
2272
|
...output,
|
|
2366
2273
|
body: await parseBody(output.body, context),
|
|
2367
2274
|
};
|
|
2368
|
-
let response;
|
|
2369
2275
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2370
2276
|
switch (errorCode) {
|
|
2371
2277
|
case "AccessDeniedException":
|
|
@@ -2391,14 +2297,12 @@ const deserializeAws_json1_1ListAWSServiceAccessForOrganizationCommandError = as
|
|
|
2391
2297
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
2392
2298
|
default:
|
|
2393
2299
|
const parsedBody = parsedOutput.body;
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
$metadata,
|
|
2300
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2301
|
+
output,
|
|
2302
|
+
parsedBody,
|
|
2303
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2304
|
+
errorCode,
|
|
2400
2305
|
});
|
|
2401
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2402
2306
|
}
|
|
2403
2307
|
};
|
|
2404
2308
|
const deserializeAws_json1_1ListChildrenCommand = async (output, context) => {
|
|
@@ -2420,7 +2324,6 @@ const deserializeAws_json1_1ListChildrenCommandError = async (output, context) =
|
|
|
2420
2324
|
...output,
|
|
2421
2325
|
body: await parseBody(output.body, context),
|
|
2422
2326
|
};
|
|
2423
|
-
let response;
|
|
2424
2327
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2425
2328
|
switch (errorCode) {
|
|
2426
2329
|
case "AccessDeniedException":
|
|
@@ -2443,14 +2346,12 @@ const deserializeAws_json1_1ListChildrenCommandError = async (output, context) =
|
|
|
2443
2346
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2444
2347
|
default:
|
|
2445
2348
|
const parsedBody = parsedOutput.body;
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
$metadata,
|
|
2349
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2350
|
+
output,
|
|
2351
|
+
parsedBody,
|
|
2352
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2353
|
+
errorCode,
|
|
2452
2354
|
});
|
|
2453
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2454
2355
|
}
|
|
2455
2356
|
};
|
|
2456
2357
|
const deserializeAws_json1_1ListCreateAccountStatusCommand = async (output, context) => {
|
|
@@ -2472,7 +2373,6 @@ const deserializeAws_json1_1ListCreateAccountStatusCommandError = async (output,
|
|
|
2472
2373
|
...output,
|
|
2473
2374
|
body: await parseBody(output.body, context),
|
|
2474
2375
|
};
|
|
2475
|
-
let response;
|
|
2476
2376
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2477
2377
|
switch (errorCode) {
|
|
2478
2378
|
case "AccessDeniedException":
|
|
@@ -2495,14 +2395,12 @@ const deserializeAws_json1_1ListCreateAccountStatusCommandError = async (output,
|
|
|
2495
2395
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
2496
2396
|
default:
|
|
2497
2397
|
const parsedBody = parsedOutput.body;
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
$metadata,
|
|
2398
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2399
|
+
output,
|
|
2400
|
+
parsedBody,
|
|
2401
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2402
|
+
errorCode,
|
|
2504
2403
|
});
|
|
2505
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2506
2404
|
}
|
|
2507
2405
|
};
|
|
2508
2406
|
const deserializeAws_json1_1ListDelegatedAdministratorsCommand = async (output, context) => {
|
|
@@ -2524,7 +2422,6 @@ const deserializeAws_json1_1ListDelegatedAdministratorsCommandError = async (out
|
|
|
2524
2422
|
...output,
|
|
2525
2423
|
body: await parseBody(output.body, context),
|
|
2526
2424
|
};
|
|
2527
|
-
let response;
|
|
2528
2425
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2529
2426
|
switch (errorCode) {
|
|
2530
2427
|
case "AccessDeniedException":
|
|
@@ -2550,14 +2447,12 @@ const deserializeAws_json1_1ListDelegatedAdministratorsCommandError = async (out
|
|
|
2550
2447
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
2551
2448
|
default:
|
|
2552
2449
|
const parsedBody = parsedOutput.body;
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
$metadata,
|
|
2450
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2451
|
+
output,
|
|
2452
|
+
parsedBody,
|
|
2453
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2454
|
+
errorCode,
|
|
2559
2455
|
});
|
|
2560
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2561
2456
|
}
|
|
2562
2457
|
};
|
|
2563
2458
|
const deserializeAws_json1_1ListDelegatedServicesForAccountCommand = async (output, context) => {
|
|
@@ -2579,7 +2474,6 @@ const deserializeAws_json1_1ListDelegatedServicesForAccountCommandError = async
|
|
|
2579
2474
|
...output,
|
|
2580
2475
|
body: await parseBody(output.body, context),
|
|
2581
2476
|
};
|
|
2582
|
-
let response;
|
|
2583
2477
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2584
2478
|
switch (errorCode) {
|
|
2585
2479
|
case "AccessDeniedException":
|
|
@@ -2611,14 +2505,12 @@ const deserializeAws_json1_1ListDelegatedServicesForAccountCommandError = async
|
|
|
2611
2505
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
2612
2506
|
default:
|
|
2613
2507
|
const parsedBody = parsedOutput.body;
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
$metadata,
|
|
2508
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2509
|
+
output,
|
|
2510
|
+
parsedBody,
|
|
2511
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2512
|
+
errorCode,
|
|
2620
2513
|
});
|
|
2621
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2622
2514
|
}
|
|
2623
2515
|
};
|
|
2624
2516
|
const deserializeAws_json1_1ListHandshakesForAccountCommand = async (output, context) => {
|
|
@@ -2640,7 +2532,6 @@ const deserializeAws_json1_1ListHandshakesForAccountCommandError = async (output
|
|
|
2640
2532
|
...output,
|
|
2641
2533
|
body: await parseBody(output.body, context),
|
|
2642
2534
|
};
|
|
2643
|
-
let response;
|
|
2644
2535
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2645
2536
|
switch (errorCode) {
|
|
2646
2537
|
case "AccessDeniedException":
|
|
@@ -2660,14 +2551,12 @@ const deserializeAws_json1_1ListHandshakesForAccountCommandError = async (output
|
|
|
2660
2551
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2661
2552
|
default:
|
|
2662
2553
|
const parsedBody = parsedOutput.body;
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
$metadata,
|
|
2554
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2555
|
+
output,
|
|
2556
|
+
parsedBody,
|
|
2557
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2558
|
+
errorCode,
|
|
2669
2559
|
});
|
|
2670
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2671
2560
|
}
|
|
2672
2561
|
};
|
|
2673
2562
|
const deserializeAws_json1_1ListHandshakesForOrganizationCommand = async (output, context) => {
|
|
@@ -2689,7 +2578,6 @@ const deserializeAws_json1_1ListHandshakesForOrganizationCommandError = async (o
|
|
|
2689
2578
|
...output,
|
|
2690
2579
|
body: await parseBody(output.body, context),
|
|
2691
2580
|
};
|
|
2692
|
-
let response;
|
|
2693
2581
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2694
2582
|
switch (errorCode) {
|
|
2695
2583
|
case "AccessDeniedException":
|
|
@@ -2712,14 +2600,12 @@ const deserializeAws_json1_1ListHandshakesForOrganizationCommandError = async (o
|
|
|
2712
2600
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2713
2601
|
default:
|
|
2714
2602
|
const parsedBody = parsedOutput.body;
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
$metadata,
|
|
2603
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2604
|
+
output,
|
|
2605
|
+
parsedBody,
|
|
2606
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2607
|
+
errorCode,
|
|
2721
2608
|
});
|
|
2722
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2723
2609
|
}
|
|
2724
2610
|
};
|
|
2725
2611
|
const deserializeAws_json1_1ListOrganizationalUnitsForParentCommand = async (output, context) => {
|
|
@@ -2741,7 +2627,6 @@ const deserializeAws_json1_1ListOrganizationalUnitsForParentCommandError = async
|
|
|
2741
2627
|
...output,
|
|
2742
2628
|
body: await parseBody(output.body, context),
|
|
2743
2629
|
};
|
|
2744
|
-
let response;
|
|
2745
2630
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2746
2631
|
switch (errorCode) {
|
|
2747
2632
|
case "AccessDeniedException":
|
|
@@ -2764,14 +2649,12 @@ const deserializeAws_json1_1ListOrganizationalUnitsForParentCommandError = async
|
|
|
2764
2649
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2765
2650
|
default:
|
|
2766
2651
|
const parsedBody = parsedOutput.body;
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
$metadata,
|
|
2652
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2653
|
+
output,
|
|
2654
|
+
parsedBody,
|
|
2655
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2656
|
+
errorCode,
|
|
2773
2657
|
});
|
|
2774
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2775
2658
|
}
|
|
2776
2659
|
};
|
|
2777
2660
|
const deserializeAws_json1_1ListParentsCommand = async (output, context) => {
|
|
@@ -2793,7 +2676,6 @@ const deserializeAws_json1_1ListParentsCommandError = async (output, context) =>
|
|
|
2793
2676
|
...output,
|
|
2794
2677
|
body: await parseBody(output.body, context),
|
|
2795
2678
|
};
|
|
2796
|
-
let response;
|
|
2797
2679
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2798
2680
|
switch (errorCode) {
|
|
2799
2681
|
case "AccessDeniedException":
|
|
@@ -2816,14 +2698,12 @@ const deserializeAws_json1_1ListParentsCommandError = async (output, context) =>
|
|
|
2816
2698
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2817
2699
|
default:
|
|
2818
2700
|
const parsedBody = parsedOutput.body;
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
$metadata,
|
|
2701
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2702
|
+
output,
|
|
2703
|
+
parsedBody,
|
|
2704
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2705
|
+
errorCode,
|
|
2825
2706
|
});
|
|
2826
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2827
2707
|
}
|
|
2828
2708
|
};
|
|
2829
2709
|
const deserializeAws_json1_1ListPoliciesCommand = async (output, context) => {
|
|
@@ -2845,7 +2725,6 @@ const deserializeAws_json1_1ListPoliciesCommandError = async (output, context) =
|
|
|
2845
2725
|
...output,
|
|
2846
2726
|
body: await parseBody(output.body, context),
|
|
2847
2727
|
};
|
|
2848
|
-
let response;
|
|
2849
2728
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2850
2729
|
switch (errorCode) {
|
|
2851
2730
|
case "AccessDeniedException":
|
|
@@ -2868,14 +2747,12 @@ const deserializeAws_json1_1ListPoliciesCommandError = async (output, context) =
|
|
|
2868
2747
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
2869
2748
|
default:
|
|
2870
2749
|
const parsedBody = parsedOutput.body;
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
$metadata,
|
|
2750
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2751
|
+
output,
|
|
2752
|
+
parsedBody,
|
|
2753
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2754
|
+
errorCode,
|
|
2877
2755
|
});
|
|
2878
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2879
2756
|
}
|
|
2880
2757
|
};
|
|
2881
2758
|
const deserializeAws_json1_1ListPoliciesForTargetCommand = async (output, context) => {
|
|
@@ -2897,7 +2774,6 @@ const deserializeAws_json1_1ListPoliciesForTargetCommandError = async (output, c
|
|
|
2897
2774
|
...output,
|
|
2898
2775
|
body: await parseBody(output.body, context),
|
|
2899
2776
|
};
|
|
2900
|
-
let response;
|
|
2901
2777
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2902
2778
|
switch (errorCode) {
|
|
2903
2779
|
case "AccessDeniedException":
|
|
@@ -2923,14 +2799,12 @@ const deserializeAws_json1_1ListPoliciesForTargetCommandError = async (output, c
|
|
|
2923
2799
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
2924
2800
|
default:
|
|
2925
2801
|
const parsedBody = parsedOutput.body;
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
$metadata,
|
|
2802
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2803
|
+
output,
|
|
2804
|
+
parsedBody,
|
|
2805
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2806
|
+
errorCode,
|
|
2932
2807
|
});
|
|
2933
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2934
2808
|
}
|
|
2935
2809
|
};
|
|
2936
2810
|
const deserializeAws_json1_1ListRootsCommand = async (output, context) => {
|
|
@@ -2952,7 +2826,6 @@ const deserializeAws_json1_1ListRootsCommandError = async (output, context) => {
|
|
|
2952
2826
|
...output,
|
|
2953
2827
|
body: await parseBody(output.body, context),
|
|
2954
2828
|
};
|
|
2955
|
-
let response;
|
|
2956
2829
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2957
2830
|
switch (errorCode) {
|
|
2958
2831
|
case "AccessDeniedException":
|
|
@@ -2972,14 +2845,12 @@ const deserializeAws_json1_1ListRootsCommandError = async (output, context) => {
|
|
|
2972
2845
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2973
2846
|
default:
|
|
2974
2847
|
const parsedBody = parsedOutput.body;
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
$metadata,
|
|
2848
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2849
|
+
output,
|
|
2850
|
+
parsedBody,
|
|
2851
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2852
|
+
errorCode,
|
|
2981
2853
|
});
|
|
2982
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2983
2854
|
}
|
|
2984
2855
|
};
|
|
2985
2856
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -3001,7 +2872,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
3001
2872
|
...output,
|
|
3002
2873
|
body: await parseBody(output.body, context),
|
|
3003
2874
|
};
|
|
3004
|
-
let response;
|
|
3005
2875
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3006
2876
|
switch (errorCode) {
|
|
3007
2877
|
case "AccessDeniedException":
|
|
@@ -3024,14 +2894,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
3024
2894
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3025
2895
|
default:
|
|
3026
2896
|
const parsedBody = parsedOutput.body;
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
$metadata,
|
|
2897
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2898
|
+
output,
|
|
2899
|
+
parsedBody,
|
|
2900
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2901
|
+
errorCode,
|
|
3033
2902
|
});
|
|
3034
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3035
2903
|
}
|
|
3036
2904
|
};
|
|
3037
2905
|
const deserializeAws_json1_1ListTargetsForPolicyCommand = async (output, context) => {
|
|
@@ -3053,7 +2921,6 @@ const deserializeAws_json1_1ListTargetsForPolicyCommandError = async (output, co
|
|
|
3053
2921
|
...output,
|
|
3054
2922
|
body: await parseBody(output.body, context),
|
|
3055
2923
|
};
|
|
3056
|
-
let response;
|
|
3057
2924
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3058
2925
|
switch (errorCode) {
|
|
3059
2926
|
case "AccessDeniedException":
|
|
@@ -3079,14 +2946,12 @@ const deserializeAws_json1_1ListTargetsForPolicyCommandError = async (output, co
|
|
|
3079
2946
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
3080
2947
|
default:
|
|
3081
2948
|
const parsedBody = parsedOutput.body;
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
$metadata,
|
|
2949
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2950
|
+
output,
|
|
2951
|
+
parsedBody,
|
|
2952
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2953
|
+
errorCode,
|
|
3088
2954
|
});
|
|
3089
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3090
2955
|
}
|
|
3091
2956
|
};
|
|
3092
2957
|
const deserializeAws_json1_1MoveAccountCommand = async (output, context) => {
|
|
@@ -3105,7 +2970,6 @@ const deserializeAws_json1_1MoveAccountCommandError = async (output, context) =>
|
|
|
3105
2970
|
...output,
|
|
3106
2971
|
body: await parseBody(output.body, context),
|
|
3107
2972
|
};
|
|
3108
|
-
let response;
|
|
3109
2973
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3110
2974
|
switch (errorCode) {
|
|
3111
2975
|
case "AccessDeniedException":
|
|
@@ -3140,14 +3004,12 @@ const deserializeAws_json1_1MoveAccountCommandError = async (output, context) =>
|
|
|
3140
3004
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3141
3005
|
default:
|
|
3142
3006
|
const parsedBody = parsedOutput.body;
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
$metadata,
|
|
3007
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3008
|
+
output,
|
|
3009
|
+
parsedBody,
|
|
3010
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
3011
|
+
errorCode,
|
|
3149
3012
|
});
|
|
3150
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3151
3013
|
}
|
|
3152
3014
|
};
|
|
3153
3015
|
const deserializeAws_json1_1RegisterDelegatedAdministratorCommand = async (output, context) => {
|
|
@@ -3166,7 +3028,6 @@ const deserializeAws_json1_1RegisterDelegatedAdministratorCommandError = async (
|
|
|
3166
3028
|
...output,
|
|
3167
3029
|
body: await parseBody(output.body, context),
|
|
3168
3030
|
};
|
|
3169
|
-
let response;
|
|
3170
3031
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3171
3032
|
switch (errorCode) {
|
|
3172
3033
|
case "AccessDeniedException":
|
|
@@ -3201,14 +3062,12 @@ const deserializeAws_json1_1RegisterDelegatedAdministratorCommandError = async (
|
|
|
3201
3062
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
3202
3063
|
default:
|
|
3203
3064
|
const parsedBody = parsedOutput.body;
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
$metadata,
|
|
3065
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3066
|
+
output,
|
|
3067
|
+
parsedBody,
|
|
3068
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
3069
|
+
errorCode,
|
|
3210
3070
|
});
|
|
3211
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3212
3071
|
}
|
|
3213
3072
|
};
|
|
3214
3073
|
const deserializeAws_json1_1RemoveAccountFromOrganizationCommand = async (output, context) => {
|
|
@@ -3227,7 +3086,6 @@ const deserializeAws_json1_1RemoveAccountFromOrganizationCommandError = async (o
|
|
|
3227
3086
|
...output,
|
|
3228
3087
|
body: await parseBody(output.body, context),
|
|
3229
3088
|
};
|
|
3230
|
-
let response;
|
|
3231
3089
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3232
3090
|
switch (errorCode) {
|
|
3233
3091
|
case "AccessDeniedException":
|
|
@@ -3259,14 +3117,12 @@ const deserializeAws_json1_1RemoveAccountFromOrganizationCommandError = async (o
|
|
|
3259
3117
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3260
3118
|
default:
|
|
3261
3119
|
const parsedBody = parsedOutput.body;
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
$metadata,
|
|
3120
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3121
|
+
output,
|
|
3122
|
+
parsedBody,
|
|
3123
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
3124
|
+
errorCode,
|
|
3268
3125
|
});
|
|
3269
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3270
3126
|
}
|
|
3271
3127
|
};
|
|
3272
3128
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -3285,7 +3141,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3285
3141
|
...output,
|
|
3286
3142
|
body: await parseBody(output.body, context),
|
|
3287
3143
|
};
|
|
3288
|
-
let response;
|
|
3289
3144
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3290
3145
|
switch (errorCode) {
|
|
3291
3146
|
case "AccessDeniedException":
|
|
@@ -3314,14 +3169,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3314
3169
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3315
3170
|
default:
|
|
3316
3171
|
const parsedBody = parsedOutput.body;
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
$metadata,
|
|
3172
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3173
|
+
output,
|
|
3174
|
+
parsedBody,
|
|
3175
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
3176
|
+
errorCode,
|
|
3323
3177
|
});
|
|
3324
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3325
3178
|
}
|
|
3326
3179
|
};
|
|
3327
3180
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -3340,7 +3193,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3340
3193
|
...output,
|
|
3341
3194
|
body: await parseBody(output.body, context),
|
|
3342
3195
|
};
|
|
3343
|
-
let response;
|
|
3344
3196
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3345
3197
|
switch (errorCode) {
|
|
3346
3198
|
case "AccessDeniedException":
|
|
@@ -3369,14 +3221,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3369
3221
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3370
3222
|
default:
|
|
3371
3223
|
const parsedBody = parsedOutput.body;
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
$metadata,
|
|
3224
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3225
|
+
output,
|
|
3226
|
+
parsedBody,
|
|
3227
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
3228
|
+
errorCode,
|
|
3378
3229
|
});
|
|
3379
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3380
3230
|
}
|
|
3381
3231
|
};
|
|
3382
3232
|
const deserializeAws_json1_1UpdateOrganizationalUnitCommand = async (output, context) => {
|
|
@@ -3398,7 +3248,6 @@ const deserializeAws_json1_1UpdateOrganizationalUnitCommandError = async (output
|
|
|
3398
3248
|
...output,
|
|
3399
3249
|
body: await parseBody(output.body, context),
|
|
3400
3250
|
};
|
|
3401
|
-
let response;
|
|
3402
3251
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3403
3252
|
switch (errorCode) {
|
|
3404
3253
|
case "AccessDeniedException":
|
|
@@ -3427,14 +3276,12 @@ const deserializeAws_json1_1UpdateOrganizationalUnitCommandError = async (output
|
|
|
3427
3276
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3428
3277
|
default:
|
|
3429
3278
|
const parsedBody = parsedOutput.body;
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
$metadata,
|
|
3279
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3280
|
+
output,
|
|
3281
|
+
parsedBody,
|
|
3282
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
3283
|
+
errorCode,
|
|
3436
3284
|
});
|
|
3437
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3438
3285
|
}
|
|
3439
3286
|
};
|
|
3440
3287
|
const deserializeAws_json1_1UpdatePolicyCommand = async (output, context) => {
|
|
@@ -3456,7 +3303,6 @@ const deserializeAws_json1_1UpdatePolicyCommandError = async (output, context) =
|
|
|
3456
3303
|
...output,
|
|
3457
3304
|
body: await parseBody(output.body, context),
|
|
3458
3305
|
};
|
|
3459
|
-
let response;
|
|
3460
3306
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3461
3307
|
switch (errorCode) {
|
|
3462
3308
|
case "AccessDeniedException":
|
|
@@ -3497,14 +3343,12 @@ const deserializeAws_json1_1UpdatePolicyCommandError = async (output, context) =
|
|
|
3497
3343
|
throw await deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse(parsedOutput, context);
|
|
3498
3344
|
default:
|
|
3499
3345
|
const parsedBody = parsedOutput.body;
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
$metadata,
|
|
3346
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3347
|
+
output,
|
|
3348
|
+
parsedBody,
|
|
3349
|
+
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
3350
|
+
errorCode,
|
|
3506
3351
|
});
|
|
3507
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3508
3352
|
}
|
|
3509
3353
|
};
|
|
3510
3354
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -3955,9 +3799,6 @@ const serializeAws_json1_1CreateAccountStates = (input, context) => {
|
|
|
3955
3799
|
return input
|
|
3956
3800
|
.filter((e) => e != null)
|
|
3957
3801
|
.map((entry) => {
|
|
3958
|
-
if (entry === null) {
|
|
3959
|
-
return null;
|
|
3960
|
-
}
|
|
3961
3802
|
return entry;
|
|
3962
3803
|
});
|
|
3963
3804
|
};
|
|
@@ -4231,9 +4072,6 @@ const serializeAws_json1_1TagKeys = (input, context) => {
|
|
|
4231
4072
|
return input
|
|
4232
4073
|
.filter((e) => e != null)
|
|
4233
4074
|
.map((entry) => {
|
|
4234
|
-
if (entry === null) {
|
|
4235
|
-
return null;
|
|
4236
|
-
}
|
|
4237
4075
|
return entry;
|
|
4238
4076
|
});
|
|
4239
4077
|
};
|
|
@@ -4247,9 +4085,6 @@ const serializeAws_json1_1Tags = (input, context) => {
|
|
|
4247
4085
|
return input
|
|
4248
4086
|
.filter((e) => e != null)
|
|
4249
4087
|
.map((entry) => {
|
|
4250
|
-
if (entry === null) {
|
|
4251
|
-
return null;
|
|
4252
|
-
}
|
|
4253
4088
|
return serializeAws_json1_1Tag(entry, context);
|
|
4254
4089
|
});
|
|
4255
4090
|
};
|