@aws-sdk/client-iotthingsgraph 3.131.0 → 3.142.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/CHANGELOG.md +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/AssociateEntityToThingCommand.js +2 -2
- package/dist-cjs/commands/CreateFlowTemplateCommand.js +2 -2
- package/dist-cjs/commands/CreateSystemInstanceCommand.js +2 -2
- package/dist-cjs/commands/CreateSystemTemplateCommand.js +2 -2
- package/dist-cjs/commands/DeleteFlowTemplateCommand.js +2 -2
- package/dist-cjs/commands/DeleteNamespaceCommand.js +2 -2
- package/dist-cjs/commands/DeleteSystemInstanceCommand.js +2 -2
- package/dist-cjs/commands/DeleteSystemTemplateCommand.js +2 -2
- package/dist-cjs/commands/DeploySystemInstanceCommand.js +2 -2
- package/dist-cjs/commands/DeprecateFlowTemplateCommand.js +2 -2
- package/dist-cjs/commands/DeprecateSystemTemplateCommand.js +2 -2
- package/dist-cjs/commands/DescribeNamespaceCommand.js +2 -2
- package/dist-cjs/commands/DissociateEntityFromThingCommand.js +2 -2
- package/dist-cjs/commands/GetEntitiesCommand.js +2 -2
- package/dist-cjs/commands/GetFlowTemplateCommand.js +2 -2
- package/dist-cjs/commands/GetFlowTemplateRevisionsCommand.js +2 -2
- package/dist-cjs/commands/GetNamespaceDeletionStatusCommand.js +2 -2
- package/dist-cjs/commands/GetSystemInstanceCommand.js +2 -2
- package/dist-cjs/commands/GetSystemTemplateCommand.js +2 -2
- package/dist-cjs/commands/GetSystemTemplateRevisionsCommand.js +2 -2
- package/dist-cjs/commands/GetUploadStatusCommand.js +2 -2
- package/dist-cjs/commands/ListFlowExecutionMessagesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/SearchEntitiesCommand.js +2 -2
- package/dist-cjs/commands/SearchFlowExecutionsCommand.js +2 -2
- package/dist-cjs/commands/SearchFlowTemplatesCommand.js +2 -2
- package/dist-cjs/commands/SearchSystemInstancesCommand.js +2 -2
- package/dist-cjs/commands/SearchSystemTemplatesCommand.js +2 -2
- package/dist-cjs/commands/SearchThingsCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UndeploySystemInstanceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateFlowTemplateCommand.js +2 -2
- package/dist-cjs/commands/UpdateSystemTemplateCommand.js +2 -2
- package/dist-cjs/commands/UploadEntityDefinitionsCommand.js +2 -2
- package/dist-cjs/models/models_0.js +355 -531
- package/dist-cjs/protocols/Aws_json1_1.js +175 -316
- package/dist-es/commands/AssociateEntityToThingCommand.js +3 -3
- package/dist-es/commands/CreateFlowTemplateCommand.js +3 -3
- package/dist-es/commands/CreateSystemInstanceCommand.js +3 -3
- package/dist-es/commands/CreateSystemTemplateCommand.js +3 -3
- package/dist-es/commands/DeleteFlowTemplateCommand.js +3 -3
- package/dist-es/commands/DeleteNamespaceCommand.js +3 -3
- package/dist-es/commands/DeleteSystemInstanceCommand.js +3 -3
- package/dist-es/commands/DeleteSystemTemplateCommand.js +3 -3
- package/dist-es/commands/DeploySystemInstanceCommand.js +3 -3
- package/dist-es/commands/DeprecateFlowTemplateCommand.js +3 -3
- package/dist-es/commands/DeprecateSystemTemplateCommand.js +3 -3
- package/dist-es/commands/DescribeNamespaceCommand.js +3 -3
- package/dist-es/commands/DissociateEntityFromThingCommand.js +3 -3
- package/dist-es/commands/GetEntitiesCommand.js +3 -3
- package/dist-es/commands/GetFlowTemplateCommand.js +3 -3
- package/dist-es/commands/GetFlowTemplateRevisionsCommand.js +3 -3
- package/dist-es/commands/GetNamespaceDeletionStatusCommand.js +3 -3
- package/dist-es/commands/GetSystemInstanceCommand.js +3 -3
- package/dist-es/commands/GetSystemTemplateCommand.js +3 -3
- package/dist-es/commands/GetSystemTemplateRevisionsCommand.js +3 -3
- package/dist-es/commands/GetUploadStatusCommand.js +3 -3
- package/dist-es/commands/ListFlowExecutionMessagesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/SearchEntitiesCommand.js +3 -3
- package/dist-es/commands/SearchFlowExecutionsCommand.js +3 -3
- package/dist-es/commands/SearchFlowTemplatesCommand.js +3 -3
- package/dist-es/commands/SearchSystemInstancesCommand.js +3 -3
- package/dist-es/commands/SearchSystemTemplatesCommand.js +3 -3
- package/dist-es/commands/SearchThingsCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UndeploySystemInstanceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateFlowTemplateCommand.js +3 -3
- package/dist-es/commands/UpdateSystemTemplateCommand.js +3 -3
- package/dist-es/commands/UploadEntityDefinitionsCommand.js +3 -3
- package/dist-es/models/models_0.js +88 -352
- package/dist-es/protocols/Aws_json1_1.js +281 -317
- package/dist-types/models/models_0.d.ts +352 -528
- package/dist-types/ts3.4/models/models_0.d.ts +176 -352
- package/package.json +6 -6
|
@@ -375,7 +375,6 @@ const deserializeAws_json1_1AssociateEntityToThingCommandError = async (output,
|
|
|
375
375
|
...output,
|
|
376
376
|
body: await parseBody(output.body, context),
|
|
377
377
|
};
|
|
378
|
-
let response;
|
|
379
378
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
380
379
|
switch (errorCode) {
|
|
381
380
|
case "InternalFailureException":
|
|
@@ -392,14 +391,12 @@ const deserializeAws_json1_1AssociateEntityToThingCommandError = async (output,
|
|
|
392
391
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
393
392
|
default:
|
|
394
393
|
const parsedBody = parsedOutput.body;
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
$metadata,
|
|
394
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
395
|
+
output,
|
|
396
|
+
parsedBody,
|
|
397
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
398
|
+
errorCode,
|
|
401
399
|
});
|
|
402
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
403
400
|
}
|
|
404
401
|
};
|
|
405
402
|
const deserializeAws_json1_1CreateFlowTemplateCommand = async (output, context) => {
|
|
@@ -421,7 +418,6 @@ const deserializeAws_json1_1CreateFlowTemplateCommandError = async (output, cont
|
|
|
421
418
|
...output,
|
|
422
419
|
body: await parseBody(output.body, context),
|
|
423
420
|
};
|
|
424
|
-
let response;
|
|
425
421
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
426
422
|
switch (errorCode) {
|
|
427
423
|
case "InternalFailureException":
|
|
@@ -441,14 +437,12 @@ const deserializeAws_json1_1CreateFlowTemplateCommandError = async (output, cont
|
|
|
441
437
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
442
438
|
default:
|
|
443
439
|
const parsedBody = parsedOutput.body;
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
$metadata,
|
|
440
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
441
|
+
output,
|
|
442
|
+
parsedBody,
|
|
443
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
444
|
+
errorCode,
|
|
450
445
|
});
|
|
451
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
452
446
|
}
|
|
453
447
|
};
|
|
454
448
|
const deserializeAws_json1_1CreateSystemInstanceCommand = async (output, context) => {
|
|
@@ -470,7 +464,6 @@ const deserializeAws_json1_1CreateSystemInstanceCommandError = async (output, co
|
|
|
470
464
|
...output,
|
|
471
465
|
body: await parseBody(output.body, context),
|
|
472
466
|
};
|
|
473
|
-
let response;
|
|
474
467
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
475
468
|
switch (errorCode) {
|
|
476
469
|
case "InternalFailureException":
|
|
@@ -490,14 +483,12 @@ const deserializeAws_json1_1CreateSystemInstanceCommandError = async (output, co
|
|
|
490
483
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
491
484
|
default:
|
|
492
485
|
const parsedBody = parsedOutput.body;
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
$metadata,
|
|
486
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
487
|
+
output,
|
|
488
|
+
parsedBody,
|
|
489
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
490
|
+
errorCode,
|
|
499
491
|
});
|
|
500
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
501
492
|
}
|
|
502
493
|
};
|
|
503
494
|
const deserializeAws_json1_1CreateSystemTemplateCommand = async (output, context) => {
|
|
@@ -519,7 +510,6 @@ const deserializeAws_json1_1CreateSystemTemplateCommandError = async (output, co
|
|
|
519
510
|
...output,
|
|
520
511
|
body: await parseBody(output.body, context),
|
|
521
512
|
};
|
|
522
|
-
let response;
|
|
523
513
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
524
514
|
switch (errorCode) {
|
|
525
515
|
case "InternalFailureException":
|
|
@@ -536,14 +526,12 @@ const deserializeAws_json1_1CreateSystemTemplateCommandError = async (output, co
|
|
|
536
526
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
537
527
|
default:
|
|
538
528
|
const parsedBody = parsedOutput.body;
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
$metadata,
|
|
529
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
530
|
+
output,
|
|
531
|
+
parsedBody,
|
|
532
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
533
|
+
errorCode,
|
|
545
534
|
});
|
|
546
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
547
535
|
}
|
|
548
536
|
};
|
|
549
537
|
const deserializeAws_json1_1DeleteFlowTemplateCommand = async (output, context) => {
|
|
@@ -565,7 +553,6 @@ const deserializeAws_json1_1DeleteFlowTemplateCommandError = async (output, cont
|
|
|
565
553
|
...output,
|
|
566
554
|
body: await parseBody(output.body, context),
|
|
567
555
|
};
|
|
568
|
-
let response;
|
|
569
556
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
570
557
|
switch (errorCode) {
|
|
571
558
|
case "InternalFailureException":
|
|
@@ -582,14 +569,12 @@ const deserializeAws_json1_1DeleteFlowTemplateCommandError = async (output, cont
|
|
|
582
569
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
583
570
|
default:
|
|
584
571
|
const parsedBody = parsedOutput.body;
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
$metadata,
|
|
572
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
573
|
+
output,
|
|
574
|
+
parsedBody,
|
|
575
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
576
|
+
errorCode,
|
|
591
577
|
});
|
|
592
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
593
578
|
}
|
|
594
579
|
};
|
|
595
580
|
const deserializeAws_json1_1DeleteNamespaceCommand = async (output, context) => {
|
|
@@ -611,7 +596,6 @@ const deserializeAws_json1_1DeleteNamespaceCommandError = async (output, context
|
|
|
611
596
|
...output,
|
|
612
597
|
body: await parseBody(output.body, context),
|
|
613
598
|
};
|
|
614
|
-
let response;
|
|
615
599
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
616
600
|
switch (errorCode) {
|
|
617
601
|
case "InternalFailureException":
|
|
@@ -622,14 +606,12 @@ const deserializeAws_json1_1DeleteNamespaceCommandError = async (output, context
|
|
|
622
606
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
623
607
|
default:
|
|
624
608
|
const parsedBody = parsedOutput.body;
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
$metadata,
|
|
609
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
610
|
+
output,
|
|
611
|
+
parsedBody,
|
|
612
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
613
|
+
errorCode,
|
|
631
614
|
});
|
|
632
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
633
615
|
}
|
|
634
616
|
};
|
|
635
617
|
const deserializeAws_json1_1DeleteSystemInstanceCommand = async (output, context) => {
|
|
@@ -651,7 +633,6 @@ const deserializeAws_json1_1DeleteSystemInstanceCommandError = async (output, co
|
|
|
651
633
|
...output,
|
|
652
634
|
body: await parseBody(output.body, context),
|
|
653
635
|
};
|
|
654
|
-
let response;
|
|
655
636
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
656
637
|
switch (errorCode) {
|
|
657
638
|
case "InternalFailureException":
|
|
@@ -668,14 +649,12 @@ const deserializeAws_json1_1DeleteSystemInstanceCommandError = async (output, co
|
|
|
668
649
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
669
650
|
default:
|
|
670
651
|
const parsedBody = parsedOutput.body;
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
$metadata,
|
|
652
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
653
|
+
output,
|
|
654
|
+
parsedBody,
|
|
655
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
656
|
+
errorCode,
|
|
677
657
|
});
|
|
678
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
679
658
|
}
|
|
680
659
|
};
|
|
681
660
|
const deserializeAws_json1_1DeleteSystemTemplateCommand = async (output, context) => {
|
|
@@ -697,7 +676,6 @@ const deserializeAws_json1_1DeleteSystemTemplateCommandError = async (output, co
|
|
|
697
676
|
...output,
|
|
698
677
|
body: await parseBody(output.body, context),
|
|
699
678
|
};
|
|
700
|
-
let response;
|
|
701
679
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
702
680
|
switch (errorCode) {
|
|
703
681
|
case "InternalFailureException":
|
|
@@ -714,14 +692,12 @@ const deserializeAws_json1_1DeleteSystemTemplateCommandError = async (output, co
|
|
|
714
692
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
715
693
|
default:
|
|
716
694
|
const parsedBody = parsedOutput.body;
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
$metadata,
|
|
695
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
696
|
+
output,
|
|
697
|
+
parsedBody,
|
|
698
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
699
|
+
errorCode,
|
|
723
700
|
});
|
|
724
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
725
701
|
}
|
|
726
702
|
};
|
|
727
703
|
const deserializeAws_json1_1DeploySystemInstanceCommand = async (output, context) => {
|
|
@@ -743,7 +719,6 @@ const deserializeAws_json1_1DeploySystemInstanceCommandError = async (output, co
|
|
|
743
719
|
...output,
|
|
744
720
|
body: await parseBody(output.body, context),
|
|
745
721
|
};
|
|
746
|
-
let response;
|
|
747
722
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
748
723
|
switch (errorCode) {
|
|
749
724
|
case "InternalFailureException":
|
|
@@ -763,14 +738,12 @@ const deserializeAws_json1_1DeploySystemInstanceCommandError = async (output, co
|
|
|
763
738
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
764
739
|
default:
|
|
765
740
|
const parsedBody = parsedOutput.body;
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
$metadata,
|
|
741
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
742
|
+
output,
|
|
743
|
+
parsedBody,
|
|
744
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
745
|
+
errorCode,
|
|
772
746
|
});
|
|
773
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
774
747
|
}
|
|
775
748
|
};
|
|
776
749
|
const deserializeAws_json1_1DeprecateFlowTemplateCommand = async (output, context) => {
|
|
@@ -792,7 +765,6 @@ const deserializeAws_json1_1DeprecateFlowTemplateCommandError = async (output, c
|
|
|
792
765
|
...output,
|
|
793
766
|
body: await parseBody(output.body, context),
|
|
794
767
|
};
|
|
795
|
-
let response;
|
|
796
768
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
797
769
|
switch (errorCode) {
|
|
798
770
|
case "InternalFailureException":
|
|
@@ -809,14 +781,12 @@ const deserializeAws_json1_1DeprecateFlowTemplateCommandError = async (output, c
|
|
|
809
781
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
810
782
|
default:
|
|
811
783
|
const parsedBody = parsedOutput.body;
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
$metadata,
|
|
784
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
785
|
+
output,
|
|
786
|
+
parsedBody,
|
|
787
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
788
|
+
errorCode,
|
|
818
789
|
});
|
|
819
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
820
790
|
}
|
|
821
791
|
};
|
|
822
792
|
const deserializeAws_json1_1DeprecateSystemTemplateCommand = async (output, context) => {
|
|
@@ -838,7 +808,6 @@ const deserializeAws_json1_1DeprecateSystemTemplateCommandError = async (output,
|
|
|
838
808
|
...output,
|
|
839
809
|
body: await parseBody(output.body, context),
|
|
840
810
|
};
|
|
841
|
-
let response;
|
|
842
811
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
843
812
|
switch (errorCode) {
|
|
844
813
|
case "InternalFailureException":
|
|
@@ -855,14 +824,12 @@ const deserializeAws_json1_1DeprecateSystemTemplateCommandError = async (output,
|
|
|
855
824
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
856
825
|
default:
|
|
857
826
|
const parsedBody = parsedOutput.body;
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
$metadata,
|
|
827
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
828
|
+
output,
|
|
829
|
+
parsedBody,
|
|
830
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
831
|
+
errorCode,
|
|
864
832
|
});
|
|
865
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
866
833
|
}
|
|
867
834
|
};
|
|
868
835
|
const deserializeAws_json1_1DescribeNamespaceCommand = async (output, context) => {
|
|
@@ -884,7 +851,6 @@ const deserializeAws_json1_1DescribeNamespaceCommandError = async (output, conte
|
|
|
884
851
|
...output,
|
|
885
852
|
body: await parseBody(output.body, context),
|
|
886
853
|
};
|
|
887
|
-
let response;
|
|
888
854
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
855
|
switch (errorCode) {
|
|
890
856
|
case "InternalFailureException":
|
|
@@ -901,14 +867,12 @@ const deserializeAws_json1_1DescribeNamespaceCommandError = async (output, conte
|
|
|
901
867
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
902
868
|
default:
|
|
903
869
|
const parsedBody = parsedOutput.body;
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
$metadata,
|
|
870
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
871
|
+
output,
|
|
872
|
+
parsedBody,
|
|
873
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
874
|
+
errorCode,
|
|
910
875
|
});
|
|
911
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
912
876
|
}
|
|
913
877
|
};
|
|
914
878
|
const deserializeAws_json1_1DissociateEntityFromThingCommand = async (output, context) => {
|
|
@@ -930,7 +894,6 @@ const deserializeAws_json1_1DissociateEntityFromThingCommandError = async (outpu
|
|
|
930
894
|
...output,
|
|
931
895
|
body: await parseBody(output.body, context),
|
|
932
896
|
};
|
|
933
|
-
let response;
|
|
934
897
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
935
898
|
switch (errorCode) {
|
|
936
899
|
case "InternalFailureException":
|
|
@@ -947,14 +910,12 @@ const deserializeAws_json1_1DissociateEntityFromThingCommandError = async (outpu
|
|
|
947
910
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
948
911
|
default:
|
|
949
912
|
const parsedBody = parsedOutput.body;
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
$metadata,
|
|
913
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
914
|
+
output,
|
|
915
|
+
parsedBody,
|
|
916
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
917
|
+
errorCode,
|
|
956
918
|
});
|
|
957
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
958
919
|
}
|
|
959
920
|
};
|
|
960
921
|
const deserializeAws_json1_1GetEntitiesCommand = async (output, context) => {
|
|
@@ -976,7 +937,6 @@ const deserializeAws_json1_1GetEntitiesCommandError = async (output, context) =>
|
|
|
976
937
|
...output,
|
|
977
938
|
body: await parseBody(output.body, context),
|
|
978
939
|
};
|
|
979
|
-
let response;
|
|
980
940
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
981
941
|
switch (errorCode) {
|
|
982
942
|
case "InternalFailureException":
|
|
@@ -993,14 +953,12 @@ const deserializeAws_json1_1GetEntitiesCommandError = async (output, context) =>
|
|
|
993
953
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
994
954
|
default:
|
|
995
955
|
const parsedBody = parsedOutput.body;
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
$metadata,
|
|
956
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
957
|
+
output,
|
|
958
|
+
parsedBody,
|
|
959
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
960
|
+
errorCode,
|
|
1002
961
|
});
|
|
1003
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1004
962
|
}
|
|
1005
963
|
};
|
|
1006
964
|
const deserializeAws_json1_1GetFlowTemplateCommand = async (output, context) => {
|
|
@@ -1022,7 +980,6 @@ const deserializeAws_json1_1GetFlowTemplateCommandError = async (output, context
|
|
|
1022
980
|
...output,
|
|
1023
981
|
body: await parseBody(output.body, context),
|
|
1024
982
|
};
|
|
1025
|
-
let response;
|
|
1026
983
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1027
984
|
switch (errorCode) {
|
|
1028
985
|
case "InternalFailureException":
|
|
@@ -1039,14 +996,12 @@ const deserializeAws_json1_1GetFlowTemplateCommandError = async (output, context
|
|
|
1039
996
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1040
997
|
default:
|
|
1041
998
|
const parsedBody = parsedOutput.body;
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
$metadata,
|
|
999
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1000
|
+
output,
|
|
1001
|
+
parsedBody,
|
|
1002
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1003
|
+
errorCode,
|
|
1048
1004
|
});
|
|
1049
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1050
1005
|
}
|
|
1051
1006
|
};
|
|
1052
1007
|
const deserializeAws_json1_1GetFlowTemplateRevisionsCommand = async (output, context) => {
|
|
@@ -1068,7 +1023,6 @@ const deserializeAws_json1_1GetFlowTemplateRevisionsCommandError = async (output
|
|
|
1068
1023
|
...output,
|
|
1069
1024
|
body: await parseBody(output.body, context),
|
|
1070
1025
|
};
|
|
1071
|
-
let response;
|
|
1072
1026
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1073
1027
|
switch (errorCode) {
|
|
1074
1028
|
case "InternalFailureException":
|
|
@@ -1085,14 +1039,12 @@ const deserializeAws_json1_1GetFlowTemplateRevisionsCommandError = async (output
|
|
|
1085
1039
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1086
1040
|
default:
|
|
1087
1041
|
const parsedBody = parsedOutput.body;
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
$metadata,
|
|
1042
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1043
|
+
output,
|
|
1044
|
+
parsedBody,
|
|
1045
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1046
|
+
errorCode,
|
|
1094
1047
|
});
|
|
1095
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1096
1048
|
}
|
|
1097
1049
|
};
|
|
1098
1050
|
const deserializeAws_json1_1GetNamespaceDeletionStatusCommand = async (output, context) => {
|
|
@@ -1114,7 +1066,6 @@ const deserializeAws_json1_1GetNamespaceDeletionStatusCommandError = async (outp
|
|
|
1114
1066
|
...output,
|
|
1115
1067
|
body: await parseBody(output.body, context),
|
|
1116
1068
|
};
|
|
1117
|
-
let response;
|
|
1118
1069
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1119
1070
|
switch (errorCode) {
|
|
1120
1071
|
case "InternalFailureException":
|
|
@@ -1128,14 +1079,12 @@ const deserializeAws_json1_1GetNamespaceDeletionStatusCommandError = async (outp
|
|
|
1128
1079
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1129
1080
|
default:
|
|
1130
1081
|
const parsedBody = parsedOutput.body;
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
$metadata,
|
|
1082
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1083
|
+
output,
|
|
1084
|
+
parsedBody,
|
|
1085
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1086
|
+
errorCode,
|
|
1137
1087
|
});
|
|
1138
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1139
1088
|
}
|
|
1140
1089
|
};
|
|
1141
1090
|
const deserializeAws_json1_1GetSystemInstanceCommand = async (output, context) => {
|
|
@@ -1157,7 +1106,6 @@ const deserializeAws_json1_1GetSystemInstanceCommandError = async (output, conte
|
|
|
1157
1106
|
...output,
|
|
1158
1107
|
body: await parseBody(output.body, context),
|
|
1159
1108
|
};
|
|
1160
|
-
let response;
|
|
1161
1109
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1162
1110
|
switch (errorCode) {
|
|
1163
1111
|
case "InternalFailureException":
|
|
@@ -1174,14 +1122,12 @@ const deserializeAws_json1_1GetSystemInstanceCommandError = async (output, conte
|
|
|
1174
1122
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1175
1123
|
default:
|
|
1176
1124
|
const parsedBody = parsedOutput.body;
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
$metadata,
|
|
1125
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1126
|
+
output,
|
|
1127
|
+
parsedBody,
|
|
1128
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1129
|
+
errorCode,
|
|
1183
1130
|
});
|
|
1184
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1185
1131
|
}
|
|
1186
1132
|
};
|
|
1187
1133
|
const deserializeAws_json1_1GetSystemTemplateCommand = async (output, context) => {
|
|
@@ -1203,7 +1149,6 @@ const deserializeAws_json1_1GetSystemTemplateCommandError = async (output, conte
|
|
|
1203
1149
|
...output,
|
|
1204
1150
|
body: await parseBody(output.body, context),
|
|
1205
1151
|
};
|
|
1206
|
-
let response;
|
|
1207
1152
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1208
1153
|
switch (errorCode) {
|
|
1209
1154
|
case "InternalFailureException":
|
|
@@ -1220,14 +1165,12 @@ const deserializeAws_json1_1GetSystemTemplateCommandError = async (output, conte
|
|
|
1220
1165
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1221
1166
|
default:
|
|
1222
1167
|
const parsedBody = parsedOutput.body;
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
$metadata,
|
|
1168
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1169
|
+
output,
|
|
1170
|
+
parsedBody,
|
|
1171
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1172
|
+
errorCode,
|
|
1229
1173
|
});
|
|
1230
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1231
1174
|
}
|
|
1232
1175
|
};
|
|
1233
1176
|
const deserializeAws_json1_1GetSystemTemplateRevisionsCommand = async (output, context) => {
|
|
@@ -1249,7 +1192,6 @@ const deserializeAws_json1_1GetSystemTemplateRevisionsCommandError = async (outp
|
|
|
1249
1192
|
...output,
|
|
1250
1193
|
body: await parseBody(output.body, context),
|
|
1251
1194
|
};
|
|
1252
|
-
let response;
|
|
1253
1195
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1254
1196
|
switch (errorCode) {
|
|
1255
1197
|
case "InternalFailureException":
|
|
@@ -1266,14 +1208,12 @@ const deserializeAws_json1_1GetSystemTemplateRevisionsCommandError = async (outp
|
|
|
1266
1208
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1267
1209
|
default:
|
|
1268
1210
|
const parsedBody = parsedOutput.body;
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
$metadata,
|
|
1211
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1212
|
+
output,
|
|
1213
|
+
parsedBody,
|
|
1214
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1215
|
+
errorCode,
|
|
1275
1216
|
});
|
|
1276
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1277
1217
|
}
|
|
1278
1218
|
};
|
|
1279
1219
|
const deserializeAws_json1_1GetUploadStatusCommand = async (output, context) => {
|
|
@@ -1295,7 +1235,6 @@ const deserializeAws_json1_1GetUploadStatusCommandError = async (output, context
|
|
|
1295
1235
|
...output,
|
|
1296
1236
|
body: await parseBody(output.body, context),
|
|
1297
1237
|
};
|
|
1298
|
-
let response;
|
|
1299
1238
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1300
1239
|
switch (errorCode) {
|
|
1301
1240
|
case "InternalFailureException":
|
|
@@ -1312,14 +1251,12 @@ const deserializeAws_json1_1GetUploadStatusCommandError = async (output, context
|
|
|
1312
1251
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1313
1252
|
default:
|
|
1314
1253
|
const parsedBody = parsedOutput.body;
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
$metadata,
|
|
1254
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1255
|
+
output,
|
|
1256
|
+
parsedBody,
|
|
1257
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1258
|
+
errorCode,
|
|
1321
1259
|
});
|
|
1322
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1323
1260
|
}
|
|
1324
1261
|
};
|
|
1325
1262
|
const deserializeAws_json1_1ListFlowExecutionMessagesCommand = async (output, context) => {
|
|
@@ -1341,7 +1278,6 @@ const deserializeAws_json1_1ListFlowExecutionMessagesCommandError = async (outpu
|
|
|
1341
1278
|
...output,
|
|
1342
1279
|
body: await parseBody(output.body, context),
|
|
1343
1280
|
};
|
|
1344
|
-
let response;
|
|
1345
1281
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1346
1282
|
switch (errorCode) {
|
|
1347
1283
|
case "InternalFailureException":
|
|
@@ -1358,14 +1294,12 @@ const deserializeAws_json1_1ListFlowExecutionMessagesCommandError = async (outpu
|
|
|
1358
1294
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1359
1295
|
default:
|
|
1360
1296
|
const parsedBody = parsedOutput.body;
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
$metadata,
|
|
1297
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1298
|
+
output,
|
|
1299
|
+
parsedBody,
|
|
1300
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1301
|
+
errorCode,
|
|
1367
1302
|
});
|
|
1368
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1369
1303
|
}
|
|
1370
1304
|
};
|
|
1371
1305
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -1387,7 +1321,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1387
1321
|
...output,
|
|
1388
1322
|
body: await parseBody(output.body, context),
|
|
1389
1323
|
};
|
|
1390
|
-
let response;
|
|
1391
1324
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1392
1325
|
switch (errorCode) {
|
|
1393
1326
|
case "InternalFailureException":
|
|
@@ -1404,14 +1337,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1404
1337
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1405
1338
|
default:
|
|
1406
1339
|
const parsedBody = parsedOutput.body;
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
$metadata,
|
|
1340
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1341
|
+
output,
|
|
1342
|
+
parsedBody,
|
|
1343
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1344
|
+
errorCode,
|
|
1413
1345
|
});
|
|
1414
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1415
1346
|
}
|
|
1416
1347
|
};
|
|
1417
1348
|
const deserializeAws_json1_1SearchEntitiesCommand = async (output, context) => {
|
|
@@ -1433,7 +1364,6 @@ const deserializeAws_json1_1SearchEntitiesCommandError = async (output, context)
|
|
|
1433
1364
|
...output,
|
|
1434
1365
|
body: await parseBody(output.body, context),
|
|
1435
1366
|
};
|
|
1436
|
-
let response;
|
|
1437
1367
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1438
1368
|
switch (errorCode) {
|
|
1439
1369
|
case "InternalFailureException":
|
|
@@ -1447,14 +1377,12 @@ const deserializeAws_json1_1SearchEntitiesCommandError = async (output, context)
|
|
|
1447
1377
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1448
1378
|
default:
|
|
1449
1379
|
const parsedBody = parsedOutput.body;
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
$metadata,
|
|
1380
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1381
|
+
output,
|
|
1382
|
+
parsedBody,
|
|
1383
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1384
|
+
errorCode,
|
|
1456
1385
|
});
|
|
1457
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1458
1386
|
}
|
|
1459
1387
|
};
|
|
1460
1388
|
const deserializeAws_json1_1SearchFlowExecutionsCommand = async (output, context) => {
|
|
@@ -1476,7 +1404,6 @@ const deserializeAws_json1_1SearchFlowExecutionsCommandError = async (output, co
|
|
|
1476
1404
|
...output,
|
|
1477
1405
|
body: await parseBody(output.body, context),
|
|
1478
1406
|
};
|
|
1479
|
-
let response;
|
|
1480
1407
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1481
1408
|
switch (errorCode) {
|
|
1482
1409
|
case "InternalFailureException":
|
|
@@ -1493,14 +1420,12 @@ const deserializeAws_json1_1SearchFlowExecutionsCommandError = async (output, co
|
|
|
1493
1420
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1494
1421
|
default:
|
|
1495
1422
|
const parsedBody = parsedOutput.body;
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
$metadata,
|
|
1423
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1424
|
+
output,
|
|
1425
|
+
parsedBody,
|
|
1426
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1427
|
+
errorCode,
|
|
1502
1428
|
});
|
|
1503
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1504
1429
|
}
|
|
1505
1430
|
};
|
|
1506
1431
|
const deserializeAws_json1_1SearchFlowTemplatesCommand = async (output, context) => {
|
|
@@ -1522,7 +1447,6 @@ const deserializeAws_json1_1SearchFlowTemplatesCommandError = async (output, con
|
|
|
1522
1447
|
...output,
|
|
1523
1448
|
body: await parseBody(output.body, context),
|
|
1524
1449
|
};
|
|
1525
|
-
let response;
|
|
1526
1450
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1527
1451
|
switch (errorCode) {
|
|
1528
1452
|
case "InternalFailureException":
|
|
@@ -1536,14 +1460,12 @@ const deserializeAws_json1_1SearchFlowTemplatesCommandError = async (output, con
|
|
|
1536
1460
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1537
1461
|
default:
|
|
1538
1462
|
const parsedBody = parsedOutput.body;
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
$metadata,
|
|
1463
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1464
|
+
output,
|
|
1465
|
+
parsedBody,
|
|
1466
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1467
|
+
errorCode,
|
|
1545
1468
|
});
|
|
1546
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1547
1469
|
}
|
|
1548
1470
|
};
|
|
1549
1471
|
const deserializeAws_json1_1SearchSystemInstancesCommand = async (output, context) => {
|
|
@@ -1565,7 +1487,6 @@ const deserializeAws_json1_1SearchSystemInstancesCommandError = async (output, c
|
|
|
1565
1487
|
...output,
|
|
1566
1488
|
body: await parseBody(output.body, context),
|
|
1567
1489
|
};
|
|
1568
|
-
let response;
|
|
1569
1490
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1570
1491
|
switch (errorCode) {
|
|
1571
1492
|
case "InternalFailureException":
|
|
@@ -1579,14 +1500,12 @@ const deserializeAws_json1_1SearchSystemInstancesCommandError = async (output, c
|
|
|
1579
1500
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1580
1501
|
default:
|
|
1581
1502
|
const parsedBody = parsedOutput.body;
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
$metadata,
|
|
1503
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1504
|
+
output,
|
|
1505
|
+
parsedBody,
|
|
1506
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1507
|
+
errorCode,
|
|
1588
1508
|
});
|
|
1589
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1590
1509
|
}
|
|
1591
1510
|
};
|
|
1592
1511
|
const deserializeAws_json1_1SearchSystemTemplatesCommand = async (output, context) => {
|
|
@@ -1608,7 +1527,6 @@ const deserializeAws_json1_1SearchSystemTemplatesCommandError = async (output, c
|
|
|
1608
1527
|
...output,
|
|
1609
1528
|
body: await parseBody(output.body, context),
|
|
1610
1529
|
};
|
|
1611
|
-
let response;
|
|
1612
1530
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1613
1531
|
switch (errorCode) {
|
|
1614
1532
|
case "InternalFailureException":
|
|
@@ -1622,14 +1540,12 @@ const deserializeAws_json1_1SearchSystemTemplatesCommandError = async (output, c
|
|
|
1622
1540
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1623
1541
|
default:
|
|
1624
1542
|
const parsedBody = parsedOutput.body;
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
$metadata,
|
|
1543
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1544
|
+
output,
|
|
1545
|
+
parsedBody,
|
|
1546
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1547
|
+
errorCode,
|
|
1631
1548
|
});
|
|
1632
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1633
1549
|
}
|
|
1634
1550
|
};
|
|
1635
1551
|
const deserializeAws_json1_1SearchThingsCommand = async (output, context) => {
|
|
@@ -1651,7 +1567,6 @@ const deserializeAws_json1_1SearchThingsCommandError = async (output, context) =
|
|
|
1651
1567
|
...output,
|
|
1652
1568
|
body: await parseBody(output.body, context),
|
|
1653
1569
|
};
|
|
1654
|
-
let response;
|
|
1655
1570
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1656
1571
|
switch (errorCode) {
|
|
1657
1572
|
case "InternalFailureException":
|
|
@@ -1668,14 +1583,12 @@ const deserializeAws_json1_1SearchThingsCommandError = async (output, context) =
|
|
|
1668
1583
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1669
1584
|
default:
|
|
1670
1585
|
const parsedBody = parsedOutput.body;
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
$metadata,
|
|
1586
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1587
|
+
output,
|
|
1588
|
+
parsedBody,
|
|
1589
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1590
|
+
errorCode,
|
|
1677
1591
|
});
|
|
1678
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1679
1592
|
}
|
|
1680
1593
|
};
|
|
1681
1594
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -1697,7 +1610,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1697
1610
|
...output,
|
|
1698
1611
|
body: await parseBody(output.body, context),
|
|
1699
1612
|
};
|
|
1700
|
-
let response;
|
|
1701
1613
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1702
1614
|
switch (errorCode) {
|
|
1703
1615
|
case "InternalFailureException":
|
|
@@ -1714,14 +1626,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1714
1626
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1715
1627
|
default:
|
|
1716
1628
|
const parsedBody = parsedOutput.body;
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
$metadata,
|
|
1629
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1630
|
+
output,
|
|
1631
|
+
parsedBody,
|
|
1632
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1633
|
+
errorCode,
|
|
1723
1634
|
});
|
|
1724
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1725
1635
|
}
|
|
1726
1636
|
};
|
|
1727
1637
|
const deserializeAws_json1_1UndeploySystemInstanceCommand = async (output, context) => {
|
|
@@ -1743,7 +1653,6 @@ const deserializeAws_json1_1UndeploySystemInstanceCommandError = async (output,
|
|
|
1743
1653
|
...output,
|
|
1744
1654
|
body: await parseBody(output.body, context),
|
|
1745
1655
|
};
|
|
1746
|
-
let response;
|
|
1747
1656
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1748
1657
|
switch (errorCode) {
|
|
1749
1658
|
case "InternalFailureException":
|
|
@@ -1763,14 +1672,12 @@ const deserializeAws_json1_1UndeploySystemInstanceCommandError = async (output,
|
|
|
1763
1672
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1764
1673
|
default:
|
|
1765
1674
|
const parsedBody = parsedOutput.body;
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
$metadata,
|
|
1675
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1676
|
+
output,
|
|
1677
|
+
parsedBody,
|
|
1678
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1679
|
+
errorCode,
|
|
1772
1680
|
});
|
|
1773
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1774
1681
|
}
|
|
1775
1682
|
};
|
|
1776
1683
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -1792,7 +1699,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1792
1699
|
...output,
|
|
1793
1700
|
body: await parseBody(output.body, context),
|
|
1794
1701
|
};
|
|
1795
|
-
let response;
|
|
1796
1702
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1797
1703
|
switch (errorCode) {
|
|
1798
1704
|
case "InternalFailureException":
|
|
@@ -1809,14 +1715,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1809
1715
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1810
1716
|
default:
|
|
1811
1717
|
const parsedBody = parsedOutput.body;
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
$metadata,
|
|
1718
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1719
|
+
output,
|
|
1720
|
+
parsedBody,
|
|
1721
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1722
|
+
errorCode,
|
|
1818
1723
|
});
|
|
1819
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1820
1724
|
}
|
|
1821
1725
|
};
|
|
1822
1726
|
const deserializeAws_json1_1UpdateFlowTemplateCommand = async (output, context) => {
|
|
@@ -1838,7 +1742,6 @@ const deserializeAws_json1_1UpdateFlowTemplateCommandError = async (output, cont
|
|
|
1838
1742
|
...output,
|
|
1839
1743
|
body: await parseBody(output.body, context),
|
|
1840
1744
|
};
|
|
1841
|
-
let response;
|
|
1842
1745
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1843
1746
|
switch (errorCode) {
|
|
1844
1747
|
case "InternalFailureException":
|
|
@@ -1855,14 +1758,12 @@ const deserializeAws_json1_1UpdateFlowTemplateCommandError = async (output, cont
|
|
|
1855
1758
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1856
1759
|
default:
|
|
1857
1760
|
const parsedBody = parsedOutput.body;
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
$metadata,
|
|
1761
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1762
|
+
output,
|
|
1763
|
+
parsedBody,
|
|
1764
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1765
|
+
errorCode,
|
|
1864
1766
|
});
|
|
1865
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1866
1767
|
}
|
|
1867
1768
|
};
|
|
1868
1769
|
const deserializeAws_json1_1UpdateSystemTemplateCommand = async (output, context) => {
|
|
@@ -1884,7 +1785,6 @@ const deserializeAws_json1_1UpdateSystemTemplateCommandError = async (output, co
|
|
|
1884
1785
|
...output,
|
|
1885
1786
|
body: await parseBody(output.body, context),
|
|
1886
1787
|
};
|
|
1887
|
-
let response;
|
|
1888
1788
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1889
1789
|
switch (errorCode) {
|
|
1890
1790
|
case "InternalFailureException":
|
|
@@ -1901,14 +1801,12 @@ const deserializeAws_json1_1UpdateSystemTemplateCommandError = async (output, co
|
|
|
1901
1801
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1902
1802
|
default:
|
|
1903
1803
|
const parsedBody = parsedOutput.body;
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
$metadata,
|
|
1804
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1805
|
+
output,
|
|
1806
|
+
parsedBody,
|
|
1807
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1808
|
+
errorCode,
|
|
1910
1809
|
});
|
|
1911
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1912
1810
|
}
|
|
1913
1811
|
};
|
|
1914
1812
|
const deserializeAws_json1_1UploadEntityDefinitionsCommand = async (output, context) => {
|
|
@@ -1930,7 +1828,6 @@ const deserializeAws_json1_1UploadEntityDefinitionsCommandError = async (output,
|
|
|
1930
1828
|
...output,
|
|
1931
1829
|
body: await parseBody(output.body, context),
|
|
1932
1830
|
};
|
|
1933
|
-
let response;
|
|
1934
1831
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1935
1832
|
switch (errorCode) {
|
|
1936
1833
|
case "InternalFailureException":
|
|
@@ -1944,14 +1841,12 @@ const deserializeAws_json1_1UploadEntityDefinitionsCommandError = async (output,
|
|
|
1944
1841
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1945
1842
|
default:
|
|
1946
1843
|
const parsedBody = parsedOutput.body;
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
$metadata,
|
|
1844
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1845
|
+
output,
|
|
1846
|
+
parsedBody,
|
|
1847
|
+
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1848
|
+
errorCode,
|
|
1953
1849
|
});
|
|
1954
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1955
1850
|
}
|
|
1956
1851
|
};
|
|
1957
1852
|
const deserializeAws_json1_1InternalFailureExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -2109,9 +2004,6 @@ const serializeAws_json1_1EntityFilters = (input, context) => {
|
|
|
2109
2004
|
return input
|
|
2110
2005
|
.filter((e) => e != null)
|
|
2111
2006
|
.map((entry) => {
|
|
2112
|
-
if (entry === null) {
|
|
2113
|
-
return null;
|
|
2114
|
-
}
|
|
2115
2007
|
return serializeAws_json1_1EntityFilter(entry, context);
|
|
2116
2008
|
});
|
|
2117
2009
|
};
|
|
@@ -2119,9 +2011,6 @@ const serializeAws_json1_1EntityFilterValues = (input, context) => {
|
|
|
2119
2011
|
return input
|
|
2120
2012
|
.filter((e) => e != null)
|
|
2121
2013
|
.map((entry) => {
|
|
2122
|
-
if (entry === null) {
|
|
2123
|
-
return null;
|
|
2124
|
-
}
|
|
2125
2014
|
return entry;
|
|
2126
2015
|
});
|
|
2127
2016
|
};
|
|
@@ -2129,9 +2018,6 @@ const serializeAws_json1_1EntityTypes = (input, context) => {
|
|
|
2129
2018
|
return input
|
|
2130
2019
|
.filter((e) => e != null)
|
|
2131
2020
|
.map((entry) => {
|
|
2132
|
-
if (entry === null) {
|
|
2133
|
-
return null;
|
|
2134
|
-
}
|
|
2135
2021
|
return entry;
|
|
2136
2022
|
});
|
|
2137
2023
|
};
|
|
@@ -2145,9 +2031,6 @@ const serializeAws_json1_1FlowTemplateFilters = (input, context) => {
|
|
|
2145
2031
|
return input
|
|
2146
2032
|
.filter((e) => e != null)
|
|
2147
2033
|
.map((entry) => {
|
|
2148
|
-
if (entry === null) {
|
|
2149
|
-
return null;
|
|
2150
|
-
}
|
|
2151
2034
|
return serializeAws_json1_1FlowTemplateFilter(entry, context);
|
|
2152
2035
|
});
|
|
2153
2036
|
};
|
|
@@ -2155,9 +2038,6 @@ const serializeAws_json1_1FlowTemplateFilterValues = (input, context) => {
|
|
|
2155
2038
|
return input
|
|
2156
2039
|
.filter((e) => e != null)
|
|
2157
2040
|
.map((entry) => {
|
|
2158
|
-
if (entry === null) {
|
|
2159
|
-
return null;
|
|
2160
|
-
}
|
|
2161
2041
|
return entry;
|
|
2162
2042
|
});
|
|
2163
2043
|
};
|
|
@@ -2284,9 +2164,6 @@ const serializeAws_json1_1SystemInstanceFilters = (input, context) => {
|
|
|
2284
2164
|
return input
|
|
2285
2165
|
.filter((e) => e != null)
|
|
2286
2166
|
.map((entry) => {
|
|
2287
|
-
if (entry === null) {
|
|
2288
|
-
return null;
|
|
2289
|
-
}
|
|
2290
2167
|
return serializeAws_json1_1SystemInstanceFilter(entry, context);
|
|
2291
2168
|
});
|
|
2292
2169
|
};
|
|
@@ -2294,9 +2171,6 @@ const serializeAws_json1_1SystemInstanceFilterValues = (input, context) => {
|
|
|
2294
2171
|
return input
|
|
2295
2172
|
.filter((e) => e != null)
|
|
2296
2173
|
.map((entry) => {
|
|
2297
|
-
if (entry === null) {
|
|
2298
|
-
return null;
|
|
2299
|
-
}
|
|
2300
2174
|
return entry;
|
|
2301
2175
|
});
|
|
2302
2176
|
};
|
|
@@ -2310,9 +2184,6 @@ const serializeAws_json1_1SystemTemplateFilters = (input, context) => {
|
|
|
2310
2184
|
return input
|
|
2311
2185
|
.filter((e) => e != null)
|
|
2312
2186
|
.map((entry) => {
|
|
2313
|
-
if (entry === null) {
|
|
2314
|
-
return null;
|
|
2315
|
-
}
|
|
2316
2187
|
return serializeAws_json1_1SystemTemplateFilter(entry, context);
|
|
2317
2188
|
});
|
|
2318
2189
|
};
|
|
@@ -2320,9 +2191,6 @@ const serializeAws_json1_1SystemTemplateFilterValues = (input, context) => {
|
|
|
2320
2191
|
return input
|
|
2321
2192
|
.filter((e) => e != null)
|
|
2322
2193
|
.map((entry) => {
|
|
2323
|
-
if (entry === null) {
|
|
2324
|
-
return null;
|
|
2325
|
-
}
|
|
2326
2194
|
return entry;
|
|
2327
2195
|
});
|
|
2328
2196
|
};
|
|
@@ -2336,9 +2204,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
2336
2204
|
return input
|
|
2337
2205
|
.filter((e) => e != null)
|
|
2338
2206
|
.map((entry) => {
|
|
2339
|
-
if (entry === null) {
|
|
2340
|
-
return null;
|
|
2341
|
-
}
|
|
2342
2207
|
return entry;
|
|
2343
2208
|
});
|
|
2344
2209
|
};
|
|
@@ -2346,9 +2211,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
2346
2211
|
return input
|
|
2347
2212
|
.filter((e) => e != null)
|
|
2348
2213
|
.map((entry) => {
|
|
2349
|
-
if (entry === null) {
|
|
2350
|
-
return null;
|
|
2351
|
-
}
|
|
2352
2214
|
return serializeAws_json1_1Tag(entry, context);
|
|
2353
2215
|
});
|
|
2354
2216
|
};
|
|
@@ -2394,9 +2256,6 @@ const serializeAws_json1_1Urns = (input, context) => {
|
|
|
2394
2256
|
return input
|
|
2395
2257
|
.filter((e) => e != null)
|
|
2396
2258
|
.map((entry) => {
|
|
2397
|
-
if (entry === null) {
|
|
2398
|
-
return null;
|
|
2399
|
-
}
|
|
2400
2259
|
return entry;
|
|
2401
2260
|
});
|
|
2402
2261
|
};
|