@aws-sdk/client-iotthingsgraph 3.118.1 → 3.128.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +310 -382
- package/dist-es/protocols/Aws_json1_1.js +256 -328
- package/package.json +26 -26
|
@@ -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
|
}
|
|
@@ -1984,54 +2019,45 @@ const deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, c
|
|
|
1984
2019
|
};
|
|
1985
2020
|
const serializeAws_json1_1AssociateEntityToThingRequest = (input, context) => {
|
|
1986
2021
|
return {
|
|
1987
|
-
...(input.entityId
|
|
1988
|
-
...(input.namespaceVersion
|
|
1989
|
-
|
|
1990
|
-
...(input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName }),
|
|
2022
|
+
...(input.entityId != null && { entityId: input.entityId }),
|
|
2023
|
+
...(input.namespaceVersion != null && { namespaceVersion: input.namespaceVersion }),
|
|
2024
|
+
...(input.thingName != null && { thingName: input.thingName }),
|
|
1991
2025
|
};
|
|
1992
2026
|
};
|
|
1993
2027
|
const serializeAws_json1_1CreateFlowTemplateRequest = (input, context) => {
|
|
1994
2028
|
return {
|
|
1995
|
-
...(input.compatibleNamespaceVersion
|
|
1996
|
-
|
|
1997
|
-
...(input.definition !== undefined &&
|
|
1998
|
-
input.definition !== null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }),
|
|
2029
|
+
...(input.compatibleNamespaceVersion != null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion }),
|
|
2030
|
+
...(input.definition != null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }),
|
|
1999
2031
|
};
|
|
2000
2032
|
};
|
|
2001
2033
|
const serializeAws_json1_1CreateSystemInstanceRequest = (input, context) => {
|
|
2002
2034
|
return {
|
|
2003
|
-
...(input.definition
|
|
2004
|
-
|
|
2005
|
-
...(input.
|
|
2006
|
-
|
|
2007
|
-
...(input.greengrassGroupName !== undefined &&
|
|
2008
|
-
input.greengrassGroupName !== null && { greengrassGroupName: input.greengrassGroupName }),
|
|
2009
|
-
...(input.metricsConfiguration !== undefined &&
|
|
2010
|
-
input.metricsConfiguration !== null && {
|
|
2035
|
+
...(input.definition != null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }),
|
|
2036
|
+
...(input.flowActionsRoleArn != null && { flowActionsRoleArn: input.flowActionsRoleArn }),
|
|
2037
|
+
...(input.greengrassGroupName != null && { greengrassGroupName: input.greengrassGroupName }),
|
|
2038
|
+
...(input.metricsConfiguration != null && {
|
|
2011
2039
|
metricsConfiguration: serializeAws_json1_1MetricsConfiguration(input.metricsConfiguration, context),
|
|
2012
2040
|
}),
|
|
2013
|
-
...(input.s3BucketName
|
|
2014
|
-
...(input.tags
|
|
2015
|
-
...(input.target
|
|
2041
|
+
...(input.s3BucketName != null && { s3BucketName: input.s3BucketName }),
|
|
2042
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2043
|
+
...(input.target != null && { target: input.target }),
|
|
2016
2044
|
};
|
|
2017
2045
|
};
|
|
2018
2046
|
const serializeAws_json1_1CreateSystemTemplateRequest = (input, context) => {
|
|
2019
2047
|
return {
|
|
2020
|
-
...(input.compatibleNamespaceVersion
|
|
2021
|
-
|
|
2022
|
-
...(input.definition !== undefined &&
|
|
2023
|
-
input.definition !== null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }),
|
|
2048
|
+
...(input.compatibleNamespaceVersion != null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion }),
|
|
2049
|
+
...(input.definition != null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }),
|
|
2024
2050
|
};
|
|
2025
2051
|
};
|
|
2026
2052
|
const serializeAws_json1_1DefinitionDocument = (input, context) => {
|
|
2027
2053
|
return {
|
|
2028
|
-
...(input.language
|
|
2029
|
-
...(input.text
|
|
2054
|
+
...(input.language != null && { language: input.language }),
|
|
2055
|
+
...(input.text != null && { text: input.text }),
|
|
2030
2056
|
};
|
|
2031
2057
|
};
|
|
2032
2058
|
const serializeAws_json1_1DeleteFlowTemplateRequest = (input, context) => {
|
|
2033
2059
|
return {
|
|
2034
|
-
...(input.id
|
|
2060
|
+
...(input.id != null && { id: input.id }),
|
|
2035
2061
|
};
|
|
2036
2062
|
};
|
|
2037
2063
|
const serializeAws_json1_1DeleteNamespaceRequest = (input, context) => {
|
|
@@ -2039,45 +2065,44 @@ const serializeAws_json1_1DeleteNamespaceRequest = (input, context) => {
|
|
|
2039
2065
|
};
|
|
2040
2066
|
const serializeAws_json1_1DeleteSystemInstanceRequest = (input, context) => {
|
|
2041
2067
|
return {
|
|
2042
|
-
...(input.id
|
|
2068
|
+
...(input.id != null && { id: input.id }),
|
|
2043
2069
|
};
|
|
2044
2070
|
};
|
|
2045
2071
|
const serializeAws_json1_1DeleteSystemTemplateRequest = (input, context) => {
|
|
2046
2072
|
return {
|
|
2047
|
-
...(input.id
|
|
2073
|
+
...(input.id != null && { id: input.id }),
|
|
2048
2074
|
};
|
|
2049
2075
|
};
|
|
2050
2076
|
const serializeAws_json1_1DeploySystemInstanceRequest = (input, context) => {
|
|
2051
2077
|
return {
|
|
2052
|
-
...(input.id
|
|
2078
|
+
...(input.id != null && { id: input.id }),
|
|
2053
2079
|
};
|
|
2054
2080
|
};
|
|
2055
2081
|
const serializeAws_json1_1DeprecateFlowTemplateRequest = (input, context) => {
|
|
2056
2082
|
return {
|
|
2057
|
-
...(input.id
|
|
2083
|
+
...(input.id != null && { id: input.id }),
|
|
2058
2084
|
};
|
|
2059
2085
|
};
|
|
2060
2086
|
const serializeAws_json1_1DeprecateSystemTemplateRequest = (input, context) => {
|
|
2061
2087
|
return {
|
|
2062
|
-
...(input.id
|
|
2088
|
+
...(input.id != null && { id: input.id }),
|
|
2063
2089
|
};
|
|
2064
2090
|
};
|
|
2065
2091
|
const serializeAws_json1_1DescribeNamespaceRequest = (input, context) => {
|
|
2066
2092
|
return {
|
|
2067
|
-
...(input.namespaceName
|
|
2093
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2068
2094
|
};
|
|
2069
2095
|
};
|
|
2070
2096
|
const serializeAws_json1_1DissociateEntityFromThingRequest = (input, context) => {
|
|
2071
2097
|
return {
|
|
2072
|
-
...(input.entityType
|
|
2073
|
-
...(input.thingName
|
|
2098
|
+
...(input.entityType != null && { entityType: input.entityType }),
|
|
2099
|
+
...(input.thingName != null && { thingName: input.thingName }),
|
|
2074
2100
|
};
|
|
2075
2101
|
};
|
|
2076
2102
|
const serializeAws_json1_1EntityFilter = (input, context) => {
|
|
2077
2103
|
return {
|
|
2078
|
-
...(input.name
|
|
2079
|
-
...(input.value
|
|
2080
|
-
input.value !== null && { value: serializeAws_json1_1EntityFilterValues(input.value, context) }),
|
|
2104
|
+
...(input.name != null && { name: input.name }),
|
|
2105
|
+
...(input.value != null && { value: serializeAws_json1_1EntityFilterValues(input.value, context) }),
|
|
2081
2106
|
};
|
|
2082
2107
|
};
|
|
2083
2108
|
const serializeAws_json1_1EntityFilters = (input, context) => {
|
|
@@ -2112,9 +2137,8 @@ const serializeAws_json1_1EntityTypes = (input, context) => {
|
|
|
2112
2137
|
};
|
|
2113
2138
|
const serializeAws_json1_1FlowTemplateFilter = (input, context) => {
|
|
2114
2139
|
return {
|
|
2115
|
-
...(input.name
|
|
2116
|
-
...(input.value
|
|
2117
|
-
input.value !== null && { value: serializeAws_json1_1FlowTemplateFilterValues(input.value, context) }),
|
|
2140
|
+
...(input.name != null && { name: input.name }),
|
|
2141
|
+
...(input.value != null && { value: serializeAws_json1_1FlowTemplateFilterValues(input.value, context) }),
|
|
2118
2142
|
};
|
|
2119
2143
|
};
|
|
2120
2144
|
const serializeAws_json1_1FlowTemplateFilters = (input, context) => {
|
|
@@ -2139,23 +2163,21 @@ const serializeAws_json1_1FlowTemplateFilterValues = (input, context) => {
|
|
|
2139
2163
|
};
|
|
2140
2164
|
const serializeAws_json1_1GetEntitiesRequest = (input, context) => {
|
|
2141
2165
|
return {
|
|
2142
|
-
...(input.ids
|
|
2143
|
-
...(input.namespaceVersion
|
|
2144
|
-
input.namespaceVersion !== null && { namespaceVersion: input.namespaceVersion }),
|
|
2166
|
+
...(input.ids != null && { ids: serializeAws_json1_1Urns(input.ids, context) }),
|
|
2167
|
+
...(input.namespaceVersion != null && { namespaceVersion: input.namespaceVersion }),
|
|
2145
2168
|
};
|
|
2146
2169
|
};
|
|
2147
2170
|
const serializeAws_json1_1GetFlowTemplateRequest = (input, context) => {
|
|
2148
2171
|
return {
|
|
2149
|
-
...(input.id
|
|
2150
|
-
...(input.revisionNumber
|
|
2151
|
-
input.revisionNumber !== null && { revisionNumber: input.revisionNumber }),
|
|
2172
|
+
...(input.id != null && { id: input.id }),
|
|
2173
|
+
...(input.revisionNumber != null && { revisionNumber: input.revisionNumber }),
|
|
2152
2174
|
};
|
|
2153
2175
|
};
|
|
2154
2176
|
const serializeAws_json1_1GetFlowTemplateRevisionsRequest = (input, context) => {
|
|
2155
2177
|
return {
|
|
2156
|
-
...(input.id
|
|
2157
|
-
...(input.maxResults
|
|
2158
|
-
...(input.nextToken
|
|
2178
|
+
...(input.id != null && { id: input.id }),
|
|
2179
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2180
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2159
2181
|
};
|
|
2160
2182
|
};
|
|
2161
2183
|
const serializeAws_json1_1GetNamespaceDeletionStatusRequest = (input, context) => {
|
|
@@ -2163,115 +2185,99 @@ const serializeAws_json1_1GetNamespaceDeletionStatusRequest = (input, context) =
|
|
|
2163
2185
|
};
|
|
2164
2186
|
const serializeAws_json1_1GetSystemInstanceRequest = (input, context) => {
|
|
2165
2187
|
return {
|
|
2166
|
-
...(input.id
|
|
2188
|
+
...(input.id != null && { id: input.id }),
|
|
2167
2189
|
};
|
|
2168
2190
|
};
|
|
2169
2191
|
const serializeAws_json1_1GetSystemTemplateRequest = (input, context) => {
|
|
2170
2192
|
return {
|
|
2171
|
-
...(input.id
|
|
2172
|
-
...(input.revisionNumber
|
|
2173
|
-
input.revisionNumber !== null && { revisionNumber: input.revisionNumber }),
|
|
2193
|
+
...(input.id != null && { id: input.id }),
|
|
2194
|
+
...(input.revisionNumber != null && { revisionNumber: input.revisionNumber }),
|
|
2174
2195
|
};
|
|
2175
2196
|
};
|
|
2176
2197
|
const serializeAws_json1_1GetSystemTemplateRevisionsRequest = (input, context) => {
|
|
2177
2198
|
return {
|
|
2178
|
-
...(input.id
|
|
2179
|
-
...(input.maxResults
|
|
2180
|
-
...(input.nextToken
|
|
2199
|
+
...(input.id != null && { id: input.id }),
|
|
2200
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2201
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2181
2202
|
};
|
|
2182
2203
|
};
|
|
2183
2204
|
const serializeAws_json1_1GetUploadStatusRequest = (input, context) => {
|
|
2184
2205
|
return {
|
|
2185
|
-
...(input.uploadId
|
|
2206
|
+
...(input.uploadId != null && { uploadId: input.uploadId }),
|
|
2186
2207
|
};
|
|
2187
2208
|
};
|
|
2188
2209
|
const serializeAws_json1_1ListFlowExecutionMessagesRequest = (input, context) => {
|
|
2189
2210
|
return {
|
|
2190
|
-
...(input.flowExecutionId
|
|
2191
|
-
|
|
2192
|
-
...(input.
|
|
2193
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2211
|
+
...(input.flowExecutionId != null && { flowExecutionId: input.flowExecutionId }),
|
|
2212
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2213
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2194
2214
|
};
|
|
2195
2215
|
};
|
|
2196
2216
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
2197
2217
|
return {
|
|
2198
|
-
...(input.maxResults
|
|
2199
|
-
...(input.nextToken
|
|
2200
|
-
...(input.resourceArn
|
|
2218
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2219
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2220
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2201
2221
|
};
|
|
2202
2222
|
};
|
|
2203
2223
|
const serializeAws_json1_1MetricsConfiguration = (input, context) => {
|
|
2204
2224
|
return {
|
|
2205
|
-
...(input.cloudMetricEnabled
|
|
2206
|
-
|
|
2207
|
-
...(input.metricRuleRoleArn !== undefined &&
|
|
2208
|
-
input.metricRuleRoleArn !== null && { metricRuleRoleArn: input.metricRuleRoleArn }),
|
|
2225
|
+
...(input.cloudMetricEnabled != null && { cloudMetricEnabled: input.cloudMetricEnabled }),
|
|
2226
|
+
...(input.metricRuleRoleArn != null && { metricRuleRoleArn: input.metricRuleRoleArn }),
|
|
2209
2227
|
};
|
|
2210
2228
|
};
|
|
2211
2229
|
const serializeAws_json1_1SearchEntitiesRequest = (input, context) => {
|
|
2212
2230
|
return {
|
|
2213
|
-
...(input.entityTypes
|
|
2214
|
-
|
|
2215
|
-
...(input.
|
|
2216
|
-
|
|
2217
|
-
...(input.
|
|
2218
|
-
...(input.namespaceVersion !== undefined &&
|
|
2219
|
-
input.namespaceVersion !== null && { namespaceVersion: input.namespaceVersion }),
|
|
2220
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2231
|
+
...(input.entityTypes != null && { entityTypes: serializeAws_json1_1EntityTypes(input.entityTypes, context) }),
|
|
2232
|
+
...(input.filters != null && { filters: serializeAws_json1_1EntityFilters(input.filters, context) }),
|
|
2233
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2234
|
+
...(input.namespaceVersion != null && { namespaceVersion: input.namespaceVersion }),
|
|
2235
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2221
2236
|
};
|
|
2222
2237
|
};
|
|
2223
2238
|
const serializeAws_json1_1SearchFlowExecutionsRequest = (input, context) => {
|
|
2224
2239
|
return {
|
|
2225
|
-
...(input.endTime
|
|
2226
|
-
|
|
2227
|
-
...(input.
|
|
2228
|
-
|
|
2229
|
-
...(input.
|
|
2230
|
-
...(input.
|
|
2231
|
-
...(input.startTime !== undefined &&
|
|
2232
|
-
input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
2233
|
-
...(input.systemInstanceId !== undefined &&
|
|
2234
|
-
input.systemInstanceId !== null && { systemInstanceId: input.systemInstanceId }),
|
|
2240
|
+
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
2241
|
+
...(input.flowExecutionId != null && { flowExecutionId: input.flowExecutionId }),
|
|
2242
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2243
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2244
|
+
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
2245
|
+
...(input.systemInstanceId != null && { systemInstanceId: input.systemInstanceId }),
|
|
2235
2246
|
};
|
|
2236
2247
|
};
|
|
2237
2248
|
const serializeAws_json1_1SearchFlowTemplatesRequest = (input, context) => {
|
|
2238
2249
|
return {
|
|
2239
|
-
...(input.filters
|
|
2240
|
-
|
|
2241
|
-
...(input.
|
|
2242
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2250
|
+
...(input.filters != null && { filters: serializeAws_json1_1FlowTemplateFilters(input.filters, context) }),
|
|
2251
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2252
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2243
2253
|
};
|
|
2244
2254
|
};
|
|
2245
2255
|
const serializeAws_json1_1SearchSystemInstancesRequest = (input, context) => {
|
|
2246
2256
|
return {
|
|
2247
|
-
...(input.filters
|
|
2248
|
-
|
|
2249
|
-
...(input.
|
|
2250
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2257
|
+
...(input.filters != null && { filters: serializeAws_json1_1SystemInstanceFilters(input.filters, context) }),
|
|
2258
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2259
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2251
2260
|
};
|
|
2252
2261
|
};
|
|
2253
2262
|
const serializeAws_json1_1SearchSystemTemplatesRequest = (input, context) => {
|
|
2254
2263
|
return {
|
|
2255
|
-
...(input.filters
|
|
2256
|
-
|
|
2257
|
-
...(input.
|
|
2258
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2264
|
+
...(input.filters != null && { filters: serializeAws_json1_1SystemTemplateFilters(input.filters, context) }),
|
|
2265
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2266
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2259
2267
|
};
|
|
2260
2268
|
};
|
|
2261
2269
|
const serializeAws_json1_1SearchThingsRequest = (input, context) => {
|
|
2262
2270
|
return {
|
|
2263
|
-
...(input.entityId
|
|
2264
|
-
...(input.maxResults
|
|
2265
|
-
...(input.namespaceVersion
|
|
2266
|
-
|
|
2267
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2271
|
+
...(input.entityId != null && { entityId: input.entityId }),
|
|
2272
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2273
|
+
...(input.namespaceVersion != null && { namespaceVersion: input.namespaceVersion }),
|
|
2274
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2268
2275
|
};
|
|
2269
2276
|
};
|
|
2270
2277
|
const serializeAws_json1_1SystemInstanceFilter = (input, context) => {
|
|
2271
2278
|
return {
|
|
2272
|
-
...(input.name
|
|
2273
|
-
...(input.value
|
|
2274
|
-
input.value !== null && { value: serializeAws_json1_1SystemInstanceFilterValues(input.value, context) }),
|
|
2279
|
+
...(input.name != null && { name: input.name }),
|
|
2280
|
+
...(input.value != null && { value: serializeAws_json1_1SystemInstanceFilterValues(input.value, context) }),
|
|
2275
2281
|
};
|
|
2276
2282
|
};
|
|
2277
2283
|
const serializeAws_json1_1SystemInstanceFilters = (input, context) => {
|
|
@@ -2296,9 +2302,8 @@ const serializeAws_json1_1SystemInstanceFilterValues = (input, context) => {
|
|
|
2296
2302
|
};
|
|
2297
2303
|
const serializeAws_json1_1SystemTemplateFilter = (input, context) => {
|
|
2298
2304
|
return {
|
|
2299
|
-
...(input.name
|
|
2300
|
-
...(input.value
|
|
2301
|
-
input.value !== null && { value: serializeAws_json1_1SystemTemplateFilterValues(input.value, context) }),
|
|
2305
|
+
...(input.name != null && { name: input.name }),
|
|
2306
|
+
...(input.value != null && { value: serializeAws_json1_1SystemTemplateFilterValues(input.value, context) }),
|
|
2302
2307
|
};
|
|
2303
2308
|
};
|
|
2304
2309
|
const serializeAws_json1_1SystemTemplateFilters = (input, context) => {
|
|
@@ -2323,8 +2328,8 @@ const serializeAws_json1_1SystemTemplateFilterValues = (input, context) => {
|
|
|
2323
2328
|
};
|
|
2324
2329
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
2325
2330
|
return {
|
|
2326
|
-
...(input.key
|
|
2327
|
-
...(input.value
|
|
2331
|
+
...(input.key != null && { key: input.key }),
|
|
2332
|
+
...(input.value != null && { value: input.value }),
|
|
2328
2333
|
};
|
|
2329
2334
|
};
|
|
2330
2335
|
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
@@ -2349,48 +2354,40 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
2349
2354
|
};
|
|
2350
2355
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
2351
2356
|
return {
|
|
2352
|
-
...(input.resourceArn
|
|
2353
|
-
...(input.tags
|
|
2357
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2358
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2354
2359
|
};
|
|
2355
2360
|
};
|
|
2356
2361
|
const serializeAws_json1_1UndeploySystemInstanceRequest = (input, context) => {
|
|
2357
2362
|
return {
|
|
2358
|
-
...(input.id
|
|
2363
|
+
...(input.id != null && { id: input.id }),
|
|
2359
2364
|
};
|
|
2360
2365
|
};
|
|
2361
2366
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
2362
2367
|
return {
|
|
2363
|
-
...(input.resourceArn
|
|
2364
|
-
...(input.tagKeys
|
|
2365
|
-
input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
|
|
2368
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2369
|
+
...(input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
|
|
2366
2370
|
};
|
|
2367
2371
|
};
|
|
2368
2372
|
const serializeAws_json1_1UpdateFlowTemplateRequest = (input, context) => {
|
|
2369
2373
|
return {
|
|
2370
|
-
...(input.compatibleNamespaceVersion
|
|
2371
|
-
|
|
2372
|
-
...(input.
|
|
2373
|
-
input.definition !== null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }),
|
|
2374
|
-
...(input.id !== undefined && input.id !== null && { id: input.id }),
|
|
2374
|
+
...(input.compatibleNamespaceVersion != null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion }),
|
|
2375
|
+
...(input.definition != null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }),
|
|
2376
|
+
...(input.id != null && { id: input.id }),
|
|
2375
2377
|
};
|
|
2376
2378
|
};
|
|
2377
2379
|
const serializeAws_json1_1UpdateSystemTemplateRequest = (input, context) => {
|
|
2378
2380
|
return {
|
|
2379
|
-
...(input.compatibleNamespaceVersion
|
|
2380
|
-
|
|
2381
|
-
...(input.
|
|
2382
|
-
input.definition !== null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }),
|
|
2383
|
-
...(input.id !== undefined && input.id !== null && { id: input.id }),
|
|
2381
|
+
...(input.compatibleNamespaceVersion != null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion }),
|
|
2382
|
+
...(input.definition != null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }),
|
|
2383
|
+
...(input.id != null && { id: input.id }),
|
|
2384
2384
|
};
|
|
2385
2385
|
};
|
|
2386
2386
|
const serializeAws_json1_1UploadEntityDefinitionsRequest = (input, context) => {
|
|
2387
2387
|
return {
|
|
2388
|
-
...(input.deprecateExistingEntities
|
|
2389
|
-
|
|
2390
|
-
...(input.
|
|
2391
|
-
input.document !== null && { document: serializeAws_json1_1DefinitionDocument(input.document, context) }),
|
|
2392
|
-
...(input.syncWithPublicNamespace !== undefined &&
|
|
2393
|
-
input.syncWithPublicNamespace !== null && { syncWithPublicNamespace: input.syncWithPublicNamespace }),
|
|
2388
|
+
...(input.deprecateExistingEntities != null && { deprecateExistingEntities: input.deprecateExistingEntities }),
|
|
2389
|
+
...(input.document != null && { document: serializeAws_json1_1DefinitionDocument(input.document, context) }),
|
|
2390
|
+
...(input.syncWithPublicNamespace != null && { syncWithPublicNamespace: input.syncWithPublicNamespace }),
|
|
2394
2391
|
};
|
|
2395
2392
|
};
|
|
2396
2393
|
const serializeAws_json1_1Urns = (input, context) => {
|
|
@@ -2408,23 +2405,17 @@ const deserializeAws_json1_1AssociateEntityToThingResponse = (output, context) =
|
|
|
2408
2405
|
};
|
|
2409
2406
|
const deserializeAws_json1_1CreateFlowTemplateResponse = (output, context) => {
|
|
2410
2407
|
return {
|
|
2411
|
-
summary: output.summary
|
|
2412
|
-
? deserializeAws_json1_1FlowTemplateSummary(output.summary, context)
|
|
2413
|
-
: undefined,
|
|
2408
|
+
summary: output.summary != null ? deserializeAws_json1_1FlowTemplateSummary(output.summary, context) : undefined,
|
|
2414
2409
|
};
|
|
2415
2410
|
};
|
|
2416
2411
|
const deserializeAws_json1_1CreateSystemInstanceResponse = (output, context) => {
|
|
2417
2412
|
return {
|
|
2418
|
-
summary: output.summary
|
|
2419
|
-
? deserializeAws_json1_1SystemInstanceSummary(output.summary, context)
|
|
2420
|
-
: undefined,
|
|
2413
|
+
summary: output.summary != null ? deserializeAws_json1_1SystemInstanceSummary(output.summary, context) : undefined,
|
|
2421
2414
|
};
|
|
2422
2415
|
};
|
|
2423
2416
|
const deserializeAws_json1_1CreateSystemTemplateResponse = (output, context) => {
|
|
2424
2417
|
return {
|
|
2425
|
-
summary: output.summary
|
|
2426
|
-
? deserializeAws_json1_1SystemTemplateSummary(output.summary, context)
|
|
2427
|
-
: undefined,
|
|
2418
|
+
summary: output.summary != null ? deserializeAws_json1_1SystemTemplateSummary(output.summary, context) : undefined,
|
|
2428
2419
|
};
|
|
2429
2420
|
};
|
|
2430
2421
|
const deserializeAws_json1_1DefinitionDocument = (output, context) => {
|
|
@@ -2468,9 +2459,7 @@ const deserializeAws_json1_1DependencyRevisions = (output, context) => {
|
|
|
2468
2459
|
const deserializeAws_json1_1DeploySystemInstanceResponse = (output, context) => {
|
|
2469
2460
|
return {
|
|
2470
2461
|
greengrassDeploymentId: (0, smithy_client_1.expectString)(output.greengrassDeploymentId),
|
|
2471
|
-
summary: output.summary
|
|
2472
|
-
? deserializeAws_json1_1SystemInstanceSummary(output.summary, context)
|
|
2473
|
-
: undefined,
|
|
2462
|
+
summary: output.summary != null ? deserializeAws_json1_1SystemInstanceSummary(output.summary, context) : undefined,
|
|
2474
2463
|
};
|
|
2475
2464
|
};
|
|
2476
2465
|
const deserializeAws_json1_1DeprecateFlowTemplateResponse = (output, context) => {
|
|
@@ -2494,12 +2483,8 @@ const deserializeAws_json1_1DissociateEntityFromThingResponse = (output, context
|
|
|
2494
2483
|
const deserializeAws_json1_1EntityDescription = (output, context) => {
|
|
2495
2484
|
return {
|
|
2496
2485
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2497
|
-
createdAt: output.createdAt
|
|
2498
|
-
|
|
2499
|
-
: undefined,
|
|
2500
|
-
definition: output.definition !== undefined && output.definition !== null
|
|
2501
|
-
? deserializeAws_json1_1DefinitionDocument(output.definition, context)
|
|
2502
|
-
: undefined,
|
|
2486
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
2487
|
+
definition: output.definition != null ? deserializeAws_json1_1DefinitionDocument(output.definition, context) : undefined,
|
|
2503
2488
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2504
2489
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2505
2490
|
};
|
|
@@ -2520,9 +2505,7 @@ const deserializeAws_json1_1FlowExecutionMessage = (output, context) => {
|
|
|
2520
2505
|
eventType: (0, smithy_client_1.expectString)(output.eventType),
|
|
2521
2506
|
messageId: (0, smithy_client_1.expectString)(output.messageId),
|
|
2522
2507
|
payload: (0, smithy_client_1.expectString)(output.payload),
|
|
2523
|
-
timestamp: output.timestamp
|
|
2524
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timestamp)))
|
|
2525
|
-
: undefined,
|
|
2508
|
+
timestamp: output.timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timestamp))) : undefined,
|
|
2526
2509
|
};
|
|
2527
2510
|
};
|
|
2528
2511
|
const deserializeAws_json1_1FlowExecutionMessages = (output, context) => {
|
|
@@ -2549,26 +2532,18 @@ const deserializeAws_json1_1FlowExecutionSummaries = (output, context) => {
|
|
|
2549
2532
|
};
|
|
2550
2533
|
const deserializeAws_json1_1FlowExecutionSummary = (output, context) => {
|
|
2551
2534
|
return {
|
|
2552
|
-
createdAt: output.createdAt
|
|
2553
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
2554
|
-
: undefined,
|
|
2535
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
2555
2536
|
flowExecutionId: (0, smithy_client_1.expectString)(output.flowExecutionId),
|
|
2556
2537
|
flowTemplateId: (0, smithy_client_1.expectString)(output.flowTemplateId),
|
|
2557
2538
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2558
2539
|
systemInstanceId: (0, smithy_client_1.expectString)(output.systemInstanceId),
|
|
2559
|
-
updatedAt: output.updatedAt
|
|
2560
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
|
|
2561
|
-
: undefined,
|
|
2540
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
2562
2541
|
};
|
|
2563
2542
|
};
|
|
2564
2543
|
const deserializeAws_json1_1FlowTemplateDescription = (output, context) => {
|
|
2565
2544
|
return {
|
|
2566
|
-
definition: output.definition
|
|
2567
|
-
|
|
2568
|
-
: undefined,
|
|
2569
|
-
summary: output.summary !== undefined && output.summary !== null
|
|
2570
|
-
? deserializeAws_json1_1FlowTemplateSummary(output.summary, context)
|
|
2571
|
-
: undefined,
|
|
2545
|
+
definition: output.definition != null ? deserializeAws_json1_1DefinitionDocument(output.definition, context) : undefined,
|
|
2546
|
+
summary: output.summary != null ? deserializeAws_json1_1FlowTemplateSummary(output.summary, context) : undefined,
|
|
2572
2547
|
validatedNamespaceVersion: (0, smithy_client_1.expectLong)(output.validatedNamespaceVersion),
|
|
2573
2548
|
};
|
|
2574
2549
|
};
|
|
@@ -2586,23 +2561,19 @@ const deserializeAws_json1_1FlowTemplateSummaries = (output, context) => {
|
|
|
2586
2561
|
const deserializeAws_json1_1FlowTemplateSummary = (output, context) => {
|
|
2587
2562
|
return {
|
|
2588
2563
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2589
|
-
createdAt: output.createdAt
|
|
2590
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
2591
|
-
: undefined,
|
|
2564
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
2592
2565
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2593
2566
|
revisionNumber: (0, smithy_client_1.expectLong)(output.revisionNumber),
|
|
2594
2567
|
};
|
|
2595
2568
|
};
|
|
2596
2569
|
const deserializeAws_json1_1GetEntitiesResponse = (output, context) => {
|
|
2597
2570
|
return {
|
|
2598
|
-
descriptions: output.descriptions
|
|
2599
|
-
? deserializeAws_json1_1EntityDescriptions(output.descriptions, context)
|
|
2600
|
-
: undefined,
|
|
2571
|
+
descriptions: output.descriptions != null ? deserializeAws_json1_1EntityDescriptions(output.descriptions, context) : undefined,
|
|
2601
2572
|
};
|
|
2602
2573
|
};
|
|
2603
2574
|
const deserializeAws_json1_1GetFlowTemplateResponse = (output, context) => {
|
|
2604
2575
|
return {
|
|
2605
|
-
description: output.description
|
|
2576
|
+
description: output.description != null
|
|
2606
2577
|
? deserializeAws_json1_1FlowTemplateDescription(output.description, context)
|
|
2607
2578
|
: undefined,
|
|
2608
2579
|
};
|
|
@@ -2610,9 +2581,7 @@ const deserializeAws_json1_1GetFlowTemplateResponse = (output, context) => {
|
|
|
2610
2581
|
const deserializeAws_json1_1GetFlowTemplateRevisionsResponse = (output, context) => {
|
|
2611
2582
|
return {
|
|
2612
2583
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2613
|
-
summaries: output.summaries
|
|
2614
|
-
? deserializeAws_json1_1FlowTemplateSummaries(output.summaries, context)
|
|
2615
|
-
: undefined,
|
|
2584
|
+
summaries: output.summaries != null ? deserializeAws_json1_1FlowTemplateSummaries(output.summaries, context) : undefined,
|
|
2616
2585
|
};
|
|
2617
2586
|
};
|
|
2618
2587
|
const deserializeAws_json1_1GetNamespaceDeletionStatusResponse = (output, context) => {
|
|
@@ -2626,14 +2595,14 @@ const deserializeAws_json1_1GetNamespaceDeletionStatusResponse = (output, contex
|
|
|
2626
2595
|
};
|
|
2627
2596
|
const deserializeAws_json1_1GetSystemInstanceResponse = (output, context) => {
|
|
2628
2597
|
return {
|
|
2629
|
-
description: output.description
|
|
2598
|
+
description: output.description != null
|
|
2630
2599
|
? deserializeAws_json1_1SystemInstanceDescription(output.description, context)
|
|
2631
2600
|
: undefined,
|
|
2632
2601
|
};
|
|
2633
2602
|
};
|
|
2634
2603
|
const deserializeAws_json1_1GetSystemTemplateResponse = (output, context) => {
|
|
2635
2604
|
return {
|
|
2636
|
-
description: output.description
|
|
2605
|
+
description: output.description != null
|
|
2637
2606
|
? deserializeAws_json1_1SystemTemplateDescription(output.description, context)
|
|
2638
2607
|
: undefined,
|
|
2639
2608
|
};
|
|
@@ -2641,19 +2610,15 @@ const deserializeAws_json1_1GetSystemTemplateResponse = (output, context) => {
|
|
|
2641
2610
|
const deserializeAws_json1_1GetSystemTemplateRevisionsResponse = (output, context) => {
|
|
2642
2611
|
return {
|
|
2643
2612
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2644
|
-
summaries: output.summaries
|
|
2645
|
-
? deserializeAws_json1_1SystemTemplateSummaries(output.summaries, context)
|
|
2646
|
-
: undefined,
|
|
2613
|
+
summaries: output.summaries != null ? deserializeAws_json1_1SystemTemplateSummaries(output.summaries, context) : undefined,
|
|
2647
2614
|
};
|
|
2648
2615
|
};
|
|
2649
2616
|
const deserializeAws_json1_1GetUploadStatusResponse = (output, context) => {
|
|
2650
2617
|
return {
|
|
2651
|
-
createdDate: output.createdDate
|
|
2618
|
+
createdDate: output.createdDate != null
|
|
2652
2619
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdDate)))
|
|
2653
2620
|
: undefined,
|
|
2654
|
-
failureReason: output.failureReason
|
|
2655
|
-
? deserializeAws_json1_1StringList(output.failureReason, context)
|
|
2656
|
-
: undefined,
|
|
2621
|
+
failureReason: output.failureReason != null ? deserializeAws_json1_1StringList(output.failureReason, context) : undefined,
|
|
2657
2622
|
namespaceArn: (0, smithy_client_1.expectString)(output.namespaceArn),
|
|
2658
2623
|
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
2659
2624
|
namespaceVersion: (0, smithy_client_1.expectLong)(output.namespaceVersion),
|
|
@@ -2678,18 +2643,14 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
|
2678
2643
|
};
|
|
2679
2644
|
const deserializeAws_json1_1ListFlowExecutionMessagesResponse = (output, context) => {
|
|
2680
2645
|
return {
|
|
2681
|
-
messages: output.messages
|
|
2682
|
-
? deserializeAws_json1_1FlowExecutionMessages(output.messages, context)
|
|
2683
|
-
: undefined,
|
|
2646
|
+
messages: output.messages != null ? deserializeAws_json1_1FlowExecutionMessages(output.messages, context) : undefined,
|
|
2684
2647
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2685
2648
|
};
|
|
2686
2649
|
};
|
|
2687
2650
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
2688
2651
|
return {
|
|
2689
2652
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2690
|
-
tags: output.tags
|
|
2691
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
2692
|
-
: undefined,
|
|
2653
|
+
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
2693
2654
|
};
|
|
2694
2655
|
};
|
|
2695
2656
|
const deserializeAws_json1_1MetricsConfiguration = (output, context) => {
|
|
@@ -2715,50 +2676,38 @@ const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
|
2715
2676
|
};
|
|
2716
2677
|
const deserializeAws_json1_1SearchEntitiesResponse = (output, context) => {
|
|
2717
2678
|
return {
|
|
2718
|
-
descriptions: output.descriptions
|
|
2719
|
-
? deserializeAws_json1_1EntityDescriptions(output.descriptions, context)
|
|
2720
|
-
: undefined,
|
|
2679
|
+
descriptions: output.descriptions != null ? deserializeAws_json1_1EntityDescriptions(output.descriptions, context) : undefined,
|
|
2721
2680
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2722
2681
|
};
|
|
2723
2682
|
};
|
|
2724
2683
|
const deserializeAws_json1_1SearchFlowExecutionsResponse = (output, context) => {
|
|
2725
2684
|
return {
|
|
2726
2685
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2727
|
-
summaries: output.summaries
|
|
2728
|
-
? deserializeAws_json1_1FlowExecutionSummaries(output.summaries, context)
|
|
2729
|
-
: undefined,
|
|
2686
|
+
summaries: output.summaries != null ? deserializeAws_json1_1FlowExecutionSummaries(output.summaries, context) : undefined,
|
|
2730
2687
|
};
|
|
2731
2688
|
};
|
|
2732
2689
|
const deserializeAws_json1_1SearchFlowTemplatesResponse = (output, context) => {
|
|
2733
2690
|
return {
|
|
2734
2691
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2735
|
-
summaries: output.summaries
|
|
2736
|
-
? deserializeAws_json1_1FlowTemplateSummaries(output.summaries, context)
|
|
2737
|
-
: undefined,
|
|
2692
|
+
summaries: output.summaries != null ? deserializeAws_json1_1FlowTemplateSummaries(output.summaries, context) : undefined,
|
|
2738
2693
|
};
|
|
2739
2694
|
};
|
|
2740
2695
|
const deserializeAws_json1_1SearchSystemInstancesResponse = (output, context) => {
|
|
2741
2696
|
return {
|
|
2742
2697
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2743
|
-
summaries: output.summaries
|
|
2744
|
-
? deserializeAws_json1_1SystemInstanceSummaries(output.summaries, context)
|
|
2745
|
-
: undefined,
|
|
2698
|
+
summaries: output.summaries != null ? deserializeAws_json1_1SystemInstanceSummaries(output.summaries, context) : undefined,
|
|
2746
2699
|
};
|
|
2747
2700
|
};
|
|
2748
2701
|
const deserializeAws_json1_1SearchSystemTemplatesResponse = (output, context) => {
|
|
2749
2702
|
return {
|
|
2750
2703
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2751
|
-
summaries: output.summaries
|
|
2752
|
-
? deserializeAws_json1_1SystemTemplateSummaries(output.summaries, context)
|
|
2753
|
-
: undefined,
|
|
2704
|
+
summaries: output.summaries != null ? deserializeAws_json1_1SystemTemplateSummaries(output.summaries, context) : undefined,
|
|
2754
2705
|
};
|
|
2755
2706
|
};
|
|
2756
2707
|
const deserializeAws_json1_1SearchThingsResponse = (output, context) => {
|
|
2757
2708
|
return {
|
|
2758
2709
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2759
|
-
things: output.things
|
|
2760
|
-
? deserializeAws_json1_1Things(output.things, context)
|
|
2761
|
-
: undefined,
|
|
2710
|
+
things: output.things != null ? deserializeAws_json1_1Things(output.things, context) : undefined,
|
|
2762
2711
|
};
|
|
2763
2712
|
};
|
|
2764
2713
|
const deserializeAws_json1_1StringList = (output, context) => {
|
|
@@ -2774,18 +2723,14 @@ const deserializeAws_json1_1StringList = (output, context) => {
|
|
|
2774
2723
|
};
|
|
2775
2724
|
const deserializeAws_json1_1SystemInstanceDescription = (output, context) => {
|
|
2776
2725
|
return {
|
|
2777
|
-
definition: output.definition
|
|
2778
|
-
? deserializeAws_json1_1DefinitionDocument(output.definition, context)
|
|
2779
|
-
: undefined,
|
|
2726
|
+
definition: output.definition != null ? deserializeAws_json1_1DefinitionDocument(output.definition, context) : undefined,
|
|
2780
2727
|
flowActionsRoleArn: (0, smithy_client_1.expectString)(output.flowActionsRoleArn),
|
|
2781
|
-
metricsConfiguration: output.metricsConfiguration
|
|
2728
|
+
metricsConfiguration: output.metricsConfiguration != null
|
|
2782
2729
|
? deserializeAws_json1_1MetricsConfiguration(output.metricsConfiguration, context)
|
|
2783
2730
|
: undefined,
|
|
2784
2731
|
s3BucketName: (0, smithy_client_1.expectString)(output.s3BucketName),
|
|
2785
|
-
summary: output.summary
|
|
2786
|
-
|
|
2787
|
-
: undefined,
|
|
2788
|
-
validatedDependencyRevisions: output.validatedDependencyRevisions !== undefined && output.validatedDependencyRevisions !== null
|
|
2732
|
+
summary: output.summary != null ? deserializeAws_json1_1SystemInstanceSummary(output.summary, context) : undefined,
|
|
2733
|
+
validatedDependencyRevisions: output.validatedDependencyRevisions != null
|
|
2789
2734
|
? deserializeAws_json1_1DependencyRevisions(output.validatedDependencyRevisions, context)
|
|
2790
2735
|
: undefined,
|
|
2791
2736
|
validatedNamespaceVersion: (0, smithy_client_1.expectLong)(output.validatedNamespaceVersion),
|
|
@@ -2805,28 +2750,20 @@ const deserializeAws_json1_1SystemInstanceSummaries = (output, context) => {
|
|
|
2805
2750
|
const deserializeAws_json1_1SystemInstanceSummary = (output, context) => {
|
|
2806
2751
|
return {
|
|
2807
2752
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2808
|
-
createdAt: output.createdAt
|
|
2809
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
2810
|
-
: undefined,
|
|
2753
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
2811
2754
|
greengrassGroupId: (0, smithy_client_1.expectString)(output.greengrassGroupId),
|
|
2812
2755
|
greengrassGroupName: (0, smithy_client_1.expectString)(output.greengrassGroupName),
|
|
2813
2756
|
greengrassGroupVersionId: (0, smithy_client_1.expectString)(output.greengrassGroupVersionId),
|
|
2814
2757
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2815
2758
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2816
2759
|
target: (0, smithy_client_1.expectString)(output.target),
|
|
2817
|
-
updatedAt: output.updatedAt
|
|
2818
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
|
|
2819
|
-
: undefined,
|
|
2760
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
2820
2761
|
};
|
|
2821
2762
|
};
|
|
2822
2763
|
const deserializeAws_json1_1SystemTemplateDescription = (output, context) => {
|
|
2823
2764
|
return {
|
|
2824
|
-
definition: output.definition
|
|
2825
|
-
|
|
2826
|
-
: undefined,
|
|
2827
|
-
summary: output.summary !== undefined && output.summary !== null
|
|
2828
|
-
? deserializeAws_json1_1SystemTemplateSummary(output.summary, context)
|
|
2829
|
-
: undefined,
|
|
2765
|
+
definition: output.definition != null ? deserializeAws_json1_1DefinitionDocument(output.definition, context) : undefined,
|
|
2766
|
+
summary: output.summary != null ? deserializeAws_json1_1SystemTemplateSummary(output.summary, context) : undefined,
|
|
2830
2767
|
validatedNamespaceVersion: (0, smithy_client_1.expectLong)(output.validatedNamespaceVersion),
|
|
2831
2768
|
};
|
|
2832
2769
|
};
|
|
@@ -2844,9 +2781,7 @@ const deserializeAws_json1_1SystemTemplateSummaries = (output, context) => {
|
|
|
2844
2781
|
const deserializeAws_json1_1SystemTemplateSummary = (output, context) => {
|
|
2845
2782
|
return {
|
|
2846
2783
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2847
|
-
createdAt: output.createdAt
|
|
2848
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
2849
|
-
: undefined,
|
|
2784
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
2850
2785
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2851
2786
|
revisionNumber: (0, smithy_client_1.expectLong)(output.revisionNumber),
|
|
2852
2787
|
};
|
|
@@ -2895,9 +2830,7 @@ const deserializeAws_json1_1ThrottlingException = (output, context) => {
|
|
|
2895
2830
|
};
|
|
2896
2831
|
const deserializeAws_json1_1UndeploySystemInstanceResponse = (output, context) => {
|
|
2897
2832
|
return {
|
|
2898
|
-
summary: output.summary
|
|
2899
|
-
? deserializeAws_json1_1SystemInstanceSummary(output.summary, context)
|
|
2900
|
-
: undefined,
|
|
2833
|
+
summary: output.summary != null ? deserializeAws_json1_1SystemInstanceSummary(output.summary, context) : undefined,
|
|
2901
2834
|
};
|
|
2902
2835
|
};
|
|
2903
2836
|
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
@@ -2905,16 +2838,12 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
|
2905
2838
|
};
|
|
2906
2839
|
const deserializeAws_json1_1UpdateFlowTemplateResponse = (output, context) => {
|
|
2907
2840
|
return {
|
|
2908
|
-
summary: output.summary
|
|
2909
|
-
? deserializeAws_json1_1FlowTemplateSummary(output.summary, context)
|
|
2910
|
-
: undefined,
|
|
2841
|
+
summary: output.summary != null ? deserializeAws_json1_1FlowTemplateSummary(output.summary, context) : undefined,
|
|
2911
2842
|
};
|
|
2912
2843
|
};
|
|
2913
2844
|
const deserializeAws_json1_1UpdateSystemTemplateResponse = (output, context) => {
|
|
2914
2845
|
return {
|
|
2915
|
-
summary: output.summary
|
|
2916
|
-
? deserializeAws_json1_1SystemTemplateSummary(output.summary, context)
|
|
2917
|
-
: undefined,
|
|
2846
|
+
summary: output.summary != null ? deserializeAws_json1_1SystemTemplateSummary(output.summary, context) : undefined,
|
|
2918
2847
|
};
|
|
2919
2848
|
};
|
|
2920
2849
|
const deserializeAws_json1_1UploadEntityDefinitionsResponse = (output, context) => {
|
|
@@ -2984,5 +2913,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2984
2913
|
if (data["__type"] !== undefined) {
|
|
2985
2914
|
return sanitizeErrorCode(data["__type"]);
|
|
2986
2915
|
}
|
|
2987
|
-
return "";
|
|
2988
2916
|
};
|