@aws-sdk/client-iot-events-data 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 -334
- package/dist-es/protocols/Aws_restJson1.js +16 -333
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -460,7 +460,7 @@ var se_ListDetectorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
460
460
|
}, "se_ListDetectorsCommand");
|
|
461
461
|
var de_BatchAcknowledgeAlarmCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
462
462
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
463
|
-
return
|
|
463
|
+
return de_CommandError(output, context);
|
|
464
464
|
}
|
|
465
465
|
const contents = (0, import_smithy_client.map)({
|
|
466
466
|
$metadata: deserializeMetadata(output)
|
|
@@ -472,37 +472,9 @@ var de_BatchAcknowledgeAlarmCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
472
472
|
Object.assign(contents, doc);
|
|
473
473
|
return contents;
|
|
474
474
|
}, "de_BatchAcknowledgeAlarmCommand");
|
|
475
|
-
var de_BatchAcknowledgeAlarmCommandError = /* @__PURE__ */ __name(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 "InternalFailureException":
|
|
483
|
-
case "com.amazonaws.ioteventsdata#InternalFailureException":
|
|
484
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
485
|
-
case "InvalidRequestException":
|
|
486
|
-
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
487
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
488
|
-
case "ServiceUnavailableException":
|
|
489
|
-
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
490
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
491
|
-
case "ThrottlingException":
|
|
492
|
-
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
493
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
494
|
-
default:
|
|
495
|
-
const parsedBody = parsedOutput.body;
|
|
496
|
-
return throwDefaultError({
|
|
497
|
-
output,
|
|
498
|
-
parsedBody,
|
|
499
|
-
errorCode
|
|
500
|
-
});
|
|
501
|
-
}
|
|
502
|
-
}, "de_BatchAcknowledgeAlarmCommandError");
|
|
503
475
|
var de_BatchDeleteDetectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
504
476
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
505
|
-
return
|
|
477
|
+
return de_CommandError(output, context);
|
|
506
478
|
}
|
|
507
479
|
const contents = (0, import_smithy_client.map)({
|
|
508
480
|
$metadata: deserializeMetadata(output)
|
|
@@ -514,37 +486,9 @@ var de_BatchDeleteDetectorCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
514
486
|
Object.assign(contents, doc);
|
|
515
487
|
return contents;
|
|
516
488
|
}, "de_BatchDeleteDetectorCommand");
|
|
517
|
-
var de_BatchDeleteDetectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
518
|
-
const parsedOutput = {
|
|
519
|
-
...output,
|
|
520
|
-
body: await parseErrorBody(output.body, context)
|
|
521
|
-
};
|
|
522
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
523
|
-
switch (errorCode) {
|
|
524
|
-
case "InternalFailureException":
|
|
525
|
-
case "com.amazonaws.ioteventsdata#InternalFailureException":
|
|
526
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
527
|
-
case "InvalidRequestException":
|
|
528
|
-
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
529
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
530
|
-
case "ServiceUnavailableException":
|
|
531
|
-
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
532
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
533
|
-
case "ThrottlingException":
|
|
534
|
-
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
535
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
536
|
-
default:
|
|
537
|
-
const parsedBody = parsedOutput.body;
|
|
538
|
-
return throwDefaultError({
|
|
539
|
-
output,
|
|
540
|
-
parsedBody,
|
|
541
|
-
errorCode
|
|
542
|
-
});
|
|
543
|
-
}
|
|
544
|
-
}, "de_BatchDeleteDetectorCommandError");
|
|
545
489
|
var de_BatchDisableAlarmCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
546
490
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
547
|
-
return
|
|
491
|
+
return de_CommandError(output, context);
|
|
548
492
|
}
|
|
549
493
|
const contents = (0, import_smithy_client.map)({
|
|
550
494
|
$metadata: deserializeMetadata(output)
|
|
@@ -556,37 +500,9 @@ var de_BatchDisableAlarmCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
556
500
|
Object.assign(contents, doc);
|
|
557
501
|
return contents;
|
|
558
502
|
}, "de_BatchDisableAlarmCommand");
|
|
559
|
-
var de_BatchDisableAlarmCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
560
|
-
const parsedOutput = {
|
|
561
|
-
...output,
|
|
562
|
-
body: await parseErrorBody(output.body, context)
|
|
563
|
-
};
|
|
564
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
565
|
-
switch (errorCode) {
|
|
566
|
-
case "InternalFailureException":
|
|
567
|
-
case "com.amazonaws.ioteventsdata#InternalFailureException":
|
|
568
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
569
|
-
case "InvalidRequestException":
|
|
570
|
-
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
571
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
572
|
-
case "ServiceUnavailableException":
|
|
573
|
-
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
574
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
575
|
-
case "ThrottlingException":
|
|
576
|
-
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
577
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
578
|
-
default:
|
|
579
|
-
const parsedBody = parsedOutput.body;
|
|
580
|
-
return throwDefaultError({
|
|
581
|
-
output,
|
|
582
|
-
parsedBody,
|
|
583
|
-
errorCode
|
|
584
|
-
});
|
|
585
|
-
}
|
|
586
|
-
}, "de_BatchDisableAlarmCommandError");
|
|
587
503
|
var de_BatchEnableAlarmCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
588
504
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
589
|
-
return
|
|
505
|
+
return de_CommandError(output, context);
|
|
590
506
|
}
|
|
591
507
|
const contents = (0, import_smithy_client.map)({
|
|
592
508
|
$metadata: deserializeMetadata(output)
|
|
@@ -598,37 +514,9 @@ var de_BatchEnableAlarmCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
598
514
|
Object.assign(contents, doc);
|
|
599
515
|
return contents;
|
|
600
516
|
}, "de_BatchEnableAlarmCommand");
|
|
601
|
-
var de_BatchEnableAlarmCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
602
|
-
const parsedOutput = {
|
|
603
|
-
...output,
|
|
604
|
-
body: await parseErrorBody(output.body, context)
|
|
605
|
-
};
|
|
606
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
607
|
-
switch (errorCode) {
|
|
608
|
-
case "InternalFailureException":
|
|
609
|
-
case "com.amazonaws.ioteventsdata#InternalFailureException":
|
|
610
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
611
|
-
case "InvalidRequestException":
|
|
612
|
-
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
613
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
614
|
-
case "ServiceUnavailableException":
|
|
615
|
-
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
616
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
617
|
-
case "ThrottlingException":
|
|
618
|
-
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
619
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
620
|
-
default:
|
|
621
|
-
const parsedBody = parsedOutput.body;
|
|
622
|
-
return throwDefaultError({
|
|
623
|
-
output,
|
|
624
|
-
parsedBody,
|
|
625
|
-
errorCode
|
|
626
|
-
});
|
|
627
|
-
}
|
|
628
|
-
}, "de_BatchEnableAlarmCommandError");
|
|
629
517
|
var de_BatchPutMessageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
630
518
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
631
|
-
return
|
|
519
|
+
return de_CommandError(output, context);
|
|
632
520
|
}
|
|
633
521
|
const contents = (0, import_smithy_client.map)({
|
|
634
522
|
$metadata: deserializeMetadata(output)
|
|
@@ -640,37 +528,9 @@ var de_BatchPutMessageCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
640
528
|
Object.assign(contents, doc);
|
|
641
529
|
return contents;
|
|
642
530
|
}, "de_BatchPutMessageCommand");
|
|
643
|
-
var de_BatchPutMessageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
644
|
-
const parsedOutput = {
|
|
645
|
-
...output,
|
|
646
|
-
body: await parseErrorBody(output.body, context)
|
|
647
|
-
};
|
|
648
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
649
|
-
switch (errorCode) {
|
|
650
|
-
case "InternalFailureException":
|
|
651
|
-
case "com.amazonaws.ioteventsdata#InternalFailureException":
|
|
652
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
653
|
-
case "InvalidRequestException":
|
|
654
|
-
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
655
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
656
|
-
case "ServiceUnavailableException":
|
|
657
|
-
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
658
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
659
|
-
case "ThrottlingException":
|
|
660
|
-
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
661
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
662
|
-
default:
|
|
663
|
-
const parsedBody = parsedOutput.body;
|
|
664
|
-
return throwDefaultError({
|
|
665
|
-
output,
|
|
666
|
-
parsedBody,
|
|
667
|
-
errorCode
|
|
668
|
-
});
|
|
669
|
-
}
|
|
670
|
-
}, "de_BatchPutMessageCommandError");
|
|
671
531
|
var de_BatchResetAlarmCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
672
532
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
673
|
-
return
|
|
533
|
+
return de_CommandError(output, context);
|
|
674
534
|
}
|
|
675
535
|
const contents = (0, import_smithy_client.map)({
|
|
676
536
|
$metadata: deserializeMetadata(output)
|
|
@@ -682,37 +542,9 @@ var de_BatchResetAlarmCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
682
542
|
Object.assign(contents, doc);
|
|
683
543
|
return contents;
|
|
684
544
|
}, "de_BatchResetAlarmCommand");
|
|
685
|
-
var de_BatchResetAlarmCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
686
|
-
const parsedOutput = {
|
|
687
|
-
...output,
|
|
688
|
-
body: await parseErrorBody(output.body, context)
|
|
689
|
-
};
|
|
690
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
691
|
-
switch (errorCode) {
|
|
692
|
-
case "InternalFailureException":
|
|
693
|
-
case "com.amazonaws.ioteventsdata#InternalFailureException":
|
|
694
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
695
|
-
case "InvalidRequestException":
|
|
696
|
-
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
697
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
698
|
-
case "ServiceUnavailableException":
|
|
699
|
-
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
700
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
701
|
-
case "ThrottlingException":
|
|
702
|
-
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
703
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
704
|
-
default:
|
|
705
|
-
const parsedBody = parsedOutput.body;
|
|
706
|
-
return throwDefaultError({
|
|
707
|
-
output,
|
|
708
|
-
parsedBody,
|
|
709
|
-
errorCode
|
|
710
|
-
});
|
|
711
|
-
}
|
|
712
|
-
}, "de_BatchResetAlarmCommandError");
|
|
713
545
|
var de_BatchSnoozeAlarmCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
714
546
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
715
|
-
return
|
|
547
|
+
return de_CommandError(output, context);
|
|
716
548
|
}
|
|
717
549
|
const contents = (0, import_smithy_client.map)({
|
|
718
550
|
$metadata: deserializeMetadata(output)
|
|
@@ -724,37 +556,9 @@ var de_BatchSnoozeAlarmCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
724
556
|
Object.assign(contents, doc);
|
|
725
557
|
return contents;
|
|
726
558
|
}, "de_BatchSnoozeAlarmCommand");
|
|
727
|
-
var de_BatchSnoozeAlarmCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
728
|
-
const parsedOutput = {
|
|
729
|
-
...output,
|
|
730
|
-
body: await parseErrorBody(output.body, context)
|
|
731
|
-
};
|
|
732
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
733
|
-
switch (errorCode) {
|
|
734
|
-
case "InternalFailureException":
|
|
735
|
-
case "com.amazonaws.ioteventsdata#InternalFailureException":
|
|
736
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
737
|
-
case "InvalidRequestException":
|
|
738
|
-
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
739
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
740
|
-
case "ServiceUnavailableException":
|
|
741
|
-
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
742
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
743
|
-
case "ThrottlingException":
|
|
744
|
-
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
745
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
746
|
-
default:
|
|
747
|
-
const parsedBody = parsedOutput.body;
|
|
748
|
-
return throwDefaultError({
|
|
749
|
-
output,
|
|
750
|
-
parsedBody,
|
|
751
|
-
errorCode
|
|
752
|
-
});
|
|
753
|
-
}
|
|
754
|
-
}, "de_BatchSnoozeAlarmCommandError");
|
|
755
559
|
var de_BatchUpdateDetectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
756
560
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
757
|
-
return
|
|
561
|
+
return de_CommandError(output, context);
|
|
758
562
|
}
|
|
759
563
|
const contents = (0, import_smithy_client.map)({
|
|
760
564
|
$metadata: deserializeMetadata(output)
|
|
@@ -766,37 +570,9 @@ var de_BatchUpdateDetectorCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
766
570
|
Object.assign(contents, doc);
|
|
767
571
|
return contents;
|
|
768
572
|
}, "de_BatchUpdateDetectorCommand");
|
|
769
|
-
var de_BatchUpdateDetectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
770
|
-
const parsedOutput = {
|
|
771
|
-
...output,
|
|
772
|
-
body: await parseErrorBody(output.body, context)
|
|
773
|
-
};
|
|
774
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
775
|
-
switch (errorCode) {
|
|
776
|
-
case "InternalFailureException":
|
|
777
|
-
case "com.amazonaws.ioteventsdata#InternalFailureException":
|
|
778
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
779
|
-
case "InvalidRequestException":
|
|
780
|
-
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
781
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
782
|
-
case "ServiceUnavailableException":
|
|
783
|
-
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
784
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
785
|
-
case "ThrottlingException":
|
|
786
|
-
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
787
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
788
|
-
default:
|
|
789
|
-
const parsedBody = parsedOutput.body;
|
|
790
|
-
return throwDefaultError({
|
|
791
|
-
output,
|
|
792
|
-
parsedBody,
|
|
793
|
-
errorCode
|
|
794
|
-
});
|
|
795
|
-
}
|
|
796
|
-
}, "de_BatchUpdateDetectorCommandError");
|
|
797
573
|
var de_DescribeAlarmCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
798
574
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
799
|
-
return
|
|
575
|
+
return de_CommandError(output, context);
|
|
800
576
|
}
|
|
801
577
|
const contents = (0, import_smithy_client.map)({
|
|
802
578
|
$metadata: deserializeMetadata(output)
|
|
@@ -808,40 +584,9 @@ var de_DescribeAlarmCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
808
584
|
Object.assign(contents, doc);
|
|
809
585
|
return contents;
|
|
810
586
|
}, "de_DescribeAlarmCommand");
|
|
811
|
-
var de_DescribeAlarmCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
812
|
-
const parsedOutput = {
|
|
813
|
-
...output,
|
|
814
|
-
body: await parseErrorBody(output.body, context)
|
|
815
|
-
};
|
|
816
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
817
|
-
switch (errorCode) {
|
|
818
|
-
case "InternalFailureException":
|
|
819
|
-
case "com.amazonaws.ioteventsdata#InternalFailureException":
|
|
820
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
821
|
-
case "InvalidRequestException":
|
|
822
|
-
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
823
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
824
|
-
case "ResourceNotFoundException":
|
|
825
|
-
case "com.amazonaws.ioteventsdata#ResourceNotFoundException":
|
|
826
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
827
|
-
case "ServiceUnavailableException":
|
|
828
|
-
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
829
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
830
|
-
case "ThrottlingException":
|
|
831
|
-
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
832
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
833
|
-
default:
|
|
834
|
-
const parsedBody = parsedOutput.body;
|
|
835
|
-
return throwDefaultError({
|
|
836
|
-
output,
|
|
837
|
-
parsedBody,
|
|
838
|
-
errorCode
|
|
839
|
-
});
|
|
840
|
-
}
|
|
841
|
-
}, "de_DescribeAlarmCommandError");
|
|
842
587
|
var de_DescribeDetectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
843
588
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
844
|
-
return
|
|
589
|
+
return de_CommandError(output, context);
|
|
845
590
|
}
|
|
846
591
|
const contents = (0, import_smithy_client.map)({
|
|
847
592
|
$metadata: deserializeMetadata(output)
|
|
@@ -853,40 +598,9 @@ var de_DescribeDetectorCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
853
598
|
Object.assign(contents, doc);
|
|
854
599
|
return contents;
|
|
855
600
|
}, "de_DescribeDetectorCommand");
|
|
856
|
-
var de_DescribeDetectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
857
|
-
const parsedOutput = {
|
|
858
|
-
...output,
|
|
859
|
-
body: await parseErrorBody(output.body, context)
|
|
860
|
-
};
|
|
861
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
862
|
-
switch (errorCode) {
|
|
863
|
-
case "InternalFailureException":
|
|
864
|
-
case "com.amazonaws.ioteventsdata#InternalFailureException":
|
|
865
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
866
|
-
case "InvalidRequestException":
|
|
867
|
-
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
868
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
869
|
-
case "ResourceNotFoundException":
|
|
870
|
-
case "com.amazonaws.ioteventsdata#ResourceNotFoundException":
|
|
871
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
872
|
-
case "ServiceUnavailableException":
|
|
873
|
-
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
874
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
875
|
-
case "ThrottlingException":
|
|
876
|
-
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
877
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
878
|
-
default:
|
|
879
|
-
const parsedBody = parsedOutput.body;
|
|
880
|
-
return throwDefaultError({
|
|
881
|
-
output,
|
|
882
|
-
parsedBody,
|
|
883
|
-
errorCode
|
|
884
|
-
});
|
|
885
|
-
}
|
|
886
|
-
}, "de_DescribeDetectorCommandError");
|
|
887
601
|
var de_ListAlarmsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
888
602
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
889
|
-
return
|
|
603
|
+
return de_CommandError(output, context);
|
|
890
604
|
}
|
|
891
605
|
const contents = (0, import_smithy_client.map)({
|
|
892
606
|
$metadata: deserializeMetadata(output)
|
|
@@ -899,40 +613,9 @@ var de_ListAlarmsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
899
613
|
Object.assign(contents, doc);
|
|
900
614
|
return contents;
|
|
901
615
|
}, "de_ListAlarmsCommand");
|
|
902
|
-
var de_ListAlarmsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
903
|
-
const parsedOutput = {
|
|
904
|
-
...output,
|
|
905
|
-
body: await parseErrorBody(output.body, context)
|
|
906
|
-
};
|
|
907
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
908
|
-
switch (errorCode) {
|
|
909
|
-
case "InternalFailureException":
|
|
910
|
-
case "com.amazonaws.ioteventsdata#InternalFailureException":
|
|
911
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
912
|
-
case "InvalidRequestException":
|
|
913
|
-
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
914
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
915
|
-
case "ResourceNotFoundException":
|
|
916
|
-
case "com.amazonaws.ioteventsdata#ResourceNotFoundException":
|
|
917
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
918
|
-
case "ServiceUnavailableException":
|
|
919
|
-
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
920
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
921
|
-
case "ThrottlingException":
|
|
922
|
-
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
923
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
924
|
-
default:
|
|
925
|
-
const parsedBody = parsedOutput.body;
|
|
926
|
-
return throwDefaultError({
|
|
927
|
-
output,
|
|
928
|
-
parsedBody,
|
|
929
|
-
errorCode
|
|
930
|
-
});
|
|
931
|
-
}
|
|
932
|
-
}, "de_ListAlarmsCommandError");
|
|
933
616
|
var de_ListDetectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
934
617
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
935
|
-
return
|
|
618
|
+
return de_CommandError(output, context);
|
|
936
619
|
}
|
|
937
620
|
const contents = (0, import_smithy_client.map)({
|
|
938
621
|
$metadata: deserializeMetadata(output)
|
|
@@ -945,7 +628,7 @@ var de_ListDetectorsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
945
628
|
Object.assign(contents, doc);
|
|
946
629
|
return contents;
|
|
947
630
|
}, "de_ListDetectorsCommand");
|
|
948
|
-
var
|
|
631
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
949
632
|
const parsedOutput = {
|
|
950
633
|
...output,
|
|
951
634
|
body: await parseErrorBody(output.body, context)
|
|
@@ -958,15 +641,15 @@ var de_ListDetectorsCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
958
641
|
case "InvalidRequestException":
|
|
959
642
|
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
960
643
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
961
|
-
case "ResourceNotFoundException":
|
|
962
|
-
case "com.amazonaws.ioteventsdata#ResourceNotFoundException":
|
|
963
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
964
644
|
case "ServiceUnavailableException":
|
|
965
645
|
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
966
646
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
967
647
|
case "ThrottlingException":
|
|
968
648
|
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
969
649
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
650
|
+
case "ResourceNotFoundException":
|
|
651
|
+
case "com.amazonaws.ioteventsdata#ResourceNotFoundException":
|
|
652
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
970
653
|
default:
|
|
971
654
|
const parsedBody = parsedOutput.body;
|
|
972
655
|
return throwDefaultError({
|
|
@@ -975,7 +658,7 @@ var de_ListDetectorsCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
975
658
|
errorCode
|
|
976
659
|
});
|
|
977
660
|
}
|
|
978
|
-
}, "
|
|
661
|
+
}, "de_CommandError");
|
|
979
662
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(IoTEventsDataServiceException);
|
|
980
663
|
var de_InternalFailureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
981
664
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -159,7 +159,7 @@ export const se_ListDetectorsCommand = async (input, context) => {
|
|
|
159
159
|
};
|
|
160
160
|
export const de_BatchAcknowledgeAlarmCommand = async (output, context) => {
|
|
161
161
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
162
|
-
return
|
|
162
|
+
return de_CommandError(output, context);
|
|
163
163
|
}
|
|
164
164
|
const contents = map({
|
|
165
165
|
$metadata: deserializeMetadata(output),
|
|
@@ -171,37 +171,9 @@ export const de_BatchAcknowledgeAlarmCommand = async (output, context) => {
|
|
|
171
171
|
Object.assign(contents, doc);
|
|
172
172
|
return contents;
|
|
173
173
|
};
|
|
174
|
-
const de_BatchAcknowledgeAlarmCommandError = async (output, context) => {
|
|
175
|
-
const parsedOutput = {
|
|
176
|
-
...output,
|
|
177
|
-
body: await parseErrorBody(output.body, context),
|
|
178
|
-
};
|
|
179
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
180
|
-
switch (errorCode) {
|
|
181
|
-
case "InternalFailureException":
|
|
182
|
-
case "com.amazonaws.ioteventsdata#InternalFailureException":
|
|
183
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
184
|
-
case "InvalidRequestException":
|
|
185
|
-
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
186
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
187
|
-
case "ServiceUnavailableException":
|
|
188
|
-
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
189
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
190
|
-
case "ThrottlingException":
|
|
191
|
-
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
192
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
193
|
-
default:
|
|
194
|
-
const parsedBody = parsedOutput.body;
|
|
195
|
-
return throwDefaultError({
|
|
196
|
-
output,
|
|
197
|
-
parsedBody,
|
|
198
|
-
errorCode,
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
};
|
|
202
174
|
export const de_BatchDeleteDetectorCommand = async (output, context) => {
|
|
203
175
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
204
|
-
return
|
|
176
|
+
return de_CommandError(output, context);
|
|
205
177
|
}
|
|
206
178
|
const contents = map({
|
|
207
179
|
$metadata: deserializeMetadata(output),
|
|
@@ -213,37 +185,9 @@ export const de_BatchDeleteDetectorCommand = async (output, context) => {
|
|
|
213
185
|
Object.assign(contents, doc);
|
|
214
186
|
return contents;
|
|
215
187
|
};
|
|
216
|
-
const de_BatchDeleteDetectorCommandError = async (output, context) => {
|
|
217
|
-
const parsedOutput = {
|
|
218
|
-
...output,
|
|
219
|
-
body: await parseErrorBody(output.body, context),
|
|
220
|
-
};
|
|
221
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
222
|
-
switch (errorCode) {
|
|
223
|
-
case "InternalFailureException":
|
|
224
|
-
case "com.amazonaws.ioteventsdata#InternalFailureException":
|
|
225
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
226
|
-
case "InvalidRequestException":
|
|
227
|
-
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
228
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
229
|
-
case "ServiceUnavailableException":
|
|
230
|
-
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
231
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
232
|
-
case "ThrottlingException":
|
|
233
|
-
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
234
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
235
|
-
default:
|
|
236
|
-
const parsedBody = parsedOutput.body;
|
|
237
|
-
return throwDefaultError({
|
|
238
|
-
output,
|
|
239
|
-
parsedBody,
|
|
240
|
-
errorCode,
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
};
|
|
244
188
|
export const de_BatchDisableAlarmCommand = async (output, context) => {
|
|
245
189
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
246
|
-
return
|
|
190
|
+
return de_CommandError(output, context);
|
|
247
191
|
}
|
|
248
192
|
const contents = map({
|
|
249
193
|
$metadata: deserializeMetadata(output),
|
|
@@ -255,37 +199,9 @@ export const de_BatchDisableAlarmCommand = async (output, context) => {
|
|
|
255
199
|
Object.assign(contents, doc);
|
|
256
200
|
return contents;
|
|
257
201
|
};
|
|
258
|
-
const de_BatchDisableAlarmCommandError = async (output, context) => {
|
|
259
|
-
const parsedOutput = {
|
|
260
|
-
...output,
|
|
261
|
-
body: await parseErrorBody(output.body, context),
|
|
262
|
-
};
|
|
263
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
264
|
-
switch (errorCode) {
|
|
265
|
-
case "InternalFailureException":
|
|
266
|
-
case "com.amazonaws.ioteventsdata#InternalFailureException":
|
|
267
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
268
|
-
case "InvalidRequestException":
|
|
269
|
-
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
270
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
271
|
-
case "ServiceUnavailableException":
|
|
272
|
-
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
273
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
274
|
-
case "ThrottlingException":
|
|
275
|
-
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
276
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
277
|
-
default:
|
|
278
|
-
const parsedBody = parsedOutput.body;
|
|
279
|
-
return throwDefaultError({
|
|
280
|
-
output,
|
|
281
|
-
parsedBody,
|
|
282
|
-
errorCode,
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
};
|
|
286
202
|
export const de_BatchEnableAlarmCommand = async (output, context) => {
|
|
287
203
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
288
|
-
return
|
|
204
|
+
return de_CommandError(output, context);
|
|
289
205
|
}
|
|
290
206
|
const contents = map({
|
|
291
207
|
$metadata: deserializeMetadata(output),
|
|
@@ -297,37 +213,9 @@ export const de_BatchEnableAlarmCommand = async (output, context) => {
|
|
|
297
213
|
Object.assign(contents, doc);
|
|
298
214
|
return contents;
|
|
299
215
|
};
|
|
300
|
-
const de_BatchEnableAlarmCommandError = async (output, context) => {
|
|
301
|
-
const parsedOutput = {
|
|
302
|
-
...output,
|
|
303
|
-
body: await parseErrorBody(output.body, context),
|
|
304
|
-
};
|
|
305
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
306
|
-
switch (errorCode) {
|
|
307
|
-
case "InternalFailureException":
|
|
308
|
-
case "com.amazonaws.ioteventsdata#InternalFailureException":
|
|
309
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
310
|
-
case "InvalidRequestException":
|
|
311
|
-
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
312
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
313
|
-
case "ServiceUnavailableException":
|
|
314
|
-
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
315
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
316
|
-
case "ThrottlingException":
|
|
317
|
-
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
318
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
319
|
-
default:
|
|
320
|
-
const parsedBody = parsedOutput.body;
|
|
321
|
-
return throwDefaultError({
|
|
322
|
-
output,
|
|
323
|
-
parsedBody,
|
|
324
|
-
errorCode,
|
|
325
|
-
});
|
|
326
|
-
}
|
|
327
|
-
};
|
|
328
216
|
export const de_BatchPutMessageCommand = async (output, context) => {
|
|
329
217
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
330
|
-
return
|
|
218
|
+
return de_CommandError(output, context);
|
|
331
219
|
}
|
|
332
220
|
const contents = map({
|
|
333
221
|
$metadata: deserializeMetadata(output),
|
|
@@ -339,37 +227,9 @@ export const de_BatchPutMessageCommand = async (output, context) => {
|
|
|
339
227
|
Object.assign(contents, doc);
|
|
340
228
|
return contents;
|
|
341
229
|
};
|
|
342
|
-
const de_BatchPutMessageCommandError = async (output, context) => {
|
|
343
|
-
const parsedOutput = {
|
|
344
|
-
...output,
|
|
345
|
-
body: await parseErrorBody(output.body, context),
|
|
346
|
-
};
|
|
347
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
348
|
-
switch (errorCode) {
|
|
349
|
-
case "InternalFailureException":
|
|
350
|
-
case "com.amazonaws.ioteventsdata#InternalFailureException":
|
|
351
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
352
|
-
case "InvalidRequestException":
|
|
353
|
-
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
354
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
355
|
-
case "ServiceUnavailableException":
|
|
356
|
-
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
357
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
358
|
-
case "ThrottlingException":
|
|
359
|
-
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
360
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
361
|
-
default:
|
|
362
|
-
const parsedBody = parsedOutput.body;
|
|
363
|
-
return throwDefaultError({
|
|
364
|
-
output,
|
|
365
|
-
parsedBody,
|
|
366
|
-
errorCode,
|
|
367
|
-
});
|
|
368
|
-
}
|
|
369
|
-
};
|
|
370
230
|
export const de_BatchResetAlarmCommand = async (output, context) => {
|
|
371
231
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
372
|
-
return
|
|
232
|
+
return de_CommandError(output, context);
|
|
373
233
|
}
|
|
374
234
|
const contents = map({
|
|
375
235
|
$metadata: deserializeMetadata(output),
|
|
@@ -381,37 +241,9 @@ export const de_BatchResetAlarmCommand = async (output, context) => {
|
|
|
381
241
|
Object.assign(contents, doc);
|
|
382
242
|
return contents;
|
|
383
243
|
};
|
|
384
|
-
const de_BatchResetAlarmCommandError = async (output, context) => {
|
|
385
|
-
const parsedOutput = {
|
|
386
|
-
...output,
|
|
387
|
-
body: await parseErrorBody(output.body, context),
|
|
388
|
-
};
|
|
389
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
390
|
-
switch (errorCode) {
|
|
391
|
-
case "InternalFailureException":
|
|
392
|
-
case "com.amazonaws.ioteventsdata#InternalFailureException":
|
|
393
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
394
|
-
case "InvalidRequestException":
|
|
395
|
-
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
396
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
397
|
-
case "ServiceUnavailableException":
|
|
398
|
-
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
399
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
400
|
-
case "ThrottlingException":
|
|
401
|
-
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
402
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
403
|
-
default:
|
|
404
|
-
const parsedBody = parsedOutput.body;
|
|
405
|
-
return throwDefaultError({
|
|
406
|
-
output,
|
|
407
|
-
parsedBody,
|
|
408
|
-
errorCode,
|
|
409
|
-
});
|
|
410
|
-
}
|
|
411
|
-
};
|
|
412
244
|
export const de_BatchSnoozeAlarmCommand = async (output, context) => {
|
|
413
245
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
414
|
-
return
|
|
246
|
+
return de_CommandError(output, context);
|
|
415
247
|
}
|
|
416
248
|
const contents = map({
|
|
417
249
|
$metadata: deserializeMetadata(output),
|
|
@@ -423,37 +255,9 @@ export const de_BatchSnoozeAlarmCommand = async (output, context) => {
|
|
|
423
255
|
Object.assign(contents, doc);
|
|
424
256
|
return contents;
|
|
425
257
|
};
|
|
426
|
-
const de_BatchSnoozeAlarmCommandError = async (output, context) => {
|
|
427
|
-
const parsedOutput = {
|
|
428
|
-
...output,
|
|
429
|
-
body: await parseErrorBody(output.body, context),
|
|
430
|
-
};
|
|
431
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
432
|
-
switch (errorCode) {
|
|
433
|
-
case "InternalFailureException":
|
|
434
|
-
case "com.amazonaws.ioteventsdata#InternalFailureException":
|
|
435
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
436
|
-
case "InvalidRequestException":
|
|
437
|
-
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
438
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
439
|
-
case "ServiceUnavailableException":
|
|
440
|
-
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
441
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
442
|
-
case "ThrottlingException":
|
|
443
|
-
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
444
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
445
|
-
default:
|
|
446
|
-
const parsedBody = parsedOutput.body;
|
|
447
|
-
return throwDefaultError({
|
|
448
|
-
output,
|
|
449
|
-
parsedBody,
|
|
450
|
-
errorCode,
|
|
451
|
-
});
|
|
452
|
-
}
|
|
453
|
-
};
|
|
454
258
|
export const de_BatchUpdateDetectorCommand = async (output, context) => {
|
|
455
259
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
456
|
-
return
|
|
260
|
+
return de_CommandError(output, context);
|
|
457
261
|
}
|
|
458
262
|
const contents = map({
|
|
459
263
|
$metadata: deserializeMetadata(output),
|
|
@@ -465,37 +269,9 @@ export const de_BatchUpdateDetectorCommand = async (output, context) => {
|
|
|
465
269
|
Object.assign(contents, doc);
|
|
466
270
|
return contents;
|
|
467
271
|
};
|
|
468
|
-
const de_BatchUpdateDetectorCommandError = async (output, context) => {
|
|
469
|
-
const parsedOutput = {
|
|
470
|
-
...output,
|
|
471
|
-
body: await parseErrorBody(output.body, context),
|
|
472
|
-
};
|
|
473
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
474
|
-
switch (errorCode) {
|
|
475
|
-
case "InternalFailureException":
|
|
476
|
-
case "com.amazonaws.ioteventsdata#InternalFailureException":
|
|
477
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
478
|
-
case "InvalidRequestException":
|
|
479
|
-
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
480
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
481
|
-
case "ServiceUnavailableException":
|
|
482
|
-
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
483
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
484
|
-
case "ThrottlingException":
|
|
485
|
-
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
486
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
487
|
-
default:
|
|
488
|
-
const parsedBody = parsedOutput.body;
|
|
489
|
-
return throwDefaultError({
|
|
490
|
-
output,
|
|
491
|
-
parsedBody,
|
|
492
|
-
errorCode,
|
|
493
|
-
});
|
|
494
|
-
}
|
|
495
|
-
};
|
|
496
272
|
export const de_DescribeAlarmCommand = async (output, context) => {
|
|
497
273
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
498
|
-
return
|
|
274
|
+
return de_CommandError(output, context);
|
|
499
275
|
}
|
|
500
276
|
const contents = map({
|
|
501
277
|
$metadata: deserializeMetadata(output),
|
|
@@ -507,40 +283,9 @@ export const de_DescribeAlarmCommand = async (output, context) => {
|
|
|
507
283
|
Object.assign(contents, doc);
|
|
508
284
|
return contents;
|
|
509
285
|
};
|
|
510
|
-
const de_DescribeAlarmCommandError = async (output, context) => {
|
|
511
|
-
const parsedOutput = {
|
|
512
|
-
...output,
|
|
513
|
-
body: await parseErrorBody(output.body, context),
|
|
514
|
-
};
|
|
515
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
516
|
-
switch (errorCode) {
|
|
517
|
-
case "InternalFailureException":
|
|
518
|
-
case "com.amazonaws.ioteventsdata#InternalFailureException":
|
|
519
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
520
|
-
case "InvalidRequestException":
|
|
521
|
-
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
522
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
523
|
-
case "ResourceNotFoundException":
|
|
524
|
-
case "com.amazonaws.ioteventsdata#ResourceNotFoundException":
|
|
525
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
526
|
-
case "ServiceUnavailableException":
|
|
527
|
-
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
528
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
529
|
-
case "ThrottlingException":
|
|
530
|
-
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
531
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
532
|
-
default:
|
|
533
|
-
const parsedBody = parsedOutput.body;
|
|
534
|
-
return throwDefaultError({
|
|
535
|
-
output,
|
|
536
|
-
parsedBody,
|
|
537
|
-
errorCode,
|
|
538
|
-
});
|
|
539
|
-
}
|
|
540
|
-
};
|
|
541
286
|
export const de_DescribeDetectorCommand = async (output, context) => {
|
|
542
287
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
543
|
-
return
|
|
288
|
+
return de_CommandError(output, context);
|
|
544
289
|
}
|
|
545
290
|
const contents = map({
|
|
546
291
|
$metadata: deserializeMetadata(output),
|
|
@@ -552,40 +297,9 @@ export const de_DescribeDetectorCommand = async (output, context) => {
|
|
|
552
297
|
Object.assign(contents, doc);
|
|
553
298
|
return contents;
|
|
554
299
|
};
|
|
555
|
-
const de_DescribeDetectorCommandError = async (output, context) => {
|
|
556
|
-
const parsedOutput = {
|
|
557
|
-
...output,
|
|
558
|
-
body: await parseErrorBody(output.body, context),
|
|
559
|
-
};
|
|
560
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
561
|
-
switch (errorCode) {
|
|
562
|
-
case "InternalFailureException":
|
|
563
|
-
case "com.amazonaws.ioteventsdata#InternalFailureException":
|
|
564
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
565
|
-
case "InvalidRequestException":
|
|
566
|
-
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
567
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
568
|
-
case "ResourceNotFoundException":
|
|
569
|
-
case "com.amazonaws.ioteventsdata#ResourceNotFoundException":
|
|
570
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
571
|
-
case "ServiceUnavailableException":
|
|
572
|
-
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
573
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
574
|
-
case "ThrottlingException":
|
|
575
|
-
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
576
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
577
|
-
default:
|
|
578
|
-
const parsedBody = parsedOutput.body;
|
|
579
|
-
return throwDefaultError({
|
|
580
|
-
output,
|
|
581
|
-
parsedBody,
|
|
582
|
-
errorCode,
|
|
583
|
-
});
|
|
584
|
-
}
|
|
585
|
-
};
|
|
586
300
|
export const de_ListAlarmsCommand = async (output, context) => {
|
|
587
301
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
588
|
-
return
|
|
302
|
+
return de_CommandError(output, context);
|
|
589
303
|
}
|
|
590
304
|
const contents = map({
|
|
591
305
|
$metadata: deserializeMetadata(output),
|
|
@@ -598,40 +312,9 @@ export const de_ListAlarmsCommand = async (output, context) => {
|
|
|
598
312
|
Object.assign(contents, doc);
|
|
599
313
|
return contents;
|
|
600
314
|
};
|
|
601
|
-
const de_ListAlarmsCommandError = async (output, context) => {
|
|
602
|
-
const parsedOutput = {
|
|
603
|
-
...output,
|
|
604
|
-
body: await parseErrorBody(output.body, context),
|
|
605
|
-
};
|
|
606
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
607
|
-
switch (errorCode) {
|
|
608
|
-
case "InternalFailureException":
|
|
609
|
-
case "com.amazonaws.ioteventsdata#InternalFailureException":
|
|
610
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
611
|
-
case "InvalidRequestException":
|
|
612
|
-
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
613
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
614
|
-
case "ResourceNotFoundException":
|
|
615
|
-
case "com.amazonaws.ioteventsdata#ResourceNotFoundException":
|
|
616
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
617
|
-
case "ServiceUnavailableException":
|
|
618
|
-
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
619
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
620
|
-
case "ThrottlingException":
|
|
621
|
-
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
622
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
623
|
-
default:
|
|
624
|
-
const parsedBody = parsedOutput.body;
|
|
625
|
-
return throwDefaultError({
|
|
626
|
-
output,
|
|
627
|
-
parsedBody,
|
|
628
|
-
errorCode,
|
|
629
|
-
});
|
|
630
|
-
}
|
|
631
|
-
};
|
|
632
315
|
export const de_ListDetectorsCommand = async (output, context) => {
|
|
633
316
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
634
|
-
return
|
|
317
|
+
return de_CommandError(output, context);
|
|
635
318
|
}
|
|
636
319
|
const contents = map({
|
|
637
320
|
$metadata: deserializeMetadata(output),
|
|
@@ -644,7 +327,7 @@ export const de_ListDetectorsCommand = async (output, context) => {
|
|
|
644
327
|
Object.assign(contents, doc);
|
|
645
328
|
return contents;
|
|
646
329
|
};
|
|
647
|
-
const
|
|
330
|
+
const de_CommandError = async (output, context) => {
|
|
648
331
|
const parsedOutput = {
|
|
649
332
|
...output,
|
|
650
333
|
body: await parseErrorBody(output.body, context),
|
|
@@ -657,15 +340,15 @@ const de_ListDetectorsCommandError = async (output, context) => {
|
|
|
657
340
|
case "InvalidRequestException":
|
|
658
341
|
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
659
342
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
660
|
-
case "ResourceNotFoundException":
|
|
661
|
-
case "com.amazonaws.ioteventsdata#ResourceNotFoundException":
|
|
662
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
663
343
|
case "ServiceUnavailableException":
|
|
664
344
|
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
665
345
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
666
346
|
case "ThrottlingException":
|
|
667
347
|
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
668
348
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
349
|
+
case "ResourceNotFoundException":
|
|
350
|
+
case "com.amazonaws.ioteventsdata#ResourceNotFoundException":
|
|
351
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
669
352
|
default:
|
|
670
353
|
const parsedBody = parsedOutput.body;
|
|
671
354
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-iot-events-data",
|
|
3
3
|
"description": "AWS SDK for JavaScript Iot Events Data 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-iot-events-data",
|
|
@@ -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",
|