@aws-sdk/client-rbin 3.504.0 → 3.507.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 +18 -252
- package/dist-es/protocols/Aws_restJson1.js +17 -251
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -437,7 +437,7 @@ var se_UpdateRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
437
437
|
}, "se_UpdateRuleCommand");
|
|
438
438
|
var de_CreateRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
439
439
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
440
|
-
return
|
|
440
|
+
return de_CommandError(output, context);
|
|
441
441
|
}
|
|
442
442
|
const contents = (0, import_smithy_client.map)({
|
|
443
443
|
$metadata: deserializeMetadata(output)
|
|
@@ -458,34 +458,9 @@ var de_CreateRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
458
458
|
Object.assign(contents, doc);
|
|
459
459
|
return contents;
|
|
460
460
|
}, "de_CreateRuleCommand");
|
|
461
|
-
var de_CreateRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
462
|
-
const parsedOutput = {
|
|
463
|
-
...output,
|
|
464
|
-
body: await parseErrorBody(output.body, context)
|
|
465
|
-
};
|
|
466
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
467
|
-
switch (errorCode) {
|
|
468
|
-
case "InternalServerException":
|
|
469
|
-
case "com.amazonaws.rbin#InternalServerException":
|
|
470
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
471
|
-
case "ServiceQuotaExceededException":
|
|
472
|
-
case "com.amazonaws.rbin#ServiceQuotaExceededException":
|
|
473
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
474
|
-
case "ValidationException":
|
|
475
|
-
case "com.amazonaws.rbin#ValidationException":
|
|
476
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
477
|
-
default:
|
|
478
|
-
const parsedBody = parsedOutput.body;
|
|
479
|
-
return throwDefaultError({
|
|
480
|
-
output,
|
|
481
|
-
parsedBody,
|
|
482
|
-
errorCode
|
|
483
|
-
});
|
|
484
|
-
}
|
|
485
|
-
}, "de_CreateRuleCommandError");
|
|
486
461
|
var de_DeleteRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
487
462
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
488
|
-
return
|
|
463
|
+
return de_CommandError(output, context);
|
|
489
464
|
}
|
|
490
465
|
const contents = (0, import_smithy_client.map)({
|
|
491
466
|
$metadata: deserializeMetadata(output)
|
|
@@ -493,37 +468,9 @@ var de_DeleteRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
493
468
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
494
469
|
return contents;
|
|
495
470
|
}, "de_DeleteRuleCommand");
|
|
496
|
-
var de_DeleteRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
497
|
-
const parsedOutput = {
|
|
498
|
-
...output,
|
|
499
|
-
body: await parseErrorBody(output.body, context)
|
|
500
|
-
};
|
|
501
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
502
|
-
switch (errorCode) {
|
|
503
|
-
case "ConflictException":
|
|
504
|
-
case "com.amazonaws.rbin#ConflictException":
|
|
505
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
506
|
-
case "InternalServerException":
|
|
507
|
-
case "com.amazonaws.rbin#InternalServerException":
|
|
508
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
509
|
-
case "ResourceNotFoundException":
|
|
510
|
-
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
511
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
512
|
-
case "ValidationException":
|
|
513
|
-
case "com.amazonaws.rbin#ValidationException":
|
|
514
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
515
|
-
default:
|
|
516
|
-
const parsedBody = parsedOutput.body;
|
|
517
|
-
return throwDefaultError({
|
|
518
|
-
output,
|
|
519
|
-
parsedBody,
|
|
520
|
-
errorCode
|
|
521
|
-
});
|
|
522
|
-
}
|
|
523
|
-
}, "de_DeleteRuleCommandError");
|
|
524
471
|
var de_GetRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
525
472
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
526
|
-
return
|
|
473
|
+
return de_CommandError(output, context);
|
|
527
474
|
}
|
|
528
475
|
const contents = (0, import_smithy_client.map)({
|
|
529
476
|
$metadata: deserializeMetadata(output)
|
|
@@ -544,34 +491,9 @@ var de_GetRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
544
491
|
Object.assign(contents, doc);
|
|
545
492
|
return contents;
|
|
546
493
|
}, "de_GetRuleCommand");
|
|
547
|
-
var de_GetRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
548
|
-
const parsedOutput = {
|
|
549
|
-
...output,
|
|
550
|
-
body: await parseErrorBody(output.body, context)
|
|
551
|
-
};
|
|
552
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
553
|
-
switch (errorCode) {
|
|
554
|
-
case "InternalServerException":
|
|
555
|
-
case "com.amazonaws.rbin#InternalServerException":
|
|
556
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
557
|
-
case "ResourceNotFoundException":
|
|
558
|
-
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
559
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
560
|
-
case "ValidationException":
|
|
561
|
-
case "com.amazonaws.rbin#ValidationException":
|
|
562
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
563
|
-
default:
|
|
564
|
-
const parsedBody = parsedOutput.body;
|
|
565
|
-
return throwDefaultError({
|
|
566
|
-
output,
|
|
567
|
-
parsedBody,
|
|
568
|
-
errorCode
|
|
569
|
-
});
|
|
570
|
-
}
|
|
571
|
-
}, "de_GetRuleCommandError");
|
|
572
494
|
var de_ListRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
573
495
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
574
|
-
return
|
|
496
|
+
return de_CommandError(output, context);
|
|
575
497
|
}
|
|
576
498
|
const contents = (0, import_smithy_client.map)({
|
|
577
499
|
$metadata: deserializeMetadata(output)
|
|
@@ -584,31 +506,9 @@ var de_ListRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
584
506
|
Object.assign(contents, doc);
|
|
585
507
|
return contents;
|
|
586
508
|
}, "de_ListRulesCommand");
|
|
587
|
-
var de_ListRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
588
|
-
const parsedOutput = {
|
|
589
|
-
...output,
|
|
590
|
-
body: await parseErrorBody(output.body, context)
|
|
591
|
-
};
|
|
592
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
593
|
-
switch (errorCode) {
|
|
594
|
-
case "InternalServerException":
|
|
595
|
-
case "com.amazonaws.rbin#InternalServerException":
|
|
596
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
597
|
-
case "ValidationException":
|
|
598
|
-
case "com.amazonaws.rbin#ValidationException":
|
|
599
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
600
|
-
default:
|
|
601
|
-
const parsedBody = parsedOutput.body;
|
|
602
|
-
return throwDefaultError({
|
|
603
|
-
output,
|
|
604
|
-
parsedBody,
|
|
605
|
-
errorCode
|
|
606
|
-
});
|
|
607
|
-
}
|
|
608
|
-
}, "de_ListRulesCommandError");
|
|
609
509
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
610
510
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
611
|
-
return
|
|
511
|
+
return de_CommandError(output, context);
|
|
612
512
|
}
|
|
613
513
|
const contents = (0, import_smithy_client.map)({
|
|
614
514
|
$metadata: deserializeMetadata(output)
|
|
@@ -620,34 +520,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
620
520
|
Object.assign(contents, doc);
|
|
621
521
|
return contents;
|
|
622
522
|
}, "de_ListTagsForResourceCommand");
|
|
623
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
624
|
-
const parsedOutput = {
|
|
625
|
-
...output,
|
|
626
|
-
body: await parseErrorBody(output.body, context)
|
|
627
|
-
};
|
|
628
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
629
|
-
switch (errorCode) {
|
|
630
|
-
case "InternalServerException":
|
|
631
|
-
case "com.amazonaws.rbin#InternalServerException":
|
|
632
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
633
|
-
case "ResourceNotFoundException":
|
|
634
|
-
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
635
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
636
|
-
case "ValidationException":
|
|
637
|
-
case "com.amazonaws.rbin#ValidationException":
|
|
638
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
639
|
-
default:
|
|
640
|
-
const parsedBody = parsedOutput.body;
|
|
641
|
-
return throwDefaultError({
|
|
642
|
-
output,
|
|
643
|
-
parsedBody,
|
|
644
|
-
errorCode
|
|
645
|
-
});
|
|
646
|
-
}
|
|
647
|
-
}, "de_ListTagsForResourceCommandError");
|
|
648
523
|
var de_LockRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
649
524
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
650
|
-
return
|
|
525
|
+
return de_CommandError(output, context);
|
|
651
526
|
}
|
|
652
527
|
const contents = (0, import_smithy_client.map)({
|
|
653
528
|
$metadata: deserializeMetadata(output)
|
|
@@ -667,37 +542,9 @@ var de_LockRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
667
542
|
Object.assign(contents, doc);
|
|
668
543
|
return contents;
|
|
669
544
|
}, "de_LockRuleCommand");
|
|
670
|
-
var de_LockRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
671
|
-
const parsedOutput = {
|
|
672
|
-
...output,
|
|
673
|
-
body: await parseErrorBody(output.body, context)
|
|
674
|
-
};
|
|
675
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
676
|
-
switch (errorCode) {
|
|
677
|
-
case "ConflictException":
|
|
678
|
-
case "com.amazonaws.rbin#ConflictException":
|
|
679
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
680
|
-
case "InternalServerException":
|
|
681
|
-
case "com.amazonaws.rbin#InternalServerException":
|
|
682
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
683
|
-
case "ResourceNotFoundException":
|
|
684
|
-
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
685
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
686
|
-
case "ValidationException":
|
|
687
|
-
case "com.amazonaws.rbin#ValidationException":
|
|
688
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
689
|
-
default:
|
|
690
|
-
const parsedBody = parsedOutput.body;
|
|
691
|
-
return throwDefaultError({
|
|
692
|
-
output,
|
|
693
|
-
parsedBody,
|
|
694
|
-
errorCode
|
|
695
|
-
});
|
|
696
|
-
}
|
|
697
|
-
}, "de_LockRuleCommandError");
|
|
698
545
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
699
546
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
700
|
-
return
|
|
547
|
+
return de_CommandError(output, context);
|
|
701
548
|
}
|
|
702
549
|
const contents = (0, import_smithy_client.map)({
|
|
703
550
|
$metadata: deserializeMetadata(output)
|
|
@@ -705,37 +552,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
705
552
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
706
553
|
return contents;
|
|
707
554
|
}, "de_TagResourceCommand");
|
|
708
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
709
|
-
const parsedOutput = {
|
|
710
|
-
...output,
|
|
711
|
-
body: await parseErrorBody(output.body, context)
|
|
712
|
-
};
|
|
713
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
714
|
-
switch (errorCode) {
|
|
715
|
-
case "InternalServerException":
|
|
716
|
-
case "com.amazonaws.rbin#InternalServerException":
|
|
717
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
718
|
-
case "ResourceNotFoundException":
|
|
719
|
-
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
720
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
721
|
-
case "ServiceQuotaExceededException":
|
|
722
|
-
case "com.amazonaws.rbin#ServiceQuotaExceededException":
|
|
723
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
724
|
-
case "ValidationException":
|
|
725
|
-
case "com.amazonaws.rbin#ValidationException":
|
|
726
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
727
|
-
default:
|
|
728
|
-
const parsedBody = parsedOutput.body;
|
|
729
|
-
return throwDefaultError({
|
|
730
|
-
output,
|
|
731
|
-
parsedBody,
|
|
732
|
-
errorCode
|
|
733
|
-
});
|
|
734
|
-
}
|
|
735
|
-
}, "de_TagResourceCommandError");
|
|
736
555
|
var de_UnlockRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
737
556
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
738
|
-
return
|
|
557
|
+
return de_CommandError(output, context);
|
|
739
558
|
}
|
|
740
559
|
const contents = (0, import_smithy_client.map)({
|
|
741
560
|
$metadata: deserializeMetadata(output)
|
|
@@ -756,37 +575,9 @@ var de_UnlockRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
756
575
|
Object.assign(contents, doc);
|
|
757
576
|
return contents;
|
|
758
577
|
}, "de_UnlockRuleCommand");
|
|
759
|
-
var de_UnlockRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
760
|
-
const parsedOutput = {
|
|
761
|
-
...output,
|
|
762
|
-
body: await parseErrorBody(output.body, context)
|
|
763
|
-
};
|
|
764
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
765
|
-
switch (errorCode) {
|
|
766
|
-
case "ConflictException":
|
|
767
|
-
case "com.amazonaws.rbin#ConflictException":
|
|
768
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
769
|
-
case "InternalServerException":
|
|
770
|
-
case "com.amazonaws.rbin#InternalServerException":
|
|
771
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
772
|
-
case "ResourceNotFoundException":
|
|
773
|
-
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
774
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
775
|
-
case "ValidationException":
|
|
776
|
-
case "com.amazonaws.rbin#ValidationException":
|
|
777
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
778
|
-
default:
|
|
779
|
-
const parsedBody = parsedOutput.body;
|
|
780
|
-
return throwDefaultError({
|
|
781
|
-
output,
|
|
782
|
-
parsedBody,
|
|
783
|
-
errorCode
|
|
784
|
-
});
|
|
785
|
-
}
|
|
786
|
-
}, "de_UnlockRuleCommandError");
|
|
787
578
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
788
579
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
789
|
-
return
|
|
580
|
+
return de_CommandError(output, context);
|
|
790
581
|
}
|
|
791
582
|
const contents = (0, import_smithy_client.map)({
|
|
792
583
|
$metadata: deserializeMetadata(output)
|
|
@@ -794,34 +585,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
794
585
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
795
586
|
return contents;
|
|
796
587
|
}, "de_UntagResourceCommand");
|
|
797
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
798
|
-
const parsedOutput = {
|
|
799
|
-
...output,
|
|
800
|
-
body: await parseErrorBody(output.body, context)
|
|
801
|
-
};
|
|
802
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
803
|
-
switch (errorCode) {
|
|
804
|
-
case "InternalServerException":
|
|
805
|
-
case "com.amazonaws.rbin#InternalServerException":
|
|
806
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
807
|
-
case "ResourceNotFoundException":
|
|
808
|
-
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
809
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
810
|
-
case "ValidationException":
|
|
811
|
-
case "com.amazonaws.rbin#ValidationException":
|
|
812
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
813
|
-
default:
|
|
814
|
-
const parsedBody = parsedOutput.body;
|
|
815
|
-
return throwDefaultError({
|
|
816
|
-
output,
|
|
817
|
-
parsedBody,
|
|
818
|
-
errorCode
|
|
819
|
-
});
|
|
820
|
-
}
|
|
821
|
-
}, "de_UntagResourceCommandError");
|
|
822
588
|
var de_UpdateRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
823
589
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
824
|
-
return
|
|
590
|
+
return de_CommandError(output, context);
|
|
825
591
|
}
|
|
826
592
|
const contents = (0, import_smithy_client.map)({
|
|
827
593
|
$metadata: deserializeMetadata(output)
|
|
@@ -841,28 +607,28 @@ var de_UpdateRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
841
607
|
Object.assign(contents, doc);
|
|
842
608
|
return contents;
|
|
843
609
|
}, "de_UpdateRuleCommand");
|
|
844
|
-
var
|
|
610
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
845
611
|
const parsedOutput = {
|
|
846
612
|
...output,
|
|
847
613
|
body: await parseErrorBody(output.body, context)
|
|
848
614
|
};
|
|
849
615
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
850
616
|
switch (errorCode) {
|
|
851
|
-
case "ConflictException":
|
|
852
|
-
case "com.amazonaws.rbin#ConflictException":
|
|
853
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
854
617
|
case "InternalServerException":
|
|
855
618
|
case "com.amazonaws.rbin#InternalServerException":
|
|
856
619
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
857
|
-
case "ResourceNotFoundException":
|
|
858
|
-
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
859
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
860
620
|
case "ServiceQuotaExceededException":
|
|
861
621
|
case "com.amazonaws.rbin#ServiceQuotaExceededException":
|
|
862
622
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
863
623
|
case "ValidationException":
|
|
864
624
|
case "com.amazonaws.rbin#ValidationException":
|
|
865
625
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
626
|
+
case "ConflictException":
|
|
627
|
+
case "com.amazonaws.rbin#ConflictException":
|
|
628
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
629
|
+
case "ResourceNotFoundException":
|
|
630
|
+
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
631
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
866
632
|
default:
|
|
867
633
|
const parsedBody = parsedOutput.body;
|
|
868
634
|
return throwDefaultError({
|
|
@@ -871,7 +637,7 @@ var de_UpdateRuleCommandError = /* @__PURE__ */ __name(async (output, context) =
|
|
|
871
637
|
errorCode
|
|
872
638
|
});
|
|
873
639
|
}
|
|
874
|
-
}, "
|
|
640
|
+
}, "de_CommandError");
|
|
875
641
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(RbinServiceException);
|
|
876
642
|
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
877
643
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -135,7 +135,7 @@ export const se_UpdateRuleCommand = async (input, context) => {
|
|
|
135
135
|
};
|
|
136
136
|
export const de_CreateRuleCommand = async (output, context) => {
|
|
137
137
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
138
|
-
return
|
|
138
|
+
return de_CommandError(output, context);
|
|
139
139
|
}
|
|
140
140
|
const contents = map({
|
|
141
141
|
$metadata: deserializeMetadata(output),
|
|
@@ -156,34 +156,9 @@ export const de_CreateRuleCommand = async (output, context) => {
|
|
|
156
156
|
Object.assign(contents, doc);
|
|
157
157
|
return contents;
|
|
158
158
|
};
|
|
159
|
-
const de_CreateRuleCommandError = async (output, context) => {
|
|
160
|
-
const parsedOutput = {
|
|
161
|
-
...output,
|
|
162
|
-
body: await parseErrorBody(output.body, context),
|
|
163
|
-
};
|
|
164
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
165
|
-
switch (errorCode) {
|
|
166
|
-
case "InternalServerException":
|
|
167
|
-
case "com.amazonaws.rbin#InternalServerException":
|
|
168
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
169
|
-
case "ServiceQuotaExceededException":
|
|
170
|
-
case "com.amazonaws.rbin#ServiceQuotaExceededException":
|
|
171
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
172
|
-
case "ValidationException":
|
|
173
|
-
case "com.amazonaws.rbin#ValidationException":
|
|
174
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
175
|
-
default:
|
|
176
|
-
const parsedBody = parsedOutput.body;
|
|
177
|
-
return throwDefaultError({
|
|
178
|
-
output,
|
|
179
|
-
parsedBody,
|
|
180
|
-
errorCode,
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
159
|
export const de_DeleteRuleCommand = async (output, context) => {
|
|
185
160
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
186
|
-
return
|
|
161
|
+
return de_CommandError(output, context);
|
|
187
162
|
}
|
|
188
163
|
const contents = map({
|
|
189
164
|
$metadata: deserializeMetadata(output),
|
|
@@ -191,37 +166,9 @@ export const de_DeleteRuleCommand = async (output, context) => {
|
|
|
191
166
|
await collectBody(output.body, context);
|
|
192
167
|
return contents;
|
|
193
168
|
};
|
|
194
|
-
const de_DeleteRuleCommandError = async (output, context) => {
|
|
195
|
-
const parsedOutput = {
|
|
196
|
-
...output,
|
|
197
|
-
body: await parseErrorBody(output.body, context),
|
|
198
|
-
};
|
|
199
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
200
|
-
switch (errorCode) {
|
|
201
|
-
case "ConflictException":
|
|
202
|
-
case "com.amazonaws.rbin#ConflictException":
|
|
203
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
204
|
-
case "InternalServerException":
|
|
205
|
-
case "com.amazonaws.rbin#InternalServerException":
|
|
206
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
207
|
-
case "ResourceNotFoundException":
|
|
208
|
-
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
209
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
210
|
-
case "ValidationException":
|
|
211
|
-
case "com.amazonaws.rbin#ValidationException":
|
|
212
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
213
|
-
default:
|
|
214
|
-
const parsedBody = parsedOutput.body;
|
|
215
|
-
return throwDefaultError({
|
|
216
|
-
output,
|
|
217
|
-
parsedBody,
|
|
218
|
-
errorCode,
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
};
|
|
222
169
|
export const de_GetRuleCommand = async (output, context) => {
|
|
223
170
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
224
|
-
return
|
|
171
|
+
return de_CommandError(output, context);
|
|
225
172
|
}
|
|
226
173
|
const contents = map({
|
|
227
174
|
$metadata: deserializeMetadata(output),
|
|
@@ -242,34 +189,9 @@ export const de_GetRuleCommand = async (output, context) => {
|
|
|
242
189
|
Object.assign(contents, doc);
|
|
243
190
|
return contents;
|
|
244
191
|
};
|
|
245
|
-
const de_GetRuleCommandError = async (output, context) => {
|
|
246
|
-
const parsedOutput = {
|
|
247
|
-
...output,
|
|
248
|
-
body: await parseErrorBody(output.body, context),
|
|
249
|
-
};
|
|
250
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
251
|
-
switch (errorCode) {
|
|
252
|
-
case "InternalServerException":
|
|
253
|
-
case "com.amazonaws.rbin#InternalServerException":
|
|
254
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
255
|
-
case "ResourceNotFoundException":
|
|
256
|
-
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
257
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
258
|
-
case "ValidationException":
|
|
259
|
-
case "com.amazonaws.rbin#ValidationException":
|
|
260
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
261
|
-
default:
|
|
262
|
-
const parsedBody = parsedOutput.body;
|
|
263
|
-
return throwDefaultError({
|
|
264
|
-
output,
|
|
265
|
-
parsedBody,
|
|
266
|
-
errorCode,
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
};
|
|
270
192
|
export const de_ListRulesCommand = async (output, context) => {
|
|
271
193
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
272
|
-
return
|
|
194
|
+
return de_CommandError(output, context);
|
|
273
195
|
}
|
|
274
196
|
const contents = map({
|
|
275
197
|
$metadata: deserializeMetadata(output),
|
|
@@ -282,31 +204,9 @@ export const de_ListRulesCommand = async (output, context) => {
|
|
|
282
204
|
Object.assign(contents, doc);
|
|
283
205
|
return contents;
|
|
284
206
|
};
|
|
285
|
-
const de_ListRulesCommandError = async (output, context) => {
|
|
286
|
-
const parsedOutput = {
|
|
287
|
-
...output,
|
|
288
|
-
body: await parseErrorBody(output.body, context),
|
|
289
|
-
};
|
|
290
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
291
|
-
switch (errorCode) {
|
|
292
|
-
case "InternalServerException":
|
|
293
|
-
case "com.amazonaws.rbin#InternalServerException":
|
|
294
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
295
|
-
case "ValidationException":
|
|
296
|
-
case "com.amazonaws.rbin#ValidationException":
|
|
297
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
298
|
-
default:
|
|
299
|
-
const parsedBody = parsedOutput.body;
|
|
300
|
-
return throwDefaultError({
|
|
301
|
-
output,
|
|
302
|
-
parsedBody,
|
|
303
|
-
errorCode,
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
|
-
};
|
|
307
207
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
308
208
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
309
|
-
return
|
|
209
|
+
return de_CommandError(output, context);
|
|
310
210
|
}
|
|
311
211
|
const contents = map({
|
|
312
212
|
$metadata: deserializeMetadata(output),
|
|
@@ -318,34 +218,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
318
218
|
Object.assign(contents, doc);
|
|
319
219
|
return contents;
|
|
320
220
|
};
|
|
321
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
322
|
-
const parsedOutput = {
|
|
323
|
-
...output,
|
|
324
|
-
body: await parseErrorBody(output.body, context),
|
|
325
|
-
};
|
|
326
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
327
|
-
switch (errorCode) {
|
|
328
|
-
case "InternalServerException":
|
|
329
|
-
case "com.amazonaws.rbin#InternalServerException":
|
|
330
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
331
|
-
case "ResourceNotFoundException":
|
|
332
|
-
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
333
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
334
|
-
case "ValidationException":
|
|
335
|
-
case "com.amazonaws.rbin#ValidationException":
|
|
336
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
337
|
-
default:
|
|
338
|
-
const parsedBody = parsedOutput.body;
|
|
339
|
-
return throwDefaultError({
|
|
340
|
-
output,
|
|
341
|
-
parsedBody,
|
|
342
|
-
errorCode,
|
|
343
|
-
});
|
|
344
|
-
}
|
|
345
|
-
};
|
|
346
221
|
export const de_LockRuleCommand = async (output, context) => {
|
|
347
222
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
348
|
-
return
|
|
223
|
+
return de_CommandError(output, context);
|
|
349
224
|
}
|
|
350
225
|
const contents = map({
|
|
351
226
|
$metadata: deserializeMetadata(output),
|
|
@@ -365,37 +240,9 @@ export const de_LockRuleCommand = async (output, context) => {
|
|
|
365
240
|
Object.assign(contents, doc);
|
|
366
241
|
return contents;
|
|
367
242
|
};
|
|
368
|
-
const de_LockRuleCommandError = async (output, context) => {
|
|
369
|
-
const parsedOutput = {
|
|
370
|
-
...output,
|
|
371
|
-
body: await parseErrorBody(output.body, context),
|
|
372
|
-
};
|
|
373
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
374
|
-
switch (errorCode) {
|
|
375
|
-
case "ConflictException":
|
|
376
|
-
case "com.amazonaws.rbin#ConflictException":
|
|
377
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
378
|
-
case "InternalServerException":
|
|
379
|
-
case "com.amazonaws.rbin#InternalServerException":
|
|
380
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
381
|
-
case "ResourceNotFoundException":
|
|
382
|
-
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
383
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
384
|
-
case "ValidationException":
|
|
385
|
-
case "com.amazonaws.rbin#ValidationException":
|
|
386
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
387
|
-
default:
|
|
388
|
-
const parsedBody = parsedOutput.body;
|
|
389
|
-
return throwDefaultError({
|
|
390
|
-
output,
|
|
391
|
-
parsedBody,
|
|
392
|
-
errorCode,
|
|
393
|
-
});
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
243
|
export const de_TagResourceCommand = async (output, context) => {
|
|
397
244
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
398
|
-
return
|
|
245
|
+
return de_CommandError(output, context);
|
|
399
246
|
}
|
|
400
247
|
const contents = map({
|
|
401
248
|
$metadata: deserializeMetadata(output),
|
|
@@ -403,37 +250,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
403
250
|
await collectBody(output.body, context);
|
|
404
251
|
return contents;
|
|
405
252
|
};
|
|
406
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
407
|
-
const parsedOutput = {
|
|
408
|
-
...output,
|
|
409
|
-
body: await parseErrorBody(output.body, context),
|
|
410
|
-
};
|
|
411
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
412
|
-
switch (errorCode) {
|
|
413
|
-
case "InternalServerException":
|
|
414
|
-
case "com.amazonaws.rbin#InternalServerException":
|
|
415
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
416
|
-
case "ResourceNotFoundException":
|
|
417
|
-
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
418
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
419
|
-
case "ServiceQuotaExceededException":
|
|
420
|
-
case "com.amazonaws.rbin#ServiceQuotaExceededException":
|
|
421
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
422
|
-
case "ValidationException":
|
|
423
|
-
case "com.amazonaws.rbin#ValidationException":
|
|
424
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
425
|
-
default:
|
|
426
|
-
const parsedBody = parsedOutput.body;
|
|
427
|
-
return throwDefaultError({
|
|
428
|
-
output,
|
|
429
|
-
parsedBody,
|
|
430
|
-
errorCode,
|
|
431
|
-
});
|
|
432
|
-
}
|
|
433
|
-
};
|
|
434
253
|
export const de_UnlockRuleCommand = async (output, context) => {
|
|
435
254
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
436
|
-
return
|
|
255
|
+
return de_CommandError(output, context);
|
|
437
256
|
}
|
|
438
257
|
const contents = map({
|
|
439
258
|
$metadata: deserializeMetadata(output),
|
|
@@ -454,37 +273,9 @@ export const de_UnlockRuleCommand = async (output, context) => {
|
|
|
454
273
|
Object.assign(contents, doc);
|
|
455
274
|
return contents;
|
|
456
275
|
};
|
|
457
|
-
const de_UnlockRuleCommandError = async (output, context) => {
|
|
458
|
-
const parsedOutput = {
|
|
459
|
-
...output,
|
|
460
|
-
body: await parseErrorBody(output.body, context),
|
|
461
|
-
};
|
|
462
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
463
|
-
switch (errorCode) {
|
|
464
|
-
case "ConflictException":
|
|
465
|
-
case "com.amazonaws.rbin#ConflictException":
|
|
466
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
467
|
-
case "InternalServerException":
|
|
468
|
-
case "com.amazonaws.rbin#InternalServerException":
|
|
469
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
470
|
-
case "ResourceNotFoundException":
|
|
471
|
-
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
472
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
473
|
-
case "ValidationException":
|
|
474
|
-
case "com.amazonaws.rbin#ValidationException":
|
|
475
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
476
|
-
default:
|
|
477
|
-
const parsedBody = parsedOutput.body;
|
|
478
|
-
return throwDefaultError({
|
|
479
|
-
output,
|
|
480
|
-
parsedBody,
|
|
481
|
-
errorCode,
|
|
482
|
-
});
|
|
483
|
-
}
|
|
484
|
-
};
|
|
485
276
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
486
277
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
487
|
-
return
|
|
278
|
+
return de_CommandError(output, context);
|
|
488
279
|
}
|
|
489
280
|
const contents = map({
|
|
490
281
|
$metadata: deserializeMetadata(output),
|
|
@@ -492,34 +283,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
492
283
|
await collectBody(output.body, context);
|
|
493
284
|
return contents;
|
|
494
285
|
};
|
|
495
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
496
|
-
const parsedOutput = {
|
|
497
|
-
...output,
|
|
498
|
-
body: await parseErrorBody(output.body, context),
|
|
499
|
-
};
|
|
500
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
501
|
-
switch (errorCode) {
|
|
502
|
-
case "InternalServerException":
|
|
503
|
-
case "com.amazonaws.rbin#InternalServerException":
|
|
504
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
505
|
-
case "ResourceNotFoundException":
|
|
506
|
-
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
507
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
508
|
-
case "ValidationException":
|
|
509
|
-
case "com.amazonaws.rbin#ValidationException":
|
|
510
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
511
|
-
default:
|
|
512
|
-
const parsedBody = parsedOutput.body;
|
|
513
|
-
return throwDefaultError({
|
|
514
|
-
output,
|
|
515
|
-
parsedBody,
|
|
516
|
-
errorCode,
|
|
517
|
-
});
|
|
518
|
-
}
|
|
519
|
-
};
|
|
520
286
|
export const de_UpdateRuleCommand = async (output, context) => {
|
|
521
287
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
522
|
-
return
|
|
288
|
+
return de_CommandError(output, context);
|
|
523
289
|
}
|
|
524
290
|
const contents = map({
|
|
525
291
|
$metadata: deserializeMetadata(output),
|
|
@@ -539,28 +305,28 @@ export const de_UpdateRuleCommand = async (output, context) => {
|
|
|
539
305
|
Object.assign(contents, doc);
|
|
540
306
|
return contents;
|
|
541
307
|
};
|
|
542
|
-
const
|
|
308
|
+
const de_CommandError = async (output, context) => {
|
|
543
309
|
const parsedOutput = {
|
|
544
310
|
...output,
|
|
545
311
|
body: await parseErrorBody(output.body, context),
|
|
546
312
|
};
|
|
547
313
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
548
314
|
switch (errorCode) {
|
|
549
|
-
case "ConflictException":
|
|
550
|
-
case "com.amazonaws.rbin#ConflictException":
|
|
551
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
552
315
|
case "InternalServerException":
|
|
553
316
|
case "com.amazonaws.rbin#InternalServerException":
|
|
554
317
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
555
|
-
case "ResourceNotFoundException":
|
|
556
|
-
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
557
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
558
318
|
case "ServiceQuotaExceededException":
|
|
559
319
|
case "com.amazonaws.rbin#ServiceQuotaExceededException":
|
|
560
320
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
561
321
|
case "ValidationException":
|
|
562
322
|
case "com.amazonaws.rbin#ValidationException":
|
|
563
323
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
324
|
+
case "ConflictException":
|
|
325
|
+
case "com.amazonaws.rbin#ConflictException":
|
|
326
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
327
|
+
case "ResourceNotFoundException":
|
|
328
|
+
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
329
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
564
330
|
default:
|
|
565
331
|
const parsedBody = parsedOutput.body;
|
|
566
332
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-rbin",
|
|
3
3
|
"description": "AWS SDK for JavaScript Rbin Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.507.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-rbin",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|