@aws-sdk/client-scheduler 3.503.1 → 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 +17 -340
- package/dist-es/protocols/Aws_restJson1.js +16 -339
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -505,7 +505,7 @@ var se_UpdateScheduleCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
505
505
|
}, "se_UpdateScheduleCommand");
|
|
506
506
|
var de_CreateScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
507
507
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
508
|
-
return
|
|
508
|
+
return de_CommandError(output, context);
|
|
509
509
|
}
|
|
510
510
|
const contents = (0, import_smithy_client.map)({
|
|
511
511
|
$metadata: deserializeMetadata(output)
|
|
@@ -517,43 +517,9 @@ var de_CreateScheduleCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
517
517
|
Object.assign(contents, doc);
|
|
518
518
|
return contents;
|
|
519
519
|
}, "de_CreateScheduleCommand");
|
|
520
|
-
var de_CreateScheduleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
521
|
-
const parsedOutput = {
|
|
522
|
-
...output,
|
|
523
|
-
body: await parseErrorBody(output.body, context)
|
|
524
|
-
};
|
|
525
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
526
|
-
switch (errorCode) {
|
|
527
|
-
case "ConflictException":
|
|
528
|
-
case "com.amazonaws.scheduler#ConflictException":
|
|
529
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
530
|
-
case "InternalServerException":
|
|
531
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
532
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
533
|
-
case "ResourceNotFoundException":
|
|
534
|
-
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
535
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
536
|
-
case "ServiceQuotaExceededException":
|
|
537
|
-
case "com.amazonaws.scheduler#ServiceQuotaExceededException":
|
|
538
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
539
|
-
case "ThrottlingException":
|
|
540
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
541
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
542
|
-
case "ValidationException":
|
|
543
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
544
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
545
|
-
default:
|
|
546
|
-
const parsedBody = parsedOutput.body;
|
|
547
|
-
return throwDefaultError({
|
|
548
|
-
output,
|
|
549
|
-
parsedBody,
|
|
550
|
-
errorCode
|
|
551
|
-
});
|
|
552
|
-
}
|
|
553
|
-
}, "de_CreateScheduleCommandError");
|
|
554
520
|
var de_CreateScheduleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
555
521
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
556
|
-
return
|
|
522
|
+
return de_CommandError(output, context);
|
|
557
523
|
}
|
|
558
524
|
const contents = (0, import_smithy_client.map)({
|
|
559
525
|
$metadata: deserializeMetadata(output)
|
|
@@ -565,40 +531,9 @@ var de_CreateScheduleGroupCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
565
531
|
Object.assign(contents, doc);
|
|
566
532
|
return contents;
|
|
567
533
|
}, "de_CreateScheduleGroupCommand");
|
|
568
|
-
var de_CreateScheduleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
569
|
-
const parsedOutput = {
|
|
570
|
-
...output,
|
|
571
|
-
body: await parseErrorBody(output.body, context)
|
|
572
|
-
};
|
|
573
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
574
|
-
switch (errorCode) {
|
|
575
|
-
case "ConflictException":
|
|
576
|
-
case "com.amazonaws.scheduler#ConflictException":
|
|
577
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
578
|
-
case "InternalServerException":
|
|
579
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
580
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
581
|
-
case "ServiceQuotaExceededException":
|
|
582
|
-
case "com.amazonaws.scheduler#ServiceQuotaExceededException":
|
|
583
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
584
|
-
case "ThrottlingException":
|
|
585
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
586
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
587
|
-
case "ValidationException":
|
|
588
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
589
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
590
|
-
default:
|
|
591
|
-
const parsedBody = parsedOutput.body;
|
|
592
|
-
return throwDefaultError({
|
|
593
|
-
output,
|
|
594
|
-
parsedBody,
|
|
595
|
-
errorCode
|
|
596
|
-
});
|
|
597
|
-
}
|
|
598
|
-
}, "de_CreateScheduleGroupCommandError");
|
|
599
534
|
var de_DeleteScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
600
535
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
601
|
-
return
|
|
536
|
+
return de_CommandError(output, context);
|
|
602
537
|
}
|
|
603
538
|
const contents = (0, import_smithy_client.map)({
|
|
604
539
|
$metadata: deserializeMetadata(output)
|
|
@@ -606,40 +541,9 @@ var de_DeleteScheduleCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
606
541
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
607
542
|
return contents;
|
|
608
543
|
}, "de_DeleteScheduleCommand");
|
|
609
|
-
var de_DeleteScheduleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
610
|
-
const parsedOutput = {
|
|
611
|
-
...output,
|
|
612
|
-
body: await parseErrorBody(output.body, context)
|
|
613
|
-
};
|
|
614
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
615
|
-
switch (errorCode) {
|
|
616
|
-
case "ConflictException":
|
|
617
|
-
case "com.amazonaws.scheduler#ConflictException":
|
|
618
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
619
|
-
case "InternalServerException":
|
|
620
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
621
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
622
|
-
case "ResourceNotFoundException":
|
|
623
|
-
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
624
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
625
|
-
case "ThrottlingException":
|
|
626
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
627
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
628
|
-
case "ValidationException":
|
|
629
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
630
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
631
|
-
default:
|
|
632
|
-
const parsedBody = parsedOutput.body;
|
|
633
|
-
return throwDefaultError({
|
|
634
|
-
output,
|
|
635
|
-
parsedBody,
|
|
636
|
-
errorCode
|
|
637
|
-
});
|
|
638
|
-
}
|
|
639
|
-
}, "de_DeleteScheduleCommandError");
|
|
640
544
|
var de_DeleteScheduleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
641
545
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
642
|
-
return
|
|
546
|
+
return de_CommandError(output, context);
|
|
643
547
|
}
|
|
644
548
|
const contents = (0, import_smithy_client.map)({
|
|
645
549
|
$metadata: deserializeMetadata(output)
|
|
@@ -647,40 +551,9 @@ var de_DeleteScheduleGroupCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
647
551
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
648
552
|
return contents;
|
|
649
553
|
}, "de_DeleteScheduleGroupCommand");
|
|
650
|
-
var de_DeleteScheduleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
651
|
-
const parsedOutput = {
|
|
652
|
-
...output,
|
|
653
|
-
body: await parseErrorBody(output.body, context)
|
|
654
|
-
};
|
|
655
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
656
|
-
switch (errorCode) {
|
|
657
|
-
case "ConflictException":
|
|
658
|
-
case "com.amazonaws.scheduler#ConflictException":
|
|
659
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
660
|
-
case "InternalServerException":
|
|
661
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
662
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
663
|
-
case "ResourceNotFoundException":
|
|
664
|
-
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
665
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
666
|
-
case "ThrottlingException":
|
|
667
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
668
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
669
|
-
case "ValidationException":
|
|
670
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
671
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
672
|
-
default:
|
|
673
|
-
const parsedBody = parsedOutput.body;
|
|
674
|
-
return throwDefaultError({
|
|
675
|
-
output,
|
|
676
|
-
parsedBody,
|
|
677
|
-
errorCode
|
|
678
|
-
});
|
|
679
|
-
}
|
|
680
|
-
}, "de_DeleteScheduleGroupCommandError");
|
|
681
554
|
var de_GetScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
682
555
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
683
|
-
return
|
|
556
|
+
return de_CommandError(output, context);
|
|
684
557
|
}
|
|
685
558
|
const contents = (0, import_smithy_client.map)({
|
|
686
559
|
$metadata: deserializeMetadata(output)
|
|
@@ -706,37 +579,9 @@ var de_GetScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
706
579
|
Object.assign(contents, doc);
|
|
707
580
|
return contents;
|
|
708
581
|
}, "de_GetScheduleCommand");
|
|
709
|
-
var de_GetScheduleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
710
|
-
const parsedOutput = {
|
|
711
|
-
...output,
|
|
712
|
-
body: await parseErrorBody(output.body, context)
|
|
713
|
-
};
|
|
714
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
715
|
-
switch (errorCode) {
|
|
716
|
-
case "InternalServerException":
|
|
717
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
718
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
719
|
-
case "ResourceNotFoundException":
|
|
720
|
-
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
721
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
722
|
-
case "ThrottlingException":
|
|
723
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
724
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
725
|
-
case "ValidationException":
|
|
726
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
727
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
728
|
-
default:
|
|
729
|
-
const parsedBody = parsedOutput.body;
|
|
730
|
-
return throwDefaultError({
|
|
731
|
-
output,
|
|
732
|
-
parsedBody,
|
|
733
|
-
errorCode
|
|
734
|
-
});
|
|
735
|
-
}
|
|
736
|
-
}, "de_GetScheduleCommandError");
|
|
737
582
|
var de_GetScheduleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
738
583
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
739
|
-
return
|
|
584
|
+
return de_CommandError(output, context);
|
|
740
585
|
}
|
|
741
586
|
const contents = (0, import_smithy_client.map)({
|
|
742
587
|
$metadata: deserializeMetadata(output)
|
|
@@ -752,37 +597,9 @@ var de_GetScheduleGroupCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
752
597
|
Object.assign(contents, doc);
|
|
753
598
|
return contents;
|
|
754
599
|
}, "de_GetScheduleGroupCommand");
|
|
755
|
-
var de_GetScheduleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
756
|
-
const parsedOutput = {
|
|
757
|
-
...output,
|
|
758
|
-
body: await parseErrorBody(output.body, context)
|
|
759
|
-
};
|
|
760
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
761
|
-
switch (errorCode) {
|
|
762
|
-
case "InternalServerException":
|
|
763
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
764
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
765
|
-
case "ResourceNotFoundException":
|
|
766
|
-
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
767
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
768
|
-
case "ThrottlingException":
|
|
769
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
770
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
771
|
-
case "ValidationException":
|
|
772
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
773
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
774
|
-
default:
|
|
775
|
-
const parsedBody = parsedOutput.body;
|
|
776
|
-
return throwDefaultError({
|
|
777
|
-
output,
|
|
778
|
-
parsedBody,
|
|
779
|
-
errorCode
|
|
780
|
-
});
|
|
781
|
-
}
|
|
782
|
-
}, "de_GetScheduleGroupCommandError");
|
|
783
600
|
var de_ListScheduleGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
784
601
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
785
|
-
return
|
|
602
|
+
return de_CommandError(output, context);
|
|
786
603
|
}
|
|
787
604
|
const contents = (0, import_smithy_client.map)({
|
|
788
605
|
$metadata: deserializeMetadata(output)
|
|
@@ -795,34 +612,9 @@ var de_ListScheduleGroupsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
795
612
|
Object.assign(contents, doc);
|
|
796
613
|
return contents;
|
|
797
614
|
}, "de_ListScheduleGroupsCommand");
|
|
798
|
-
var de_ListScheduleGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
799
|
-
const parsedOutput = {
|
|
800
|
-
...output,
|
|
801
|
-
body: await parseErrorBody(output.body, context)
|
|
802
|
-
};
|
|
803
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
804
|
-
switch (errorCode) {
|
|
805
|
-
case "InternalServerException":
|
|
806
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
807
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
808
|
-
case "ThrottlingException":
|
|
809
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
810
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
811
|
-
case "ValidationException":
|
|
812
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
813
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
814
|
-
default:
|
|
815
|
-
const parsedBody = parsedOutput.body;
|
|
816
|
-
return throwDefaultError({
|
|
817
|
-
output,
|
|
818
|
-
parsedBody,
|
|
819
|
-
errorCode
|
|
820
|
-
});
|
|
821
|
-
}
|
|
822
|
-
}, "de_ListScheduleGroupsCommandError");
|
|
823
615
|
var de_ListSchedulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
824
616
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
825
|
-
return
|
|
617
|
+
return de_CommandError(output, context);
|
|
826
618
|
}
|
|
827
619
|
const contents = (0, import_smithy_client.map)({
|
|
828
620
|
$metadata: deserializeMetadata(output)
|
|
@@ -835,37 +627,9 @@ var de_ListSchedulesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
835
627
|
Object.assign(contents, doc);
|
|
836
628
|
return contents;
|
|
837
629
|
}, "de_ListSchedulesCommand");
|
|
838
|
-
var de_ListSchedulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
839
|
-
const parsedOutput = {
|
|
840
|
-
...output,
|
|
841
|
-
body: await parseErrorBody(output.body, context)
|
|
842
|
-
};
|
|
843
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
844
|
-
switch (errorCode) {
|
|
845
|
-
case "InternalServerException":
|
|
846
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
847
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
848
|
-
case "ResourceNotFoundException":
|
|
849
|
-
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
850
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
851
|
-
case "ThrottlingException":
|
|
852
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
853
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
854
|
-
case "ValidationException":
|
|
855
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
856
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
857
|
-
default:
|
|
858
|
-
const parsedBody = parsedOutput.body;
|
|
859
|
-
return throwDefaultError({
|
|
860
|
-
output,
|
|
861
|
-
parsedBody,
|
|
862
|
-
errorCode
|
|
863
|
-
});
|
|
864
|
-
}
|
|
865
|
-
}, "de_ListSchedulesCommandError");
|
|
866
630
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
867
631
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
868
|
-
return
|
|
632
|
+
return de_CommandError(output, context);
|
|
869
633
|
}
|
|
870
634
|
const contents = (0, import_smithy_client.map)({
|
|
871
635
|
$metadata: deserializeMetadata(output)
|
|
@@ -877,37 +641,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
877
641
|
Object.assign(contents, doc);
|
|
878
642
|
return contents;
|
|
879
643
|
}, "de_ListTagsForResourceCommand");
|
|
880
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
881
|
-
const parsedOutput = {
|
|
882
|
-
...output,
|
|
883
|
-
body: await parseErrorBody(output.body, context)
|
|
884
|
-
};
|
|
885
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
886
|
-
switch (errorCode) {
|
|
887
|
-
case "InternalServerException":
|
|
888
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
889
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
890
|
-
case "ResourceNotFoundException":
|
|
891
|
-
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
892
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
893
|
-
case "ThrottlingException":
|
|
894
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
895
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
896
|
-
case "ValidationException":
|
|
897
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
898
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
899
|
-
default:
|
|
900
|
-
const parsedBody = parsedOutput.body;
|
|
901
|
-
return throwDefaultError({
|
|
902
|
-
output,
|
|
903
|
-
parsedBody,
|
|
904
|
-
errorCode
|
|
905
|
-
});
|
|
906
|
-
}
|
|
907
|
-
}, "de_ListTagsForResourceCommandError");
|
|
908
644
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
909
645
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
910
|
-
return
|
|
646
|
+
return de_CommandError(output, context);
|
|
911
647
|
}
|
|
912
648
|
const contents = (0, import_smithy_client.map)({
|
|
913
649
|
$metadata: deserializeMetadata(output)
|
|
@@ -915,40 +651,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
915
651
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
916
652
|
return contents;
|
|
917
653
|
}, "de_TagResourceCommand");
|
|
918
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
919
|
-
const parsedOutput = {
|
|
920
|
-
...output,
|
|
921
|
-
body: await parseErrorBody(output.body, context)
|
|
922
|
-
};
|
|
923
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
924
|
-
switch (errorCode) {
|
|
925
|
-
case "ConflictException":
|
|
926
|
-
case "com.amazonaws.scheduler#ConflictException":
|
|
927
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
928
|
-
case "InternalServerException":
|
|
929
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
930
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
931
|
-
case "ResourceNotFoundException":
|
|
932
|
-
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
933
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
934
|
-
case "ThrottlingException":
|
|
935
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
936
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
937
|
-
case "ValidationException":
|
|
938
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
939
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
940
|
-
default:
|
|
941
|
-
const parsedBody = parsedOutput.body;
|
|
942
|
-
return throwDefaultError({
|
|
943
|
-
output,
|
|
944
|
-
parsedBody,
|
|
945
|
-
errorCode
|
|
946
|
-
});
|
|
947
|
-
}
|
|
948
|
-
}, "de_TagResourceCommandError");
|
|
949
654
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
950
655
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
951
|
-
return
|
|
656
|
+
return de_CommandError(output, context);
|
|
952
657
|
}
|
|
953
658
|
const contents = (0, import_smithy_client.map)({
|
|
954
659
|
$metadata: deserializeMetadata(output)
|
|
@@ -956,40 +661,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
956
661
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
957
662
|
return contents;
|
|
958
663
|
}, "de_UntagResourceCommand");
|
|
959
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
960
|
-
const parsedOutput = {
|
|
961
|
-
...output,
|
|
962
|
-
body: await parseErrorBody(output.body, context)
|
|
963
|
-
};
|
|
964
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
965
|
-
switch (errorCode) {
|
|
966
|
-
case "ConflictException":
|
|
967
|
-
case "com.amazonaws.scheduler#ConflictException":
|
|
968
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
969
|
-
case "InternalServerException":
|
|
970
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
971
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
972
|
-
case "ResourceNotFoundException":
|
|
973
|
-
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
974
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
975
|
-
case "ThrottlingException":
|
|
976
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
977
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
978
|
-
case "ValidationException":
|
|
979
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
980
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
981
|
-
default:
|
|
982
|
-
const parsedBody = parsedOutput.body;
|
|
983
|
-
return throwDefaultError({
|
|
984
|
-
output,
|
|
985
|
-
parsedBody,
|
|
986
|
-
errorCode
|
|
987
|
-
});
|
|
988
|
-
}
|
|
989
|
-
}, "de_UntagResourceCommandError");
|
|
990
664
|
var de_UpdateScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
991
665
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
992
|
-
return
|
|
666
|
+
return de_CommandError(output, context);
|
|
993
667
|
}
|
|
994
668
|
const contents = (0, import_smithy_client.map)({
|
|
995
669
|
$metadata: deserializeMetadata(output)
|
|
@@ -1001,7 +675,7 @@ var de_UpdateScheduleCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1001
675
|
Object.assign(contents, doc);
|
|
1002
676
|
return contents;
|
|
1003
677
|
}, "de_UpdateScheduleCommand");
|
|
1004
|
-
var
|
|
678
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1005
679
|
const parsedOutput = {
|
|
1006
680
|
...output,
|
|
1007
681
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1017,6 +691,9 @@ var de_UpdateScheduleCommandError = /* @__PURE__ */ __name(async (output, contex
|
|
|
1017
691
|
case "ResourceNotFoundException":
|
|
1018
692
|
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
1019
693
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
694
|
+
case "ServiceQuotaExceededException":
|
|
695
|
+
case "com.amazonaws.scheduler#ServiceQuotaExceededException":
|
|
696
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1020
697
|
case "ThrottlingException":
|
|
1021
698
|
case "com.amazonaws.scheduler#ThrottlingException":
|
|
1022
699
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -1031,7 +708,7 @@ var de_UpdateScheduleCommandError = /* @__PURE__ */ __name(async (output, contex
|
|
|
1031
708
|
errorCode
|
|
1032
709
|
});
|
|
1033
710
|
}
|
|
1034
|
-
}, "
|
|
711
|
+
}, "de_CommandError");
|
|
1035
712
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(SchedulerServiceException);
|
|
1036
713
|
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1037
714
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -182,7 +182,7 @@ export const se_UpdateScheduleCommand = async (input, context) => {
|
|
|
182
182
|
};
|
|
183
183
|
export const de_CreateScheduleCommand = async (output, context) => {
|
|
184
184
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
185
|
-
return
|
|
185
|
+
return de_CommandError(output, context);
|
|
186
186
|
}
|
|
187
187
|
const contents = map({
|
|
188
188
|
$metadata: deserializeMetadata(output),
|
|
@@ -194,43 +194,9 @@ export const de_CreateScheduleCommand = async (output, context) => {
|
|
|
194
194
|
Object.assign(contents, doc);
|
|
195
195
|
return contents;
|
|
196
196
|
};
|
|
197
|
-
const de_CreateScheduleCommandError = async (output, context) => {
|
|
198
|
-
const parsedOutput = {
|
|
199
|
-
...output,
|
|
200
|
-
body: await parseErrorBody(output.body, context),
|
|
201
|
-
};
|
|
202
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
203
|
-
switch (errorCode) {
|
|
204
|
-
case "ConflictException":
|
|
205
|
-
case "com.amazonaws.scheduler#ConflictException":
|
|
206
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
207
|
-
case "InternalServerException":
|
|
208
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
209
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
210
|
-
case "ResourceNotFoundException":
|
|
211
|
-
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
212
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
213
|
-
case "ServiceQuotaExceededException":
|
|
214
|
-
case "com.amazonaws.scheduler#ServiceQuotaExceededException":
|
|
215
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
216
|
-
case "ThrottlingException":
|
|
217
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
218
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
219
|
-
case "ValidationException":
|
|
220
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
221
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
222
|
-
default:
|
|
223
|
-
const parsedBody = parsedOutput.body;
|
|
224
|
-
return throwDefaultError({
|
|
225
|
-
output,
|
|
226
|
-
parsedBody,
|
|
227
|
-
errorCode,
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
197
|
export const de_CreateScheduleGroupCommand = async (output, context) => {
|
|
232
198
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
233
|
-
return
|
|
199
|
+
return de_CommandError(output, context);
|
|
234
200
|
}
|
|
235
201
|
const contents = map({
|
|
236
202
|
$metadata: deserializeMetadata(output),
|
|
@@ -242,40 +208,9 @@ export const de_CreateScheduleGroupCommand = async (output, context) => {
|
|
|
242
208
|
Object.assign(contents, doc);
|
|
243
209
|
return contents;
|
|
244
210
|
};
|
|
245
|
-
const de_CreateScheduleGroupCommandError = 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 "ConflictException":
|
|
253
|
-
case "com.amazonaws.scheduler#ConflictException":
|
|
254
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
255
|
-
case "InternalServerException":
|
|
256
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
257
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
258
|
-
case "ServiceQuotaExceededException":
|
|
259
|
-
case "com.amazonaws.scheduler#ServiceQuotaExceededException":
|
|
260
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
261
|
-
case "ThrottlingException":
|
|
262
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
263
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
264
|
-
case "ValidationException":
|
|
265
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
266
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
267
|
-
default:
|
|
268
|
-
const parsedBody = parsedOutput.body;
|
|
269
|
-
return throwDefaultError({
|
|
270
|
-
output,
|
|
271
|
-
parsedBody,
|
|
272
|
-
errorCode,
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
};
|
|
276
211
|
export const de_DeleteScheduleCommand = async (output, context) => {
|
|
277
212
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
278
|
-
return
|
|
213
|
+
return de_CommandError(output, context);
|
|
279
214
|
}
|
|
280
215
|
const contents = map({
|
|
281
216
|
$metadata: deserializeMetadata(output),
|
|
@@ -283,40 +218,9 @@ export const de_DeleteScheduleCommand = async (output, context) => {
|
|
|
283
218
|
await collectBody(output.body, context);
|
|
284
219
|
return contents;
|
|
285
220
|
};
|
|
286
|
-
const de_DeleteScheduleCommandError = async (output, context) => {
|
|
287
|
-
const parsedOutput = {
|
|
288
|
-
...output,
|
|
289
|
-
body: await parseErrorBody(output.body, context),
|
|
290
|
-
};
|
|
291
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
292
|
-
switch (errorCode) {
|
|
293
|
-
case "ConflictException":
|
|
294
|
-
case "com.amazonaws.scheduler#ConflictException":
|
|
295
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
296
|
-
case "InternalServerException":
|
|
297
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
298
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
299
|
-
case "ResourceNotFoundException":
|
|
300
|
-
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
301
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
302
|
-
case "ThrottlingException":
|
|
303
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
304
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
305
|
-
case "ValidationException":
|
|
306
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
307
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
308
|
-
default:
|
|
309
|
-
const parsedBody = parsedOutput.body;
|
|
310
|
-
return throwDefaultError({
|
|
311
|
-
output,
|
|
312
|
-
parsedBody,
|
|
313
|
-
errorCode,
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
};
|
|
317
221
|
export const de_DeleteScheduleGroupCommand = async (output, context) => {
|
|
318
222
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
319
|
-
return
|
|
223
|
+
return de_CommandError(output, context);
|
|
320
224
|
}
|
|
321
225
|
const contents = map({
|
|
322
226
|
$metadata: deserializeMetadata(output),
|
|
@@ -324,40 +228,9 @@ export const de_DeleteScheduleGroupCommand = async (output, context) => {
|
|
|
324
228
|
await collectBody(output.body, context);
|
|
325
229
|
return contents;
|
|
326
230
|
};
|
|
327
|
-
const de_DeleteScheduleGroupCommandError = async (output, context) => {
|
|
328
|
-
const parsedOutput = {
|
|
329
|
-
...output,
|
|
330
|
-
body: await parseErrorBody(output.body, context),
|
|
331
|
-
};
|
|
332
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
333
|
-
switch (errorCode) {
|
|
334
|
-
case "ConflictException":
|
|
335
|
-
case "com.amazonaws.scheduler#ConflictException":
|
|
336
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
337
|
-
case "InternalServerException":
|
|
338
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
339
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
340
|
-
case "ResourceNotFoundException":
|
|
341
|
-
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
342
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
343
|
-
case "ThrottlingException":
|
|
344
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
345
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
346
|
-
case "ValidationException":
|
|
347
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
348
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
349
|
-
default:
|
|
350
|
-
const parsedBody = parsedOutput.body;
|
|
351
|
-
return throwDefaultError({
|
|
352
|
-
output,
|
|
353
|
-
parsedBody,
|
|
354
|
-
errorCode,
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
|
-
};
|
|
358
231
|
export const de_GetScheduleCommand = async (output, context) => {
|
|
359
232
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
360
|
-
return
|
|
233
|
+
return de_CommandError(output, context);
|
|
361
234
|
}
|
|
362
235
|
const contents = map({
|
|
363
236
|
$metadata: deserializeMetadata(output),
|
|
@@ -383,37 +256,9 @@ export const de_GetScheduleCommand = async (output, context) => {
|
|
|
383
256
|
Object.assign(contents, doc);
|
|
384
257
|
return contents;
|
|
385
258
|
};
|
|
386
|
-
const de_GetScheduleCommandError = async (output, context) => {
|
|
387
|
-
const parsedOutput = {
|
|
388
|
-
...output,
|
|
389
|
-
body: await parseErrorBody(output.body, context),
|
|
390
|
-
};
|
|
391
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
392
|
-
switch (errorCode) {
|
|
393
|
-
case "InternalServerException":
|
|
394
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
395
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
396
|
-
case "ResourceNotFoundException":
|
|
397
|
-
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
398
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
399
|
-
case "ThrottlingException":
|
|
400
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
401
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
402
|
-
case "ValidationException":
|
|
403
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
404
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
405
|
-
default:
|
|
406
|
-
const parsedBody = parsedOutput.body;
|
|
407
|
-
return throwDefaultError({
|
|
408
|
-
output,
|
|
409
|
-
parsedBody,
|
|
410
|
-
errorCode,
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
};
|
|
414
259
|
export const de_GetScheduleGroupCommand = async (output, context) => {
|
|
415
260
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
416
|
-
return
|
|
261
|
+
return de_CommandError(output, context);
|
|
417
262
|
}
|
|
418
263
|
const contents = map({
|
|
419
264
|
$metadata: deserializeMetadata(output),
|
|
@@ -429,37 +274,9 @@ export const de_GetScheduleGroupCommand = async (output, context) => {
|
|
|
429
274
|
Object.assign(contents, doc);
|
|
430
275
|
return contents;
|
|
431
276
|
};
|
|
432
|
-
const de_GetScheduleGroupCommandError = async (output, context) => {
|
|
433
|
-
const parsedOutput = {
|
|
434
|
-
...output,
|
|
435
|
-
body: await parseErrorBody(output.body, context),
|
|
436
|
-
};
|
|
437
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
438
|
-
switch (errorCode) {
|
|
439
|
-
case "InternalServerException":
|
|
440
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
441
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
442
|
-
case "ResourceNotFoundException":
|
|
443
|
-
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
444
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
445
|
-
case "ThrottlingException":
|
|
446
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
447
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
448
|
-
case "ValidationException":
|
|
449
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
450
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
451
|
-
default:
|
|
452
|
-
const parsedBody = parsedOutput.body;
|
|
453
|
-
return throwDefaultError({
|
|
454
|
-
output,
|
|
455
|
-
parsedBody,
|
|
456
|
-
errorCode,
|
|
457
|
-
});
|
|
458
|
-
}
|
|
459
|
-
};
|
|
460
277
|
export const de_ListScheduleGroupsCommand = async (output, context) => {
|
|
461
278
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
462
|
-
return
|
|
279
|
+
return de_CommandError(output, context);
|
|
463
280
|
}
|
|
464
281
|
const contents = map({
|
|
465
282
|
$metadata: deserializeMetadata(output),
|
|
@@ -472,34 +289,9 @@ export const de_ListScheduleGroupsCommand = async (output, context) => {
|
|
|
472
289
|
Object.assign(contents, doc);
|
|
473
290
|
return contents;
|
|
474
291
|
};
|
|
475
|
-
const de_ListScheduleGroupsCommandError = async (output, context) => {
|
|
476
|
-
const parsedOutput = {
|
|
477
|
-
...output,
|
|
478
|
-
body: await parseErrorBody(output.body, context),
|
|
479
|
-
};
|
|
480
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
481
|
-
switch (errorCode) {
|
|
482
|
-
case "InternalServerException":
|
|
483
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
484
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
485
|
-
case "ThrottlingException":
|
|
486
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
487
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
488
|
-
case "ValidationException":
|
|
489
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
490
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
491
|
-
default:
|
|
492
|
-
const parsedBody = parsedOutput.body;
|
|
493
|
-
return throwDefaultError({
|
|
494
|
-
output,
|
|
495
|
-
parsedBody,
|
|
496
|
-
errorCode,
|
|
497
|
-
});
|
|
498
|
-
}
|
|
499
|
-
};
|
|
500
292
|
export const de_ListSchedulesCommand = async (output, context) => {
|
|
501
293
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
502
|
-
return
|
|
294
|
+
return de_CommandError(output, context);
|
|
503
295
|
}
|
|
504
296
|
const contents = map({
|
|
505
297
|
$metadata: deserializeMetadata(output),
|
|
@@ -512,37 +304,9 @@ export const de_ListSchedulesCommand = async (output, context) => {
|
|
|
512
304
|
Object.assign(contents, doc);
|
|
513
305
|
return contents;
|
|
514
306
|
};
|
|
515
|
-
const de_ListSchedulesCommandError = async (output, context) => {
|
|
516
|
-
const parsedOutput = {
|
|
517
|
-
...output,
|
|
518
|
-
body: await parseErrorBody(output.body, context),
|
|
519
|
-
};
|
|
520
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
521
|
-
switch (errorCode) {
|
|
522
|
-
case "InternalServerException":
|
|
523
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
524
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
525
|
-
case "ResourceNotFoundException":
|
|
526
|
-
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
527
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
528
|
-
case "ThrottlingException":
|
|
529
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
530
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
531
|
-
case "ValidationException":
|
|
532
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
533
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
534
|
-
default:
|
|
535
|
-
const parsedBody = parsedOutput.body;
|
|
536
|
-
return throwDefaultError({
|
|
537
|
-
output,
|
|
538
|
-
parsedBody,
|
|
539
|
-
errorCode,
|
|
540
|
-
});
|
|
541
|
-
}
|
|
542
|
-
};
|
|
543
307
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
544
308
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
545
|
-
return
|
|
309
|
+
return de_CommandError(output, context);
|
|
546
310
|
}
|
|
547
311
|
const contents = map({
|
|
548
312
|
$metadata: deserializeMetadata(output),
|
|
@@ -554,37 +318,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
554
318
|
Object.assign(contents, doc);
|
|
555
319
|
return contents;
|
|
556
320
|
};
|
|
557
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
558
|
-
const parsedOutput = {
|
|
559
|
-
...output,
|
|
560
|
-
body: await parseErrorBody(output.body, context),
|
|
561
|
-
};
|
|
562
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
563
|
-
switch (errorCode) {
|
|
564
|
-
case "InternalServerException":
|
|
565
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
566
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
567
|
-
case "ResourceNotFoundException":
|
|
568
|
-
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
569
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
570
|
-
case "ThrottlingException":
|
|
571
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
572
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
573
|
-
case "ValidationException":
|
|
574
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
575
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
576
|
-
default:
|
|
577
|
-
const parsedBody = parsedOutput.body;
|
|
578
|
-
return throwDefaultError({
|
|
579
|
-
output,
|
|
580
|
-
parsedBody,
|
|
581
|
-
errorCode,
|
|
582
|
-
});
|
|
583
|
-
}
|
|
584
|
-
};
|
|
585
321
|
export const de_TagResourceCommand = async (output, context) => {
|
|
586
322
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
587
|
-
return
|
|
323
|
+
return de_CommandError(output, context);
|
|
588
324
|
}
|
|
589
325
|
const contents = map({
|
|
590
326
|
$metadata: deserializeMetadata(output),
|
|
@@ -592,40 +328,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
592
328
|
await collectBody(output.body, context);
|
|
593
329
|
return contents;
|
|
594
330
|
};
|
|
595
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
596
|
-
const parsedOutput = {
|
|
597
|
-
...output,
|
|
598
|
-
body: await parseErrorBody(output.body, context),
|
|
599
|
-
};
|
|
600
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
601
|
-
switch (errorCode) {
|
|
602
|
-
case "ConflictException":
|
|
603
|
-
case "com.amazonaws.scheduler#ConflictException":
|
|
604
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
605
|
-
case "InternalServerException":
|
|
606
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
607
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
608
|
-
case "ResourceNotFoundException":
|
|
609
|
-
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
610
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
611
|
-
case "ThrottlingException":
|
|
612
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
613
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
614
|
-
case "ValidationException":
|
|
615
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
616
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
617
|
-
default:
|
|
618
|
-
const parsedBody = parsedOutput.body;
|
|
619
|
-
return throwDefaultError({
|
|
620
|
-
output,
|
|
621
|
-
parsedBody,
|
|
622
|
-
errorCode,
|
|
623
|
-
});
|
|
624
|
-
}
|
|
625
|
-
};
|
|
626
331
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
627
332
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
628
|
-
return
|
|
333
|
+
return de_CommandError(output, context);
|
|
629
334
|
}
|
|
630
335
|
const contents = map({
|
|
631
336
|
$metadata: deserializeMetadata(output),
|
|
@@ -633,40 +338,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
633
338
|
await collectBody(output.body, context);
|
|
634
339
|
return contents;
|
|
635
340
|
};
|
|
636
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
637
|
-
const parsedOutput = {
|
|
638
|
-
...output,
|
|
639
|
-
body: await parseErrorBody(output.body, context),
|
|
640
|
-
};
|
|
641
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
642
|
-
switch (errorCode) {
|
|
643
|
-
case "ConflictException":
|
|
644
|
-
case "com.amazonaws.scheduler#ConflictException":
|
|
645
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
646
|
-
case "InternalServerException":
|
|
647
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
648
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
649
|
-
case "ResourceNotFoundException":
|
|
650
|
-
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
651
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
652
|
-
case "ThrottlingException":
|
|
653
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
654
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
655
|
-
case "ValidationException":
|
|
656
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
657
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
658
|
-
default:
|
|
659
|
-
const parsedBody = parsedOutput.body;
|
|
660
|
-
return throwDefaultError({
|
|
661
|
-
output,
|
|
662
|
-
parsedBody,
|
|
663
|
-
errorCode,
|
|
664
|
-
});
|
|
665
|
-
}
|
|
666
|
-
};
|
|
667
341
|
export const de_UpdateScheduleCommand = async (output, context) => {
|
|
668
342
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
669
|
-
return
|
|
343
|
+
return de_CommandError(output, context);
|
|
670
344
|
}
|
|
671
345
|
const contents = map({
|
|
672
346
|
$metadata: deserializeMetadata(output),
|
|
@@ -678,7 +352,7 @@ export const de_UpdateScheduleCommand = async (output, context) => {
|
|
|
678
352
|
Object.assign(contents, doc);
|
|
679
353
|
return contents;
|
|
680
354
|
};
|
|
681
|
-
const
|
|
355
|
+
const de_CommandError = async (output, context) => {
|
|
682
356
|
const parsedOutput = {
|
|
683
357
|
...output,
|
|
684
358
|
body: await parseErrorBody(output.body, context),
|
|
@@ -694,6 +368,9 @@ const de_UpdateScheduleCommandError = async (output, context) => {
|
|
|
694
368
|
case "ResourceNotFoundException":
|
|
695
369
|
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
696
370
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
371
|
+
case "ServiceQuotaExceededException":
|
|
372
|
+
case "com.amazonaws.scheduler#ServiceQuotaExceededException":
|
|
373
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
697
374
|
case "ThrottlingException":
|
|
698
375
|
case "com.amazonaws.scheduler#ThrottlingException":
|
|
699
376
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-scheduler",
|
|
3
3
|
"description": "AWS SDK for JavaScript Scheduler 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-scheduler",
|
|
@@ -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",
|