@aws-sdk/client-networkmonitor 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 +20 -376
- package/dist-es/protocols/Aws_restJson1.js +19 -375
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -481,7 +481,7 @@ var se_UpdateProbeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
481
481
|
}, "se_UpdateProbeCommand");
|
|
482
482
|
var de_CreateMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
483
483
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
484
|
-
return
|
|
484
|
+
return de_CommandError(output, context);
|
|
485
485
|
}
|
|
486
486
|
const contents = (0, import_smithy_client.map)({
|
|
487
487
|
$metadata: deserializeMetadata(output)
|
|
@@ -497,43 +497,9 @@ var de_CreateMonitorCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
497
497
|
Object.assign(contents, doc);
|
|
498
498
|
return contents;
|
|
499
499
|
}, "de_CreateMonitorCommand");
|
|
500
|
-
var de_CreateMonitorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
501
|
-
const parsedOutput = {
|
|
502
|
-
...output,
|
|
503
|
-
body: await parseErrorBody(output.body, context)
|
|
504
|
-
};
|
|
505
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
506
|
-
switch (errorCode) {
|
|
507
|
-
case "AccessDeniedException":
|
|
508
|
-
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
509
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
510
|
-
case "ConflictException":
|
|
511
|
-
case "com.amazonaws.networkmonitor#ConflictException":
|
|
512
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
513
|
-
case "InternalServerException":
|
|
514
|
-
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
515
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
516
|
-
case "ServiceQuotaExceededException":
|
|
517
|
-
case "com.amazonaws.networkmonitor#ServiceQuotaExceededException":
|
|
518
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
519
|
-
case "ThrottlingException":
|
|
520
|
-
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
521
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
522
|
-
case "ValidationException":
|
|
523
|
-
case "com.amazonaws.networkmonitor#ValidationException":
|
|
524
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
525
|
-
default:
|
|
526
|
-
const parsedBody = parsedOutput.body;
|
|
527
|
-
return throwDefaultError({
|
|
528
|
-
output,
|
|
529
|
-
parsedBody,
|
|
530
|
-
errorCode
|
|
531
|
-
});
|
|
532
|
-
}
|
|
533
|
-
}, "de_CreateMonitorCommandError");
|
|
534
500
|
var de_CreateProbeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
535
501
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
536
|
-
return
|
|
502
|
+
return de_CommandError(output, context);
|
|
537
503
|
}
|
|
538
504
|
const contents = (0, import_smithy_client.map)({
|
|
539
505
|
$metadata: deserializeMetadata(output)
|
|
@@ -557,43 +523,9 @@ var de_CreateProbeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
557
523
|
Object.assign(contents, doc);
|
|
558
524
|
return contents;
|
|
559
525
|
}, "de_CreateProbeCommand");
|
|
560
|
-
var de_CreateProbeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
561
|
-
const parsedOutput = {
|
|
562
|
-
...output,
|
|
563
|
-
body: await parseErrorBody(output.body, context)
|
|
564
|
-
};
|
|
565
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
566
|
-
switch (errorCode) {
|
|
567
|
-
case "AccessDeniedException":
|
|
568
|
-
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
569
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
570
|
-
case "InternalServerException":
|
|
571
|
-
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
572
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
573
|
-
case "ResourceNotFoundException":
|
|
574
|
-
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
575
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
576
|
-
case "ServiceQuotaExceededException":
|
|
577
|
-
case "com.amazonaws.networkmonitor#ServiceQuotaExceededException":
|
|
578
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
579
|
-
case "ThrottlingException":
|
|
580
|
-
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
581
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
582
|
-
case "ValidationException":
|
|
583
|
-
case "com.amazonaws.networkmonitor#ValidationException":
|
|
584
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
585
|
-
default:
|
|
586
|
-
const parsedBody = parsedOutput.body;
|
|
587
|
-
return throwDefaultError({
|
|
588
|
-
output,
|
|
589
|
-
parsedBody,
|
|
590
|
-
errorCode
|
|
591
|
-
});
|
|
592
|
-
}
|
|
593
|
-
}, "de_CreateProbeCommandError");
|
|
594
526
|
var de_DeleteMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
595
527
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
596
|
-
return
|
|
528
|
+
return de_CommandError(output, context);
|
|
597
529
|
}
|
|
598
530
|
const contents = (0, import_smithy_client.map)({
|
|
599
531
|
$metadata: deserializeMetadata(output)
|
|
@@ -601,40 +533,9 @@ var de_DeleteMonitorCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
601
533
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
602
534
|
return contents;
|
|
603
535
|
}, "de_DeleteMonitorCommand");
|
|
604
|
-
var de_DeleteMonitorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
605
|
-
const parsedOutput = {
|
|
606
|
-
...output,
|
|
607
|
-
body: await parseErrorBody(output.body, context)
|
|
608
|
-
};
|
|
609
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
610
|
-
switch (errorCode) {
|
|
611
|
-
case "AccessDeniedException":
|
|
612
|
-
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
613
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
614
|
-
case "InternalServerException":
|
|
615
|
-
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
616
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
617
|
-
case "ResourceNotFoundException":
|
|
618
|
-
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
619
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
620
|
-
case "ThrottlingException":
|
|
621
|
-
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
622
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
623
|
-
case "ValidationException":
|
|
624
|
-
case "com.amazonaws.networkmonitor#ValidationException":
|
|
625
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
626
|
-
default:
|
|
627
|
-
const parsedBody = parsedOutput.body;
|
|
628
|
-
return throwDefaultError({
|
|
629
|
-
output,
|
|
630
|
-
parsedBody,
|
|
631
|
-
errorCode
|
|
632
|
-
});
|
|
633
|
-
}
|
|
634
|
-
}, "de_DeleteMonitorCommandError");
|
|
635
536
|
var de_DeleteProbeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
636
537
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
637
|
-
return
|
|
538
|
+
return de_CommandError(output, context);
|
|
638
539
|
}
|
|
639
540
|
const contents = (0, import_smithy_client.map)({
|
|
640
541
|
$metadata: deserializeMetadata(output)
|
|
@@ -642,43 +543,9 @@ var de_DeleteProbeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
642
543
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
643
544
|
return contents;
|
|
644
545
|
}, "de_DeleteProbeCommand");
|
|
645
|
-
var de_DeleteProbeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
646
|
-
const parsedOutput = {
|
|
647
|
-
...output,
|
|
648
|
-
body: await parseErrorBody(output.body, context)
|
|
649
|
-
};
|
|
650
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
651
|
-
switch (errorCode) {
|
|
652
|
-
case "AccessDeniedException":
|
|
653
|
-
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
654
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
655
|
-
case "InternalServerException":
|
|
656
|
-
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
657
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
658
|
-
case "ResourceNotFoundException":
|
|
659
|
-
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
660
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
661
|
-
case "ServiceQuotaExceededException":
|
|
662
|
-
case "com.amazonaws.networkmonitor#ServiceQuotaExceededException":
|
|
663
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
664
|
-
case "ThrottlingException":
|
|
665
|
-
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
666
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
667
|
-
case "ValidationException":
|
|
668
|
-
case "com.amazonaws.networkmonitor#ValidationException":
|
|
669
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
670
|
-
default:
|
|
671
|
-
const parsedBody = parsedOutput.body;
|
|
672
|
-
return throwDefaultError({
|
|
673
|
-
output,
|
|
674
|
-
parsedBody,
|
|
675
|
-
errorCode
|
|
676
|
-
});
|
|
677
|
-
}
|
|
678
|
-
}, "de_DeleteProbeCommandError");
|
|
679
546
|
var de_GetMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
680
547
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
681
|
-
return
|
|
548
|
+
return de_CommandError(output, context);
|
|
682
549
|
}
|
|
683
550
|
const contents = (0, import_smithy_client.map)({
|
|
684
551
|
$metadata: deserializeMetadata(output)
|
|
@@ -697,40 +564,9 @@ var de_GetMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
697
564
|
Object.assign(contents, doc);
|
|
698
565
|
return contents;
|
|
699
566
|
}, "de_GetMonitorCommand");
|
|
700
|
-
var de_GetMonitorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
701
|
-
const parsedOutput = {
|
|
702
|
-
...output,
|
|
703
|
-
body: await parseErrorBody(output.body, context)
|
|
704
|
-
};
|
|
705
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
706
|
-
switch (errorCode) {
|
|
707
|
-
case "AccessDeniedException":
|
|
708
|
-
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
709
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
710
|
-
case "InternalServerException":
|
|
711
|
-
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
712
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
713
|
-
case "ResourceNotFoundException":
|
|
714
|
-
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
715
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
716
|
-
case "ThrottlingException":
|
|
717
|
-
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
718
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
719
|
-
case "ValidationException":
|
|
720
|
-
case "com.amazonaws.networkmonitor#ValidationException":
|
|
721
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
722
|
-
default:
|
|
723
|
-
const parsedBody = parsedOutput.body;
|
|
724
|
-
return throwDefaultError({
|
|
725
|
-
output,
|
|
726
|
-
parsedBody,
|
|
727
|
-
errorCode
|
|
728
|
-
});
|
|
729
|
-
}
|
|
730
|
-
}, "de_GetMonitorCommandError");
|
|
731
567
|
var de_GetProbeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
732
568
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
733
|
-
return
|
|
569
|
+
return de_CommandError(output, context);
|
|
734
570
|
}
|
|
735
571
|
const contents = (0, import_smithy_client.map)({
|
|
736
572
|
$metadata: deserializeMetadata(output)
|
|
@@ -754,40 +590,9 @@ var de_GetProbeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
754
590
|
Object.assign(contents, doc);
|
|
755
591
|
return contents;
|
|
756
592
|
}, "de_GetProbeCommand");
|
|
757
|
-
var de_GetProbeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
758
|
-
const parsedOutput = {
|
|
759
|
-
...output,
|
|
760
|
-
body: await parseErrorBody(output.body, context)
|
|
761
|
-
};
|
|
762
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
763
|
-
switch (errorCode) {
|
|
764
|
-
case "AccessDeniedException":
|
|
765
|
-
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
766
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
767
|
-
case "InternalServerException":
|
|
768
|
-
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
769
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
770
|
-
case "ResourceNotFoundException":
|
|
771
|
-
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
772
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
773
|
-
case "ThrottlingException":
|
|
774
|
-
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
775
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
776
|
-
case "ValidationException":
|
|
777
|
-
case "com.amazonaws.networkmonitor#ValidationException":
|
|
778
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
779
|
-
default:
|
|
780
|
-
const parsedBody = parsedOutput.body;
|
|
781
|
-
return throwDefaultError({
|
|
782
|
-
output,
|
|
783
|
-
parsedBody,
|
|
784
|
-
errorCode
|
|
785
|
-
});
|
|
786
|
-
}
|
|
787
|
-
}, "de_GetProbeCommandError");
|
|
788
593
|
var de_ListMonitorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
789
594
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
790
|
-
return
|
|
595
|
+
return de_CommandError(output, context);
|
|
791
596
|
}
|
|
792
597
|
const contents = (0, import_smithy_client.map)({
|
|
793
598
|
$metadata: deserializeMetadata(output)
|
|
@@ -800,37 +605,9 @@ var de_ListMonitorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
800
605
|
Object.assign(contents, doc);
|
|
801
606
|
return contents;
|
|
802
607
|
}, "de_ListMonitorsCommand");
|
|
803
|
-
var de_ListMonitorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
804
|
-
const parsedOutput = {
|
|
805
|
-
...output,
|
|
806
|
-
body: await parseErrorBody(output.body, context)
|
|
807
|
-
};
|
|
808
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
809
|
-
switch (errorCode) {
|
|
810
|
-
case "AccessDeniedException":
|
|
811
|
-
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
812
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
813
|
-
case "InternalServerException":
|
|
814
|
-
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
815
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
816
|
-
case "ThrottlingException":
|
|
817
|
-
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
818
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
819
|
-
case "ValidationException":
|
|
820
|
-
case "com.amazonaws.networkmonitor#ValidationException":
|
|
821
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
822
|
-
default:
|
|
823
|
-
const parsedBody = parsedOutput.body;
|
|
824
|
-
return throwDefaultError({
|
|
825
|
-
output,
|
|
826
|
-
parsedBody,
|
|
827
|
-
errorCode
|
|
828
|
-
});
|
|
829
|
-
}
|
|
830
|
-
}, "de_ListMonitorsCommandError");
|
|
831
608
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
832
609
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
833
|
-
return
|
|
610
|
+
return de_CommandError(output, context);
|
|
834
611
|
}
|
|
835
612
|
const contents = (0, import_smithy_client.map)({
|
|
836
613
|
$metadata: deserializeMetadata(output)
|
|
@@ -842,43 +619,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
842
619
|
Object.assign(contents, doc);
|
|
843
620
|
return contents;
|
|
844
621
|
}, "de_ListTagsForResourceCommand");
|
|
845
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
846
|
-
const parsedOutput = {
|
|
847
|
-
...output,
|
|
848
|
-
body: await parseErrorBody(output.body, context)
|
|
849
|
-
};
|
|
850
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
851
|
-
switch (errorCode) {
|
|
852
|
-
case "AccessDeniedException":
|
|
853
|
-
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
854
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
855
|
-
case "ConflictException":
|
|
856
|
-
case "com.amazonaws.networkmonitor#ConflictException":
|
|
857
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
858
|
-
case "InternalServerException":
|
|
859
|
-
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
860
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
861
|
-
case "ResourceNotFoundException":
|
|
862
|
-
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
863
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
864
|
-
case "ThrottlingException":
|
|
865
|
-
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
866
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
867
|
-
case "ValidationException":
|
|
868
|
-
case "com.amazonaws.networkmonitor#ValidationException":
|
|
869
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
870
|
-
default:
|
|
871
|
-
const parsedBody = parsedOutput.body;
|
|
872
|
-
return throwDefaultError({
|
|
873
|
-
output,
|
|
874
|
-
parsedBody,
|
|
875
|
-
errorCode
|
|
876
|
-
});
|
|
877
|
-
}
|
|
878
|
-
}, "de_ListTagsForResourceCommandError");
|
|
879
622
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
880
623
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
881
|
-
return
|
|
624
|
+
return de_CommandError(output, context);
|
|
882
625
|
}
|
|
883
626
|
const contents = (0, import_smithy_client.map)({
|
|
884
627
|
$metadata: deserializeMetadata(output)
|
|
@@ -886,43 +629,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
886
629
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
887
630
|
return contents;
|
|
888
631
|
}, "de_TagResourceCommand");
|
|
889
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
890
|
-
const parsedOutput = {
|
|
891
|
-
...output,
|
|
892
|
-
body: await parseErrorBody(output.body, context)
|
|
893
|
-
};
|
|
894
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
895
|
-
switch (errorCode) {
|
|
896
|
-
case "AccessDeniedException":
|
|
897
|
-
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
898
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
899
|
-
case "ConflictException":
|
|
900
|
-
case "com.amazonaws.networkmonitor#ConflictException":
|
|
901
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
902
|
-
case "InternalServerException":
|
|
903
|
-
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
904
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
905
|
-
case "ResourceNotFoundException":
|
|
906
|
-
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
907
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
908
|
-
case "ThrottlingException":
|
|
909
|
-
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
910
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
911
|
-
case "ValidationException":
|
|
912
|
-
case "com.amazonaws.networkmonitor#ValidationException":
|
|
913
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
914
|
-
default:
|
|
915
|
-
const parsedBody = parsedOutput.body;
|
|
916
|
-
return throwDefaultError({
|
|
917
|
-
output,
|
|
918
|
-
parsedBody,
|
|
919
|
-
errorCode
|
|
920
|
-
});
|
|
921
|
-
}
|
|
922
|
-
}, "de_TagResourceCommandError");
|
|
923
632
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
924
633
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
925
|
-
return
|
|
634
|
+
return de_CommandError(output, context);
|
|
926
635
|
}
|
|
927
636
|
const contents = (0, import_smithy_client.map)({
|
|
928
637
|
$metadata: deserializeMetadata(output)
|
|
@@ -930,43 +639,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
930
639
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
931
640
|
return contents;
|
|
932
641
|
}, "de_UntagResourceCommand");
|
|
933
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
934
|
-
const parsedOutput = {
|
|
935
|
-
...output,
|
|
936
|
-
body: await parseErrorBody(output.body, context)
|
|
937
|
-
};
|
|
938
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
939
|
-
switch (errorCode) {
|
|
940
|
-
case "AccessDeniedException":
|
|
941
|
-
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
942
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
943
|
-
case "ConflictException":
|
|
944
|
-
case "com.amazonaws.networkmonitor#ConflictException":
|
|
945
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
946
|
-
case "InternalServerException":
|
|
947
|
-
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
948
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
949
|
-
case "ResourceNotFoundException":
|
|
950
|
-
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
951
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
952
|
-
case "ThrottlingException":
|
|
953
|
-
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
954
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
955
|
-
case "ValidationException":
|
|
956
|
-
case "com.amazonaws.networkmonitor#ValidationException":
|
|
957
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
958
|
-
default:
|
|
959
|
-
const parsedBody = parsedOutput.body;
|
|
960
|
-
return throwDefaultError({
|
|
961
|
-
output,
|
|
962
|
-
parsedBody,
|
|
963
|
-
errorCode
|
|
964
|
-
});
|
|
965
|
-
}
|
|
966
|
-
}, "de_UntagResourceCommandError");
|
|
967
642
|
var de_UpdateMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
968
643
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
969
|
-
return
|
|
644
|
+
return de_CommandError(output, context);
|
|
970
645
|
}
|
|
971
646
|
const contents = (0, import_smithy_client.map)({
|
|
972
647
|
$metadata: deserializeMetadata(output)
|
|
@@ -982,43 +657,9 @@ var de_UpdateMonitorCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
982
657
|
Object.assign(contents, doc);
|
|
983
658
|
return contents;
|
|
984
659
|
}, "de_UpdateMonitorCommand");
|
|
985
|
-
var de_UpdateMonitorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
986
|
-
const parsedOutput = {
|
|
987
|
-
...output,
|
|
988
|
-
body: await parseErrorBody(output.body, context)
|
|
989
|
-
};
|
|
990
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
991
|
-
switch (errorCode) {
|
|
992
|
-
case "AccessDeniedException":
|
|
993
|
-
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
994
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
995
|
-
case "InternalServerException":
|
|
996
|
-
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
997
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
998
|
-
case "ResourceNotFoundException":
|
|
999
|
-
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
1000
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1001
|
-
case "ServiceQuotaExceededException":
|
|
1002
|
-
case "com.amazonaws.networkmonitor#ServiceQuotaExceededException":
|
|
1003
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1004
|
-
case "ThrottlingException":
|
|
1005
|
-
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
1006
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1007
|
-
case "ValidationException":
|
|
1008
|
-
case "com.amazonaws.networkmonitor#ValidationException":
|
|
1009
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1010
|
-
default:
|
|
1011
|
-
const parsedBody = parsedOutput.body;
|
|
1012
|
-
return throwDefaultError({
|
|
1013
|
-
output,
|
|
1014
|
-
parsedBody,
|
|
1015
|
-
errorCode
|
|
1016
|
-
});
|
|
1017
|
-
}
|
|
1018
|
-
}, "de_UpdateMonitorCommandError");
|
|
1019
660
|
var de_UpdateProbeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1020
661
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1021
|
-
return
|
|
662
|
+
return de_CommandError(output, context);
|
|
1022
663
|
}
|
|
1023
664
|
const contents = (0, import_smithy_client.map)({
|
|
1024
665
|
$metadata: deserializeMetadata(output)
|
|
@@ -1042,7 +683,7 @@ var de_UpdateProbeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1042
683
|
Object.assign(contents, doc);
|
|
1043
684
|
return contents;
|
|
1044
685
|
}, "de_UpdateProbeCommand");
|
|
1045
|
-
var
|
|
686
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1046
687
|
const parsedOutput = {
|
|
1047
688
|
...output,
|
|
1048
689
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1052,12 +693,12 @@ var de_UpdateProbeCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
1052
693
|
case "AccessDeniedException":
|
|
1053
694
|
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
1054
695
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
696
|
+
case "ConflictException":
|
|
697
|
+
case "com.amazonaws.networkmonitor#ConflictException":
|
|
698
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1055
699
|
case "InternalServerException":
|
|
1056
700
|
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
1057
701
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1058
|
-
case "ResourceNotFoundException":
|
|
1059
|
-
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
1060
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1061
702
|
case "ServiceQuotaExceededException":
|
|
1062
703
|
case "com.amazonaws.networkmonitor#ServiceQuotaExceededException":
|
|
1063
704
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
@@ -1067,6 +708,9 @@ var de_UpdateProbeCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
1067
708
|
case "ValidationException":
|
|
1068
709
|
case "com.amazonaws.networkmonitor#ValidationException":
|
|
1069
710
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
711
|
+
case "ResourceNotFoundException":
|
|
712
|
+
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
713
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1070
714
|
default:
|
|
1071
715
|
const parsedBody = parsedOutput.body;
|
|
1072
716
|
return throwDefaultError({
|
|
@@ -1075,7 +719,7 @@ var de_UpdateProbeCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
1075
719
|
errorCode
|
|
1076
720
|
});
|
|
1077
721
|
}
|
|
1078
|
-
}, "
|
|
722
|
+
}, "de_CommandError");
|
|
1079
723
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(NetworkMonitorServiceException);
|
|
1080
724
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1081
725
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -160,7 +160,7 @@ export const se_UpdateProbeCommand = async (input, context) => {
|
|
|
160
160
|
};
|
|
161
161
|
export const de_CreateMonitorCommand = async (output, context) => {
|
|
162
162
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
163
|
-
return
|
|
163
|
+
return de_CommandError(output, context);
|
|
164
164
|
}
|
|
165
165
|
const contents = map({
|
|
166
166
|
$metadata: deserializeMetadata(output),
|
|
@@ -176,43 +176,9 @@ export const de_CreateMonitorCommand = async (output, context) => {
|
|
|
176
176
|
Object.assign(contents, doc);
|
|
177
177
|
return contents;
|
|
178
178
|
};
|
|
179
|
-
const de_CreateMonitorCommandError = async (output, context) => {
|
|
180
|
-
const parsedOutput = {
|
|
181
|
-
...output,
|
|
182
|
-
body: await parseErrorBody(output.body, context),
|
|
183
|
-
};
|
|
184
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
185
|
-
switch (errorCode) {
|
|
186
|
-
case "AccessDeniedException":
|
|
187
|
-
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
188
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
189
|
-
case "ConflictException":
|
|
190
|
-
case "com.amazonaws.networkmonitor#ConflictException":
|
|
191
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
192
|
-
case "InternalServerException":
|
|
193
|
-
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
194
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
195
|
-
case "ServiceQuotaExceededException":
|
|
196
|
-
case "com.amazonaws.networkmonitor#ServiceQuotaExceededException":
|
|
197
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
198
|
-
case "ThrottlingException":
|
|
199
|
-
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
200
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
201
|
-
case "ValidationException":
|
|
202
|
-
case "com.amazonaws.networkmonitor#ValidationException":
|
|
203
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
204
|
-
default:
|
|
205
|
-
const parsedBody = parsedOutput.body;
|
|
206
|
-
return throwDefaultError({
|
|
207
|
-
output,
|
|
208
|
-
parsedBody,
|
|
209
|
-
errorCode,
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
179
|
export const de_CreateProbeCommand = async (output, context) => {
|
|
214
180
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
215
|
-
return
|
|
181
|
+
return de_CommandError(output, context);
|
|
216
182
|
}
|
|
217
183
|
const contents = map({
|
|
218
184
|
$metadata: deserializeMetadata(output),
|
|
@@ -236,43 +202,9 @@ export const de_CreateProbeCommand = async (output, context) => {
|
|
|
236
202
|
Object.assign(contents, doc);
|
|
237
203
|
return contents;
|
|
238
204
|
};
|
|
239
|
-
const de_CreateProbeCommandError = async (output, context) => {
|
|
240
|
-
const parsedOutput = {
|
|
241
|
-
...output,
|
|
242
|
-
body: await parseErrorBody(output.body, context),
|
|
243
|
-
};
|
|
244
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
245
|
-
switch (errorCode) {
|
|
246
|
-
case "AccessDeniedException":
|
|
247
|
-
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
248
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
249
|
-
case "InternalServerException":
|
|
250
|
-
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
251
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
252
|
-
case "ResourceNotFoundException":
|
|
253
|
-
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
254
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
255
|
-
case "ServiceQuotaExceededException":
|
|
256
|
-
case "com.amazonaws.networkmonitor#ServiceQuotaExceededException":
|
|
257
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
258
|
-
case "ThrottlingException":
|
|
259
|
-
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
260
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
261
|
-
case "ValidationException":
|
|
262
|
-
case "com.amazonaws.networkmonitor#ValidationException":
|
|
263
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
264
|
-
default:
|
|
265
|
-
const parsedBody = parsedOutput.body;
|
|
266
|
-
return throwDefaultError({
|
|
267
|
-
output,
|
|
268
|
-
parsedBody,
|
|
269
|
-
errorCode,
|
|
270
|
-
});
|
|
271
|
-
}
|
|
272
|
-
};
|
|
273
205
|
export const de_DeleteMonitorCommand = async (output, context) => {
|
|
274
206
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
275
|
-
return
|
|
207
|
+
return de_CommandError(output, context);
|
|
276
208
|
}
|
|
277
209
|
const contents = map({
|
|
278
210
|
$metadata: deserializeMetadata(output),
|
|
@@ -280,40 +212,9 @@ export const de_DeleteMonitorCommand = async (output, context) => {
|
|
|
280
212
|
await collectBody(output.body, context);
|
|
281
213
|
return contents;
|
|
282
214
|
};
|
|
283
|
-
const de_DeleteMonitorCommandError = async (output, context) => {
|
|
284
|
-
const parsedOutput = {
|
|
285
|
-
...output,
|
|
286
|
-
body: await parseErrorBody(output.body, context),
|
|
287
|
-
};
|
|
288
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
289
|
-
switch (errorCode) {
|
|
290
|
-
case "AccessDeniedException":
|
|
291
|
-
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
292
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
293
|
-
case "InternalServerException":
|
|
294
|
-
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
295
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
296
|
-
case "ResourceNotFoundException":
|
|
297
|
-
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
298
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
299
|
-
case "ThrottlingException":
|
|
300
|
-
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
301
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
302
|
-
case "ValidationException":
|
|
303
|
-
case "com.amazonaws.networkmonitor#ValidationException":
|
|
304
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
305
|
-
default:
|
|
306
|
-
const parsedBody = parsedOutput.body;
|
|
307
|
-
return throwDefaultError({
|
|
308
|
-
output,
|
|
309
|
-
parsedBody,
|
|
310
|
-
errorCode,
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
|
-
};
|
|
314
215
|
export const de_DeleteProbeCommand = async (output, context) => {
|
|
315
216
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
316
|
-
return
|
|
217
|
+
return de_CommandError(output, context);
|
|
317
218
|
}
|
|
318
219
|
const contents = map({
|
|
319
220
|
$metadata: deserializeMetadata(output),
|
|
@@ -321,43 +222,9 @@ export const de_DeleteProbeCommand = async (output, context) => {
|
|
|
321
222
|
await collectBody(output.body, context);
|
|
322
223
|
return contents;
|
|
323
224
|
};
|
|
324
|
-
const de_DeleteProbeCommandError = async (output, context) => {
|
|
325
|
-
const parsedOutput = {
|
|
326
|
-
...output,
|
|
327
|
-
body: await parseErrorBody(output.body, context),
|
|
328
|
-
};
|
|
329
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
330
|
-
switch (errorCode) {
|
|
331
|
-
case "AccessDeniedException":
|
|
332
|
-
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
333
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
334
|
-
case "InternalServerException":
|
|
335
|
-
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
336
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
337
|
-
case "ResourceNotFoundException":
|
|
338
|
-
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
339
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
340
|
-
case "ServiceQuotaExceededException":
|
|
341
|
-
case "com.amazonaws.networkmonitor#ServiceQuotaExceededException":
|
|
342
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
343
|
-
case "ThrottlingException":
|
|
344
|
-
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
345
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
346
|
-
case "ValidationException":
|
|
347
|
-
case "com.amazonaws.networkmonitor#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
225
|
export const de_GetMonitorCommand = async (output, context) => {
|
|
359
226
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
360
|
-
return
|
|
227
|
+
return de_CommandError(output, context);
|
|
361
228
|
}
|
|
362
229
|
const contents = map({
|
|
363
230
|
$metadata: deserializeMetadata(output),
|
|
@@ -376,40 +243,9 @@ export const de_GetMonitorCommand = async (output, context) => {
|
|
|
376
243
|
Object.assign(contents, doc);
|
|
377
244
|
return contents;
|
|
378
245
|
};
|
|
379
|
-
const de_GetMonitorCommandError = async (output, context) => {
|
|
380
|
-
const parsedOutput = {
|
|
381
|
-
...output,
|
|
382
|
-
body: await parseErrorBody(output.body, context),
|
|
383
|
-
};
|
|
384
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
385
|
-
switch (errorCode) {
|
|
386
|
-
case "AccessDeniedException":
|
|
387
|
-
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
388
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
389
|
-
case "InternalServerException":
|
|
390
|
-
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
391
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
392
|
-
case "ResourceNotFoundException":
|
|
393
|
-
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
394
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
395
|
-
case "ThrottlingException":
|
|
396
|
-
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
397
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
398
|
-
case "ValidationException":
|
|
399
|
-
case "com.amazonaws.networkmonitor#ValidationException":
|
|
400
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
401
|
-
default:
|
|
402
|
-
const parsedBody = parsedOutput.body;
|
|
403
|
-
return throwDefaultError({
|
|
404
|
-
output,
|
|
405
|
-
parsedBody,
|
|
406
|
-
errorCode,
|
|
407
|
-
});
|
|
408
|
-
}
|
|
409
|
-
};
|
|
410
246
|
export const de_GetProbeCommand = async (output, context) => {
|
|
411
247
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
412
|
-
return
|
|
248
|
+
return de_CommandError(output, context);
|
|
413
249
|
}
|
|
414
250
|
const contents = map({
|
|
415
251
|
$metadata: deserializeMetadata(output),
|
|
@@ -433,40 +269,9 @@ export const de_GetProbeCommand = async (output, context) => {
|
|
|
433
269
|
Object.assign(contents, doc);
|
|
434
270
|
return contents;
|
|
435
271
|
};
|
|
436
|
-
const de_GetProbeCommandError = 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.networkmonitor#AccessDeniedException":
|
|
445
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
446
|
-
case "InternalServerException":
|
|
447
|
-
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
448
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
449
|
-
case "ResourceNotFoundException":
|
|
450
|
-
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
451
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
452
|
-
case "ThrottlingException":
|
|
453
|
-
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
454
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
455
|
-
case "ValidationException":
|
|
456
|
-
case "com.amazonaws.networkmonitor#ValidationException":
|
|
457
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
458
|
-
default:
|
|
459
|
-
const parsedBody = parsedOutput.body;
|
|
460
|
-
return throwDefaultError({
|
|
461
|
-
output,
|
|
462
|
-
parsedBody,
|
|
463
|
-
errorCode,
|
|
464
|
-
});
|
|
465
|
-
}
|
|
466
|
-
};
|
|
467
272
|
export const de_ListMonitorsCommand = async (output, context) => {
|
|
468
273
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
469
|
-
return
|
|
274
|
+
return de_CommandError(output, context);
|
|
470
275
|
}
|
|
471
276
|
const contents = map({
|
|
472
277
|
$metadata: deserializeMetadata(output),
|
|
@@ -479,37 +284,9 @@ export const de_ListMonitorsCommand = async (output, context) => {
|
|
|
479
284
|
Object.assign(contents, doc);
|
|
480
285
|
return contents;
|
|
481
286
|
};
|
|
482
|
-
const de_ListMonitorsCommandError = async (output, context) => {
|
|
483
|
-
const parsedOutput = {
|
|
484
|
-
...output,
|
|
485
|
-
body: await parseErrorBody(output.body, context),
|
|
486
|
-
};
|
|
487
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
488
|
-
switch (errorCode) {
|
|
489
|
-
case "AccessDeniedException":
|
|
490
|
-
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
491
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
492
|
-
case "InternalServerException":
|
|
493
|
-
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
494
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
495
|
-
case "ThrottlingException":
|
|
496
|
-
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
497
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
498
|
-
case "ValidationException":
|
|
499
|
-
case "com.amazonaws.networkmonitor#ValidationException":
|
|
500
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
501
|
-
default:
|
|
502
|
-
const parsedBody = parsedOutput.body;
|
|
503
|
-
return throwDefaultError({
|
|
504
|
-
output,
|
|
505
|
-
parsedBody,
|
|
506
|
-
errorCode,
|
|
507
|
-
});
|
|
508
|
-
}
|
|
509
|
-
};
|
|
510
287
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
511
288
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
512
|
-
return
|
|
289
|
+
return de_CommandError(output, context);
|
|
513
290
|
}
|
|
514
291
|
const contents = map({
|
|
515
292
|
$metadata: deserializeMetadata(output),
|
|
@@ -521,43 +298,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
521
298
|
Object.assign(contents, doc);
|
|
522
299
|
return contents;
|
|
523
300
|
};
|
|
524
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
525
|
-
const parsedOutput = {
|
|
526
|
-
...output,
|
|
527
|
-
body: await parseErrorBody(output.body, context),
|
|
528
|
-
};
|
|
529
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
530
|
-
switch (errorCode) {
|
|
531
|
-
case "AccessDeniedException":
|
|
532
|
-
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
533
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
534
|
-
case "ConflictException":
|
|
535
|
-
case "com.amazonaws.networkmonitor#ConflictException":
|
|
536
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
537
|
-
case "InternalServerException":
|
|
538
|
-
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
539
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
540
|
-
case "ResourceNotFoundException":
|
|
541
|
-
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
542
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
543
|
-
case "ThrottlingException":
|
|
544
|
-
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
545
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
546
|
-
case "ValidationException":
|
|
547
|
-
case "com.amazonaws.networkmonitor#ValidationException":
|
|
548
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
549
|
-
default:
|
|
550
|
-
const parsedBody = parsedOutput.body;
|
|
551
|
-
return throwDefaultError({
|
|
552
|
-
output,
|
|
553
|
-
parsedBody,
|
|
554
|
-
errorCode,
|
|
555
|
-
});
|
|
556
|
-
}
|
|
557
|
-
};
|
|
558
301
|
export const de_TagResourceCommand = async (output, context) => {
|
|
559
302
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
560
|
-
return
|
|
303
|
+
return de_CommandError(output, context);
|
|
561
304
|
}
|
|
562
305
|
const contents = map({
|
|
563
306
|
$metadata: deserializeMetadata(output),
|
|
@@ -565,43 +308,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
565
308
|
await collectBody(output.body, context);
|
|
566
309
|
return contents;
|
|
567
310
|
};
|
|
568
|
-
const de_TagResourceCommandError = 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 "AccessDeniedException":
|
|
576
|
-
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
577
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
578
|
-
case "ConflictException":
|
|
579
|
-
case "com.amazonaws.networkmonitor#ConflictException":
|
|
580
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
581
|
-
case "InternalServerException":
|
|
582
|
-
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
583
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
584
|
-
case "ResourceNotFoundException":
|
|
585
|
-
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
586
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
587
|
-
case "ThrottlingException":
|
|
588
|
-
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
589
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
590
|
-
case "ValidationException":
|
|
591
|
-
case "com.amazonaws.networkmonitor#ValidationException":
|
|
592
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
593
|
-
default:
|
|
594
|
-
const parsedBody = parsedOutput.body;
|
|
595
|
-
return throwDefaultError({
|
|
596
|
-
output,
|
|
597
|
-
parsedBody,
|
|
598
|
-
errorCode,
|
|
599
|
-
});
|
|
600
|
-
}
|
|
601
|
-
};
|
|
602
311
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
603
312
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
604
|
-
return
|
|
313
|
+
return de_CommandError(output, context);
|
|
605
314
|
}
|
|
606
315
|
const contents = map({
|
|
607
316
|
$metadata: deserializeMetadata(output),
|
|
@@ -609,43 +318,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
609
318
|
await collectBody(output.body, context);
|
|
610
319
|
return contents;
|
|
611
320
|
};
|
|
612
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
613
|
-
const parsedOutput = {
|
|
614
|
-
...output,
|
|
615
|
-
body: await parseErrorBody(output.body, context),
|
|
616
|
-
};
|
|
617
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
618
|
-
switch (errorCode) {
|
|
619
|
-
case "AccessDeniedException":
|
|
620
|
-
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
621
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
622
|
-
case "ConflictException":
|
|
623
|
-
case "com.amazonaws.networkmonitor#ConflictException":
|
|
624
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
625
|
-
case "InternalServerException":
|
|
626
|
-
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
627
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
628
|
-
case "ResourceNotFoundException":
|
|
629
|
-
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
630
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
631
|
-
case "ThrottlingException":
|
|
632
|
-
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
633
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
634
|
-
case "ValidationException":
|
|
635
|
-
case "com.amazonaws.networkmonitor#ValidationException":
|
|
636
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
637
|
-
default:
|
|
638
|
-
const parsedBody = parsedOutput.body;
|
|
639
|
-
return throwDefaultError({
|
|
640
|
-
output,
|
|
641
|
-
parsedBody,
|
|
642
|
-
errorCode,
|
|
643
|
-
});
|
|
644
|
-
}
|
|
645
|
-
};
|
|
646
321
|
export const de_UpdateMonitorCommand = async (output, context) => {
|
|
647
322
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
648
|
-
return
|
|
323
|
+
return de_CommandError(output, context);
|
|
649
324
|
}
|
|
650
325
|
const contents = map({
|
|
651
326
|
$metadata: deserializeMetadata(output),
|
|
@@ -661,43 +336,9 @@ export const de_UpdateMonitorCommand = async (output, context) => {
|
|
|
661
336
|
Object.assign(contents, doc);
|
|
662
337
|
return contents;
|
|
663
338
|
};
|
|
664
|
-
const de_UpdateMonitorCommandError = async (output, context) => {
|
|
665
|
-
const parsedOutput = {
|
|
666
|
-
...output,
|
|
667
|
-
body: await parseErrorBody(output.body, context),
|
|
668
|
-
};
|
|
669
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
670
|
-
switch (errorCode) {
|
|
671
|
-
case "AccessDeniedException":
|
|
672
|
-
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
673
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
674
|
-
case "InternalServerException":
|
|
675
|
-
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
676
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
677
|
-
case "ResourceNotFoundException":
|
|
678
|
-
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
679
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
680
|
-
case "ServiceQuotaExceededException":
|
|
681
|
-
case "com.amazonaws.networkmonitor#ServiceQuotaExceededException":
|
|
682
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
683
|
-
case "ThrottlingException":
|
|
684
|
-
case "com.amazonaws.networkmonitor#ThrottlingException":
|
|
685
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
686
|
-
case "ValidationException":
|
|
687
|
-
case "com.amazonaws.networkmonitor#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
|
-
};
|
|
698
339
|
export const de_UpdateProbeCommand = async (output, context) => {
|
|
699
340
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
700
|
-
return
|
|
341
|
+
return de_CommandError(output, context);
|
|
701
342
|
}
|
|
702
343
|
const contents = map({
|
|
703
344
|
$metadata: deserializeMetadata(output),
|
|
@@ -721,7 +362,7 @@ export const de_UpdateProbeCommand = async (output, context) => {
|
|
|
721
362
|
Object.assign(contents, doc);
|
|
722
363
|
return contents;
|
|
723
364
|
};
|
|
724
|
-
const
|
|
365
|
+
const de_CommandError = async (output, context) => {
|
|
725
366
|
const parsedOutput = {
|
|
726
367
|
...output,
|
|
727
368
|
body: await parseErrorBody(output.body, context),
|
|
@@ -731,12 +372,12 @@ const de_UpdateProbeCommandError = async (output, context) => {
|
|
|
731
372
|
case "AccessDeniedException":
|
|
732
373
|
case "com.amazonaws.networkmonitor#AccessDeniedException":
|
|
733
374
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
375
|
+
case "ConflictException":
|
|
376
|
+
case "com.amazonaws.networkmonitor#ConflictException":
|
|
377
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
734
378
|
case "InternalServerException":
|
|
735
379
|
case "com.amazonaws.networkmonitor#InternalServerException":
|
|
736
380
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
737
|
-
case "ResourceNotFoundException":
|
|
738
|
-
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
739
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
740
381
|
case "ServiceQuotaExceededException":
|
|
741
382
|
case "com.amazonaws.networkmonitor#ServiceQuotaExceededException":
|
|
742
383
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
@@ -746,6 +387,9 @@ const de_UpdateProbeCommandError = async (output, context) => {
|
|
|
746
387
|
case "ValidationException":
|
|
747
388
|
case "com.amazonaws.networkmonitor#ValidationException":
|
|
748
389
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
390
|
+
case "ResourceNotFoundException":
|
|
391
|
+
case "com.amazonaws.networkmonitor#ResourceNotFoundException":
|
|
392
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
749
393
|
default:
|
|
750
394
|
const parsedBody = parsedOutput.body;
|
|
751
395
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-networkmonitor",
|
|
3
3
|
"description": "AWS SDK for JavaScript Networkmonitor 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-networkmonitor",
|
|
@@ -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",
|