@aws-sdk/client-workspaces-web 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_restJson1.js +280 -268
- package/dist-es/protocols/Aws_restJson1.js +258 -246
- package/package.json +26 -26
|
@@ -148,16 +148,13 @@ const serializeAws_restJson1CreateBrowserSettingsCommand = async (input, context
|
|
|
148
148
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings";
|
|
149
149
|
let body;
|
|
150
150
|
body = JSON.stringify({
|
|
151
|
-
...(input.additionalEncryptionContext
|
|
152
|
-
input.additionalEncryptionContext !== null && {
|
|
151
|
+
...(input.additionalEncryptionContext != null && {
|
|
153
152
|
additionalEncryptionContext: serializeAws_restJson1EncryptionContextMap(input.additionalEncryptionContext, context),
|
|
154
153
|
}),
|
|
155
|
-
...(input.browserPolicy
|
|
154
|
+
...(input.browserPolicy != null && { browserPolicy: input.browserPolicy }),
|
|
156
155
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
157
|
-
...(input.customerManagedKey
|
|
158
|
-
|
|
159
|
-
...(input.tags !== undefined &&
|
|
160
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
156
|
+
...(input.customerManagedKey != null && { customerManagedKey: input.customerManagedKey }),
|
|
157
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
161
158
|
});
|
|
162
159
|
return new protocol_http_1.HttpRequest({
|
|
163
160
|
protocol,
|
|
@@ -180,15 +177,12 @@ const serializeAws_restJson1CreateIdentityProviderCommand = async (input, contex
|
|
|
180
177
|
let body;
|
|
181
178
|
body = JSON.stringify({
|
|
182
179
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
183
|
-
...(input.identityProviderDetails
|
|
184
|
-
input.identityProviderDetails !== null && {
|
|
180
|
+
...(input.identityProviderDetails != null && {
|
|
185
181
|
identityProviderDetails: serializeAws_restJson1IdentityProviderDetails(input.identityProviderDetails, context),
|
|
186
182
|
}),
|
|
187
|
-
...(input.identityProviderName
|
|
188
|
-
|
|
189
|
-
...(input.
|
|
190
|
-
input.identityProviderType !== null && { identityProviderType: input.identityProviderType }),
|
|
191
|
-
...(input.portalArn !== undefined && input.portalArn !== null && { portalArn: input.portalArn }),
|
|
183
|
+
...(input.identityProviderName != null && { identityProviderName: input.identityProviderName }),
|
|
184
|
+
...(input.identityProviderType != null && { identityProviderType: input.identityProviderType }),
|
|
185
|
+
...(input.portalArn != null && { portalArn: input.portalArn }),
|
|
192
186
|
});
|
|
193
187
|
return new protocol_http_1.HttpRequest({
|
|
194
188
|
protocol,
|
|
@@ -211,15 +205,12 @@ const serializeAws_restJson1CreateNetworkSettingsCommand = async (input, context
|
|
|
211
205
|
let body;
|
|
212
206
|
body = JSON.stringify({
|
|
213
207
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
214
|
-
...(input.securityGroupIds
|
|
215
|
-
input.securityGroupIds !== null && {
|
|
208
|
+
...(input.securityGroupIds != null && {
|
|
216
209
|
securityGroupIds: serializeAws_restJson1SecurityGroupIdList(input.securityGroupIds, context),
|
|
217
210
|
}),
|
|
218
|
-
...(input.subnetIds
|
|
219
|
-
|
|
220
|
-
...(input.
|
|
221
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
222
|
-
...(input.vpcId !== undefined && input.vpcId !== null && { vpcId: input.vpcId }),
|
|
211
|
+
...(input.subnetIds != null && { subnetIds: serializeAws_restJson1SubnetIdList(input.subnetIds, context) }),
|
|
212
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
213
|
+
...(input.vpcId != null && { vpcId: input.vpcId }),
|
|
223
214
|
});
|
|
224
215
|
return new protocol_http_1.HttpRequest({
|
|
225
216
|
protocol,
|
|
@@ -241,16 +232,13 @@ const serializeAws_restJson1CreatePortalCommand = async (input, context) => {
|
|
|
241
232
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals";
|
|
242
233
|
let body;
|
|
243
234
|
body = JSON.stringify({
|
|
244
|
-
...(input.additionalEncryptionContext
|
|
245
|
-
input.additionalEncryptionContext !== null && {
|
|
235
|
+
...(input.additionalEncryptionContext != null && {
|
|
246
236
|
additionalEncryptionContext: serializeAws_restJson1EncryptionContextMap(input.additionalEncryptionContext, context),
|
|
247
237
|
}),
|
|
248
238
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
249
|
-
...(input.customerManagedKey
|
|
250
|
-
|
|
251
|
-
...(input.
|
|
252
|
-
...(input.tags !== undefined &&
|
|
253
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
239
|
+
...(input.customerManagedKey != null && { customerManagedKey: input.customerManagedKey }),
|
|
240
|
+
...(input.displayName != null && { displayName: input.displayName }),
|
|
241
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
254
242
|
});
|
|
255
243
|
return new protocol_http_1.HttpRequest({
|
|
256
244
|
protocol,
|
|
@@ -272,13 +260,11 @@ const serializeAws_restJson1CreateTrustStoreCommand = async (input, context) =>
|
|
|
272
260
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores";
|
|
273
261
|
let body;
|
|
274
262
|
body = JSON.stringify({
|
|
275
|
-
...(input.certificateList
|
|
276
|
-
input.certificateList !== null && {
|
|
263
|
+
...(input.certificateList != null && {
|
|
277
264
|
certificateList: serializeAws_restJson1CertificateList(input.certificateList, context),
|
|
278
265
|
}),
|
|
279
266
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
280
|
-
...(input.tags
|
|
281
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
267
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
282
268
|
});
|
|
283
269
|
return new protocol_http_1.HttpRequest({
|
|
284
270
|
protocol,
|
|
@@ -301,20 +287,16 @@ const serializeAws_restJson1CreateUserSettingsCommand = async (input, context) =
|
|
|
301
287
|
let body;
|
|
302
288
|
body = JSON.stringify({
|
|
303
289
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
304
|
-
...(input.copyAllowed
|
|
305
|
-
...(input.disconnectTimeoutInMinutes
|
|
306
|
-
|
|
307
|
-
...(input.
|
|
308
|
-
input.downloadAllowed !== null && { downloadAllowed: input.downloadAllowed }),
|
|
309
|
-
...(input.idleDisconnectTimeoutInMinutes !== undefined &&
|
|
310
|
-
input.idleDisconnectTimeoutInMinutes !== null && {
|
|
290
|
+
...(input.copyAllowed != null && { copyAllowed: input.copyAllowed }),
|
|
291
|
+
...(input.disconnectTimeoutInMinutes != null && { disconnectTimeoutInMinutes: input.disconnectTimeoutInMinutes }),
|
|
292
|
+
...(input.downloadAllowed != null && { downloadAllowed: input.downloadAllowed }),
|
|
293
|
+
...(input.idleDisconnectTimeoutInMinutes != null && {
|
|
311
294
|
idleDisconnectTimeoutInMinutes: input.idleDisconnectTimeoutInMinutes,
|
|
312
295
|
}),
|
|
313
|
-
...(input.pasteAllowed
|
|
314
|
-
...(input.printAllowed
|
|
315
|
-
...(input.tags
|
|
316
|
-
|
|
317
|
-
...(input.uploadAllowed !== undefined && input.uploadAllowed !== null && { uploadAllowed: input.uploadAllowed }),
|
|
296
|
+
...(input.pasteAllowed != null && { pasteAllowed: input.pasteAllowed }),
|
|
297
|
+
...(input.printAllowed != null && { printAllowed: input.printAllowed }),
|
|
298
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
299
|
+
...(input.uploadAllowed != null && { uploadAllowed: input.uploadAllowed }),
|
|
318
300
|
});
|
|
319
301
|
return new protocol_http_1.HttpRequest({
|
|
320
302
|
protocol,
|
|
@@ -1079,8 +1061,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1079
1061
|
let body;
|
|
1080
1062
|
body = JSON.stringify({
|
|
1081
1063
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1082
|
-
...(input.tags
|
|
1083
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
1064
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
1084
1065
|
});
|
|
1085
1066
|
return new protocol_http_1.HttpRequest({
|
|
1086
1067
|
protocol,
|
|
@@ -1148,7 +1129,7 @@ const serializeAws_restJson1UpdateBrowserSettingsCommand = async (input, context
|
|
|
1148
1129
|
}
|
|
1149
1130
|
let body;
|
|
1150
1131
|
body = JSON.stringify({
|
|
1151
|
-
...(input.browserPolicy
|
|
1132
|
+
...(input.browserPolicy != null && { browserPolicy: input.browserPolicy }),
|
|
1152
1133
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1153
1134
|
});
|
|
1154
1135
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1185,14 +1166,11 @@ const serializeAws_restJson1UpdateIdentityProviderCommand = async (input, contex
|
|
|
1185
1166
|
let body;
|
|
1186
1167
|
body = JSON.stringify({
|
|
1187
1168
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1188
|
-
...(input.identityProviderDetails
|
|
1189
|
-
input.identityProviderDetails !== null && {
|
|
1169
|
+
...(input.identityProviderDetails != null && {
|
|
1190
1170
|
identityProviderDetails: serializeAws_restJson1IdentityProviderDetails(input.identityProviderDetails, context),
|
|
1191
1171
|
}),
|
|
1192
|
-
...(input.identityProviderName
|
|
1193
|
-
|
|
1194
|
-
...(input.identityProviderType !== undefined &&
|
|
1195
|
-
input.identityProviderType !== null && { identityProviderType: input.identityProviderType }),
|
|
1172
|
+
...(input.identityProviderName != null && { identityProviderName: input.identityProviderName }),
|
|
1173
|
+
...(input.identityProviderType != null && { identityProviderType: input.identityProviderType }),
|
|
1196
1174
|
});
|
|
1197
1175
|
return new protocol_http_1.HttpRequest({
|
|
1198
1176
|
protocol,
|
|
@@ -1228,13 +1206,11 @@ const serializeAws_restJson1UpdateNetworkSettingsCommand = async (input, context
|
|
|
1228
1206
|
let body;
|
|
1229
1207
|
body = JSON.stringify({
|
|
1230
1208
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1231
|
-
...(input.securityGroupIds
|
|
1232
|
-
input.securityGroupIds !== null && {
|
|
1209
|
+
...(input.securityGroupIds != null && {
|
|
1233
1210
|
securityGroupIds: serializeAws_restJson1SecurityGroupIdList(input.securityGroupIds, context),
|
|
1234
1211
|
}),
|
|
1235
|
-
...(input.subnetIds
|
|
1236
|
-
|
|
1237
|
-
...(input.vpcId !== undefined && input.vpcId !== null && { vpcId: input.vpcId }),
|
|
1212
|
+
...(input.subnetIds != null && { subnetIds: serializeAws_restJson1SubnetIdList(input.subnetIds, context) }),
|
|
1213
|
+
...(input.vpcId != null && { vpcId: input.vpcId }),
|
|
1238
1214
|
});
|
|
1239
1215
|
return new protocol_http_1.HttpRequest({
|
|
1240
1216
|
protocol,
|
|
@@ -1268,7 +1244,7 @@ const serializeAws_restJson1UpdatePortalCommand = async (input, context) => {
|
|
|
1268
1244
|
}
|
|
1269
1245
|
let body;
|
|
1270
1246
|
body = JSON.stringify({
|
|
1271
|
-
...(input.displayName
|
|
1247
|
+
...(input.displayName != null && { displayName: input.displayName }),
|
|
1272
1248
|
});
|
|
1273
1249
|
return new protocol_http_1.HttpRequest({
|
|
1274
1250
|
protocol,
|
|
@@ -1303,12 +1279,10 @@ const serializeAws_restJson1UpdateTrustStoreCommand = async (input, context) =>
|
|
|
1303
1279
|
}
|
|
1304
1280
|
let body;
|
|
1305
1281
|
body = JSON.stringify({
|
|
1306
|
-
...(input.certificatesToAdd
|
|
1307
|
-
input.certificatesToAdd !== null && {
|
|
1282
|
+
...(input.certificatesToAdd != null && {
|
|
1308
1283
|
certificatesToAdd: serializeAws_restJson1CertificateList(input.certificatesToAdd, context),
|
|
1309
1284
|
}),
|
|
1310
|
-
...(input.certificatesToDelete
|
|
1311
|
-
input.certificatesToDelete !== null && {
|
|
1285
|
+
...(input.certificatesToDelete != null && {
|
|
1312
1286
|
certificatesToDelete: serializeAws_restJson1CertificateThumbprintList(input.certificatesToDelete, context),
|
|
1313
1287
|
}),
|
|
1314
1288
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
@@ -1347,18 +1321,15 @@ const serializeAws_restJson1UpdateUserSettingsCommand = async (input, context) =
|
|
|
1347
1321
|
let body;
|
|
1348
1322
|
body = JSON.stringify({
|
|
1349
1323
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1350
|
-
...(input.copyAllowed
|
|
1351
|
-
...(input.disconnectTimeoutInMinutes
|
|
1352
|
-
|
|
1353
|
-
...(input.
|
|
1354
|
-
input.downloadAllowed !== null && { downloadAllowed: input.downloadAllowed }),
|
|
1355
|
-
...(input.idleDisconnectTimeoutInMinutes !== undefined &&
|
|
1356
|
-
input.idleDisconnectTimeoutInMinutes !== null && {
|
|
1324
|
+
...(input.copyAllowed != null && { copyAllowed: input.copyAllowed }),
|
|
1325
|
+
...(input.disconnectTimeoutInMinutes != null && { disconnectTimeoutInMinutes: input.disconnectTimeoutInMinutes }),
|
|
1326
|
+
...(input.downloadAllowed != null && { downloadAllowed: input.downloadAllowed }),
|
|
1327
|
+
...(input.idleDisconnectTimeoutInMinutes != null && {
|
|
1357
1328
|
idleDisconnectTimeoutInMinutes: input.idleDisconnectTimeoutInMinutes,
|
|
1358
1329
|
}),
|
|
1359
|
-
...(input.pasteAllowed
|
|
1360
|
-
...(input.printAllowed
|
|
1361
|
-
...(input.uploadAllowed
|
|
1330
|
+
...(input.pasteAllowed != null && { pasteAllowed: input.pasteAllowed }),
|
|
1331
|
+
...(input.printAllowed != null && { printAllowed: input.printAllowed }),
|
|
1332
|
+
...(input.uploadAllowed != null && { uploadAllowed: input.uploadAllowed }),
|
|
1362
1333
|
});
|
|
1363
1334
|
return new protocol_http_1.HttpRequest({
|
|
1364
1335
|
protocol,
|
|
@@ -1396,8 +1367,7 @@ const deserializeAws_restJson1AssociateBrowserSettingsCommandError = async (outp
|
|
|
1396
1367
|
body: await parseBody(output.body, context),
|
|
1397
1368
|
};
|
|
1398
1369
|
let response;
|
|
1399
|
-
|
|
1400
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1370
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1401
1371
|
switch (errorCode) {
|
|
1402
1372
|
case "AccessDeniedException":
|
|
1403
1373
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1419,10 +1389,12 @@ const deserializeAws_restJson1AssociateBrowserSettingsCommandError = async (outp
|
|
|
1419
1389
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1420
1390
|
default:
|
|
1421
1391
|
const parsedBody = parsedOutput.body;
|
|
1392
|
+
const $metadata = deserializeMetadata(output);
|
|
1393
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1422
1394
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1423
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1395
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1424
1396
|
$fault: "client",
|
|
1425
|
-
$metadata
|
|
1397
|
+
$metadata,
|
|
1426
1398
|
});
|
|
1427
1399
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1428
1400
|
}
|
|
@@ -1452,8 +1424,7 @@ const deserializeAws_restJson1AssociateNetworkSettingsCommandError = async (outp
|
|
|
1452
1424
|
body: await parseBody(output.body, context),
|
|
1453
1425
|
};
|
|
1454
1426
|
let response;
|
|
1455
|
-
|
|
1456
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1427
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1457
1428
|
switch (errorCode) {
|
|
1458
1429
|
case "AccessDeniedException":
|
|
1459
1430
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1475,10 +1446,12 @@ const deserializeAws_restJson1AssociateNetworkSettingsCommandError = async (outp
|
|
|
1475
1446
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1476
1447
|
default:
|
|
1477
1448
|
const parsedBody = parsedOutput.body;
|
|
1449
|
+
const $metadata = deserializeMetadata(output);
|
|
1450
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1478
1451
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1479
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1452
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1480
1453
|
$fault: "client",
|
|
1481
|
-
$metadata
|
|
1454
|
+
$metadata,
|
|
1482
1455
|
});
|
|
1483
1456
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1484
1457
|
}
|
|
@@ -1508,8 +1481,7 @@ const deserializeAws_restJson1AssociateTrustStoreCommandError = async (output, c
|
|
|
1508
1481
|
body: await parseBody(output.body, context),
|
|
1509
1482
|
};
|
|
1510
1483
|
let response;
|
|
1511
|
-
|
|
1512
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1484
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1513
1485
|
switch (errorCode) {
|
|
1514
1486
|
case "AccessDeniedException":
|
|
1515
1487
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1528,10 +1500,12 @@ const deserializeAws_restJson1AssociateTrustStoreCommandError = async (output, c
|
|
|
1528
1500
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1529
1501
|
default:
|
|
1530
1502
|
const parsedBody = parsedOutput.body;
|
|
1503
|
+
const $metadata = deserializeMetadata(output);
|
|
1504
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1531
1505
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1532
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1506
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1533
1507
|
$fault: "client",
|
|
1534
|
-
$metadata
|
|
1508
|
+
$metadata,
|
|
1535
1509
|
});
|
|
1536
1510
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1537
1511
|
}
|
|
@@ -1561,8 +1535,7 @@ const deserializeAws_restJson1AssociateUserSettingsCommandError = async (output,
|
|
|
1561
1535
|
body: await parseBody(output.body, context),
|
|
1562
1536
|
};
|
|
1563
1537
|
let response;
|
|
1564
|
-
|
|
1565
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1538
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1566
1539
|
switch (errorCode) {
|
|
1567
1540
|
case "AccessDeniedException":
|
|
1568
1541
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1584,10 +1557,12 @@ const deserializeAws_restJson1AssociateUserSettingsCommandError = async (output,
|
|
|
1584
1557
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1585
1558
|
default:
|
|
1586
1559
|
const parsedBody = parsedOutput.body;
|
|
1560
|
+
const $metadata = deserializeMetadata(output);
|
|
1561
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1587
1562
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1588
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1563
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1589
1564
|
$fault: "client",
|
|
1590
|
-
$metadata
|
|
1565
|
+
$metadata,
|
|
1591
1566
|
});
|
|
1592
1567
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1593
1568
|
}
|
|
@@ -1613,8 +1588,7 @@ const deserializeAws_restJson1CreateBrowserSettingsCommandError = async (output,
|
|
|
1613
1588
|
body: await parseBody(output.body, context),
|
|
1614
1589
|
};
|
|
1615
1590
|
let response;
|
|
1616
|
-
|
|
1617
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1591
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1618
1592
|
switch (errorCode) {
|
|
1619
1593
|
case "AccessDeniedException":
|
|
1620
1594
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1639,10 +1613,12 @@ const deserializeAws_restJson1CreateBrowserSettingsCommandError = async (output,
|
|
|
1639
1613
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1640
1614
|
default:
|
|
1641
1615
|
const parsedBody = parsedOutput.body;
|
|
1616
|
+
const $metadata = deserializeMetadata(output);
|
|
1617
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1642
1618
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1643
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1619
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1644
1620
|
$fault: "client",
|
|
1645
|
-
$metadata
|
|
1621
|
+
$metadata,
|
|
1646
1622
|
});
|
|
1647
1623
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1648
1624
|
}
|
|
@@ -1668,8 +1644,7 @@ const deserializeAws_restJson1CreateIdentityProviderCommandError = async (output
|
|
|
1668
1644
|
body: await parseBody(output.body, context),
|
|
1669
1645
|
};
|
|
1670
1646
|
let response;
|
|
1671
|
-
|
|
1672
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1647
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1673
1648
|
switch (errorCode) {
|
|
1674
1649
|
case "AccessDeniedException":
|
|
1675
1650
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1694,10 +1669,12 @@ const deserializeAws_restJson1CreateIdentityProviderCommandError = async (output
|
|
|
1694
1669
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1695
1670
|
default:
|
|
1696
1671
|
const parsedBody = parsedOutput.body;
|
|
1672
|
+
const $metadata = deserializeMetadata(output);
|
|
1673
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1697
1674
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1698
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1675
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1699
1676
|
$fault: "client",
|
|
1700
|
-
$metadata
|
|
1677
|
+
$metadata,
|
|
1701
1678
|
});
|
|
1702
1679
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1703
1680
|
}
|
|
@@ -1723,8 +1700,7 @@ const deserializeAws_restJson1CreateNetworkSettingsCommandError = async (output,
|
|
|
1723
1700
|
body: await parseBody(output.body, context),
|
|
1724
1701
|
};
|
|
1725
1702
|
let response;
|
|
1726
|
-
|
|
1727
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1703
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1728
1704
|
switch (errorCode) {
|
|
1729
1705
|
case "AccessDeniedException":
|
|
1730
1706
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1746,10 +1722,12 @@ const deserializeAws_restJson1CreateNetworkSettingsCommandError = async (output,
|
|
|
1746
1722
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1747
1723
|
default:
|
|
1748
1724
|
const parsedBody = parsedOutput.body;
|
|
1725
|
+
const $metadata = deserializeMetadata(output);
|
|
1726
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1749
1727
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1750
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1728
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1751
1729
|
$fault: "client",
|
|
1752
|
-
$metadata
|
|
1730
|
+
$metadata,
|
|
1753
1731
|
});
|
|
1754
1732
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1755
1733
|
}
|
|
@@ -1779,8 +1757,7 @@ const deserializeAws_restJson1CreatePortalCommandError = async (output, context)
|
|
|
1779
1757
|
body: await parseBody(output.body, context),
|
|
1780
1758
|
};
|
|
1781
1759
|
let response;
|
|
1782
|
-
|
|
1783
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1760
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1784
1761
|
switch (errorCode) {
|
|
1785
1762
|
case "AccessDeniedException":
|
|
1786
1763
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1805,10 +1782,12 @@ const deserializeAws_restJson1CreatePortalCommandError = async (output, context)
|
|
|
1805
1782
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1806
1783
|
default:
|
|
1807
1784
|
const parsedBody = parsedOutput.body;
|
|
1785
|
+
const $metadata = deserializeMetadata(output);
|
|
1786
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1808
1787
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1809
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1788
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1810
1789
|
$fault: "client",
|
|
1811
|
-
$metadata
|
|
1790
|
+
$metadata,
|
|
1812
1791
|
});
|
|
1813
1792
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1814
1793
|
}
|
|
@@ -1834,8 +1813,7 @@ const deserializeAws_restJson1CreateTrustStoreCommandError = async (output, cont
|
|
|
1834
1813
|
body: await parseBody(output.body, context),
|
|
1835
1814
|
};
|
|
1836
1815
|
let response;
|
|
1837
|
-
|
|
1838
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1816
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1839
1817
|
switch (errorCode) {
|
|
1840
1818
|
case "AccessDeniedException":
|
|
1841
1819
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1857,10 +1835,12 @@ const deserializeAws_restJson1CreateTrustStoreCommandError = async (output, cont
|
|
|
1857
1835
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1858
1836
|
default:
|
|
1859
1837
|
const parsedBody = parsedOutput.body;
|
|
1838
|
+
const $metadata = deserializeMetadata(output);
|
|
1839
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1860
1840
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1861
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1841
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1862
1842
|
$fault: "client",
|
|
1863
|
-
$metadata
|
|
1843
|
+
$metadata,
|
|
1864
1844
|
});
|
|
1865
1845
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1866
1846
|
}
|
|
@@ -1886,8 +1866,7 @@ const deserializeAws_restJson1CreateUserSettingsCommandError = async (output, co
|
|
|
1886
1866
|
body: await parseBody(output.body, context),
|
|
1887
1867
|
};
|
|
1888
1868
|
let response;
|
|
1889
|
-
|
|
1890
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1869
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1891
1870
|
switch (errorCode) {
|
|
1892
1871
|
case "AccessDeniedException":
|
|
1893
1872
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1909,10 +1888,12 @@ const deserializeAws_restJson1CreateUserSettingsCommandError = async (output, co
|
|
|
1909
1888
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1910
1889
|
default:
|
|
1911
1890
|
const parsedBody = parsedOutput.body;
|
|
1891
|
+
const $metadata = deserializeMetadata(output);
|
|
1892
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1912
1893
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1913
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1894
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1914
1895
|
$fault: "client",
|
|
1915
|
-
$metadata
|
|
1896
|
+
$metadata,
|
|
1916
1897
|
});
|
|
1917
1898
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1918
1899
|
}
|
|
@@ -1934,8 +1915,7 @@ const deserializeAws_restJson1DeleteBrowserSettingsCommandError = async (output,
|
|
|
1934
1915
|
body: await parseBody(output.body, context),
|
|
1935
1916
|
};
|
|
1936
1917
|
let response;
|
|
1937
|
-
|
|
1938
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1918
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1939
1919
|
switch (errorCode) {
|
|
1940
1920
|
case "AccessDeniedException":
|
|
1941
1921
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1954,10 +1934,12 @@ const deserializeAws_restJson1DeleteBrowserSettingsCommandError = async (output,
|
|
|
1954
1934
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1955
1935
|
default:
|
|
1956
1936
|
const parsedBody = parsedOutput.body;
|
|
1937
|
+
const $metadata = deserializeMetadata(output);
|
|
1938
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1957
1939
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1958
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1940
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1959
1941
|
$fault: "client",
|
|
1960
|
-
$metadata
|
|
1942
|
+
$metadata,
|
|
1961
1943
|
});
|
|
1962
1944
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1963
1945
|
}
|
|
@@ -1979,8 +1961,7 @@ const deserializeAws_restJson1DeleteIdentityProviderCommandError = async (output
|
|
|
1979
1961
|
body: await parseBody(output.body, context),
|
|
1980
1962
|
};
|
|
1981
1963
|
let response;
|
|
1982
|
-
|
|
1983
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1964
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1984
1965
|
switch (errorCode) {
|
|
1985
1966
|
case "AccessDeniedException":
|
|
1986
1967
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -1999,10 +1980,12 @@ const deserializeAws_restJson1DeleteIdentityProviderCommandError = async (output
|
|
|
1999
1980
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2000
1981
|
default:
|
|
2001
1982
|
const parsedBody = parsedOutput.body;
|
|
1983
|
+
const $metadata = deserializeMetadata(output);
|
|
1984
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2002
1985
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2003
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1986
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2004
1987
|
$fault: "client",
|
|
2005
|
-
$metadata
|
|
1988
|
+
$metadata,
|
|
2006
1989
|
});
|
|
2007
1990
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2008
1991
|
}
|
|
@@ -2024,8 +2007,7 @@ const deserializeAws_restJson1DeleteNetworkSettingsCommandError = async (output,
|
|
|
2024
2007
|
body: await parseBody(output.body, context),
|
|
2025
2008
|
};
|
|
2026
2009
|
let response;
|
|
2027
|
-
|
|
2028
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2010
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2029
2011
|
switch (errorCode) {
|
|
2030
2012
|
case "AccessDeniedException":
|
|
2031
2013
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2044,10 +2026,12 @@ const deserializeAws_restJson1DeleteNetworkSettingsCommandError = async (output,
|
|
|
2044
2026
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2045
2027
|
default:
|
|
2046
2028
|
const parsedBody = parsedOutput.body;
|
|
2029
|
+
const $metadata = deserializeMetadata(output);
|
|
2030
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2047
2031
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2048
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2032
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2049
2033
|
$fault: "client",
|
|
2050
|
-
$metadata
|
|
2034
|
+
$metadata,
|
|
2051
2035
|
});
|
|
2052
2036
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2053
2037
|
}
|
|
@@ -2069,8 +2053,7 @@ const deserializeAws_restJson1DeletePortalCommandError = async (output, context)
|
|
|
2069
2053
|
body: await parseBody(output.body, context),
|
|
2070
2054
|
};
|
|
2071
2055
|
let response;
|
|
2072
|
-
|
|
2073
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2056
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2074
2057
|
switch (errorCode) {
|
|
2075
2058
|
case "AccessDeniedException":
|
|
2076
2059
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2089,10 +2072,12 @@ const deserializeAws_restJson1DeletePortalCommandError = async (output, context)
|
|
|
2089
2072
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2090
2073
|
default:
|
|
2091
2074
|
const parsedBody = parsedOutput.body;
|
|
2075
|
+
const $metadata = deserializeMetadata(output);
|
|
2076
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2092
2077
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2093
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2078
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2094
2079
|
$fault: "client",
|
|
2095
|
-
$metadata
|
|
2080
|
+
$metadata,
|
|
2096
2081
|
});
|
|
2097
2082
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2098
2083
|
}
|
|
@@ -2114,8 +2099,7 @@ const deserializeAws_restJson1DeleteTrustStoreCommandError = async (output, cont
|
|
|
2114
2099
|
body: await parseBody(output.body, context),
|
|
2115
2100
|
};
|
|
2116
2101
|
let response;
|
|
2117
|
-
|
|
2118
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2102
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2119
2103
|
switch (errorCode) {
|
|
2120
2104
|
case "AccessDeniedException":
|
|
2121
2105
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2134,10 +2118,12 @@ const deserializeAws_restJson1DeleteTrustStoreCommandError = async (output, cont
|
|
|
2134
2118
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2135
2119
|
default:
|
|
2136
2120
|
const parsedBody = parsedOutput.body;
|
|
2121
|
+
const $metadata = deserializeMetadata(output);
|
|
2122
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2137
2123
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2138
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2124
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2139
2125
|
$fault: "client",
|
|
2140
|
-
$metadata
|
|
2126
|
+
$metadata,
|
|
2141
2127
|
});
|
|
2142
2128
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2143
2129
|
}
|
|
@@ -2159,8 +2145,7 @@ const deserializeAws_restJson1DeleteUserSettingsCommandError = async (output, co
|
|
|
2159
2145
|
body: await parseBody(output.body, context),
|
|
2160
2146
|
};
|
|
2161
2147
|
let response;
|
|
2162
|
-
|
|
2163
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2148
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2164
2149
|
switch (errorCode) {
|
|
2165
2150
|
case "AccessDeniedException":
|
|
2166
2151
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2179,10 +2164,12 @@ const deserializeAws_restJson1DeleteUserSettingsCommandError = async (output, co
|
|
|
2179
2164
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2180
2165
|
default:
|
|
2181
2166
|
const parsedBody = parsedOutput.body;
|
|
2167
|
+
const $metadata = deserializeMetadata(output);
|
|
2168
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2182
2169
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2183
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2170
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2184
2171
|
$fault: "client",
|
|
2185
|
-
$metadata
|
|
2172
|
+
$metadata,
|
|
2186
2173
|
});
|
|
2187
2174
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2188
2175
|
}
|
|
@@ -2204,8 +2191,7 @@ const deserializeAws_restJson1DisassociateBrowserSettingsCommandError = async (o
|
|
|
2204
2191
|
body: await parseBody(output.body, context),
|
|
2205
2192
|
};
|
|
2206
2193
|
let response;
|
|
2207
|
-
|
|
2208
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2194
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2209
2195
|
switch (errorCode) {
|
|
2210
2196
|
case "AccessDeniedException":
|
|
2211
2197
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2224,10 +2210,12 @@ const deserializeAws_restJson1DisassociateBrowserSettingsCommandError = async (o
|
|
|
2224
2210
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2225
2211
|
default:
|
|
2226
2212
|
const parsedBody = parsedOutput.body;
|
|
2213
|
+
const $metadata = deserializeMetadata(output);
|
|
2214
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2227
2215
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2228
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2216
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2229
2217
|
$fault: "client",
|
|
2230
|
-
$metadata
|
|
2218
|
+
$metadata,
|
|
2231
2219
|
});
|
|
2232
2220
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2233
2221
|
}
|
|
@@ -2249,8 +2237,7 @@ const deserializeAws_restJson1DisassociateNetworkSettingsCommandError = async (o
|
|
|
2249
2237
|
body: await parseBody(output.body, context),
|
|
2250
2238
|
};
|
|
2251
2239
|
let response;
|
|
2252
|
-
|
|
2253
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2240
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2254
2241
|
switch (errorCode) {
|
|
2255
2242
|
case "AccessDeniedException":
|
|
2256
2243
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2269,10 +2256,12 @@ const deserializeAws_restJson1DisassociateNetworkSettingsCommandError = async (o
|
|
|
2269
2256
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2270
2257
|
default:
|
|
2271
2258
|
const parsedBody = parsedOutput.body;
|
|
2259
|
+
const $metadata = deserializeMetadata(output);
|
|
2260
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2272
2261
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2273
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2262
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2274
2263
|
$fault: "client",
|
|
2275
|
-
$metadata
|
|
2264
|
+
$metadata,
|
|
2276
2265
|
});
|
|
2277
2266
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2278
2267
|
}
|
|
@@ -2294,8 +2283,7 @@ const deserializeAws_restJson1DisassociateTrustStoreCommandError = async (output
|
|
|
2294
2283
|
body: await parseBody(output.body, context),
|
|
2295
2284
|
};
|
|
2296
2285
|
let response;
|
|
2297
|
-
|
|
2298
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2286
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2299
2287
|
switch (errorCode) {
|
|
2300
2288
|
case "AccessDeniedException":
|
|
2301
2289
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2314,10 +2302,12 @@ const deserializeAws_restJson1DisassociateTrustStoreCommandError = async (output
|
|
|
2314
2302
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2315
2303
|
default:
|
|
2316
2304
|
const parsedBody = parsedOutput.body;
|
|
2305
|
+
const $metadata = deserializeMetadata(output);
|
|
2306
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2317
2307
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2318
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2308
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2319
2309
|
$fault: "client",
|
|
2320
|
-
$metadata
|
|
2310
|
+
$metadata,
|
|
2321
2311
|
});
|
|
2322
2312
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2323
2313
|
}
|
|
@@ -2339,8 +2329,7 @@ const deserializeAws_restJson1DisassociateUserSettingsCommandError = async (outp
|
|
|
2339
2329
|
body: await parseBody(output.body, context),
|
|
2340
2330
|
};
|
|
2341
2331
|
let response;
|
|
2342
|
-
|
|
2343
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2332
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2344
2333
|
switch (errorCode) {
|
|
2345
2334
|
case "AccessDeniedException":
|
|
2346
2335
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2359,10 +2348,12 @@ const deserializeAws_restJson1DisassociateUserSettingsCommandError = async (outp
|
|
|
2359
2348
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2360
2349
|
default:
|
|
2361
2350
|
const parsedBody = parsedOutput.body;
|
|
2351
|
+
const $metadata = deserializeMetadata(output);
|
|
2352
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2362
2353
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2363
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2354
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2364
2355
|
$fault: "client",
|
|
2365
|
-
$metadata
|
|
2356
|
+
$metadata,
|
|
2366
2357
|
});
|
|
2367
2358
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2368
2359
|
}
|
|
@@ -2388,8 +2379,7 @@ const deserializeAws_restJson1GetBrowserSettingsCommandError = async (output, co
|
|
|
2388
2379
|
body: await parseBody(output.body, context),
|
|
2389
2380
|
};
|
|
2390
2381
|
let response;
|
|
2391
|
-
|
|
2392
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2382
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2393
2383
|
switch (errorCode) {
|
|
2394
2384
|
case "AccessDeniedException":
|
|
2395
2385
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2408,10 +2398,12 @@ const deserializeAws_restJson1GetBrowserSettingsCommandError = async (output, co
|
|
|
2408
2398
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2409
2399
|
default:
|
|
2410
2400
|
const parsedBody = parsedOutput.body;
|
|
2401
|
+
const $metadata = deserializeMetadata(output);
|
|
2402
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2411
2403
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2412
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2404
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2413
2405
|
$fault: "client",
|
|
2414
|
-
$metadata
|
|
2406
|
+
$metadata,
|
|
2415
2407
|
});
|
|
2416
2408
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2417
2409
|
}
|
|
@@ -2437,8 +2429,7 @@ const deserializeAws_restJson1GetIdentityProviderCommandError = async (output, c
|
|
|
2437
2429
|
body: await parseBody(output.body, context),
|
|
2438
2430
|
};
|
|
2439
2431
|
let response;
|
|
2440
|
-
|
|
2441
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2432
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2442
2433
|
switch (errorCode) {
|
|
2443
2434
|
case "AccessDeniedException":
|
|
2444
2435
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2457,10 +2448,12 @@ const deserializeAws_restJson1GetIdentityProviderCommandError = async (output, c
|
|
|
2457
2448
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2458
2449
|
default:
|
|
2459
2450
|
const parsedBody = parsedOutput.body;
|
|
2451
|
+
const $metadata = deserializeMetadata(output);
|
|
2452
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2460
2453
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2461
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2454
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2462
2455
|
$fault: "client",
|
|
2463
|
-
$metadata
|
|
2456
|
+
$metadata,
|
|
2464
2457
|
});
|
|
2465
2458
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2466
2459
|
}
|
|
@@ -2486,8 +2479,7 @@ const deserializeAws_restJson1GetNetworkSettingsCommandError = async (output, co
|
|
|
2486
2479
|
body: await parseBody(output.body, context),
|
|
2487
2480
|
};
|
|
2488
2481
|
let response;
|
|
2489
|
-
|
|
2490
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2482
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2491
2483
|
switch (errorCode) {
|
|
2492
2484
|
case "AccessDeniedException":
|
|
2493
2485
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2506,10 +2498,12 @@ const deserializeAws_restJson1GetNetworkSettingsCommandError = async (output, co
|
|
|
2506
2498
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2507
2499
|
default:
|
|
2508
2500
|
const parsedBody = parsedOutput.body;
|
|
2501
|
+
const $metadata = deserializeMetadata(output);
|
|
2502
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2509
2503
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2510
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2504
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2511
2505
|
$fault: "client",
|
|
2512
|
-
$metadata
|
|
2506
|
+
$metadata,
|
|
2513
2507
|
});
|
|
2514
2508
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2515
2509
|
}
|
|
@@ -2535,8 +2529,7 @@ const deserializeAws_restJson1GetPortalCommandError = async (output, context) =>
|
|
|
2535
2529
|
body: await parseBody(output.body, context),
|
|
2536
2530
|
};
|
|
2537
2531
|
let response;
|
|
2538
|
-
|
|
2539
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2532
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2540
2533
|
switch (errorCode) {
|
|
2541
2534
|
case "AccessDeniedException":
|
|
2542
2535
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2555,10 +2548,12 @@ const deserializeAws_restJson1GetPortalCommandError = async (output, context) =>
|
|
|
2555
2548
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2556
2549
|
default:
|
|
2557
2550
|
const parsedBody = parsedOutput.body;
|
|
2551
|
+
const $metadata = deserializeMetadata(output);
|
|
2552
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2558
2553
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2559
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2554
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2560
2555
|
$fault: "client",
|
|
2561
|
-
$metadata
|
|
2556
|
+
$metadata,
|
|
2562
2557
|
});
|
|
2563
2558
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2564
2559
|
}
|
|
@@ -2588,8 +2583,7 @@ const deserializeAws_restJson1GetPortalServiceProviderMetadataCommandError = asy
|
|
|
2588
2583
|
body: await parseBody(output.body, context),
|
|
2589
2584
|
};
|
|
2590
2585
|
let response;
|
|
2591
|
-
|
|
2592
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2586
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2593
2587
|
switch (errorCode) {
|
|
2594
2588
|
case "AccessDeniedException":
|
|
2595
2589
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2608,10 +2602,12 @@ const deserializeAws_restJson1GetPortalServiceProviderMetadataCommandError = asy
|
|
|
2608
2602
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2609
2603
|
default:
|
|
2610
2604
|
const parsedBody = parsedOutput.body;
|
|
2605
|
+
const $metadata = deserializeMetadata(output);
|
|
2606
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2611
2607
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2612
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2608
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2613
2609
|
$fault: "client",
|
|
2614
|
-
$metadata
|
|
2610
|
+
$metadata,
|
|
2615
2611
|
});
|
|
2616
2612
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2617
2613
|
}
|
|
@@ -2637,8 +2633,7 @@ const deserializeAws_restJson1GetTrustStoreCommandError = async (output, context
|
|
|
2637
2633
|
body: await parseBody(output.body, context),
|
|
2638
2634
|
};
|
|
2639
2635
|
let response;
|
|
2640
|
-
|
|
2641
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2636
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2642
2637
|
switch (errorCode) {
|
|
2643
2638
|
case "AccessDeniedException":
|
|
2644
2639
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2657,10 +2652,12 @@ const deserializeAws_restJson1GetTrustStoreCommandError = async (output, context
|
|
|
2657
2652
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2658
2653
|
default:
|
|
2659
2654
|
const parsedBody = parsedOutput.body;
|
|
2655
|
+
const $metadata = deserializeMetadata(output);
|
|
2656
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2660
2657
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2661
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2658
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2662
2659
|
$fault: "client",
|
|
2663
|
-
$metadata
|
|
2660
|
+
$metadata,
|
|
2664
2661
|
});
|
|
2665
2662
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2666
2663
|
}
|
|
@@ -2690,8 +2687,7 @@ const deserializeAws_restJson1GetTrustStoreCertificateCommandError = async (outp
|
|
|
2690
2687
|
body: await parseBody(output.body, context),
|
|
2691
2688
|
};
|
|
2692
2689
|
let response;
|
|
2693
|
-
|
|
2694
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2690
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2695
2691
|
switch (errorCode) {
|
|
2696
2692
|
case "AccessDeniedException":
|
|
2697
2693
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2710,10 +2706,12 @@ const deserializeAws_restJson1GetTrustStoreCertificateCommandError = async (outp
|
|
|
2710
2706
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2711
2707
|
default:
|
|
2712
2708
|
const parsedBody = parsedOutput.body;
|
|
2709
|
+
const $metadata = deserializeMetadata(output);
|
|
2710
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2713
2711
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2714
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2712
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2715
2713
|
$fault: "client",
|
|
2716
|
-
$metadata
|
|
2714
|
+
$metadata,
|
|
2717
2715
|
});
|
|
2718
2716
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2719
2717
|
}
|
|
@@ -2739,8 +2737,7 @@ const deserializeAws_restJson1GetUserSettingsCommandError = async (output, conte
|
|
|
2739
2737
|
body: await parseBody(output.body, context),
|
|
2740
2738
|
};
|
|
2741
2739
|
let response;
|
|
2742
|
-
|
|
2743
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2740
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2744
2741
|
switch (errorCode) {
|
|
2745
2742
|
case "AccessDeniedException":
|
|
2746
2743
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2759,10 +2756,12 @@ const deserializeAws_restJson1GetUserSettingsCommandError = async (output, conte
|
|
|
2759
2756
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2760
2757
|
default:
|
|
2761
2758
|
const parsedBody = parsedOutput.body;
|
|
2759
|
+
const $metadata = deserializeMetadata(output);
|
|
2760
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2762
2761
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2763
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2762
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2764
2763
|
$fault: "client",
|
|
2765
|
-
$metadata
|
|
2764
|
+
$metadata,
|
|
2766
2765
|
});
|
|
2767
2766
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2768
2767
|
}
|
|
@@ -2792,8 +2791,7 @@ const deserializeAws_restJson1ListBrowserSettingsCommandError = async (output, c
|
|
|
2792
2791
|
body: await parseBody(output.body, context),
|
|
2793
2792
|
};
|
|
2794
2793
|
let response;
|
|
2795
|
-
|
|
2796
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2794
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2797
2795
|
switch (errorCode) {
|
|
2798
2796
|
case "AccessDeniedException":
|
|
2799
2797
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2809,10 +2807,12 @@ const deserializeAws_restJson1ListBrowserSettingsCommandError = async (output, c
|
|
|
2809
2807
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2810
2808
|
default:
|
|
2811
2809
|
const parsedBody = parsedOutput.body;
|
|
2810
|
+
const $metadata = deserializeMetadata(output);
|
|
2811
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2812
2812
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2813
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2813
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2814
2814
|
$fault: "client",
|
|
2815
|
-
$metadata
|
|
2815
|
+
$metadata,
|
|
2816
2816
|
});
|
|
2817
2817
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2818
2818
|
}
|
|
@@ -2842,8 +2842,7 @@ const deserializeAws_restJson1ListIdentityProvidersCommandError = async (output,
|
|
|
2842
2842
|
body: await parseBody(output.body, context),
|
|
2843
2843
|
};
|
|
2844
2844
|
let response;
|
|
2845
|
-
|
|
2846
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2845
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2847
2846
|
switch (errorCode) {
|
|
2848
2847
|
case "AccessDeniedException":
|
|
2849
2848
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2859,10 +2858,12 @@ const deserializeAws_restJson1ListIdentityProvidersCommandError = async (output,
|
|
|
2859
2858
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2860
2859
|
default:
|
|
2861
2860
|
const parsedBody = parsedOutput.body;
|
|
2861
|
+
const $metadata = deserializeMetadata(output);
|
|
2862
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2862
2863
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2863
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2864
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2864
2865
|
$fault: "client",
|
|
2865
|
-
$metadata
|
|
2866
|
+
$metadata,
|
|
2866
2867
|
});
|
|
2867
2868
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2868
2869
|
}
|
|
@@ -2892,8 +2893,7 @@ const deserializeAws_restJson1ListNetworkSettingsCommandError = async (output, c
|
|
|
2892
2893
|
body: await parseBody(output.body, context),
|
|
2893
2894
|
};
|
|
2894
2895
|
let response;
|
|
2895
|
-
|
|
2896
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2896
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2897
2897
|
switch (errorCode) {
|
|
2898
2898
|
case "AccessDeniedException":
|
|
2899
2899
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2909,10 +2909,12 @@ const deserializeAws_restJson1ListNetworkSettingsCommandError = async (output, c
|
|
|
2909
2909
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2910
2910
|
default:
|
|
2911
2911
|
const parsedBody = parsedOutput.body;
|
|
2912
|
+
const $metadata = deserializeMetadata(output);
|
|
2913
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2912
2914
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2913
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2915
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2914
2916
|
$fault: "client",
|
|
2915
|
-
$metadata
|
|
2917
|
+
$metadata,
|
|
2916
2918
|
});
|
|
2917
2919
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2918
2920
|
}
|
|
@@ -2942,8 +2944,7 @@ const deserializeAws_restJson1ListPortalsCommandError = async (output, context)
|
|
|
2942
2944
|
body: await parseBody(output.body, context),
|
|
2943
2945
|
};
|
|
2944
2946
|
let response;
|
|
2945
|
-
|
|
2946
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2947
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2947
2948
|
switch (errorCode) {
|
|
2948
2949
|
case "AccessDeniedException":
|
|
2949
2950
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -2959,10 +2960,12 @@ const deserializeAws_restJson1ListPortalsCommandError = async (output, context)
|
|
|
2959
2960
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2960
2961
|
default:
|
|
2961
2962
|
const parsedBody = parsedOutput.body;
|
|
2963
|
+
const $metadata = deserializeMetadata(output);
|
|
2964
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2962
2965
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2963
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2966
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2964
2967
|
$fault: "client",
|
|
2965
|
-
$metadata
|
|
2968
|
+
$metadata,
|
|
2966
2969
|
});
|
|
2967
2970
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2968
2971
|
}
|
|
@@ -2988,8 +2991,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2988
2991
|
body: await parseBody(output.body, context),
|
|
2989
2992
|
};
|
|
2990
2993
|
let response;
|
|
2991
|
-
|
|
2992
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2994
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2993
2995
|
switch (errorCode) {
|
|
2994
2996
|
case "AccessDeniedException":
|
|
2995
2997
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3008,10 +3010,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
3008
3010
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3009
3011
|
default:
|
|
3010
3012
|
const parsedBody = parsedOutput.body;
|
|
3013
|
+
const $metadata = deserializeMetadata(output);
|
|
3014
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3011
3015
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3012
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3016
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3013
3017
|
$fault: "client",
|
|
3014
|
-
$metadata
|
|
3018
|
+
$metadata,
|
|
3015
3019
|
});
|
|
3016
3020
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3017
3021
|
}
|
|
@@ -3045,8 +3049,7 @@ const deserializeAws_restJson1ListTrustStoreCertificatesCommandError = async (ou
|
|
|
3045
3049
|
body: await parseBody(output.body, context),
|
|
3046
3050
|
};
|
|
3047
3051
|
let response;
|
|
3048
|
-
|
|
3049
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3052
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3050
3053
|
switch (errorCode) {
|
|
3051
3054
|
case "AccessDeniedException":
|
|
3052
3055
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3065,10 +3068,12 @@ const deserializeAws_restJson1ListTrustStoreCertificatesCommandError = async (ou
|
|
|
3065
3068
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3066
3069
|
default:
|
|
3067
3070
|
const parsedBody = parsedOutput.body;
|
|
3071
|
+
const $metadata = deserializeMetadata(output);
|
|
3072
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3068
3073
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3069
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3074
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3070
3075
|
$fault: "client",
|
|
3071
|
-
$metadata
|
|
3076
|
+
$metadata,
|
|
3072
3077
|
});
|
|
3073
3078
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3074
3079
|
}
|
|
@@ -3098,8 +3103,7 @@ const deserializeAws_restJson1ListTrustStoresCommandError = async (output, conte
|
|
|
3098
3103
|
body: await parseBody(output.body, context),
|
|
3099
3104
|
};
|
|
3100
3105
|
let response;
|
|
3101
|
-
|
|
3102
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3106
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3103
3107
|
switch (errorCode) {
|
|
3104
3108
|
case "AccessDeniedException":
|
|
3105
3109
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3115,10 +3119,12 @@ const deserializeAws_restJson1ListTrustStoresCommandError = async (output, conte
|
|
|
3115
3119
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3116
3120
|
default:
|
|
3117
3121
|
const parsedBody = parsedOutput.body;
|
|
3122
|
+
const $metadata = deserializeMetadata(output);
|
|
3123
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3118
3124
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3119
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3125
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3120
3126
|
$fault: "client",
|
|
3121
|
-
$metadata
|
|
3127
|
+
$metadata,
|
|
3122
3128
|
});
|
|
3123
3129
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3124
3130
|
}
|
|
@@ -3148,8 +3154,7 @@ const deserializeAws_restJson1ListUserSettingsCommandError = async (output, cont
|
|
|
3148
3154
|
body: await parseBody(output.body, context),
|
|
3149
3155
|
};
|
|
3150
3156
|
let response;
|
|
3151
|
-
|
|
3152
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3157
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3153
3158
|
switch (errorCode) {
|
|
3154
3159
|
case "AccessDeniedException":
|
|
3155
3160
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3165,10 +3170,12 @@ const deserializeAws_restJson1ListUserSettingsCommandError = async (output, cont
|
|
|
3165
3170
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3166
3171
|
default:
|
|
3167
3172
|
const parsedBody = parsedOutput.body;
|
|
3173
|
+
const $metadata = deserializeMetadata(output);
|
|
3174
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3168
3175
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3169
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3176
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3170
3177
|
$fault: "client",
|
|
3171
|
-
$metadata
|
|
3178
|
+
$metadata,
|
|
3172
3179
|
});
|
|
3173
3180
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3174
3181
|
}
|
|
@@ -3190,8 +3197,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3190
3197
|
body: await parseBody(output.body, context),
|
|
3191
3198
|
};
|
|
3192
3199
|
let response;
|
|
3193
|
-
|
|
3194
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3200
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3195
3201
|
switch (errorCode) {
|
|
3196
3202
|
case "AccessDeniedException":
|
|
3197
3203
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3213,10 +3219,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3213
3219
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3214
3220
|
default:
|
|
3215
3221
|
const parsedBody = parsedOutput.body;
|
|
3222
|
+
const $metadata = deserializeMetadata(output);
|
|
3223
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3216
3224
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3217
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3225
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3218
3226
|
$fault: "client",
|
|
3219
|
-
$metadata
|
|
3227
|
+
$metadata,
|
|
3220
3228
|
});
|
|
3221
3229
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3222
3230
|
}
|
|
@@ -3238,8 +3246,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3238
3246
|
body: await parseBody(output.body, context),
|
|
3239
3247
|
};
|
|
3240
3248
|
let response;
|
|
3241
|
-
|
|
3242
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3249
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3243
3250
|
switch (errorCode) {
|
|
3244
3251
|
case "AccessDeniedException":
|
|
3245
3252
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3258,10 +3265,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3258
3265
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3259
3266
|
default:
|
|
3260
3267
|
const parsedBody = parsedOutput.body;
|
|
3268
|
+
const $metadata = deserializeMetadata(output);
|
|
3269
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3261
3270
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3262
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3271
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3263
3272
|
$fault: "client",
|
|
3264
|
-
$metadata
|
|
3273
|
+
$metadata,
|
|
3265
3274
|
});
|
|
3266
3275
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3267
3276
|
}
|
|
@@ -3287,8 +3296,7 @@ const deserializeAws_restJson1UpdateBrowserSettingsCommandError = async (output,
|
|
|
3287
3296
|
body: await parseBody(output.body, context),
|
|
3288
3297
|
};
|
|
3289
3298
|
let response;
|
|
3290
|
-
|
|
3291
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3299
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3292
3300
|
switch (errorCode) {
|
|
3293
3301
|
case "AccessDeniedException":
|
|
3294
3302
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3307,10 +3315,12 @@ const deserializeAws_restJson1UpdateBrowserSettingsCommandError = async (output,
|
|
|
3307
3315
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3308
3316
|
default:
|
|
3309
3317
|
const parsedBody = parsedOutput.body;
|
|
3318
|
+
const $metadata = deserializeMetadata(output);
|
|
3319
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3310
3320
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3311
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3321
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3312
3322
|
$fault: "client",
|
|
3313
|
-
$metadata
|
|
3323
|
+
$metadata,
|
|
3314
3324
|
});
|
|
3315
3325
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3316
3326
|
}
|
|
@@ -3336,8 +3346,7 @@ const deserializeAws_restJson1UpdateIdentityProviderCommandError = async (output
|
|
|
3336
3346
|
body: await parseBody(output.body, context),
|
|
3337
3347
|
};
|
|
3338
3348
|
let response;
|
|
3339
|
-
|
|
3340
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3349
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3341
3350
|
switch (errorCode) {
|
|
3342
3351
|
case "AccessDeniedException":
|
|
3343
3352
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3356,10 +3365,12 @@ const deserializeAws_restJson1UpdateIdentityProviderCommandError = async (output
|
|
|
3356
3365
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3357
3366
|
default:
|
|
3358
3367
|
const parsedBody = parsedOutput.body;
|
|
3368
|
+
const $metadata = deserializeMetadata(output);
|
|
3369
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3359
3370
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3360
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3371
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3361
3372
|
$fault: "client",
|
|
3362
|
-
$metadata
|
|
3373
|
+
$metadata,
|
|
3363
3374
|
});
|
|
3364
3375
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3365
3376
|
}
|
|
@@ -3385,8 +3396,7 @@ const deserializeAws_restJson1UpdateNetworkSettingsCommandError = async (output,
|
|
|
3385
3396
|
body: await parseBody(output.body, context),
|
|
3386
3397
|
};
|
|
3387
3398
|
let response;
|
|
3388
|
-
|
|
3389
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3399
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3390
3400
|
switch (errorCode) {
|
|
3391
3401
|
case "AccessDeniedException":
|
|
3392
3402
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3405,10 +3415,12 @@ const deserializeAws_restJson1UpdateNetworkSettingsCommandError = async (output,
|
|
|
3405
3415
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3406
3416
|
default:
|
|
3407
3417
|
const parsedBody = parsedOutput.body;
|
|
3418
|
+
const $metadata = deserializeMetadata(output);
|
|
3419
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3408
3420
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3409
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3421
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3410
3422
|
$fault: "client",
|
|
3411
|
-
$metadata
|
|
3423
|
+
$metadata,
|
|
3412
3424
|
});
|
|
3413
3425
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3414
3426
|
}
|
|
@@ -3434,8 +3446,7 @@ const deserializeAws_restJson1UpdatePortalCommandError = async (output, context)
|
|
|
3434
3446
|
body: await parseBody(output.body, context),
|
|
3435
3447
|
};
|
|
3436
3448
|
let response;
|
|
3437
|
-
|
|
3438
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3449
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3439
3450
|
switch (errorCode) {
|
|
3440
3451
|
case "AccessDeniedException":
|
|
3441
3452
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3454,10 +3465,12 @@ const deserializeAws_restJson1UpdatePortalCommandError = async (output, context)
|
|
|
3454
3465
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3455
3466
|
default:
|
|
3456
3467
|
const parsedBody = parsedOutput.body;
|
|
3468
|
+
const $metadata = deserializeMetadata(output);
|
|
3469
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3457
3470
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3458
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3471
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3459
3472
|
$fault: "client",
|
|
3460
|
-
$metadata
|
|
3473
|
+
$metadata,
|
|
3461
3474
|
});
|
|
3462
3475
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3463
3476
|
}
|
|
@@ -3483,8 +3496,7 @@ const deserializeAws_restJson1UpdateTrustStoreCommandError = async (output, cont
|
|
|
3483
3496
|
body: await parseBody(output.body, context),
|
|
3484
3497
|
};
|
|
3485
3498
|
let response;
|
|
3486
|
-
|
|
3487
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3499
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3488
3500
|
switch (errorCode) {
|
|
3489
3501
|
case "AccessDeniedException":
|
|
3490
3502
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3506,10 +3518,12 @@ const deserializeAws_restJson1UpdateTrustStoreCommandError = async (output, cont
|
|
|
3506
3518
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3507
3519
|
default:
|
|
3508
3520
|
const parsedBody = parsedOutput.body;
|
|
3521
|
+
const $metadata = deserializeMetadata(output);
|
|
3522
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3509
3523
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3510
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3524
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3511
3525
|
$fault: "client",
|
|
3512
|
-
$metadata
|
|
3526
|
+
$metadata,
|
|
3513
3527
|
});
|
|
3514
3528
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3515
3529
|
}
|
|
@@ -3535,8 +3549,7 @@ const deserializeAws_restJson1UpdateUserSettingsCommandError = async (output, co
|
|
|
3535
3549
|
body: await parseBody(output.body, context),
|
|
3536
3550
|
};
|
|
3537
3551
|
let response;
|
|
3538
|
-
|
|
3539
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3552
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3540
3553
|
switch (errorCode) {
|
|
3541
3554
|
case "AccessDeniedException":
|
|
3542
3555
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
@@ -3555,10 +3568,12 @@ const deserializeAws_restJson1UpdateUserSettingsCommandError = async (output, co
|
|
|
3555
3568
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3556
3569
|
default:
|
|
3557
3570
|
const parsedBody = parsedOutput.body;
|
|
3571
|
+
const $metadata = deserializeMetadata(output);
|
|
3572
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3558
3573
|
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3559
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3574
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3560
3575
|
$fault: "client",
|
|
3561
|
-
$metadata
|
|
3576
|
+
$metadata,
|
|
3562
3577
|
});
|
|
3563
3578
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3564
3579
|
}
|
|
@@ -3768,8 +3783,8 @@ const serializeAws_restJson1SubnetIdList = (input, context) => {
|
|
|
3768
3783
|
};
|
|
3769
3784
|
const serializeAws_restJson1Tag = (input, context) => {
|
|
3770
3785
|
return {
|
|
3771
|
-
...(input.Key
|
|
3772
|
-
...(input.Value
|
|
3786
|
+
...(input.Key != null && { Key: input.Key }),
|
|
3787
|
+
...(input.Value != null && { Value: input.Value }),
|
|
3773
3788
|
};
|
|
3774
3789
|
};
|
|
3775
3790
|
const serializeAws_restJson1TagList = (input, context) => {
|
|
@@ -3795,7 +3810,7 @@ const deserializeAws_restJson1ArnList = (output, context) => {
|
|
|
3795
3810
|
};
|
|
3796
3811
|
const deserializeAws_restJson1BrowserSettings = (output, context) => {
|
|
3797
3812
|
return {
|
|
3798
|
-
associatedPortalArns: output.associatedPortalArns
|
|
3813
|
+
associatedPortalArns: output.associatedPortalArns != null
|
|
3799
3814
|
? deserializeAws_restJson1ArnList(output.associatedPortalArns, context)
|
|
3800
3815
|
: undefined,
|
|
3801
3816
|
browserPolicy: (0, smithy_client_1.expectString)(output.browserPolicy),
|
|
@@ -3820,12 +3835,12 @@ const deserializeAws_restJson1BrowserSettingsSummary = (output, context) => {
|
|
|
3820
3835
|
};
|
|
3821
3836
|
const deserializeAws_restJson1Certificate = (output, context) => {
|
|
3822
3837
|
return {
|
|
3823
|
-
body: output.body
|
|
3838
|
+
body: output.body != null ? context.base64Decoder(output.body) : undefined,
|
|
3824
3839
|
issuer: (0, smithy_client_1.expectString)(output.issuer),
|
|
3825
|
-
notValidAfter: output.notValidAfter
|
|
3840
|
+
notValidAfter: output.notValidAfter != null
|
|
3826
3841
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.notValidAfter)))
|
|
3827
3842
|
: undefined,
|
|
3828
|
-
notValidBefore: output.notValidBefore
|
|
3843
|
+
notValidBefore: output.notValidBefore != null
|
|
3829
3844
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.notValidBefore)))
|
|
3830
3845
|
: undefined,
|
|
3831
3846
|
subject: (0, smithy_client_1.expectString)(output.subject),
|
|
@@ -3835,10 +3850,10 @@ const deserializeAws_restJson1Certificate = (output, context) => {
|
|
|
3835
3850
|
const deserializeAws_restJson1CertificateSummary = (output, context) => {
|
|
3836
3851
|
return {
|
|
3837
3852
|
issuer: (0, smithy_client_1.expectString)(output.issuer),
|
|
3838
|
-
notValidAfter: output.notValidAfter
|
|
3853
|
+
notValidAfter: output.notValidAfter != null
|
|
3839
3854
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.notValidAfter)))
|
|
3840
3855
|
: undefined,
|
|
3841
|
-
notValidBefore: output.notValidBefore
|
|
3856
|
+
notValidBefore: output.notValidBefore != null
|
|
3842
3857
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.notValidBefore)))
|
|
3843
3858
|
: undefined,
|
|
3844
3859
|
subject: (0, smithy_client_1.expectString)(output.subject),
|
|
@@ -3859,7 +3874,7 @@ const deserializeAws_restJson1CertificateSummaryList = (output, context) => {
|
|
|
3859
3874
|
const deserializeAws_restJson1IdentityProvider = (output, context) => {
|
|
3860
3875
|
return {
|
|
3861
3876
|
identityProviderArn: (0, smithy_client_1.expectString)(output.identityProviderArn),
|
|
3862
|
-
identityProviderDetails: output.identityProviderDetails
|
|
3877
|
+
identityProviderDetails: output.identityProviderDetails != null
|
|
3863
3878
|
? deserializeAws_restJson1IdentityProviderDetails(output.identityProviderDetails, context)
|
|
3864
3879
|
: undefined,
|
|
3865
3880
|
identityProviderName: (0, smithy_client_1.expectString)(output.identityProviderName),
|
|
@@ -3897,16 +3912,14 @@ const deserializeAws_restJson1IdentityProviderSummary = (output, context) => {
|
|
|
3897
3912
|
};
|
|
3898
3913
|
const deserializeAws_restJson1NetworkSettings = (output, context) => {
|
|
3899
3914
|
return {
|
|
3900
|
-
associatedPortalArns: output.associatedPortalArns
|
|
3915
|
+
associatedPortalArns: output.associatedPortalArns != null
|
|
3901
3916
|
? deserializeAws_restJson1ArnList(output.associatedPortalArns, context)
|
|
3902
3917
|
: undefined,
|
|
3903
3918
|
networkSettingsArn: (0, smithy_client_1.expectString)(output.networkSettingsArn),
|
|
3904
|
-
securityGroupIds: output.securityGroupIds
|
|
3919
|
+
securityGroupIds: output.securityGroupIds != null
|
|
3905
3920
|
? deserializeAws_restJson1SecurityGroupIdList(output.securityGroupIds, context)
|
|
3906
3921
|
: undefined,
|
|
3907
|
-
subnetIds: output.subnetIds
|
|
3908
|
-
? deserializeAws_restJson1SubnetIdList(output.subnetIds, context)
|
|
3909
|
-
: undefined,
|
|
3922
|
+
subnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetIdList(output.subnetIds, context) : undefined,
|
|
3910
3923
|
vpcId: (0, smithy_client_1.expectString)(output.vpcId),
|
|
3911
3924
|
};
|
|
3912
3925
|
};
|
|
@@ -3931,7 +3944,7 @@ const deserializeAws_restJson1Portal = (output, context) => {
|
|
|
3931
3944
|
return {
|
|
3932
3945
|
browserSettingsArn: (0, smithy_client_1.expectString)(output.browserSettingsArn),
|
|
3933
3946
|
browserType: (0, smithy_client_1.expectString)(output.browserType),
|
|
3934
|
-
creationDate: output.creationDate
|
|
3947
|
+
creationDate: output.creationDate != null
|
|
3935
3948
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
3936
3949
|
: undefined,
|
|
3937
3950
|
displayName: (0, smithy_client_1.expectString)(output.displayName),
|
|
@@ -3960,7 +3973,7 @@ const deserializeAws_restJson1PortalSummary = (output, context) => {
|
|
|
3960
3973
|
return {
|
|
3961
3974
|
browserSettingsArn: (0, smithy_client_1.expectString)(output.browserSettingsArn),
|
|
3962
3975
|
browserType: (0, smithy_client_1.expectString)(output.browserType),
|
|
3963
|
-
creationDate: output.creationDate
|
|
3976
|
+
creationDate: output.creationDate != null
|
|
3964
3977
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
3965
3978
|
: undefined,
|
|
3966
3979
|
displayName: (0, smithy_client_1.expectString)(output.displayName),
|
|
@@ -4014,7 +4027,7 @@ const deserializeAws_restJson1TagList = (output, context) => {
|
|
|
4014
4027
|
};
|
|
4015
4028
|
const deserializeAws_restJson1TrustStore = (output, context) => {
|
|
4016
4029
|
return {
|
|
4017
|
-
associatedPortalArns: output.associatedPortalArns
|
|
4030
|
+
associatedPortalArns: output.associatedPortalArns != null
|
|
4018
4031
|
? deserializeAws_restJson1ArnList(output.associatedPortalArns, context)
|
|
4019
4032
|
: undefined,
|
|
4020
4033
|
trustStoreArn: (0, smithy_client_1.expectString)(output.trustStoreArn),
|
|
@@ -4038,7 +4051,7 @@ const deserializeAws_restJson1TrustStoreSummaryList = (output, context) => {
|
|
|
4038
4051
|
};
|
|
4039
4052
|
const deserializeAws_restJson1UserSettings = (output, context) => {
|
|
4040
4053
|
return {
|
|
4041
|
-
associatedPortalArns: output.associatedPortalArns
|
|
4054
|
+
associatedPortalArns: output.associatedPortalArns != null
|
|
4042
4055
|
? deserializeAws_restJson1ArnList(output.associatedPortalArns, context)
|
|
4043
4056
|
: undefined,
|
|
4044
4057
|
copyAllowed: (0, smithy_client_1.expectString)(output.copyAllowed),
|
|
@@ -4140,5 +4153,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
4140
4153
|
if (data["__type"] !== undefined) {
|
|
4141
4154
|
return sanitizeErrorCode(data["__type"]);
|
|
4142
4155
|
}
|
|
4143
|
-
return "";
|
|
4144
4156
|
};
|