@aws-sdk/client-managedblockchain 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 +80 -907
- package/dist-es/protocols/Aws_restJson1.js +117 -944
- package/package.json +3 -3
|
@@ -368,7 +368,7 @@ export const se_VoteOnProposalCommand = async (input, context) => {
|
|
|
368
368
|
};
|
|
369
369
|
export const de_CreateAccessorCommand = async (output, context) => {
|
|
370
370
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
371
|
-
return
|
|
371
|
+
return de_CommandError(output, context);
|
|
372
372
|
}
|
|
373
373
|
const contents = map({
|
|
374
374
|
$metadata: deserializeMetadata(output),
|
|
@@ -382,46 +382,9 @@ export const de_CreateAccessorCommand = async (output, context) => {
|
|
|
382
382
|
Object.assign(contents, doc);
|
|
383
383
|
return contents;
|
|
384
384
|
};
|
|
385
|
-
const de_CreateAccessorCommandError = async (output, context) => {
|
|
386
|
-
const parsedOutput = {
|
|
387
|
-
...output,
|
|
388
|
-
body: await parseErrorBody(output.body, context),
|
|
389
|
-
};
|
|
390
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
391
|
-
switch (errorCode) {
|
|
392
|
-
case "AccessDeniedException":
|
|
393
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
394
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
395
|
-
case "InternalServiceErrorException":
|
|
396
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
397
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
398
|
-
case "InvalidRequestException":
|
|
399
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
400
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
401
|
-
case "ResourceAlreadyExistsException":
|
|
402
|
-
case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException":
|
|
403
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
404
|
-
case "ResourceLimitExceededException":
|
|
405
|
-
case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
|
|
406
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
407
|
-
case "ThrottlingException":
|
|
408
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
409
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
410
|
-
case "TooManyTagsException":
|
|
411
|
-
case "com.amazonaws.managedblockchain#TooManyTagsException":
|
|
412
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
413
|
-
default:
|
|
414
|
-
const parsedBody = parsedOutput.body;
|
|
415
|
-
return throwDefaultError({
|
|
416
|
-
output,
|
|
417
|
-
parsedBody,
|
|
418
|
-
errorCode,
|
|
419
|
-
});
|
|
420
|
-
}
|
|
421
|
-
};
|
|
422
385
|
export const de_CreateMemberCommand = async (output, context) => {
|
|
423
386
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
424
|
-
return
|
|
387
|
+
return de_CommandError(output, context);
|
|
425
388
|
}
|
|
426
389
|
const contents = map({
|
|
427
390
|
$metadata: deserializeMetadata(output),
|
|
@@ -433,52 +396,9 @@ export const de_CreateMemberCommand = async (output, context) => {
|
|
|
433
396
|
Object.assign(contents, doc);
|
|
434
397
|
return contents;
|
|
435
398
|
};
|
|
436
|
-
const de_CreateMemberCommandError = async (output, context) => {
|
|
437
|
-
const parsedOutput = {
|
|
438
|
-
...output,
|
|
439
|
-
body: await parseErrorBody(output.body, context),
|
|
440
|
-
};
|
|
441
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
442
|
-
switch (errorCode) {
|
|
443
|
-
case "AccessDeniedException":
|
|
444
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
445
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
446
|
-
case "InternalServiceErrorException":
|
|
447
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
448
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
449
|
-
case "InvalidRequestException":
|
|
450
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
451
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
452
|
-
case "ResourceAlreadyExistsException":
|
|
453
|
-
case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException":
|
|
454
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
455
|
-
case "ResourceLimitExceededException":
|
|
456
|
-
case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
|
|
457
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
458
|
-
case "ResourceNotFoundException":
|
|
459
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
460
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
461
|
-
case "ResourceNotReadyException":
|
|
462
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
463
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
464
|
-
case "ThrottlingException":
|
|
465
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
466
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
467
|
-
case "TooManyTagsException":
|
|
468
|
-
case "com.amazonaws.managedblockchain#TooManyTagsException":
|
|
469
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
470
|
-
default:
|
|
471
|
-
const parsedBody = parsedOutput.body;
|
|
472
|
-
return throwDefaultError({
|
|
473
|
-
output,
|
|
474
|
-
parsedBody,
|
|
475
|
-
errorCode,
|
|
476
|
-
});
|
|
477
|
-
}
|
|
478
|
-
};
|
|
479
399
|
export const de_CreateNetworkCommand = async (output, context) => {
|
|
480
400
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
481
|
-
return
|
|
401
|
+
return de_CommandError(output, context);
|
|
482
402
|
}
|
|
483
403
|
const contents = map({
|
|
484
404
|
$metadata: deserializeMetadata(output),
|
|
@@ -491,46 +411,9 @@ export const de_CreateNetworkCommand = async (output, context) => {
|
|
|
491
411
|
Object.assign(contents, doc);
|
|
492
412
|
return contents;
|
|
493
413
|
};
|
|
494
|
-
const de_CreateNetworkCommandError = async (output, context) => {
|
|
495
|
-
const parsedOutput = {
|
|
496
|
-
...output,
|
|
497
|
-
body: await parseErrorBody(output.body, context),
|
|
498
|
-
};
|
|
499
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
500
|
-
switch (errorCode) {
|
|
501
|
-
case "AccessDeniedException":
|
|
502
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
503
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
504
|
-
case "InternalServiceErrorException":
|
|
505
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
506
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
507
|
-
case "InvalidRequestException":
|
|
508
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
509
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
510
|
-
case "ResourceAlreadyExistsException":
|
|
511
|
-
case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException":
|
|
512
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
513
|
-
case "ResourceLimitExceededException":
|
|
514
|
-
case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
|
|
515
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
516
|
-
case "ThrottlingException":
|
|
517
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
518
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
519
|
-
case "TooManyTagsException":
|
|
520
|
-
case "com.amazonaws.managedblockchain#TooManyTagsException":
|
|
521
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
522
|
-
default:
|
|
523
|
-
const parsedBody = parsedOutput.body;
|
|
524
|
-
return throwDefaultError({
|
|
525
|
-
output,
|
|
526
|
-
parsedBody,
|
|
527
|
-
errorCode,
|
|
528
|
-
});
|
|
529
|
-
}
|
|
530
|
-
};
|
|
531
414
|
export const de_CreateNodeCommand = async (output, context) => {
|
|
532
415
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
533
|
-
return
|
|
416
|
+
return de_CommandError(output, context);
|
|
534
417
|
}
|
|
535
418
|
const contents = map({
|
|
536
419
|
$metadata: deserializeMetadata(output),
|
|
@@ -542,52 +425,9 @@ export const de_CreateNodeCommand = async (output, context) => {
|
|
|
542
425
|
Object.assign(contents, doc);
|
|
543
426
|
return contents;
|
|
544
427
|
};
|
|
545
|
-
const de_CreateNodeCommandError = async (output, context) => {
|
|
546
|
-
const parsedOutput = {
|
|
547
|
-
...output,
|
|
548
|
-
body: await parseErrorBody(output.body, context),
|
|
549
|
-
};
|
|
550
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
551
|
-
switch (errorCode) {
|
|
552
|
-
case "AccessDeniedException":
|
|
553
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
554
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
555
|
-
case "InternalServiceErrorException":
|
|
556
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
557
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
558
|
-
case "InvalidRequestException":
|
|
559
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
560
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
561
|
-
case "ResourceAlreadyExistsException":
|
|
562
|
-
case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException":
|
|
563
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
564
|
-
case "ResourceLimitExceededException":
|
|
565
|
-
case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
|
|
566
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
567
|
-
case "ResourceNotFoundException":
|
|
568
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
569
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
570
|
-
case "ResourceNotReadyException":
|
|
571
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
572
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
573
|
-
case "ThrottlingException":
|
|
574
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
575
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
576
|
-
case "TooManyTagsException":
|
|
577
|
-
case "com.amazonaws.managedblockchain#TooManyTagsException":
|
|
578
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
579
|
-
default:
|
|
580
|
-
const parsedBody = parsedOutput.body;
|
|
581
|
-
return throwDefaultError({
|
|
582
|
-
output,
|
|
583
|
-
parsedBody,
|
|
584
|
-
errorCode,
|
|
585
|
-
});
|
|
586
|
-
}
|
|
587
|
-
};
|
|
588
428
|
export const de_CreateProposalCommand = async (output, context) => {
|
|
589
429
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
590
|
-
return
|
|
430
|
+
return de_CommandError(output, context);
|
|
591
431
|
}
|
|
592
432
|
const contents = map({
|
|
593
433
|
$metadata: deserializeMetadata(output),
|
|
@@ -599,46 +439,9 @@ export const de_CreateProposalCommand = async (output, context) => {
|
|
|
599
439
|
Object.assign(contents, doc);
|
|
600
440
|
return contents;
|
|
601
441
|
};
|
|
602
|
-
const de_CreateProposalCommandError = async (output, context) => {
|
|
603
|
-
const parsedOutput = {
|
|
604
|
-
...output,
|
|
605
|
-
body: await parseErrorBody(output.body, context),
|
|
606
|
-
};
|
|
607
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
608
|
-
switch (errorCode) {
|
|
609
|
-
case "AccessDeniedException":
|
|
610
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
611
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
612
|
-
case "InternalServiceErrorException":
|
|
613
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
614
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
615
|
-
case "InvalidRequestException":
|
|
616
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
617
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
618
|
-
case "ResourceNotFoundException":
|
|
619
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
620
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
621
|
-
case "ResourceNotReadyException":
|
|
622
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
623
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
624
|
-
case "ThrottlingException":
|
|
625
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
626
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
627
|
-
case "TooManyTagsException":
|
|
628
|
-
case "com.amazonaws.managedblockchain#TooManyTagsException":
|
|
629
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
630
|
-
default:
|
|
631
|
-
const parsedBody = parsedOutput.body;
|
|
632
|
-
return throwDefaultError({
|
|
633
|
-
output,
|
|
634
|
-
parsedBody,
|
|
635
|
-
errorCode,
|
|
636
|
-
});
|
|
637
|
-
}
|
|
638
|
-
};
|
|
639
442
|
export const de_DeleteAccessorCommand = async (output, context) => {
|
|
640
443
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
641
|
-
return
|
|
444
|
+
return de_CommandError(output, context);
|
|
642
445
|
}
|
|
643
446
|
const contents = map({
|
|
644
447
|
$metadata: deserializeMetadata(output),
|
|
@@ -646,40 +449,9 @@ export const de_DeleteAccessorCommand = async (output, context) => {
|
|
|
646
449
|
await collectBody(output.body, context);
|
|
647
450
|
return contents;
|
|
648
451
|
};
|
|
649
|
-
const de_DeleteAccessorCommandError = async (output, context) => {
|
|
650
|
-
const parsedOutput = {
|
|
651
|
-
...output,
|
|
652
|
-
body: await parseErrorBody(output.body, context),
|
|
653
|
-
};
|
|
654
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
655
|
-
switch (errorCode) {
|
|
656
|
-
case "AccessDeniedException":
|
|
657
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
658
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
659
|
-
case "InternalServiceErrorException":
|
|
660
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
661
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
662
|
-
case "InvalidRequestException":
|
|
663
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
664
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
665
|
-
case "ResourceNotFoundException":
|
|
666
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
667
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
668
|
-
case "ThrottlingException":
|
|
669
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
670
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
671
|
-
default:
|
|
672
|
-
const parsedBody = parsedOutput.body;
|
|
673
|
-
return throwDefaultError({
|
|
674
|
-
output,
|
|
675
|
-
parsedBody,
|
|
676
|
-
errorCode,
|
|
677
|
-
});
|
|
678
|
-
}
|
|
679
|
-
};
|
|
680
452
|
export const de_DeleteMemberCommand = async (output, context) => {
|
|
681
453
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
682
|
-
return
|
|
454
|
+
return de_CommandError(output, context);
|
|
683
455
|
}
|
|
684
456
|
const contents = map({
|
|
685
457
|
$metadata: deserializeMetadata(output),
|
|
@@ -687,579 +459,164 @@ export const de_DeleteMemberCommand = async (output, context) => {
|
|
|
687
459
|
await collectBody(output.body, context);
|
|
688
460
|
return contents;
|
|
689
461
|
};
|
|
690
|
-
const
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
body: await parseErrorBody(output.body, context),
|
|
694
|
-
};
|
|
695
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
696
|
-
switch (errorCode) {
|
|
697
|
-
case "AccessDeniedException":
|
|
698
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
699
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
700
|
-
case "InternalServiceErrorException":
|
|
701
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
702
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
703
|
-
case "InvalidRequestException":
|
|
704
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
705
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
706
|
-
case "ResourceNotFoundException":
|
|
707
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
708
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
709
|
-
case "ResourceNotReadyException":
|
|
710
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
711
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
712
|
-
case "ThrottlingException":
|
|
713
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
714
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
715
|
-
default:
|
|
716
|
-
const parsedBody = parsedOutput.body;
|
|
717
|
-
return throwDefaultError({
|
|
718
|
-
output,
|
|
719
|
-
parsedBody,
|
|
720
|
-
errorCode,
|
|
721
|
-
});
|
|
722
|
-
}
|
|
723
|
-
};
|
|
724
|
-
export const de_DeleteNodeCommand = async (output, context) => {
|
|
725
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
726
|
-
return de_DeleteNodeCommandError(output, context);
|
|
727
|
-
}
|
|
728
|
-
const contents = map({
|
|
729
|
-
$metadata: deserializeMetadata(output),
|
|
730
|
-
});
|
|
731
|
-
await collectBody(output.body, context);
|
|
732
|
-
return contents;
|
|
733
|
-
};
|
|
734
|
-
const de_DeleteNodeCommandError = async (output, context) => {
|
|
735
|
-
const parsedOutput = {
|
|
736
|
-
...output,
|
|
737
|
-
body: await parseErrorBody(output.body, context),
|
|
738
|
-
};
|
|
739
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
740
|
-
switch (errorCode) {
|
|
741
|
-
case "AccessDeniedException":
|
|
742
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
743
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
744
|
-
case "InternalServiceErrorException":
|
|
745
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
746
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
747
|
-
case "InvalidRequestException":
|
|
748
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
749
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
750
|
-
case "ResourceNotFoundException":
|
|
751
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
752
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
753
|
-
case "ResourceNotReadyException":
|
|
754
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
755
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
756
|
-
case "ThrottlingException":
|
|
757
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
758
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
759
|
-
default:
|
|
760
|
-
const parsedBody = parsedOutput.body;
|
|
761
|
-
return throwDefaultError({
|
|
762
|
-
output,
|
|
763
|
-
parsedBody,
|
|
764
|
-
errorCode,
|
|
765
|
-
});
|
|
766
|
-
}
|
|
767
|
-
};
|
|
768
|
-
export const de_GetAccessorCommand = async (output, context) => {
|
|
769
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
770
|
-
return de_GetAccessorCommandError(output, context);
|
|
771
|
-
}
|
|
772
|
-
const contents = map({
|
|
773
|
-
$metadata: deserializeMetadata(output),
|
|
774
|
-
});
|
|
775
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
776
|
-
const doc = take(data, {
|
|
777
|
-
Accessor: (_) => de_Accessor(_, context),
|
|
778
|
-
});
|
|
779
|
-
Object.assign(contents, doc);
|
|
780
|
-
return contents;
|
|
781
|
-
};
|
|
782
|
-
const de_GetAccessorCommandError = async (output, context) => {
|
|
783
|
-
const parsedOutput = {
|
|
784
|
-
...output,
|
|
785
|
-
body: await parseErrorBody(output.body, context),
|
|
786
|
-
};
|
|
787
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
788
|
-
switch (errorCode) {
|
|
789
|
-
case "AccessDeniedException":
|
|
790
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
791
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
792
|
-
case "InternalServiceErrorException":
|
|
793
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
794
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
795
|
-
case "InvalidRequestException":
|
|
796
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
797
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
798
|
-
case "ResourceNotFoundException":
|
|
799
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
800
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
801
|
-
case "ThrottlingException":
|
|
802
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
803
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
804
|
-
default:
|
|
805
|
-
const parsedBody = parsedOutput.body;
|
|
806
|
-
return throwDefaultError({
|
|
807
|
-
output,
|
|
808
|
-
parsedBody,
|
|
809
|
-
errorCode,
|
|
810
|
-
});
|
|
811
|
-
}
|
|
812
|
-
};
|
|
813
|
-
export const de_GetMemberCommand = async (output, context) => {
|
|
814
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
815
|
-
return de_GetMemberCommandError(output, context);
|
|
816
|
-
}
|
|
817
|
-
const contents = map({
|
|
818
|
-
$metadata: deserializeMetadata(output),
|
|
819
|
-
});
|
|
820
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
821
|
-
const doc = take(data, {
|
|
822
|
-
Member: (_) => de_Member(_, context),
|
|
823
|
-
});
|
|
824
|
-
Object.assign(contents, doc);
|
|
825
|
-
return contents;
|
|
826
|
-
};
|
|
827
|
-
const de_GetMemberCommandError = async (output, context) => {
|
|
828
|
-
const parsedOutput = {
|
|
829
|
-
...output,
|
|
830
|
-
body: await parseErrorBody(output.body, context),
|
|
831
|
-
};
|
|
832
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
833
|
-
switch (errorCode) {
|
|
834
|
-
case "AccessDeniedException":
|
|
835
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
836
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
837
|
-
case "InternalServiceErrorException":
|
|
838
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
839
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
840
|
-
case "InvalidRequestException":
|
|
841
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
842
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
843
|
-
case "ResourceNotFoundException":
|
|
844
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
845
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
846
|
-
case "ThrottlingException":
|
|
847
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
848
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
849
|
-
default:
|
|
850
|
-
const parsedBody = parsedOutput.body;
|
|
851
|
-
return throwDefaultError({
|
|
852
|
-
output,
|
|
853
|
-
parsedBody,
|
|
854
|
-
errorCode,
|
|
855
|
-
});
|
|
856
|
-
}
|
|
857
|
-
};
|
|
858
|
-
export const de_GetNetworkCommand = async (output, context) => {
|
|
859
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
860
|
-
return de_GetNetworkCommandError(output, context);
|
|
861
|
-
}
|
|
862
|
-
const contents = map({
|
|
863
|
-
$metadata: deserializeMetadata(output),
|
|
864
|
-
});
|
|
865
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
866
|
-
const doc = take(data, {
|
|
867
|
-
Network: (_) => de_Network(_, context),
|
|
868
|
-
});
|
|
869
|
-
Object.assign(contents, doc);
|
|
870
|
-
return contents;
|
|
871
|
-
};
|
|
872
|
-
const de_GetNetworkCommandError = async (output, context) => {
|
|
873
|
-
const parsedOutput = {
|
|
874
|
-
...output,
|
|
875
|
-
body: await parseErrorBody(output.body, context),
|
|
876
|
-
};
|
|
877
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
878
|
-
switch (errorCode) {
|
|
879
|
-
case "AccessDeniedException":
|
|
880
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
881
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
882
|
-
case "InternalServiceErrorException":
|
|
883
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
884
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
885
|
-
case "InvalidRequestException":
|
|
886
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
887
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
888
|
-
case "ResourceNotFoundException":
|
|
889
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
890
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
891
|
-
case "ThrottlingException":
|
|
892
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
893
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
894
|
-
default:
|
|
895
|
-
const parsedBody = parsedOutput.body;
|
|
896
|
-
return throwDefaultError({
|
|
897
|
-
output,
|
|
898
|
-
parsedBody,
|
|
899
|
-
errorCode,
|
|
900
|
-
});
|
|
901
|
-
}
|
|
902
|
-
};
|
|
903
|
-
export const de_GetNodeCommand = async (output, context) => {
|
|
904
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
905
|
-
return de_GetNodeCommandError(output, context);
|
|
906
|
-
}
|
|
907
|
-
const contents = map({
|
|
908
|
-
$metadata: deserializeMetadata(output),
|
|
909
|
-
});
|
|
910
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
911
|
-
const doc = take(data, {
|
|
912
|
-
Node: (_) => de_Node(_, context),
|
|
913
|
-
});
|
|
914
|
-
Object.assign(contents, doc);
|
|
915
|
-
return contents;
|
|
916
|
-
};
|
|
917
|
-
const de_GetNodeCommandError = async (output, context) => {
|
|
918
|
-
const parsedOutput = {
|
|
919
|
-
...output,
|
|
920
|
-
body: await parseErrorBody(output.body, context),
|
|
921
|
-
};
|
|
922
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
923
|
-
switch (errorCode) {
|
|
924
|
-
case "AccessDeniedException":
|
|
925
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
926
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
927
|
-
case "InternalServiceErrorException":
|
|
928
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
929
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
930
|
-
case "InvalidRequestException":
|
|
931
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
932
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
933
|
-
case "ResourceNotFoundException":
|
|
934
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
935
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
936
|
-
case "ThrottlingException":
|
|
937
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
938
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
939
|
-
default:
|
|
940
|
-
const parsedBody = parsedOutput.body;
|
|
941
|
-
return throwDefaultError({
|
|
942
|
-
output,
|
|
943
|
-
parsedBody,
|
|
944
|
-
errorCode,
|
|
945
|
-
});
|
|
462
|
+
export const de_DeleteNodeCommand = async (output, context) => {
|
|
463
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
464
|
+
return de_CommandError(output, context);
|
|
946
465
|
}
|
|
466
|
+
const contents = map({
|
|
467
|
+
$metadata: deserializeMetadata(output),
|
|
468
|
+
});
|
|
469
|
+
await collectBody(output.body, context);
|
|
470
|
+
return contents;
|
|
947
471
|
};
|
|
948
|
-
export const
|
|
472
|
+
export const de_GetAccessorCommand = async (output, context) => {
|
|
949
473
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
950
|
-
return
|
|
474
|
+
return de_CommandError(output, context);
|
|
951
475
|
}
|
|
952
476
|
const contents = map({
|
|
953
477
|
$metadata: deserializeMetadata(output),
|
|
954
478
|
});
|
|
955
479
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
956
480
|
const doc = take(data, {
|
|
957
|
-
|
|
481
|
+
Accessor: (_) => de_Accessor(_, context),
|
|
958
482
|
});
|
|
959
483
|
Object.assign(contents, doc);
|
|
960
484
|
return contents;
|
|
961
485
|
};
|
|
962
|
-
const
|
|
963
|
-
const parsedOutput = {
|
|
964
|
-
...output,
|
|
965
|
-
body: await parseErrorBody(output.body, context),
|
|
966
|
-
};
|
|
967
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
968
|
-
switch (errorCode) {
|
|
969
|
-
case "AccessDeniedException":
|
|
970
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
971
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
972
|
-
case "InternalServiceErrorException":
|
|
973
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
974
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
975
|
-
case "InvalidRequestException":
|
|
976
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
977
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
978
|
-
case "ResourceNotFoundException":
|
|
979
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
980
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
981
|
-
case "ThrottlingException":
|
|
982
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
983
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
984
|
-
default:
|
|
985
|
-
const parsedBody = parsedOutput.body;
|
|
986
|
-
return throwDefaultError({
|
|
987
|
-
output,
|
|
988
|
-
parsedBody,
|
|
989
|
-
errorCode,
|
|
990
|
-
});
|
|
991
|
-
}
|
|
992
|
-
};
|
|
993
|
-
export const de_ListAccessorsCommand = async (output, context) => {
|
|
486
|
+
export const de_GetMemberCommand = async (output, context) => {
|
|
994
487
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
995
|
-
return
|
|
488
|
+
return de_CommandError(output, context);
|
|
996
489
|
}
|
|
997
490
|
const contents = map({
|
|
998
491
|
$metadata: deserializeMetadata(output),
|
|
999
492
|
});
|
|
1000
493
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1001
494
|
const doc = take(data, {
|
|
1002
|
-
|
|
1003
|
-
NextToken: __expectString,
|
|
495
|
+
Member: (_) => de_Member(_, context),
|
|
1004
496
|
});
|
|
1005
497
|
Object.assign(contents, doc);
|
|
1006
498
|
return contents;
|
|
1007
499
|
};
|
|
1008
|
-
const
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
body: await parseErrorBody(output.body, context),
|
|
1012
|
-
};
|
|
1013
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1014
|
-
switch (errorCode) {
|
|
1015
|
-
case "AccessDeniedException":
|
|
1016
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1017
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "InternalServiceErrorException":
|
|
1019
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1020
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1021
|
-
case "InvalidRequestException":
|
|
1022
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1023
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1024
|
-
case "ThrottlingException":
|
|
1025
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1026
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1027
|
-
default:
|
|
1028
|
-
const parsedBody = parsedOutput.body;
|
|
1029
|
-
return throwDefaultError({
|
|
1030
|
-
output,
|
|
1031
|
-
parsedBody,
|
|
1032
|
-
errorCode,
|
|
1033
|
-
});
|
|
500
|
+
export const de_GetNetworkCommand = async (output, context) => {
|
|
501
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
502
|
+
return de_CommandError(output, context);
|
|
1034
503
|
}
|
|
504
|
+
const contents = map({
|
|
505
|
+
$metadata: deserializeMetadata(output),
|
|
506
|
+
});
|
|
507
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
508
|
+
const doc = take(data, {
|
|
509
|
+
Network: (_) => de_Network(_, context),
|
|
510
|
+
});
|
|
511
|
+
Object.assign(contents, doc);
|
|
512
|
+
return contents;
|
|
1035
513
|
};
|
|
1036
|
-
export const
|
|
514
|
+
export const de_GetNodeCommand = async (output, context) => {
|
|
1037
515
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1038
|
-
return
|
|
516
|
+
return de_CommandError(output, context);
|
|
1039
517
|
}
|
|
1040
518
|
const contents = map({
|
|
1041
519
|
$metadata: deserializeMetadata(output),
|
|
1042
520
|
});
|
|
1043
521
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1044
522
|
const doc = take(data, {
|
|
1045
|
-
|
|
1046
|
-
NextToken: __expectString,
|
|
523
|
+
Node: (_) => de_Node(_, context),
|
|
1047
524
|
});
|
|
1048
525
|
Object.assign(contents, doc);
|
|
1049
526
|
return contents;
|
|
1050
527
|
};
|
|
1051
|
-
const
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
body: await parseErrorBody(output.body, context),
|
|
1055
|
-
};
|
|
1056
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1057
|
-
switch (errorCode) {
|
|
1058
|
-
case "AccessDeniedException":
|
|
1059
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1060
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1061
|
-
case "InternalServiceErrorException":
|
|
1062
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1063
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "InvalidRequestException":
|
|
1065
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1066
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "ResourceLimitExceededException":
|
|
1068
|
-
case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
|
|
1069
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "ResourceNotFoundException":
|
|
1071
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1072
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "ThrottlingException":
|
|
1074
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1075
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1076
|
-
default:
|
|
1077
|
-
const parsedBody = parsedOutput.body;
|
|
1078
|
-
return throwDefaultError({
|
|
1079
|
-
output,
|
|
1080
|
-
parsedBody,
|
|
1081
|
-
errorCode,
|
|
1082
|
-
});
|
|
528
|
+
export const de_GetProposalCommand = async (output, context) => {
|
|
529
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
530
|
+
return de_CommandError(output, context);
|
|
1083
531
|
}
|
|
532
|
+
const contents = map({
|
|
533
|
+
$metadata: deserializeMetadata(output),
|
|
534
|
+
});
|
|
535
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
536
|
+
const doc = take(data, {
|
|
537
|
+
Proposal: (_) => de_Proposal(_, context),
|
|
538
|
+
});
|
|
539
|
+
Object.assign(contents, doc);
|
|
540
|
+
return contents;
|
|
1084
541
|
};
|
|
1085
|
-
export const
|
|
542
|
+
export const de_ListAccessorsCommand = async (output, context) => {
|
|
1086
543
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1087
|
-
return
|
|
544
|
+
return de_CommandError(output, context);
|
|
1088
545
|
}
|
|
1089
546
|
const contents = map({
|
|
1090
547
|
$metadata: deserializeMetadata(output),
|
|
1091
548
|
});
|
|
1092
549
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1093
550
|
const doc = take(data, {
|
|
1094
|
-
|
|
551
|
+
Accessors: (_) => de_AccessorSummaryList(_, context),
|
|
1095
552
|
NextToken: __expectString,
|
|
1096
553
|
});
|
|
1097
554
|
Object.assign(contents, doc);
|
|
1098
555
|
return contents;
|
|
1099
556
|
};
|
|
1100
|
-
const
|
|
1101
|
-
const parsedOutput = {
|
|
1102
|
-
...output,
|
|
1103
|
-
body: await parseErrorBody(output.body, context),
|
|
1104
|
-
};
|
|
1105
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1106
|
-
switch (errorCode) {
|
|
1107
|
-
case "AccessDeniedException":
|
|
1108
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1109
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1110
|
-
case "InternalServiceErrorException":
|
|
1111
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1112
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "InvalidRequestException":
|
|
1114
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1115
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1116
|
-
case "ThrottlingException":
|
|
1117
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1118
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1119
|
-
default:
|
|
1120
|
-
const parsedBody = parsedOutput.body;
|
|
1121
|
-
return throwDefaultError({
|
|
1122
|
-
output,
|
|
1123
|
-
parsedBody,
|
|
1124
|
-
errorCode,
|
|
1125
|
-
});
|
|
1126
|
-
}
|
|
1127
|
-
};
|
|
1128
|
-
export const de_ListNetworksCommand = async (output, context) => {
|
|
557
|
+
export const de_ListInvitationsCommand = async (output, context) => {
|
|
1129
558
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1130
|
-
return
|
|
559
|
+
return de_CommandError(output, context);
|
|
1131
560
|
}
|
|
1132
561
|
const contents = map({
|
|
1133
562
|
$metadata: deserializeMetadata(output),
|
|
1134
563
|
});
|
|
1135
564
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1136
565
|
const doc = take(data, {
|
|
1137
|
-
|
|
566
|
+
Invitations: (_) => de_InvitationList(_, context),
|
|
1138
567
|
NextToken: __expectString,
|
|
1139
568
|
});
|
|
1140
569
|
Object.assign(contents, doc);
|
|
1141
570
|
return contents;
|
|
1142
571
|
};
|
|
1143
|
-
const
|
|
1144
|
-
const parsedOutput = {
|
|
1145
|
-
...output,
|
|
1146
|
-
body: await parseErrorBody(output.body, context),
|
|
1147
|
-
};
|
|
1148
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1149
|
-
switch (errorCode) {
|
|
1150
|
-
case "AccessDeniedException":
|
|
1151
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1152
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1153
|
-
case "InternalServiceErrorException":
|
|
1154
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1155
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1156
|
-
case "InvalidRequestException":
|
|
1157
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1158
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1159
|
-
case "ThrottlingException":
|
|
1160
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1161
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1162
|
-
default:
|
|
1163
|
-
const parsedBody = parsedOutput.body;
|
|
1164
|
-
return throwDefaultError({
|
|
1165
|
-
output,
|
|
1166
|
-
parsedBody,
|
|
1167
|
-
errorCode,
|
|
1168
|
-
});
|
|
1169
|
-
}
|
|
1170
|
-
};
|
|
1171
|
-
export const de_ListNodesCommand = async (output, context) => {
|
|
572
|
+
export const de_ListMembersCommand = async (output, context) => {
|
|
1172
573
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1173
|
-
return
|
|
574
|
+
return de_CommandError(output, context);
|
|
1174
575
|
}
|
|
1175
576
|
const contents = map({
|
|
1176
577
|
$metadata: deserializeMetadata(output),
|
|
1177
578
|
});
|
|
1178
579
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1179
580
|
const doc = take(data, {
|
|
581
|
+
Members: (_) => de_MemberSummaryList(_, context),
|
|
1180
582
|
NextToken: __expectString,
|
|
1181
|
-
Nodes: (_) => de_NodeSummaryList(_, context),
|
|
1182
583
|
});
|
|
1183
584
|
Object.assign(contents, doc);
|
|
1184
585
|
return contents;
|
|
1185
586
|
};
|
|
1186
|
-
const
|
|
1187
|
-
const parsedOutput = {
|
|
1188
|
-
...output,
|
|
1189
|
-
body: await parseErrorBody(output.body, context),
|
|
1190
|
-
};
|
|
1191
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1192
|
-
switch (errorCode) {
|
|
1193
|
-
case "AccessDeniedException":
|
|
1194
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1195
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1196
|
-
case "InternalServiceErrorException":
|
|
1197
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1198
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1199
|
-
case "InvalidRequestException":
|
|
1200
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1201
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1202
|
-
case "ThrottlingException":
|
|
1203
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1204
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1205
|
-
default:
|
|
1206
|
-
const parsedBody = parsedOutput.body;
|
|
1207
|
-
return throwDefaultError({
|
|
1208
|
-
output,
|
|
1209
|
-
parsedBody,
|
|
1210
|
-
errorCode,
|
|
1211
|
-
});
|
|
1212
|
-
}
|
|
1213
|
-
};
|
|
1214
|
-
export const de_ListProposalsCommand = async (output, context) => {
|
|
587
|
+
export const de_ListNetworksCommand = async (output, context) => {
|
|
1215
588
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1216
|
-
return
|
|
589
|
+
return de_CommandError(output, context);
|
|
1217
590
|
}
|
|
1218
591
|
const contents = map({
|
|
1219
592
|
$metadata: deserializeMetadata(output),
|
|
1220
593
|
});
|
|
1221
594
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1222
595
|
const doc = take(data, {
|
|
596
|
+
Networks: (_) => de_NetworkSummaryList(_, context),
|
|
1223
597
|
NextToken: __expectString,
|
|
1224
|
-
Proposals: (_) => de_ProposalSummaryList(_, context),
|
|
1225
598
|
});
|
|
1226
599
|
Object.assign(contents, doc);
|
|
1227
|
-
return contents;
|
|
1228
|
-
};
|
|
1229
|
-
const
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
body: await parseErrorBody(output.body, context),
|
|
1233
|
-
};
|
|
1234
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1235
|
-
switch (errorCode) {
|
|
1236
|
-
case "AccessDeniedException":
|
|
1237
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1238
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1239
|
-
case "InternalServiceErrorException":
|
|
1240
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1241
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1242
|
-
case "InvalidRequestException":
|
|
1243
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1244
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1245
|
-
case "ResourceNotFoundException":
|
|
1246
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1247
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1248
|
-
case "ThrottlingException":
|
|
1249
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1250
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1251
|
-
default:
|
|
1252
|
-
const parsedBody = parsedOutput.body;
|
|
1253
|
-
return throwDefaultError({
|
|
1254
|
-
output,
|
|
1255
|
-
parsedBody,
|
|
1256
|
-
errorCode,
|
|
1257
|
-
});
|
|
600
|
+
return contents;
|
|
601
|
+
};
|
|
602
|
+
export const de_ListNodesCommand = async (output, context) => {
|
|
603
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
604
|
+
return de_CommandError(output, context);
|
|
1258
605
|
}
|
|
606
|
+
const contents = map({
|
|
607
|
+
$metadata: deserializeMetadata(output),
|
|
608
|
+
});
|
|
609
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
610
|
+
const doc = take(data, {
|
|
611
|
+
NextToken: __expectString,
|
|
612
|
+
Nodes: (_) => de_NodeSummaryList(_, context),
|
|
613
|
+
});
|
|
614
|
+
Object.assign(contents, doc);
|
|
615
|
+
return contents;
|
|
1259
616
|
};
|
|
1260
|
-
export const
|
|
617
|
+
export const de_ListProposalsCommand = async (output, context) => {
|
|
1261
618
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1262
|
-
return
|
|
619
|
+
return de_CommandError(output, context);
|
|
1263
620
|
}
|
|
1264
621
|
const contents = map({
|
|
1265
622
|
$metadata: deserializeMetadata(output),
|
|
@@ -1267,42 +624,29 @@ export const de_ListProposalVotesCommand = async (output, context) => {
|
|
|
1267
624
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1268
625
|
const doc = take(data, {
|
|
1269
626
|
NextToken: __expectString,
|
|
1270
|
-
|
|
627
|
+
Proposals: (_) => de_ProposalSummaryList(_, context),
|
|
1271
628
|
});
|
|
1272
629
|
Object.assign(contents, doc);
|
|
1273
630
|
return contents;
|
|
1274
631
|
};
|
|
1275
|
-
const
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
body: await parseErrorBody(output.body, context),
|
|
1279
|
-
};
|
|
1280
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1281
|
-
switch (errorCode) {
|
|
1282
|
-
case "AccessDeniedException":
|
|
1283
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1284
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1285
|
-
case "InternalServiceErrorException":
|
|
1286
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1287
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1288
|
-
case "InvalidRequestException":
|
|
1289
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1290
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1291
|
-
case "ThrottlingException":
|
|
1292
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1293
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1294
|
-
default:
|
|
1295
|
-
const parsedBody = parsedOutput.body;
|
|
1296
|
-
return throwDefaultError({
|
|
1297
|
-
output,
|
|
1298
|
-
parsedBody,
|
|
1299
|
-
errorCode,
|
|
1300
|
-
});
|
|
632
|
+
export const de_ListProposalVotesCommand = async (output, context) => {
|
|
633
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
634
|
+
return de_CommandError(output, context);
|
|
1301
635
|
}
|
|
636
|
+
const contents = map({
|
|
637
|
+
$metadata: deserializeMetadata(output),
|
|
638
|
+
});
|
|
639
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
640
|
+
const doc = take(data, {
|
|
641
|
+
NextToken: __expectString,
|
|
642
|
+
ProposalVotes: _json,
|
|
643
|
+
});
|
|
644
|
+
Object.assign(contents, doc);
|
|
645
|
+
return contents;
|
|
1302
646
|
};
|
|
1303
647
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1304
648
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1305
|
-
return
|
|
649
|
+
return de_CommandError(output, context);
|
|
1306
650
|
}
|
|
1307
651
|
const contents = map({
|
|
1308
652
|
$metadata: deserializeMetadata(output),
|
|
@@ -1314,37 +658,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1314
658
|
Object.assign(contents, doc);
|
|
1315
659
|
return contents;
|
|
1316
660
|
};
|
|
1317
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1318
|
-
const parsedOutput = {
|
|
1319
|
-
...output,
|
|
1320
|
-
body: await parseErrorBody(output.body, context),
|
|
1321
|
-
};
|
|
1322
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1323
|
-
switch (errorCode) {
|
|
1324
|
-
case "InternalServiceErrorException":
|
|
1325
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1326
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "InvalidRequestException":
|
|
1328
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1329
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1330
|
-
case "ResourceNotFoundException":
|
|
1331
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1332
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "ResourceNotReadyException":
|
|
1334
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
1335
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
1336
|
-
default:
|
|
1337
|
-
const parsedBody = parsedOutput.body;
|
|
1338
|
-
return throwDefaultError({
|
|
1339
|
-
output,
|
|
1340
|
-
parsedBody,
|
|
1341
|
-
errorCode,
|
|
1342
|
-
});
|
|
1343
|
-
}
|
|
1344
|
-
};
|
|
1345
661
|
export const de_RejectInvitationCommand = async (output, context) => {
|
|
1346
662
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1347
|
-
return
|
|
663
|
+
return de_CommandError(output, context);
|
|
1348
664
|
}
|
|
1349
665
|
const contents = map({
|
|
1350
666
|
$metadata: deserializeMetadata(output),
|
|
@@ -1352,43 +668,9 @@ export const de_RejectInvitationCommand = async (output, context) => {
|
|
|
1352
668
|
await collectBody(output.body, context);
|
|
1353
669
|
return contents;
|
|
1354
670
|
};
|
|
1355
|
-
const de_RejectInvitationCommandError = async (output, context) => {
|
|
1356
|
-
const parsedOutput = {
|
|
1357
|
-
...output,
|
|
1358
|
-
body: await parseErrorBody(output.body, context),
|
|
1359
|
-
};
|
|
1360
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1361
|
-
switch (errorCode) {
|
|
1362
|
-
case "AccessDeniedException":
|
|
1363
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1364
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1365
|
-
case "IllegalActionException":
|
|
1366
|
-
case "com.amazonaws.managedblockchain#IllegalActionException":
|
|
1367
|
-
throw await de_IllegalActionExceptionRes(parsedOutput, context);
|
|
1368
|
-
case "InternalServiceErrorException":
|
|
1369
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1370
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1371
|
-
case "InvalidRequestException":
|
|
1372
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1373
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "ResourceNotFoundException":
|
|
1375
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1376
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "ThrottlingException":
|
|
1378
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1379
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1380
|
-
default:
|
|
1381
|
-
const parsedBody = parsedOutput.body;
|
|
1382
|
-
return throwDefaultError({
|
|
1383
|
-
output,
|
|
1384
|
-
parsedBody,
|
|
1385
|
-
errorCode,
|
|
1386
|
-
});
|
|
1387
|
-
}
|
|
1388
|
-
};
|
|
1389
671
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1390
672
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1391
|
-
return
|
|
673
|
+
return de_CommandError(output, context);
|
|
1392
674
|
}
|
|
1393
675
|
const contents = map({
|
|
1394
676
|
$metadata: deserializeMetadata(output),
|
|
@@ -1396,40 +678,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1396
678
|
await collectBody(output.body, context);
|
|
1397
679
|
return contents;
|
|
1398
680
|
};
|
|
1399
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1400
|
-
const parsedOutput = {
|
|
1401
|
-
...output,
|
|
1402
|
-
body: await parseErrorBody(output.body, context),
|
|
1403
|
-
};
|
|
1404
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1405
|
-
switch (errorCode) {
|
|
1406
|
-
case "InternalServiceErrorException":
|
|
1407
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1408
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1409
|
-
case "InvalidRequestException":
|
|
1410
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1411
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1412
|
-
case "ResourceNotFoundException":
|
|
1413
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1414
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1415
|
-
case "ResourceNotReadyException":
|
|
1416
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
1417
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
1418
|
-
case "TooManyTagsException":
|
|
1419
|
-
case "com.amazonaws.managedblockchain#TooManyTagsException":
|
|
1420
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1421
|
-
default:
|
|
1422
|
-
const parsedBody = parsedOutput.body;
|
|
1423
|
-
return throwDefaultError({
|
|
1424
|
-
output,
|
|
1425
|
-
parsedBody,
|
|
1426
|
-
errorCode,
|
|
1427
|
-
});
|
|
1428
|
-
}
|
|
1429
|
-
};
|
|
1430
681
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1431
682
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1432
|
-
return
|
|
683
|
+
return de_CommandError(output, context);
|
|
1433
684
|
}
|
|
1434
685
|
const contents = map({
|
|
1435
686
|
$metadata: deserializeMetadata(output),
|
|
@@ -1437,37 +688,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1437
688
|
await collectBody(output.body, context);
|
|
1438
689
|
return contents;
|
|
1439
690
|
};
|
|
1440
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1441
|
-
const parsedOutput = {
|
|
1442
|
-
...output,
|
|
1443
|
-
body: await parseErrorBody(output.body, context),
|
|
1444
|
-
};
|
|
1445
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1446
|
-
switch (errorCode) {
|
|
1447
|
-
case "InternalServiceErrorException":
|
|
1448
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1449
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1450
|
-
case "InvalidRequestException":
|
|
1451
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1452
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1453
|
-
case "ResourceNotFoundException":
|
|
1454
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1455
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1456
|
-
case "ResourceNotReadyException":
|
|
1457
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
1458
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
1459
|
-
default:
|
|
1460
|
-
const parsedBody = parsedOutput.body;
|
|
1461
|
-
return throwDefaultError({
|
|
1462
|
-
output,
|
|
1463
|
-
parsedBody,
|
|
1464
|
-
errorCode,
|
|
1465
|
-
});
|
|
1466
|
-
}
|
|
1467
|
-
};
|
|
1468
691
|
export const de_UpdateMemberCommand = async (output, context) => {
|
|
1469
692
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1470
|
-
return
|
|
693
|
+
return de_CommandError(output, context);
|
|
1471
694
|
}
|
|
1472
695
|
const contents = map({
|
|
1473
696
|
$metadata: deserializeMetadata(output),
|
|
@@ -1475,40 +698,9 @@ export const de_UpdateMemberCommand = async (output, context) => {
|
|
|
1475
698
|
await collectBody(output.body, context);
|
|
1476
699
|
return contents;
|
|
1477
700
|
};
|
|
1478
|
-
const de_UpdateMemberCommandError = async (output, context) => {
|
|
1479
|
-
const parsedOutput = {
|
|
1480
|
-
...output,
|
|
1481
|
-
body: await parseErrorBody(output.body, context),
|
|
1482
|
-
};
|
|
1483
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1484
|
-
switch (errorCode) {
|
|
1485
|
-
case "AccessDeniedException":
|
|
1486
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1487
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1488
|
-
case "InternalServiceErrorException":
|
|
1489
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1490
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1491
|
-
case "InvalidRequestException":
|
|
1492
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1493
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1494
|
-
case "ResourceNotFoundException":
|
|
1495
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1496
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1497
|
-
case "ThrottlingException":
|
|
1498
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1499
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1500
|
-
default:
|
|
1501
|
-
const parsedBody = parsedOutput.body;
|
|
1502
|
-
return throwDefaultError({
|
|
1503
|
-
output,
|
|
1504
|
-
parsedBody,
|
|
1505
|
-
errorCode,
|
|
1506
|
-
});
|
|
1507
|
-
}
|
|
1508
|
-
};
|
|
1509
701
|
export const de_UpdateNodeCommand = async (output, context) => {
|
|
1510
702
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1511
|
-
return
|
|
703
|
+
return de_CommandError(output, context);
|
|
1512
704
|
}
|
|
1513
705
|
const contents = map({
|
|
1514
706
|
$metadata: deserializeMetadata(output),
|
|
@@ -1516,40 +708,9 @@ export const de_UpdateNodeCommand = async (output, context) => {
|
|
|
1516
708
|
await collectBody(output.body, context);
|
|
1517
709
|
return contents;
|
|
1518
710
|
};
|
|
1519
|
-
const de_UpdateNodeCommandError = async (output, context) => {
|
|
1520
|
-
const parsedOutput = {
|
|
1521
|
-
...output,
|
|
1522
|
-
body: await parseErrorBody(output.body, context),
|
|
1523
|
-
};
|
|
1524
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1525
|
-
switch (errorCode) {
|
|
1526
|
-
case "AccessDeniedException":
|
|
1527
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1528
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1529
|
-
case "InternalServiceErrorException":
|
|
1530
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1531
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1532
|
-
case "InvalidRequestException":
|
|
1533
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1534
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1535
|
-
case "ResourceNotFoundException":
|
|
1536
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1537
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1538
|
-
case "ThrottlingException":
|
|
1539
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1540
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1541
|
-
default:
|
|
1542
|
-
const parsedBody = parsedOutput.body;
|
|
1543
|
-
return throwDefaultError({
|
|
1544
|
-
output,
|
|
1545
|
-
parsedBody,
|
|
1546
|
-
errorCode,
|
|
1547
|
-
});
|
|
1548
|
-
}
|
|
1549
|
-
};
|
|
1550
711
|
export const de_VoteOnProposalCommand = async (output, context) => {
|
|
1551
712
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1552
|
-
return
|
|
713
|
+
return de_CommandError(output, context);
|
|
1553
714
|
}
|
|
1554
715
|
const contents = map({
|
|
1555
716
|
$metadata: deserializeMetadata(output),
|
|
@@ -1557,7 +718,7 @@ export const de_VoteOnProposalCommand = async (output, context) => {
|
|
|
1557
718
|
await collectBody(output.body, context);
|
|
1558
719
|
return contents;
|
|
1559
720
|
};
|
|
1560
|
-
const
|
|
721
|
+
const de_CommandError = async (output, context) => {
|
|
1561
722
|
const parsedOutput = {
|
|
1562
723
|
...output,
|
|
1563
724
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1567,21 +728,33 @@ const de_VoteOnProposalCommandError = async (output, context) => {
|
|
|
1567
728
|
case "AccessDeniedException":
|
|
1568
729
|
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1569
730
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1570
|
-
case "IllegalActionException":
|
|
1571
|
-
case "com.amazonaws.managedblockchain#IllegalActionException":
|
|
1572
|
-
throw await de_IllegalActionExceptionRes(parsedOutput, context);
|
|
1573
731
|
case "InternalServiceErrorException":
|
|
1574
732
|
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1575
733
|
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1576
734
|
case "InvalidRequestException":
|
|
1577
735
|
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1578
736
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1579
|
-
case "
|
|
1580
|
-
case "com.amazonaws.managedblockchain#
|
|
1581
|
-
throw await
|
|
737
|
+
case "ResourceAlreadyExistsException":
|
|
738
|
+
case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException":
|
|
739
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
740
|
+
case "ResourceLimitExceededException":
|
|
741
|
+
case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
|
|
742
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1582
743
|
case "ThrottlingException":
|
|
1583
744
|
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1584
745
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
746
|
+
case "TooManyTagsException":
|
|
747
|
+
case "com.amazonaws.managedblockchain#TooManyTagsException":
|
|
748
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
749
|
+
case "ResourceNotFoundException":
|
|
750
|
+
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
751
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
752
|
+
case "ResourceNotReadyException":
|
|
753
|
+
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
754
|
+
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
755
|
+
case "IllegalActionException":
|
|
756
|
+
case "com.amazonaws.managedblockchain#IllegalActionException":
|
|
757
|
+
throw await de_IllegalActionExceptionRes(parsedOutput, context);
|
|
1585
758
|
default:
|
|
1586
759
|
const parsedBody = parsedOutput.body;
|
|
1587
760
|
return throwDefaultError({
|