@aws-sdk/client-ivschat 3.141.0 → 3.142.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +166 -266
- package/dist-es/protocols/Aws_restJson1.js +206 -268
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, parseRfc3339DateTime as __parseRfc3339DateTime, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { IvschatServiceException as __BaseException } from "../models/IvschatServiceException";
|
|
5
5
|
import { AccessDeniedException, ConflictException, InternalServerException, PendingVerification, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1CreateChatTokenCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -180,7 +180,7 @@ export var serializeAws_restJson1ListRoomsCommand = function (input, context) {
|
|
|
180
180
|
});
|
|
181
181
|
}); };
|
|
182
182
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
183
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
183
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
184
184
|
return __generator(this, function (_c) {
|
|
185
185
|
switch (_c.label) {
|
|
186
186
|
case 0: return [4, context.endpoint()];
|
|
@@ -188,16 +188,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
188
188
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
189
189
|
headers = {};
|
|
190
190
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
191
|
-
|
|
192
|
-
labelValue = input.resourceArn;
|
|
193
|
-
if (labelValue.length <= 0) {
|
|
194
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
195
|
-
}
|
|
196
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
197
|
-
}
|
|
198
|
-
else {
|
|
199
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
200
|
-
}
|
|
191
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
201
192
|
return [2, new __HttpRequest({
|
|
202
193
|
protocol: protocol,
|
|
203
194
|
hostname: hostname,
|
|
@@ -235,7 +226,7 @@ export var serializeAws_restJson1SendEventCommand = function (input, context) {
|
|
|
235
226
|
});
|
|
236
227
|
}); };
|
|
237
228
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
238
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
229
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
239
230
|
return __generator(this, function (_c) {
|
|
240
231
|
switch (_c.label) {
|
|
241
232
|
case 0: return [4, context.endpoint()];
|
|
@@ -245,16 +236,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
245
236
|
"content-type": "application/json",
|
|
246
237
|
};
|
|
247
238
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
248
|
-
|
|
249
|
-
labelValue = input.resourceArn;
|
|
250
|
-
if (labelValue.length <= 0) {
|
|
251
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
252
|
-
}
|
|
253
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
254
|
-
}
|
|
255
|
-
else {
|
|
256
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
257
|
-
}
|
|
239
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
258
240
|
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
259
241
|
return [2, new __HttpRequest({
|
|
260
242
|
protocol: protocol,
|
|
@@ -269,7 +251,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
269
251
|
});
|
|
270
252
|
}); };
|
|
271
253
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
272
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
254
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
273
255
|
return __generator(this, function (_c) {
|
|
274
256
|
switch (_c.label) {
|
|
275
257
|
case 0: return [4, context.endpoint()];
|
|
@@ -277,17 +259,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
277
259
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
278
260
|
headers = {};
|
|
279
261
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
}
|
|
285
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
286
|
-
}
|
|
287
|
-
else {
|
|
288
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
289
|
-
}
|
|
290
|
-
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
262
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
263
|
+
query = map({
|
|
264
|
+
tagKeys: [function () { return input.tagKeys !== void 0; }, function () { return (input.tagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
265
|
+
});
|
|
291
266
|
return [2, new __HttpRequest({
|
|
292
267
|
protocol: protocol,
|
|
293
268
|
hostname: hostname,
|
|
@@ -337,32 +312,29 @@ export var deserializeAws_restJson1CreateChatTokenCommand = function (output, co
|
|
|
337
312
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
338
313
|
return [2, deserializeAws_restJson1CreateChatTokenCommandError(output, context)];
|
|
339
314
|
}
|
|
340
|
-
contents = {
|
|
315
|
+
contents = map({
|
|
341
316
|
$metadata: deserializeMetadata(output),
|
|
342
|
-
|
|
343
|
-
token: undefined,
|
|
344
|
-
tokenExpirationTime: undefined,
|
|
345
|
-
};
|
|
317
|
+
});
|
|
346
318
|
_a = __expectNonNull;
|
|
347
319
|
_b = __expectObject;
|
|
348
320
|
return [4, parseBody(output.body, context)];
|
|
349
321
|
case 1:
|
|
350
322
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
351
|
-
if (data.sessionExpirationTime
|
|
323
|
+
if (data.sessionExpirationTime != null) {
|
|
352
324
|
contents.sessionExpirationTime = __expectNonNull(__parseRfc3339DateTime(data.sessionExpirationTime));
|
|
353
325
|
}
|
|
354
|
-
if (data.token
|
|
326
|
+
if (data.token != null) {
|
|
355
327
|
contents.token = __expectString(data.token);
|
|
356
328
|
}
|
|
357
|
-
if (data.tokenExpirationTime
|
|
329
|
+
if (data.tokenExpirationTime != null) {
|
|
358
330
|
contents.tokenExpirationTime = __expectNonNull(__parseRfc3339DateTime(data.tokenExpirationTime));
|
|
359
331
|
}
|
|
360
|
-
return [2,
|
|
332
|
+
return [2, contents];
|
|
361
333
|
}
|
|
362
334
|
});
|
|
363
335
|
}); };
|
|
364
336
|
var deserializeAws_restJson1CreateChatTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
365
|
-
var parsedOutput, _a,
|
|
337
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
366
338
|
var _c;
|
|
367
339
|
return __generator(this, function (_d) {
|
|
368
340
|
switch (_d.label) {
|
|
@@ -395,14 +367,14 @@ var deserializeAws_restJson1CreateChatTokenCommandError = function (output, cont
|
|
|
395
367
|
case 9: throw _d.sent();
|
|
396
368
|
case 10:
|
|
397
369
|
parsedBody = parsedOutput.body;
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
$metadata: $metadata,
|
|
370
|
+
throwDefaultError({
|
|
371
|
+
output: output,
|
|
372
|
+
parsedBody: parsedBody,
|
|
373
|
+
exceptionCtor: __BaseException,
|
|
374
|
+
errorCode: errorCode,
|
|
404
375
|
});
|
|
405
|
-
|
|
376
|
+
_d.label = 11;
|
|
377
|
+
case 11: return [2];
|
|
406
378
|
}
|
|
407
379
|
});
|
|
408
380
|
}); };
|
|
@@ -414,56 +386,47 @@ export var deserializeAws_restJson1CreateRoomCommand = function (output, context
|
|
|
414
386
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
415
387
|
return [2, deserializeAws_restJson1CreateRoomCommandError(output, context)];
|
|
416
388
|
}
|
|
417
|
-
contents = {
|
|
389
|
+
contents = map({
|
|
418
390
|
$metadata: deserializeMetadata(output),
|
|
419
|
-
|
|
420
|
-
createTime: undefined,
|
|
421
|
-
id: undefined,
|
|
422
|
-
maximumMessageLength: undefined,
|
|
423
|
-
maximumMessageRatePerSecond: undefined,
|
|
424
|
-
messageReviewHandler: undefined,
|
|
425
|
-
name: undefined,
|
|
426
|
-
tags: undefined,
|
|
427
|
-
updateTime: undefined,
|
|
428
|
-
};
|
|
391
|
+
});
|
|
429
392
|
_a = __expectNonNull;
|
|
430
393
|
_b = __expectObject;
|
|
431
394
|
return [4, parseBody(output.body, context)];
|
|
432
395
|
case 1:
|
|
433
396
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
434
|
-
if (data.arn
|
|
397
|
+
if (data.arn != null) {
|
|
435
398
|
contents.arn = __expectString(data.arn);
|
|
436
399
|
}
|
|
437
|
-
if (data.createTime
|
|
400
|
+
if (data.createTime != null) {
|
|
438
401
|
contents.createTime = __expectNonNull(__parseRfc3339DateTime(data.createTime));
|
|
439
402
|
}
|
|
440
|
-
if (data.id
|
|
403
|
+
if (data.id != null) {
|
|
441
404
|
contents.id = __expectString(data.id);
|
|
442
405
|
}
|
|
443
|
-
if (data.maximumMessageLength
|
|
406
|
+
if (data.maximumMessageLength != null) {
|
|
444
407
|
contents.maximumMessageLength = __expectInt32(data.maximumMessageLength);
|
|
445
408
|
}
|
|
446
|
-
if (data.maximumMessageRatePerSecond
|
|
409
|
+
if (data.maximumMessageRatePerSecond != null) {
|
|
447
410
|
contents.maximumMessageRatePerSecond = __expectInt32(data.maximumMessageRatePerSecond);
|
|
448
411
|
}
|
|
449
|
-
if (data.messageReviewHandler
|
|
412
|
+
if (data.messageReviewHandler != null) {
|
|
450
413
|
contents.messageReviewHandler = deserializeAws_restJson1MessageReviewHandler(data.messageReviewHandler, context);
|
|
451
414
|
}
|
|
452
|
-
if (data.name
|
|
415
|
+
if (data.name != null) {
|
|
453
416
|
contents.name = __expectString(data.name);
|
|
454
417
|
}
|
|
455
|
-
if (data.tags
|
|
418
|
+
if (data.tags != null) {
|
|
456
419
|
contents.tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
457
420
|
}
|
|
458
|
-
if (data.updateTime
|
|
421
|
+
if (data.updateTime != null) {
|
|
459
422
|
contents.updateTime = __expectNonNull(__parseRfc3339DateTime(data.updateTime));
|
|
460
423
|
}
|
|
461
|
-
return [2,
|
|
424
|
+
return [2, contents];
|
|
462
425
|
}
|
|
463
426
|
});
|
|
464
427
|
}); };
|
|
465
428
|
var deserializeAws_restJson1CreateRoomCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
466
|
-
var parsedOutput, _a,
|
|
429
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
467
430
|
var _c;
|
|
468
431
|
return __generator(this, function (_d) {
|
|
469
432
|
switch (_d.label) {
|
|
@@ -504,14 +467,14 @@ var deserializeAws_restJson1CreateRoomCommandError = function (output, context)
|
|
|
504
467
|
case 13: throw _d.sent();
|
|
505
468
|
case 14:
|
|
506
469
|
parsedBody = parsedOutput.body;
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
$metadata: $metadata,
|
|
470
|
+
throwDefaultError({
|
|
471
|
+
output: output,
|
|
472
|
+
parsedBody: parsedBody,
|
|
473
|
+
exceptionCtor: __BaseException,
|
|
474
|
+
errorCode: errorCode,
|
|
513
475
|
});
|
|
514
|
-
|
|
476
|
+
_d.label = 15;
|
|
477
|
+
case 15: return [2];
|
|
515
478
|
}
|
|
516
479
|
});
|
|
517
480
|
}); };
|
|
@@ -523,24 +486,23 @@ export var deserializeAws_restJson1DeleteMessageCommand = function (output, cont
|
|
|
523
486
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
524
487
|
return [2, deserializeAws_restJson1DeleteMessageCommandError(output, context)];
|
|
525
488
|
}
|
|
526
|
-
contents = {
|
|
489
|
+
contents = map({
|
|
527
490
|
$metadata: deserializeMetadata(output),
|
|
528
|
-
|
|
529
|
-
};
|
|
491
|
+
});
|
|
530
492
|
_a = __expectNonNull;
|
|
531
493
|
_b = __expectObject;
|
|
532
494
|
return [4, parseBody(output.body, context)];
|
|
533
495
|
case 1:
|
|
534
496
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
535
|
-
if (data.id
|
|
497
|
+
if (data.id != null) {
|
|
536
498
|
contents.id = __expectString(data.id);
|
|
537
499
|
}
|
|
538
|
-
return [2,
|
|
500
|
+
return [2, contents];
|
|
539
501
|
}
|
|
540
502
|
});
|
|
541
503
|
}); };
|
|
542
504
|
var deserializeAws_restJson1DeleteMessageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
543
|
-
var parsedOutput, _a,
|
|
505
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
544
506
|
var _c;
|
|
545
507
|
return __generator(this, function (_d) {
|
|
546
508
|
switch (_d.label) {
|
|
@@ -573,14 +535,14 @@ var deserializeAws_restJson1DeleteMessageCommandError = function (output, contex
|
|
|
573
535
|
case 9: throw _d.sent();
|
|
574
536
|
case 10:
|
|
575
537
|
parsedBody = parsedOutput.body;
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
$metadata: $metadata,
|
|
538
|
+
throwDefaultError({
|
|
539
|
+
output: output,
|
|
540
|
+
parsedBody: parsedBody,
|
|
541
|
+
exceptionCtor: __BaseException,
|
|
542
|
+
errorCode: errorCode,
|
|
582
543
|
});
|
|
583
|
-
|
|
544
|
+
_d.label = 11;
|
|
545
|
+
case 11: return [2];
|
|
584
546
|
}
|
|
585
547
|
});
|
|
586
548
|
}); };
|
|
@@ -592,18 +554,18 @@ export var deserializeAws_restJson1DeleteRoomCommand = function (output, context
|
|
|
592
554
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
593
555
|
return [2, deserializeAws_restJson1DeleteRoomCommandError(output, context)];
|
|
594
556
|
}
|
|
595
|
-
contents = {
|
|
557
|
+
contents = map({
|
|
596
558
|
$metadata: deserializeMetadata(output),
|
|
597
|
-
};
|
|
559
|
+
});
|
|
598
560
|
return [4, collectBody(output.body, context)];
|
|
599
561
|
case 1:
|
|
600
562
|
_a.sent();
|
|
601
|
-
return [2,
|
|
563
|
+
return [2, contents];
|
|
602
564
|
}
|
|
603
565
|
});
|
|
604
566
|
}); };
|
|
605
567
|
var deserializeAws_restJson1DeleteRoomCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
606
|
-
var parsedOutput, _a,
|
|
568
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
607
569
|
var _c;
|
|
608
570
|
return __generator(this, function (_d) {
|
|
609
571
|
switch (_d.label) {
|
|
@@ -636,14 +598,14 @@ var deserializeAws_restJson1DeleteRoomCommandError = function (output, context)
|
|
|
636
598
|
case 9: throw _d.sent();
|
|
637
599
|
case 10:
|
|
638
600
|
parsedBody = parsedOutput.body;
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
$metadata: $metadata,
|
|
601
|
+
throwDefaultError({
|
|
602
|
+
output: output,
|
|
603
|
+
parsedBody: parsedBody,
|
|
604
|
+
exceptionCtor: __BaseException,
|
|
605
|
+
errorCode: errorCode,
|
|
645
606
|
});
|
|
646
|
-
|
|
607
|
+
_d.label = 11;
|
|
608
|
+
case 11: return [2];
|
|
647
609
|
}
|
|
648
610
|
});
|
|
649
611
|
}); };
|
|
@@ -655,18 +617,18 @@ export var deserializeAws_restJson1DisconnectUserCommand = function (output, con
|
|
|
655
617
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
656
618
|
return [2, deserializeAws_restJson1DisconnectUserCommandError(output, context)];
|
|
657
619
|
}
|
|
658
|
-
contents = {
|
|
620
|
+
contents = map({
|
|
659
621
|
$metadata: deserializeMetadata(output),
|
|
660
|
-
};
|
|
622
|
+
});
|
|
661
623
|
return [4, collectBody(output.body, context)];
|
|
662
624
|
case 1:
|
|
663
625
|
_a.sent();
|
|
664
|
-
return [2,
|
|
626
|
+
return [2, contents];
|
|
665
627
|
}
|
|
666
628
|
});
|
|
667
629
|
}); };
|
|
668
630
|
var deserializeAws_restJson1DisconnectUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
669
|
-
var parsedOutput, _a,
|
|
631
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
670
632
|
var _c;
|
|
671
633
|
return __generator(this, function (_d) {
|
|
672
634
|
switch (_d.label) {
|
|
@@ -699,14 +661,14 @@ var deserializeAws_restJson1DisconnectUserCommandError = function (output, conte
|
|
|
699
661
|
case 9: throw _d.sent();
|
|
700
662
|
case 10:
|
|
701
663
|
parsedBody = parsedOutput.body;
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
$metadata: $metadata,
|
|
664
|
+
throwDefaultError({
|
|
665
|
+
output: output,
|
|
666
|
+
parsedBody: parsedBody,
|
|
667
|
+
exceptionCtor: __BaseException,
|
|
668
|
+
errorCode: errorCode,
|
|
708
669
|
});
|
|
709
|
-
|
|
670
|
+
_d.label = 11;
|
|
671
|
+
case 11: return [2];
|
|
710
672
|
}
|
|
711
673
|
});
|
|
712
674
|
}); };
|
|
@@ -718,56 +680,47 @@ export var deserializeAws_restJson1GetRoomCommand = function (output, context) {
|
|
|
718
680
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
719
681
|
return [2, deserializeAws_restJson1GetRoomCommandError(output, context)];
|
|
720
682
|
}
|
|
721
|
-
contents = {
|
|
683
|
+
contents = map({
|
|
722
684
|
$metadata: deserializeMetadata(output),
|
|
723
|
-
|
|
724
|
-
createTime: undefined,
|
|
725
|
-
id: undefined,
|
|
726
|
-
maximumMessageLength: undefined,
|
|
727
|
-
maximumMessageRatePerSecond: undefined,
|
|
728
|
-
messageReviewHandler: undefined,
|
|
729
|
-
name: undefined,
|
|
730
|
-
tags: undefined,
|
|
731
|
-
updateTime: undefined,
|
|
732
|
-
};
|
|
685
|
+
});
|
|
733
686
|
_a = __expectNonNull;
|
|
734
687
|
_b = __expectObject;
|
|
735
688
|
return [4, parseBody(output.body, context)];
|
|
736
689
|
case 1:
|
|
737
690
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
738
|
-
if (data.arn
|
|
691
|
+
if (data.arn != null) {
|
|
739
692
|
contents.arn = __expectString(data.arn);
|
|
740
693
|
}
|
|
741
|
-
if (data.createTime
|
|
694
|
+
if (data.createTime != null) {
|
|
742
695
|
contents.createTime = __expectNonNull(__parseRfc3339DateTime(data.createTime));
|
|
743
696
|
}
|
|
744
|
-
if (data.id
|
|
697
|
+
if (data.id != null) {
|
|
745
698
|
contents.id = __expectString(data.id);
|
|
746
699
|
}
|
|
747
|
-
if (data.maximumMessageLength
|
|
700
|
+
if (data.maximumMessageLength != null) {
|
|
748
701
|
contents.maximumMessageLength = __expectInt32(data.maximumMessageLength);
|
|
749
702
|
}
|
|
750
|
-
if (data.maximumMessageRatePerSecond
|
|
703
|
+
if (data.maximumMessageRatePerSecond != null) {
|
|
751
704
|
contents.maximumMessageRatePerSecond = __expectInt32(data.maximumMessageRatePerSecond);
|
|
752
705
|
}
|
|
753
|
-
if (data.messageReviewHandler
|
|
706
|
+
if (data.messageReviewHandler != null) {
|
|
754
707
|
contents.messageReviewHandler = deserializeAws_restJson1MessageReviewHandler(data.messageReviewHandler, context);
|
|
755
708
|
}
|
|
756
|
-
if (data.name
|
|
709
|
+
if (data.name != null) {
|
|
757
710
|
contents.name = __expectString(data.name);
|
|
758
711
|
}
|
|
759
|
-
if (data.tags
|
|
712
|
+
if (data.tags != null) {
|
|
760
713
|
contents.tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
761
714
|
}
|
|
762
|
-
if (data.updateTime
|
|
715
|
+
if (data.updateTime != null) {
|
|
763
716
|
contents.updateTime = __expectNonNull(__parseRfc3339DateTime(data.updateTime));
|
|
764
717
|
}
|
|
765
|
-
return [2,
|
|
718
|
+
return [2, contents];
|
|
766
719
|
}
|
|
767
720
|
});
|
|
768
721
|
}); };
|
|
769
722
|
var deserializeAws_restJson1GetRoomCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
770
|
-
var parsedOutput, _a,
|
|
723
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
771
724
|
var _c;
|
|
772
725
|
return __generator(this, function (_d) {
|
|
773
726
|
switch (_d.label) {
|
|
@@ -796,14 +749,14 @@ var deserializeAws_restJson1GetRoomCommandError = function (output, context) { r
|
|
|
796
749
|
case 7: throw _d.sent();
|
|
797
750
|
case 8:
|
|
798
751
|
parsedBody = parsedOutput.body;
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
$metadata: $metadata,
|
|
752
|
+
throwDefaultError({
|
|
753
|
+
output: output,
|
|
754
|
+
parsedBody: parsedBody,
|
|
755
|
+
exceptionCtor: __BaseException,
|
|
756
|
+
errorCode: errorCode,
|
|
805
757
|
});
|
|
806
|
-
|
|
758
|
+
_d.label = 9;
|
|
759
|
+
case 9: return [2];
|
|
807
760
|
}
|
|
808
761
|
});
|
|
809
762
|
}); };
|
|
@@ -815,28 +768,26 @@ export var deserializeAws_restJson1ListRoomsCommand = function (output, context)
|
|
|
815
768
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
816
769
|
return [2, deserializeAws_restJson1ListRoomsCommandError(output, context)];
|
|
817
770
|
}
|
|
818
|
-
contents = {
|
|
771
|
+
contents = map({
|
|
819
772
|
$metadata: deserializeMetadata(output),
|
|
820
|
-
|
|
821
|
-
rooms: undefined,
|
|
822
|
-
};
|
|
773
|
+
});
|
|
823
774
|
_a = __expectNonNull;
|
|
824
775
|
_b = __expectObject;
|
|
825
776
|
return [4, parseBody(output.body, context)];
|
|
826
777
|
case 1:
|
|
827
778
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
828
|
-
if (data.nextToken
|
|
779
|
+
if (data.nextToken != null) {
|
|
829
780
|
contents.nextToken = __expectString(data.nextToken);
|
|
830
781
|
}
|
|
831
|
-
if (data.rooms
|
|
782
|
+
if (data.rooms != null) {
|
|
832
783
|
contents.rooms = deserializeAws_restJson1RoomList(data.rooms, context);
|
|
833
784
|
}
|
|
834
|
-
return [2,
|
|
785
|
+
return [2, contents];
|
|
835
786
|
}
|
|
836
787
|
});
|
|
837
788
|
}); };
|
|
838
789
|
var deserializeAws_restJson1ListRoomsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
839
|
-
var parsedOutput, _a,
|
|
790
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
840
791
|
var _c;
|
|
841
792
|
return __generator(this, function (_d) {
|
|
842
793
|
switch (_d.label) {
|
|
@@ -865,14 +816,14 @@ var deserializeAws_restJson1ListRoomsCommandError = function (output, context) {
|
|
|
865
816
|
case 7: throw _d.sent();
|
|
866
817
|
case 8:
|
|
867
818
|
parsedBody = parsedOutput.body;
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
$metadata: $metadata,
|
|
819
|
+
throwDefaultError({
|
|
820
|
+
output: output,
|
|
821
|
+
parsedBody: parsedBody,
|
|
822
|
+
exceptionCtor: __BaseException,
|
|
823
|
+
errorCode: errorCode,
|
|
874
824
|
});
|
|
875
|
-
|
|
825
|
+
_d.label = 9;
|
|
826
|
+
case 9: return [2];
|
|
876
827
|
}
|
|
877
828
|
});
|
|
878
829
|
}); };
|
|
@@ -884,24 +835,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
884
835
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
885
836
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
886
837
|
}
|
|
887
|
-
contents = {
|
|
838
|
+
contents = map({
|
|
888
839
|
$metadata: deserializeMetadata(output),
|
|
889
|
-
|
|
890
|
-
};
|
|
840
|
+
});
|
|
891
841
|
_a = __expectNonNull;
|
|
892
842
|
_b = __expectObject;
|
|
893
843
|
return [4, parseBody(output.body, context)];
|
|
894
844
|
case 1:
|
|
895
845
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
896
|
-
if (data.tags
|
|
846
|
+
if (data.tags != null) {
|
|
897
847
|
contents.tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
898
848
|
}
|
|
899
|
-
return [2,
|
|
849
|
+
return [2, contents];
|
|
900
850
|
}
|
|
901
851
|
});
|
|
902
852
|
}); };
|
|
903
853
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
904
|
-
var parsedOutput, _a,
|
|
854
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
905
855
|
var _c;
|
|
906
856
|
return __generator(this, function (_d) {
|
|
907
857
|
switch (_d.label) {
|
|
@@ -930,14 +880,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
930
880
|
case 7: throw _d.sent();
|
|
931
881
|
case 8:
|
|
932
882
|
parsedBody = parsedOutput.body;
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
$metadata: $metadata,
|
|
883
|
+
throwDefaultError({
|
|
884
|
+
output: output,
|
|
885
|
+
parsedBody: parsedBody,
|
|
886
|
+
exceptionCtor: __BaseException,
|
|
887
|
+
errorCode: errorCode,
|
|
939
888
|
});
|
|
940
|
-
|
|
889
|
+
_d.label = 9;
|
|
890
|
+
case 9: return [2];
|
|
941
891
|
}
|
|
942
892
|
});
|
|
943
893
|
}); };
|
|
@@ -949,24 +899,23 @@ export var deserializeAws_restJson1SendEventCommand = function (output, context)
|
|
|
949
899
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
950
900
|
return [2, deserializeAws_restJson1SendEventCommandError(output, context)];
|
|
951
901
|
}
|
|
952
|
-
contents = {
|
|
902
|
+
contents = map({
|
|
953
903
|
$metadata: deserializeMetadata(output),
|
|
954
|
-
|
|
955
|
-
};
|
|
904
|
+
});
|
|
956
905
|
_a = __expectNonNull;
|
|
957
906
|
_b = __expectObject;
|
|
958
907
|
return [4, parseBody(output.body, context)];
|
|
959
908
|
case 1:
|
|
960
909
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
961
|
-
if (data.id
|
|
910
|
+
if (data.id != null) {
|
|
962
911
|
contents.id = __expectString(data.id);
|
|
963
912
|
}
|
|
964
|
-
return [2,
|
|
913
|
+
return [2, contents];
|
|
965
914
|
}
|
|
966
915
|
});
|
|
967
916
|
}); };
|
|
968
917
|
var deserializeAws_restJson1SendEventCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
969
|
-
var parsedOutput, _a,
|
|
918
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
970
919
|
var _c;
|
|
971
920
|
return __generator(this, function (_d) {
|
|
972
921
|
switch (_d.label) {
|
|
@@ -999,14 +948,14 @@ var deserializeAws_restJson1SendEventCommandError = function (output, context) {
|
|
|
999
948
|
case 9: throw _d.sent();
|
|
1000
949
|
case 10:
|
|
1001
950
|
parsedBody = parsedOutput.body;
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
$metadata: $metadata,
|
|
951
|
+
throwDefaultError({
|
|
952
|
+
output: output,
|
|
953
|
+
parsedBody: parsedBody,
|
|
954
|
+
exceptionCtor: __BaseException,
|
|
955
|
+
errorCode: errorCode,
|
|
1008
956
|
});
|
|
1009
|
-
|
|
957
|
+
_d.label = 11;
|
|
958
|
+
case 11: return [2];
|
|
1010
959
|
}
|
|
1011
960
|
});
|
|
1012
961
|
}); };
|
|
@@ -1018,18 +967,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1018
967
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1019
968
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
1020
969
|
}
|
|
1021
|
-
contents = {
|
|
970
|
+
contents = map({
|
|
1022
971
|
$metadata: deserializeMetadata(output),
|
|
1023
|
-
};
|
|
972
|
+
});
|
|
1024
973
|
return [4, collectBody(output.body, context)];
|
|
1025
974
|
case 1:
|
|
1026
975
|
_a.sent();
|
|
1027
|
-
return [2,
|
|
976
|
+
return [2, contents];
|
|
1028
977
|
}
|
|
1029
978
|
});
|
|
1030
979
|
}); };
|
|
1031
980
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1032
|
-
var parsedOutput, _a,
|
|
981
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1033
982
|
var _c;
|
|
1034
983
|
return __generator(this, function (_d) {
|
|
1035
984
|
switch (_d.label) {
|
|
@@ -1058,14 +1007,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1058
1007
|
case 7: throw _d.sent();
|
|
1059
1008
|
case 8:
|
|
1060
1009
|
parsedBody = parsedOutput.body;
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
$metadata: $metadata,
|
|
1010
|
+
throwDefaultError({
|
|
1011
|
+
output: output,
|
|
1012
|
+
parsedBody: parsedBody,
|
|
1013
|
+
exceptionCtor: __BaseException,
|
|
1014
|
+
errorCode: errorCode,
|
|
1067
1015
|
});
|
|
1068
|
-
|
|
1016
|
+
_d.label = 9;
|
|
1017
|
+
case 9: return [2];
|
|
1069
1018
|
}
|
|
1070
1019
|
});
|
|
1071
1020
|
}); };
|
|
@@ -1077,18 +1026,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1077
1026
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1078
1027
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
1079
1028
|
}
|
|
1080
|
-
contents = {
|
|
1029
|
+
contents = map({
|
|
1081
1030
|
$metadata: deserializeMetadata(output),
|
|
1082
|
-
};
|
|
1031
|
+
});
|
|
1083
1032
|
return [4, collectBody(output.body, context)];
|
|
1084
1033
|
case 1:
|
|
1085
1034
|
_a.sent();
|
|
1086
|
-
return [2,
|
|
1035
|
+
return [2, contents];
|
|
1087
1036
|
}
|
|
1088
1037
|
});
|
|
1089
1038
|
}); };
|
|
1090
1039
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1091
|
-
var parsedOutput, _a,
|
|
1040
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1092
1041
|
var _c;
|
|
1093
1042
|
return __generator(this, function (_d) {
|
|
1094
1043
|
switch (_d.label) {
|
|
@@ -1117,14 +1066,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1117
1066
|
case 7: throw _d.sent();
|
|
1118
1067
|
case 8:
|
|
1119
1068
|
parsedBody = parsedOutput.body;
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
$metadata: $metadata,
|
|
1069
|
+
throwDefaultError({
|
|
1070
|
+
output: output,
|
|
1071
|
+
parsedBody: parsedBody,
|
|
1072
|
+
exceptionCtor: __BaseException,
|
|
1073
|
+
errorCode: errorCode,
|
|
1126
1074
|
});
|
|
1127
|
-
|
|
1075
|
+
_d.label = 9;
|
|
1076
|
+
case 9: return [2];
|
|
1128
1077
|
}
|
|
1129
1078
|
});
|
|
1130
1079
|
}); };
|
|
@@ -1136,56 +1085,47 @@ export var deserializeAws_restJson1UpdateRoomCommand = function (output, context
|
|
|
1136
1085
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1137
1086
|
return [2, deserializeAws_restJson1UpdateRoomCommandError(output, context)];
|
|
1138
1087
|
}
|
|
1139
|
-
contents = {
|
|
1088
|
+
contents = map({
|
|
1140
1089
|
$metadata: deserializeMetadata(output),
|
|
1141
|
-
|
|
1142
|
-
createTime: undefined,
|
|
1143
|
-
id: undefined,
|
|
1144
|
-
maximumMessageLength: undefined,
|
|
1145
|
-
maximumMessageRatePerSecond: undefined,
|
|
1146
|
-
messageReviewHandler: undefined,
|
|
1147
|
-
name: undefined,
|
|
1148
|
-
tags: undefined,
|
|
1149
|
-
updateTime: undefined,
|
|
1150
|
-
};
|
|
1090
|
+
});
|
|
1151
1091
|
_a = __expectNonNull;
|
|
1152
1092
|
_b = __expectObject;
|
|
1153
1093
|
return [4, parseBody(output.body, context)];
|
|
1154
1094
|
case 1:
|
|
1155
1095
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1156
|
-
if (data.arn
|
|
1096
|
+
if (data.arn != null) {
|
|
1157
1097
|
contents.arn = __expectString(data.arn);
|
|
1158
1098
|
}
|
|
1159
|
-
if (data.createTime
|
|
1099
|
+
if (data.createTime != null) {
|
|
1160
1100
|
contents.createTime = __expectNonNull(__parseRfc3339DateTime(data.createTime));
|
|
1161
1101
|
}
|
|
1162
|
-
if (data.id
|
|
1102
|
+
if (data.id != null) {
|
|
1163
1103
|
contents.id = __expectString(data.id);
|
|
1164
1104
|
}
|
|
1165
|
-
if (data.maximumMessageLength
|
|
1105
|
+
if (data.maximumMessageLength != null) {
|
|
1166
1106
|
contents.maximumMessageLength = __expectInt32(data.maximumMessageLength);
|
|
1167
1107
|
}
|
|
1168
|
-
if (data.maximumMessageRatePerSecond
|
|
1108
|
+
if (data.maximumMessageRatePerSecond != null) {
|
|
1169
1109
|
contents.maximumMessageRatePerSecond = __expectInt32(data.maximumMessageRatePerSecond);
|
|
1170
1110
|
}
|
|
1171
|
-
if (data.messageReviewHandler
|
|
1111
|
+
if (data.messageReviewHandler != null) {
|
|
1172
1112
|
contents.messageReviewHandler = deserializeAws_restJson1MessageReviewHandler(data.messageReviewHandler, context);
|
|
1173
1113
|
}
|
|
1174
|
-
if (data.name
|
|
1114
|
+
if (data.name != null) {
|
|
1175
1115
|
contents.name = __expectString(data.name);
|
|
1176
1116
|
}
|
|
1177
|
-
if (data.tags
|
|
1117
|
+
if (data.tags != null) {
|
|
1178
1118
|
contents.tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
1179
1119
|
}
|
|
1180
|
-
if (data.updateTime
|
|
1120
|
+
if (data.updateTime != null) {
|
|
1181
1121
|
contents.updateTime = __expectNonNull(__parseRfc3339DateTime(data.updateTime));
|
|
1182
1122
|
}
|
|
1183
|
-
return [2,
|
|
1123
|
+
return [2, contents];
|
|
1184
1124
|
}
|
|
1185
1125
|
});
|
|
1186
1126
|
}); };
|
|
1187
1127
|
var deserializeAws_restJson1UpdateRoomCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1188
|
-
var parsedOutput, _a,
|
|
1128
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1189
1129
|
var _c;
|
|
1190
1130
|
return __generator(this, function (_d) {
|
|
1191
1131
|
switch (_d.label) {
|
|
@@ -1218,23 +1158,24 @@ var deserializeAws_restJson1UpdateRoomCommandError = function (output, context)
|
|
|
1218
1158
|
case 9: throw _d.sent();
|
|
1219
1159
|
case 10:
|
|
1220
1160
|
parsedBody = parsedOutput.body;
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
$metadata: $metadata,
|
|
1161
|
+
throwDefaultError({
|
|
1162
|
+
output: output,
|
|
1163
|
+
parsedBody: parsedBody,
|
|
1164
|
+
exceptionCtor: __BaseException,
|
|
1165
|
+
errorCode: errorCode,
|
|
1227
1166
|
});
|
|
1228
|
-
|
|
1167
|
+
_d.label = 11;
|
|
1168
|
+
case 11: return [2];
|
|
1229
1169
|
}
|
|
1230
1170
|
});
|
|
1231
1171
|
}); };
|
|
1172
|
+
var map = __map;
|
|
1232
1173
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1233
1174
|
var contents, data, exception;
|
|
1234
1175
|
return __generator(this, function (_a) {
|
|
1235
|
-
contents = {};
|
|
1176
|
+
contents = map({});
|
|
1236
1177
|
data = parsedOutput.body;
|
|
1237
|
-
if (data.message
|
|
1178
|
+
if (data.message != null) {
|
|
1238
1179
|
contents.message = __expectString(data.message);
|
|
1239
1180
|
}
|
|
1240
1181
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1244,15 +1185,15 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
1244
1185
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1245
1186
|
var contents, data, exception;
|
|
1246
1187
|
return __generator(this, function (_a) {
|
|
1247
|
-
contents = {};
|
|
1188
|
+
contents = map({});
|
|
1248
1189
|
data = parsedOutput.body;
|
|
1249
|
-
if (data.message
|
|
1190
|
+
if (data.message != null) {
|
|
1250
1191
|
contents.message = __expectString(data.message);
|
|
1251
1192
|
}
|
|
1252
|
-
if (data.resourceId
|
|
1193
|
+
if (data.resourceId != null) {
|
|
1253
1194
|
contents.resourceId = __expectString(data.resourceId);
|
|
1254
1195
|
}
|
|
1255
|
-
if (data.resourceType
|
|
1196
|
+
if (data.resourceType != null) {
|
|
1256
1197
|
contents.resourceType = __expectString(data.resourceType);
|
|
1257
1198
|
}
|
|
1258
1199
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1262,9 +1203,9 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
1262
1203
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1263
1204
|
var contents, data, exception;
|
|
1264
1205
|
return __generator(this, function (_a) {
|
|
1265
|
-
contents = {};
|
|
1206
|
+
contents = map({});
|
|
1266
1207
|
data = parsedOutput.body;
|
|
1267
|
-
if (data.message
|
|
1208
|
+
if (data.message != null) {
|
|
1268
1209
|
contents.message = __expectString(data.message);
|
|
1269
1210
|
}
|
|
1270
1211
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1274,9 +1215,9 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
1274
1215
|
var deserializeAws_restJson1PendingVerificationResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1275
1216
|
var contents, data, exception;
|
|
1276
1217
|
return __generator(this, function (_a) {
|
|
1277
|
-
contents = {};
|
|
1218
|
+
contents = map({});
|
|
1278
1219
|
data = parsedOutput.body;
|
|
1279
|
-
if (data.message
|
|
1220
|
+
if (data.message != null) {
|
|
1280
1221
|
contents.message = __expectString(data.message);
|
|
1281
1222
|
}
|
|
1282
1223
|
exception = new PendingVerification(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1286,15 +1227,15 @@ var deserializeAws_restJson1PendingVerificationResponse = function (parsedOutput
|
|
|
1286
1227
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1287
1228
|
var contents, data, exception;
|
|
1288
1229
|
return __generator(this, function (_a) {
|
|
1289
|
-
contents = {};
|
|
1230
|
+
contents = map({});
|
|
1290
1231
|
data = parsedOutput.body;
|
|
1291
|
-
if (data.message
|
|
1232
|
+
if (data.message != null) {
|
|
1292
1233
|
contents.message = __expectString(data.message);
|
|
1293
1234
|
}
|
|
1294
|
-
if (data.resourceId
|
|
1235
|
+
if (data.resourceId != null) {
|
|
1295
1236
|
contents.resourceId = __expectString(data.resourceId);
|
|
1296
1237
|
}
|
|
1297
|
-
if (data.resourceType
|
|
1238
|
+
if (data.resourceType != null) {
|
|
1298
1239
|
contents.resourceType = __expectString(data.resourceType);
|
|
1299
1240
|
}
|
|
1300
1241
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1304,18 +1245,18 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
1304
1245
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1305
1246
|
var contents, data, exception;
|
|
1306
1247
|
return __generator(this, function (_a) {
|
|
1307
|
-
contents = {};
|
|
1248
|
+
contents = map({});
|
|
1308
1249
|
data = parsedOutput.body;
|
|
1309
|
-
if (data.limit
|
|
1250
|
+
if (data.limit != null) {
|
|
1310
1251
|
contents.limit = __expectInt32(data.limit);
|
|
1311
1252
|
}
|
|
1312
|
-
if (data.message
|
|
1253
|
+
if (data.message != null) {
|
|
1313
1254
|
contents.message = __expectString(data.message);
|
|
1314
1255
|
}
|
|
1315
|
-
if (data.resourceId
|
|
1256
|
+
if (data.resourceId != null) {
|
|
1316
1257
|
contents.resourceId = __expectString(data.resourceId);
|
|
1317
1258
|
}
|
|
1318
|
-
if (data.resourceType
|
|
1259
|
+
if (data.resourceType != null) {
|
|
1319
1260
|
contents.resourceType = __expectString(data.resourceType);
|
|
1320
1261
|
}
|
|
1321
1262
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1325,18 +1266,18 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
1325
1266
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1326
1267
|
var contents, data, exception;
|
|
1327
1268
|
return __generator(this, function (_a) {
|
|
1328
|
-
contents = {};
|
|
1269
|
+
contents = map({});
|
|
1329
1270
|
data = parsedOutput.body;
|
|
1330
|
-
if (data.limit
|
|
1271
|
+
if (data.limit != null) {
|
|
1331
1272
|
contents.limit = __expectInt32(data.limit);
|
|
1332
1273
|
}
|
|
1333
|
-
if (data.message
|
|
1274
|
+
if (data.message != null) {
|
|
1334
1275
|
contents.message = __expectString(data.message);
|
|
1335
1276
|
}
|
|
1336
|
-
if (data.resourceId
|
|
1277
|
+
if (data.resourceId != null) {
|
|
1337
1278
|
contents.resourceId = __expectString(data.resourceId);
|
|
1338
1279
|
}
|
|
1339
|
-
if (data.resourceType
|
|
1280
|
+
if (data.resourceType != null) {
|
|
1340
1281
|
contents.resourceType = __expectString(data.resourceType);
|
|
1341
1282
|
}
|
|
1342
1283
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1346,15 +1287,15 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
1346
1287
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1347
1288
|
var contents, data, exception;
|
|
1348
1289
|
return __generator(this, function (_a) {
|
|
1349
|
-
contents = {};
|
|
1290
|
+
contents = map({});
|
|
1350
1291
|
data = parsedOutput.body;
|
|
1351
|
-
if (data.fieldList
|
|
1292
|
+
if (data.fieldList != null) {
|
|
1352
1293
|
contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
|
|
1353
1294
|
}
|
|
1354
|
-
if (data.message
|
|
1295
|
+
if (data.message != null) {
|
|
1355
1296
|
contents.message = __expectString(data.message);
|
|
1356
1297
|
}
|
|
1357
|
-
if (data.reason
|
|
1298
|
+
if (data.reason != null) {
|
|
1358
1299
|
contents.reason = __expectString(data.reason);
|
|
1359
1300
|
}
|
|
1360
1301
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1375,9 +1316,6 @@ var serializeAws_restJson1ChatTokenCapabilities = function (input, context) {
|
|
|
1375
1316
|
return input
|
|
1376
1317
|
.filter(function (e) { return e != null; })
|
|
1377
1318
|
.map(function (entry) {
|
|
1378
|
-
if (entry === null) {
|
|
1379
|
-
return null;
|
|
1380
|
-
}
|
|
1381
1319
|
return entry;
|
|
1382
1320
|
});
|
|
1383
1321
|
};
|