@aws-sdk/client-iotthingsgraph 3.118.1 → 3.121.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 +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +175 -141
- package/dist-es/protocols/Aws_json1_1.js +175 -141
- package/package.json +3 -3
|
@@ -376,8 +376,7 @@ const deserializeAws_json1_1AssociateEntityToThingCommandError = async (output,
|
|
|
376
376
|
body: await parseBody(output.body, context),
|
|
377
377
|
};
|
|
378
378
|
let response;
|
|
379
|
-
|
|
380
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
379
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
381
380
|
switch (errorCode) {
|
|
382
381
|
case "InternalFailureException":
|
|
383
382
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -393,10 +392,12 @@ const deserializeAws_json1_1AssociateEntityToThingCommandError = async (output,
|
|
|
393
392
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
394
393
|
default:
|
|
395
394
|
const parsedBody = parsedOutput.body;
|
|
395
|
+
const $metadata = deserializeMetadata(output);
|
|
396
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
396
397
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
397
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
398
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
398
399
|
$fault: "client",
|
|
399
|
-
$metadata
|
|
400
|
+
$metadata,
|
|
400
401
|
});
|
|
401
402
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
402
403
|
}
|
|
@@ -421,8 +422,7 @@ const deserializeAws_json1_1CreateFlowTemplateCommandError = async (output, cont
|
|
|
421
422
|
body: await parseBody(output.body, context),
|
|
422
423
|
};
|
|
423
424
|
let response;
|
|
424
|
-
|
|
425
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
425
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
426
426
|
switch (errorCode) {
|
|
427
427
|
case "InternalFailureException":
|
|
428
428
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -441,10 +441,12 @@ const deserializeAws_json1_1CreateFlowTemplateCommandError = async (output, cont
|
|
|
441
441
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
442
442
|
default:
|
|
443
443
|
const parsedBody = parsedOutput.body;
|
|
444
|
+
const $metadata = deserializeMetadata(output);
|
|
445
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
444
446
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
445
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
447
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
446
448
|
$fault: "client",
|
|
447
|
-
$metadata
|
|
449
|
+
$metadata,
|
|
448
450
|
});
|
|
449
451
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
450
452
|
}
|
|
@@ -469,8 +471,7 @@ const deserializeAws_json1_1CreateSystemInstanceCommandError = async (output, co
|
|
|
469
471
|
body: await parseBody(output.body, context),
|
|
470
472
|
};
|
|
471
473
|
let response;
|
|
472
|
-
|
|
473
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
474
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
474
475
|
switch (errorCode) {
|
|
475
476
|
case "InternalFailureException":
|
|
476
477
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -489,10 +490,12 @@ const deserializeAws_json1_1CreateSystemInstanceCommandError = async (output, co
|
|
|
489
490
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
490
491
|
default:
|
|
491
492
|
const parsedBody = parsedOutput.body;
|
|
493
|
+
const $metadata = deserializeMetadata(output);
|
|
494
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
492
495
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
493
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
496
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
494
497
|
$fault: "client",
|
|
495
|
-
$metadata
|
|
498
|
+
$metadata,
|
|
496
499
|
});
|
|
497
500
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
498
501
|
}
|
|
@@ -517,8 +520,7 @@ const deserializeAws_json1_1CreateSystemTemplateCommandError = async (output, co
|
|
|
517
520
|
body: await parseBody(output.body, context),
|
|
518
521
|
};
|
|
519
522
|
let response;
|
|
520
|
-
|
|
521
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
523
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
522
524
|
switch (errorCode) {
|
|
523
525
|
case "InternalFailureException":
|
|
524
526
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -534,10 +536,12 @@ const deserializeAws_json1_1CreateSystemTemplateCommandError = async (output, co
|
|
|
534
536
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
535
537
|
default:
|
|
536
538
|
const parsedBody = parsedOutput.body;
|
|
539
|
+
const $metadata = deserializeMetadata(output);
|
|
540
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
537
541
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
538
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
542
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
539
543
|
$fault: "client",
|
|
540
|
-
$metadata
|
|
544
|
+
$metadata,
|
|
541
545
|
});
|
|
542
546
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
543
547
|
}
|
|
@@ -562,8 +566,7 @@ const deserializeAws_json1_1DeleteFlowTemplateCommandError = async (output, cont
|
|
|
562
566
|
body: await parseBody(output.body, context),
|
|
563
567
|
};
|
|
564
568
|
let response;
|
|
565
|
-
|
|
566
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
569
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
567
570
|
switch (errorCode) {
|
|
568
571
|
case "InternalFailureException":
|
|
569
572
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -579,10 +582,12 @@ const deserializeAws_json1_1DeleteFlowTemplateCommandError = async (output, cont
|
|
|
579
582
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
580
583
|
default:
|
|
581
584
|
const parsedBody = parsedOutput.body;
|
|
585
|
+
const $metadata = deserializeMetadata(output);
|
|
586
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
582
587
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
583
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
588
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
584
589
|
$fault: "client",
|
|
585
|
-
$metadata
|
|
590
|
+
$metadata,
|
|
586
591
|
});
|
|
587
592
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
588
593
|
}
|
|
@@ -607,8 +612,7 @@ const deserializeAws_json1_1DeleteNamespaceCommandError = async (output, context
|
|
|
607
612
|
body: await parseBody(output.body, context),
|
|
608
613
|
};
|
|
609
614
|
let response;
|
|
610
|
-
|
|
611
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
615
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
612
616
|
switch (errorCode) {
|
|
613
617
|
case "InternalFailureException":
|
|
614
618
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -618,10 +622,12 @@ const deserializeAws_json1_1DeleteNamespaceCommandError = async (output, context
|
|
|
618
622
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
619
623
|
default:
|
|
620
624
|
const parsedBody = parsedOutput.body;
|
|
625
|
+
const $metadata = deserializeMetadata(output);
|
|
626
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
621
627
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
622
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
628
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
623
629
|
$fault: "client",
|
|
624
|
-
$metadata
|
|
630
|
+
$metadata,
|
|
625
631
|
});
|
|
626
632
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
627
633
|
}
|
|
@@ -646,8 +652,7 @@ const deserializeAws_json1_1DeleteSystemInstanceCommandError = async (output, co
|
|
|
646
652
|
body: await parseBody(output.body, context),
|
|
647
653
|
};
|
|
648
654
|
let response;
|
|
649
|
-
|
|
650
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
655
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
651
656
|
switch (errorCode) {
|
|
652
657
|
case "InternalFailureException":
|
|
653
658
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -663,10 +668,12 @@ const deserializeAws_json1_1DeleteSystemInstanceCommandError = async (output, co
|
|
|
663
668
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
664
669
|
default:
|
|
665
670
|
const parsedBody = parsedOutput.body;
|
|
671
|
+
const $metadata = deserializeMetadata(output);
|
|
672
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
666
673
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
667
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
674
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
668
675
|
$fault: "client",
|
|
669
|
-
$metadata
|
|
676
|
+
$metadata,
|
|
670
677
|
});
|
|
671
678
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
672
679
|
}
|
|
@@ -691,8 +698,7 @@ const deserializeAws_json1_1DeleteSystemTemplateCommandError = async (output, co
|
|
|
691
698
|
body: await parseBody(output.body, context),
|
|
692
699
|
};
|
|
693
700
|
let response;
|
|
694
|
-
|
|
695
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
701
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
696
702
|
switch (errorCode) {
|
|
697
703
|
case "InternalFailureException":
|
|
698
704
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -708,10 +714,12 @@ const deserializeAws_json1_1DeleteSystemTemplateCommandError = async (output, co
|
|
|
708
714
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
709
715
|
default:
|
|
710
716
|
const parsedBody = parsedOutput.body;
|
|
717
|
+
const $metadata = deserializeMetadata(output);
|
|
718
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
711
719
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
712
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
720
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
713
721
|
$fault: "client",
|
|
714
|
-
$metadata
|
|
722
|
+
$metadata,
|
|
715
723
|
});
|
|
716
724
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
717
725
|
}
|
|
@@ -736,8 +744,7 @@ const deserializeAws_json1_1DeploySystemInstanceCommandError = async (output, co
|
|
|
736
744
|
body: await parseBody(output.body, context),
|
|
737
745
|
};
|
|
738
746
|
let response;
|
|
739
|
-
|
|
740
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
747
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
741
748
|
switch (errorCode) {
|
|
742
749
|
case "InternalFailureException":
|
|
743
750
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -756,10 +763,12 @@ const deserializeAws_json1_1DeploySystemInstanceCommandError = async (output, co
|
|
|
756
763
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
757
764
|
default:
|
|
758
765
|
const parsedBody = parsedOutput.body;
|
|
766
|
+
const $metadata = deserializeMetadata(output);
|
|
767
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
759
768
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
760
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
769
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
761
770
|
$fault: "client",
|
|
762
|
-
$metadata
|
|
771
|
+
$metadata,
|
|
763
772
|
});
|
|
764
773
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
765
774
|
}
|
|
@@ -784,8 +793,7 @@ const deserializeAws_json1_1DeprecateFlowTemplateCommandError = async (output, c
|
|
|
784
793
|
body: await parseBody(output.body, context),
|
|
785
794
|
};
|
|
786
795
|
let response;
|
|
787
|
-
|
|
788
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
796
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
789
797
|
switch (errorCode) {
|
|
790
798
|
case "InternalFailureException":
|
|
791
799
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -801,10 +809,12 @@ const deserializeAws_json1_1DeprecateFlowTemplateCommandError = async (output, c
|
|
|
801
809
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
802
810
|
default:
|
|
803
811
|
const parsedBody = parsedOutput.body;
|
|
812
|
+
const $metadata = deserializeMetadata(output);
|
|
813
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
804
814
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
805
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
815
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
806
816
|
$fault: "client",
|
|
807
|
-
$metadata
|
|
817
|
+
$metadata,
|
|
808
818
|
});
|
|
809
819
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
810
820
|
}
|
|
@@ -829,8 +839,7 @@ const deserializeAws_json1_1DeprecateSystemTemplateCommandError = async (output,
|
|
|
829
839
|
body: await parseBody(output.body, context),
|
|
830
840
|
};
|
|
831
841
|
let response;
|
|
832
|
-
|
|
833
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
842
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
834
843
|
switch (errorCode) {
|
|
835
844
|
case "InternalFailureException":
|
|
836
845
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -846,10 +855,12 @@ const deserializeAws_json1_1DeprecateSystemTemplateCommandError = async (output,
|
|
|
846
855
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
847
856
|
default:
|
|
848
857
|
const parsedBody = parsedOutput.body;
|
|
858
|
+
const $metadata = deserializeMetadata(output);
|
|
859
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
849
860
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
850
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
861
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
851
862
|
$fault: "client",
|
|
852
|
-
$metadata
|
|
863
|
+
$metadata,
|
|
853
864
|
});
|
|
854
865
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
855
866
|
}
|
|
@@ -874,8 +885,7 @@ const deserializeAws_json1_1DescribeNamespaceCommandError = async (output, conte
|
|
|
874
885
|
body: await parseBody(output.body, context),
|
|
875
886
|
};
|
|
876
887
|
let response;
|
|
877
|
-
|
|
878
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
888
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
879
889
|
switch (errorCode) {
|
|
880
890
|
case "InternalFailureException":
|
|
881
891
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -891,10 +901,12 @@ const deserializeAws_json1_1DescribeNamespaceCommandError = async (output, conte
|
|
|
891
901
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
892
902
|
default:
|
|
893
903
|
const parsedBody = parsedOutput.body;
|
|
904
|
+
const $metadata = deserializeMetadata(output);
|
|
905
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
894
906
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
895
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
907
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
896
908
|
$fault: "client",
|
|
897
|
-
$metadata
|
|
909
|
+
$metadata,
|
|
898
910
|
});
|
|
899
911
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
900
912
|
}
|
|
@@ -919,8 +931,7 @@ const deserializeAws_json1_1DissociateEntityFromThingCommandError = async (outpu
|
|
|
919
931
|
body: await parseBody(output.body, context),
|
|
920
932
|
};
|
|
921
933
|
let response;
|
|
922
|
-
|
|
923
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
934
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
924
935
|
switch (errorCode) {
|
|
925
936
|
case "InternalFailureException":
|
|
926
937
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -936,10 +947,12 @@ const deserializeAws_json1_1DissociateEntityFromThingCommandError = async (outpu
|
|
|
936
947
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
937
948
|
default:
|
|
938
949
|
const parsedBody = parsedOutput.body;
|
|
950
|
+
const $metadata = deserializeMetadata(output);
|
|
951
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
939
952
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
940
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
953
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
941
954
|
$fault: "client",
|
|
942
|
-
$metadata
|
|
955
|
+
$metadata,
|
|
943
956
|
});
|
|
944
957
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
945
958
|
}
|
|
@@ -964,8 +977,7 @@ const deserializeAws_json1_1GetEntitiesCommandError = async (output, context) =>
|
|
|
964
977
|
body: await parseBody(output.body, context),
|
|
965
978
|
};
|
|
966
979
|
let response;
|
|
967
|
-
|
|
968
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
980
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
969
981
|
switch (errorCode) {
|
|
970
982
|
case "InternalFailureException":
|
|
971
983
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -981,10 +993,12 @@ const deserializeAws_json1_1GetEntitiesCommandError = async (output, context) =>
|
|
|
981
993
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
982
994
|
default:
|
|
983
995
|
const parsedBody = parsedOutput.body;
|
|
996
|
+
const $metadata = deserializeMetadata(output);
|
|
997
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
984
998
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
985
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
999
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
986
1000
|
$fault: "client",
|
|
987
|
-
$metadata
|
|
1001
|
+
$metadata,
|
|
988
1002
|
});
|
|
989
1003
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
990
1004
|
}
|
|
@@ -1009,8 +1023,7 @@ const deserializeAws_json1_1GetFlowTemplateCommandError = async (output, context
|
|
|
1009
1023
|
body: await parseBody(output.body, context),
|
|
1010
1024
|
};
|
|
1011
1025
|
let response;
|
|
1012
|
-
|
|
1013
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1026
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1014
1027
|
switch (errorCode) {
|
|
1015
1028
|
case "InternalFailureException":
|
|
1016
1029
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -1026,10 +1039,12 @@ const deserializeAws_json1_1GetFlowTemplateCommandError = async (output, context
|
|
|
1026
1039
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1027
1040
|
default:
|
|
1028
1041
|
const parsedBody = parsedOutput.body;
|
|
1042
|
+
const $metadata = deserializeMetadata(output);
|
|
1043
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1029
1044
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
1030
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1045
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1031
1046
|
$fault: "client",
|
|
1032
|
-
$metadata
|
|
1047
|
+
$metadata,
|
|
1033
1048
|
});
|
|
1034
1049
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1035
1050
|
}
|
|
@@ -1054,8 +1069,7 @@ const deserializeAws_json1_1GetFlowTemplateRevisionsCommandError = async (output
|
|
|
1054
1069
|
body: await parseBody(output.body, context),
|
|
1055
1070
|
};
|
|
1056
1071
|
let response;
|
|
1057
|
-
|
|
1058
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1072
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1059
1073
|
switch (errorCode) {
|
|
1060
1074
|
case "InternalFailureException":
|
|
1061
1075
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -1071,10 +1085,12 @@ const deserializeAws_json1_1GetFlowTemplateRevisionsCommandError = async (output
|
|
|
1071
1085
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1072
1086
|
default:
|
|
1073
1087
|
const parsedBody = parsedOutput.body;
|
|
1088
|
+
const $metadata = deserializeMetadata(output);
|
|
1089
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1074
1090
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
1075
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1091
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1076
1092
|
$fault: "client",
|
|
1077
|
-
$metadata
|
|
1093
|
+
$metadata,
|
|
1078
1094
|
});
|
|
1079
1095
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1080
1096
|
}
|
|
@@ -1099,8 +1115,7 @@ const deserializeAws_json1_1GetNamespaceDeletionStatusCommandError = async (outp
|
|
|
1099
1115
|
body: await parseBody(output.body, context),
|
|
1100
1116
|
};
|
|
1101
1117
|
let response;
|
|
1102
|
-
|
|
1103
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1118
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1104
1119
|
switch (errorCode) {
|
|
1105
1120
|
case "InternalFailureException":
|
|
1106
1121
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -1113,10 +1128,12 @@ const deserializeAws_json1_1GetNamespaceDeletionStatusCommandError = async (outp
|
|
|
1113
1128
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1114
1129
|
default:
|
|
1115
1130
|
const parsedBody = parsedOutput.body;
|
|
1131
|
+
const $metadata = deserializeMetadata(output);
|
|
1132
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1116
1133
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
1117
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1134
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1118
1135
|
$fault: "client",
|
|
1119
|
-
$metadata
|
|
1136
|
+
$metadata,
|
|
1120
1137
|
});
|
|
1121
1138
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1122
1139
|
}
|
|
@@ -1141,8 +1158,7 @@ const deserializeAws_json1_1GetSystemInstanceCommandError = async (output, conte
|
|
|
1141
1158
|
body: await parseBody(output.body, context),
|
|
1142
1159
|
};
|
|
1143
1160
|
let response;
|
|
1144
|
-
|
|
1145
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1161
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1146
1162
|
switch (errorCode) {
|
|
1147
1163
|
case "InternalFailureException":
|
|
1148
1164
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -1158,10 +1174,12 @@ const deserializeAws_json1_1GetSystemInstanceCommandError = async (output, conte
|
|
|
1158
1174
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1159
1175
|
default:
|
|
1160
1176
|
const parsedBody = parsedOutput.body;
|
|
1177
|
+
const $metadata = deserializeMetadata(output);
|
|
1178
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1161
1179
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
1162
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1180
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1163
1181
|
$fault: "client",
|
|
1164
|
-
$metadata
|
|
1182
|
+
$metadata,
|
|
1165
1183
|
});
|
|
1166
1184
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1167
1185
|
}
|
|
@@ -1186,8 +1204,7 @@ const deserializeAws_json1_1GetSystemTemplateCommandError = async (output, conte
|
|
|
1186
1204
|
body: await parseBody(output.body, context),
|
|
1187
1205
|
};
|
|
1188
1206
|
let response;
|
|
1189
|
-
|
|
1190
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1207
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1191
1208
|
switch (errorCode) {
|
|
1192
1209
|
case "InternalFailureException":
|
|
1193
1210
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -1203,10 +1220,12 @@ const deserializeAws_json1_1GetSystemTemplateCommandError = async (output, conte
|
|
|
1203
1220
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1204
1221
|
default:
|
|
1205
1222
|
const parsedBody = parsedOutput.body;
|
|
1223
|
+
const $metadata = deserializeMetadata(output);
|
|
1224
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1206
1225
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
1207
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1226
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1208
1227
|
$fault: "client",
|
|
1209
|
-
$metadata
|
|
1228
|
+
$metadata,
|
|
1210
1229
|
});
|
|
1211
1230
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1212
1231
|
}
|
|
@@ -1231,8 +1250,7 @@ const deserializeAws_json1_1GetSystemTemplateRevisionsCommandError = async (outp
|
|
|
1231
1250
|
body: await parseBody(output.body, context),
|
|
1232
1251
|
};
|
|
1233
1252
|
let response;
|
|
1234
|
-
|
|
1235
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1253
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1236
1254
|
switch (errorCode) {
|
|
1237
1255
|
case "InternalFailureException":
|
|
1238
1256
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -1248,10 +1266,12 @@ const deserializeAws_json1_1GetSystemTemplateRevisionsCommandError = async (outp
|
|
|
1248
1266
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1249
1267
|
default:
|
|
1250
1268
|
const parsedBody = parsedOutput.body;
|
|
1269
|
+
const $metadata = deserializeMetadata(output);
|
|
1270
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1251
1271
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
1252
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1272
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1253
1273
|
$fault: "client",
|
|
1254
|
-
$metadata
|
|
1274
|
+
$metadata,
|
|
1255
1275
|
});
|
|
1256
1276
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1257
1277
|
}
|
|
@@ -1276,8 +1296,7 @@ const deserializeAws_json1_1GetUploadStatusCommandError = async (output, context
|
|
|
1276
1296
|
body: await parseBody(output.body, context),
|
|
1277
1297
|
};
|
|
1278
1298
|
let response;
|
|
1279
|
-
|
|
1280
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1299
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1281
1300
|
switch (errorCode) {
|
|
1282
1301
|
case "InternalFailureException":
|
|
1283
1302
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -1293,10 +1312,12 @@ const deserializeAws_json1_1GetUploadStatusCommandError = async (output, context
|
|
|
1293
1312
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1294
1313
|
default:
|
|
1295
1314
|
const parsedBody = parsedOutput.body;
|
|
1315
|
+
const $metadata = deserializeMetadata(output);
|
|
1316
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1296
1317
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
1297
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1318
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1298
1319
|
$fault: "client",
|
|
1299
|
-
$metadata
|
|
1320
|
+
$metadata,
|
|
1300
1321
|
});
|
|
1301
1322
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1302
1323
|
}
|
|
@@ -1321,8 +1342,7 @@ const deserializeAws_json1_1ListFlowExecutionMessagesCommandError = async (outpu
|
|
|
1321
1342
|
body: await parseBody(output.body, context),
|
|
1322
1343
|
};
|
|
1323
1344
|
let response;
|
|
1324
|
-
|
|
1325
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1345
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1326
1346
|
switch (errorCode) {
|
|
1327
1347
|
case "InternalFailureException":
|
|
1328
1348
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -1338,10 +1358,12 @@ const deserializeAws_json1_1ListFlowExecutionMessagesCommandError = async (outpu
|
|
|
1338
1358
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1339
1359
|
default:
|
|
1340
1360
|
const parsedBody = parsedOutput.body;
|
|
1361
|
+
const $metadata = deserializeMetadata(output);
|
|
1362
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1341
1363
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
1342
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1364
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1343
1365
|
$fault: "client",
|
|
1344
|
-
$metadata
|
|
1366
|
+
$metadata,
|
|
1345
1367
|
});
|
|
1346
1368
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1347
1369
|
}
|
|
@@ -1366,8 +1388,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1366
1388
|
body: await parseBody(output.body, context),
|
|
1367
1389
|
};
|
|
1368
1390
|
let response;
|
|
1369
|
-
|
|
1370
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1391
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1371
1392
|
switch (errorCode) {
|
|
1372
1393
|
case "InternalFailureException":
|
|
1373
1394
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -1383,10 +1404,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1383
1404
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1384
1405
|
default:
|
|
1385
1406
|
const parsedBody = parsedOutput.body;
|
|
1407
|
+
const $metadata = deserializeMetadata(output);
|
|
1408
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1386
1409
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
1387
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1410
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1388
1411
|
$fault: "client",
|
|
1389
|
-
$metadata
|
|
1412
|
+
$metadata,
|
|
1390
1413
|
});
|
|
1391
1414
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1392
1415
|
}
|
|
@@ -1411,8 +1434,7 @@ const deserializeAws_json1_1SearchEntitiesCommandError = async (output, context)
|
|
|
1411
1434
|
body: await parseBody(output.body, context),
|
|
1412
1435
|
};
|
|
1413
1436
|
let response;
|
|
1414
|
-
|
|
1415
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1437
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1416
1438
|
switch (errorCode) {
|
|
1417
1439
|
case "InternalFailureException":
|
|
1418
1440
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -1425,10 +1447,12 @@ const deserializeAws_json1_1SearchEntitiesCommandError = async (output, context)
|
|
|
1425
1447
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1426
1448
|
default:
|
|
1427
1449
|
const parsedBody = parsedOutput.body;
|
|
1450
|
+
const $metadata = deserializeMetadata(output);
|
|
1451
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1428
1452
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
1429
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1453
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1430
1454
|
$fault: "client",
|
|
1431
|
-
$metadata
|
|
1455
|
+
$metadata,
|
|
1432
1456
|
});
|
|
1433
1457
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1434
1458
|
}
|
|
@@ -1453,8 +1477,7 @@ const deserializeAws_json1_1SearchFlowExecutionsCommandError = async (output, co
|
|
|
1453
1477
|
body: await parseBody(output.body, context),
|
|
1454
1478
|
};
|
|
1455
1479
|
let response;
|
|
1456
|
-
|
|
1457
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1480
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
1481
|
switch (errorCode) {
|
|
1459
1482
|
case "InternalFailureException":
|
|
1460
1483
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -1470,10 +1493,12 @@ const deserializeAws_json1_1SearchFlowExecutionsCommandError = async (output, co
|
|
|
1470
1493
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1471
1494
|
default:
|
|
1472
1495
|
const parsedBody = parsedOutput.body;
|
|
1496
|
+
const $metadata = deserializeMetadata(output);
|
|
1497
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1473
1498
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
1474
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1499
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1475
1500
|
$fault: "client",
|
|
1476
|
-
$metadata
|
|
1501
|
+
$metadata,
|
|
1477
1502
|
});
|
|
1478
1503
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1479
1504
|
}
|
|
@@ -1498,8 +1523,7 @@ const deserializeAws_json1_1SearchFlowTemplatesCommandError = async (output, con
|
|
|
1498
1523
|
body: await parseBody(output.body, context),
|
|
1499
1524
|
};
|
|
1500
1525
|
let response;
|
|
1501
|
-
|
|
1502
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1526
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1503
1527
|
switch (errorCode) {
|
|
1504
1528
|
case "InternalFailureException":
|
|
1505
1529
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -1512,10 +1536,12 @@ const deserializeAws_json1_1SearchFlowTemplatesCommandError = async (output, con
|
|
|
1512
1536
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1513
1537
|
default:
|
|
1514
1538
|
const parsedBody = parsedOutput.body;
|
|
1539
|
+
const $metadata = deserializeMetadata(output);
|
|
1540
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1515
1541
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
1516
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1542
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1517
1543
|
$fault: "client",
|
|
1518
|
-
$metadata
|
|
1544
|
+
$metadata,
|
|
1519
1545
|
});
|
|
1520
1546
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1521
1547
|
}
|
|
@@ -1540,8 +1566,7 @@ const deserializeAws_json1_1SearchSystemInstancesCommandError = async (output, c
|
|
|
1540
1566
|
body: await parseBody(output.body, context),
|
|
1541
1567
|
};
|
|
1542
1568
|
let response;
|
|
1543
|
-
|
|
1544
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1569
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1545
1570
|
switch (errorCode) {
|
|
1546
1571
|
case "InternalFailureException":
|
|
1547
1572
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -1554,10 +1579,12 @@ const deserializeAws_json1_1SearchSystemInstancesCommandError = async (output, c
|
|
|
1554
1579
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1555
1580
|
default:
|
|
1556
1581
|
const parsedBody = parsedOutput.body;
|
|
1582
|
+
const $metadata = deserializeMetadata(output);
|
|
1583
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1557
1584
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
1558
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1585
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1559
1586
|
$fault: "client",
|
|
1560
|
-
$metadata
|
|
1587
|
+
$metadata,
|
|
1561
1588
|
});
|
|
1562
1589
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1563
1590
|
}
|
|
@@ -1582,8 +1609,7 @@ const deserializeAws_json1_1SearchSystemTemplatesCommandError = async (output, c
|
|
|
1582
1609
|
body: await parseBody(output.body, context),
|
|
1583
1610
|
};
|
|
1584
1611
|
let response;
|
|
1585
|
-
|
|
1586
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1612
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1587
1613
|
switch (errorCode) {
|
|
1588
1614
|
case "InternalFailureException":
|
|
1589
1615
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -1596,10 +1622,12 @@ const deserializeAws_json1_1SearchSystemTemplatesCommandError = async (output, c
|
|
|
1596
1622
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1597
1623
|
default:
|
|
1598
1624
|
const parsedBody = parsedOutput.body;
|
|
1625
|
+
const $metadata = deserializeMetadata(output);
|
|
1626
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1599
1627
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
1600
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1628
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1601
1629
|
$fault: "client",
|
|
1602
|
-
$metadata
|
|
1630
|
+
$metadata,
|
|
1603
1631
|
});
|
|
1604
1632
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1605
1633
|
}
|
|
@@ -1624,8 +1652,7 @@ const deserializeAws_json1_1SearchThingsCommandError = async (output, context) =
|
|
|
1624
1652
|
body: await parseBody(output.body, context),
|
|
1625
1653
|
};
|
|
1626
1654
|
let response;
|
|
1627
|
-
|
|
1628
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1655
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1629
1656
|
switch (errorCode) {
|
|
1630
1657
|
case "InternalFailureException":
|
|
1631
1658
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -1641,10 +1668,12 @@ const deserializeAws_json1_1SearchThingsCommandError = async (output, context) =
|
|
|
1641
1668
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1642
1669
|
default:
|
|
1643
1670
|
const parsedBody = parsedOutput.body;
|
|
1671
|
+
const $metadata = deserializeMetadata(output);
|
|
1672
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1644
1673
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
1645
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1674
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1646
1675
|
$fault: "client",
|
|
1647
|
-
$metadata
|
|
1676
|
+
$metadata,
|
|
1648
1677
|
});
|
|
1649
1678
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1650
1679
|
}
|
|
@@ -1669,8 +1698,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1669
1698
|
body: await parseBody(output.body, context),
|
|
1670
1699
|
};
|
|
1671
1700
|
let response;
|
|
1672
|
-
|
|
1673
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1701
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
1702
|
switch (errorCode) {
|
|
1675
1703
|
case "InternalFailureException":
|
|
1676
1704
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -1686,10 +1714,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1686
1714
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1687
1715
|
default:
|
|
1688
1716
|
const parsedBody = parsedOutput.body;
|
|
1717
|
+
const $metadata = deserializeMetadata(output);
|
|
1718
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1689
1719
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
1690
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1720
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1691
1721
|
$fault: "client",
|
|
1692
|
-
$metadata
|
|
1722
|
+
$metadata,
|
|
1693
1723
|
});
|
|
1694
1724
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1695
1725
|
}
|
|
@@ -1714,8 +1744,7 @@ const deserializeAws_json1_1UndeploySystemInstanceCommandError = async (output,
|
|
|
1714
1744
|
body: await parseBody(output.body, context),
|
|
1715
1745
|
};
|
|
1716
1746
|
let response;
|
|
1717
|
-
|
|
1718
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1747
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1719
1748
|
switch (errorCode) {
|
|
1720
1749
|
case "InternalFailureException":
|
|
1721
1750
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -1734,10 +1763,12 @@ const deserializeAws_json1_1UndeploySystemInstanceCommandError = async (output,
|
|
|
1734
1763
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1735
1764
|
default:
|
|
1736
1765
|
const parsedBody = parsedOutput.body;
|
|
1766
|
+
const $metadata = deserializeMetadata(output);
|
|
1767
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1737
1768
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
1738
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1769
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1739
1770
|
$fault: "client",
|
|
1740
|
-
$metadata
|
|
1771
|
+
$metadata,
|
|
1741
1772
|
});
|
|
1742
1773
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1743
1774
|
}
|
|
@@ -1762,8 +1793,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1762
1793
|
body: await parseBody(output.body, context),
|
|
1763
1794
|
};
|
|
1764
1795
|
let response;
|
|
1765
|
-
|
|
1766
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1796
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1767
1797
|
switch (errorCode) {
|
|
1768
1798
|
case "InternalFailureException":
|
|
1769
1799
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -1779,10 +1809,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1779
1809
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1780
1810
|
default:
|
|
1781
1811
|
const parsedBody = parsedOutput.body;
|
|
1812
|
+
const $metadata = deserializeMetadata(output);
|
|
1813
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1782
1814
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
1783
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1815
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1784
1816
|
$fault: "client",
|
|
1785
|
-
$metadata
|
|
1817
|
+
$metadata,
|
|
1786
1818
|
});
|
|
1787
1819
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1788
1820
|
}
|
|
@@ -1807,8 +1839,7 @@ const deserializeAws_json1_1UpdateFlowTemplateCommandError = async (output, cont
|
|
|
1807
1839
|
body: await parseBody(output.body, context),
|
|
1808
1840
|
};
|
|
1809
1841
|
let response;
|
|
1810
|
-
|
|
1811
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1842
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1812
1843
|
switch (errorCode) {
|
|
1813
1844
|
case "InternalFailureException":
|
|
1814
1845
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -1824,10 +1855,12 @@ const deserializeAws_json1_1UpdateFlowTemplateCommandError = async (output, cont
|
|
|
1824
1855
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1825
1856
|
default:
|
|
1826
1857
|
const parsedBody = parsedOutput.body;
|
|
1858
|
+
const $metadata = deserializeMetadata(output);
|
|
1859
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1827
1860
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
1828
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1861
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1829
1862
|
$fault: "client",
|
|
1830
|
-
$metadata
|
|
1863
|
+
$metadata,
|
|
1831
1864
|
});
|
|
1832
1865
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1833
1866
|
}
|
|
@@ -1852,8 +1885,7 @@ const deserializeAws_json1_1UpdateSystemTemplateCommandError = async (output, co
|
|
|
1852
1885
|
body: await parseBody(output.body, context),
|
|
1853
1886
|
};
|
|
1854
1887
|
let response;
|
|
1855
|
-
|
|
1856
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1888
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1857
1889
|
switch (errorCode) {
|
|
1858
1890
|
case "InternalFailureException":
|
|
1859
1891
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -1869,10 +1901,12 @@ const deserializeAws_json1_1UpdateSystemTemplateCommandError = async (output, co
|
|
|
1869
1901
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1870
1902
|
default:
|
|
1871
1903
|
const parsedBody = parsedOutput.body;
|
|
1904
|
+
const $metadata = deserializeMetadata(output);
|
|
1905
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1872
1906
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
1873
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1907
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1874
1908
|
$fault: "client",
|
|
1875
|
-
$metadata
|
|
1909
|
+
$metadata,
|
|
1876
1910
|
});
|
|
1877
1911
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1878
1912
|
}
|
|
@@ -1897,8 +1931,7 @@ const deserializeAws_json1_1UploadEntityDefinitionsCommandError = async (output,
|
|
|
1897
1931
|
body: await parseBody(output.body, context),
|
|
1898
1932
|
};
|
|
1899
1933
|
let response;
|
|
1900
|
-
|
|
1901
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1934
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1902
1935
|
switch (errorCode) {
|
|
1903
1936
|
case "InternalFailureException":
|
|
1904
1937
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -1911,10 +1944,12 @@ const deserializeAws_json1_1UploadEntityDefinitionsCommandError = async (output,
|
|
|
1911
1944
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1912
1945
|
default:
|
|
1913
1946
|
const parsedBody = parsedOutput.body;
|
|
1947
|
+
const $metadata = deserializeMetadata(output);
|
|
1948
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1914
1949
|
response = new IoTThingsGraphServiceException_1.IoTThingsGraphServiceException({
|
|
1915
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1950
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1916
1951
|
$fault: "client",
|
|
1917
|
-
$metadata
|
|
1952
|
+
$metadata,
|
|
1918
1953
|
});
|
|
1919
1954
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1920
1955
|
}
|
|
@@ -2984,5 +3019,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2984
3019
|
if (data["__type"] !== undefined) {
|
|
2985
3020
|
return sanitizeErrorCode(data["__type"]);
|
|
2986
3021
|
}
|
|
2987
|
-
return "";
|
|
2988
3022
|
};
|