@aws-sdk/client-organizations 3.180.0 → 3.181.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 +17 -0
- package/dist-cjs/protocols/Aws_json1_1.js +199 -193
- package/dist-es/protocols/Aws_json1_1.js +389 -376
- package/package.json +3 -3
|
@@ -541,19 +541,19 @@ exports.deserializeAws_json1_1AcceptHandshakeCommand = deserializeAws_json1_1Acc
|
|
|
541
541
|
const deserializeAws_json1_1AcceptHandshakeCommandError = async (output, context) => {
|
|
542
542
|
const parsedOutput = {
|
|
543
543
|
...output,
|
|
544
|
-
body: await
|
|
544
|
+
body: await parseErrorBody(output.body, context),
|
|
545
545
|
};
|
|
546
546
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
547
547
|
switch (errorCode) {
|
|
548
|
+
case "AWSOrganizationsNotInUseException":
|
|
549
|
+
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
550
|
+
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
548
551
|
case "AccessDeniedException":
|
|
549
552
|
case "com.amazonaws.organizations#AccessDeniedException":
|
|
550
553
|
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
551
554
|
case "AccessDeniedForDependencyException":
|
|
552
555
|
case "com.amazonaws.organizations#AccessDeniedForDependencyException":
|
|
553
556
|
throw await deserializeAws_json1_1AccessDeniedForDependencyExceptionResponse(parsedOutput, context);
|
|
554
|
-
case "AWSOrganizationsNotInUseException":
|
|
555
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
556
|
-
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
557
557
|
case "ConcurrentModificationException":
|
|
558
558
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
559
559
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -602,16 +602,16 @@ exports.deserializeAws_json1_1AttachPolicyCommand = deserializeAws_json1_1Attach
|
|
|
602
602
|
const deserializeAws_json1_1AttachPolicyCommandError = async (output, context) => {
|
|
603
603
|
const parsedOutput = {
|
|
604
604
|
...output,
|
|
605
|
-
body: await
|
|
605
|
+
body: await parseErrorBody(output.body, context),
|
|
606
606
|
};
|
|
607
607
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
608
608
|
switch (errorCode) {
|
|
609
|
-
case "AccessDeniedException":
|
|
610
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
611
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
612
609
|
case "AWSOrganizationsNotInUseException":
|
|
613
610
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
614
611
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
612
|
+
case "AccessDeniedException":
|
|
613
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
614
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
615
615
|
case "ConcurrentModificationException":
|
|
616
616
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
617
617
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -672,7 +672,7 @@ exports.deserializeAws_json1_1CancelHandshakeCommand = deserializeAws_json1_1Can
|
|
|
672
672
|
const deserializeAws_json1_1CancelHandshakeCommandError = async (output, context) => {
|
|
673
673
|
const parsedOutput = {
|
|
674
674
|
...output,
|
|
675
|
-
body: await
|
|
675
|
+
body: await parseErrorBody(output.body, context),
|
|
676
676
|
};
|
|
677
677
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
678
678
|
switch (errorCode) {
|
|
@@ -724,10 +724,13 @@ exports.deserializeAws_json1_1CloseAccountCommand = deserializeAws_json1_1CloseA
|
|
|
724
724
|
const deserializeAws_json1_1CloseAccountCommandError = async (output, context) => {
|
|
725
725
|
const parsedOutput = {
|
|
726
726
|
...output,
|
|
727
|
-
body: await
|
|
727
|
+
body: await parseErrorBody(output.body, context),
|
|
728
728
|
};
|
|
729
729
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
730
|
switch (errorCode) {
|
|
731
|
+
case "AWSOrganizationsNotInUseException":
|
|
732
|
+
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
733
|
+
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
731
734
|
case "AccessDeniedException":
|
|
732
735
|
case "com.amazonaws.organizations#AccessDeniedException":
|
|
733
736
|
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
@@ -737,9 +740,6 @@ const deserializeAws_json1_1CloseAccountCommandError = async (output, context) =
|
|
|
737
740
|
case "AccountNotFoundException":
|
|
738
741
|
case "com.amazonaws.organizations#AccountNotFoundException":
|
|
739
742
|
throw await deserializeAws_json1_1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
740
|
-
case "AWSOrganizationsNotInUseException":
|
|
741
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
742
|
-
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
743
743
|
case "ConcurrentModificationException":
|
|
744
744
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
745
745
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -788,16 +788,16 @@ exports.deserializeAws_json1_1CreateAccountCommand = deserializeAws_json1_1Creat
|
|
|
788
788
|
const deserializeAws_json1_1CreateAccountCommandError = async (output, context) => {
|
|
789
789
|
const parsedOutput = {
|
|
790
790
|
...output,
|
|
791
|
-
body: await
|
|
791
|
+
body: await parseErrorBody(output.body, context),
|
|
792
792
|
};
|
|
793
793
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
794
794
|
switch (errorCode) {
|
|
795
|
-
case "AccessDeniedException":
|
|
796
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
797
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
798
795
|
case "AWSOrganizationsNotInUseException":
|
|
799
796
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
800
797
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
798
|
+
case "AccessDeniedException":
|
|
799
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
800
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
801
801
|
case "ConcurrentModificationException":
|
|
802
802
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
803
803
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -846,16 +846,16 @@ exports.deserializeAws_json1_1CreateGovCloudAccountCommand = deserializeAws_json
|
|
|
846
846
|
const deserializeAws_json1_1CreateGovCloudAccountCommandError = async (output, context) => {
|
|
847
847
|
const parsedOutput = {
|
|
848
848
|
...output,
|
|
849
|
-
body: await
|
|
849
|
+
body: await parseErrorBody(output.body, context),
|
|
850
850
|
};
|
|
851
851
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
852
852
|
switch (errorCode) {
|
|
853
|
-
case "AccessDeniedException":
|
|
854
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
855
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
856
853
|
case "AWSOrganizationsNotInUseException":
|
|
857
854
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
858
855
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
856
|
+
case "AccessDeniedException":
|
|
857
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
858
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
859
859
|
case "ConcurrentModificationException":
|
|
860
860
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
861
861
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -904,7 +904,7 @@ exports.deserializeAws_json1_1CreateOrganizationCommand = deserializeAws_json1_1
|
|
|
904
904
|
const deserializeAws_json1_1CreateOrganizationCommandError = async (output, context) => {
|
|
905
905
|
const parsedOutput = {
|
|
906
906
|
...output,
|
|
907
|
-
body: await
|
|
907
|
+
body: await parseErrorBody(output.body, context),
|
|
908
908
|
};
|
|
909
909
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
910
910
|
switch (errorCode) {
|
|
@@ -959,16 +959,16 @@ exports.deserializeAws_json1_1CreateOrganizationalUnitCommand = deserializeAws_j
|
|
|
959
959
|
const deserializeAws_json1_1CreateOrganizationalUnitCommandError = async (output, context) => {
|
|
960
960
|
const parsedOutput = {
|
|
961
961
|
...output,
|
|
962
|
-
body: await
|
|
962
|
+
body: await parseErrorBody(output.body, context),
|
|
963
963
|
};
|
|
964
964
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
965
965
|
switch (errorCode) {
|
|
966
|
-
case "AccessDeniedException":
|
|
967
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
968
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
969
966
|
case "AWSOrganizationsNotInUseException":
|
|
970
967
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
971
968
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
969
|
+
case "AccessDeniedException":
|
|
970
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
971
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
972
972
|
case "ConcurrentModificationException":
|
|
973
973
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
974
974
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -1017,16 +1017,16 @@ exports.deserializeAws_json1_1CreatePolicyCommand = deserializeAws_json1_1Create
|
|
|
1017
1017
|
const deserializeAws_json1_1CreatePolicyCommandError = async (output, context) => {
|
|
1018
1018
|
const parsedOutput = {
|
|
1019
1019
|
...output,
|
|
1020
|
-
body: await
|
|
1020
|
+
body: await parseErrorBody(output.body, context),
|
|
1021
1021
|
};
|
|
1022
1022
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1023
1023
|
switch (errorCode) {
|
|
1024
|
-
case "AccessDeniedException":
|
|
1025
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1026
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1027
1024
|
case "AWSOrganizationsNotInUseException":
|
|
1028
1025
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1029
1026
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
1027
|
+
case "AccessDeniedException":
|
|
1028
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1029
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1030
1030
|
case "ConcurrentModificationException":
|
|
1031
1031
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1032
1032
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -1081,7 +1081,7 @@ exports.deserializeAws_json1_1DeclineHandshakeCommand = deserializeAws_json1_1De
|
|
|
1081
1081
|
const deserializeAws_json1_1DeclineHandshakeCommandError = async (output, context) => {
|
|
1082
1082
|
const parsedOutput = {
|
|
1083
1083
|
...output,
|
|
1084
|
-
body: await
|
|
1084
|
+
body: await parseErrorBody(output.body, context),
|
|
1085
1085
|
};
|
|
1086
1086
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1087
1087
|
switch (errorCode) {
|
|
@@ -1133,16 +1133,16 @@ exports.deserializeAws_json1_1DeleteOrganizationCommand = deserializeAws_json1_1
|
|
|
1133
1133
|
const deserializeAws_json1_1DeleteOrganizationCommandError = async (output, context) => {
|
|
1134
1134
|
const parsedOutput = {
|
|
1135
1135
|
...output,
|
|
1136
|
-
body: await
|
|
1136
|
+
body: await parseErrorBody(output.body, context),
|
|
1137
1137
|
};
|
|
1138
1138
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1139
1139
|
switch (errorCode) {
|
|
1140
|
-
case "AccessDeniedException":
|
|
1141
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1142
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1143
1140
|
case "AWSOrganizationsNotInUseException":
|
|
1144
1141
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1145
1142
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
1143
|
+
case "AccessDeniedException":
|
|
1144
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1145
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1146
1146
|
case "ConcurrentModificationException":
|
|
1147
1147
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1148
1148
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -1182,16 +1182,16 @@ exports.deserializeAws_json1_1DeleteOrganizationalUnitCommand = deserializeAws_j
|
|
|
1182
1182
|
const deserializeAws_json1_1DeleteOrganizationalUnitCommandError = async (output, context) => {
|
|
1183
1183
|
const parsedOutput = {
|
|
1184
1184
|
...output,
|
|
1185
|
-
body: await
|
|
1185
|
+
body: await parseErrorBody(output.body, context),
|
|
1186
1186
|
};
|
|
1187
1187
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1188
1188
|
switch (errorCode) {
|
|
1189
|
-
case "AccessDeniedException":
|
|
1190
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1191
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1192
1189
|
case "AWSOrganizationsNotInUseException":
|
|
1193
1190
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1194
1191
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
1192
|
+
case "AccessDeniedException":
|
|
1193
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1194
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1195
1195
|
case "ConcurrentModificationException":
|
|
1196
1196
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1197
1197
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -1234,16 +1234,16 @@ exports.deserializeAws_json1_1DeletePolicyCommand = deserializeAws_json1_1Delete
|
|
|
1234
1234
|
const deserializeAws_json1_1DeletePolicyCommandError = async (output, context) => {
|
|
1235
1235
|
const parsedOutput = {
|
|
1236
1236
|
...output,
|
|
1237
|
-
body: await
|
|
1237
|
+
body: await parseErrorBody(output.body, context),
|
|
1238
1238
|
};
|
|
1239
1239
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1240
1240
|
switch (errorCode) {
|
|
1241
|
-
case "AccessDeniedException":
|
|
1242
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1243
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1244
1241
|
case "AWSOrganizationsNotInUseException":
|
|
1245
1242
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1246
1243
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
1244
|
+
case "AccessDeniedException":
|
|
1245
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1246
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1247
1247
|
case "ConcurrentModificationException":
|
|
1248
1248
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1249
1249
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -1289,10 +1289,13 @@ exports.deserializeAws_json1_1DeregisterDelegatedAdministratorCommand = deserial
|
|
|
1289
1289
|
const deserializeAws_json1_1DeregisterDelegatedAdministratorCommandError = async (output, context) => {
|
|
1290
1290
|
const parsedOutput = {
|
|
1291
1291
|
...output,
|
|
1292
|
-
body: await
|
|
1292
|
+
body: await parseErrorBody(output.body, context),
|
|
1293
1293
|
};
|
|
1294
1294
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1295
1295
|
switch (errorCode) {
|
|
1296
|
+
case "AWSOrganizationsNotInUseException":
|
|
1297
|
+
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1298
|
+
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
1296
1299
|
case "AccessDeniedException":
|
|
1297
1300
|
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1298
1301
|
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
@@ -1302,9 +1305,6 @@ const deserializeAws_json1_1DeregisterDelegatedAdministratorCommandError = async
|
|
|
1302
1305
|
case "AccountNotRegisteredException":
|
|
1303
1306
|
case "com.amazonaws.organizations#AccountNotRegisteredException":
|
|
1304
1307
|
throw await deserializeAws_json1_1AccountNotRegisteredExceptionResponse(parsedOutput, context);
|
|
1305
|
-
case "AWSOrganizationsNotInUseException":
|
|
1306
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1307
|
-
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
1308
1308
|
case "ConcurrentModificationException":
|
|
1309
1309
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1310
1310
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -1350,19 +1350,19 @@ exports.deserializeAws_json1_1DescribeAccountCommand = deserializeAws_json1_1Des
|
|
|
1350
1350
|
const deserializeAws_json1_1DescribeAccountCommandError = async (output, context) => {
|
|
1351
1351
|
const parsedOutput = {
|
|
1352
1352
|
...output,
|
|
1353
|
-
body: await
|
|
1353
|
+
body: await parseErrorBody(output.body, context),
|
|
1354
1354
|
};
|
|
1355
1355
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1356
1356
|
switch (errorCode) {
|
|
1357
|
+
case "AWSOrganizationsNotInUseException":
|
|
1358
|
+
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1359
|
+
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
1357
1360
|
case "AccessDeniedException":
|
|
1358
1361
|
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1359
1362
|
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1360
1363
|
case "AccountNotFoundException":
|
|
1361
1364
|
case "com.amazonaws.organizations#AccountNotFoundException":
|
|
1362
1365
|
throw await deserializeAws_json1_1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
1363
|
-
case "AWSOrganizationsNotInUseException":
|
|
1364
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1365
|
-
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
1366
1366
|
case "InvalidInputException":
|
|
1367
1367
|
case "com.amazonaws.organizations#InvalidInputException":
|
|
1368
1368
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
@@ -1399,16 +1399,16 @@ exports.deserializeAws_json1_1DescribeCreateAccountStatusCommand = deserializeAw
|
|
|
1399
1399
|
const deserializeAws_json1_1DescribeCreateAccountStatusCommandError = async (output, context) => {
|
|
1400
1400
|
const parsedOutput = {
|
|
1401
1401
|
...output,
|
|
1402
|
-
body: await
|
|
1402
|
+
body: await parseErrorBody(output.body, context),
|
|
1403
1403
|
};
|
|
1404
1404
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1405
1405
|
switch (errorCode) {
|
|
1406
|
-
case "AccessDeniedException":
|
|
1407
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1408
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1409
1406
|
case "AWSOrganizationsNotInUseException":
|
|
1410
1407
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1411
1408
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
1409
|
+
case "AccessDeniedException":
|
|
1410
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1411
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1412
1412
|
case "CreateAccountStatusNotFoundException":
|
|
1413
1413
|
case "com.amazonaws.organizations#CreateAccountStatusNotFoundException":
|
|
1414
1414
|
throw await deserializeAws_json1_1CreateAccountStatusNotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -1451,16 +1451,16 @@ exports.deserializeAws_json1_1DescribeEffectivePolicyCommand = deserializeAws_js
|
|
|
1451
1451
|
const deserializeAws_json1_1DescribeEffectivePolicyCommandError = async (output, context) => {
|
|
1452
1452
|
const parsedOutput = {
|
|
1453
1453
|
...output,
|
|
1454
|
-
body: await
|
|
1454
|
+
body: await parseErrorBody(output.body, context),
|
|
1455
1455
|
};
|
|
1456
1456
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1457
1457
|
switch (errorCode) {
|
|
1458
|
-
case "AccessDeniedException":
|
|
1459
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1460
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1461
1458
|
case "AWSOrganizationsNotInUseException":
|
|
1462
1459
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1463
1460
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
1461
|
+
case "AccessDeniedException":
|
|
1462
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1463
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1464
1464
|
case "ConstraintViolationException":
|
|
1465
1465
|
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
1466
1466
|
throw await deserializeAws_json1_1ConstraintViolationExceptionResponse(parsedOutput, context);
|
|
@@ -1509,7 +1509,7 @@ exports.deserializeAws_json1_1DescribeHandshakeCommand = deserializeAws_json1_1D
|
|
|
1509
1509
|
const deserializeAws_json1_1DescribeHandshakeCommandError = async (output, context) => {
|
|
1510
1510
|
const parsedOutput = {
|
|
1511
1511
|
...output,
|
|
1512
|
-
body: await
|
|
1512
|
+
body: await parseErrorBody(output.body, context),
|
|
1513
1513
|
};
|
|
1514
1514
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1515
1515
|
switch (errorCode) {
|
|
@@ -1558,16 +1558,16 @@ exports.deserializeAws_json1_1DescribeOrganizationCommand = deserializeAws_json1
|
|
|
1558
1558
|
const deserializeAws_json1_1DescribeOrganizationCommandError = async (output, context) => {
|
|
1559
1559
|
const parsedOutput = {
|
|
1560
1560
|
...output,
|
|
1561
|
-
body: await
|
|
1561
|
+
body: await parseErrorBody(output.body, context),
|
|
1562
1562
|
};
|
|
1563
1563
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1564
1564
|
switch (errorCode) {
|
|
1565
|
-
case "AccessDeniedException":
|
|
1566
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1567
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1568
1565
|
case "AWSOrganizationsNotInUseException":
|
|
1569
1566
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1570
1567
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
1568
|
+
case "AccessDeniedException":
|
|
1569
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1570
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1571
1571
|
case "ConcurrentModificationException":
|
|
1572
1572
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1573
1573
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -1604,16 +1604,16 @@ exports.deserializeAws_json1_1DescribeOrganizationalUnitCommand = deserializeAws
|
|
|
1604
1604
|
const deserializeAws_json1_1DescribeOrganizationalUnitCommandError = async (output, context) => {
|
|
1605
1605
|
const parsedOutput = {
|
|
1606
1606
|
...output,
|
|
1607
|
-
body: await
|
|
1607
|
+
body: await parseErrorBody(output.body, context),
|
|
1608
1608
|
};
|
|
1609
1609
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1610
1610
|
switch (errorCode) {
|
|
1611
|
-
case "AccessDeniedException":
|
|
1612
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1613
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1614
1611
|
case "AWSOrganizationsNotInUseException":
|
|
1615
1612
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1616
1613
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
1614
|
+
case "AccessDeniedException":
|
|
1615
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1616
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1617
1617
|
case "InvalidInputException":
|
|
1618
1618
|
case "com.amazonaws.organizations#InvalidInputException":
|
|
1619
1619
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
@@ -1653,16 +1653,16 @@ exports.deserializeAws_json1_1DescribePolicyCommand = deserializeAws_json1_1Desc
|
|
|
1653
1653
|
const deserializeAws_json1_1DescribePolicyCommandError = async (output, context) => {
|
|
1654
1654
|
const parsedOutput = {
|
|
1655
1655
|
...output,
|
|
1656
|
-
body: await
|
|
1656
|
+
body: await parseErrorBody(output.body, context),
|
|
1657
1657
|
};
|
|
1658
1658
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1659
1659
|
switch (errorCode) {
|
|
1660
|
-
case "AccessDeniedException":
|
|
1661
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1662
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1663
1660
|
case "AWSOrganizationsNotInUseException":
|
|
1664
1661
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1665
1662
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
1663
|
+
case "AccessDeniedException":
|
|
1664
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1665
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1666
1666
|
case "InvalidInputException":
|
|
1667
1667
|
case "com.amazonaws.organizations#InvalidInputException":
|
|
1668
1668
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
@@ -1702,16 +1702,16 @@ exports.deserializeAws_json1_1DetachPolicyCommand = deserializeAws_json1_1Detach
|
|
|
1702
1702
|
const deserializeAws_json1_1DetachPolicyCommandError = async (output, context) => {
|
|
1703
1703
|
const parsedOutput = {
|
|
1704
1704
|
...output,
|
|
1705
|
-
body: await
|
|
1705
|
+
body: await parseErrorBody(output.body, context),
|
|
1706
1706
|
};
|
|
1707
1707
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1708
1708
|
switch (errorCode) {
|
|
1709
|
-
case "AccessDeniedException":
|
|
1710
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1711
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1712
1709
|
case "AWSOrganizationsNotInUseException":
|
|
1713
1710
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1714
1711
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
1712
|
+
case "AccessDeniedException":
|
|
1713
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1714
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1715
1715
|
case "ConcurrentModificationException":
|
|
1716
1716
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1717
1717
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -1766,16 +1766,16 @@ exports.deserializeAws_json1_1DisableAWSServiceAccessCommand = deserializeAws_js
|
|
|
1766
1766
|
const deserializeAws_json1_1DisableAWSServiceAccessCommandError = async (output, context) => {
|
|
1767
1767
|
const parsedOutput = {
|
|
1768
1768
|
...output,
|
|
1769
|
-
body: await
|
|
1769
|
+
body: await parseErrorBody(output.body, context),
|
|
1770
1770
|
};
|
|
1771
1771
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1772
1772
|
switch (errorCode) {
|
|
1773
|
-
case "AccessDeniedException":
|
|
1774
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1775
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1776
1773
|
case "AWSOrganizationsNotInUseException":
|
|
1777
1774
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1778
1775
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
1776
|
+
case "AccessDeniedException":
|
|
1777
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1778
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1779
1779
|
case "ConcurrentModificationException":
|
|
1780
1780
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1781
1781
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -1821,16 +1821,16 @@ exports.deserializeAws_json1_1DisablePolicyTypeCommand = deserializeAws_json1_1D
|
|
|
1821
1821
|
const deserializeAws_json1_1DisablePolicyTypeCommandError = async (output, context) => {
|
|
1822
1822
|
const parsedOutput = {
|
|
1823
1823
|
...output,
|
|
1824
|
-
body: await
|
|
1824
|
+
body: await parseErrorBody(output.body, context),
|
|
1825
1825
|
};
|
|
1826
1826
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1827
1827
|
switch (errorCode) {
|
|
1828
|
-
case "AccessDeniedException":
|
|
1829
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1830
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1831
1828
|
case "AWSOrganizationsNotInUseException":
|
|
1832
1829
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1833
1830
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
1831
|
+
case "AccessDeniedException":
|
|
1832
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1833
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1834
1834
|
case "ConcurrentModificationException":
|
|
1835
1835
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1836
1836
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -1885,16 +1885,16 @@ exports.deserializeAws_json1_1EnableAllFeaturesCommand = deserializeAws_json1_1E
|
|
|
1885
1885
|
const deserializeAws_json1_1EnableAllFeaturesCommandError = async (output, context) => {
|
|
1886
1886
|
const parsedOutput = {
|
|
1887
1887
|
...output,
|
|
1888
|
-
body: await
|
|
1888
|
+
body: await parseErrorBody(output.body, context),
|
|
1889
1889
|
};
|
|
1890
1890
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1891
1891
|
switch (errorCode) {
|
|
1892
|
-
case "AccessDeniedException":
|
|
1893
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1894
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1895
1892
|
case "AWSOrganizationsNotInUseException":
|
|
1896
1893
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1897
1894
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
1895
|
+
case "AccessDeniedException":
|
|
1896
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1897
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1898
1898
|
case "ConcurrentModificationException":
|
|
1899
1899
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1900
1900
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -1934,16 +1934,16 @@ exports.deserializeAws_json1_1EnableAWSServiceAccessCommand = deserializeAws_jso
|
|
|
1934
1934
|
const deserializeAws_json1_1EnableAWSServiceAccessCommandError = async (output, context) => {
|
|
1935
1935
|
const parsedOutput = {
|
|
1936
1936
|
...output,
|
|
1937
|
-
body: await
|
|
1937
|
+
body: await parseErrorBody(output.body, context),
|
|
1938
1938
|
};
|
|
1939
1939
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1940
1940
|
switch (errorCode) {
|
|
1941
|
-
case "AccessDeniedException":
|
|
1942
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1943
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1944
1941
|
case "AWSOrganizationsNotInUseException":
|
|
1945
1942
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1946
1943
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
1944
|
+
case "AccessDeniedException":
|
|
1945
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1946
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1947
1947
|
case "ConcurrentModificationException":
|
|
1948
1948
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1949
1949
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -1989,16 +1989,16 @@ exports.deserializeAws_json1_1EnablePolicyTypeCommand = deserializeAws_json1_1En
|
|
|
1989
1989
|
const deserializeAws_json1_1EnablePolicyTypeCommandError = async (output, context) => {
|
|
1990
1990
|
const parsedOutput = {
|
|
1991
1991
|
...output,
|
|
1992
|
-
body: await
|
|
1992
|
+
body: await parseErrorBody(output.body, context),
|
|
1993
1993
|
};
|
|
1994
1994
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1995
1995
|
switch (errorCode) {
|
|
1996
|
-
case "AccessDeniedException":
|
|
1997
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1998
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1999
1996
|
case "AWSOrganizationsNotInUseException":
|
|
2000
1997
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2001
1998
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
1999
|
+
case "AccessDeniedException":
|
|
2000
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2001
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2002
2002
|
case "ConcurrentModificationException":
|
|
2003
2003
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2004
2004
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -2056,19 +2056,19 @@ exports.deserializeAws_json1_1InviteAccountToOrganizationCommand = deserializeAw
|
|
|
2056
2056
|
const deserializeAws_json1_1InviteAccountToOrganizationCommandError = async (output, context) => {
|
|
2057
2057
|
const parsedOutput = {
|
|
2058
2058
|
...output,
|
|
2059
|
-
body: await
|
|
2059
|
+
body: await parseErrorBody(output.body, context),
|
|
2060
2060
|
};
|
|
2061
2061
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2062
2062
|
switch (errorCode) {
|
|
2063
|
+
case "AWSOrganizationsNotInUseException":
|
|
2064
|
+
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2065
|
+
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
2063
2066
|
case "AccessDeniedException":
|
|
2064
2067
|
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2065
2068
|
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2066
2069
|
case "AccountOwnerNotVerifiedException":
|
|
2067
2070
|
case "com.amazonaws.organizations#AccountOwnerNotVerifiedException":
|
|
2068
2071
|
throw await deserializeAws_json1_1AccountOwnerNotVerifiedExceptionResponse(parsedOutput, context);
|
|
2069
|
-
case "AWSOrganizationsNotInUseException":
|
|
2070
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2071
|
-
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
2072
2072
|
case "ConcurrentModificationException":
|
|
2073
2073
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2074
2074
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -2117,19 +2117,19 @@ exports.deserializeAws_json1_1LeaveOrganizationCommand = deserializeAws_json1_1L
|
|
|
2117
2117
|
const deserializeAws_json1_1LeaveOrganizationCommandError = async (output, context) => {
|
|
2118
2118
|
const parsedOutput = {
|
|
2119
2119
|
...output,
|
|
2120
|
-
body: await
|
|
2120
|
+
body: await parseErrorBody(output.body, context),
|
|
2121
2121
|
};
|
|
2122
2122
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2123
2123
|
switch (errorCode) {
|
|
2124
|
+
case "AWSOrganizationsNotInUseException":
|
|
2125
|
+
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2126
|
+
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
2124
2127
|
case "AccessDeniedException":
|
|
2125
2128
|
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2126
2129
|
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2127
2130
|
case "AccountNotFoundException":
|
|
2128
2131
|
case "com.amazonaws.organizations#AccountNotFoundException":
|
|
2129
2132
|
throw await deserializeAws_json1_1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
2130
|
-
case "AWSOrganizationsNotInUseException":
|
|
2131
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2132
|
-
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
2133
2133
|
case "ConcurrentModificationException":
|
|
2134
2134
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2135
2135
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -2175,16 +2175,16 @@ exports.deserializeAws_json1_1ListAccountsCommand = deserializeAws_json1_1ListAc
|
|
|
2175
2175
|
const deserializeAws_json1_1ListAccountsCommandError = async (output, context) => {
|
|
2176
2176
|
const parsedOutput = {
|
|
2177
2177
|
...output,
|
|
2178
|
-
body: await
|
|
2178
|
+
body: await parseErrorBody(output.body, context),
|
|
2179
2179
|
};
|
|
2180
2180
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2181
2181
|
switch (errorCode) {
|
|
2182
|
-
case "AccessDeniedException":
|
|
2183
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2184
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2185
2182
|
case "AWSOrganizationsNotInUseException":
|
|
2186
2183
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2187
2184
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
2185
|
+
case "AccessDeniedException":
|
|
2186
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2187
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2188
2188
|
case "InvalidInputException":
|
|
2189
2189
|
case "com.amazonaws.organizations#InvalidInputException":
|
|
2190
2190
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
@@ -2221,16 +2221,16 @@ exports.deserializeAws_json1_1ListAccountsForParentCommand = deserializeAws_json
|
|
|
2221
2221
|
const deserializeAws_json1_1ListAccountsForParentCommandError = async (output, context) => {
|
|
2222
2222
|
const parsedOutput = {
|
|
2223
2223
|
...output,
|
|
2224
|
-
body: await
|
|
2224
|
+
body: await parseErrorBody(output.body, context),
|
|
2225
2225
|
};
|
|
2226
2226
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2227
2227
|
switch (errorCode) {
|
|
2228
|
-
case "AccessDeniedException":
|
|
2229
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2230
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2231
2228
|
case "AWSOrganizationsNotInUseException":
|
|
2232
2229
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2233
2230
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
2231
|
+
case "AccessDeniedException":
|
|
2232
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2233
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2234
2234
|
case "InvalidInputException":
|
|
2235
2235
|
case "com.amazonaws.organizations#InvalidInputException":
|
|
2236
2236
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
@@ -2270,16 +2270,16 @@ exports.deserializeAws_json1_1ListAWSServiceAccessForOrganizationCommand = deser
|
|
|
2270
2270
|
const deserializeAws_json1_1ListAWSServiceAccessForOrganizationCommandError = async (output, context) => {
|
|
2271
2271
|
const parsedOutput = {
|
|
2272
2272
|
...output,
|
|
2273
|
-
body: await
|
|
2273
|
+
body: await parseErrorBody(output.body, context),
|
|
2274
2274
|
};
|
|
2275
2275
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2276
2276
|
switch (errorCode) {
|
|
2277
|
-
case "AccessDeniedException":
|
|
2278
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2279
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2280
2277
|
case "AWSOrganizationsNotInUseException":
|
|
2281
2278
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2282
2279
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
2280
|
+
case "AccessDeniedException":
|
|
2281
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2282
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2283
2283
|
case "ConstraintViolationException":
|
|
2284
2284
|
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
2285
2285
|
throw await deserializeAws_json1_1ConstraintViolationExceptionResponse(parsedOutput, context);
|
|
@@ -2322,16 +2322,16 @@ exports.deserializeAws_json1_1ListChildrenCommand = deserializeAws_json1_1ListCh
|
|
|
2322
2322
|
const deserializeAws_json1_1ListChildrenCommandError = async (output, context) => {
|
|
2323
2323
|
const parsedOutput = {
|
|
2324
2324
|
...output,
|
|
2325
|
-
body: await
|
|
2325
|
+
body: await parseErrorBody(output.body, context),
|
|
2326
2326
|
};
|
|
2327
2327
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2328
2328
|
switch (errorCode) {
|
|
2329
|
-
case "AccessDeniedException":
|
|
2330
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2331
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2332
2329
|
case "AWSOrganizationsNotInUseException":
|
|
2333
2330
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2334
2331
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
2332
|
+
case "AccessDeniedException":
|
|
2333
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2334
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2335
2335
|
case "InvalidInputException":
|
|
2336
2336
|
case "com.amazonaws.organizations#InvalidInputException":
|
|
2337
2337
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
@@ -2371,16 +2371,16 @@ exports.deserializeAws_json1_1ListCreateAccountStatusCommand = deserializeAws_js
|
|
|
2371
2371
|
const deserializeAws_json1_1ListCreateAccountStatusCommandError = async (output, context) => {
|
|
2372
2372
|
const parsedOutput = {
|
|
2373
2373
|
...output,
|
|
2374
|
-
body: await
|
|
2374
|
+
body: await parseErrorBody(output.body, context),
|
|
2375
2375
|
};
|
|
2376
2376
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2377
2377
|
switch (errorCode) {
|
|
2378
|
-
case "AccessDeniedException":
|
|
2379
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2380
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2381
2378
|
case "AWSOrganizationsNotInUseException":
|
|
2382
2379
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2383
2380
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
2381
|
+
case "AccessDeniedException":
|
|
2382
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2383
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2384
2384
|
case "InvalidInputException":
|
|
2385
2385
|
case "com.amazonaws.organizations#InvalidInputException":
|
|
2386
2386
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
@@ -2420,16 +2420,16 @@ exports.deserializeAws_json1_1ListDelegatedAdministratorsCommand = deserializeAw
|
|
|
2420
2420
|
const deserializeAws_json1_1ListDelegatedAdministratorsCommandError = async (output, context) => {
|
|
2421
2421
|
const parsedOutput = {
|
|
2422
2422
|
...output,
|
|
2423
|
-
body: await
|
|
2423
|
+
body: await parseErrorBody(output.body, context),
|
|
2424
2424
|
};
|
|
2425
2425
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2426
2426
|
switch (errorCode) {
|
|
2427
|
-
case "AccessDeniedException":
|
|
2428
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2429
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2430
2427
|
case "AWSOrganizationsNotInUseException":
|
|
2431
2428
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2432
2429
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
2430
|
+
case "AccessDeniedException":
|
|
2431
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2432
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2433
2433
|
case "ConstraintViolationException":
|
|
2434
2434
|
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
2435
2435
|
throw await deserializeAws_json1_1ConstraintViolationExceptionResponse(parsedOutput, context);
|
|
@@ -2472,10 +2472,13 @@ exports.deserializeAws_json1_1ListDelegatedServicesForAccountCommand = deseriali
|
|
|
2472
2472
|
const deserializeAws_json1_1ListDelegatedServicesForAccountCommandError = async (output, context) => {
|
|
2473
2473
|
const parsedOutput = {
|
|
2474
2474
|
...output,
|
|
2475
|
-
body: await
|
|
2475
|
+
body: await parseErrorBody(output.body, context),
|
|
2476
2476
|
};
|
|
2477
2477
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2478
2478
|
switch (errorCode) {
|
|
2479
|
+
case "AWSOrganizationsNotInUseException":
|
|
2480
|
+
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2481
|
+
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
2479
2482
|
case "AccessDeniedException":
|
|
2480
2483
|
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2481
2484
|
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
@@ -2485,9 +2488,6 @@ const deserializeAws_json1_1ListDelegatedServicesForAccountCommandError = async
|
|
|
2485
2488
|
case "AccountNotRegisteredException":
|
|
2486
2489
|
case "com.amazonaws.organizations#AccountNotRegisteredException":
|
|
2487
2490
|
throw await deserializeAws_json1_1AccountNotRegisteredExceptionResponse(parsedOutput, context);
|
|
2488
|
-
case "AWSOrganizationsNotInUseException":
|
|
2489
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2490
|
-
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
2491
2491
|
case "ConstraintViolationException":
|
|
2492
2492
|
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
2493
2493
|
throw await deserializeAws_json1_1ConstraintViolationExceptionResponse(parsedOutput, context);
|
|
@@ -2530,7 +2530,7 @@ exports.deserializeAws_json1_1ListHandshakesForAccountCommand = deserializeAws_j
|
|
|
2530
2530
|
const deserializeAws_json1_1ListHandshakesForAccountCommandError = async (output, context) => {
|
|
2531
2531
|
const parsedOutput = {
|
|
2532
2532
|
...output,
|
|
2533
|
-
body: await
|
|
2533
|
+
body: await parseErrorBody(output.body, context),
|
|
2534
2534
|
};
|
|
2535
2535
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2536
2536
|
switch (errorCode) {
|
|
@@ -2576,16 +2576,16 @@ exports.deserializeAws_json1_1ListHandshakesForOrganizationCommand = deserialize
|
|
|
2576
2576
|
const deserializeAws_json1_1ListHandshakesForOrganizationCommandError = async (output, context) => {
|
|
2577
2577
|
const parsedOutput = {
|
|
2578
2578
|
...output,
|
|
2579
|
-
body: await
|
|
2579
|
+
body: await parseErrorBody(output.body, context),
|
|
2580
2580
|
};
|
|
2581
2581
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2582
2582
|
switch (errorCode) {
|
|
2583
|
-
case "AccessDeniedException":
|
|
2584
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2585
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2586
2583
|
case "AWSOrganizationsNotInUseException":
|
|
2587
2584
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2588
2585
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
2586
|
+
case "AccessDeniedException":
|
|
2587
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2588
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2589
2589
|
case "ConcurrentModificationException":
|
|
2590
2590
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2591
2591
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -2625,16 +2625,16 @@ exports.deserializeAws_json1_1ListOrganizationalUnitsForParentCommand = deserial
|
|
|
2625
2625
|
const deserializeAws_json1_1ListOrganizationalUnitsForParentCommandError = async (output, context) => {
|
|
2626
2626
|
const parsedOutput = {
|
|
2627
2627
|
...output,
|
|
2628
|
-
body: await
|
|
2628
|
+
body: await parseErrorBody(output.body, context),
|
|
2629
2629
|
};
|
|
2630
2630
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2631
2631
|
switch (errorCode) {
|
|
2632
|
-
case "AccessDeniedException":
|
|
2633
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2634
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2635
2632
|
case "AWSOrganizationsNotInUseException":
|
|
2636
2633
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2637
2634
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
2635
|
+
case "AccessDeniedException":
|
|
2636
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2637
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2638
2638
|
case "InvalidInputException":
|
|
2639
2639
|
case "com.amazonaws.organizations#InvalidInputException":
|
|
2640
2640
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
@@ -2674,16 +2674,16 @@ exports.deserializeAws_json1_1ListParentsCommand = deserializeAws_json1_1ListPar
|
|
|
2674
2674
|
const deserializeAws_json1_1ListParentsCommandError = async (output, context) => {
|
|
2675
2675
|
const parsedOutput = {
|
|
2676
2676
|
...output,
|
|
2677
|
-
body: await
|
|
2677
|
+
body: await parseErrorBody(output.body, context),
|
|
2678
2678
|
};
|
|
2679
2679
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2680
2680
|
switch (errorCode) {
|
|
2681
|
-
case "AccessDeniedException":
|
|
2682
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2683
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2684
2681
|
case "AWSOrganizationsNotInUseException":
|
|
2685
2682
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2686
2683
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
2684
|
+
case "AccessDeniedException":
|
|
2685
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2686
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2687
2687
|
case "ChildNotFoundException":
|
|
2688
2688
|
case "com.amazonaws.organizations#ChildNotFoundException":
|
|
2689
2689
|
throw await deserializeAws_json1_1ChildNotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -2723,16 +2723,16 @@ exports.deserializeAws_json1_1ListPoliciesCommand = deserializeAws_json1_1ListPo
|
|
|
2723
2723
|
const deserializeAws_json1_1ListPoliciesCommandError = async (output, context) => {
|
|
2724
2724
|
const parsedOutput = {
|
|
2725
2725
|
...output,
|
|
2726
|
-
body: await
|
|
2726
|
+
body: await parseErrorBody(output.body, context),
|
|
2727
2727
|
};
|
|
2728
2728
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2729
2729
|
switch (errorCode) {
|
|
2730
|
-
case "AccessDeniedException":
|
|
2731
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2732
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2733
2730
|
case "AWSOrganizationsNotInUseException":
|
|
2734
2731
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2735
2732
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
2733
|
+
case "AccessDeniedException":
|
|
2734
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2735
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2736
2736
|
case "InvalidInputException":
|
|
2737
2737
|
case "com.amazonaws.organizations#InvalidInputException":
|
|
2738
2738
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
@@ -2772,16 +2772,16 @@ exports.deserializeAws_json1_1ListPoliciesForTargetCommand = deserializeAws_json
|
|
|
2772
2772
|
const deserializeAws_json1_1ListPoliciesForTargetCommandError = async (output, context) => {
|
|
2773
2773
|
const parsedOutput = {
|
|
2774
2774
|
...output,
|
|
2775
|
-
body: await
|
|
2775
|
+
body: await parseErrorBody(output.body, context),
|
|
2776
2776
|
};
|
|
2777
2777
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2778
2778
|
switch (errorCode) {
|
|
2779
|
-
case "AccessDeniedException":
|
|
2780
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2781
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2782
2779
|
case "AWSOrganizationsNotInUseException":
|
|
2783
2780
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2784
2781
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
2782
|
+
case "AccessDeniedException":
|
|
2783
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2784
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2785
2785
|
case "InvalidInputException":
|
|
2786
2786
|
case "com.amazonaws.organizations#InvalidInputException":
|
|
2787
2787
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
@@ -2824,16 +2824,16 @@ exports.deserializeAws_json1_1ListRootsCommand = deserializeAws_json1_1ListRoots
|
|
|
2824
2824
|
const deserializeAws_json1_1ListRootsCommandError = async (output, context) => {
|
|
2825
2825
|
const parsedOutput = {
|
|
2826
2826
|
...output,
|
|
2827
|
-
body: await
|
|
2827
|
+
body: await parseErrorBody(output.body, context),
|
|
2828
2828
|
};
|
|
2829
2829
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2830
2830
|
switch (errorCode) {
|
|
2831
|
-
case "AccessDeniedException":
|
|
2832
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2833
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2834
2831
|
case "AWSOrganizationsNotInUseException":
|
|
2835
2832
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2836
2833
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
2834
|
+
case "AccessDeniedException":
|
|
2835
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2836
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2837
2837
|
case "InvalidInputException":
|
|
2838
2838
|
case "com.amazonaws.organizations#InvalidInputException":
|
|
2839
2839
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
@@ -2870,16 +2870,16 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
2870
2870
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
2871
2871
|
const parsedOutput = {
|
|
2872
2872
|
...output,
|
|
2873
|
-
body: await
|
|
2873
|
+
body: await parseErrorBody(output.body, context),
|
|
2874
2874
|
};
|
|
2875
2875
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2876
2876
|
switch (errorCode) {
|
|
2877
|
-
case "AccessDeniedException":
|
|
2878
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2879
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2880
2877
|
case "AWSOrganizationsNotInUseException":
|
|
2881
2878
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2882
2879
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
2880
|
+
case "AccessDeniedException":
|
|
2881
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2882
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2883
2883
|
case "InvalidInputException":
|
|
2884
2884
|
case "com.amazonaws.organizations#InvalidInputException":
|
|
2885
2885
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
@@ -2919,16 +2919,16 @@ exports.deserializeAws_json1_1ListTargetsForPolicyCommand = deserializeAws_json1
|
|
|
2919
2919
|
const deserializeAws_json1_1ListTargetsForPolicyCommandError = async (output, context) => {
|
|
2920
2920
|
const parsedOutput = {
|
|
2921
2921
|
...output,
|
|
2922
|
-
body: await
|
|
2922
|
+
body: await parseErrorBody(output.body, context),
|
|
2923
2923
|
};
|
|
2924
2924
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2925
2925
|
switch (errorCode) {
|
|
2926
|
-
case "AccessDeniedException":
|
|
2927
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2928
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2929
2926
|
case "AWSOrganizationsNotInUseException":
|
|
2930
2927
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2931
2928
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
2929
|
+
case "AccessDeniedException":
|
|
2930
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2931
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2932
2932
|
case "InvalidInputException":
|
|
2933
2933
|
case "com.amazonaws.organizations#InvalidInputException":
|
|
2934
2934
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
@@ -2968,19 +2968,19 @@ exports.deserializeAws_json1_1MoveAccountCommand = deserializeAws_json1_1MoveAcc
|
|
|
2968
2968
|
const deserializeAws_json1_1MoveAccountCommandError = async (output, context) => {
|
|
2969
2969
|
const parsedOutput = {
|
|
2970
2970
|
...output,
|
|
2971
|
-
body: await
|
|
2971
|
+
body: await parseErrorBody(output.body, context),
|
|
2972
2972
|
};
|
|
2973
2973
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2974
2974
|
switch (errorCode) {
|
|
2975
|
+
case "AWSOrganizationsNotInUseException":
|
|
2976
|
+
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2977
|
+
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
2975
2978
|
case "AccessDeniedException":
|
|
2976
2979
|
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2977
2980
|
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2978
2981
|
case "AccountNotFoundException":
|
|
2979
2982
|
case "com.amazonaws.organizations#AccountNotFoundException":
|
|
2980
2983
|
throw await deserializeAws_json1_1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
2981
|
-
case "AWSOrganizationsNotInUseException":
|
|
2982
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2983
|
-
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
2984
2984
|
case "ConcurrentModificationException":
|
|
2985
2985
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2986
2986
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -3026,10 +3026,13 @@ exports.deserializeAws_json1_1RegisterDelegatedAdministratorCommand = deserializ
|
|
|
3026
3026
|
const deserializeAws_json1_1RegisterDelegatedAdministratorCommandError = async (output, context) => {
|
|
3027
3027
|
const parsedOutput = {
|
|
3028
3028
|
...output,
|
|
3029
|
-
body: await
|
|
3029
|
+
body: await parseErrorBody(output.body, context),
|
|
3030
3030
|
};
|
|
3031
3031
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3032
3032
|
switch (errorCode) {
|
|
3033
|
+
case "AWSOrganizationsNotInUseException":
|
|
3034
|
+
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3035
|
+
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
3033
3036
|
case "AccessDeniedException":
|
|
3034
3037
|
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3035
3038
|
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
@@ -3039,9 +3042,6 @@ const deserializeAws_json1_1RegisterDelegatedAdministratorCommandError = async (
|
|
|
3039
3042
|
case "AccountNotFoundException":
|
|
3040
3043
|
case "com.amazonaws.organizations#AccountNotFoundException":
|
|
3041
3044
|
throw await deserializeAws_json1_1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
3042
|
-
case "AWSOrganizationsNotInUseException":
|
|
3043
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3044
|
-
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
3045
3045
|
case "ConcurrentModificationException":
|
|
3046
3046
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
3047
3047
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -3084,19 +3084,19 @@ exports.deserializeAws_json1_1RemoveAccountFromOrganizationCommand = deserialize
|
|
|
3084
3084
|
const deserializeAws_json1_1RemoveAccountFromOrganizationCommandError = async (output, context) => {
|
|
3085
3085
|
const parsedOutput = {
|
|
3086
3086
|
...output,
|
|
3087
|
-
body: await
|
|
3087
|
+
body: await parseErrorBody(output.body, context),
|
|
3088
3088
|
};
|
|
3089
3089
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3090
3090
|
switch (errorCode) {
|
|
3091
|
+
case "AWSOrganizationsNotInUseException":
|
|
3092
|
+
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3093
|
+
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
3091
3094
|
case "AccessDeniedException":
|
|
3092
3095
|
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3093
3096
|
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3094
3097
|
case "AccountNotFoundException":
|
|
3095
3098
|
case "com.amazonaws.organizations#AccountNotFoundException":
|
|
3096
3099
|
throw await deserializeAws_json1_1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
3097
|
-
case "AWSOrganizationsNotInUseException":
|
|
3098
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3099
|
-
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
3100
3100
|
case "ConcurrentModificationException":
|
|
3101
3101
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
3102
3102
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -3139,16 +3139,16 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
3139
3139
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
3140
3140
|
const parsedOutput = {
|
|
3141
3141
|
...output,
|
|
3142
|
-
body: await
|
|
3142
|
+
body: await parseErrorBody(output.body, context),
|
|
3143
3143
|
};
|
|
3144
3144
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3145
3145
|
switch (errorCode) {
|
|
3146
|
-
case "AccessDeniedException":
|
|
3147
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3148
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3149
3146
|
case "AWSOrganizationsNotInUseException":
|
|
3150
3147
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3151
3148
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
3149
|
+
case "AccessDeniedException":
|
|
3150
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3151
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3152
3152
|
case "ConcurrentModificationException":
|
|
3153
3153
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
3154
3154
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -3191,16 +3191,16 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
3191
3191
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
3192
3192
|
const parsedOutput = {
|
|
3193
3193
|
...output,
|
|
3194
|
-
body: await
|
|
3194
|
+
body: await parseErrorBody(output.body, context),
|
|
3195
3195
|
};
|
|
3196
3196
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3197
3197
|
switch (errorCode) {
|
|
3198
|
-
case "AccessDeniedException":
|
|
3199
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3200
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3201
3198
|
case "AWSOrganizationsNotInUseException":
|
|
3202
3199
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3203
3200
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
3201
|
+
case "AccessDeniedException":
|
|
3202
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3203
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3204
3204
|
case "ConcurrentModificationException":
|
|
3205
3205
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
3206
3206
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -3246,16 +3246,16 @@ exports.deserializeAws_json1_1UpdateOrganizationalUnitCommand = deserializeAws_j
|
|
|
3246
3246
|
const deserializeAws_json1_1UpdateOrganizationalUnitCommandError = async (output, context) => {
|
|
3247
3247
|
const parsedOutput = {
|
|
3248
3248
|
...output,
|
|
3249
|
-
body: await
|
|
3249
|
+
body: await parseErrorBody(output.body, context),
|
|
3250
3250
|
};
|
|
3251
3251
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3252
3252
|
switch (errorCode) {
|
|
3253
|
-
case "AccessDeniedException":
|
|
3254
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3255
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3256
3253
|
case "AWSOrganizationsNotInUseException":
|
|
3257
3254
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3258
3255
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
3256
|
+
case "AccessDeniedException":
|
|
3257
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3258
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3259
3259
|
case "ConcurrentModificationException":
|
|
3260
3260
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
3261
3261
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -3301,16 +3301,16 @@ exports.deserializeAws_json1_1UpdatePolicyCommand = deserializeAws_json1_1Update
|
|
|
3301
3301
|
const deserializeAws_json1_1UpdatePolicyCommandError = async (output, context) => {
|
|
3302
3302
|
const parsedOutput = {
|
|
3303
3303
|
...output,
|
|
3304
|
-
body: await
|
|
3304
|
+
body: await parseErrorBody(output.body, context),
|
|
3305
3305
|
};
|
|
3306
3306
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3307
3307
|
switch (errorCode) {
|
|
3308
|
-
case "AccessDeniedException":
|
|
3309
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3310
|
-
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3311
3308
|
case "AWSOrganizationsNotInUseException":
|
|
3312
3309
|
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3313
3310
|
throw await deserializeAws_json1_1AWSOrganizationsNotInUseExceptionResponse(parsedOutput, context);
|
|
3311
|
+
case "AccessDeniedException":
|
|
3312
|
+
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3313
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3314
3314
|
case "ConcurrentModificationException":
|
|
3315
3315
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
3316
3316
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
@@ -4960,6 +4960,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
4960
4960
|
}
|
|
4961
4961
|
return {};
|
|
4962
4962
|
});
|
|
4963
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
4964
|
+
var _a;
|
|
4965
|
+
const value = await parseBody(errorBody, context);
|
|
4966
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
4967
|
+
return value;
|
|
4968
|
+
};
|
|
4963
4969
|
const loadRestJsonErrorCode = (output, data) => {
|
|
4964
4970
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4965
4971
|
const sanitizeErrorCode = (rawValue) => {
|