@aws-sdk/client-iotdeviceadvisor 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 +22 -329
- package/dist-es/protocols/Aws_restJson1.js +21 -328
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -467,7 +467,7 @@ var se_UpdateSuiteDefinitionCommand = /* @__PURE__ */ __name(async (input, conte
|
|
|
467
467
|
}, "se_UpdateSuiteDefinitionCommand");
|
|
468
468
|
var de_CreateSuiteDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
469
469
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
470
|
-
return
|
|
470
|
+
return de_CommandError(output, context);
|
|
471
471
|
}
|
|
472
472
|
const contents = (0, import_smithy_client.map)({
|
|
473
473
|
$metadata: deserializeMetadata(output)
|
|
@@ -482,31 +482,9 @@ var de_CreateSuiteDefinitionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
482
482
|
Object.assign(contents, doc);
|
|
483
483
|
return contents;
|
|
484
484
|
}, "de_CreateSuiteDefinitionCommand");
|
|
485
|
-
var de_CreateSuiteDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
486
|
-
const parsedOutput = {
|
|
487
|
-
...output,
|
|
488
|
-
body: await parseErrorBody(output.body, context)
|
|
489
|
-
};
|
|
490
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
491
|
-
switch (errorCode) {
|
|
492
|
-
case "InternalServerException":
|
|
493
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
494
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
495
|
-
case "ValidationException":
|
|
496
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
497
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
498
|
-
default:
|
|
499
|
-
const parsedBody = parsedOutput.body;
|
|
500
|
-
return throwDefaultError({
|
|
501
|
-
output,
|
|
502
|
-
parsedBody,
|
|
503
|
-
errorCode
|
|
504
|
-
});
|
|
505
|
-
}
|
|
506
|
-
}, "de_CreateSuiteDefinitionCommandError");
|
|
507
485
|
var de_DeleteSuiteDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
508
486
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
509
|
-
return
|
|
487
|
+
return de_CommandError(output, context);
|
|
510
488
|
}
|
|
511
489
|
const contents = (0, import_smithy_client.map)({
|
|
512
490
|
$metadata: deserializeMetadata(output)
|
|
@@ -514,31 +492,9 @@ var de_DeleteSuiteDefinitionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
514
492
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
515
493
|
return contents;
|
|
516
494
|
}, "de_DeleteSuiteDefinitionCommand");
|
|
517
|
-
var de_DeleteSuiteDefinitionCommandError = /* @__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 "InternalServerException":
|
|
525
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
526
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
527
|
-
case "ValidationException":
|
|
528
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
529
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
530
|
-
default:
|
|
531
|
-
const parsedBody = parsedOutput.body;
|
|
532
|
-
return throwDefaultError({
|
|
533
|
-
output,
|
|
534
|
-
parsedBody,
|
|
535
|
-
errorCode
|
|
536
|
-
});
|
|
537
|
-
}
|
|
538
|
-
}, "de_DeleteSuiteDefinitionCommandError");
|
|
539
495
|
var de_GetEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
540
496
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
541
|
-
return
|
|
497
|
+
return de_CommandError(output, context);
|
|
542
498
|
}
|
|
543
499
|
const contents = (0, import_smithy_client.map)({
|
|
544
500
|
$metadata: deserializeMetadata(output)
|
|
@@ -550,34 +506,9 @@ var de_GetEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
550
506
|
Object.assign(contents, doc);
|
|
551
507
|
return contents;
|
|
552
508
|
}, "de_GetEndpointCommand");
|
|
553
|
-
var de_GetEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
554
|
-
const parsedOutput = {
|
|
555
|
-
...output,
|
|
556
|
-
body: await parseErrorBody(output.body, context)
|
|
557
|
-
};
|
|
558
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
559
|
-
switch (errorCode) {
|
|
560
|
-
case "InternalServerException":
|
|
561
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
562
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
563
|
-
case "ResourceNotFoundException":
|
|
564
|
-
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
565
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
566
|
-
case "ValidationException":
|
|
567
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
568
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
569
|
-
default:
|
|
570
|
-
const parsedBody = parsedOutput.body;
|
|
571
|
-
return throwDefaultError({
|
|
572
|
-
output,
|
|
573
|
-
parsedBody,
|
|
574
|
-
errorCode
|
|
575
|
-
});
|
|
576
|
-
}
|
|
577
|
-
}, "de_GetEndpointCommandError");
|
|
578
509
|
var de_GetSuiteDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
579
510
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
580
|
-
return
|
|
511
|
+
return de_CommandError(output, context);
|
|
581
512
|
}
|
|
582
513
|
const contents = (0, import_smithy_client.map)({
|
|
583
514
|
$metadata: deserializeMetadata(output)
|
|
@@ -596,34 +527,9 @@ var de_GetSuiteDefinitionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
596
527
|
Object.assign(contents, doc);
|
|
597
528
|
return contents;
|
|
598
529
|
}, "de_GetSuiteDefinitionCommand");
|
|
599
|
-
var de_GetSuiteDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
600
|
-
const parsedOutput = {
|
|
601
|
-
...output,
|
|
602
|
-
body: await parseErrorBody(output.body, context)
|
|
603
|
-
};
|
|
604
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
605
|
-
switch (errorCode) {
|
|
606
|
-
case "InternalServerException":
|
|
607
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
608
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
609
|
-
case "ResourceNotFoundException":
|
|
610
|
-
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
611
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
612
|
-
case "ValidationException":
|
|
613
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
614
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
615
|
-
default:
|
|
616
|
-
const parsedBody = parsedOutput.body;
|
|
617
|
-
return throwDefaultError({
|
|
618
|
-
output,
|
|
619
|
-
parsedBody,
|
|
620
|
-
errorCode
|
|
621
|
-
});
|
|
622
|
-
}
|
|
623
|
-
}, "de_GetSuiteDefinitionCommandError");
|
|
624
530
|
var de_GetSuiteRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
625
531
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
626
|
-
return
|
|
532
|
+
return de_CommandError(output, context);
|
|
627
533
|
}
|
|
628
534
|
const contents = (0, import_smithy_client.map)({
|
|
629
535
|
$metadata: deserializeMetadata(output)
|
|
@@ -645,34 +551,9 @@ var de_GetSuiteRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
645
551
|
Object.assign(contents, doc);
|
|
646
552
|
return contents;
|
|
647
553
|
}, "de_GetSuiteRunCommand");
|
|
648
|
-
var de_GetSuiteRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
649
|
-
const parsedOutput = {
|
|
650
|
-
...output,
|
|
651
|
-
body: await parseErrorBody(output.body, context)
|
|
652
|
-
};
|
|
653
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
654
|
-
switch (errorCode) {
|
|
655
|
-
case "InternalServerException":
|
|
656
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
657
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
658
|
-
case "ResourceNotFoundException":
|
|
659
|
-
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
660
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
661
|
-
case "ValidationException":
|
|
662
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
663
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
664
|
-
default:
|
|
665
|
-
const parsedBody = parsedOutput.body;
|
|
666
|
-
return throwDefaultError({
|
|
667
|
-
output,
|
|
668
|
-
parsedBody,
|
|
669
|
-
errorCode
|
|
670
|
-
});
|
|
671
|
-
}
|
|
672
|
-
}, "de_GetSuiteRunCommandError");
|
|
673
554
|
var de_GetSuiteRunReportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
674
555
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
675
|
-
return
|
|
556
|
+
return de_CommandError(output, context);
|
|
676
557
|
}
|
|
677
558
|
const contents = (0, import_smithy_client.map)({
|
|
678
559
|
$metadata: deserializeMetadata(output)
|
|
@@ -684,34 +565,9 @@ var de_GetSuiteRunReportCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
684
565
|
Object.assign(contents, doc);
|
|
685
566
|
return contents;
|
|
686
567
|
}, "de_GetSuiteRunReportCommand");
|
|
687
|
-
var de_GetSuiteRunReportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
688
|
-
const parsedOutput = {
|
|
689
|
-
...output,
|
|
690
|
-
body: await parseErrorBody(output.body, context)
|
|
691
|
-
};
|
|
692
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
693
|
-
switch (errorCode) {
|
|
694
|
-
case "InternalServerException":
|
|
695
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
696
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
697
|
-
case "ResourceNotFoundException":
|
|
698
|
-
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
699
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
700
|
-
case "ValidationException":
|
|
701
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
702
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
703
|
-
default:
|
|
704
|
-
const parsedBody = parsedOutput.body;
|
|
705
|
-
return throwDefaultError({
|
|
706
|
-
output,
|
|
707
|
-
parsedBody,
|
|
708
|
-
errorCode
|
|
709
|
-
});
|
|
710
|
-
}
|
|
711
|
-
}, "de_GetSuiteRunReportCommandError");
|
|
712
568
|
var de_ListSuiteDefinitionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
713
569
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
714
|
-
return
|
|
570
|
+
return de_CommandError(output, context);
|
|
715
571
|
}
|
|
716
572
|
const contents = (0, import_smithy_client.map)({
|
|
717
573
|
$metadata: deserializeMetadata(output)
|
|
@@ -724,31 +580,9 @@ var de_ListSuiteDefinitionsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
724
580
|
Object.assign(contents, doc);
|
|
725
581
|
return contents;
|
|
726
582
|
}, "de_ListSuiteDefinitionsCommand");
|
|
727
|
-
var de_ListSuiteDefinitionsCommandError = /* @__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 "InternalServerException":
|
|
735
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
736
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
737
|
-
case "ValidationException":
|
|
738
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
739
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
740
|
-
default:
|
|
741
|
-
const parsedBody = parsedOutput.body;
|
|
742
|
-
return throwDefaultError({
|
|
743
|
-
output,
|
|
744
|
-
parsedBody,
|
|
745
|
-
errorCode
|
|
746
|
-
});
|
|
747
|
-
}
|
|
748
|
-
}, "de_ListSuiteDefinitionsCommandError");
|
|
749
583
|
var de_ListSuiteRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
750
584
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
751
|
-
return
|
|
585
|
+
return de_CommandError(output, context);
|
|
752
586
|
}
|
|
753
587
|
const contents = (0, import_smithy_client.map)({
|
|
754
588
|
$metadata: deserializeMetadata(output)
|
|
@@ -761,31 +595,9 @@ var de_ListSuiteRunsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
761
595
|
Object.assign(contents, doc);
|
|
762
596
|
return contents;
|
|
763
597
|
}, "de_ListSuiteRunsCommand");
|
|
764
|
-
var de_ListSuiteRunsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
765
|
-
const parsedOutput = {
|
|
766
|
-
...output,
|
|
767
|
-
body: await parseErrorBody(output.body, context)
|
|
768
|
-
};
|
|
769
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
770
|
-
switch (errorCode) {
|
|
771
|
-
case "InternalServerException":
|
|
772
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
773
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
774
|
-
case "ValidationException":
|
|
775
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
776
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
777
|
-
default:
|
|
778
|
-
const parsedBody = parsedOutput.body;
|
|
779
|
-
return throwDefaultError({
|
|
780
|
-
output,
|
|
781
|
-
parsedBody,
|
|
782
|
-
errorCode
|
|
783
|
-
});
|
|
784
|
-
}
|
|
785
|
-
}, "de_ListSuiteRunsCommandError");
|
|
786
598
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
787
599
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
788
|
-
return
|
|
600
|
+
return de_CommandError(output, context);
|
|
789
601
|
}
|
|
790
602
|
const contents = (0, import_smithy_client.map)({
|
|
791
603
|
$metadata: deserializeMetadata(output)
|
|
@@ -797,34 +609,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
797
609
|
Object.assign(contents, doc);
|
|
798
610
|
return contents;
|
|
799
611
|
}, "de_ListTagsForResourceCommand");
|
|
800
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
801
|
-
const parsedOutput = {
|
|
802
|
-
...output,
|
|
803
|
-
body: await parseErrorBody(output.body, context)
|
|
804
|
-
};
|
|
805
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
806
|
-
switch (errorCode) {
|
|
807
|
-
case "InternalServerException":
|
|
808
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
809
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
810
|
-
case "ResourceNotFoundException":
|
|
811
|
-
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
812
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
813
|
-
case "ValidationException":
|
|
814
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
815
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
816
|
-
default:
|
|
817
|
-
const parsedBody = parsedOutput.body;
|
|
818
|
-
return throwDefaultError({
|
|
819
|
-
output,
|
|
820
|
-
parsedBody,
|
|
821
|
-
errorCode
|
|
822
|
-
});
|
|
823
|
-
}
|
|
824
|
-
}, "de_ListTagsForResourceCommandError");
|
|
825
612
|
var de_StartSuiteRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
826
613
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
827
|
-
return
|
|
614
|
+
return de_CommandError(output, context);
|
|
828
615
|
}
|
|
829
616
|
const contents = (0, import_smithy_client.map)({
|
|
830
617
|
$metadata: deserializeMetadata(output)
|
|
@@ -839,34 +626,9 @@ var de_StartSuiteRunCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
839
626
|
Object.assign(contents, doc);
|
|
840
627
|
return contents;
|
|
841
628
|
}, "de_StartSuiteRunCommand");
|
|
842
|
-
var de_StartSuiteRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
843
|
-
const parsedOutput = {
|
|
844
|
-
...output,
|
|
845
|
-
body: await parseErrorBody(output.body, context)
|
|
846
|
-
};
|
|
847
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
|
-
switch (errorCode) {
|
|
849
|
-
case "ConflictException":
|
|
850
|
-
case "com.amazonaws.iotdeviceadvisor#ConflictException":
|
|
851
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
852
|
-
case "InternalServerException":
|
|
853
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
854
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
855
|
-
case "ValidationException":
|
|
856
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
857
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
858
|
-
default:
|
|
859
|
-
const parsedBody = parsedOutput.body;
|
|
860
|
-
return throwDefaultError({
|
|
861
|
-
output,
|
|
862
|
-
parsedBody,
|
|
863
|
-
errorCode
|
|
864
|
-
});
|
|
865
|
-
}
|
|
866
|
-
}, "de_StartSuiteRunCommandError");
|
|
867
629
|
var de_StopSuiteRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
868
630
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
869
|
-
return
|
|
631
|
+
return de_CommandError(output, context);
|
|
870
632
|
}
|
|
871
633
|
const contents = (0, import_smithy_client.map)({
|
|
872
634
|
$metadata: deserializeMetadata(output)
|
|
@@ -874,34 +636,9 @@ var de_StopSuiteRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
874
636
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
875
637
|
return contents;
|
|
876
638
|
}, "de_StopSuiteRunCommand");
|
|
877
|
-
var de_StopSuiteRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
878
|
-
const parsedOutput = {
|
|
879
|
-
...output,
|
|
880
|
-
body: await parseErrorBody(output.body, context)
|
|
881
|
-
};
|
|
882
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
883
|
-
switch (errorCode) {
|
|
884
|
-
case "InternalServerException":
|
|
885
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
886
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
887
|
-
case "ResourceNotFoundException":
|
|
888
|
-
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
889
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
890
|
-
case "ValidationException":
|
|
891
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
892
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
893
|
-
default:
|
|
894
|
-
const parsedBody = parsedOutput.body;
|
|
895
|
-
return throwDefaultError({
|
|
896
|
-
output,
|
|
897
|
-
parsedBody,
|
|
898
|
-
errorCode
|
|
899
|
-
});
|
|
900
|
-
}
|
|
901
|
-
}, "de_StopSuiteRunCommandError");
|
|
902
639
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
903
640
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
904
|
-
return
|
|
641
|
+
return de_CommandError(output, context);
|
|
905
642
|
}
|
|
906
643
|
const contents = (0, import_smithy_client.map)({
|
|
907
644
|
$metadata: deserializeMetadata(output)
|
|
@@ -909,34 +646,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
909
646
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
910
647
|
return contents;
|
|
911
648
|
}, "de_TagResourceCommand");
|
|
912
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
913
|
-
const parsedOutput = {
|
|
914
|
-
...output,
|
|
915
|
-
body: await parseErrorBody(output.body, context)
|
|
916
|
-
};
|
|
917
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
918
|
-
switch (errorCode) {
|
|
919
|
-
case "InternalServerException":
|
|
920
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
921
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
922
|
-
case "ResourceNotFoundException":
|
|
923
|
-
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
924
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
925
|
-
case "ValidationException":
|
|
926
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
927
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
928
|
-
default:
|
|
929
|
-
const parsedBody = parsedOutput.body;
|
|
930
|
-
return throwDefaultError({
|
|
931
|
-
output,
|
|
932
|
-
parsedBody,
|
|
933
|
-
errorCode
|
|
934
|
-
});
|
|
935
|
-
}
|
|
936
|
-
}, "de_TagResourceCommandError");
|
|
937
649
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
938
650
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
939
|
-
return
|
|
651
|
+
return de_CommandError(output, context);
|
|
940
652
|
}
|
|
941
653
|
const contents = (0, import_smithy_client.map)({
|
|
942
654
|
$metadata: deserializeMetadata(output)
|
|
@@ -944,34 +656,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
944
656
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
945
657
|
return contents;
|
|
946
658
|
}, "de_UntagResourceCommand");
|
|
947
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
948
|
-
const parsedOutput = {
|
|
949
|
-
...output,
|
|
950
|
-
body: await parseErrorBody(output.body, context)
|
|
951
|
-
};
|
|
952
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
953
|
-
switch (errorCode) {
|
|
954
|
-
case "InternalServerException":
|
|
955
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
956
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
957
|
-
case "ResourceNotFoundException":
|
|
958
|
-
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
959
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
960
|
-
case "ValidationException":
|
|
961
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
962
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
963
|
-
default:
|
|
964
|
-
const parsedBody = parsedOutput.body;
|
|
965
|
-
return throwDefaultError({
|
|
966
|
-
output,
|
|
967
|
-
parsedBody,
|
|
968
|
-
errorCode
|
|
969
|
-
});
|
|
970
|
-
}
|
|
971
|
-
}, "de_UntagResourceCommandError");
|
|
972
659
|
var de_UpdateSuiteDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
973
660
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
974
|
-
return
|
|
661
|
+
return de_CommandError(output, context);
|
|
975
662
|
}
|
|
976
663
|
const contents = (0, import_smithy_client.map)({
|
|
977
664
|
$metadata: deserializeMetadata(output)
|
|
@@ -988,7 +675,7 @@ var de_UpdateSuiteDefinitionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
988
675
|
Object.assign(contents, doc);
|
|
989
676
|
return contents;
|
|
990
677
|
}, "de_UpdateSuiteDefinitionCommand");
|
|
991
|
-
var
|
|
678
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
992
679
|
const parsedOutput = {
|
|
993
680
|
...output,
|
|
994
681
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1001,6 +688,12 @@ var de_UpdateSuiteDefinitionCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
1001
688
|
case "ValidationException":
|
|
1002
689
|
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
1003
690
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
691
|
+
case "ResourceNotFoundException":
|
|
692
|
+
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
693
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
694
|
+
case "ConflictException":
|
|
695
|
+
case "com.amazonaws.iotdeviceadvisor#ConflictException":
|
|
696
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1004
697
|
default:
|
|
1005
698
|
const parsedBody = parsedOutput.body;
|
|
1006
699
|
return throwDefaultError({
|
|
@@ -1009,7 +702,7 @@ var de_UpdateSuiteDefinitionCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
1009
702
|
errorCode
|
|
1010
703
|
});
|
|
1011
704
|
}
|
|
1012
|
-
}, "
|
|
705
|
+
}, "de_CommandError");
|
|
1013
706
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(IotDeviceAdvisorServiceException);
|
|
1014
707
|
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1015
708
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -177,7 +177,7 @@ export const se_UpdateSuiteDefinitionCommand = async (input, context) => {
|
|
|
177
177
|
};
|
|
178
178
|
export const de_CreateSuiteDefinitionCommand = async (output, context) => {
|
|
179
179
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
180
|
-
return
|
|
180
|
+
return de_CommandError(output, context);
|
|
181
181
|
}
|
|
182
182
|
const contents = map({
|
|
183
183
|
$metadata: deserializeMetadata(output),
|
|
@@ -192,31 +192,9 @@ export const de_CreateSuiteDefinitionCommand = async (output, context) => {
|
|
|
192
192
|
Object.assign(contents, doc);
|
|
193
193
|
return contents;
|
|
194
194
|
};
|
|
195
|
-
const de_CreateSuiteDefinitionCommandError = async (output, context) => {
|
|
196
|
-
const parsedOutput = {
|
|
197
|
-
...output,
|
|
198
|
-
body: await parseErrorBody(output.body, context),
|
|
199
|
-
};
|
|
200
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
201
|
-
switch (errorCode) {
|
|
202
|
-
case "InternalServerException":
|
|
203
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
204
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
205
|
-
case "ValidationException":
|
|
206
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
207
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
208
|
-
default:
|
|
209
|
-
const parsedBody = parsedOutput.body;
|
|
210
|
-
return throwDefaultError({
|
|
211
|
-
output,
|
|
212
|
-
parsedBody,
|
|
213
|
-
errorCode,
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
};
|
|
217
195
|
export const de_DeleteSuiteDefinitionCommand = async (output, context) => {
|
|
218
196
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
219
|
-
return
|
|
197
|
+
return de_CommandError(output, context);
|
|
220
198
|
}
|
|
221
199
|
const contents = map({
|
|
222
200
|
$metadata: deserializeMetadata(output),
|
|
@@ -224,31 +202,9 @@ export const de_DeleteSuiteDefinitionCommand = async (output, context) => {
|
|
|
224
202
|
await collectBody(output.body, context);
|
|
225
203
|
return contents;
|
|
226
204
|
};
|
|
227
|
-
const de_DeleteSuiteDefinitionCommandError = async (output, context) => {
|
|
228
|
-
const parsedOutput = {
|
|
229
|
-
...output,
|
|
230
|
-
body: await parseErrorBody(output.body, context),
|
|
231
|
-
};
|
|
232
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
233
|
-
switch (errorCode) {
|
|
234
|
-
case "InternalServerException":
|
|
235
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
236
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
237
|
-
case "ValidationException":
|
|
238
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
239
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
240
|
-
default:
|
|
241
|
-
const parsedBody = parsedOutput.body;
|
|
242
|
-
return throwDefaultError({
|
|
243
|
-
output,
|
|
244
|
-
parsedBody,
|
|
245
|
-
errorCode,
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
205
|
export const de_GetEndpointCommand = async (output, context) => {
|
|
250
206
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
251
|
-
return
|
|
207
|
+
return de_CommandError(output, context);
|
|
252
208
|
}
|
|
253
209
|
const contents = map({
|
|
254
210
|
$metadata: deserializeMetadata(output),
|
|
@@ -260,34 +216,9 @@ export const de_GetEndpointCommand = async (output, context) => {
|
|
|
260
216
|
Object.assign(contents, doc);
|
|
261
217
|
return contents;
|
|
262
218
|
};
|
|
263
|
-
const de_GetEndpointCommandError = async (output, context) => {
|
|
264
|
-
const parsedOutput = {
|
|
265
|
-
...output,
|
|
266
|
-
body: await parseErrorBody(output.body, context),
|
|
267
|
-
};
|
|
268
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
269
|
-
switch (errorCode) {
|
|
270
|
-
case "InternalServerException":
|
|
271
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
272
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
273
|
-
case "ResourceNotFoundException":
|
|
274
|
-
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
275
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
276
|
-
case "ValidationException":
|
|
277
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
278
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
279
|
-
default:
|
|
280
|
-
const parsedBody = parsedOutput.body;
|
|
281
|
-
return throwDefaultError({
|
|
282
|
-
output,
|
|
283
|
-
parsedBody,
|
|
284
|
-
errorCode,
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
219
|
export const de_GetSuiteDefinitionCommand = async (output, context) => {
|
|
289
220
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
290
|
-
return
|
|
221
|
+
return de_CommandError(output, context);
|
|
291
222
|
}
|
|
292
223
|
const contents = map({
|
|
293
224
|
$metadata: deserializeMetadata(output),
|
|
@@ -306,34 +237,9 @@ export const de_GetSuiteDefinitionCommand = async (output, context) => {
|
|
|
306
237
|
Object.assign(contents, doc);
|
|
307
238
|
return contents;
|
|
308
239
|
};
|
|
309
|
-
const de_GetSuiteDefinitionCommandError = async (output, context) => {
|
|
310
|
-
const parsedOutput = {
|
|
311
|
-
...output,
|
|
312
|
-
body: await parseErrorBody(output.body, context),
|
|
313
|
-
};
|
|
314
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
315
|
-
switch (errorCode) {
|
|
316
|
-
case "InternalServerException":
|
|
317
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
318
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
319
|
-
case "ResourceNotFoundException":
|
|
320
|
-
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
321
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
322
|
-
case "ValidationException":
|
|
323
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
324
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
325
|
-
default:
|
|
326
|
-
const parsedBody = parsedOutput.body;
|
|
327
|
-
return throwDefaultError({
|
|
328
|
-
output,
|
|
329
|
-
parsedBody,
|
|
330
|
-
errorCode,
|
|
331
|
-
});
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
240
|
export const de_GetSuiteRunCommand = async (output, context) => {
|
|
335
241
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
336
|
-
return
|
|
242
|
+
return de_CommandError(output, context);
|
|
337
243
|
}
|
|
338
244
|
const contents = map({
|
|
339
245
|
$metadata: deserializeMetadata(output),
|
|
@@ -355,34 +261,9 @@ export const de_GetSuiteRunCommand = async (output, context) => {
|
|
|
355
261
|
Object.assign(contents, doc);
|
|
356
262
|
return contents;
|
|
357
263
|
};
|
|
358
|
-
const de_GetSuiteRunCommandError = async (output, context) => {
|
|
359
|
-
const parsedOutput = {
|
|
360
|
-
...output,
|
|
361
|
-
body: await parseErrorBody(output.body, context),
|
|
362
|
-
};
|
|
363
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
364
|
-
switch (errorCode) {
|
|
365
|
-
case "InternalServerException":
|
|
366
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
367
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
368
|
-
case "ResourceNotFoundException":
|
|
369
|
-
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
370
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
371
|
-
case "ValidationException":
|
|
372
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
373
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
374
|
-
default:
|
|
375
|
-
const parsedBody = parsedOutput.body;
|
|
376
|
-
return throwDefaultError({
|
|
377
|
-
output,
|
|
378
|
-
parsedBody,
|
|
379
|
-
errorCode,
|
|
380
|
-
});
|
|
381
|
-
}
|
|
382
|
-
};
|
|
383
264
|
export const de_GetSuiteRunReportCommand = async (output, context) => {
|
|
384
265
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
385
|
-
return
|
|
266
|
+
return de_CommandError(output, context);
|
|
386
267
|
}
|
|
387
268
|
const contents = map({
|
|
388
269
|
$metadata: deserializeMetadata(output),
|
|
@@ -394,34 +275,9 @@ export const de_GetSuiteRunReportCommand = async (output, context) => {
|
|
|
394
275
|
Object.assign(contents, doc);
|
|
395
276
|
return contents;
|
|
396
277
|
};
|
|
397
|
-
const de_GetSuiteRunReportCommandError = async (output, context) => {
|
|
398
|
-
const parsedOutput = {
|
|
399
|
-
...output,
|
|
400
|
-
body: await parseErrorBody(output.body, context),
|
|
401
|
-
};
|
|
402
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
403
|
-
switch (errorCode) {
|
|
404
|
-
case "InternalServerException":
|
|
405
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
406
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
407
|
-
case "ResourceNotFoundException":
|
|
408
|
-
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
409
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
410
|
-
case "ValidationException":
|
|
411
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
412
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
413
|
-
default:
|
|
414
|
-
const parsedBody = parsedOutput.body;
|
|
415
|
-
return throwDefaultError({
|
|
416
|
-
output,
|
|
417
|
-
parsedBody,
|
|
418
|
-
errorCode,
|
|
419
|
-
});
|
|
420
|
-
}
|
|
421
|
-
};
|
|
422
278
|
export const de_ListSuiteDefinitionsCommand = async (output, context) => {
|
|
423
279
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
424
|
-
return
|
|
280
|
+
return de_CommandError(output, context);
|
|
425
281
|
}
|
|
426
282
|
const contents = map({
|
|
427
283
|
$metadata: deserializeMetadata(output),
|
|
@@ -434,31 +290,9 @@ export const de_ListSuiteDefinitionsCommand = async (output, context) => {
|
|
|
434
290
|
Object.assign(contents, doc);
|
|
435
291
|
return contents;
|
|
436
292
|
};
|
|
437
|
-
const de_ListSuiteDefinitionsCommandError = async (output, context) => {
|
|
438
|
-
const parsedOutput = {
|
|
439
|
-
...output,
|
|
440
|
-
body: await parseErrorBody(output.body, context),
|
|
441
|
-
};
|
|
442
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
443
|
-
switch (errorCode) {
|
|
444
|
-
case "InternalServerException":
|
|
445
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
446
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
447
|
-
case "ValidationException":
|
|
448
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
449
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
450
|
-
default:
|
|
451
|
-
const parsedBody = parsedOutput.body;
|
|
452
|
-
return throwDefaultError({
|
|
453
|
-
output,
|
|
454
|
-
parsedBody,
|
|
455
|
-
errorCode,
|
|
456
|
-
});
|
|
457
|
-
}
|
|
458
|
-
};
|
|
459
293
|
export const de_ListSuiteRunsCommand = async (output, context) => {
|
|
460
294
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
461
|
-
return
|
|
295
|
+
return de_CommandError(output, context);
|
|
462
296
|
}
|
|
463
297
|
const contents = map({
|
|
464
298
|
$metadata: deserializeMetadata(output),
|
|
@@ -471,31 +305,9 @@ export const de_ListSuiteRunsCommand = async (output, context) => {
|
|
|
471
305
|
Object.assign(contents, doc);
|
|
472
306
|
return contents;
|
|
473
307
|
};
|
|
474
|
-
const de_ListSuiteRunsCommandError = async (output, context) => {
|
|
475
|
-
const parsedOutput = {
|
|
476
|
-
...output,
|
|
477
|
-
body: await parseErrorBody(output.body, context),
|
|
478
|
-
};
|
|
479
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
480
|
-
switch (errorCode) {
|
|
481
|
-
case "InternalServerException":
|
|
482
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
483
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
484
|
-
case "ValidationException":
|
|
485
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
486
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
487
|
-
default:
|
|
488
|
-
const parsedBody = parsedOutput.body;
|
|
489
|
-
return throwDefaultError({
|
|
490
|
-
output,
|
|
491
|
-
parsedBody,
|
|
492
|
-
errorCode,
|
|
493
|
-
});
|
|
494
|
-
}
|
|
495
|
-
};
|
|
496
308
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
497
309
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
498
|
-
return
|
|
310
|
+
return de_CommandError(output, context);
|
|
499
311
|
}
|
|
500
312
|
const contents = map({
|
|
501
313
|
$metadata: deserializeMetadata(output),
|
|
@@ -507,34 +319,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
507
319
|
Object.assign(contents, doc);
|
|
508
320
|
return contents;
|
|
509
321
|
};
|
|
510
|
-
const de_ListTagsForResourceCommandError = 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 "InternalServerException":
|
|
518
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
519
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
520
|
-
case "ResourceNotFoundException":
|
|
521
|
-
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
522
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
523
|
-
case "ValidationException":
|
|
524
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
525
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
526
|
-
default:
|
|
527
|
-
const parsedBody = parsedOutput.body;
|
|
528
|
-
return throwDefaultError({
|
|
529
|
-
output,
|
|
530
|
-
parsedBody,
|
|
531
|
-
errorCode,
|
|
532
|
-
});
|
|
533
|
-
}
|
|
534
|
-
};
|
|
535
322
|
export const de_StartSuiteRunCommand = async (output, context) => {
|
|
536
323
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
537
|
-
return
|
|
324
|
+
return de_CommandError(output, context);
|
|
538
325
|
}
|
|
539
326
|
const contents = map({
|
|
540
327
|
$metadata: deserializeMetadata(output),
|
|
@@ -549,34 +336,9 @@ export const de_StartSuiteRunCommand = async (output, context) => {
|
|
|
549
336
|
Object.assign(contents, doc);
|
|
550
337
|
return contents;
|
|
551
338
|
};
|
|
552
|
-
const de_StartSuiteRunCommandError = async (output, context) => {
|
|
553
|
-
const parsedOutput = {
|
|
554
|
-
...output,
|
|
555
|
-
body: await parseErrorBody(output.body, context),
|
|
556
|
-
};
|
|
557
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
558
|
-
switch (errorCode) {
|
|
559
|
-
case "ConflictException":
|
|
560
|
-
case "com.amazonaws.iotdeviceadvisor#ConflictException":
|
|
561
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
562
|
-
case "InternalServerException":
|
|
563
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
564
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
565
|
-
case "ValidationException":
|
|
566
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
567
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
568
|
-
default:
|
|
569
|
-
const parsedBody = parsedOutput.body;
|
|
570
|
-
return throwDefaultError({
|
|
571
|
-
output,
|
|
572
|
-
parsedBody,
|
|
573
|
-
errorCode,
|
|
574
|
-
});
|
|
575
|
-
}
|
|
576
|
-
};
|
|
577
339
|
export const de_StopSuiteRunCommand = async (output, context) => {
|
|
578
340
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
579
|
-
return
|
|
341
|
+
return de_CommandError(output, context);
|
|
580
342
|
}
|
|
581
343
|
const contents = map({
|
|
582
344
|
$metadata: deserializeMetadata(output),
|
|
@@ -584,34 +346,9 @@ export const de_StopSuiteRunCommand = async (output, context) => {
|
|
|
584
346
|
await collectBody(output.body, context);
|
|
585
347
|
return contents;
|
|
586
348
|
};
|
|
587
|
-
const de_StopSuiteRunCommandError = async (output, context) => {
|
|
588
|
-
const parsedOutput = {
|
|
589
|
-
...output,
|
|
590
|
-
body: await parseErrorBody(output.body, context),
|
|
591
|
-
};
|
|
592
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
593
|
-
switch (errorCode) {
|
|
594
|
-
case "InternalServerException":
|
|
595
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
596
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
597
|
-
case "ResourceNotFoundException":
|
|
598
|
-
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
599
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
600
|
-
case "ValidationException":
|
|
601
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
602
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
603
|
-
default:
|
|
604
|
-
const parsedBody = parsedOutput.body;
|
|
605
|
-
return throwDefaultError({
|
|
606
|
-
output,
|
|
607
|
-
parsedBody,
|
|
608
|
-
errorCode,
|
|
609
|
-
});
|
|
610
|
-
}
|
|
611
|
-
};
|
|
612
349
|
export const de_TagResourceCommand = async (output, context) => {
|
|
613
350
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
614
|
-
return
|
|
351
|
+
return de_CommandError(output, context);
|
|
615
352
|
}
|
|
616
353
|
const contents = map({
|
|
617
354
|
$metadata: deserializeMetadata(output),
|
|
@@ -619,34 +356,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
619
356
|
await collectBody(output.body, context);
|
|
620
357
|
return contents;
|
|
621
358
|
};
|
|
622
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
623
|
-
const parsedOutput = {
|
|
624
|
-
...output,
|
|
625
|
-
body: await parseErrorBody(output.body, context),
|
|
626
|
-
};
|
|
627
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
628
|
-
switch (errorCode) {
|
|
629
|
-
case "InternalServerException":
|
|
630
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
631
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
632
|
-
case "ResourceNotFoundException":
|
|
633
|
-
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
634
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
635
|
-
case "ValidationException":
|
|
636
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
637
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
638
|
-
default:
|
|
639
|
-
const parsedBody = parsedOutput.body;
|
|
640
|
-
return throwDefaultError({
|
|
641
|
-
output,
|
|
642
|
-
parsedBody,
|
|
643
|
-
errorCode,
|
|
644
|
-
});
|
|
645
|
-
}
|
|
646
|
-
};
|
|
647
359
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
648
360
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
649
|
-
return
|
|
361
|
+
return de_CommandError(output, context);
|
|
650
362
|
}
|
|
651
363
|
const contents = map({
|
|
652
364
|
$metadata: deserializeMetadata(output),
|
|
@@ -654,34 +366,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
654
366
|
await collectBody(output.body, context);
|
|
655
367
|
return contents;
|
|
656
368
|
};
|
|
657
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
658
|
-
const parsedOutput = {
|
|
659
|
-
...output,
|
|
660
|
-
body: await parseErrorBody(output.body, context),
|
|
661
|
-
};
|
|
662
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
663
|
-
switch (errorCode) {
|
|
664
|
-
case "InternalServerException":
|
|
665
|
-
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
666
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
667
|
-
case "ResourceNotFoundException":
|
|
668
|
-
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
669
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
670
|
-
case "ValidationException":
|
|
671
|
-
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
672
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
673
|
-
default:
|
|
674
|
-
const parsedBody = parsedOutput.body;
|
|
675
|
-
return throwDefaultError({
|
|
676
|
-
output,
|
|
677
|
-
parsedBody,
|
|
678
|
-
errorCode,
|
|
679
|
-
});
|
|
680
|
-
}
|
|
681
|
-
};
|
|
682
369
|
export const de_UpdateSuiteDefinitionCommand = async (output, context) => {
|
|
683
370
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
684
|
-
return
|
|
371
|
+
return de_CommandError(output, context);
|
|
685
372
|
}
|
|
686
373
|
const contents = map({
|
|
687
374
|
$metadata: deserializeMetadata(output),
|
|
@@ -698,7 +385,7 @@ export const de_UpdateSuiteDefinitionCommand = async (output, context) => {
|
|
|
698
385
|
Object.assign(contents, doc);
|
|
699
386
|
return contents;
|
|
700
387
|
};
|
|
701
|
-
const
|
|
388
|
+
const de_CommandError = async (output, context) => {
|
|
702
389
|
const parsedOutput = {
|
|
703
390
|
...output,
|
|
704
391
|
body: await parseErrorBody(output.body, context),
|
|
@@ -711,6 +398,12 @@ const de_UpdateSuiteDefinitionCommandError = async (output, context) => {
|
|
|
711
398
|
case "ValidationException":
|
|
712
399
|
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
713
400
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
401
|
+
case "ResourceNotFoundException":
|
|
402
|
+
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
403
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
404
|
+
case "ConflictException":
|
|
405
|
+
case "com.amazonaws.iotdeviceadvisor#ConflictException":
|
|
406
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
714
407
|
default:
|
|
715
408
|
const parsedBody = parsedOutput.body;
|
|
716
409
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-iotdeviceadvisor",
|
|
3
3
|
"description": "AWS SDK for JavaScript Iotdeviceadvisor 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-iotdeviceadvisor",
|
|
@@ -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",
|