@aws-sdk/client-mq 3.504.0 → 3.509.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/dist-cjs/index.js +47 -660
- package/dist-es/protocols/Aws_restJson1.js +37 -650
- package/package.json +3 -3
|
@@ -325,7 +325,7 @@ export const se_UpdateUserCommand = async (input, context) => {
|
|
|
325
325
|
};
|
|
326
326
|
export const de_CreateBrokerCommand = async (output, context) => {
|
|
327
327
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
328
|
-
return
|
|
328
|
+
return de_CommandError(output, context);
|
|
329
329
|
}
|
|
330
330
|
const contents = map({
|
|
331
331
|
$metadata: deserializeMetadata(output),
|
|
@@ -338,40 +338,9 @@ export const de_CreateBrokerCommand = async (output, context) => {
|
|
|
338
338
|
Object.assign(contents, doc);
|
|
339
339
|
return contents;
|
|
340
340
|
};
|
|
341
|
-
const de_CreateBrokerCommandError = async (output, context) => {
|
|
342
|
-
const parsedOutput = {
|
|
343
|
-
...output,
|
|
344
|
-
body: await parseErrorBody(output.body, context),
|
|
345
|
-
};
|
|
346
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
347
|
-
switch (errorCode) {
|
|
348
|
-
case "BadRequestException":
|
|
349
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
350
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
351
|
-
case "ConflictException":
|
|
352
|
-
case "com.amazonaws.mq#ConflictException":
|
|
353
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
354
|
-
case "ForbiddenException":
|
|
355
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
356
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
357
|
-
case "InternalServerErrorException":
|
|
358
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
359
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
360
|
-
case "UnauthorizedException":
|
|
361
|
-
case "com.amazonaws.mq#UnauthorizedException":
|
|
362
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
363
|
-
default:
|
|
364
|
-
const parsedBody = parsedOutput.body;
|
|
365
|
-
return throwDefaultError({
|
|
366
|
-
output,
|
|
367
|
-
parsedBody,
|
|
368
|
-
errorCode,
|
|
369
|
-
});
|
|
370
|
-
}
|
|
371
|
-
};
|
|
372
341
|
export const de_CreateConfigurationCommand = async (output, context) => {
|
|
373
342
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
374
|
-
return
|
|
343
|
+
return de_CommandError(output, context);
|
|
375
344
|
}
|
|
376
345
|
const contents = map({
|
|
377
346
|
$metadata: deserializeMetadata(output),
|
|
@@ -388,37 +357,9 @@ export const de_CreateConfigurationCommand = async (output, context) => {
|
|
|
388
357
|
Object.assign(contents, doc);
|
|
389
358
|
return contents;
|
|
390
359
|
};
|
|
391
|
-
const de_CreateConfigurationCommandError = async (output, context) => {
|
|
392
|
-
const parsedOutput = {
|
|
393
|
-
...output,
|
|
394
|
-
body: await parseErrorBody(output.body, context),
|
|
395
|
-
};
|
|
396
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
397
|
-
switch (errorCode) {
|
|
398
|
-
case "BadRequestException":
|
|
399
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
400
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
401
|
-
case "ConflictException":
|
|
402
|
-
case "com.amazonaws.mq#ConflictException":
|
|
403
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
404
|
-
case "ForbiddenException":
|
|
405
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
406
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
407
|
-
case "InternalServerErrorException":
|
|
408
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
409
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
410
|
-
default:
|
|
411
|
-
const parsedBody = parsedOutput.body;
|
|
412
|
-
return throwDefaultError({
|
|
413
|
-
output,
|
|
414
|
-
parsedBody,
|
|
415
|
-
errorCode,
|
|
416
|
-
});
|
|
417
|
-
}
|
|
418
|
-
};
|
|
419
360
|
export const de_CreateTagsCommand = async (output, context) => {
|
|
420
361
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
421
|
-
return
|
|
362
|
+
return de_CommandError(output, context);
|
|
422
363
|
}
|
|
423
364
|
const contents = map({
|
|
424
365
|
$metadata: deserializeMetadata(output),
|
|
@@ -426,37 +367,9 @@ export const de_CreateTagsCommand = async (output, context) => {
|
|
|
426
367
|
await collectBody(output.body, context);
|
|
427
368
|
return contents;
|
|
428
369
|
};
|
|
429
|
-
const de_CreateTagsCommandError = async (output, context) => {
|
|
430
|
-
const parsedOutput = {
|
|
431
|
-
...output,
|
|
432
|
-
body: await parseErrorBody(output.body, context),
|
|
433
|
-
};
|
|
434
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
435
|
-
switch (errorCode) {
|
|
436
|
-
case "BadRequestException":
|
|
437
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
438
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
439
|
-
case "ForbiddenException":
|
|
440
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
441
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
442
|
-
case "InternalServerErrorException":
|
|
443
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
444
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
445
|
-
case "NotFoundException":
|
|
446
|
-
case "com.amazonaws.mq#NotFoundException":
|
|
447
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
448
|
-
default:
|
|
449
|
-
const parsedBody = parsedOutput.body;
|
|
450
|
-
return throwDefaultError({
|
|
451
|
-
output,
|
|
452
|
-
parsedBody,
|
|
453
|
-
errorCode,
|
|
454
|
-
});
|
|
455
|
-
}
|
|
456
|
-
};
|
|
457
370
|
export const de_CreateUserCommand = async (output, context) => {
|
|
458
371
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
459
|
-
return
|
|
372
|
+
return de_CommandError(output, context);
|
|
460
373
|
}
|
|
461
374
|
const contents = map({
|
|
462
375
|
$metadata: deserializeMetadata(output),
|
|
@@ -464,40 +377,9 @@ export const de_CreateUserCommand = async (output, context) => {
|
|
|
464
377
|
await collectBody(output.body, context);
|
|
465
378
|
return contents;
|
|
466
379
|
};
|
|
467
|
-
const de_CreateUserCommandError = async (output, context) => {
|
|
468
|
-
const parsedOutput = {
|
|
469
|
-
...output,
|
|
470
|
-
body: await parseErrorBody(output.body, context),
|
|
471
|
-
};
|
|
472
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
473
|
-
switch (errorCode) {
|
|
474
|
-
case "BadRequestException":
|
|
475
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
476
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
477
|
-
case "ConflictException":
|
|
478
|
-
case "com.amazonaws.mq#ConflictException":
|
|
479
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
480
|
-
case "ForbiddenException":
|
|
481
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
482
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
483
|
-
case "InternalServerErrorException":
|
|
484
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
485
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
486
|
-
case "NotFoundException":
|
|
487
|
-
case "com.amazonaws.mq#NotFoundException":
|
|
488
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
489
|
-
default:
|
|
490
|
-
const parsedBody = parsedOutput.body;
|
|
491
|
-
return throwDefaultError({
|
|
492
|
-
output,
|
|
493
|
-
parsedBody,
|
|
494
|
-
errorCode,
|
|
495
|
-
});
|
|
496
|
-
}
|
|
497
|
-
};
|
|
498
380
|
export const de_DeleteBrokerCommand = async (output, context) => {
|
|
499
381
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
500
|
-
return
|
|
382
|
+
return de_CommandError(output, context);
|
|
501
383
|
}
|
|
502
384
|
const contents = map({
|
|
503
385
|
$metadata: deserializeMetadata(output),
|
|
@@ -509,37 +391,9 @@ export const de_DeleteBrokerCommand = async (output, context) => {
|
|
|
509
391
|
Object.assign(contents, doc);
|
|
510
392
|
return contents;
|
|
511
393
|
};
|
|
512
|
-
const de_DeleteBrokerCommandError = async (output, context) => {
|
|
513
|
-
const parsedOutput = {
|
|
514
|
-
...output,
|
|
515
|
-
body: await parseErrorBody(output.body, context),
|
|
516
|
-
};
|
|
517
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
518
|
-
switch (errorCode) {
|
|
519
|
-
case "BadRequestException":
|
|
520
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
521
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
522
|
-
case "ForbiddenException":
|
|
523
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
524
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
525
|
-
case "InternalServerErrorException":
|
|
526
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
527
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
528
|
-
case "NotFoundException":
|
|
529
|
-
case "com.amazonaws.mq#NotFoundException":
|
|
530
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
531
|
-
default:
|
|
532
|
-
const parsedBody = parsedOutput.body;
|
|
533
|
-
return throwDefaultError({
|
|
534
|
-
output,
|
|
535
|
-
parsedBody,
|
|
536
|
-
errorCode,
|
|
537
|
-
});
|
|
538
|
-
}
|
|
539
|
-
};
|
|
540
394
|
export const de_DeleteTagsCommand = async (output, context) => {
|
|
541
395
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
542
|
-
return
|
|
396
|
+
return de_CommandError(output, context);
|
|
543
397
|
}
|
|
544
398
|
const contents = map({
|
|
545
399
|
$metadata: deserializeMetadata(output),
|
|
@@ -547,37 +401,9 @@ export const de_DeleteTagsCommand = async (output, context) => {
|
|
|
547
401
|
await collectBody(output.body, context);
|
|
548
402
|
return contents;
|
|
549
403
|
};
|
|
550
|
-
const de_DeleteTagsCommandError = async (output, context) => {
|
|
551
|
-
const parsedOutput = {
|
|
552
|
-
...output,
|
|
553
|
-
body: await parseErrorBody(output.body, context),
|
|
554
|
-
};
|
|
555
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
556
|
-
switch (errorCode) {
|
|
557
|
-
case "BadRequestException":
|
|
558
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
559
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
560
|
-
case "ForbiddenException":
|
|
561
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
562
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
563
|
-
case "InternalServerErrorException":
|
|
564
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
565
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
566
|
-
case "NotFoundException":
|
|
567
|
-
case "com.amazonaws.mq#NotFoundException":
|
|
568
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
569
|
-
default:
|
|
570
|
-
const parsedBody = parsedOutput.body;
|
|
571
|
-
return throwDefaultError({
|
|
572
|
-
output,
|
|
573
|
-
parsedBody,
|
|
574
|
-
errorCode,
|
|
575
|
-
});
|
|
576
|
-
}
|
|
577
|
-
};
|
|
578
404
|
export const de_DeleteUserCommand = async (output, context) => {
|
|
579
405
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
580
|
-
return
|
|
406
|
+
return de_CommandError(output, context);
|
|
581
407
|
}
|
|
582
408
|
const contents = map({
|
|
583
409
|
$metadata: deserializeMetadata(output),
|
|
@@ -585,37 +411,9 @@ export const de_DeleteUserCommand = async (output, context) => {
|
|
|
585
411
|
await collectBody(output.body, context);
|
|
586
412
|
return contents;
|
|
587
413
|
};
|
|
588
|
-
const de_DeleteUserCommandError = async (output, context) => {
|
|
589
|
-
const parsedOutput = {
|
|
590
|
-
...output,
|
|
591
|
-
body: await parseErrorBody(output.body, context),
|
|
592
|
-
};
|
|
593
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
594
|
-
switch (errorCode) {
|
|
595
|
-
case "BadRequestException":
|
|
596
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
597
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
598
|
-
case "ForbiddenException":
|
|
599
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
600
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
601
|
-
case "InternalServerErrorException":
|
|
602
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
603
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
604
|
-
case "NotFoundException":
|
|
605
|
-
case "com.amazonaws.mq#NotFoundException":
|
|
606
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
607
|
-
default:
|
|
608
|
-
const parsedBody = parsedOutput.body;
|
|
609
|
-
return throwDefaultError({
|
|
610
|
-
output,
|
|
611
|
-
parsedBody,
|
|
612
|
-
errorCode,
|
|
613
|
-
});
|
|
614
|
-
}
|
|
615
|
-
};
|
|
616
414
|
export const de_DescribeBrokerCommand = async (output, context) => {
|
|
617
415
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
618
|
-
return
|
|
416
|
+
return de_CommandError(output, context);
|
|
619
417
|
}
|
|
620
418
|
const contents = map({
|
|
621
419
|
$metadata: deserializeMetadata(output),
|
|
@@ -663,37 +461,9 @@ export const de_DescribeBrokerCommand = async (output, context) => {
|
|
|
663
461
|
Object.assign(contents, doc);
|
|
664
462
|
return contents;
|
|
665
463
|
};
|
|
666
|
-
const de_DescribeBrokerCommandError = async (output, context) => {
|
|
667
|
-
const parsedOutput = {
|
|
668
|
-
...output,
|
|
669
|
-
body: await parseErrorBody(output.body, context),
|
|
670
|
-
};
|
|
671
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
672
|
-
switch (errorCode) {
|
|
673
|
-
case "BadRequestException":
|
|
674
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
675
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
676
|
-
case "ForbiddenException":
|
|
677
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
678
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
679
|
-
case "InternalServerErrorException":
|
|
680
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
681
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
682
|
-
case "NotFoundException":
|
|
683
|
-
case "com.amazonaws.mq#NotFoundException":
|
|
684
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
685
|
-
default:
|
|
686
|
-
const parsedBody = parsedOutput.body;
|
|
687
|
-
return throwDefaultError({
|
|
688
|
-
output,
|
|
689
|
-
parsedBody,
|
|
690
|
-
errorCode,
|
|
691
|
-
});
|
|
692
|
-
}
|
|
693
|
-
};
|
|
694
464
|
export const de_DescribeBrokerEngineTypesCommand = async (output, context) => {
|
|
695
465
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
696
|
-
return
|
|
466
|
+
return de_CommandError(output, context);
|
|
697
467
|
}
|
|
698
468
|
const contents = map({
|
|
699
469
|
$metadata: deserializeMetadata(output),
|
|
@@ -707,34 +477,9 @@ export const de_DescribeBrokerEngineTypesCommand = async (output, context) => {
|
|
|
707
477
|
Object.assign(contents, doc);
|
|
708
478
|
return contents;
|
|
709
479
|
};
|
|
710
|
-
const de_DescribeBrokerEngineTypesCommandError = async (output, context) => {
|
|
711
|
-
const parsedOutput = {
|
|
712
|
-
...output,
|
|
713
|
-
body: await parseErrorBody(output.body, context),
|
|
714
|
-
};
|
|
715
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
716
|
-
switch (errorCode) {
|
|
717
|
-
case "BadRequestException":
|
|
718
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
719
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
720
|
-
case "ForbiddenException":
|
|
721
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
722
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
723
|
-
case "InternalServerErrorException":
|
|
724
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
725
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
726
|
-
default:
|
|
727
|
-
const parsedBody = parsedOutput.body;
|
|
728
|
-
return throwDefaultError({
|
|
729
|
-
output,
|
|
730
|
-
parsedBody,
|
|
731
|
-
errorCode,
|
|
732
|
-
});
|
|
733
|
-
}
|
|
734
|
-
};
|
|
735
480
|
export const de_DescribeBrokerInstanceOptionsCommand = async (output, context) => {
|
|
736
481
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
737
|
-
return
|
|
482
|
+
return de_CommandError(output, context);
|
|
738
483
|
}
|
|
739
484
|
const contents = map({
|
|
740
485
|
$metadata: deserializeMetadata(output),
|
|
@@ -748,34 +493,9 @@ export const de_DescribeBrokerInstanceOptionsCommand = async (output, context) =
|
|
|
748
493
|
Object.assign(contents, doc);
|
|
749
494
|
return contents;
|
|
750
495
|
};
|
|
751
|
-
const de_DescribeBrokerInstanceOptionsCommandError = async (output, context) => {
|
|
752
|
-
const parsedOutput = {
|
|
753
|
-
...output,
|
|
754
|
-
body: await parseErrorBody(output.body, context),
|
|
755
|
-
};
|
|
756
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
757
|
-
switch (errorCode) {
|
|
758
|
-
case "BadRequestException":
|
|
759
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
760
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
761
|
-
case "ForbiddenException":
|
|
762
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
763
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
764
|
-
case "InternalServerErrorException":
|
|
765
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
766
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
767
|
-
default:
|
|
768
|
-
const parsedBody = parsedOutput.body;
|
|
769
|
-
return throwDefaultError({
|
|
770
|
-
output,
|
|
771
|
-
parsedBody,
|
|
772
|
-
errorCode,
|
|
773
|
-
});
|
|
774
|
-
}
|
|
775
|
-
};
|
|
776
496
|
export const de_DescribeConfigurationCommand = async (output, context) => {
|
|
777
497
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
778
|
-
return
|
|
498
|
+
return de_CommandError(output, context);
|
|
779
499
|
}
|
|
780
500
|
const contents = map({
|
|
781
501
|
$metadata: deserializeMetadata(output),
|
|
@@ -796,37 +516,9 @@ export const de_DescribeConfigurationCommand = async (output, context) => {
|
|
|
796
516
|
Object.assign(contents, doc);
|
|
797
517
|
return contents;
|
|
798
518
|
};
|
|
799
|
-
const de_DescribeConfigurationCommandError = async (output, context) => {
|
|
800
|
-
const parsedOutput = {
|
|
801
|
-
...output,
|
|
802
|
-
body: await parseErrorBody(output.body, context),
|
|
803
|
-
};
|
|
804
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
805
|
-
switch (errorCode) {
|
|
806
|
-
case "BadRequestException":
|
|
807
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
808
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
809
|
-
case "ForbiddenException":
|
|
810
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
811
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
812
|
-
case "InternalServerErrorException":
|
|
813
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
814
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
815
|
-
case "NotFoundException":
|
|
816
|
-
case "com.amazonaws.mq#NotFoundException":
|
|
817
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
818
|
-
default:
|
|
819
|
-
const parsedBody = parsedOutput.body;
|
|
820
|
-
return throwDefaultError({
|
|
821
|
-
output,
|
|
822
|
-
parsedBody,
|
|
823
|
-
errorCode,
|
|
824
|
-
});
|
|
825
|
-
}
|
|
826
|
-
};
|
|
827
519
|
export const de_DescribeConfigurationRevisionCommand = async (output, context) => {
|
|
828
520
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
829
|
-
return
|
|
521
|
+
return de_CommandError(output, context);
|
|
830
522
|
}
|
|
831
523
|
const contents = map({
|
|
832
524
|
$metadata: deserializeMetadata(output),
|
|
@@ -841,84 +533,28 @@ export const de_DescribeConfigurationRevisionCommand = async (output, context) =
|
|
|
841
533
|
Object.assign(contents, doc);
|
|
842
534
|
return contents;
|
|
843
535
|
};
|
|
844
|
-
const de_DescribeConfigurationRevisionCommandError = async (output, context) => {
|
|
845
|
-
const parsedOutput = {
|
|
846
|
-
...output,
|
|
847
|
-
body: await parseErrorBody(output.body, context),
|
|
848
|
-
};
|
|
849
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
850
|
-
switch (errorCode) {
|
|
851
|
-
case "BadRequestException":
|
|
852
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
853
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
854
|
-
case "ForbiddenException":
|
|
855
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
856
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
857
|
-
case "InternalServerErrorException":
|
|
858
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
859
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
860
|
-
case "NotFoundException":
|
|
861
|
-
case "com.amazonaws.mq#NotFoundException":
|
|
862
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
863
|
-
default:
|
|
864
|
-
const parsedBody = parsedOutput.body;
|
|
865
|
-
return throwDefaultError({
|
|
866
|
-
output,
|
|
867
|
-
parsedBody,
|
|
868
|
-
errorCode,
|
|
869
|
-
});
|
|
870
|
-
}
|
|
871
|
-
};
|
|
872
536
|
export const de_DescribeUserCommand = async (output, context) => {
|
|
873
537
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
874
|
-
return
|
|
538
|
+
return de_CommandError(output, context);
|
|
875
539
|
}
|
|
876
540
|
const contents = map({
|
|
877
541
|
$metadata: deserializeMetadata(output),
|
|
878
542
|
});
|
|
879
543
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
880
|
-
const doc = take(data, {
|
|
881
|
-
BrokerId: [, __expectString, `brokerId`],
|
|
882
|
-
ConsoleAccess: [, __expectBoolean, `consoleAccess`],
|
|
883
|
-
Groups: [, _json, `groups`],
|
|
884
|
-
Pending: [, (_) => de_UserPendingChanges(_, context), `pending`],
|
|
885
|
-
ReplicationUser: [, __expectBoolean, `replicationUser`],
|
|
886
|
-
Username: [, __expectString, `username`],
|
|
887
|
-
});
|
|
888
|
-
Object.assign(contents, doc);
|
|
889
|
-
return contents;
|
|
890
|
-
};
|
|
891
|
-
const de_DescribeUserCommandError = async (output, context) => {
|
|
892
|
-
const parsedOutput = {
|
|
893
|
-
...output,
|
|
894
|
-
body: await parseErrorBody(output.body, context),
|
|
895
|
-
};
|
|
896
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
|
-
switch (errorCode) {
|
|
898
|
-
case "BadRequestException":
|
|
899
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
900
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
901
|
-
case "ForbiddenException":
|
|
902
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
903
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
904
|
-
case "InternalServerErrorException":
|
|
905
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
906
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
907
|
-
case "NotFoundException":
|
|
908
|
-
case "com.amazonaws.mq#NotFoundException":
|
|
909
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
910
|
-
default:
|
|
911
|
-
const parsedBody = parsedOutput.body;
|
|
912
|
-
return throwDefaultError({
|
|
913
|
-
output,
|
|
914
|
-
parsedBody,
|
|
915
|
-
errorCode,
|
|
916
|
-
});
|
|
917
|
-
}
|
|
544
|
+
const doc = take(data, {
|
|
545
|
+
BrokerId: [, __expectString, `brokerId`],
|
|
546
|
+
ConsoleAccess: [, __expectBoolean, `consoleAccess`],
|
|
547
|
+
Groups: [, _json, `groups`],
|
|
548
|
+
Pending: [, (_) => de_UserPendingChanges(_, context), `pending`],
|
|
549
|
+
ReplicationUser: [, __expectBoolean, `replicationUser`],
|
|
550
|
+
Username: [, __expectString, `username`],
|
|
551
|
+
});
|
|
552
|
+
Object.assign(contents, doc);
|
|
553
|
+
return contents;
|
|
918
554
|
};
|
|
919
555
|
export const de_ListBrokersCommand = async (output, context) => {
|
|
920
556
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
921
|
-
return
|
|
557
|
+
return de_CommandError(output, context);
|
|
922
558
|
}
|
|
923
559
|
const contents = map({
|
|
924
560
|
$metadata: deserializeMetadata(output),
|
|
@@ -931,34 +567,9 @@ export const de_ListBrokersCommand = async (output, context) => {
|
|
|
931
567
|
Object.assign(contents, doc);
|
|
932
568
|
return contents;
|
|
933
569
|
};
|
|
934
|
-
const de_ListBrokersCommandError = async (output, context) => {
|
|
935
|
-
const parsedOutput = {
|
|
936
|
-
...output,
|
|
937
|
-
body: await parseErrorBody(output.body, context),
|
|
938
|
-
};
|
|
939
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
940
|
-
switch (errorCode) {
|
|
941
|
-
case "BadRequestException":
|
|
942
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
943
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
944
|
-
case "ForbiddenException":
|
|
945
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
946
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
947
|
-
case "InternalServerErrorException":
|
|
948
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
949
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
950
|
-
default:
|
|
951
|
-
const parsedBody = parsedOutput.body;
|
|
952
|
-
return throwDefaultError({
|
|
953
|
-
output,
|
|
954
|
-
parsedBody,
|
|
955
|
-
errorCode,
|
|
956
|
-
});
|
|
957
|
-
}
|
|
958
|
-
};
|
|
959
570
|
export const de_ListConfigurationRevisionsCommand = async (output, context) => {
|
|
960
571
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
961
|
-
return
|
|
572
|
+
return de_CommandError(output, context);
|
|
962
573
|
}
|
|
963
574
|
const contents = map({
|
|
964
575
|
$metadata: deserializeMetadata(output),
|
|
@@ -973,37 +584,9 @@ export const de_ListConfigurationRevisionsCommand = async (output, context) => {
|
|
|
973
584
|
Object.assign(contents, doc);
|
|
974
585
|
return contents;
|
|
975
586
|
};
|
|
976
|
-
const de_ListConfigurationRevisionsCommandError = async (output, context) => {
|
|
977
|
-
const parsedOutput = {
|
|
978
|
-
...output,
|
|
979
|
-
body: await parseErrorBody(output.body, context),
|
|
980
|
-
};
|
|
981
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
982
|
-
switch (errorCode) {
|
|
983
|
-
case "BadRequestException":
|
|
984
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
985
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
986
|
-
case "ForbiddenException":
|
|
987
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
988
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
989
|
-
case "InternalServerErrorException":
|
|
990
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
991
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
992
|
-
case "NotFoundException":
|
|
993
|
-
case "com.amazonaws.mq#NotFoundException":
|
|
994
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
995
|
-
default:
|
|
996
|
-
const parsedBody = parsedOutput.body;
|
|
997
|
-
return throwDefaultError({
|
|
998
|
-
output,
|
|
999
|
-
parsedBody,
|
|
1000
|
-
errorCode,
|
|
1001
|
-
});
|
|
1002
|
-
}
|
|
1003
|
-
};
|
|
1004
587
|
export const de_ListConfigurationsCommand = async (output, context) => {
|
|
1005
588
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1006
|
-
return
|
|
589
|
+
return de_CommandError(output, context);
|
|
1007
590
|
}
|
|
1008
591
|
const contents = map({
|
|
1009
592
|
$metadata: deserializeMetadata(output),
|
|
@@ -1017,34 +600,9 @@ export const de_ListConfigurationsCommand = async (output, context) => {
|
|
|
1017
600
|
Object.assign(contents, doc);
|
|
1018
601
|
return contents;
|
|
1019
602
|
};
|
|
1020
|
-
const de_ListConfigurationsCommandError = async (output, context) => {
|
|
1021
|
-
const parsedOutput = {
|
|
1022
|
-
...output,
|
|
1023
|
-
body: await parseErrorBody(output.body, context),
|
|
1024
|
-
};
|
|
1025
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1026
|
-
switch (errorCode) {
|
|
1027
|
-
case "BadRequestException":
|
|
1028
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
1029
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1030
|
-
case "ForbiddenException":
|
|
1031
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
1032
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1033
|
-
case "InternalServerErrorException":
|
|
1034
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1035
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1036
|
-
default:
|
|
1037
|
-
const parsedBody = parsedOutput.body;
|
|
1038
|
-
return throwDefaultError({
|
|
1039
|
-
output,
|
|
1040
|
-
parsedBody,
|
|
1041
|
-
errorCode,
|
|
1042
|
-
});
|
|
1043
|
-
}
|
|
1044
|
-
};
|
|
1045
603
|
export const de_ListTagsCommand = async (output, context) => {
|
|
1046
604
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1047
|
-
return
|
|
605
|
+
return de_CommandError(output, context);
|
|
1048
606
|
}
|
|
1049
607
|
const contents = map({
|
|
1050
608
|
$metadata: deserializeMetadata(output),
|
|
@@ -1056,37 +614,9 @@ export const de_ListTagsCommand = async (output, context) => {
|
|
|
1056
614
|
Object.assign(contents, doc);
|
|
1057
615
|
return contents;
|
|
1058
616
|
};
|
|
1059
|
-
const de_ListTagsCommandError = async (output, context) => {
|
|
1060
|
-
const parsedOutput = {
|
|
1061
|
-
...output,
|
|
1062
|
-
body: await parseErrorBody(output.body, context),
|
|
1063
|
-
};
|
|
1064
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1065
|
-
switch (errorCode) {
|
|
1066
|
-
case "BadRequestException":
|
|
1067
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
1068
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1069
|
-
case "ForbiddenException":
|
|
1070
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
1071
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1072
|
-
case "InternalServerErrorException":
|
|
1073
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1074
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1075
|
-
case "NotFoundException":
|
|
1076
|
-
case "com.amazonaws.mq#NotFoundException":
|
|
1077
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1078
|
-
default:
|
|
1079
|
-
const parsedBody = parsedOutput.body;
|
|
1080
|
-
return throwDefaultError({
|
|
1081
|
-
output,
|
|
1082
|
-
parsedBody,
|
|
1083
|
-
errorCode,
|
|
1084
|
-
});
|
|
1085
|
-
}
|
|
1086
|
-
};
|
|
1087
617
|
export const de_ListUsersCommand = async (output, context) => {
|
|
1088
618
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1089
|
-
return
|
|
619
|
+
return de_CommandError(output, context);
|
|
1090
620
|
}
|
|
1091
621
|
const contents = map({
|
|
1092
622
|
$metadata: deserializeMetadata(output),
|
|
@@ -1101,37 +631,9 @@ export const de_ListUsersCommand = async (output, context) => {
|
|
|
1101
631
|
Object.assign(contents, doc);
|
|
1102
632
|
return contents;
|
|
1103
633
|
};
|
|
1104
|
-
const de_ListUsersCommandError = async (output, context) => {
|
|
1105
|
-
const parsedOutput = {
|
|
1106
|
-
...output,
|
|
1107
|
-
body: await parseErrorBody(output.body, context),
|
|
1108
|
-
};
|
|
1109
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1110
|
-
switch (errorCode) {
|
|
1111
|
-
case "BadRequestException":
|
|
1112
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
1113
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "ForbiddenException":
|
|
1115
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
1116
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "InternalServerErrorException":
|
|
1118
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1119
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "NotFoundException":
|
|
1121
|
-
case "com.amazonaws.mq#NotFoundException":
|
|
1122
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1123
|
-
default:
|
|
1124
|
-
const parsedBody = parsedOutput.body;
|
|
1125
|
-
return throwDefaultError({
|
|
1126
|
-
output,
|
|
1127
|
-
parsedBody,
|
|
1128
|
-
errorCode,
|
|
1129
|
-
});
|
|
1130
|
-
}
|
|
1131
|
-
};
|
|
1132
634
|
export const de_PromoteCommand = async (output, context) => {
|
|
1133
635
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1134
|
-
return
|
|
636
|
+
return de_CommandError(output, context);
|
|
1135
637
|
}
|
|
1136
638
|
const contents = map({
|
|
1137
639
|
$metadata: deserializeMetadata(output),
|
|
@@ -1143,37 +645,9 @@ export const de_PromoteCommand = async (output, context) => {
|
|
|
1143
645
|
Object.assign(contents, doc);
|
|
1144
646
|
return contents;
|
|
1145
647
|
};
|
|
1146
|
-
const de_PromoteCommandError = async (output, context) => {
|
|
1147
|
-
const parsedOutput = {
|
|
1148
|
-
...output,
|
|
1149
|
-
body: await parseErrorBody(output.body, context),
|
|
1150
|
-
};
|
|
1151
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1152
|
-
switch (errorCode) {
|
|
1153
|
-
case "BadRequestException":
|
|
1154
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
1155
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1156
|
-
case "ForbiddenException":
|
|
1157
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
1158
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1159
|
-
case "InternalServerErrorException":
|
|
1160
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1161
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1162
|
-
case "NotFoundException":
|
|
1163
|
-
case "com.amazonaws.mq#NotFoundException":
|
|
1164
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1165
|
-
default:
|
|
1166
|
-
const parsedBody = parsedOutput.body;
|
|
1167
|
-
return throwDefaultError({
|
|
1168
|
-
output,
|
|
1169
|
-
parsedBody,
|
|
1170
|
-
errorCode,
|
|
1171
|
-
});
|
|
1172
|
-
}
|
|
1173
|
-
};
|
|
1174
648
|
export const de_RebootBrokerCommand = async (output, context) => {
|
|
1175
649
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1176
|
-
return
|
|
650
|
+
return de_CommandError(output, context);
|
|
1177
651
|
}
|
|
1178
652
|
const contents = map({
|
|
1179
653
|
$metadata: deserializeMetadata(output),
|
|
@@ -1181,37 +655,9 @@ export const de_RebootBrokerCommand = async (output, context) => {
|
|
|
1181
655
|
await collectBody(output.body, context);
|
|
1182
656
|
return contents;
|
|
1183
657
|
};
|
|
1184
|
-
const de_RebootBrokerCommandError = async (output, context) => {
|
|
1185
|
-
const parsedOutput = {
|
|
1186
|
-
...output,
|
|
1187
|
-
body: await parseErrorBody(output.body, context),
|
|
1188
|
-
};
|
|
1189
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1190
|
-
switch (errorCode) {
|
|
1191
|
-
case "BadRequestException":
|
|
1192
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
1193
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1194
|
-
case "ForbiddenException":
|
|
1195
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
1196
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1197
|
-
case "InternalServerErrorException":
|
|
1198
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1199
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1200
|
-
case "NotFoundException":
|
|
1201
|
-
case "com.amazonaws.mq#NotFoundException":
|
|
1202
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1203
|
-
default:
|
|
1204
|
-
const parsedBody = parsedOutput.body;
|
|
1205
|
-
return throwDefaultError({
|
|
1206
|
-
output,
|
|
1207
|
-
parsedBody,
|
|
1208
|
-
errorCode,
|
|
1209
|
-
});
|
|
1210
|
-
}
|
|
1211
|
-
};
|
|
1212
658
|
export const de_UpdateBrokerCommand = async (output, context) => {
|
|
1213
659
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1214
|
-
return
|
|
660
|
+
return de_CommandError(output, context);
|
|
1215
661
|
}
|
|
1216
662
|
const contents = map({
|
|
1217
663
|
$metadata: deserializeMetadata(output),
|
|
@@ -1240,40 +686,9 @@ export const de_UpdateBrokerCommand = async (output, context) => {
|
|
|
1240
686
|
Object.assign(contents, doc);
|
|
1241
687
|
return contents;
|
|
1242
688
|
};
|
|
1243
|
-
const de_UpdateBrokerCommandError = async (output, context) => {
|
|
1244
|
-
const parsedOutput = {
|
|
1245
|
-
...output,
|
|
1246
|
-
body: await parseErrorBody(output.body, context),
|
|
1247
|
-
};
|
|
1248
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1249
|
-
switch (errorCode) {
|
|
1250
|
-
case "BadRequestException":
|
|
1251
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
1252
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1253
|
-
case "ConflictException":
|
|
1254
|
-
case "com.amazonaws.mq#ConflictException":
|
|
1255
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1256
|
-
case "ForbiddenException":
|
|
1257
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
1258
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1259
|
-
case "InternalServerErrorException":
|
|
1260
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1261
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1262
|
-
case "NotFoundException":
|
|
1263
|
-
case "com.amazonaws.mq#NotFoundException":
|
|
1264
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1265
|
-
default:
|
|
1266
|
-
const parsedBody = parsedOutput.body;
|
|
1267
|
-
return throwDefaultError({
|
|
1268
|
-
output,
|
|
1269
|
-
parsedBody,
|
|
1270
|
-
errorCode,
|
|
1271
|
-
});
|
|
1272
|
-
}
|
|
1273
|
-
};
|
|
1274
689
|
export const de_UpdateConfigurationCommand = async (output, context) => {
|
|
1275
690
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1276
|
-
return
|
|
691
|
+
return de_CommandError(output, context);
|
|
1277
692
|
}
|
|
1278
693
|
const contents = map({
|
|
1279
694
|
$metadata: deserializeMetadata(output),
|
|
@@ -1290,40 +705,9 @@ export const de_UpdateConfigurationCommand = async (output, context) => {
|
|
|
1290
705
|
Object.assign(contents, doc);
|
|
1291
706
|
return contents;
|
|
1292
707
|
};
|
|
1293
|
-
const de_UpdateConfigurationCommandError = async (output, context) => {
|
|
1294
|
-
const parsedOutput = {
|
|
1295
|
-
...output,
|
|
1296
|
-
body: await parseErrorBody(output.body, context),
|
|
1297
|
-
};
|
|
1298
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1299
|
-
switch (errorCode) {
|
|
1300
|
-
case "BadRequestException":
|
|
1301
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
1302
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1303
|
-
case "ConflictException":
|
|
1304
|
-
case "com.amazonaws.mq#ConflictException":
|
|
1305
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1306
|
-
case "ForbiddenException":
|
|
1307
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
1308
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1309
|
-
case "InternalServerErrorException":
|
|
1310
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1311
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1312
|
-
case "NotFoundException":
|
|
1313
|
-
case "com.amazonaws.mq#NotFoundException":
|
|
1314
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1315
|
-
default:
|
|
1316
|
-
const parsedBody = parsedOutput.body;
|
|
1317
|
-
return throwDefaultError({
|
|
1318
|
-
output,
|
|
1319
|
-
parsedBody,
|
|
1320
|
-
errorCode,
|
|
1321
|
-
});
|
|
1322
|
-
}
|
|
1323
|
-
};
|
|
1324
708
|
export const de_UpdateUserCommand = async (output, context) => {
|
|
1325
709
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1326
|
-
return
|
|
710
|
+
return de_CommandError(output, context);
|
|
1327
711
|
}
|
|
1328
712
|
const contents = map({
|
|
1329
713
|
$metadata: deserializeMetadata(output),
|
|
@@ -1331,7 +715,7 @@ export const de_UpdateUserCommand = async (output, context) => {
|
|
|
1331
715
|
await collectBody(output.body, context);
|
|
1332
716
|
return contents;
|
|
1333
717
|
};
|
|
1334
|
-
const
|
|
718
|
+
const de_CommandError = async (output, context) => {
|
|
1335
719
|
const parsedOutput = {
|
|
1336
720
|
...output,
|
|
1337
721
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1350,6 +734,9 @@ const de_UpdateUserCommandError = async (output, context) => {
|
|
|
1350
734
|
case "InternalServerErrorException":
|
|
1351
735
|
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1352
736
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
737
|
+
case "UnauthorizedException":
|
|
738
|
+
case "com.amazonaws.mq#UnauthorizedException":
|
|
739
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1353
740
|
case "NotFoundException":
|
|
1354
741
|
case "com.amazonaws.mq#NotFoundException":
|
|
1355
742
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|