@aws-sdk/client-directory-service 3.118.1 → 3.128.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +594 -623
- package/dist-es/protocols/Aws_json1_1.js +476 -505
- package/package.json +26 -26
|
@@ -677,8 +677,7 @@ const deserializeAws_json1_1AcceptSharedDirectoryCommandError = async (output, c
|
|
|
677
677
|
body: await parseBody(output.body, context),
|
|
678
678
|
};
|
|
679
679
|
let response;
|
|
680
|
-
|
|
681
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
680
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
682
681
|
switch (errorCode) {
|
|
683
682
|
case "ClientException":
|
|
684
683
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -697,10 +696,12 @@ const deserializeAws_json1_1AcceptSharedDirectoryCommandError = async (output, c
|
|
|
697
696
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
698
697
|
default:
|
|
699
698
|
const parsedBody = parsedOutput.body;
|
|
699
|
+
const $metadata = deserializeMetadata(output);
|
|
700
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
700
701
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
701
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
702
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
702
703
|
$fault: "client",
|
|
703
|
-
$metadata
|
|
704
|
+
$metadata,
|
|
704
705
|
});
|
|
705
706
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
706
707
|
}
|
|
@@ -725,8 +726,7 @@ const deserializeAws_json1_1AddIpRoutesCommandError = async (output, context) =>
|
|
|
725
726
|
body: await parseBody(output.body, context),
|
|
726
727
|
};
|
|
727
728
|
let response;
|
|
728
|
-
|
|
729
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
729
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
730
|
switch (errorCode) {
|
|
731
731
|
case "ClientException":
|
|
732
732
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -751,10 +751,12 @@ const deserializeAws_json1_1AddIpRoutesCommandError = async (output, context) =>
|
|
|
751
751
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
752
752
|
default:
|
|
753
753
|
const parsedBody = parsedOutput.body;
|
|
754
|
+
const $metadata = deserializeMetadata(output);
|
|
755
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
754
756
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
755
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
757
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
756
758
|
$fault: "client",
|
|
757
|
-
$metadata
|
|
759
|
+
$metadata,
|
|
758
760
|
});
|
|
759
761
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
760
762
|
}
|
|
@@ -779,8 +781,7 @@ const deserializeAws_json1_1AddRegionCommandError = async (output, context) => {
|
|
|
779
781
|
body: await parseBody(output.body, context),
|
|
780
782
|
};
|
|
781
783
|
let response;
|
|
782
|
-
|
|
783
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
784
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
784
785
|
switch (errorCode) {
|
|
785
786
|
case "AccessDeniedException":
|
|
786
787
|
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
@@ -814,10 +815,12 @@ const deserializeAws_json1_1AddRegionCommandError = async (output, context) => {
|
|
|
814
815
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
815
816
|
default:
|
|
816
817
|
const parsedBody = parsedOutput.body;
|
|
818
|
+
const $metadata = deserializeMetadata(output);
|
|
819
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
817
820
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
818
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
821
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
819
822
|
$fault: "client",
|
|
820
|
-
$metadata
|
|
823
|
+
$metadata,
|
|
821
824
|
});
|
|
822
825
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
823
826
|
}
|
|
@@ -842,8 +845,7 @@ const deserializeAws_json1_1AddTagsToResourceCommandError = async (output, conte
|
|
|
842
845
|
body: await parseBody(output.body, context),
|
|
843
846
|
};
|
|
844
847
|
let response;
|
|
845
|
-
|
|
846
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
847
849
|
switch (errorCode) {
|
|
848
850
|
case "ClientException":
|
|
849
851
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -862,10 +864,12 @@ const deserializeAws_json1_1AddTagsToResourceCommandError = async (output, conte
|
|
|
862
864
|
throw await deserializeAws_json1_1TagLimitExceededExceptionResponse(parsedOutput, context);
|
|
863
865
|
default:
|
|
864
866
|
const parsedBody = parsedOutput.body;
|
|
867
|
+
const $metadata = deserializeMetadata(output);
|
|
868
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
865
869
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
866
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
870
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
867
871
|
$fault: "client",
|
|
868
|
-
$metadata
|
|
872
|
+
$metadata,
|
|
869
873
|
});
|
|
870
874
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
871
875
|
}
|
|
@@ -890,8 +894,7 @@ const deserializeAws_json1_1CancelSchemaExtensionCommandError = async (output, c
|
|
|
890
894
|
body: await parseBody(output.body, context),
|
|
891
895
|
};
|
|
892
896
|
let response;
|
|
893
|
-
|
|
894
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
895
898
|
switch (errorCode) {
|
|
896
899
|
case "ClientException":
|
|
897
900
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -904,10 +907,12 @@ const deserializeAws_json1_1CancelSchemaExtensionCommandError = async (output, c
|
|
|
904
907
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
905
908
|
default:
|
|
906
909
|
const parsedBody = parsedOutput.body;
|
|
910
|
+
const $metadata = deserializeMetadata(output);
|
|
911
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
907
912
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
908
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
913
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
909
914
|
$fault: "client",
|
|
910
|
-
$metadata
|
|
915
|
+
$metadata,
|
|
911
916
|
});
|
|
912
917
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
913
918
|
}
|
|
@@ -932,8 +937,7 @@ const deserializeAws_json1_1ConnectDirectoryCommandError = async (output, contex
|
|
|
932
937
|
body: await parseBody(output.body, context),
|
|
933
938
|
};
|
|
934
939
|
let response;
|
|
935
|
-
|
|
936
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
940
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
937
941
|
switch (errorCode) {
|
|
938
942
|
case "ClientException":
|
|
939
943
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -949,10 +953,12 @@ const deserializeAws_json1_1ConnectDirectoryCommandError = async (output, contex
|
|
|
949
953
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
950
954
|
default:
|
|
951
955
|
const parsedBody = parsedOutput.body;
|
|
956
|
+
const $metadata = deserializeMetadata(output);
|
|
957
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
952
958
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
953
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
959
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
954
960
|
$fault: "client",
|
|
955
|
-
$metadata
|
|
961
|
+
$metadata,
|
|
956
962
|
});
|
|
957
963
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
958
964
|
}
|
|
@@ -977,8 +983,7 @@ const deserializeAws_json1_1CreateAliasCommandError = async (output, context) =>
|
|
|
977
983
|
body: await parseBody(output.body, context),
|
|
978
984
|
};
|
|
979
985
|
let response;
|
|
980
|
-
|
|
981
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
986
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
982
987
|
switch (errorCode) {
|
|
983
988
|
case "ClientException":
|
|
984
989
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -997,10 +1002,12 @@ const deserializeAws_json1_1CreateAliasCommandError = async (output, context) =>
|
|
|
997
1002
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
998
1003
|
default:
|
|
999
1004
|
const parsedBody = parsedOutput.body;
|
|
1005
|
+
const $metadata = deserializeMetadata(output);
|
|
1006
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1000
1007
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
1001
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1008
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1002
1009
|
$fault: "client",
|
|
1003
|
-
$metadata
|
|
1010
|
+
$metadata,
|
|
1004
1011
|
});
|
|
1005
1012
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1006
1013
|
}
|
|
@@ -1025,8 +1032,7 @@ const deserializeAws_json1_1CreateComputerCommandError = async (output, context)
|
|
|
1025
1032
|
body: await parseBody(output.body, context),
|
|
1026
1033
|
};
|
|
1027
1034
|
let response;
|
|
1028
|
-
|
|
1029
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1035
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1030
1036
|
switch (errorCode) {
|
|
1031
1037
|
case "AuthenticationFailedException":
|
|
1032
1038
|
case "com.amazonaws.directoryservice#AuthenticationFailedException":
|
|
@@ -1054,10 +1060,12 @@ const deserializeAws_json1_1CreateComputerCommandError = async (output, context)
|
|
|
1054
1060
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1055
1061
|
default:
|
|
1056
1062
|
const parsedBody = parsedOutput.body;
|
|
1063
|
+
const $metadata = deserializeMetadata(output);
|
|
1064
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1057
1065
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
1058
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1066
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1059
1067
|
$fault: "client",
|
|
1060
|
-
$metadata
|
|
1068
|
+
$metadata,
|
|
1061
1069
|
});
|
|
1062
1070
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1063
1071
|
}
|
|
@@ -1082,8 +1090,7 @@ const deserializeAws_json1_1CreateConditionalForwarderCommandError = async (outp
|
|
|
1082
1090
|
body: await parseBody(output.body, context),
|
|
1083
1091
|
};
|
|
1084
1092
|
let response;
|
|
1085
|
-
|
|
1086
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1093
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1087
1094
|
switch (errorCode) {
|
|
1088
1095
|
case "ClientException":
|
|
1089
1096
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -1108,10 +1115,12 @@ const deserializeAws_json1_1CreateConditionalForwarderCommandError = async (outp
|
|
|
1108
1115
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1109
1116
|
default:
|
|
1110
1117
|
const parsedBody = parsedOutput.body;
|
|
1118
|
+
const $metadata = deserializeMetadata(output);
|
|
1119
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1111
1120
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
1112
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1121
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1113
1122
|
$fault: "client",
|
|
1114
|
-
$metadata
|
|
1123
|
+
$metadata,
|
|
1115
1124
|
});
|
|
1116
1125
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1117
1126
|
}
|
|
@@ -1136,8 +1145,7 @@ const deserializeAws_json1_1CreateDirectoryCommandError = async (output, context
|
|
|
1136
1145
|
body: await parseBody(output.body, context),
|
|
1137
1146
|
};
|
|
1138
1147
|
let response;
|
|
1139
|
-
|
|
1140
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1148
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1141
1149
|
switch (errorCode) {
|
|
1142
1150
|
case "ClientException":
|
|
1143
1151
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -1153,10 +1161,12 @@ const deserializeAws_json1_1CreateDirectoryCommandError = async (output, context
|
|
|
1153
1161
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
1154
1162
|
default:
|
|
1155
1163
|
const parsedBody = parsedOutput.body;
|
|
1164
|
+
const $metadata = deserializeMetadata(output);
|
|
1165
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1156
1166
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
1157
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1167
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1158
1168
|
$fault: "client",
|
|
1159
|
-
$metadata
|
|
1169
|
+
$metadata,
|
|
1160
1170
|
});
|
|
1161
1171
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1162
1172
|
}
|
|
@@ -1181,8 +1191,7 @@ const deserializeAws_json1_1CreateLogSubscriptionCommandError = async (output, c
|
|
|
1181
1191
|
body: await parseBody(output.body, context),
|
|
1182
1192
|
};
|
|
1183
1193
|
let response;
|
|
1184
|
-
|
|
1185
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1194
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1186
1195
|
switch (errorCode) {
|
|
1187
1196
|
case "ClientException":
|
|
1188
1197
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -1204,10 +1213,12 @@ const deserializeAws_json1_1CreateLogSubscriptionCommandError = async (output, c
|
|
|
1204
1213
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1205
1214
|
default:
|
|
1206
1215
|
const parsedBody = parsedOutput.body;
|
|
1216
|
+
const $metadata = deserializeMetadata(output);
|
|
1217
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1207
1218
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
1208
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1219
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1209
1220
|
$fault: "client",
|
|
1210
|
-
$metadata
|
|
1221
|
+
$metadata,
|
|
1211
1222
|
});
|
|
1212
1223
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1213
1224
|
}
|
|
@@ -1232,8 +1243,7 @@ const deserializeAws_json1_1CreateMicrosoftADCommandError = async (output, conte
|
|
|
1232
1243
|
body: await parseBody(output.body, context),
|
|
1233
1244
|
};
|
|
1234
1245
|
let response;
|
|
1235
|
-
|
|
1236
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1246
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1237
1247
|
switch (errorCode) {
|
|
1238
1248
|
case "ClientException":
|
|
1239
1249
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -1252,10 +1262,12 @@ const deserializeAws_json1_1CreateMicrosoftADCommandError = async (output, conte
|
|
|
1252
1262
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1253
1263
|
default:
|
|
1254
1264
|
const parsedBody = parsedOutput.body;
|
|
1265
|
+
const $metadata = deserializeMetadata(output);
|
|
1266
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1255
1267
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
1256
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1268
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1257
1269
|
$fault: "client",
|
|
1258
|
-
$metadata
|
|
1270
|
+
$metadata,
|
|
1259
1271
|
});
|
|
1260
1272
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1261
1273
|
}
|
|
@@ -1280,8 +1292,7 @@ const deserializeAws_json1_1CreateSnapshotCommandError = async (output, context)
|
|
|
1280
1292
|
body: await parseBody(output.body, context),
|
|
1281
1293
|
};
|
|
1282
1294
|
let response;
|
|
1283
|
-
|
|
1284
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1295
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1285
1296
|
switch (errorCode) {
|
|
1286
1297
|
case "ClientException":
|
|
1287
1298
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -1300,10 +1311,12 @@ const deserializeAws_json1_1CreateSnapshotCommandError = async (output, context)
|
|
|
1300
1311
|
throw await deserializeAws_json1_1SnapshotLimitExceededExceptionResponse(parsedOutput, context);
|
|
1301
1312
|
default:
|
|
1302
1313
|
const parsedBody = parsedOutput.body;
|
|
1314
|
+
const $metadata = deserializeMetadata(output);
|
|
1315
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1303
1316
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
1304
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1317
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1305
1318
|
$fault: "client",
|
|
1306
|
-
$metadata
|
|
1319
|
+
$metadata,
|
|
1307
1320
|
});
|
|
1308
1321
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1309
1322
|
}
|
|
@@ -1328,8 +1341,7 @@ const deserializeAws_json1_1CreateTrustCommandError = async (output, context) =>
|
|
|
1328
1341
|
body: await parseBody(output.body, context),
|
|
1329
1342
|
};
|
|
1330
1343
|
let response;
|
|
1331
|
-
|
|
1332
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
1345
|
switch (errorCode) {
|
|
1334
1346
|
case "ClientException":
|
|
1335
1347
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -1351,10 +1363,12 @@ const deserializeAws_json1_1CreateTrustCommandError = async (output, context) =>
|
|
|
1351
1363
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1352
1364
|
default:
|
|
1353
1365
|
const parsedBody = parsedOutput.body;
|
|
1366
|
+
const $metadata = deserializeMetadata(output);
|
|
1367
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1354
1368
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
1355
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1369
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1356
1370
|
$fault: "client",
|
|
1357
|
-
$metadata
|
|
1371
|
+
$metadata,
|
|
1358
1372
|
});
|
|
1359
1373
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1360
1374
|
}
|
|
@@ -1379,8 +1393,7 @@ const deserializeAws_json1_1DeleteConditionalForwarderCommandError = async (outp
|
|
|
1379
1393
|
body: await parseBody(output.body, context),
|
|
1380
1394
|
};
|
|
1381
1395
|
let response;
|
|
1382
|
-
|
|
1383
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1396
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1384
1397
|
switch (errorCode) {
|
|
1385
1398
|
case "ClientException":
|
|
1386
1399
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -1402,10 +1415,12 @@ const deserializeAws_json1_1DeleteConditionalForwarderCommandError = async (outp
|
|
|
1402
1415
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1403
1416
|
default:
|
|
1404
1417
|
const parsedBody = parsedOutput.body;
|
|
1418
|
+
const $metadata = deserializeMetadata(output);
|
|
1419
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1405
1420
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
1406
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1421
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1407
1422
|
$fault: "client",
|
|
1408
|
-
$metadata
|
|
1423
|
+
$metadata,
|
|
1409
1424
|
});
|
|
1410
1425
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1411
1426
|
}
|
|
@@ -1430,8 +1445,7 @@ const deserializeAws_json1_1DeleteDirectoryCommandError = async (output, context
|
|
|
1430
1445
|
body: await parseBody(output.body, context),
|
|
1431
1446
|
};
|
|
1432
1447
|
let response;
|
|
1433
|
-
|
|
1434
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1448
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1435
1449
|
switch (errorCode) {
|
|
1436
1450
|
case "ClientException":
|
|
1437
1451
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -1444,10 +1458,12 @@ const deserializeAws_json1_1DeleteDirectoryCommandError = async (output, context
|
|
|
1444
1458
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
1445
1459
|
default:
|
|
1446
1460
|
const parsedBody = parsedOutput.body;
|
|
1461
|
+
const $metadata = deserializeMetadata(output);
|
|
1462
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1447
1463
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
1448
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1464
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1449
1465
|
$fault: "client",
|
|
1450
|
-
$metadata
|
|
1466
|
+
$metadata,
|
|
1451
1467
|
});
|
|
1452
1468
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1453
1469
|
}
|
|
@@ -1472,8 +1488,7 @@ const deserializeAws_json1_1DeleteLogSubscriptionCommandError = async (output, c
|
|
|
1472
1488
|
body: await parseBody(output.body, context),
|
|
1473
1489
|
};
|
|
1474
1490
|
let response;
|
|
1475
|
-
|
|
1476
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1491
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1477
1492
|
switch (errorCode) {
|
|
1478
1493
|
case "ClientException":
|
|
1479
1494
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -1489,10 +1504,12 @@ const deserializeAws_json1_1DeleteLogSubscriptionCommandError = async (output, c
|
|
|
1489
1504
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1490
1505
|
default:
|
|
1491
1506
|
const parsedBody = parsedOutput.body;
|
|
1507
|
+
const $metadata = deserializeMetadata(output);
|
|
1508
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1492
1509
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
1493
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1510
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1494
1511
|
$fault: "client",
|
|
1495
|
-
$metadata
|
|
1512
|
+
$metadata,
|
|
1496
1513
|
});
|
|
1497
1514
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1498
1515
|
}
|
|
@@ -1517,8 +1534,7 @@ const deserializeAws_json1_1DeleteSnapshotCommandError = async (output, context)
|
|
|
1517
1534
|
body: await parseBody(output.body, context),
|
|
1518
1535
|
};
|
|
1519
1536
|
let response;
|
|
1520
|
-
|
|
1521
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1537
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1522
1538
|
switch (errorCode) {
|
|
1523
1539
|
case "ClientException":
|
|
1524
1540
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -1534,10 +1550,12 @@ const deserializeAws_json1_1DeleteSnapshotCommandError = async (output, context)
|
|
|
1534
1550
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
1535
1551
|
default:
|
|
1536
1552
|
const parsedBody = parsedOutput.body;
|
|
1553
|
+
const $metadata = deserializeMetadata(output);
|
|
1554
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1537
1555
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
1538
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1556
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1539
1557
|
$fault: "client",
|
|
1540
|
-
$metadata
|
|
1558
|
+
$metadata,
|
|
1541
1559
|
});
|
|
1542
1560
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1543
1561
|
}
|
|
@@ -1562,8 +1580,7 @@ const deserializeAws_json1_1DeleteTrustCommandError = async (output, context) =>
|
|
|
1562
1580
|
body: await parseBody(output.body, context),
|
|
1563
1581
|
};
|
|
1564
1582
|
let response;
|
|
1565
|
-
|
|
1566
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1583
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1567
1584
|
switch (errorCode) {
|
|
1568
1585
|
case "ClientException":
|
|
1569
1586
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -1582,10 +1599,12 @@ const deserializeAws_json1_1DeleteTrustCommandError = async (output, context) =>
|
|
|
1582
1599
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1583
1600
|
default:
|
|
1584
1601
|
const parsedBody = parsedOutput.body;
|
|
1602
|
+
const $metadata = deserializeMetadata(output);
|
|
1603
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1585
1604
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
1586
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1605
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1587
1606
|
$fault: "client",
|
|
1588
|
-
$metadata
|
|
1607
|
+
$metadata,
|
|
1589
1608
|
});
|
|
1590
1609
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1591
1610
|
}
|
|
@@ -1610,8 +1629,7 @@ const deserializeAws_json1_1DeregisterCertificateCommandError = async (output, c
|
|
|
1610
1629
|
body: await parseBody(output.body, context),
|
|
1611
1630
|
};
|
|
1612
1631
|
let response;
|
|
1613
|
-
|
|
1614
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1632
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1615
1633
|
switch (errorCode) {
|
|
1616
1634
|
case "CertificateDoesNotExistException":
|
|
1617
1635
|
case "com.amazonaws.directoryservice#CertificateDoesNotExistException":
|
|
@@ -1639,10 +1657,12 @@ const deserializeAws_json1_1DeregisterCertificateCommandError = async (output, c
|
|
|
1639
1657
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1640
1658
|
default:
|
|
1641
1659
|
const parsedBody = parsedOutput.body;
|
|
1660
|
+
const $metadata = deserializeMetadata(output);
|
|
1661
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1642
1662
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
1643
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1663
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1644
1664
|
$fault: "client",
|
|
1645
|
-
$metadata
|
|
1665
|
+
$metadata,
|
|
1646
1666
|
});
|
|
1647
1667
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1648
1668
|
}
|
|
@@ -1667,8 +1687,7 @@ const deserializeAws_json1_1DeregisterEventTopicCommandError = async (output, co
|
|
|
1667
1687
|
body: await parseBody(output.body, context),
|
|
1668
1688
|
};
|
|
1669
1689
|
let response;
|
|
1670
|
-
|
|
1671
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1690
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1672
1691
|
switch (errorCode) {
|
|
1673
1692
|
case "ClientException":
|
|
1674
1693
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -1684,10 +1703,12 @@ const deserializeAws_json1_1DeregisterEventTopicCommandError = async (output, co
|
|
|
1684
1703
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
1685
1704
|
default:
|
|
1686
1705
|
const parsedBody = parsedOutput.body;
|
|
1706
|
+
const $metadata = deserializeMetadata(output);
|
|
1707
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1687
1708
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
1688
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1709
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1689
1710
|
$fault: "client",
|
|
1690
|
-
$metadata
|
|
1711
|
+
$metadata,
|
|
1691
1712
|
});
|
|
1692
1713
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1693
1714
|
}
|
|
@@ -1712,8 +1733,7 @@ const deserializeAws_json1_1DescribeCertificateCommandError = async (output, con
|
|
|
1712
1733
|
body: await parseBody(output.body, context),
|
|
1713
1734
|
};
|
|
1714
1735
|
let response;
|
|
1715
|
-
|
|
1716
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1736
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1717
1737
|
switch (errorCode) {
|
|
1718
1738
|
case "CertificateDoesNotExistException":
|
|
1719
1739
|
case "com.amazonaws.directoryservice#CertificateDoesNotExistException":
|
|
@@ -1735,10 +1755,12 @@ const deserializeAws_json1_1DescribeCertificateCommandError = async (output, con
|
|
|
1735
1755
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1736
1756
|
default:
|
|
1737
1757
|
const parsedBody = parsedOutput.body;
|
|
1758
|
+
const $metadata = deserializeMetadata(output);
|
|
1759
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1738
1760
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
1739
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1761
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1740
1762
|
$fault: "client",
|
|
1741
|
-
$metadata
|
|
1763
|
+
$metadata,
|
|
1742
1764
|
});
|
|
1743
1765
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1744
1766
|
}
|
|
@@ -1763,8 +1785,7 @@ const deserializeAws_json1_1DescribeClientAuthenticationSettingsCommandError = a
|
|
|
1763
1785
|
body: await parseBody(output.body, context),
|
|
1764
1786
|
};
|
|
1765
1787
|
let response;
|
|
1766
|
-
|
|
1767
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1788
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1768
1789
|
switch (errorCode) {
|
|
1769
1790
|
case "AccessDeniedException":
|
|
1770
1791
|
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
@@ -1786,10 +1807,12 @@ const deserializeAws_json1_1DescribeClientAuthenticationSettingsCommandError = a
|
|
|
1786
1807
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1787
1808
|
default:
|
|
1788
1809
|
const parsedBody = parsedOutput.body;
|
|
1810
|
+
const $metadata = deserializeMetadata(output);
|
|
1811
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1789
1812
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
1790
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1813
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1791
1814
|
$fault: "client",
|
|
1792
|
-
$metadata
|
|
1815
|
+
$metadata,
|
|
1793
1816
|
});
|
|
1794
1817
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1795
1818
|
}
|
|
@@ -1814,8 +1837,7 @@ const deserializeAws_json1_1DescribeConditionalForwardersCommandError = async (o
|
|
|
1814
1837
|
body: await parseBody(output.body, context),
|
|
1815
1838
|
};
|
|
1816
1839
|
let response;
|
|
1817
|
-
|
|
1818
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1840
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1819
1841
|
switch (errorCode) {
|
|
1820
1842
|
case "ClientException":
|
|
1821
1843
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -1837,10 +1859,12 @@ const deserializeAws_json1_1DescribeConditionalForwardersCommandError = async (o
|
|
|
1837
1859
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1838
1860
|
default:
|
|
1839
1861
|
const parsedBody = parsedOutput.body;
|
|
1862
|
+
const $metadata = deserializeMetadata(output);
|
|
1863
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1840
1864
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
1841
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1865
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1842
1866
|
$fault: "client",
|
|
1843
|
-
$metadata
|
|
1867
|
+
$metadata,
|
|
1844
1868
|
});
|
|
1845
1869
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1846
1870
|
}
|
|
@@ -1865,8 +1889,7 @@ const deserializeAws_json1_1DescribeDirectoriesCommandError = async (output, con
|
|
|
1865
1889
|
body: await parseBody(output.body, context),
|
|
1866
1890
|
};
|
|
1867
1891
|
let response;
|
|
1868
|
-
|
|
1869
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1892
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1870
1893
|
switch (errorCode) {
|
|
1871
1894
|
case "ClientException":
|
|
1872
1895
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -1885,10 +1908,12 @@ const deserializeAws_json1_1DescribeDirectoriesCommandError = async (output, con
|
|
|
1885
1908
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
1886
1909
|
default:
|
|
1887
1910
|
const parsedBody = parsedOutput.body;
|
|
1911
|
+
const $metadata = deserializeMetadata(output);
|
|
1912
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1888
1913
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
1889
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1914
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1890
1915
|
$fault: "client",
|
|
1891
|
-
$metadata
|
|
1916
|
+
$metadata,
|
|
1892
1917
|
});
|
|
1893
1918
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1894
1919
|
}
|
|
@@ -1913,8 +1938,7 @@ const deserializeAws_json1_1DescribeDomainControllersCommandError = async (outpu
|
|
|
1913
1938
|
body: await parseBody(output.body, context),
|
|
1914
1939
|
};
|
|
1915
1940
|
let response;
|
|
1916
|
-
|
|
1917
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1941
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1918
1942
|
switch (errorCode) {
|
|
1919
1943
|
case "ClientException":
|
|
1920
1944
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -1936,10 +1960,12 @@ const deserializeAws_json1_1DescribeDomainControllersCommandError = async (outpu
|
|
|
1936
1960
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1937
1961
|
default:
|
|
1938
1962
|
const parsedBody = parsedOutput.body;
|
|
1963
|
+
const $metadata = deserializeMetadata(output);
|
|
1964
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1939
1965
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
1940
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1966
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1941
1967
|
$fault: "client",
|
|
1942
|
-
$metadata
|
|
1968
|
+
$metadata,
|
|
1943
1969
|
});
|
|
1944
1970
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1945
1971
|
}
|
|
@@ -1964,8 +1990,7 @@ const deserializeAws_json1_1DescribeEventTopicsCommandError = async (output, con
|
|
|
1964
1990
|
body: await parseBody(output.body, context),
|
|
1965
1991
|
};
|
|
1966
1992
|
let response;
|
|
1967
|
-
|
|
1968
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1993
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1969
1994
|
switch (errorCode) {
|
|
1970
1995
|
case "ClientException":
|
|
1971
1996
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -1981,10 +2006,12 @@ const deserializeAws_json1_1DescribeEventTopicsCommandError = async (output, con
|
|
|
1981
2006
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
1982
2007
|
default:
|
|
1983
2008
|
const parsedBody = parsedOutput.body;
|
|
2009
|
+
const $metadata = deserializeMetadata(output);
|
|
2010
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1984
2011
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
1985
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2012
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1986
2013
|
$fault: "client",
|
|
1987
|
-
$metadata
|
|
2014
|
+
$metadata,
|
|
1988
2015
|
});
|
|
1989
2016
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1990
2017
|
}
|
|
@@ -2009,8 +2036,7 @@ const deserializeAws_json1_1DescribeLDAPSSettingsCommandError = async (output, c
|
|
|
2009
2036
|
body: await parseBody(output.body, context),
|
|
2010
2037
|
};
|
|
2011
2038
|
let response;
|
|
2012
|
-
|
|
2013
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2039
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2014
2040
|
switch (errorCode) {
|
|
2015
2041
|
case "ClientException":
|
|
2016
2042
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -2032,10 +2058,12 @@ const deserializeAws_json1_1DescribeLDAPSSettingsCommandError = async (output, c
|
|
|
2032
2058
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2033
2059
|
default:
|
|
2034
2060
|
const parsedBody = parsedOutput.body;
|
|
2061
|
+
const $metadata = deserializeMetadata(output);
|
|
2062
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2035
2063
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
2036
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2064
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2037
2065
|
$fault: "client",
|
|
2038
|
-
$metadata
|
|
2066
|
+
$metadata,
|
|
2039
2067
|
});
|
|
2040
2068
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2041
2069
|
}
|
|
@@ -2060,8 +2088,7 @@ const deserializeAws_json1_1DescribeRegionsCommandError = async (output, context
|
|
|
2060
2088
|
body: await parseBody(output.body, context),
|
|
2061
2089
|
};
|
|
2062
2090
|
let response;
|
|
2063
|
-
|
|
2064
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2091
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2065
2092
|
switch (errorCode) {
|
|
2066
2093
|
case "AccessDeniedException":
|
|
2067
2094
|
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
@@ -2086,10 +2113,12 @@ const deserializeAws_json1_1DescribeRegionsCommandError = async (output, context
|
|
|
2086
2113
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2087
2114
|
default:
|
|
2088
2115
|
const parsedBody = parsedOutput.body;
|
|
2116
|
+
const $metadata = deserializeMetadata(output);
|
|
2117
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2089
2118
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
2090
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2119
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2091
2120
|
$fault: "client",
|
|
2092
|
-
$metadata
|
|
2121
|
+
$metadata,
|
|
2093
2122
|
});
|
|
2094
2123
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2095
2124
|
}
|
|
@@ -2114,8 +2143,7 @@ const deserializeAws_json1_1DescribeSettingsCommandError = async (output, contex
|
|
|
2114
2143
|
body: await parseBody(output.body, context),
|
|
2115
2144
|
};
|
|
2116
2145
|
let response;
|
|
2117
|
-
|
|
2118
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2146
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2119
2147
|
switch (errorCode) {
|
|
2120
2148
|
case "ClientException":
|
|
2121
2149
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -2137,10 +2165,12 @@ const deserializeAws_json1_1DescribeSettingsCommandError = async (output, contex
|
|
|
2137
2165
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2138
2166
|
default:
|
|
2139
2167
|
const parsedBody = parsedOutput.body;
|
|
2168
|
+
const $metadata = deserializeMetadata(output);
|
|
2169
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2140
2170
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
2141
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2171
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2142
2172
|
$fault: "client",
|
|
2143
|
-
$metadata
|
|
2173
|
+
$metadata,
|
|
2144
2174
|
});
|
|
2145
2175
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2146
2176
|
}
|
|
@@ -2165,8 +2195,7 @@ const deserializeAws_json1_1DescribeSharedDirectoriesCommandError = async (outpu
|
|
|
2165
2195
|
body: await parseBody(output.body, context),
|
|
2166
2196
|
};
|
|
2167
2197
|
let response;
|
|
2168
|
-
|
|
2169
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2198
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2170
2199
|
switch (errorCode) {
|
|
2171
2200
|
case "ClientException":
|
|
2172
2201
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -2188,10 +2217,12 @@ const deserializeAws_json1_1DescribeSharedDirectoriesCommandError = async (outpu
|
|
|
2188
2217
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2189
2218
|
default:
|
|
2190
2219
|
const parsedBody = parsedOutput.body;
|
|
2220
|
+
const $metadata = deserializeMetadata(output);
|
|
2221
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2191
2222
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
2192
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2223
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2193
2224
|
$fault: "client",
|
|
2194
|
-
$metadata
|
|
2225
|
+
$metadata,
|
|
2195
2226
|
});
|
|
2196
2227
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2197
2228
|
}
|
|
@@ -2216,8 +2247,7 @@ const deserializeAws_json1_1DescribeSnapshotsCommandError = async (output, conte
|
|
|
2216
2247
|
body: await parseBody(output.body, context),
|
|
2217
2248
|
};
|
|
2218
2249
|
let response;
|
|
2219
|
-
|
|
2220
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2250
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2221
2251
|
switch (errorCode) {
|
|
2222
2252
|
case "ClientException":
|
|
2223
2253
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -2236,10 +2266,12 @@ const deserializeAws_json1_1DescribeSnapshotsCommandError = async (output, conte
|
|
|
2236
2266
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
2237
2267
|
default:
|
|
2238
2268
|
const parsedBody = parsedOutput.body;
|
|
2269
|
+
const $metadata = deserializeMetadata(output);
|
|
2270
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2239
2271
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
2240
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2272
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2241
2273
|
$fault: "client",
|
|
2242
|
-
$metadata
|
|
2274
|
+
$metadata,
|
|
2243
2275
|
});
|
|
2244
2276
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2245
2277
|
}
|
|
@@ -2264,8 +2296,7 @@ const deserializeAws_json1_1DescribeTrustsCommandError = async (output, context)
|
|
|
2264
2296
|
body: await parseBody(output.body, context),
|
|
2265
2297
|
};
|
|
2266
2298
|
let response;
|
|
2267
|
-
|
|
2268
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2299
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2269
2300
|
switch (errorCode) {
|
|
2270
2301
|
case "ClientException":
|
|
2271
2302
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -2287,10 +2318,12 @@ const deserializeAws_json1_1DescribeTrustsCommandError = async (output, context)
|
|
|
2287
2318
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2288
2319
|
default:
|
|
2289
2320
|
const parsedBody = parsedOutput.body;
|
|
2321
|
+
const $metadata = deserializeMetadata(output);
|
|
2322
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2290
2323
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
2291
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2324
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2292
2325
|
$fault: "client",
|
|
2293
|
-
$metadata
|
|
2326
|
+
$metadata,
|
|
2294
2327
|
});
|
|
2295
2328
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2296
2329
|
}
|
|
@@ -2315,8 +2348,7 @@ const deserializeAws_json1_1DisableClientAuthenticationCommandError = async (out
|
|
|
2315
2348
|
body: await parseBody(output.body, context),
|
|
2316
2349
|
};
|
|
2317
2350
|
let response;
|
|
2318
|
-
|
|
2319
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2351
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2320
2352
|
switch (errorCode) {
|
|
2321
2353
|
case "AccessDeniedException":
|
|
2322
2354
|
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
@@ -2338,10 +2370,12 @@ const deserializeAws_json1_1DisableClientAuthenticationCommandError = async (out
|
|
|
2338
2370
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2339
2371
|
default:
|
|
2340
2372
|
const parsedBody = parsedOutput.body;
|
|
2373
|
+
const $metadata = deserializeMetadata(output);
|
|
2374
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2341
2375
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
2342
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2376
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2343
2377
|
$fault: "client",
|
|
2344
|
-
$metadata
|
|
2378
|
+
$metadata,
|
|
2345
2379
|
});
|
|
2346
2380
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2347
2381
|
}
|
|
@@ -2366,8 +2400,7 @@ const deserializeAws_json1_1DisableLDAPSCommandError = async (output, context) =
|
|
|
2366
2400
|
body: await parseBody(output.body, context),
|
|
2367
2401
|
};
|
|
2368
2402
|
let response;
|
|
2369
|
-
|
|
2370
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2403
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2371
2404
|
switch (errorCode) {
|
|
2372
2405
|
case "ClientException":
|
|
2373
2406
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -2392,10 +2425,12 @@ const deserializeAws_json1_1DisableLDAPSCommandError = async (output, context) =
|
|
|
2392
2425
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2393
2426
|
default:
|
|
2394
2427
|
const parsedBody = parsedOutput.body;
|
|
2428
|
+
const $metadata = deserializeMetadata(output);
|
|
2429
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2395
2430
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
2396
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2431
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2397
2432
|
$fault: "client",
|
|
2398
|
-
$metadata
|
|
2433
|
+
$metadata,
|
|
2399
2434
|
});
|
|
2400
2435
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2401
2436
|
}
|
|
@@ -2420,8 +2455,7 @@ const deserializeAws_json1_1DisableRadiusCommandError = async (output, context)
|
|
|
2420
2455
|
body: await parseBody(output.body, context),
|
|
2421
2456
|
};
|
|
2422
2457
|
let response;
|
|
2423
|
-
|
|
2424
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2458
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2425
2459
|
switch (errorCode) {
|
|
2426
2460
|
case "ClientException":
|
|
2427
2461
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -2434,10 +2468,12 @@ const deserializeAws_json1_1DisableRadiusCommandError = async (output, context)
|
|
|
2434
2468
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
2435
2469
|
default:
|
|
2436
2470
|
const parsedBody = parsedOutput.body;
|
|
2471
|
+
const $metadata = deserializeMetadata(output);
|
|
2472
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2437
2473
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
2438
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2474
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2439
2475
|
$fault: "client",
|
|
2440
|
-
$metadata
|
|
2476
|
+
$metadata,
|
|
2441
2477
|
});
|
|
2442
2478
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2443
2479
|
}
|
|
@@ -2462,8 +2498,7 @@ const deserializeAws_json1_1DisableSsoCommandError = async (output, context) =>
|
|
|
2462
2498
|
body: await parseBody(output.body, context),
|
|
2463
2499
|
};
|
|
2464
2500
|
let response;
|
|
2465
|
-
|
|
2466
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2501
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2467
2502
|
switch (errorCode) {
|
|
2468
2503
|
case "AuthenticationFailedException":
|
|
2469
2504
|
case "com.amazonaws.directoryservice#AuthenticationFailedException":
|
|
@@ -2482,10 +2517,12 @@ const deserializeAws_json1_1DisableSsoCommandError = async (output, context) =>
|
|
|
2482
2517
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
2483
2518
|
default:
|
|
2484
2519
|
const parsedBody = parsedOutput.body;
|
|
2520
|
+
const $metadata = deserializeMetadata(output);
|
|
2521
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2485
2522
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
2486
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2523
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2487
2524
|
$fault: "client",
|
|
2488
|
-
$metadata
|
|
2525
|
+
$metadata,
|
|
2489
2526
|
});
|
|
2490
2527
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2491
2528
|
}
|
|
@@ -2510,8 +2547,7 @@ const deserializeAws_json1_1EnableClientAuthenticationCommandError = async (outp
|
|
|
2510
2547
|
body: await parseBody(output.body, context),
|
|
2511
2548
|
};
|
|
2512
2549
|
let response;
|
|
2513
|
-
|
|
2514
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2550
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2515
2551
|
switch (errorCode) {
|
|
2516
2552
|
case "AccessDeniedException":
|
|
2517
2553
|
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
@@ -2536,10 +2572,12 @@ const deserializeAws_json1_1EnableClientAuthenticationCommandError = async (outp
|
|
|
2536
2572
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2537
2573
|
default:
|
|
2538
2574
|
const parsedBody = parsedOutput.body;
|
|
2575
|
+
const $metadata = deserializeMetadata(output);
|
|
2576
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2539
2577
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
2540
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2578
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2541
2579
|
$fault: "client",
|
|
2542
|
-
$metadata
|
|
2580
|
+
$metadata,
|
|
2543
2581
|
});
|
|
2544
2582
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2545
2583
|
}
|
|
@@ -2564,8 +2602,7 @@ const deserializeAws_json1_1EnableLDAPSCommandError = async (output, context) =>
|
|
|
2564
2602
|
body: await parseBody(output.body, context),
|
|
2565
2603
|
};
|
|
2566
2604
|
let response;
|
|
2567
|
-
|
|
2568
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2605
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2569
2606
|
switch (errorCode) {
|
|
2570
2607
|
case "ClientException":
|
|
2571
2608
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -2593,10 +2630,12 @@ const deserializeAws_json1_1EnableLDAPSCommandError = async (output, context) =>
|
|
|
2593
2630
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2594
2631
|
default:
|
|
2595
2632
|
const parsedBody = parsedOutput.body;
|
|
2633
|
+
const $metadata = deserializeMetadata(output);
|
|
2634
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2596
2635
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
2597
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2636
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2598
2637
|
$fault: "client",
|
|
2599
|
-
$metadata
|
|
2638
|
+
$metadata,
|
|
2600
2639
|
});
|
|
2601
2640
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2602
2641
|
}
|
|
@@ -2621,8 +2660,7 @@ const deserializeAws_json1_1EnableRadiusCommandError = async (output, context) =
|
|
|
2621
2660
|
body: await parseBody(output.body, context),
|
|
2622
2661
|
};
|
|
2623
2662
|
let response;
|
|
2624
|
-
|
|
2625
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2663
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2626
2664
|
switch (errorCode) {
|
|
2627
2665
|
case "ClientException":
|
|
2628
2666
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -2641,10 +2679,12 @@ const deserializeAws_json1_1EnableRadiusCommandError = async (output, context) =
|
|
|
2641
2679
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
2642
2680
|
default:
|
|
2643
2681
|
const parsedBody = parsedOutput.body;
|
|
2682
|
+
const $metadata = deserializeMetadata(output);
|
|
2683
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2644
2684
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
2645
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2685
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2646
2686
|
$fault: "client",
|
|
2647
|
-
$metadata
|
|
2687
|
+
$metadata,
|
|
2648
2688
|
});
|
|
2649
2689
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2650
2690
|
}
|
|
@@ -2669,8 +2709,7 @@ const deserializeAws_json1_1EnableSsoCommandError = async (output, context) => {
|
|
|
2669
2709
|
body: await parseBody(output.body, context),
|
|
2670
2710
|
};
|
|
2671
2711
|
let response;
|
|
2672
|
-
|
|
2673
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2712
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2674
2713
|
switch (errorCode) {
|
|
2675
2714
|
case "AuthenticationFailedException":
|
|
2676
2715
|
case "com.amazonaws.directoryservice#AuthenticationFailedException":
|
|
@@ -2689,10 +2728,12 @@ const deserializeAws_json1_1EnableSsoCommandError = async (output, context) => {
|
|
|
2689
2728
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
2690
2729
|
default:
|
|
2691
2730
|
const parsedBody = parsedOutput.body;
|
|
2731
|
+
const $metadata = deserializeMetadata(output);
|
|
2732
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2692
2733
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
2693
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2734
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2694
2735
|
$fault: "client",
|
|
2695
|
-
$metadata
|
|
2736
|
+
$metadata,
|
|
2696
2737
|
});
|
|
2697
2738
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2698
2739
|
}
|
|
@@ -2717,8 +2758,7 @@ const deserializeAws_json1_1GetDirectoryLimitsCommandError = async (output, cont
|
|
|
2717
2758
|
body: await parseBody(output.body, context),
|
|
2718
2759
|
};
|
|
2719
2760
|
let response;
|
|
2720
|
-
|
|
2721
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2761
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2722
2762
|
switch (errorCode) {
|
|
2723
2763
|
case "ClientException":
|
|
2724
2764
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -2731,10 +2771,12 @@ const deserializeAws_json1_1GetDirectoryLimitsCommandError = async (output, cont
|
|
|
2731
2771
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
2732
2772
|
default:
|
|
2733
2773
|
const parsedBody = parsedOutput.body;
|
|
2774
|
+
const $metadata = deserializeMetadata(output);
|
|
2775
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2734
2776
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
2735
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2777
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2736
2778
|
$fault: "client",
|
|
2737
|
-
$metadata
|
|
2779
|
+
$metadata,
|
|
2738
2780
|
});
|
|
2739
2781
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2740
2782
|
}
|
|
@@ -2759,8 +2801,7 @@ const deserializeAws_json1_1GetSnapshotLimitsCommandError = async (output, conte
|
|
|
2759
2801
|
body: await parseBody(output.body, context),
|
|
2760
2802
|
};
|
|
2761
2803
|
let response;
|
|
2762
|
-
|
|
2763
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2804
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2764
2805
|
switch (errorCode) {
|
|
2765
2806
|
case "ClientException":
|
|
2766
2807
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -2773,10 +2814,12 @@ const deserializeAws_json1_1GetSnapshotLimitsCommandError = async (output, conte
|
|
|
2773
2814
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
2774
2815
|
default:
|
|
2775
2816
|
const parsedBody = parsedOutput.body;
|
|
2817
|
+
const $metadata = deserializeMetadata(output);
|
|
2818
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2776
2819
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
2777
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2820
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2778
2821
|
$fault: "client",
|
|
2779
|
-
$metadata
|
|
2822
|
+
$metadata,
|
|
2780
2823
|
});
|
|
2781
2824
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2782
2825
|
}
|
|
@@ -2801,8 +2844,7 @@ const deserializeAws_json1_1ListCertificatesCommandError = async (output, contex
|
|
|
2801
2844
|
body: await parseBody(output.body, context),
|
|
2802
2845
|
};
|
|
2803
2846
|
let response;
|
|
2804
|
-
|
|
2805
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2847
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2806
2848
|
switch (errorCode) {
|
|
2807
2849
|
case "ClientException":
|
|
2808
2850
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -2824,10 +2866,12 @@ const deserializeAws_json1_1ListCertificatesCommandError = async (output, contex
|
|
|
2824
2866
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
2825
2867
|
default:
|
|
2826
2868
|
const parsedBody = parsedOutput.body;
|
|
2869
|
+
const $metadata = deserializeMetadata(output);
|
|
2870
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2827
2871
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
2828
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2872
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2829
2873
|
$fault: "client",
|
|
2830
|
-
$metadata
|
|
2874
|
+
$metadata,
|
|
2831
2875
|
});
|
|
2832
2876
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2833
2877
|
}
|
|
@@ -2852,8 +2896,7 @@ const deserializeAws_json1_1ListIpRoutesCommandError = async (output, context) =
|
|
|
2852
2896
|
body: await parseBody(output.body, context),
|
|
2853
2897
|
};
|
|
2854
2898
|
let response;
|
|
2855
|
-
|
|
2856
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2899
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2857
2900
|
switch (errorCode) {
|
|
2858
2901
|
case "ClientException":
|
|
2859
2902
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -2872,10 +2915,12 @@ const deserializeAws_json1_1ListIpRoutesCommandError = async (output, context) =
|
|
|
2872
2915
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
2873
2916
|
default:
|
|
2874
2917
|
const parsedBody = parsedOutput.body;
|
|
2918
|
+
const $metadata = deserializeMetadata(output);
|
|
2919
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2875
2920
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
2876
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2921
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2877
2922
|
$fault: "client",
|
|
2878
|
-
$metadata
|
|
2923
|
+
$metadata,
|
|
2879
2924
|
});
|
|
2880
2925
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2881
2926
|
}
|
|
@@ -2900,8 +2945,7 @@ const deserializeAws_json1_1ListLogSubscriptionsCommandError = async (output, co
|
|
|
2900
2945
|
body: await parseBody(output.body, context),
|
|
2901
2946
|
};
|
|
2902
2947
|
let response;
|
|
2903
|
-
|
|
2904
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2948
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2905
2949
|
switch (errorCode) {
|
|
2906
2950
|
case "ClientException":
|
|
2907
2951
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -2917,10 +2961,12 @@ const deserializeAws_json1_1ListLogSubscriptionsCommandError = async (output, co
|
|
|
2917
2961
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
2918
2962
|
default:
|
|
2919
2963
|
const parsedBody = parsedOutput.body;
|
|
2964
|
+
const $metadata = deserializeMetadata(output);
|
|
2965
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2920
2966
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
2921
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2967
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2922
2968
|
$fault: "client",
|
|
2923
|
-
$metadata
|
|
2969
|
+
$metadata,
|
|
2924
2970
|
});
|
|
2925
2971
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2926
2972
|
}
|
|
@@ -2945,8 +2991,7 @@ const deserializeAws_json1_1ListSchemaExtensionsCommandError = async (output, co
|
|
|
2945
2991
|
body: await parseBody(output.body, context),
|
|
2946
2992
|
};
|
|
2947
2993
|
let response;
|
|
2948
|
-
|
|
2949
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2994
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2950
2995
|
switch (errorCode) {
|
|
2951
2996
|
case "ClientException":
|
|
2952
2997
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -2962,10 +3007,12 @@ const deserializeAws_json1_1ListSchemaExtensionsCommandError = async (output, co
|
|
|
2962
3007
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
2963
3008
|
default:
|
|
2964
3009
|
const parsedBody = parsedOutput.body;
|
|
3010
|
+
const $metadata = deserializeMetadata(output);
|
|
3011
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2965
3012
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
2966
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3013
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2967
3014
|
$fault: "client",
|
|
2968
|
-
$metadata
|
|
3015
|
+
$metadata,
|
|
2969
3016
|
});
|
|
2970
3017
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2971
3018
|
}
|
|
@@ -2990,8 +3037,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2990
3037
|
body: await parseBody(output.body, context),
|
|
2991
3038
|
};
|
|
2992
3039
|
let response;
|
|
2993
|
-
|
|
2994
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3040
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2995
3041
|
switch (errorCode) {
|
|
2996
3042
|
case "ClientException":
|
|
2997
3043
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -3010,10 +3056,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
3010
3056
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
3011
3057
|
default:
|
|
3012
3058
|
const parsedBody = parsedOutput.body;
|
|
3059
|
+
const $metadata = deserializeMetadata(output);
|
|
3060
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3013
3061
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
3014
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3062
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3015
3063
|
$fault: "client",
|
|
3016
|
-
$metadata
|
|
3064
|
+
$metadata,
|
|
3017
3065
|
});
|
|
3018
3066
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3019
3067
|
}
|
|
@@ -3038,8 +3086,7 @@ const deserializeAws_json1_1RegisterCertificateCommandError = async (output, con
|
|
|
3038
3086
|
body: await parseBody(output.body, context),
|
|
3039
3087
|
};
|
|
3040
3088
|
let response;
|
|
3041
|
-
|
|
3042
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3089
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3043
3090
|
switch (errorCode) {
|
|
3044
3091
|
case "CertificateAlreadyExistsException":
|
|
3045
3092
|
case "com.amazonaws.directoryservice#CertificateAlreadyExistsException":
|
|
@@ -3070,10 +3117,12 @@ const deserializeAws_json1_1RegisterCertificateCommandError = async (output, con
|
|
|
3070
3117
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
3071
3118
|
default:
|
|
3072
3119
|
const parsedBody = parsedOutput.body;
|
|
3120
|
+
const $metadata = deserializeMetadata(output);
|
|
3121
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3073
3122
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
3074
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3123
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3075
3124
|
$fault: "client",
|
|
3076
|
-
$metadata
|
|
3125
|
+
$metadata,
|
|
3077
3126
|
});
|
|
3078
3127
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3079
3128
|
}
|
|
@@ -3098,8 +3147,7 @@ const deserializeAws_json1_1RegisterEventTopicCommandError = async (output, cont
|
|
|
3098
3147
|
body: await parseBody(output.body, context),
|
|
3099
3148
|
};
|
|
3100
3149
|
let response;
|
|
3101
|
-
|
|
3102
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3150
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3103
3151
|
switch (errorCode) {
|
|
3104
3152
|
case "ClientException":
|
|
3105
3153
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -3115,10 +3163,12 @@ const deserializeAws_json1_1RegisterEventTopicCommandError = async (output, cont
|
|
|
3115
3163
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
3116
3164
|
default:
|
|
3117
3165
|
const parsedBody = parsedOutput.body;
|
|
3166
|
+
const $metadata = deserializeMetadata(output);
|
|
3167
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3118
3168
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
3119
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3169
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3120
3170
|
$fault: "client",
|
|
3121
|
-
$metadata
|
|
3171
|
+
$metadata,
|
|
3122
3172
|
});
|
|
3123
3173
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3124
3174
|
}
|
|
@@ -3143,8 +3193,7 @@ const deserializeAws_json1_1RejectSharedDirectoryCommandError = async (output, c
|
|
|
3143
3193
|
body: await parseBody(output.body, context),
|
|
3144
3194
|
};
|
|
3145
3195
|
let response;
|
|
3146
|
-
|
|
3147
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3196
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3148
3197
|
switch (errorCode) {
|
|
3149
3198
|
case "ClientException":
|
|
3150
3199
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -3163,10 +3212,12 @@ const deserializeAws_json1_1RejectSharedDirectoryCommandError = async (output, c
|
|
|
3163
3212
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
3164
3213
|
default:
|
|
3165
3214
|
const parsedBody = parsedOutput.body;
|
|
3215
|
+
const $metadata = deserializeMetadata(output);
|
|
3216
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3166
3217
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
3167
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3218
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3168
3219
|
$fault: "client",
|
|
3169
|
-
$metadata
|
|
3220
|
+
$metadata,
|
|
3170
3221
|
});
|
|
3171
3222
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3172
3223
|
}
|
|
@@ -3191,8 +3242,7 @@ const deserializeAws_json1_1RemoveIpRoutesCommandError = async (output, context)
|
|
|
3191
3242
|
body: await parseBody(output.body, context),
|
|
3192
3243
|
};
|
|
3193
3244
|
let response;
|
|
3194
|
-
|
|
3195
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3245
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3196
3246
|
switch (errorCode) {
|
|
3197
3247
|
case "ClientException":
|
|
3198
3248
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -3211,10 +3261,12 @@ const deserializeAws_json1_1RemoveIpRoutesCommandError = async (output, context)
|
|
|
3211
3261
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
3212
3262
|
default:
|
|
3213
3263
|
const parsedBody = parsedOutput.body;
|
|
3264
|
+
const $metadata = deserializeMetadata(output);
|
|
3265
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3214
3266
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
3215
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3267
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3216
3268
|
$fault: "client",
|
|
3217
|
-
$metadata
|
|
3269
|
+
$metadata,
|
|
3218
3270
|
});
|
|
3219
3271
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3220
3272
|
}
|
|
@@ -3239,8 +3291,7 @@ const deserializeAws_json1_1RemoveRegionCommandError = async (output, context) =
|
|
|
3239
3291
|
body: await parseBody(output.body, context),
|
|
3240
3292
|
};
|
|
3241
3293
|
let response;
|
|
3242
|
-
|
|
3243
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3294
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3244
3295
|
switch (errorCode) {
|
|
3245
3296
|
case "AccessDeniedException":
|
|
3246
3297
|
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
@@ -3262,10 +3313,12 @@ const deserializeAws_json1_1RemoveRegionCommandError = async (output, context) =
|
|
|
3262
3313
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
3263
3314
|
default:
|
|
3264
3315
|
const parsedBody = parsedOutput.body;
|
|
3316
|
+
const $metadata = deserializeMetadata(output);
|
|
3317
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3265
3318
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
3266
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3319
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3267
3320
|
$fault: "client",
|
|
3268
|
-
$metadata
|
|
3321
|
+
$metadata,
|
|
3269
3322
|
});
|
|
3270
3323
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3271
3324
|
}
|
|
@@ -3290,8 +3343,7 @@ const deserializeAws_json1_1RemoveTagsFromResourceCommandError = async (output,
|
|
|
3290
3343
|
body: await parseBody(output.body, context),
|
|
3291
3344
|
};
|
|
3292
3345
|
let response;
|
|
3293
|
-
|
|
3294
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3346
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3295
3347
|
switch (errorCode) {
|
|
3296
3348
|
case "ClientException":
|
|
3297
3349
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -3307,10 +3359,12 @@ const deserializeAws_json1_1RemoveTagsFromResourceCommandError = async (output,
|
|
|
3307
3359
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
3308
3360
|
default:
|
|
3309
3361
|
const parsedBody = parsedOutput.body;
|
|
3362
|
+
const $metadata = deserializeMetadata(output);
|
|
3363
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3310
3364
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
3311
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3365
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3312
3366
|
$fault: "client",
|
|
3313
|
-
$metadata
|
|
3367
|
+
$metadata,
|
|
3314
3368
|
});
|
|
3315
3369
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3316
3370
|
}
|
|
@@ -3335,8 +3389,7 @@ const deserializeAws_json1_1ResetUserPasswordCommandError = async (output, conte
|
|
|
3335
3389
|
body: await parseBody(output.body, context),
|
|
3336
3390
|
};
|
|
3337
3391
|
let response;
|
|
3338
|
-
|
|
3339
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3392
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3340
3393
|
switch (errorCode) {
|
|
3341
3394
|
case "ClientException":
|
|
3342
3395
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -3361,10 +3414,12 @@ const deserializeAws_json1_1ResetUserPasswordCommandError = async (output, conte
|
|
|
3361
3414
|
throw await deserializeAws_json1_1UserDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3362
3415
|
default:
|
|
3363
3416
|
const parsedBody = parsedOutput.body;
|
|
3417
|
+
const $metadata = deserializeMetadata(output);
|
|
3418
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3364
3419
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
3365
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3420
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3366
3421
|
$fault: "client",
|
|
3367
|
-
$metadata
|
|
3422
|
+
$metadata,
|
|
3368
3423
|
});
|
|
3369
3424
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3370
3425
|
}
|
|
@@ -3389,8 +3444,7 @@ const deserializeAws_json1_1RestoreFromSnapshotCommandError = async (output, con
|
|
|
3389
3444
|
body: await parseBody(output.body, context),
|
|
3390
3445
|
};
|
|
3391
3446
|
let response;
|
|
3392
|
-
|
|
3393
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3447
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3394
3448
|
switch (errorCode) {
|
|
3395
3449
|
case "ClientException":
|
|
3396
3450
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -3406,10 +3460,12 @@ const deserializeAws_json1_1RestoreFromSnapshotCommandError = async (output, con
|
|
|
3406
3460
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
3407
3461
|
default:
|
|
3408
3462
|
const parsedBody = parsedOutput.body;
|
|
3463
|
+
const $metadata = deserializeMetadata(output);
|
|
3464
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3409
3465
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
3410
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3466
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3411
3467
|
$fault: "client",
|
|
3412
|
-
$metadata
|
|
3468
|
+
$metadata,
|
|
3413
3469
|
});
|
|
3414
3470
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3415
3471
|
}
|
|
@@ -3434,8 +3490,7 @@ const deserializeAws_json1_1ShareDirectoryCommandError = async (output, context)
|
|
|
3434
3490
|
body: await parseBody(output.body, context),
|
|
3435
3491
|
};
|
|
3436
3492
|
let response;
|
|
3437
|
-
|
|
3438
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3493
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3439
3494
|
switch (errorCode) {
|
|
3440
3495
|
case "AccessDeniedException":
|
|
3441
3496
|
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
@@ -3469,10 +3524,12 @@ const deserializeAws_json1_1ShareDirectoryCommandError = async (output, context)
|
|
|
3469
3524
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
3470
3525
|
default:
|
|
3471
3526
|
const parsedBody = parsedOutput.body;
|
|
3527
|
+
const $metadata = deserializeMetadata(output);
|
|
3528
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3472
3529
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
3473
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3530
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3474
3531
|
$fault: "client",
|
|
3475
|
-
$metadata
|
|
3532
|
+
$metadata,
|
|
3476
3533
|
});
|
|
3477
3534
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3478
3535
|
}
|
|
@@ -3497,8 +3554,7 @@ const deserializeAws_json1_1StartSchemaExtensionCommandError = async (output, co
|
|
|
3497
3554
|
body: await parseBody(output.body, context),
|
|
3498
3555
|
};
|
|
3499
3556
|
let response;
|
|
3500
|
-
|
|
3501
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3557
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3502
3558
|
switch (errorCode) {
|
|
3503
3559
|
case "ClientException":
|
|
3504
3560
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -3520,10 +3576,12 @@ const deserializeAws_json1_1StartSchemaExtensionCommandError = async (output, co
|
|
|
3520
3576
|
throw await deserializeAws_json1_1SnapshotLimitExceededExceptionResponse(parsedOutput, context);
|
|
3521
3577
|
default:
|
|
3522
3578
|
const parsedBody = parsedOutput.body;
|
|
3579
|
+
const $metadata = deserializeMetadata(output);
|
|
3580
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3523
3581
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
3524
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3582
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3525
3583
|
$fault: "client",
|
|
3526
|
-
$metadata
|
|
3584
|
+
$metadata,
|
|
3527
3585
|
});
|
|
3528
3586
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3529
3587
|
}
|
|
@@ -3548,8 +3606,7 @@ const deserializeAws_json1_1UnshareDirectoryCommandError = async (output, contex
|
|
|
3548
3606
|
body: await parseBody(output.body, context),
|
|
3549
3607
|
};
|
|
3550
3608
|
let response;
|
|
3551
|
-
|
|
3552
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3609
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3553
3610
|
switch (errorCode) {
|
|
3554
3611
|
case "ClientException":
|
|
3555
3612
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -3568,10 +3625,12 @@ const deserializeAws_json1_1UnshareDirectoryCommandError = async (output, contex
|
|
|
3568
3625
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
3569
3626
|
default:
|
|
3570
3627
|
const parsedBody = parsedOutput.body;
|
|
3628
|
+
const $metadata = deserializeMetadata(output);
|
|
3629
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3571
3630
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
3572
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3631
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3573
3632
|
$fault: "client",
|
|
3574
|
-
$metadata
|
|
3633
|
+
$metadata,
|
|
3575
3634
|
});
|
|
3576
3635
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3577
3636
|
}
|
|
@@ -3596,8 +3655,7 @@ const deserializeAws_json1_1UpdateConditionalForwarderCommandError = async (outp
|
|
|
3596
3655
|
body: await parseBody(output.body, context),
|
|
3597
3656
|
};
|
|
3598
3657
|
let response;
|
|
3599
|
-
|
|
3600
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3658
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3601
3659
|
switch (errorCode) {
|
|
3602
3660
|
case "ClientException":
|
|
3603
3661
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -3619,10 +3677,12 @@ const deserializeAws_json1_1UpdateConditionalForwarderCommandError = async (outp
|
|
|
3619
3677
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
3620
3678
|
default:
|
|
3621
3679
|
const parsedBody = parsedOutput.body;
|
|
3680
|
+
const $metadata = deserializeMetadata(output);
|
|
3681
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3622
3682
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
3623
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3683
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3624
3684
|
$fault: "client",
|
|
3625
|
-
$metadata
|
|
3685
|
+
$metadata,
|
|
3626
3686
|
});
|
|
3627
3687
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3628
3688
|
}
|
|
@@ -3647,8 +3707,7 @@ const deserializeAws_json1_1UpdateNumberOfDomainControllersCommandError = async
|
|
|
3647
3707
|
body: await parseBody(output.body, context),
|
|
3648
3708
|
};
|
|
3649
3709
|
let response;
|
|
3650
|
-
|
|
3651
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3710
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3652
3711
|
switch (errorCode) {
|
|
3653
3712
|
case "ClientException":
|
|
3654
3713
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -3673,10 +3732,12 @@ const deserializeAws_json1_1UpdateNumberOfDomainControllersCommandError = async
|
|
|
3673
3732
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
3674
3733
|
default:
|
|
3675
3734
|
const parsedBody = parsedOutput.body;
|
|
3735
|
+
const $metadata = deserializeMetadata(output);
|
|
3736
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3676
3737
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
3677
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3738
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3678
3739
|
$fault: "client",
|
|
3679
|
-
$metadata
|
|
3740
|
+
$metadata,
|
|
3680
3741
|
});
|
|
3681
3742
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3682
3743
|
}
|
|
@@ -3701,8 +3762,7 @@ const deserializeAws_json1_1UpdateRadiusCommandError = async (output, context) =
|
|
|
3701
3762
|
body: await parseBody(output.body, context),
|
|
3702
3763
|
};
|
|
3703
3764
|
let response;
|
|
3704
|
-
|
|
3705
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3765
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3706
3766
|
switch (errorCode) {
|
|
3707
3767
|
case "ClientException":
|
|
3708
3768
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -3718,10 +3778,12 @@ const deserializeAws_json1_1UpdateRadiusCommandError = async (output, context) =
|
|
|
3718
3778
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
3719
3779
|
default:
|
|
3720
3780
|
const parsedBody = parsedOutput.body;
|
|
3781
|
+
const $metadata = deserializeMetadata(output);
|
|
3782
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3721
3783
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
3722
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3784
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3723
3785
|
$fault: "client",
|
|
3724
|
-
$metadata
|
|
3786
|
+
$metadata,
|
|
3725
3787
|
});
|
|
3726
3788
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3727
3789
|
}
|
|
@@ -3746,8 +3808,7 @@ const deserializeAws_json1_1UpdateSettingsCommandError = async (output, context)
|
|
|
3746
3808
|
body: await parseBody(output.body, context),
|
|
3747
3809
|
};
|
|
3748
3810
|
let response;
|
|
3749
|
-
|
|
3750
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3811
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3751
3812
|
switch (errorCode) {
|
|
3752
3813
|
case "ClientException":
|
|
3753
3814
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -3775,10 +3836,12 @@ const deserializeAws_json1_1UpdateSettingsCommandError = async (output, context)
|
|
|
3775
3836
|
throw await deserializeAws_json1_1UnsupportedSettingsExceptionResponse(parsedOutput, context);
|
|
3776
3837
|
default:
|
|
3777
3838
|
const parsedBody = parsedOutput.body;
|
|
3839
|
+
const $metadata = deserializeMetadata(output);
|
|
3840
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3778
3841
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
3779
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3842
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3780
3843
|
$fault: "client",
|
|
3781
|
-
$metadata
|
|
3844
|
+
$metadata,
|
|
3782
3845
|
});
|
|
3783
3846
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3784
3847
|
}
|
|
@@ -3803,8 +3866,7 @@ const deserializeAws_json1_1UpdateTrustCommandError = async (output, context) =>
|
|
|
3803
3866
|
body: await parseBody(output.body, context),
|
|
3804
3867
|
};
|
|
3805
3868
|
let response;
|
|
3806
|
-
|
|
3807
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3869
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3808
3870
|
switch (errorCode) {
|
|
3809
3871
|
case "ClientException":
|
|
3810
3872
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -3820,10 +3882,12 @@ const deserializeAws_json1_1UpdateTrustCommandError = async (output, context) =>
|
|
|
3820
3882
|
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
3821
3883
|
default:
|
|
3822
3884
|
const parsedBody = parsedOutput.body;
|
|
3885
|
+
const $metadata = deserializeMetadata(output);
|
|
3886
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3823
3887
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
3824
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3888
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3825
3889
|
$fault: "client",
|
|
3826
|
-
$metadata
|
|
3890
|
+
$metadata,
|
|
3827
3891
|
});
|
|
3828
3892
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3829
3893
|
}
|
|
@@ -3848,8 +3912,7 @@ const deserializeAws_json1_1VerifyTrustCommandError = async (output, context) =>
|
|
|
3848
3912
|
body: await parseBody(output.body, context),
|
|
3849
3913
|
};
|
|
3850
3914
|
let response;
|
|
3851
|
-
|
|
3852
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3915
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3853
3916
|
switch (errorCode) {
|
|
3854
3917
|
case "ClientException":
|
|
3855
3918
|
case "com.amazonaws.directoryservice#ClientException":
|
|
@@ -3868,10 +3931,12 @@ const deserializeAws_json1_1VerifyTrustCommandError = async (output, context) =>
|
|
|
3868
3931
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
3869
3932
|
default:
|
|
3870
3933
|
const parsedBody = parsedOutput.body;
|
|
3934
|
+
const $metadata = deserializeMetadata(output);
|
|
3935
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3871
3936
|
response = new DirectoryServiceServiceException_1.DirectoryServiceServiceException({
|
|
3872
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3937
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3873
3938
|
$fault: "client",
|
|
3874
|
-
$metadata
|
|
3939
|
+
$metadata,
|
|
3875
3940
|
});
|
|
3876
3941
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3877
3942
|
}
|
|
@@ -4202,41 +4267,37 @@ const deserializeAws_json1_1UserDoesNotExistExceptionResponse = async (parsedOut
|
|
|
4202
4267
|
};
|
|
4203
4268
|
const serializeAws_json1_1AcceptSharedDirectoryRequest = (input, context) => {
|
|
4204
4269
|
return {
|
|
4205
|
-
...(input.SharedDirectoryId
|
|
4206
|
-
input.SharedDirectoryId !== null && { SharedDirectoryId: input.SharedDirectoryId }),
|
|
4270
|
+
...(input.SharedDirectoryId != null && { SharedDirectoryId: input.SharedDirectoryId }),
|
|
4207
4271
|
};
|
|
4208
4272
|
};
|
|
4209
4273
|
const serializeAws_json1_1AddIpRoutesRequest = (input, context) => {
|
|
4210
4274
|
return {
|
|
4211
|
-
...(input.DirectoryId
|
|
4212
|
-
...(input.IpRoutes
|
|
4213
|
-
|
|
4214
|
-
...(input.UpdateSecurityGroupForDirectoryControllers !== undefined &&
|
|
4215
|
-
input.UpdateSecurityGroupForDirectoryControllers !== null && {
|
|
4275
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4276
|
+
...(input.IpRoutes != null && { IpRoutes: serializeAws_json1_1IpRoutes(input.IpRoutes, context) }),
|
|
4277
|
+
...(input.UpdateSecurityGroupForDirectoryControllers != null && {
|
|
4216
4278
|
UpdateSecurityGroupForDirectoryControllers: input.UpdateSecurityGroupForDirectoryControllers,
|
|
4217
4279
|
}),
|
|
4218
4280
|
};
|
|
4219
4281
|
};
|
|
4220
4282
|
const serializeAws_json1_1AddRegionRequest = (input, context) => {
|
|
4221
4283
|
return {
|
|
4222
|
-
...(input.DirectoryId
|
|
4223
|
-
...(input.RegionName
|
|
4224
|
-
...(input.VPCSettings
|
|
4225
|
-
input.VPCSettings !== null && {
|
|
4284
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4285
|
+
...(input.RegionName != null && { RegionName: input.RegionName }),
|
|
4286
|
+
...(input.VPCSettings != null && {
|
|
4226
4287
|
VPCSettings: serializeAws_json1_1DirectoryVpcSettings(input.VPCSettings, context),
|
|
4227
4288
|
}),
|
|
4228
4289
|
};
|
|
4229
4290
|
};
|
|
4230
4291
|
const serializeAws_json1_1AddTagsToResourceRequest = (input, context) => {
|
|
4231
4292
|
return {
|
|
4232
|
-
...(input.ResourceId
|
|
4233
|
-
...(input.Tags
|
|
4293
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
4294
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
4234
4295
|
};
|
|
4235
4296
|
};
|
|
4236
4297
|
const serializeAws_json1_1Attribute = (input, context) => {
|
|
4237
4298
|
return {
|
|
4238
|
-
...(input.Name
|
|
4239
|
-
...(input.Value
|
|
4299
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4300
|
+
...(input.Value != null && { Value: input.Value }),
|
|
4240
4301
|
};
|
|
4241
4302
|
};
|
|
4242
4303
|
const serializeAws_json1_1Attributes = (input, context) => {
|
|
@@ -4251,9 +4312,8 @@ const serializeAws_json1_1Attributes = (input, context) => {
|
|
|
4251
4312
|
};
|
|
4252
4313
|
const serializeAws_json1_1CancelSchemaExtensionRequest = (input, context) => {
|
|
4253
4314
|
return {
|
|
4254
|
-
...(input.DirectoryId
|
|
4255
|
-
...(input.SchemaExtensionId
|
|
4256
|
-
input.SchemaExtensionId !== null && { SchemaExtensionId: input.SchemaExtensionId }),
|
|
4315
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4316
|
+
...(input.SchemaExtensionId != null && { SchemaExtensionId: input.SchemaExtensionId }),
|
|
4257
4317
|
};
|
|
4258
4318
|
};
|
|
4259
4319
|
const serializeAws_json1_1CidrIps = (input, context) => {
|
|
@@ -4268,264 +4328,241 @@ const serializeAws_json1_1CidrIps = (input, context) => {
|
|
|
4268
4328
|
};
|
|
4269
4329
|
const serializeAws_json1_1ClientCertAuthSettings = (input, context) => {
|
|
4270
4330
|
return {
|
|
4271
|
-
...(input.OCSPUrl
|
|
4331
|
+
...(input.OCSPUrl != null && { OCSPUrl: input.OCSPUrl }),
|
|
4272
4332
|
};
|
|
4273
4333
|
};
|
|
4274
4334
|
const serializeAws_json1_1ConnectDirectoryRequest = (input, context) => {
|
|
4275
4335
|
return {
|
|
4276
|
-
...(input.ConnectSettings
|
|
4277
|
-
input.ConnectSettings !== null && {
|
|
4336
|
+
...(input.ConnectSettings != null && {
|
|
4278
4337
|
ConnectSettings: serializeAws_json1_1DirectoryConnectSettings(input.ConnectSettings, context),
|
|
4279
4338
|
}),
|
|
4280
|
-
...(input.Description
|
|
4281
|
-
...(input.Name
|
|
4282
|
-
...(input.Password
|
|
4283
|
-
...(input.ShortName
|
|
4284
|
-
...(input.Size
|
|
4285
|
-
...(input.Tags
|
|
4339
|
+
...(input.Description != null && { Description: input.Description }),
|
|
4340
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4341
|
+
...(input.Password != null && { Password: input.Password }),
|
|
4342
|
+
...(input.ShortName != null && { ShortName: input.ShortName }),
|
|
4343
|
+
...(input.Size != null && { Size: input.Size }),
|
|
4344
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
4286
4345
|
};
|
|
4287
4346
|
};
|
|
4288
4347
|
const serializeAws_json1_1CreateAliasRequest = (input, context) => {
|
|
4289
4348
|
return {
|
|
4290
|
-
...(input.Alias
|
|
4291
|
-
...(input.DirectoryId
|
|
4349
|
+
...(input.Alias != null && { Alias: input.Alias }),
|
|
4350
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4292
4351
|
};
|
|
4293
4352
|
};
|
|
4294
4353
|
const serializeAws_json1_1CreateComputerRequest = (input, context) => {
|
|
4295
4354
|
return {
|
|
4296
|
-
...(input.ComputerAttributes
|
|
4297
|
-
input.ComputerAttributes !== null && {
|
|
4355
|
+
...(input.ComputerAttributes != null && {
|
|
4298
4356
|
ComputerAttributes: serializeAws_json1_1Attributes(input.ComputerAttributes, context),
|
|
4299
4357
|
}),
|
|
4300
|
-
...(input.ComputerName
|
|
4301
|
-
...(input.DirectoryId
|
|
4302
|
-
...(input.OrganizationalUnitDistinguishedName
|
|
4303
|
-
input.OrganizationalUnitDistinguishedName !== null && {
|
|
4358
|
+
...(input.ComputerName != null && { ComputerName: input.ComputerName }),
|
|
4359
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4360
|
+
...(input.OrganizationalUnitDistinguishedName != null && {
|
|
4304
4361
|
OrganizationalUnitDistinguishedName: input.OrganizationalUnitDistinguishedName,
|
|
4305
4362
|
}),
|
|
4306
|
-
...(input.Password
|
|
4363
|
+
...(input.Password != null && { Password: input.Password }),
|
|
4307
4364
|
};
|
|
4308
4365
|
};
|
|
4309
4366
|
const serializeAws_json1_1CreateConditionalForwarderRequest = (input, context) => {
|
|
4310
4367
|
return {
|
|
4311
|
-
...(input.DirectoryId
|
|
4312
|
-
...(input.DnsIpAddrs
|
|
4313
|
-
|
|
4314
|
-
...(input.RemoteDomainName !== undefined &&
|
|
4315
|
-
input.RemoteDomainName !== null && { RemoteDomainName: input.RemoteDomainName }),
|
|
4368
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4369
|
+
...(input.DnsIpAddrs != null && { DnsIpAddrs: serializeAws_json1_1DnsIpAddrs(input.DnsIpAddrs, context) }),
|
|
4370
|
+
...(input.RemoteDomainName != null && { RemoteDomainName: input.RemoteDomainName }),
|
|
4316
4371
|
};
|
|
4317
4372
|
};
|
|
4318
4373
|
const serializeAws_json1_1CreateDirectoryRequest = (input, context) => {
|
|
4319
4374
|
return {
|
|
4320
|
-
...(input.Description
|
|
4321
|
-
...(input.Name
|
|
4322
|
-
...(input.Password
|
|
4323
|
-
...(input.ShortName
|
|
4324
|
-
...(input.Size
|
|
4325
|
-
...(input.Tags
|
|
4326
|
-
...(input.VpcSettings
|
|
4327
|
-
input.VpcSettings !== null && {
|
|
4375
|
+
...(input.Description != null && { Description: input.Description }),
|
|
4376
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4377
|
+
...(input.Password != null && { Password: input.Password }),
|
|
4378
|
+
...(input.ShortName != null && { ShortName: input.ShortName }),
|
|
4379
|
+
...(input.Size != null && { Size: input.Size }),
|
|
4380
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
4381
|
+
...(input.VpcSettings != null && {
|
|
4328
4382
|
VpcSettings: serializeAws_json1_1DirectoryVpcSettings(input.VpcSettings, context),
|
|
4329
4383
|
}),
|
|
4330
4384
|
};
|
|
4331
4385
|
};
|
|
4332
4386
|
const serializeAws_json1_1CreateLogSubscriptionRequest = (input, context) => {
|
|
4333
4387
|
return {
|
|
4334
|
-
...(input.DirectoryId
|
|
4335
|
-
...(input.LogGroupName
|
|
4388
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4389
|
+
...(input.LogGroupName != null && { LogGroupName: input.LogGroupName }),
|
|
4336
4390
|
};
|
|
4337
4391
|
};
|
|
4338
4392
|
const serializeAws_json1_1CreateMicrosoftADRequest = (input, context) => {
|
|
4339
4393
|
return {
|
|
4340
|
-
...(input.Description
|
|
4341
|
-
...(input.Edition
|
|
4342
|
-
...(input.Name
|
|
4343
|
-
...(input.Password
|
|
4344
|
-
...(input.ShortName
|
|
4345
|
-
...(input.Tags
|
|
4346
|
-
...(input.VpcSettings
|
|
4347
|
-
input.VpcSettings !== null && {
|
|
4394
|
+
...(input.Description != null && { Description: input.Description }),
|
|
4395
|
+
...(input.Edition != null && { Edition: input.Edition }),
|
|
4396
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4397
|
+
...(input.Password != null && { Password: input.Password }),
|
|
4398
|
+
...(input.ShortName != null && { ShortName: input.ShortName }),
|
|
4399
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
4400
|
+
...(input.VpcSettings != null && {
|
|
4348
4401
|
VpcSettings: serializeAws_json1_1DirectoryVpcSettings(input.VpcSettings, context),
|
|
4349
4402
|
}),
|
|
4350
4403
|
};
|
|
4351
4404
|
};
|
|
4352
4405
|
const serializeAws_json1_1CreateSnapshotRequest = (input, context) => {
|
|
4353
4406
|
return {
|
|
4354
|
-
...(input.DirectoryId
|
|
4355
|
-
...(input.Name
|
|
4407
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4408
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4356
4409
|
};
|
|
4357
4410
|
};
|
|
4358
4411
|
const serializeAws_json1_1CreateTrustRequest = (input, context) => {
|
|
4359
4412
|
return {
|
|
4360
|
-
...(input.ConditionalForwarderIpAddrs
|
|
4361
|
-
input.ConditionalForwarderIpAddrs !== null && {
|
|
4413
|
+
...(input.ConditionalForwarderIpAddrs != null && {
|
|
4362
4414
|
ConditionalForwarderIpAddrs: serializeAws_json1_1DnsIpAddrs(input.ConditionalForwarderIpAddrs, context),
|
|
4363
4415
|
}),
|
|
4364
|
-
...(input.DirectoryId
|
|
4365
|
-
...(input.RemoteDomainName
|
|
4366
|
-
|
|
4367
|
-
...(input.
|
|
4368
|
-
...(input.
|
|
4369
|
-
|
|
4370
|
-
...(input.TrustPassword !== undefined && input.TrustPassword !== null && { TrustPassword: input.TrustPassword }),
|
|
4371
|
-
...(input.TrustType !== undefined && input.TrustType !== null && { TrustType: input.TrustType }),
|
|
4416
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4417
|
+
...(input.RemoteDomainName != null && { RemoteDomainName: input.RemoteDomainName }),
|
|
4418
|
+
...(input.SelectiveAuth != null && { SelectiveAuth: input.SelectiveAuth }),
|
|
4419
|
+
...(input.TrustDirection != null && { TrustDirection: input.TrustDirection }),
|
|
4420
|
+
...(input.TrustPassword != null && { TrustPassword: input.TrustPassword }),
|
|
4421
|
+
...(input.TrustType != null && { TrustType: input.TrustType }),
|
|
4372
4422
|
};
|
|
4373
4423
|
};
|
|
4374
4424
|
const serializeAws_json1_1DeleteConditionalForwarderRequest = (input, context) => {
|
|
4375
4425
|
return {
|
|
4376
|
-
...(input.DirectoryId
|
|
4377
|
-
...(input.RemoteDomainName
|
|
4378
|
-
input.RemoteDomainName !== null && { RemoteDomainName: input.RemoteDomainName }),
|
|
4426
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4427
|
+
...(input.RemoteDomainName != null && { RemoteDomainName: input.RemoteDomainName }),
|
|
4379
4428
|
};
|
|
4380
4429
|
};
|
|
4381
4430
|
const serializeAws_json1_1DeleteDirectoryRequest = (input, context) => {
|
|
4382
4431
|
return {
|
|
4383
|
-
...(input.DirectoryId
|
|
4432
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4384
4433
|
};
|
|
4385
4434
|
};
|
|
4386
4435
|
const serializeAws_json1_1DeleteLogSubscriptionRequest = (input, context) => {
|
|
4387
4436
|
return {
|
|
4388
|
-
...(input.DirectoryId
|
|
4437
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4389
4438
|
};
|
|
4390
4439
|
};
|
|
4391
4440
|
const serializeAws_json1_1DeleteSnapshotRequest = (input, context) => {
|
|
4392
4441
|
return {
|
|
4393
|
-
...(input.SnapshotId
|
|
4442
|
+
...(input.SnapshotId != null && { SnapshotId: input.SnapshotId }),
|
|
4394
4443
|
};
|
|
4395
4444
|
};
|
|
4396
4445
|
const serializeAws_json1_1DeleteTrustRequest = (input, context) => {
|
|
4397
4446
|
return {
|
|
4398
|
-
...(input.DeleteAssociatedConditionalForwarder
|
|
4399
|
-
input.DeleteAssociatedConditionalForwarder !== null && {
|
|
4447
|
+
...(input.DeleteAssociatedConditionalForwarder != null && {
|
|
4400
4448
|
DeleteAssociatedConditionalForwarder: input.DeleteAssociatedConditionalForwarder,
|
|
4401
4449
|
}),
|
|
4402
|
-
...(input.TrustId
|
|
4450
|
+
...(input.TrustId != null && { TrustId: input.TrustId }),
|
|
4403
4451
|
};
|
|
4404
4452
|
};
|
|
4405
4453
|
const serializeAws_json1_1DeregisterCertificateRequest = (input, context) => {
|
|
4406
4454
|
return {
|
|
4407
|
-
...(input.CertificateId
|
|
4408
|
-
...(input.DirectoryId
|
|
4455
|
+
...(input.CertificateId != null && { CertificateId: input.CertificateId }),
|
|
4456
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4409
4457
|
};
|
|
4410
4458
|
};
|
|
4411
4459
|
const serializeAws_json1_1DeregisterEventTopicRequest = (input, context) => {
|
|
4412
4460
|
return {
|
|
4413
|
-
...(input.DirectoryId
|
|
4414
|
-
...(input.TopicName
|
|
4461
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4462
|
+
...(input.TopicName != null && { TopicName: input.TopicName }),
|
|
4415
4463
|
};
|
|
4416
4464
|
};
|
|
4417
4465
|
const serializeAws_json1_1DescribeCertificateRequest = (input, context) => {
|
|
4418
4466
|
return {
|
|
4419
|
-
...(input.CertificateId
|
|
4420
|
-
...(input.DirectoryId
|
|
4467
|
+
...(input.CertificateId != null && { CertificateId: input.CertificateId }),
|
|
4468
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4421
4469
|
};
|
|
4422
4470
|
};
|
|
4423
4471
|
const serializeAws_json1_1DescribeClientAuthenticationSettingsRequest = (input, context) => {
|
|
4424
4472
|
return {
|
|
4425
|
-
...(input.DirectoryId
|
|
4426
|
-
...(input.Limit
|
|
4427
|
-
...(input.NextToken
|
|
4428
|
-
...(input.Type
|
|
4473
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4474
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
4475
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4476
|
+
...(input.Type != null && { Type: input.Type }),
|
|
4429
4477
|
};
|
|
4430
4478
|
};
|
|
4431
4479
|
const serializeAws_json1_1DescribeConditionalForwardersRequest = (input, context) => {
|
|
4432
4480
|
return {
|
|
4433
|
-
...(input.DirectoryId
|
|
4434
|
-
...(input.RemoteDomainNames
|
|
4435
|
-
input.RemoteDomainNames !== null && {
|
|
4481
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4482
|
+
...(input.RemoteDomainNames != null && {
|
|
4436
4483
|
RemoteDomainNames: serializeAws_json1_1RemoteDomainNames(input.RemoteDomainNames, context),
|
|
4437
4484
|
}),
|
|
4438
4485
|
};
|
|
4439
4486
|
};
|
|
4440
4487
|
const serializeAws_json1_1DescribeDirectoriesRequest = (input, context) => {
|
|
4441
4488
|
return {
|
|
4442
|
-
...(input.DirectoryIds
|
|
4443
|
-
|
|
4444
|
-
...(input.
|
|
4445
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4489
|
+
...(input.DirectoryIds != null && { DirectoryIds: serializeAws_json1_1DirectoryIds(input.DirectoryIds, context) }),
|
|
4490
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
4491
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4446
4492
|
};
|
|
4447
4493
|
};
|
|
4448
4494
|
const serializeAws_json1_1DescribeDomainControllersRequest = (input, context) => {
|
|
4449
4495
|
return {
|
|
4450
|
-
...(input.DirectoryId
|
|
4451
|
-
...(input.DomainControllerIds
|
|
4452
|
-
input.DomainControllerIds !== null && {
|
|
4496
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4497
|
+
...(input.DomainControllerIds != null && {
|
|
4453
4498
|
DomainControllerIds: serializeAws_json1_1DomainControllerIds(input.DomainControllerIds, context),
|
|
4454
4499
|
}),
|
|
4455
|
-
...(input.Limit
|
|
4456
|
-
...(input.NextToken
|
|
4500
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
4501
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4457
4502
|
};
|
|
4458
4503
|
};
|
|
4459
4504
|
const serializeAws_json1_1DescribeEventTopicsRequest = (input, context) => {
|
|
4460
4505
|
return {
|
|
4461
|
-
...(input.DirectoryId
|
|
4462
|
-
...(input.TopicNames
|
|
4463
|
-
input.TopicNames !== null && { TopicNames: serializeAws_json1_1TopicNames(input.TopicNames, context) }),
|
|
4506
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4507
|
+
...(input.TopicNames != null && { TopicNames: serializeAws_json1_1TopicNames(input.TopicNames, context) }),
|
|
4464
4508
|
};
|
|
4465
4509
|
};
|
|
4466
4510
|
const serializeAws_json1_1DescribeLDAPSSettingsRequest = (input, context) => {
|
|
4467
4511
|
return {
|
|
4468
|
-
...(input.DirectoryId
|
|
4469
|
-
...(input.Limit
|
|
4470
|
-
...(input.NextToken
|
|
4471
|
-
...(input.Type
|
|
4512
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4513
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
4514
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4515
|
+
...(input.Type != null && { Type: input.Type }),
|
|
4472
4516
|
};
|
|
4473
4517
|
};
|
|
4474
4518
|
const serializeAws_json1_1DescribeRegionsRequest = (input, context) => {
|
|
4475
4519
|
return {
|
|
4476
|
-
...(input.DirectoryId
|
|
4477
|
-
...(input.NextToken
|
|
4478
|
-
...(input.RegionName
|
|
4520
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4521
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4522
|
+
...(input.RegionName != null && { RegionName: input.RegionName }),
|
|
4479
4523
|
};
|
|
4480
4524
|
};
|
|
4481
4525
|
const serializeAws_json1_1DescribeSettingsRequest = (input, context) => {
|
|
4482
4526
|
return {
|
|
4483
|
-
...(input.DirectoryId
|
|
4484
|
-
...(input.NextToken
|
|
4485
|
-
...(input.Status
|
|
4527
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4528
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4529
|
+
...(input.Status != null && { Status: input.Status }),
|
|
4486
4530
|
};
|
|
4487
4531
|
};
|
|
4488
4532
|
const serializeAws_json1_1DescribeSharedDirectoriesRequest = (input, context) => {
|
|
4489
4533
|
return {
|
|
4490
|
-
...(input.Limit
|
|
4491
|
-
...(input.NextToken
|
|
4492
|
-
...(input.OwnerDirectoryId
|
|
4493
|
-
|
|
4494
|
-
...(input.SharedDirectoryIds !== undefined &&
|
|
4495
|
-
input.SharedDirectoryIds !== null && {
|
|
4534
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
4535
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4536
|
+
...(input.OwnerDirectoryId != null && { OwnerDirectoryId: input.OwnerDirectoryId }),
|
|
4537
|
+
...(input.SharedDirectoryIds != null && {
|
|
4496
4538
|
SharedDirectoryIds: serializeAws_json1_1DirectoryIds(input.SharedDirectoryIds, context),
|
|
4497
4539
|
}),
|
|
4498
4540
|
};
|
|
4499
4541
|
};
|
|
4500
4542
|
const serializeAws_json1_1DescribeSnapshotsRequest = (input, context) => {
|
|
4501
4543
|
return {
|
|
4502
|
-
...(input.DirectoryId
|
|
4503
|
-
...(input.Limit
|
|
4504
|
-
...(input.NextToken
|
|
4505
|
-
...(input.SnapshotIds
|
|
4506
|
-
input.SnapshotIds !== null && { SnapshotIds: serializeAws_json1_1SnapshotIds(input.SnapshotIds, context) }),
|
|
4544
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4545
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
4546
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4547
|
+
...(input.SnapshotIds != null && { SnapshotIds: serializeAws_json1_1SnapshotIds(input.SnapshotIds, context) }),
|
|
4507
4548
|
};
|
|
4508
4549
|
};
|
|
4509
4550
|
const serializeAws_json1_1DescribeTrustsRequest = (input, context) => {
|
|
4510
4551
|
return {
|
|
4511
|
-
...(input.DirectoryId
|
|
4512
|
-
...(input.Limit
|
|
4513
|
-
...(input.NextToken
|
|
4514
|
-
...(input.TrustIds
|
|
4515
|
-
input.TrustIds !== null && { TrustIds: serializeAws_json1_1TrustIds(input.TrustIds, context) }),
|
|
4552
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4553
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
4554
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4555
|
+
...(input.TrustIds != null && { TrustIds: serializeAws_json1_1TrustIds(input.TrustIds, context) }),
|
|
4516
4556
|
};
|
|
4517
4557
|
};
|
|
4518
4558
|
const serializeAws_json1_1DirectoryConnectSettings = (input, context) => {
|
|
4519
4559
|
return {
|
|
4520
|
-
...(input.CustomerDnsIps
|
|
4521
|
-
input.CustomerDnsIps !== null && {
|
|
4560
|
+
...(input.CustomerDnsIps != null && {
|
|
4522
4561
|
CustomerDnsIps: serializeAws_json1_1DnsIpAddrs(input.CustomerDnsIps, context),
|
|
4523
4562
|
}),
|
|
4524
|
-
...(input.CustomerUserName
|
|
4525
|
-
|
|
4526
|
-
...(input.
|
|
4527
|
-
input.SubnetIds !== null && { SubnetIds: serializeAws_json1_1SubnetIds(input.SubnetIds, context) }),
|
|
4528
|
-
...(input.VpcId !== undefined && input.VpcId !== null && { VpcId: input.VpcId }),
|
|
4563
|
+
...(input.CustomerUserName != null && { CustomerUserName: input.CustomerUserName }),
|
|
4564
|
+
...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIds(input.SubnetIds, context) }),
|
|
4565
|
+
...(input.VpcId != null && { VpcId: input.VpcId }),
|
|
4529
4566
|
};
|
|
4530
4567
|
};
|
|
4531
4568
|
const serializeAws_json1_1DirectoryIds = (input, context) => {
|
|
@@ -4540,33 +4577,32 @@ const serializeAws_json1_1DirectoryIds = (input, context) => {
|
|
|
4540
4577
|
};
|
|
4541
4578
|
const serializeAws_json1_1DirectoryVpcSettings = (input, context) => {
|
|
4542
4579
|
return {
|
|
4543
|
-
...(input.SubnetIds
|
|
4544
|
-
|
|
4545
|
-
...(input.VpcId !== undefined && input.VpcId !== null && { VpcId: input.VpcId }),
|
|
4580
|
+
...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIds(input.SubnetIds, context) }),
|
|
4581
|
+
...(input.VpcId != null && { VpcId: input.VpcId }),
|
|
4546
4582
|
};
|
|
4547
4583
|
};
|
|
4548
4584
|
const serializeAws_json1_1DisableClientAuthenticationRequest = (input, context) => {
|
|
4549
4585
|
return {
|
|
4550
|
-
...(input.DirectoryId
|
|
4551
|
-
...(input.Type
|
|
4586
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4587
|
+
...(input.Type != null && { Type: input.Type }),
|
|
4552
4588
|
};
|
|
4553
4589
|
};
|
|
4554
4590
|
const serializeAws_json1_1DisableLDAPSRequest = (input, context) => {
|
|
4555
4591
|
return {
|
|
4556
|
-
...(input.DirectoryId
|
|
4557
|
-
...(input.Type
|
|
4592
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4593
|
+
...(input.Type != null && { Type: input.Type }),
|
|
4558
4594
|
};
|
|
4559
4595
|
};
|
|
4560
4596
|
const serializeAws_json1_1DisableRadiusRequest = (input, context) => {
|
|
4561
4597
|
return {
|
|
4562
|
-
...(input.DirectoryId
|
|
4598
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4563
4599
|
};
|
|
4564
4600
|
};
|
|
4565
4601
|
const serializeAws_json1_1DisableSsoRequest = (input, context) => {
|
|
4566
4602
|
return {
|
|
4567
|
-
...(input.DirectoryId
|
|
4568
|
-
...(input.Password
|
|
4569
|
-
...(input.UserName
|
|
4603
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4604
|
+
...(input.Password != null && { Password: input.Password }),
|
|
4605
|
+
...(input.UserName != null && { UserName: input.UserName }),
|
|
4570
4606
|
};
|
|
4571
4607
|
};
|
|
4572
4608
|
const serializeAws_json1_1DnsIpAddrs = (input, context) => {
|
|
@@ -4591,30 +4627,29 @@ const serializeAws_json1_1DomainControllerIds = (input, context) => {
|
|
|
4591
4627
|
};
|
|
4592
4628
|
const serializeAws_json1_1EnableClientAuthenticationRequest = (input, context) => {
|
|
4593
4629
|
return {
|
|
4594
|
-
...(input.DirectoryId
|
|
4595
|
-
...(input.Type
|
|
4630
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4631
|
+
...(input.Type != null && { Type: input.Type }),
|
|
4596
4632
|
};
|
|
4597
4633
|
};
|
|
4598
4634
|
const serializeAws_json1_1EnableLDAPSRequest = (input, context) => {
|
|
4599
4635
|
return {
|
|
4600
|
-
...(input.DirectoryId
|
|
4601
|
-
...(input.Type
|
|
4636
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4637
|
+
...(input.Type != null && { Type: input.Type }),
|
|
4602
4638
|
};
|
|
4603
4639
|
};
|
|
4604
4640
|
const serializeAws_json1_1EnableRadiusRequest = (input, context) => {
|
|
4605
4641
|
return {
|
|
4606
|
-
...(input.DirectoryId
|
|
4607
|
-
...(input.RadiusSettings
|
|
4608
|
-
input.RadiusSettings !== null && {
|
|
4642
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4643
|
+
...(input.RadiusSettings != null && {
|
|
4609
4644
|
RadiusSettings: serializeAws_json1_1RadiusSettings(input.RadiusSettings, context),
|
|
4610
4645
|
}),
|
|
4611
4646
|
};
|
|
4612
4647
|
};
|
|
4613
4648
|
const serializeAws_json1_1EnableSsoRequest = (input, context) => {
|
|
4614
4649
|
return {
|
|
4615
|
-
...(input.DirectoryId
|
|
4616
|
-
...(input.Password
|
|
4617
|
-
...(input.UserName
|
|
4650
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4651
|
+
...(input.Password != null && { Password: input.Password }),
|
|
4652
|
+
...(input.UserName != null && { UserName: input.UserName }),
|
|
4618
4653
|
};
|
|
4619
4654
|
};
|
|
4620
4655
|
const serializeAws_json1_1GetDirectoryLimitsRequest = (input, context) => {
|
|
@@ -4622,13 +4657,13 @@ const serializeAws_json1_1GetDirectoryLimitsRequest = (input, context) => {
|
|
|
4622
4657
|
};
|
|
4623
4658
|
const serializeAws_json1_1GetSnapshotLimitsRequest = (input, context) => {
|
|
4624
4659
|
return {
|
|
4625
|
-
...(input.DirectoryId
|
|
4660
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4626
4661
|
};
|
|
4627
4662
|
};
|
|
4628
4663
|
const serializeAws_json1_1IpRoute = (input, context) => {
|
|
4629
4664
|
return {
|
|
4630
|
-
...(input.CidrIp
|
|
4631
|
-
...(input.Description
|
|
4665
|
+
...(input.CidrIp != null && { CidrIp: input.CidrIp }),
|
|
4666
|
+
...(input.Description != null && { Description: input.Description }),
|
|
4632
4667
|
};
|
|
4633
4668
|
};
|
|
4634
4669
|
const serializeAws_json1_1IpRoutes = (input, context) => {
|
|
@@ -4643,76 +4678,70 @@ const serializeAws_json1_1IpRoutes = (input, context) => {
|
|
|
4643
4678
|
};
|
|
4644
4679
|
const serializeAws_json1_1ListCertificatesRequest = (input, context) => {
|
|
4645
4680
|
return {
|
|
4646
|
-
...(input.DirectoryId
|
|
4647
|
-
...(input.Limit
|
|
4648
|
-
...(input.NextToken
|
|
4681
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4682
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
4683
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4649
4684
|
};
|
|
4650
4685
|
};
|
|
4651
4686
|
const serializeAws_json1_1ListIpRoutesRequest = (input, context) => {
|
|
4652
4687
|
return {
|
|
4653
|
-
...(input.DirectoryId
|
|
4654
|
-
...(input.Limit
|
|
4655
|
-
...(input.NextToken
|
|
4688
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4689
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
4690
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4656
4691
|
};
|
|
4657
4692
|
};
|
|
4658
4693
|
const serializeAws_json1_1ListLogSubscriptionsRequest = (input, context) => {
|
|
4659
4694
|
return {
|
|
4660
|
-
...(input.DirectoryId
|
|
4661
|
-
...(input.Limit
|
|
4662
|
-
...(input.NextToken
|
|
4695
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4696
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
4697
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4663
4698
|
};
|
|
4664
4699
|
};
|
|
4665
4700
|
const serializeAws_json1_1ListSchemaExtensionsRequest = (input, context) => {
|
|
4666
4701
|
return {
|
|
4667
|
-
...(input.DirectoryId
|
|
4668
|
-
...(input.Limit
|
|
4669
|
-
...(input.NextToken
|
|
4702
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4703
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
4704
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4670
4705
|
};
|
|
4671
4706
|
};
|
|
4672
4707
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
4673
4708
|
return {
|
|
4674
|
-
...(input.Limit
|
|
4675
|
-
...(input.NextToken
|
|
4676
|
-
...(input.ResourceId
|
|
4709
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
4710
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4711
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
4677
4712
|
};
|
|
4678
4713
|
};
|
|
4679
4714
|
const serializeAws_json1_1RadiusSettings = (input, context) => {
|
|
4680
4715
|
return {
|
|
4681
|
-
...(input.AuthenticationProtocol
|
|
4682
|
-
|
|
4683
|
-
...(input.
|
|
4684
|
-
...(input.
|
|
4685
|
-
...(input.
|
|
4686
|
-
...(input.
|
|
4687
|
-
|
|
4688
|
-
...(input.
|
|
4689
|
-
...(input.SharedSecret !== undefined && input.SharedSecret !== null && { SharedSecret: input.SharedSecret }),
|
|
4690
|
-
...(input.UseSameUsername !== undefined &&
|
|
4691
|
-
input.UseSameUsername !== null && { UseSameUsername: input.UseSameUsername }),
|
|
4716
|
+
...(input.AuthenticationProtocol != null && { AuthenticationProtocol: input.AuthenticationProtocol }),
|
|
4717
|
+
...(input.DisplayLabel != null && { DisplayLabel: input.DisplayLabel }),
|
|
4718
|
+
...(input.RadiusPort != null && { RadiusPort: input.RadiusPort }),
|
|
4719
|
+
...(input.RadiusRetries != null && { RadiusRetries: input.RadiusRetries }),
|
|
4720
|
+
...(input.RadiusServers != null && { RadiusServers: serializeAws_json1_1Servers(input.RadiusServers, context) }),
|
|
4721
|
+
...(input.RadiusTimeout != null && { RadiusTimeout: input.RadiusTimeout }),
|
|
4722
|
+
...(input.SharedSecret != null && { SharedSecret: input.SharedSecret }),
|
|
4723
|
+
...(input.UseSameUsername != null && { UseSameUsername: input.UseSameUsername }),
|
|
4692
4724
|
};
|
|
4693
4725
|
};
|
|
4694
4726
|
const serializeAws_json1_1RegisterCertificateRequest = (input, context) => {
|
|
4695
4727
|
return {
|
|
4696
|
-
...(input.CertificateData
|
|
4697
|
-
|
|
4698
|
-
...(input.ClientCertAuthSettings !== undefined &&
|
|
4699
|
-
input.ClientCertAuthSettings !== null && {
|
|
4728
|
+
...(input.CertificateData != null && { CertificateData: input.CertificateData }),
|
|
4729
|
+
...(input.ClientCertAuthSettings != null && {
|
|
4700
4730
|
ClientCertAuthSettings: serializeAws_json1_1ClientCertAuthSettings(input.ClientCertAuthSettings, context),
|
|
4701
4731
|
}),
|
|
4702
|
-
...(input.DirectoryId
|
|
4703
|
-
...(input.Type
|
|
4732
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4733
|
+
...(input.Type != null && { Type: input.Type }),
|
|
4704
4734
|
};
|
|
4705
4735
|
};
|
|
4706
4736
|
const serializeAws_json1_1RegisterEventTopicRequest = (input, context) => {
|
|
4707
4737
|
return {
|
|
4708
|
-
...(input.DirectoryId
|
|
4709
|
-
...(input.TopicName
|
|
4738
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4739
|
+
...(input.TopicName != null && { TopicName: input.TopicName }),
|
|
4710
4740
|
};
|
|
4711
4741
|
};
|
|
4712
4742
|
const serializeAws_json1_1RejectSharedDirectoryRequest = (input, context) => {
|
|
4713
4743
|
return {
|
|
4714
|
-
...(input.SharedDirectoryId
|
|
4715
|
-
input.SharedDirectoryId !== null && { SharedDirectoryId: input.SharedDirectoryId }),
|
|
4744
|
+
...(input.SharedDirectoryId != null && { SharedDirectoryId: input.SharedDirectoryId }),
|
|
4716
4745
|
};
|
|
4717
4746
|
};
|
|
4718
4747
|
const serializeAws_json1_1RemoteDomainNames = (input, context) => {
|
|
@@ -4727,33 +4756,31 @@ const serializeAws_json1_1RemoteDomainNames = (input, context) => {
|
|
|
4727
4756
|
};
|
|
4728
4757
|
const serializeAws_json1_1RemoveIpRoutesRequest = (input, context) => {
|
|
4729
4758
|
return {
|
|
4730
|
-
...(input.CidrIps
|
|
4731
|
-
|
|
4732
|
-
...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
|
|
4759
|
+
...(input.CidrIps != null && { CidrIps: serializeAws_json1_1CidrIps(input.CidrIps, context) }),
|
|
4760
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4733
4761
|
};
|
|
4734
4762
|
};
|
|
4735
4763
|
const serializeAws_json1_1RemoveRegionRequest = (input, context) => {
|
|
4736
4764
|
return {
|
|
4737
|
-
...(input.DirectoryId
|
|
4765
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4738
4766
|
};
|
|
4739
4767
|
};
|
|
4740
4768
|
const serializeAws_json1_1RemoveTagsFromResourceRequest = (input, context) => {
|
|
4741
4769
|
return {
|
|
4742
|
-
...(input.ResourceId
|
|
4743
|
-
...(input.TagKeys
|
|
4744
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeys(input.TagKeys, context) }),
|
|
4770
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
4771
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeys(input.TagKeys, context) }),
|
|
4745
4772
|
};
|
|
4746
4773
|
};
|
|
4747
4774
|
const serializeAws_json1_1ResetUserPasswordRequest = (input, context) => {
|
|
4748
4775
|
return {
|
|
4749
|
-
...(input.DirectoryId
|
|
4750
|
-
...(input.NewPassword
|
|
4751
|
-
...(input.UserName
|
|
4776
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4777
|
+
...(input.NewPassword != null && { NewPassword: input.NewPassword }),
|
|
4778
|
+
...(input.UserName != null && { UserName: input.UserName }),
|
|
4752
4779
|
};
|
|
4753
4780
|
};
|
|
4754
4781
|
const serializeAws_json1_1RestoreFromSnapshotRequest = (input, context) => {
|
|
4755
4782
|
return {
|
|
4756
|
-
...(input.SnapshotId
|
|
4783
|
+
...(input.SnapshotId != null && { SnapshotId: input.SnapshotId }),
|
|
4757
4784
|
};
|
|
4758
4785
|
};
|
|
4759
4786
|
const serializeAws_json1_1Servers = (input, context) => {
|
|
@@ -4768,8 +4795,8 @@ const serializeAws_json1_1Servers = (input, context) => {
|
|
|
4768
4795
|
};
|
|
4769
4796
|
const serializeAws_json1_1Setting = (input, context) => {
|
|
4770
4797
|
return {
|
|
4771
|
-
...(input.Name
|
|
4772
|
-
...(input.Value
|
|
4798
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4799
|
+
...(input.Value != null && { Value: input.Value }),
|
|
4773
4800
|
};
|
|
4774
4801
|
};
|
|
4775
4802
|
const serializeAws_json1_1Settings = (input, context) => {
|
|
@@ -4784,17 +4811,16 @@ const serializeAws_json1_1Settings = (input, context) => {
|
|
|
4784
4811
|
};
|
|
4785
4812
|
const serializeAws_json1_1ShareDirectoryRequest = (input, context) => {
|
|
4786
4813
|
return {
|
|
4787
|
-
...(input.DirectoryId
|
|
4788
|
-
...(input.ShareMethod
|
|
4789
|
-
...(input.ShareNotes
|
|
4790
|
-
...(input.ShareTarget
|
|
4791
|
-
input.ShareTarget !== null && { ShareTarget: serializeAws_json1_1ShareTarget(input.ShareTarget, context) }),
|
|
4814
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4815
|
+
...(input.ShareMethod != null && { ShareMethod: input.ShareMethod }),
|
|
4816
|
+
...(input.ShareNotes != null && { ShareNotes: input.ShareNotes }),
|
|
4817
|
+
...(input.ShareTarget != null && { ShareTarget: serializeAws_json1_1ShareTarget(input.ShareTarget, context) }),
|
|
4792
4818
|
};
|
|
4793
4819
|
};
|
|
4794
4820
|
const serializeAws_json1_1ShareTarget = (input, context) => {
|
|
4795
4821
|
return {
|
|
4796
|
-
...(input.Id
|
|
4797
|
-
...(input.Type
|
|
4822
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4823
|
+
...(input.Type != null && { Type: input.Type }),
|
|
4798
4824
|
};
|
|
4799
4825
|
};
|
|
4800
4826
|
const serializeAws_json1_1SnapshotIds = (input, context) => {
|
|
@@ -4809,13 +4835,12 @@ const serializeAws_json1_1SnapshotIds = (input, context) => {
|
|
|
4809
4835
|
};
|
|
4810
4836
|
const serializeAws_json1_1StartSchemaExtensionRequest = (input, context) => {
|
|
4811
4837
|
return {
|
|
4812
|
-
...(input.CreateSnapshotBeforeSchemaExtension
|
|
4813
|
-
input.CreateSnapshotBeforeSchemaExtension !== null && {
|
|
4838
|
+
...(input.CreateSnapshotBeforeSchemaExtension != null && {
|
|
4814
4839
|
CreateSnapshotBeforeSchemaExtension: input.CreateSnapshotBeforeSchemaExtension,
|
|
4815
4840
|
}),
|
|
4816
|
-
...(input.Description
|
|
4817
|
-
...(input.DirectoryId
|
|
4818
|
-
...(input.LdifContent
|
|
4841
|
+
...(input.Description != null && { Description: input.Description }),
|
|
4842
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4843
|
+
...(input.LdifContent != null && { LdifContent: input.LdifContent }),
|
|
4819
4844
|
};
|
|
4820
4845
|
};
|
|
4821
4846
|
const serializeAws_json1_1SubnetIds = (input, context) => {
|
|
@@ -4830,8 +4855,8 @@ const serializeAws_json1_1SubnetIds = (input, context) => {
|
|
|
4830
4855
|
};
|
|
4831
4856
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
4832
4857
|
return {
|
|
4833
|
-
...(input.Key
|
|
4834
|
-
...(input.Value
|
|
4858
|
+
...(input.Key != null && { Key: input.Key }),
|
|
4859
|
+
...(input.Value != null && { Value: input.Value }),
|
|
4835
4860
|
};
|
|
4836
4861
|
};
|
|
4837
4862
|
const serializeAws_json1_1TagKeys = (input, context) => {
|
|
@@ -4876,64 +4901,59 @@ const serializeAws_json1_1TrustIds = (input, context) => {
|
|
|
4876
4901
|
};
|
|
4877
4902
|
const serializeAws_json1_1UnshareDirectoryRequest = (input, context) => {
|
|
4878
4903
|
return {
|
|
4879
|
-
...(input.DirectoryId
|
|
4880
|
-
...(input.UnshareTarget
|
|
4881
|
-
input.UnshareTarget !== null && {
|
|
4904
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4905
|
+
...(input.UnshareTarget != null && {
|
|
4882
4906
|
UnshareTarget: serializeAws_json1_1UnshareTarget(input.UnshareTarget, context),
|
|
4883
4907
|
}),
|
|
4884
4908
|
};
|
|
4885
4909
|
};
|
|
4886
4910
|
const serializeAws_json1_1UnshareTarget = (input, context) => {
|
|
4887
4911
|
return {
|
|
4888
|
-
...(input.Id
|
|
4889
|
-
...(input.Type
|
|
4912
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4913
|
+
...(input.Type != null && { Type: input.Type }),
|
|
4890
4914
|
};
|
|
4891
4915
|
};
|
|
4892
4916
|
const serializeAws_json1_1UpdateConditionalForwarderRequest = (input, context) => {
|
|
4893
4917
|
return {
|
|
4894
|
-
...(input.DirectoryId
|
|
4895
|
-
...(input.DnsIpAddrs
|
|
4896
|
-
|
|
4897
|
-
...(input.RemoteDomainName !== undefined &&
|
|
4898
|
-
input.RemoteDomainName !== null && { RemoteDomainName: input.RemoteDomainName }),
|
|
4918
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4919
|
+
...(input.DnsIpAddrs != null && { DnsIpAddrs: serializeAws_json1_1DnsIpAddrs(input.DnsIpAddrs, context) }),
|
|
4920
|
+
...(input.RemoteDomainName != null && { RemoteDomainName: input.RemoteDomainName }),
|
|
4899
4921
|
};
|
|
4900
4922
|
};
|
|
4901
4923
|
const serializeAws_json1_1UpdateNumberOfDomainControllersRequest = (input, context) => {
|
|
4902
4924
|
return {
|
|
4903
|
-
...(input.DesiredNumber
|
|
4904
|
-
...(input.DirectoryId
|
|
4925
|
+
...(input.DesiredNumber != null && { DesiredNumber: input.DesiredNumber }),
|
|
4926
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4905
4927
|
};
|
|
4906
4928
|
};
|
|
4907
4929
|
const serializeAws_json1_1UpdateRadiusRequest = (input, context) => {
|
|
4908
4930
|
return {
|
|
4909
|
-
...(input.DirectoryId
|
|
4910
|
-
...(input.RadiusSettings
|
|
4911
|
-
input.RadiusSettings !== null && {
|
|
4931
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4932
|
+
...(input.RadiusSettings != null && {
|
|
4912
4933
|
RadiusSettings: serializeAws_json1_1RadiusSettings(input.RadiusSettings, context),
|
|
4913
4934
|
}),
|
|
4914
4935
|
};
|
|
4915
4936
|
};
|
|
4916
4937
|
const serializeAws_json1_1UpdateSettingsRequest = (input, context) => {
|
|
4917
4938
|
return {
|
|
4918
|
-
...(input.DirectoryId
|
|
4919
|
-
...(input.Settings
|
|
4920
|
-
input.Settings !== null && { Settings: serializeAws_json1_1Settings(input.Settings, context) }),
|
|
4939
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
4940
|
+
...(input.Settings != null && { Settings: serializeAws_json1_1Settings(input.Settings, context) }),
|
|
4921
4941
|
};
|
|
4922
4942
|
};
|
|
4923
4943
|
const serializeAws_json1_1UpdateTrustRequest = (input, context) => {
|
|
4924
4944
|
return {
|
|
4925
|
-
...(input.SelectiveAuth
|
|
4926
|
-
...(input.TrustId
|
|
4945
|
+
...(input.SelectiveAuth != null && { SelectiveAuth: input.SelectiveAuth }),
|
|
4946
|
+
...(input.TrustId != null && { TrustId: input.TrustId }),
|
|
4927
4947
|
};
|
|
4928
4948
|
};
|
|
4929
4949
|
const serializeAws_json1_1VerifyTrustRequest = (input, context) => {
|
|
4930
4950
|
return {
|
|
4931
|
-
...(input.TrustId
|
|
4951
|
+
...(input.TrustId != null && { TrustId: input.TrustId }),
|
|
4932
4952
|
};
|
|
4933
4953
|
};
|
|
4934
4954
|
const deserializeAws_json1_1AcceptSharedDirectoryResult = (output, context) => {
|
|
4935
4955
|
return {
|
|
4936
|
-
SharedDirectory: output.SharedDirectory
|
|
4956
|
+
SharedDirectory: output.SharedDirectory != null
|
|
4937
4957
|
? deserializeAws_json1_1SharedDirectory(output.SharedDirectory, context)
|
|
4938
4958
|
: undefined,
|
|
4939
4959
|
};
|
|
@@ -5004,14 +5024,14 @@ const deserializeAws_json1_1CancelSchemaExtensionResult = (output, context) => {
|
|
|
5004
5024
|
const deserializeAws_json1_1Certificate = (output, context) => {
|
|
5005
5025
|
return {
|
|
5006
5026
|
CertificateId: (0, smithy_client_1.expectString)(output.CertificateId),
|
|
5007
|
-
ClientCertAuthSettings: output.ClientCertAuthSettings
|
|
5027
|
+
ClientCertAuthSettings: output.ClientCertAuthSettings != null
|
|
5008
5028
|
? deserializeAws_json1_1ClientCertAuthSettings(output.ClientCertAuthSettings, context)
|
|
5009
5029
|
: undefined,
|
|
5010
5030
|
CommonName: (0, smithy_client_1.expectString)(output.CommonName),
|
|
5011
|
-
ExpiryDateTime: output.ExpiryDateTime
|
|
5031
|
+
ExpiryDateTime: output.ExpiryDateTime != null
|
|
5012
5032
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpiryDateTime)))
|
|
5013
5033
|
: undefined,
|
|
5014
|
-
RegisteredDateTime: output.RegisteredDateTime
|
|
5034
|
+
RegisteredDateTime: output.RegisteredDateTime != null
|
|
5015
5035
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RegisteredDateTime)))
|
|
5016
5036
|
: undefined,
|
|
5017
5037
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
@@ -5035,7 +5055,7 @@ const deserializeAws_json1_1CertificateInfo = (output, context) => {
|
|
|
5035
5055
|
return {
|
|
5036
5056
|
CertificateId: (0, smithy_client_1.expectString)(output.CertificateId),
|
|
5037
5057
|
CommonName: (0, smithy_client_1.expectString)(output.CommonName),
|
|
5038
|
-
ExpiryDateTime: output.ExpiryDateTime
|
|
5058
|
+
ExpiryDateTime: output.ExpiryDateTime != null
|
|
5039
5059
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpiryDateTime)))
|
|
5040
5060
|
: undefined,
|
|
5041
5061
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
@@ -5067,7 +5087,7 @@ const deserializeAws_json1_1CertificatesInfo = (output, context) => {
|
|
|
5067
5087
|
};
|
|
5068
5088
|
const deserializeAws_json1_1ClientAuthenticationSettingInfo = (output, context) => {
|
|
5069
5089
|
return {
|
|
5070
|
-
LastUpdatedDateTime: output.LastUpdatedDateTime
|
|
5090
|
+
LastUpdatedDateTime: output.LastUpdatedDateTime != null
|
|
5071
5091
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedDateTime)))
|
|
5072
5092
|
: undefined,
|
|
5073
5093
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
@@ -5098,7 +5118,7 @@ const deserializeAws_json1_1ClientException = (output, context) => {
|
|
|
5098
5118
|
};
|
|
5099
5119
|
const deserializeAws_json1_1Computer = (output, context) => {
|
|
5100
5120
|
return {
|
|
5101
|
-
ComputerAttributes: output.ComputerAttributes
|
|
5121
|
+
ComputerAttributes: output.ComputerAttributes != null
|
|
5102
5122
|
? deserializeAws_json1_1Attributes(output.ComputerAttributes, context)
|
|
5103
5123
|
: undefined,
|
|
5104
5124
|
ComputerId: (0, smithy_client_1.expectString)(output.ComputerId),
|
|
@@ -5107,9 +5127,7 @@ const deserializeAws_json1_1Computer = (output, context) => {
|
|
|
5107
5127
|
};
|
|
5108
5128
|
const deserializeAws_json1_1ConditionalForwarder = (output, context) => {
|
|
5109
5129
|
return {
|
|
5110
|
-
DnsIpAddrs: output.DnsIpAddrs
|
|
5111
|
-
? deserializeAws_json1_1DnsIpAddrs(output.DnsIpAddrs, context)
|
|
5112
|
-
: undefined,
|
|
5130
|
+
DnsIpAddrs: output.DnsIpAddrs != null ? deserializeAws_json1_1DnsIpAddrs(output.DnsIpAddrs, context) : undefined,
|
|
5113
5131
|
RemoteDomainName: (0, smithy_client_1.expectString)(output.RemoteDomainName),
|
|
5114
5132
|
ReplicationScope: (0, smithy_client_1.expectString)(output.ReplicationScope),
|
|
5115
5133
|
};
|
|
@@ -5138,9 +5156,7 @@ const deserializeAws_json1_1CreateAliasResult = (output, context) => {
|
|
|
5138
5156
|
};
|
|
5139
5157
|
const deserializeAws_json1_1CreateComputerResult = (output, context) => {
|
|
5140
5158
|
return {
|
|
5141
|
-
Computer: output.Computer
|
|
5142
|
-
? deserializeAws_json1_1Computer(output.Computer, context)
|
|
5143
|
-
: undefined,
|
|
5159
|
+
Computer: output.Computer != null ? deserializeAws_json1_1Computer(output.Computer, context) : undefined,
|
|
5144
5160
|
};
|
|
5145
5161
|
};
|
|
5146
5162
|
const deserializeAws_json1_1CreateConditionalForwarderResult = (output, context) => {
|
|
@@ -5198,14 +5214,12 @@ const deserializeAws_json1_1DeregisterEventTopicResult = (output, context) => {
|
|
|
5198
5214
|
};
|
|
5199
5215
|
const deserializeAws_json1_1DescribeCertificateResult = (output, context) => {
|
|
5200
5216
|
return {
|
|
5201
|
-
Certificate: output.Certificate
|
|
5202
|
-
? deserializeAws_json1_1Certificate(output.Certificate, context)
|
|
5203
|
-
: undefined,
|
|
5217
|
+
Certificate: output.Certificate != null ? deserializeAws_json1_1Certificate(output.Certificate, context) : undefined,
|
|
5204
5218
|
};
|
|
5205
5219
|
};
|
|
5206
5220
|
const deserializeAws_json1_1DescribeClientAuthenticationSettingsResult = (output, context) => {
|
|
5207
5221
|
return {
|
|
5208
|
-
ClientAuthenticationSettingsInfo: output.ClientAuthenticationSettingsInfo
|
|
5222
|
+
ClientAuthenticationSettingsInfo: output.ClientAuthenticationSettingsInfo != null
|
|
5209
5223
|
? deserializeAws_json1_1ClientAuthenticationSettingsInfo(output.ClientAuthenticationSettingsInfo, context)
|
|
5210
5224
|
: undefined,
|
|
5211
5225
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -5213,14 +5227,14 @@ const deserializeAws_json1_1DescribeClientAuthenticationSettingsResult = (output
|
|
|
5213
5227
|
};
|
|
5214
5228
|
const deserializeAws_json1_1DescribeConditionalForwardersResult = (output, context) => {
|
|
5215
5229
|
return {
|
|
5216
|
-
ConditionalForwarders: output.ConditionalForwarders
|
|
5230
|
+
ConditionalForwarders: output.ConditionalForwarders != null
|
|
5217
5231
|
? deserializeAws_json1_1ConditionalForwarders(output.ConditionalForwarders, context)
|
|
5218
5232
|
: undefined,
|
|
5219
5233
|
};
|
|
5220
5234
|
};
|
|
5221
5235
|
const deserializeAws_json1_1DescribeDirectoriesResult = (output, context) => {
|
|
5222
5236
|
return {
|
|
5223
|
-
DirectoryDescriptions: output.DirectoryDescriptions
|
|
5237
|
+
DirectoryDescriptions: output.DirectoryDescriptions != null
|
|
5224
5238
|
? deserializeAws_json1_1DirectoryDescriptions(output.DirectoryDescriptions, context)
|
|
5225
5239
|
: undefined,
|
|
5226
5240
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -5228,7 +5242,7 @@ const deserializeAws_json1_1DescribeDirectoriesResult = (output, context) => {
|
|
|
5228
5242
|
};
|
|
5229
5243
|
const deserializeAws_json1_1DescribeDomainControllersResult = (output, context) => {
|
|
5230
5244
|
return {
|
|
5231
|
-
DomainControllers: output.DomainControllers
|
|
5245
|
+
DomainControllers: output.DomainControllers != null
|
|
5232
5246
|
? deserializeAws_json1_1DomainControllers(output.DomainControllers, context)
|
|
5233
5247
|
: undefined,
|
|
5234
5248
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -5236,14 +5250,12 @@ const deserializeAws_json1_1DescribeDomainControllersResult = (output, context)
|
|
|
5236
5250
|
};
|
|
5237
5251
|
const deserializeAws_json1_1DescribeEventTopicsResult = (output, context) => {
|
|
5238
5252
|
return {
|
|
5239
|
-
EventTopics: output.EventTopics
|
|
5240
|
-
? deserializeAws_json1_1EventTopics(output.EventTopics, context)
|
|
5241
|
-
: undefined,
|
|
5253
|
+
EventTopics: output.EventTopics != null ? deserializeAws_json1_1EventTopics(output.EventTopics, context) : undefined,
|
|
5242
5254
|
};
|
|
5243
5255
|
};
|
|
5244
5256
|
const deserializeAws_json1_1DescribeLDAPSSettingsResult = (output, context) => {
|
|
5245
5257
|
return {
|
|
5246
|
-
LDAPSSettingsInfo: output.LDAPSSettingsInfo
|
|
5258
|
+
LDAPSSettingsInfo: output.LDAPSSettingsInfo != null
|
|
5247
5259
|
? deserializeAws_json1_1LDAPSSettingsInfo(output.LDAPSSettingsInfo, context)
|
|
5248
5260
|
: undefined,
|
|
5249
5261
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -5252,7 +5264,7 @@ const deserializeAws_json1_1DescribeLDAPSSettingsResult = (output, context) => {
|
|
|
5252
5264
|
const deserializeAws_json1_1DescribeRegionsResult = (output, context) => {
|
|
5253
5265
|
return {
|
|
5254
5266
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5255
|
-
RegionsDescription: output.RegionsDescription
|
|
5267
|
+
RegionsDescription: output.RegionsDescription != null
|
|
5256
5268
|
? deserializeAws_json1_1RegionsDescription(output.RegionsDescription, context)
|
|
5257
5269
|
: undefined,
|
|
5258
5270
|
};
|
|
@@ -5261,15 +5273,13 @@ const deserializeAws_json1_1DescribeSettingsResult = (output, context) => {
|
|
|
5261
5273
|
return {
|
|
5262
5274
|
DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
|
|
5263
5275
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5264
|
-
SettingEntries: output.SettingEntries
|
|
5265
|
-
? deserializeAws_json1_1SettingEntries(output.SettingEntries, context)
|
|
5266
|
-
: undefined,
|
|
5276
|
+
SettingEntries: output.SettingEntries != null ? deserializeAws_json1_1SettingEntries(output.SettingEntries, context) : undefined,
|
|
5267
5277
|
};
|
|
5268
5278
|
};
|
|
5269
5279
|
const deserializeAws_json1_1DescribeSharedDirectoriesResult = (output, context) => {
|
|
5270
5280
|
return {
|
|
5271
5281
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5272
|
-
SharedDirectories: output.SharedDirectories
|
|
5282
|
+
SharedDirectories: output.SharedDirectories != null
|
|
5273
5283
|
? deserializeAws_json1_1SharedDirectories(output.SharedDirectories, context)
|
|
5274
5284
|
: undefined,
|
|
5275
5285
|
};
|
|
@@ -5277,17 +5287,13 @@ const deserializeAws_json1_1DescribeSharedDirectoriesResult = (output, context)
|
|
|
5277
5287
|
const deserializeAws_json1_1DescribeSnapshotsResult = (output, context) => {
|
|
5278
5288
|
return {
|
|
5279
5289
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5280
|
-
Snapshots: output.Snapshots
|
|
5281
|
-
? deserializeAws_json1_1Snapshots(output.Snapshots, context)
|
|
5282
|
-
: undefined,
|
|
5290
|
+
Snapshots: output.Snapshots != null ? deserializeAws_json1_1Snapshots(output.Snapshots, context) : undefined,
|
|
5283
5291
|
};
|
|
5284
5292
|
};
|
|
5285
5293
|
const deserializeAws_json1_1DescribeTrustsResult = (output, context) => {
|
|
5286
5294
|
return {
|
|
5287
5295
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5288
|
-
Trusts: output.Trusts
|
|
5289
|
-
? deserializeAws_json1_1Trusts(output.Trusts, context)
|
|
5290
|
-
: undefined,
|
|
5296
|
+
Trusts: output.Trusts != null ? deserializeAws_json1_1Trusts(output.Trusts, context) : undefined,
|
|
5291
5297
|
};
|
|
5292
5298
|
};
|
|
5293
5299
|
const deserializeAws_json1_1DirectoryAlreadyInRegionException = (output, context) => {
|
|
@@ -5315,17 +5321,13 @@ const deserializeAws_json1_1DirectoryConfigurationSettingRequestDetailedStatus =
|
|
|
5315
5321
|
};
|
|
5316
5322
|
const deserializeAws_json1_1DirectoryConnectSettingsDescription = (output, context) => {
|
|
5317
5323
|
return {
|
|
5318
|
-
AvailabilityZones: output.AvailabilityZones
|
|
5324
|
+
AvailabilityZones: output.AvailabilityZones != null
|
|
5319
5325
|
? deserializeAws_json1_1AvailabilityZones(output.AvailabilityZones, context)
|
|
5320
5326
|
: undefined,
|
|
5321
|
-
ConnectIps: output.ConnectIps
|
|
5322
|
-
? deserializeAws_json1_1IpAddrs(output.ConnectIps, context)
|
|
5323
|
-
: undefined,
|
|
5327
|
+
ConnectIps: output.ConnectIps != null ? deserializeAws_json1_1IpAddrs(output.ConnectIps, context) : undefined,
|
|
5324
5328
|
CustomerUserName: (0, smithy_client_1.expectString)(output.CustomerUserName),
|
|
5325
5329
|
SecurityGroupId: (0, smithy_client_1.expectString)(output.SecurityGroupId),
|
|
5326
|
-
SubnetIds: output.SubnetIds
|
|
5327
|
-
? deserializeAws_json1_1SubnetIds(output.SubnetIds, context)
|
|
5328
|
-
: undefined,
|
|
5330
|
+
SubnetIds: output.SubnetIds != null ? deserializeAws_json1_1SubnetIds(output.SubnetIds, context) : undefined,
|
|
5329
5331
|
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
5330
5332
|
};
|
|
5331
5333
|
};
|
|
@@ -5333,30 +5335,22 @@ const deserializeAws_json1_1DirectoryDescription = (output, context) => {
|
|
|
5333
5335
|
return {
|
|
5334
5336
|
AccessUrl: (0, smithy_client_1.expectString)(output.AccessUrl),
|
|
5335
5337
|
Alias: (0, smithy_client_1.expectString)(output.Alias),
|
|
5336
|
-
ConnectSettings: output.ConnectSettings
|
|
5338
|
+
ConnectSettings: output.ConnectSettings != null
|
|
5337
5339
|
? deserializeAws_json1_1DirectoryConnectSettingsDescription(output.ConnectSettings, context)
|
|
5338
5340
|
: undefined,
|
|
5339
5341
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5340
5342
|
DesiredNumberOfDomainControllers: (0, smithy_client_1.expectInt32)(output.DesiredNumberOfDomainControllers),
|
|
5341
5343
|
DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
|
|
5342
|
-
DnsIpAddrs: output.DnsIpAddrs
|
|
5343
|
-
? deserializeAws_json1_1DnsIpAddrs(output.DnsIpAddrs, context)
|
|
5344
|
-
: undefined,
|
|
5344
|
+
DnsIpAddrs: output.DnsIpAddrs != null ? deserializeAws_json1_1DnsIpAddrs(output.DnsIpAddrs, context) : undefined,
|
|
5345
5345
|
Edition: (0, smithy_client_1.expectString)(output.Edition),
|
|
5346
|
-
LaunchTime: output.LaunchTime
|
|
5347
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LaunchTime)))
|
|
5348
|
-
: undefined,
|
|
5346
|
+
LaunchTime: output.LaunchTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LaunchTime))) : undefined,
|
|
5349
5347
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5350
|
-
OwnerDirectoryDescription: output.OwnerDirectoryDescription
|
|
5348
|
+
OwnerDirectoryDescription: output.OwnerDirectoryDescription != null
|
|
5351
5349
|
? deserializeAws_json1_1OwnerDirectoryDescription(output.OwnerDirectoryDescription, context)
|
|
5352
5350
|
: undefined,
|
|
5353
|
-
RadiusSettings: output.RadiusSettings
|
|
5354
|
-
? deserializeAws_json1_1RadiusSettings(output.RadiusSettings, context)
|
|
5355
|
-
: undefined,
|
|
5351
|
+
RadiusSettings: output.RadiusSettings != null ? deserializeAws_json1_1RadiusSettings(output.RadiusSettings, context) : undefined,
|
|
5356
5352
|
RadiusStatus: (0, smithy_client_1.expectString)(output.RadiusStatus),
|
|
5357
|
-
RegionsInfo: output.RegionsInfo
|
|
5358
|
-
? deserializeAws_json1_1RegionsInfo(output.RegionsInfo, context)
|
|
5359
|
-
: undefined,
|
|
5353
|
+
RegionsInfo: output.RegionsInfo != null ? deserializeAws_json1_1RegionsInfo(output.RegionsInfo, context) : undefined,
|
|
5360
5354
|
ShareMethod: (0, smithy_client_1.expectString)(output.ShareMethod),
|
|
5361
5355
|
ShareNotes: (0, smithy_client_1.expectString)(output.ShareNotes),
|
|
5362
5356
|
ShareStatus: (0, smithy_client_1.expectString)(output.ShareStatus),
|
|
@@ -5364,12 +5358,12 @@ const deserializeAws_json1_1DirectoryDescription = (output, context) => {
|
|
|
5364
5358
|
Size: (0, smithy_client_1.expectString)(output.Size),
|
|
5365
5359
|
SsoEnabled: (0, smithy_client_1.expectBoolean)(output.SsoEnabled),
|
|
5366
5360
|
Stage: (0, smithy_client_1.expectString)(output.Stage),
|
|
5367
|
-
StageLastUpdatedDateTime: output.StageLastUpdatedDateTime
|
|
5361
|
+
StageLastUpdatedDateTime: output.StageLastUpdatedDateTime != null
|
|
5368
5362
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StageLastUpdatedDateTime)))
|
|
5369
5363
|
: undefined,
|
|
5370
5364
|
StageReason: (0, smithy_client_1.expectString)(output.StageReason),
|
|
5371
5365
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
5372
|
-
VpcSettings: output.VpcSettings
|
|
5366
|
+
VpcSettings: output.VpcSettings != null
|
|
5373
5367
|
? deserializeAws_json1_1DirectoryVpcSettingsDescription(output.VpcSettings, context)
|
|
5374
5368
|
: undefined,
|
|
5375
5369
|
};
|
|
@@ -5424,21 +5418,17 @@ const deserializeAws_json1_1DirectoryUnavailableException = (output, context) =>
|
|
|
5424
5418
|
};
|
|
5425
5419
|
const deserializeAws_json1_1DirectoryVpcSettings = (output, context) => {
|
|
5426
5420
|
return {
|
|
5427
|
-
SubnetIds: output.SubnetIds
|
|
5428
|
-
? deserializeAws_json1_1SubnetIds(output.SubnetIds, context)
|
|
5429
|
-
: undefined,
|
|
5421
|
+
SubnetIds: output.SubnetIds != null ? deserializeAws_json1_1SubnetIds(output.SubnetIds, context) : undefined,
|
|
5430
5422
|
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
5431
5423
|
};
|
|
5432
5424
|
};
|
|
5433
5425
|
const deserializeAws_json1_1DirectoryVpcSettingsDescription = (output, context) => {
|
|
5434
5426
|
return {
|
|
5435
|
-
AvailabilityZones: output.AvailabilityZones
|
|
5427
|
+
AvailabilityZones: output.AvailabilityZones != null
|
|
5436
5428
|
? deserializeAws_json1_1AvailabilityZones(output.AvailabilityZones, context)
|
|
5437
5429
|
: undefined,
|
|
5438
5430
|
SecurityGroupId: (0, smithy_client_1.expectString)(output.SecurityGroupId),
|
|
5439
|
-
SubnetIds: output.SubnetIds
|
|
5440
|
-
? deserializeAws_json1_1SubnetIds(output.SubnetIds, context)
|
|
5441
|
-
: undefined,
|
|
5431
|
+
SubnetIds: output.SubnetIds != null ? deserializeAws_json1_1SubnetIds(output.SubnetIds, context) : undefined,
|
|
5442
5432
|
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
5443
5433
|
};
|
|
5444
5434
|
};
|
|
@@ -5471,11 +5461,9 @@ const deserializeAws_json1_1DomainController = (output, context) => {
|
|
|
5471
5461
|
DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
|
|
5472
5462
|
DnsIpAddr: (0, smithy_client_1.expectString)(output.DnsIpAddr),
|
|
5473
5463
|
DomainControllerId: (0, smithy_client_1.expectString)(output.DomainControllerId),
|
|
5474
|
-
LaunchTime: output.LaunchTime
|
|
5475
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LaunchTime)))
|
|
5476
|
-
: undefined,
|
|
5464
|
+
LaunchTime: output.LaunchTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LaunchTime))) : undefined,
|
|
5477
5465
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
5478
|
-
StatusLastUpdatedDateTime: output.StatusLastUpdatedDateTime
|
|
5466
|
+
StatusLastUpdatedDateTime: output.StatusLastUpdatedDateTime != null
|
|
5479
5467
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StatusLastUpdatedDateTime)))
|
|
5480
5468
|
: undefined,
|
|
5481
5469
|
StatusReason: (0, smithy_client_1.expectString)(output.StatusReason),
|
|
@@ -5526,7 +5514,7 @@ const deserializeAws_json1_1EntityDoesNotExistException = (output, context) => {
|
|
|
5526
5514
|
};
|
|
5527
5515
|
const deserializeAws_json1_1EventTopic = (output, context) => {
|
|
5528
5516
|
return {
|
|
5529
|
-
CreatedDateTime: output.CreatedDateTime
|
|
5517
|
+
CreatedDateTime: output.CreatedDateTime != null
|
|
5530
5518
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDateTime)))
|
|
5531
5519
|
: undefined,
|
|
5532
5520
|
DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
|
|
@@ -5548,16 +5536,14 @@ const deserializeAws_json1_1EventTopics = (output, context) => {
|
|
|
5548
5536
|
};
|
|
5549
5537
|
const deserializeAws_json1_1GetDirectoryLimitsResult = (output, context) => {
|
|
5550
5538
|
return {
|
|
5551
|
-
DirectoryLimits: output.DirectoryLimits
|
|
5539
|
+
DirectoryLimits: output.DirectoryLimits != null
|
|
5552
5540
|
? deserializeAws_json1_1DirectoryLimits(output.DirectoryLimits, context)
|
|
5553
5541
|
: undefined,
|
|
5554
5542
|
};
|
|
5555
5543
|
};
|
|
5556
5544
|
const deserializeAws_json1_1GetSnapshotLimitsResult = (output, context) => {
|
|
5557
5545
|
return {
|
|
5558
|
-
SnapshotLimits: output.SnapshotLimits
|
|
5559
|
-
? deserializeAws_json1_1SnapshotLimits(output.SnapshotLimits, context)
|
|
5560
|
-
: undefined,
|
|
5546
|
+
SnapshotLimits: output.SnapshotLimits != null ? deserializeAws_json1_1SnapshotLimits(output.SnapshotLimits, context) : undefined,
|
|
5561
5547
|
};
|
|
5562
5548
|
};
|
|
5563
5549
|
const deserializeAws_json1_1IncompatibleSettingsException = (output, context) => {
|
|
@@ -5627,7 +5613,7 @@ const deserializeAws_json1_1IpAddrs = (output, context) => {
|
|
|
5627
5613
|
};
|
|
5628
5614
|
const deserializeAws_json1_1IpRouteInfo = (output, context) => {
|
|
5629
5615
|
return {
|
|
5630
|
-
AddedDateTime: output.AddedDateTime
|
|
5616
|
+
AddedDateTime: output.AddedDateTime != null
|
|
5631
5617
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AddedDateTime)))
|
|
5632
5618
|
: undefined,
|
|
5633
5619
|
CidrIp: (0, smithy_client_1.expectString)(output.CidrIp),
|
|
@@ -5658,7 +5644,7 @@ const deserializeAws_json1_1LDAPSSettingInfo = (output, context) => {
|
|
|
5658
5644
|
return {
|
|
5659
5645
|
LDAPSStatus: (0, smithy_client_1.expectString)(output.LDAPSStatus),
|
|
5660
5646
|
LDAPSStatusReason: (0, smithy_client_1.expectString)(output.LDAPSStatusReason),
|
|
5661
|
-
LastUpdatedDateTime: output.LastUpdatedDateTime
|
|
5647
|
+
LastUpdatedDateTime: output.LastUpdatedDateTime != null
|
|
5662
5648
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedDateTime)))
|
|
5663
5649
|
: undefined,
|
|
5664
5650
|
};
|
|
@@ -5676,7 +5662,7 @@ const deserializeAws_json1_1LDAPSSettingsInfo = (output, context) => {
|
|
|
5676
5662
|
};
|
|
5677
5663
|
const deserializeAws_json1_1ListCertificatesResult = (output, context) => {
|
|
5678
5664
|
return {
|
|
5679
|
-
CertificatesInfo: output.CertificatesInfo
|
|
5665
|
+
CertificatesInfo: output.CertificatesInfo != null
|
|
5680
5666
|
? deserializeAws_json1_1CertificatesInfo(output.CertificatesInfo, context)
|
|
5681
5667
|
: undefined,
|
|
5682
5668
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -5684,15 +5670,13 @@ const deserializeAws_json1_1ListCertificatesResult = (output, context) => {
|
|
|
5684
5670
|
};
|
|
5685
5671
|
const deserializeAws_json1_1ListIpRoutesResult = (output, context) => {
|
|
5686
5672
|
return {
|
|
5687
|
-
IpRoutesInfo: output.IpRoutesInfo
|
|
5688
|
-
? deserializeAws_json1_1IpRoutesInfo(output.IpRoutesInfo, context)
|
|
5689
|
-
: undefined,
|
|
5673
|
+
IpRoutesInfo: output.IpRoutesInfo != null ? deserializeAws_json1_1IpRoutesInfo(output.IpRoutesInfo, context) : undefined,
|
|
5690
5674
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5691
5675
|
};
|
|
5692
5676
|
};
|
|
5693
5677
|
const deserializeAws_json1_1ListLogSubscriptionsResult = (output, context) => {
|
|
5694
5678
|
return {
|
|
5695
|
-
LogSubscriptions: output.LogSubscriptions
|
|
5679
|
+
LogSubscriptions: output.LogSubscriptions != null
|
|
5696
5680
|
? deserializeAws_json1_1LogSubscriptions(output.LogSubscriptions, context)
|
|
5697
5681
|
: undefined,
|
|
5698
5682
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -5701,7 +5685,7 @@ const deserializeAws_json1_1ListLogSubscriptionsResult = (output, context) => {
|
|
|
5701
5685
|
const deserializeAws_json1_1ListSchemaExtensionsResult = (output, context) => {
|
|
5702
5686
|
return {
|
|
5703
5687
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5704
|
-
SchemaExtensionsInfo: output.SchemaExtensionsInfo
|
|
5688
|
+
SchemaExtensionsInfo: output.SchemaExtensionsInfo != null
|
|
5705
5689
|
? deserializeAws_json1_1SchemaExtensionsInfo(output.SchemaExtensionsInfo, context)
|
|
5706
5690
|
: undefined,
|
|
5707
5691
|
};
|
|
@@ -5709,14 +5693,14 @@ const deserializeAws_json1_1ListSchemaExtensionsResult = (output, context) => {
|
|
|
5709
5693
|
const deserializeAws_json1_1ListTagsForResourceResult = (output, context) => {
|
|
5710
5694
|
return {
|
|
5711
5695
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5712
|
-
Tags: output.Tags
|
|
5696
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
5713
5697
|
};
|
|
5714
5698
|
};
|
|
5715
5699
|
const deserializeAws_json1_1LogSubscription = (output, context) => {
|
|
5716
5700
|
return {
|
|
5717
5701
|
DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
|
|
5718
5702
|
LogGroupName: (0, smithy_client_1.expectString)(output.LogGroupName),
|
|
5719
|
-
SubscriptionCreatedDateTime: output.SubscriptionCreatedDateTime
|
|
5703
|
+
SubscriptionCreatedDateTime: output.SubscriptionCreatedDateTime != null
|
|
5720
5704
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubscriptionCreatedDateTime)))
|
|
5721
5705
|
: undefined,
|
|
5722
5706
|
};
|
|
@@ -5748,14 +5732,10 @@ const deserializeAws_json1_1OwnerDirectoryDescription = (output, context) => {
|
|
|
5748
5732
|
return {
|
|
5749
5733
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
5750
5734
|
DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
|
|
5751
|
-
DnsIpAddrs: output.DnsIpAddrs
|
|
5752
|
-
|
|
5753
|
-
: undefined,
|
|
5754
|
-
RadiusSettings: output.RadiusSettings !== undefined && output.RadiusSettings !== null
|
|
5755
|
-
? deserializeAws_json1_1RadiusSettings(output.RadiusSettings, context)
|
|
5756
|
-
: undefined,
|
|
5735
|
+
DnsIpAddrs: output.DnsIpAddrs != null ? deserializeAws_json1_1DnsIpAddrs(output.DnsIpAddrs, context) : undefined,
|
|
5736
|
+
RadiusSettings: output.RadiusSettings != null ? deserializeAws_json1_1RadiusSettings(output.RadiusSettings, context) : undefined,
|
|
5757
5737
|
RadiusStatus: (0, smithy_client_1.expectString)(output.RadiusStatus),
|
|
5758
|
-
VpcSettings: output.VpcSettings
|
|
5738
|
+
VpcSettings: output.VpcSettings != null
|
|
5759
5739
|
? deserializeAws_json1_1DirectoryVpcSettingsDescription(output.VpcSettings, context)
|
|
5760
5740
|
: undefined,
|
|
5761
5741
|
};
|
|
@@ -5766,9 +5746,7 @@ const deserializeAws_json1_1RadiusSettings = (output, context) => {
|
|
|
5766
5746
|
DisplayLabel: (0, smithy_client_1.expectString)(output.DisplayLabel),
|
|
5767
5747
|
RadiusPort: (0, smithy_client_1.expectInt32)(output.RadiusPort),
|
|
5768
5748
|
RadiusRetries: (0, smithy_client_1.expectInt32)(output.RadiusRetries),
|
|
5769
|
-
RadiusServers: output.RadiusServers
|
|
5770
|
-
? deserializeAws_json1_1Servers(output.RadiusServers, context)
|
|
5771
|
-
: undefined,
|
|
5749
|
+
RadiusServers: output.RadiusServers != null ? deserializeAws_json1_1Servers(output.RadiusServers, context) : undefined,
|
|
5772
5750
|
RadiusTimeout: (0, smithy_client_1.expectInt32)(output.RadiusTimeout),
|
|
5773
5751
|
SharedSecret: (0, smithy_client_1.expectString)(output.SharedSecret),
|
|
5774
5752
|
UseSameUsername: (0, smithy_client_1.expectBoolean)(output.UseSameUsername),
|
|
@@ -5778,21 +5756,17 @@ const deserializeAws_json1_1RegionDescription = (output, context) => {
|
|
|
5778
5756
|
return {
|
|
5779
5757
|
DesiredNumberOfDomainControllers: (0, smithy_client_1.expectInt32)(output.DesiredNumberOfDomainControllers),
|
|
5780
5758
|
DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
|
|
5781
|
-
LastUpdatedDateTime: output.LastUpdatedDateTime
|
|
5759
|
+
LastUpdatedDateTime: output.LastUpdatedDateTime != null
|
|
5782
5760
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedDateTime)))
|
|
5783
5761
|
: undefined,
|
|
5784
|
-
LaunchTime: output.LaunchTime
|
|
5785
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LaunchTime)))
|
|
5786
|
-
: undefined,
|
|
5762
|
+
LaunchTime: output.LaunchTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LaunchTime))) : undefined,
|
|
5787
5763
|
RegionName: (0, smithy_client_1.expectString)(output.RegionName),
|
|
5788
5764
|
RegionType: (0, smithy_client_1.expectString)(output.RegionType),
|
|
5789
5765
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
5790
|
-
StatusLastUpdatedDateTime: output.StatusLastUpdatedDateTime
|
|
5766
|
+
StatusLastUpdatedDateTime: output.StatusLastUpdatedDateTime != null
|
|
5791
5767
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StatusLastUpdatedDateTime)))
|
|
5792
5768
|
: undefined,
|
|
5793
|
-
VpcSettings: output.VpcSettings
|
|
5794
|
-
? deserializeAws_json1_1DirectoryVpcSettings(output.VpcSettings, context)
|
|
5795
|
-
: undefined,
|
|
5769
|
+
VpcSettings: output.VpcSettings != null ? deserializeAws_json1_1DirectoryVpcSettings(output.VpcSettings, context) : undefined,
|
|
5796
5770
|
};
|
|
5797
5771
|
};
|
|
5798
5772
|
const deserializeAws_json1_1RegionLimitExceededException = (output, context) => {
|
|
@@ -5814,7 +5788,7 @@ const deserializeAws_json1_1RegionsDescription = (output, context) => {
|
|
|
5814
5788
|
};
|
|
5815
5789
|
const deserializeAws_json1_1RegionsInfo = (output, context) => {
|
|
5816
5790
|
return {
|
|
5817
|
-
AdditionalRegions: output.AdditionalRegions
|
|
5791
|
+
AdditionalRegions: output.AdditionalRegions != null
|
|
5818
5792
|
? deserializeAws_json1_1AdditionalRegions(output.AdditionalRegions, context)
|
|
5819
5793
|
: undefined,
|
|
5820
5794
|
PrimaryRegion: (0, smithy_client_1.expectString)(output.PrimaryRegion),
|
|
@@ -5852,13 +5826,13 @@ const deserializeAws_json1_1SchemaExtensionInfo = (output, context) => {
|
|
|
5852
5826
|
return {
|
|
5853
5827
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5854
5828
|
DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
|
|
5855
|
-
EndDateTime: output.EndDateTime
|
|
5829
|
+
EndDateTime: output.EndDateTime != null
|
|
5856
5830
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndDateTime)))
|
|
5857
5831
|
: undefined,
|
|
5858
5832
|
SchemaExtensionId: (0, smithy_client_1.expectString)(output.SchemaExtensionId),
|
|
5859
5833
|
SchemaExtensionStatus: (0, smithy_client_1.expectString)(output.SchemaExtensionStatus),
|
|
5860
5834
|
SchemaExtensionStatusReason: (0, smithy_client_1.expectString)(output.SchemaExtensionStatusReason),
|
|
5861
|
-
StartDateTime: output.StartDateTime
|
|
5835
|
+
StartDateTime: output.StartDateTime != null
|
|
5862
5836
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartDateTime)))
|
|
5863
5837
|
: undefined,
|
|
5864
5838
|
};
|
|
@@ -5906,14 +5880,14 @@ const deserializeAws_json1_1SettingEntry = (output, context) => {
|
|
|
5906
5880
|
return {
|
|
5907
5881
|
AllowedValues: (0, smithy_client_1.expectString)(output.AllowedValues),
|
|
5908
5882
|
AppliedValue: (0, smithy_client_1.expectString)(output.AppliedValue),
|
|
5909
|
-
LastRequestedDateTime: output.LastRequestedDateTime
|
|
5883
|
+
LastRequestedDateTime: output.LastRequestedDateTime != null
|
|
5910
5884
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastRequestedDateTime)))
|
|
5911
5885
|
: undefined,
|
|
5912
|
-
LastUpdatedDateTime: output.LastUpdatedDateTime
|
|
5886
|
+
LastUpdatedDateTime: output.LastUpdatedDateTime != null
|
|
5913
5887
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedDateTime)))
|
|
5914
5888
|
: undefined,
|
|
5915
5889
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5916
|
-
RequestDetailedStatus: output.RequestDetailedStatus
|
|
5890
|
+
RequestDetailedStatus: output.RequestDetailedStatus != null
|
|
5917
5891
|
? deserializeAws_json1_1DirectoryConfigurationSettingRequestDetailedStatus(output.RequestDetailedStatus, context)
|
|
5918
5892
|
: undefined,
|
|
5919
5893
|
RequestStatus: (0, smithy_client_1.expectString)(output.RequestStatus),
|
|
@@ -5935,10 +5909,10 @@ const deserializeAws_json1_1SharedDirectories = (output, context) => {
|
|
|
5935
5909
|
};
|
|
5936
5910
|
const deserializeAws_json1_1SharedDirectory = (output, context) => {
|
|
5937
5911
|
return {
|
|
5938
|
-
CreatedDateTime: output.CreatedDateTime
|
|
5912
|
+
CreatedDateTime: output.CreatedDateTime != null
|
|
5939
5913
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDateTime)))
|
|
5940
5914
|
: undefined,
|
|
5941
|
-
LastUpdatedDateTime: output.LastUpdatedDateTime
|
|
5915
|
+
LastUpdatedDateTime: output.LastUpdatedDateTime != null
|
|
5942
5916
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedDateTime)))
|
|
5943
5917
|
: undefined,
|
|
5944
5918
|
OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
|
|
@@ -5966,9 +5940,7 @@ const deserializeAws_json1_1Snapshot = (output, context) => {
|
|
|
5966
5940
|
DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
|
|
5967
5941
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5968
5942
|
SnapshotId: (0, smithy_client_1.expectString)(output.SnapshotId),
|
|
5969
|
-
StartTime: output.StartTime
|
|
5970
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
5971
|
-
: undefined,
|
|
5943
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
5972
5944
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
5973
5945
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
5974
5946
|
};
|
|
@@ -6038,16 +6010,16 @@ const deserializeAws_json1_1Tags = (output, context) => {
|
|
|
6038
6010
|
};
|
|
6039
6011
|
const deserializeAws_json1_1Trust = (output, context) => {
|
|
6040
6012
|
return {
|
|
6041
|
-
CreatedDateTime: output.CreatedDateTime
|
|
6013
|
+
CreatedDateTime: output.CreatedDateTime != null
|
|
6042
6014
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDateTime)))
|
|
6043
6015
|
: undefined,
|
|
6044
6016
|
DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
|
|
6045
|
-
LastUpdatedDateTime: output.LastUpdatedDateTime
|
|
6017
|
+
LastUpdatedDateTime: output.LastUpdatedDateTime != null
|
|
6046
6018
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedDateTime)))
|
|
6047
6019
|
: undefined,
|
|
6048
6020
|
RemoteDomainName: (0, smithy_client_1.expectString)(output.RemoteDomainName),
|
|
6049
6021
|
SelectiveAuth: (0, smithy_client_1.expectString)(output.SelectiveAuth),
|
|
6050
|
-
StateLastUpdatedDateTime: output.StateLastUpdatedDateTime
|
|
6022
|
+
StateLastUpdatedDateTime: output.StateLastUpdatedDateTime != null
|
|
6051
6023
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StateLastUpdatedDateTime)))
|
|
6052
6024
|
: undefined,
|
|
6053
6025
|
TrustDirection: (0, smithy_client_1.expectString)(output.TrustDirection),
|
|
@@ -6178,5 +6150,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
6178
6150
|
if (data["__type"] !== undefined) {
|
|
6179
6151
|
return sanitizeErrorCode(data["__type"]);
|
|
6180
6152
|
}
|
|
6181
|
-
return "";
|
|
6182
6153
|
};
|