@aws-sdk/client-iottwinmaker 3.118.0 → 3.127.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_restJson1.js +295 -371
- package/dist-es/protocols/Aws_restJson1.js +221 -297
- package/package.json +26 -26
|
@@ -25,8 +25,7 @@ const serializeAws_restJson1BatchPutPropertyValuesCommand = async (input, contex
|
|
|
25
25
|
}
|
|
26
26
|
let body;
|
|
27
27
|
body = JSON.stringify({
|
|
28
|
-
...(input.entries
|
|
29
|
-
input.entries !== null && { entries: serializeAws_restJson1Entries(input.entries, context) }),
|
|
28
|
+
...(input.entries != null && { entries: serializeAws_restJson1Entries(input.entries, context) }),
|
|
30
29
|
});
|
|
31
30
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
32
31
|
if (context.disableHostPrefix !== true) {
|
|
@@ -75,17 +74,14 @@ const serializeAws_restJson1CreateComponentTypeCommand = async (input, context)
|
|
|
75
74
|
}
|
|
76
75
|
let body;
|
|
77
76
|
body = JSON.stringify({
|
|
78
|
-
...(input.description
|
|
79
|
-
...(input.extendsFrom
|
|
80
|
-
|
|
81
|
-
...(input.
|
|
82
|
-
|
|
83
|
-
...(input.isSingleton !== undefined && input.isSingleton !== null && { isSingleton: input.isSingleton }),
|
|
84
|
-
...(input.propertyDefinitions !== undefined &&
|
|
85
|
-
input.propertyDefinitions !== null && {
|
|
77
|
+
...(input.description != null && { description: input.description }),
|
|
78
|
+
...(input.extendsFrom != null && { extendsFrom: serializeAws_restJson1ExtendsFrom(input.extendsFrom, context) }),
|
|
79
|
+
...(input.functions != null && { functions: serializeAws_restJson1FunctionsRequest(input.functions, context) }),
|
|
80
|
+
...(input.isSingleton != null && { isSingleton: input.isSingleton }),
|
|
81
|
+
...(input.propertyDefinitions != null && {
|
|
86
82
|
propertyDefinitions: serializeAws_restJson1PropertyDefinitionsRequest(input.propertyDefinitions, context),
|
|
87
83
|
}),
|
|
88
|
-
...(input.tags
|
|
84
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
89
85
|
});
|
|
90
86
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
91
87
|
if (context.disableHostPrefix !== true) {
|
|
@@ -123,16 +119,14 @@ const serializeAws_restJson1CreateEntityCommand = async (input, context) => {
|
|
|
123
119
|
}
|
|
124
120
|
let body;
|
|
125
121
|
body = JSON.stringify({
|
|
126
|
-
...(input.components
|
|
127
|
-
input.components !== null && {
|
|
122
|
+
...(input.components != null && {
|
|
128
123
|
components: serializeAws_restJson1ComponentsMapRequest(input.components, context),
|
|
129
124
|
}),
|
|
130
|
-
...(input.description
|
|
131
|
-
...(input.entityId
|
|
132
|
-
...(input.entityName
|
|
133
|
-
...(input.parentEntityId
|
|
134
|
-
|
|
135
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
125
|
+
...(input.description != null && { description: input.description }),
|
|
126
|
+
...(input.entityId != null && { entityId: input.entityId }),
|
|
127
|
+
...(input.entityName != null && { entityName: input.entityName }),
|
|
128
|
+
...(input.parentEntityId != null && { parentEntityId: input.parentEntityId }),
|
|
129
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
136
130
|
});
|
|
137
131
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
138
132
|
if (context.disableHostPrefix !== true) {
|
|
@@ -170,15 +164,13 @@ const serializeAws_restJson1CreateSceneCommand = async (input, context) => {
|
|
|
170
164
|
}
|
|
171
165
|
let body;
|
|
172
166
|
body = JSON.stringify({
|
|
173
|
-
...(input.capabilities
|
|
174
|
-
input.capabilities !== null && {
|
|
167
|
+
...(input.capabilities != null && {
|
|
175
168
|
capabilities: serializeAws_restJson1SceneCapabilities(input.capabilities, context),
|
|
176
169
|
}),
|
|
177
|
-
...(input.contentLocation
|
|
178
|
-
|
|
179
|
-
...(input.
|
|
180
|
-
...(input.
|
|
181
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
170
|
+
...(input.contentLocation != null && { contentLocation: input.contentLocation }),
|
|
171
|
+
...(input.description != null && { description: input.description }),
|
|
172
|
+
...(input.sceneId != null && { sceneId: input.sceneId }),
|
|
173
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
182
174
|
});
|
|
183
175
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
184
176
|
if (context.disableHostPrefix !== true) {
|
|
@@ -216,10 +208,10 @@ const serializeAws_restJson1CreateWorkspaceCommand = async (input, context) => {
|
|
|
216
208
|
}
|
|
217
209
|
let body;
|
|
218
210
|
body = JSON.stringify({
|
|
219
|
-
...(input.description
|
|
220
|
-
...(input.role
|
|
221
|
-
...(input.s3Location
|
|
222
|
-
...(input.tags
|
|
211
|
+
...(input.description != null && { description: input.description }),
|
|
212
|
+
...(input.role != null && { role: input.role }),
|
|
213
|
+
...(input.s3Location != null && { s3Location: input.s3Location }),
|
|
214
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
223
215
|
});
|
|
224
216
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
225
217
|
if (context.disableHostPrefix !== true) {
|
|
@@ -515,12 +507,10 @@ const serializeAws_restJson1GetPropertyValueCommand = async (input, context) =>
|
|
|
515
507
|
}
|
|
516
508
|
let body;
|
|
517
509
|
body = JSON.stringify({
|
|
518
|
-
...(input.componentName
|
|
519
|
-
...(input.componentTypeId
|
|
520
|
-
|
|
521
|
-
...(input.
|
|
522
|
-
...(input.selectedProperties !== undefined &&
|
|
523
|
-
input.selectedProperties !== null && {
|
|
510
|
+
...(input.componentName != null && { componentName: input.componentName }),
|
|
511
|
+
...(input.componentTypeId != null && { componentTypeId: input.componentTypeId }),
|
|
512
|
+
...(input.entityId != null && { entityId: input.entityId }),
|
|
513
|
+
...(input.selectedProperties != null && {
|
|
524
514
|
selectedProperties: serializeAws_restJson1SelectedPropertyList(input.selectedProperties, context),
|
|
525
515
|
}),
|
|
526
516
|
});
|
|
@@ -561,31 +551,25 @@ const serializeAws_restJson1GetPropertyValueHistoryCommand = async (input, conte
|
|
|
561
551
|
}
|
|
562
552
|
let body;
|
|
563
553
|
body = JSON.stringify({
|
|
564
|
-
...(input.componentName
|
|
565
|
-
...(input.componentTypeId
|
|
566
|
-
|
|
567
|
-
...(input.
|
|
568
|
-
|
|
569
|
-
...(input.
|
|
570
|
-
...(input.entityId !== undefined && input.entityId !== null && { entityId: input.entityId }),
|
|
571
|
-
...(input.interpolation !== undefined &&
|
|
572
|
-
input.interpolation !== null && {
|
|
554
|
+
...(input.componentName != null && { componentName: input.componentName }),
|
|
555
|
+
...(input.componentTypeId != null && { componentTypeId: input.componentTypeId }),
|
|
556
|
+
...(input.endDateTime != null && { endDateTime: Math.round(input.endDateTime.getTime() / 1000) }),
|
|
557
|
+
...(input.endTime != null && { endTime: input.endTime }),
|
|
558
|
+
...(input.entityId != null && { entityId: input.entityId }),
|
|
559
|
+
...(input.interpolation != null && {
|
|
573
560
|
interpolation: serializeAws_restJson1InterpolationParameters(input.interpolation, context),
|
|
574
561
|
}),
|
|
575
|
-
...(input.maxResults
|
|
576
|
-
...(input.nextToken
|
|
577
|
-
...(input.orderByTime
|
|
578
|
-
...(input.propertyFilters
|
|
579
|
-
input.propertyFilters !== null && {
|
|
562
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
563
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
564
|
+
...(input.orderByTime != null && { orderByTime: input.orderByTime }),
|
|
565
|
+
...(input.propertyFilters != null && {
|
|
580
566
|
propertyFilters: serializeAws_restJson1PropertyFilters(input.propertyFilters, context),
|
|
581
567
|
}),
|
|
582
|
-
...(input.selectedProperties
|
|
583
|
-
input.selectedProperties !== null && {
|
|
568
|
+
...(input.selectedProperties != null && {
|
|
584
569
|
selectedProperties: serializeAws_restJson1SelectedPropertyList(input.selectedProperties, context),
|
|
585
570
|
}),
|
|
586
|
-
...(input.startDateTime
|
|
587
|
-
|
|
588
|
-
...(input.startTime !== undefined && input.startTime !== null && { startTime: input.startTime }),
|
|
571
|
+
...(input.startDateTime != null && { startDateTime: Math.round(input.startDateTime.getTime() / 1000) }),
|
|
572
|
+
...(input.startTime != null && { startTime: input.startTime }),
|
|
589
573
|
});
|
|
590
574
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
591
575
|
if (context.disableHostPrefix !== true) {
|
|
@@ -701,10 +685,9 @@ const serializeAws_restJson1ListComponentTypesCommand = async (input, context) =
|
|
|
701
685
|
}
|
|
702
686
|
let body;
|
|
703
687
|
body = JSON.stringify({
|
|
704
|
-
...(input.filters
|
|
705
|
-
|
|
706
|
-
...(input.
|
|
707
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
688
|
+
...(input.filters != null && { filters: serializeAws_restJson1ListComponentTypesFilters(input.filters, context) }),
|
|
689
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
690
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
708
691
|
});
|
|
709
692
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
710
693
|
if (context.disableHostPrefix !== true) {
|
|
@@ -742,10 +725,9 @@ const serializeAws_restJson1ListEntitiesCommand = async (input, context) => {
|
|
|
742
725
|
}
|
|
743
726
|
let body;
|
|
744
727
|
body = JSON.stringify({
|
|
745
|
-
...(input.filters
|
|
746
|
-
|
|
747
|
-
...(input.
|
|
748
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
728
|
+
...(input.filters != null && { filters: serializeAws_restJson1ListEntitiesFilters(input.filters, context) }),
|
|
729
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
730
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
749
731
|
});
|
|
750
732
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
751
733
|
if (context.disableHostPrefix !== true) {
|
|
@@ -783,8 +765,8 @@ const serializeAws_restJson1ListScenesCommand = async (input, context) => {
|
|
|
783
765
|
}
|
|
784
766
|
let body;
|
|
785
767
|
body = JSON.stringify({
|
|
786
|
-
...(input.maxResults
|
|
787
|
-
...(input.nextToken
|
|
768
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
769
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
788
770
|
});
|
|
789
771
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
790
772
|
if (context.disableHostPrefix !== true) {
|
|
@@ -812,9 +794,9 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
812
794
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags-list";
|
|
813
795
|
let body;
|
|
814
796
|
body = JSON.stringify({
|
|
815
|
-
...(input.maxResults
|
|
816
|
-
...(input.nextToken
|
|
817
|
-
...(input.resourceARN
|
|
797
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
798
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
799
|
+
...(input.resourceARN != null && { resourceARN: input.resourceARN }),
|
|
818
800
|
});
|
|
819
801
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
820
802
|
if (context.disableHostPrefix !== true) {
|
|
@@ -842,8 +824,8 @@ const serializeAws_restJson1ListWorkspacesCommand = async (input, context) => {
|
|
|
842
824
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces-list";
|
|
843
825
|
let body;
|
|
844
826
|
body = JSON.stringify({
|
|
845
|
-
...(input.maxResults
|
|
846
|
-
...(input.nextToken
|
|
827
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
828
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
847
829
|
});
|
|
848
830
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
849
831
|
if (context.disableHostPrefix !== true) {
|
|
@@ -871,8 +853,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
871
853
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
872
854
|
let body;
|
|
873
855
|
body = JSON.stringify({
|
|
874
|
-
...(input.resourceARN
|
|
875
|
-
...(input.tags
|
|
856
|
+
...(input.resourceARN != null && { resourceARN: input.resourceARN }),
|
|
857
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
876
858
|
});
|
|
877
859
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
878
860
|
if (context.disableHostPrefix !== true) {
|
|
@@ -949,14 +931,11 @@ const serializeAws_restJson1UpdateComponentTypeCommand = async (input, context)
|
|
|
949
931
|
}
|
|
950
932
|
let body;
|
|
951
933
|
body = JSON.stringify({
|
|
952
|
-
...(input.description
|
|
953
|
-
...(input.extendsFrom
|
|
954
|
-
|
|
955
|
-
...(input.
|
|
956
|
-
|
|
957
|
-
...(input.isSingleton !== undefined && input.isSingleton !== null && { isSingleton: input.isSingleton }),
|
|
958
|
-
...(input.propertyDefinitions !== undefined &&
|
|
959
|
-
input.propertyDefinitions !== null && {
|
|
934
|
+
...(input.description != null && { description: input.description }),
|
|
935
|
+
...(input.extendsFrom != null && { extendsFrom: serializeAws_restJson1ExtendsFrom(input.extendsFrom, context) }),
|
|
936
|
+
...(input.functions != null && { functions: serializeAws_restJson1FunctionsRequest(input.functions, context) }),
|
|
937
|
+
...(input.isSingleton != null && { isSingleton: input.isSingleton }),
|
|
938
|
+
...(input.propertyDefinitions != null && {
|
|
960
939
|
propertyDefinitions: serializeAws_restJson1PropertyDefinitionsRequest(input.propertyDefinitions, context),
|
|
961
940
|
}),
|
|
962
941
|
});
|
|
@@ -1007,14 +986,12 @@ const serializeAws_restJson1UpdateEntityCommand = async (input, context) => {
|
|
|
1007
986
|
}
|
|
1008
987
|
let body;
|
|
1009
988
|
body = JSON.stringify({
|
|
1010
|
-
...(input.componentUpdates
|
|
1011
|
-
input.componentUpdates !== null && {
|
|
989
|
+
...(input.componentUpdates != null && {
|
|
1012
990
|
componentUpdates: serializeAws_restJson1ComponentUpdatesMapRequest(input.componentUpdates, context),
|
|
1013
991
|
}),
|
|
1014
|
-
...(input.description
|
|
1015
|
-
...(input.entityName
|
|
1016
|
-
...(input.parentEntityUpdate
|
|
1017
|
-
input.parentEntityUpdate !== null && {
|
|
992
|
+
...(input.description != null && { description: input.description }),
|
|
993
|
+
...(input.entityName != null && { entityName: input.entityName }),
|
|
994
|
+
...(input.parentEntityUpdate != null && {
|
|
1018
995
|
parentEntityUpdate: serializeAws_restJson1ParentEntityUpdateRequest(input.parentEntityUpdate, context),
|
|
1019
996
|
}),
|
|
1020
997
|
});
|
|
@@ -1065,13 +1042,11 @@ const serializeAws_restJson1UpdateSceneCommand = async (input, context) => {
|
|
|
1065
1042
|
}
|
|
1066
1043
|
let body;
|
|
1067
1044
|
body = JSON.stringify({
|
|
1068
|
-
...(input.capabilities
|
|
1069
|
-
input.capabilities !== null && {
|
|
1045
|
+
...(input.capabilities != null && {
|
|
1070
1046
|
capabilities: serializeAws_restJson1SceneCapabilities(input.capabilities, context),
|
|
1071
1047
|
}),
|
|
1072
|
-
...(input.contentLocation
|
|
1073
|
-
|
|
1074
|
-
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
1048
|
+
...(input.contentLocation != null && { contentLocation: input.contentLocation }),
|
|
1049
|
+
...(input.description != null && { description: input.description }),
|
|
1075
1050
|
});
|
|
1076
1051
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1077
1052
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1109,8 +1084,8 @@ const serializeAws_restJson1UpdateWorkspaceCommand = async (input, context) => {
|
|
|
1109
1084
|
}
|
|
1110
1085
|
let body;
|
|
1111
1086
|
body = JSON.stringify({
|
|
1112
|
-
...(input.description
|
|
1113
|
-
...(input.role
|
|
1087
|
+
...(input.description != null && { description: input.description }),
|
|
1088
|
+
...(input.role != null && { role: input.role }),
|
|
1114
1089
|
});
|
|
1115
1090
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1116
1091
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1151,8 +1126,7 @@ const deserializeAws_restJson1BatchPutPropertyValuesCommandError = async (output
|
|
|
1151
1126
|
body: await parseBody(output.body, context),
|
|
1152
1127
|
};
|
|
1153
1128
|
let response;
|
|
1154
|
-
|
|
1155
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1129
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1156
1130
|
switch (errorCode) {
|
|
1157
1131
|
case "InternalServerException":
|
|
1158
1132
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
@@ -1168,10 +1142,12 @@ const deserializeAws_restJson1BatchPutPropertyValuesCommandError = async (output
|
|
|
1168
1142
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1169
1143
|
default:
|
|
1170
1144
|
const parsedBody = parsedOutput.body;
|
|
1145
|
+
const $metadata = deserializeMetadata(output);
|
|
1146
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1171
1147
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
1172
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1148
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1173
1149
|
$fault: "client",
|
|
1174
|
-
$metadata
|
|
1150
|
+
$metadata,
|
|
1175
1151
|
});
|
|
1176
1152
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1177
1153
|
}
|
|
@@ -1205,8 +1181,7 @@ const deserializeAws_restJson1CreateComponentTypeCommandError = async (output, c
|
|
|
1205
1181
|
body: await parseBody(output.body, context),
|
|
1206
1182
|
};
|
|
1207
1183
|
let response;
|
|
1208
|
-
|
|
1209
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1184
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1210
1185
|
switch (errorCode) {
|
|
1211
1186
|
case "AccessDeniedException":
|
|
1212
1187
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
@@ -1228,10 +1203,12 @@ const deserializeAws_restJson1CreateComponentTypeCommandError = async (output, c
|
|
|
1228
1203
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1229
1204
|
default:
|
|
1230
1205
|
const parsedBody = parsedOutput.body;
|
|
1206
|
+
const $metadata = deserializeMetadata(output);
|
|
1207
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1231
1208
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
1232
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1209
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1233
1210
|
$fault: "client",
|
|
1234
|
-
$metadata
|
|
1211
|
+
$metadata,
|
|
1235
1212
|
});
|
|
1236
1213
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1237
1214
|
}
|
|
@@ -1269,8 +1246,7 @@ const deserializeAws_restJson1CreateEntityCommandError = async (output, context)
|
|
|
1269
1246
|
body: await parseBody(output.body, context),
|
|
1270
1247
|
};
|
|
1271
1248
|
let response;
|
|
1272
|
-
|
|
1273
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1249
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1274
1250
|
switch (errorCode) {
|
|
1275
1251
|
case "AccessDeniedException":
|
|
1276
1252
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
@@ -1292,10 +1268,12 @@ const deserializeAws_restJson1CreateEntityCommandError = async (output, context)
|
|
|
1292
1268
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1293
1269
|
default:
|
|
1294
1270
|
const parsedBody = parsedOutput.body;
|
|
1271
|
+
const $metadata = deserializeMetadata(output);
|
|
1272
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1295
1273
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
1296
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1274
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1297
1275
|
$fault: "client",
|
|
1298
|
-
$metadata
|
|
1276
|
+
$metadata,
|
|
1299
1277
|
});
|
|
1300
1278
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1301
1279
|
}
|
|
@@ -1325,8 +1303,7 @@ const deserializeAws_restJson1CreateSceneCommandError = async (output, context)
|
|
|
1325
1303
|
body: await parseBody(output.body, context),
|
|
1326
1304
|
};
|
|
1327
1305
|
let response;
|
|
1328
|
-
|
|
1329
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1306
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1330
1307
|
switch (errorCode) {
|
|
1331
1308
|
case "AccessDeniedException":
|
|
1332
1309
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
@@ -1348,10 +1325,12 @@ const deserializeAws_restJson1CreateSceneCommandError = async (output, context)
|
|
|
1348
1325
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1349
1326
|
default:
|
|
1350
1327
|
const parsedBody = parsedOutput.body;
|
|
1328
|
+
const $metadata = deserializeMetadata(output);
|
|
1329
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1351
1330
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
1352
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1331
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1353
1332
|
$fault: "client",
|
|
1354
|
-
$metadata
|
|
1333
|
+
$metadata,
|
|
1355
1334
|
});
|
|
1356
1335
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1357
1336
|
}
|
|
@@ -1381,8 +1360,7 @@ const deserializeAws_restJson1CreateWorkspaceCommandError = async (output, conte
|
|
|
1381
1360
|
body: await parseBody(output.body, context),
|
|
1382
1361
|
};
|
|
1383
1362
|
let response;
|
|
1384
|
-
|
|
1385
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1363
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1386
1364
|
switch (errorCode) {
|
|
1387
1365
|
case "AccessDeniedException":
|
|
1388
1366
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
@@ -1404,10 +1382,12 @@ const deserializeAws_restJson1CreateWorkspaceCommandError = async (output, conte
|
|
|
1404
1382
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1405
1383
|
default:
|
|
1406
1384
|
const parsedBody = parsedOutput.body;
|
|
1385
|
+
const $metadata = deserializeMetadata(output);
|
|
1386
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1407
1387
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
1408
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1388
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1409
1389
|
$fault: "client",
|
|
1410
|
-
$metadata
|
|
1390
|
+
$metadata,
|
|
1411
1391
|
});
|
|
1412
1392
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1413
1393
|
}
|
|
@@ -1433,8 +1413,7 @@ const deserializeAws_restJson1DeleteComponentTypeCommandError = async (output, c
|
|
|
1433
1413
|
body: await parseBody(output.body, context),
|
|
1434
1414
|
};
|
|
1435
1415
|
let response;
|
|
1436
|
-
|
|
1437
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1416
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1438
1417
|
switch (errorCode) {
|
|
1439
1418
|
case "AccessDeniedException":
|
|
1440
1419
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
@@ -1453,10 +1432,12 @@ const deserializeAws_restJson1DeleteComponentTypeCommandError = async (output, c
|
|
|
1453
1432
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1454
1433
|
default:
|
|
1455
1434
|
const parsedBody = parsedOutput.body;
|
|
1435
|
+
const $metadata = deserializeMetadata(output);
|
|
1436
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1456
1437
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
1457
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1438
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1458
1439
|
$fault: "client",
|
|
1459
|
-
$metadata
|
|
1440
|
+
$metadata,
|
|
1460
1441
|
});
|
|
1461
1442
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1462
1443
|
}
|
|
@@ -1482,8 +1463,7 @@ const deserializeAws_restJson1DeleteEntityCommandError = async (output, context)
|
|
|
1482
1463
|
body: await parseBody(output.body, context),
|
|
1483
1464
|
};
|
|
1484
1465
|
let response;
|
|
1485
|
-
|
|
1486
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1466
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1487
1467
|
switch (errorCode) {
|
|
1488
1468
|
case "InternalServerException":
|
|
1489
1469
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
@@ -1502,10 +1482,12 @@ const deserializeAws_restJson1DeleteEntityCommandError = async (output, context)
|
|
|
1502
1482
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1503
1483
|
default:
|
|
1504
1484
|
const parsedBody = parsedOutput.body;
|
|
1485
|
+
const $metadata = deserializeMetadata(output);
|
|
1486
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1505
1487
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
1506
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1488
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1507
1489
|
$fault: "client",
|
|
1508
|
-
$metadata
|
|
1490
|
+
$metadata,
|
|
1509
1491
|
});
|
|
1510
1492
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1511
1493
|
}
|
|
@@ -1527,8 +1509,7 @@ const deserializeAws_restJson1DeleteSceneCommandError = async (output, context)
|
|
|
1527
1509
|
body: await parseBody(output.body, context),
|
|
1528
1510
|
};
|
|
1529
1511
|
let response;
|
|
1530
|
-
|
|
1531
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1512
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1532
1513
|
switch (errorCode) {
|
|
1533
1514
|
case "AccessDeniedException":
|
|
1534
1515
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
@@ -1547,10 +1528,12 @@ const deserializeAws_restJson1DeleteSceneCommandError = async (output, context)
|
|
|
1547
1528
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1548
1529
|
default:
|
|
1549
1530
|
const parsedBody = parsedOutput.body;
|
|
1531
|
+
const $metadata = deserializeMetadata(output);
|
|
1532
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1550
1533
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
1551
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1534
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1552
1535
|
$fault: "client",
|
|
1553
|
-
$metadata
|
|
1536
|
+
$metadata,
|
|
1554
1537
|
});
|
|
1555
1538
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1556
1539
|
}
|
|
@@ -1572,8 +1555,7 @@ const deserializeAws_restJson1DeleteWorkspaceCommandError = async (output, conte
|
|
|
1572
1555
|
body: await parseBody(output.body, context),
|
|
1573
1556
|
};
|
|
1574
1557
|
let response;
|
|
1575
|
-
|
|
1576
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1558
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1577
1559
|
switch (errorCode) {
|
|
1578
1560
|
case "AccessDeniedException":
|
|
1579
1561
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
@@ -1592,10 +1574,12 @@ const deserializeAws_restJson1DeleteWorkspaceCommandError = async (output, conte
|
|
|
1592
1574
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1593
1575
|
default:
|
|
1594
1576
|
const parsedBody = parsedOutput.body;
|
|
1577
|
+
const $metadata = deserializeMetadata(output);
|
|
1578
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1595
1579
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
1596
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1580
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1597
1581
|
$fault: "client",
|
|
1598
|
-
$metadata
|
|
1582
|
+
$metadata,
|
|
1599
1583
|
});
|
|
1600
1584
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1601
1585
|
}
|
|
@@ -1669,8 +1653,7 @@ const deserializeAws_restJson1GetComponentTypeCommandError = async (output, cont
|
|
|
1669
1653
|
body: await parseBody(output.body, context),
|
|
1670
1654
|
};
|
|
1671
1655
|
let response;
|
|
1672
|
-
|
|
1673
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1656
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
1657
|
switch (errorCode) {
|
|
1675
1658
|
case "AccessDeniedException":
|
|
1676
1659
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
@@ -1686,10 +1669,12 @@ const deserializeAws_restJson1GetComponentTypeCommandError = async (output, cont
|
|
|
1686
1669
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1687
1670
|
default:
|
|
1688
1671
|
const parsedBody = parsedOutput.body;
|
|
1672
|
+
const $metadata = deserializeMetadata(output);
|
|
1673
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1689
1674
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
1690
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1675
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1691
1676
|
$fault: "client",
|
|
1692
|
-
$metadata
|
|
1677
|
+
$metadata,
|
|
1693
1678
|
});
|
|
1694
1679
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1695
1680
|
}
|
|
@@ -1755,8 +1740,7 @@ const deserializeAws_restJson1GetEntityCommandError = async (output, context) =>
|
|
|
1755
1740
|
body: await parseBody(output.body, context),
|
|
1756
1741
|
};
|
|
1757
1742
|
let response;
|
|
1758
|
-
|
|
1759
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1743
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1760
1744
|
switch (errorCode) {
|
|
1761
1745
|
case "InternalServerException":
|
|
1762
1746
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
@@ -1775,10 +1759,12 @@ const deserializeAws_restJson1GetEntityCommandError = async (output, context) =>
|
|
|
1775
1759
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1776
1760
|
default:
|
|
1777
1761
|
const parsedBody = parsedOutput.body;
|
|
1762
|
+
const $metadata = deserializeMetadata(output);
|
|
1763
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1778
1764
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
1779
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1765
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1780
1766
|
$fault: "client",
|
|
1781
|
-
$metadata
|
|
1767
|
+
$metadata,
|
|
1782
1768
|
});
|
|
1783
1769
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1784
1770
|
}
|
|
@@ -1804,8 +1790,7 @@ const deserializeAws_restJson1GetPropertyValueCommandError = async (output, cont
|
|
|
1804
1790
|
body: await parseBody(output.body, context),
|
|
1805
1791
|
};
|
|
1806
1792
|
let response;
|
|
1807
|
-
|
|
1808
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1793
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1809
1794
|
switch (errorCode) {
|
|
1810
1795
|
case "AccessDeniedException":
|
|
1811
1796
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
@@ -1830,10 +1815,12 @@ const deserializeAws_restJson1GetPropertyValueCommandError = async (output, cont
|
|
|
1830
1815
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1831
1816
|
default:
|
|
1832
1817
|
const parsedBody = parsedOutput.body;
|
|
1818
|
+
const $metadata = deserializeMetadata(output);
|
|
1819
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1833
1820
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
1834
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1821
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1835
1822
|
$fault: "client",
|
|
1836
|
-
$metadata
|
|
1823
|
+
$metadata,
|
|
1837
1824
|
});
|
|
1838
1825
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1839
1826
|
}
|
|
@@ -1863,8 +1850,7 @@ const deserializeAws_restJson1GetPropertyValueHistoryCommandError = async (outpu
|
|
|
1863
1850
|
body: await parseBody(output.body, context),
|
|
1864
1851
|
};
|
|
1865
1852
|
let response;
|
|
1866
|
-
|
|
1867
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1853
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1868
1854
|
switch (errorCode) {
|
|
1869
1855
|
case "AccessDeniedException":
|
|
1870
1856
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
@@ -1889,10 +1875,12 @@ const deserializeAws_restJson1GetPropertyValueHistoryCommandError = async (outpu
|
|
|
1889
1875
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1890
1876
|
default:
|
|
1891
1877
|
const parsedBody = parsedOutput.body;
|
|
1878
|
+
const $metadata = deserializeMetadata(output);
|
|
1879
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1892
1880
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
1893
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1881
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1894
1882
|
$fault: "client",
|
|
1895
|
-
$metadata
|
|
1883
|
+
$metadata,
|
|
1896
1884
|
});
|
|
1897
1885
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1898
1886
|
}
|
|
@@ -1946,8 +1934,7 @@ const deserializeAws_restJson1GetSceneCommandError = async (output, context) =>
|
|
|
1946
1934
|
body: await parseBody(output.body, context),
|
|
1947
1935
|
};
|
|
1948
1936
|
let response;
|
|
1949
|
-
|
|
1950
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1937
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1951
1938
|
switch (errorCode) {
|
|
1952
1939
|
case "AccessDeniedException":
|
|
1953
1940
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
@@ -1966,10 +1953,12 @@ const deserializeAws_restJson1GetSceneCommandError = async (output, context) =>
|
|
|
1966
1953
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1967
1954
|
default:
|
|
1968
1955
|
const parsedBody = parsedOutput.body;
|
|
1956
|
+
const $metadata = deserializeMetadata(output);
|
|
1957
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1969
1958
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
1970
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1959
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1971
1960
|
$fault: "client",
|
|
1972
|
-
$metadata
|
|
1961
|
+
$metadata,
|
|
1973
1962
|
});
|
|
1974
1963
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1975
1964
|
}
|
|
@@ -2019,8 +2008,7 @@ const deserializeAws_restJson1GetWorkspaceCommandError = async (output, context)
|
|
|
2019
2008
|
body: await parseBody(output.body, context),
|
|
2020
2009
|
};
|
|
2021
2010
|
let response;
|
|
2022
|
-
|
|
2023
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2011
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2024
2012
|
switch (errorCode) {
|
|
2025
2013
|
case "InternalServerException":
|
|
2026
2014
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
@@ -2039,10 +2027,12 @@ const deserializeAws_restJson1GetWorkspaceCommandError = async (output, context)
|
|
|
2039
2027
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2040
2028
|
default:
|
|
2041
2029
|
const parsedBody = parsedOutput.body;
|
|
2030
|
+
const $metadata = deserializeMetadata(output);
|
|
2031
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2042
2032
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
2043
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2033
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2044
2034
|
$fault: "client",
|
|
2045
|
-
$metadata
|
|
2035
|
+
$metadata,
|
|
2046
2036
|
});
|
|
2047
2037
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2048
2038
|
}
|
|
@@ -2080,8 +2070,7 @@ const deserializeAws_restJson1ListComponentTypesCommandError = async (output, co
|
|
|
2080
2070
|
body: await parseBody(output.body, context),
|
|
2081
2071
|
};
|
|
2082
2072
|
let response;
|
|
2083
|
-
|
|
2084
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2073
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2085
2074
|
switch (errorCode) {
|
|
2086
2075
|
case "AccessDeniedException":
|
|
2087
2076
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
@@ -2097,10 +2086,12 @@ const deserializeAws_restJson1ListComponentTypesCommandError = async (output, co
|
|
|
2097
2086
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2098
2087
|
default:
|
|
2099
2088
|
const parsedBody = parsedOutput.body;
|
|
2089
|
+
const $metadata = deserializeMetadata(output);
|
|
2090
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2100
2091
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
2101
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2092
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2102
2093
|
$fault: "client",
|
|
2103
|
-
$metadata
|
|
2094
|
+
$metadata,
|
|
2104
2095
|
});
|
|
2105
2096
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2106
2097
|
}
|
|
@@ -2130,8 +2121,7 @@ const deserializeAws_restJson1ListEntitiesCommandError = async (output, context)
|
|
|
2130
2121
|
body: await parseBody(output.body, context),
|
|
2131
2122
|
};
|
|
2132
2123
|
let response;
|
|
2133
|
-
|
|
2134
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2124
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2135
2125
|
switch (errorCode) {
|
|
2136
2126
|
case "InternalServerException":
|
|
2137
2127
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
@@ -2147,10 +2137,12 @@ const deserializeAws_restJson1ListEntitiesCommandError = async (output, context)
|
|
|
2147
2137
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2148
2138
|
default:
|
|
2149
2139
|
const parsedBody = parsedOutput.body;
|
|
2140
|
+
const $metadata = deserializeMetadata(output);
|
|
2141
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2150
2142
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
2151
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2143
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2152
2144
|
$fault: "client",
|
|
2153
|
-
$metadata
|
|
2145
|
+
$metadata,
|
|
2154
2146
|
});
|
|
2155
2147
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2156
2148
|
}
|
|
@@ -2180,8 +2172,7 @@ const deserializeAws_restJson1ListScenesCommandError = async (output, context) =
|
|
|
2180
2172
|
body: await parseBody(output.body, context),
|
|
2181
2173
|
};
|
|
2182
2174
|
let response;
|
|
2183
|
-
|
|
2184
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2175
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2185
2176
|
switch (errorCode) {
|
|
2186
2177
|
case "AccessDeniedException":
|
|
2187
2178
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
@@ -2197,10 +2188,12 @@ const deserializeAws_restJson1ListScenesCommandError = async (output, context) =
|
|
|
2197
2188
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2198
2189
|
default:
|
|
2199
2190
|
const parsedBody = parsedOutput.body;
|
|
2191
|
+
const $metadata = deserializeMetadata(output);
|
|
2192
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2200
2193
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
2201
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2194
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2202
2195
|
$fault: "client",
|
|
2203
|
-
$metadata
|
|
2196
|
+
$metadata,
|
|
2204
2197
|
});
|
|
2205
2198
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2206
2199
|
}
|
|
@@ -2230,8 +2223,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2230
2223
|
body: await parseBody(output.body, context),
|
|
2231
2224
|
};
|
|
2232
2225
|
let response;
|
|
2233
|
-
|
|
2234
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2226
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2235
2227
|
switch (errorCode) {
|
|
2236
2228
|
case "AccessDeniedException":
|
|
2237
2229
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
@@ -2241,10 +2233,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2241
2233
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2242
2234
|
default:
|
|
2243
2235
|
const parsedBody = parsedOutput.body;
|
|
2236
|
+
const $metadata = deserializeMetadata(output);
|
|
2237
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2244
2238
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
2245
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2239
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2246
2240
|
$fault: "client",
|
|
2247
|
-
$metadata
|
|
2241
|
+
$metadata,
|
|
2248
2242
|
});
|
|
2249
2243
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2250
2244
|
}
|
|
@@ -2274,8 +2268,7 @@ const deserializeAws_restJson1ListWorkspacesCommandError = async (output, contex
|
|
|
2274
2268
|
body: await parseBody(output.body, context),
|
|
2275
2269
|
};
|
|
2276
2270
|
let response;
|
|
2277
|
-
|
|
2278
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2271
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2279
2272
|
switch (errorCode) {
|
|
2280
2273
|
case "InternalServerException":
|
|
2281
2274
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
@@ -2291,10 +2284,12 @@ const deserializeAws_restJson1ListWorkspacesCommandError = async (output, contex
|
|
|
2291
2284
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2292
2285
|
default:
|
|
2293
2286
|
const parsedBody = parsedOutput.body;
|
|
2287
|
+
const $metadata = deserializeMetadata(output);
|
|
2288
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2294
2289
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
2295
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2290
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2296
2291
|
$fault: "client",
|
|
2297
|
-
$metadata
|
|
2292
|
+
$metadata,
|
|
2298
2293
|
});
|
|
2299
2294
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2300
2295
|
}
|
|
@@ -2316,8 +2311,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2316
2311
|
body: await parseBody(output.body, context),
|
|
2317
2312
|
};
|
|
2318
2313
|
let response;
|
|
2319
|
-
|
|
2320
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2314
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2321
2315
|
switch (errorCode) {
|
|
2322
2316
|
case "AccessDeniedException":
|
|
2323
2317
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
@@ -2330,10 +2324,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2330
2324
|
throw await deserializeAws_restJson1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
2331
2325
|
default:
|
|
2332
2326
|
const parsedBody = parsedOutput.body;
|
|
2327
|
+
const $metadata = deserializeMetadata(output);
|
|
2328
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2333
2329
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
2334
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2330
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2335
2331
|
$fault: "client",
|
|
2336
|
-
$metadata
|
|
2332
|
+
$metadata,
|
|
2337
2333
|
});
|
|
2338
2334
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2339
2335
|
}
|
|
@@ -2355,8 +2351,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2355
2351
|
body: await parseBody(output.body, context),
|
|
2356
2352
|
};
|
|
2357
2353
|
let response;
|
|
2358
|
-
|
|
2359
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2354
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2360
2355
|
switch (errorCode) {
|
|
2361
2356
|
case "AccessDeniedException":
|
|
2362
2357
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
@@ -2366,10 +2361,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2366
2361
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2367
2362
|
default:
|
|
2368
2363
|
const parsedBody = parsedOutput.body;
|
|
2364
|
+
const $metadata = deserializeMetadata(output);
|
|
2365
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2369
2366
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
2370
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2367
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2371
2368
|
$fault: "client",
|
|
2372
|
-
$metadata
|
|
2369
|
+
$metadata,
|
|
2373
2370
|
});
|
|
2374
2371
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2375
2372
|
}
|
|
@@ -2407,8 +2404,7 @@ const deserializeAws_restJson1UpdateComponentTypeCommandError = async (output, c
|
|
|
2407
2404
|
body: await parseBody(output.body, context),
|
|
2408
2405
|
};
|
|
2409
2406
|
let response;
|
|
2410
|
-
|
|
2411
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2407
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2412
2408
|
switch (errorCode) {
|
|
2413
2409
|
case "AccessDeniedException":
|
|
2414
2410
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
@@ -2430,10 +2426,12 @@ const deserializeAws_restJson1UpdateComponentTypeCommandError = async (output, c
|
|
|
2430
2426
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2431
2427
|
default:
|
|
2432
2428
|
const parsedBody = parsedOutput.body;
|
|
2429
|
+
const $metadata = deserializeMetadata(output);
|
|
2430
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2433
2431
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
2434
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2432
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2435
2433
|
$fault: "client",
|
|
2436
|
-
$metadata
|
|
2434
|
+
$metadata,
|
|
2437
2435
|
});
|
|
2438
2436
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2439
2437
|
}
|
|
@@ -2463,8 +2461,7 @@ const deserializeAws_restJson1UpdateEntityCommandError = async (output, context)
|
|
|
2463
2461
|
body: await parseBody(output.body, context),
|
|
2464
2462
|
};
|
|
2465
2463
|
let response;
|
|
2466
|
-
|
|
2467
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2464
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2468
2465
|
switch (errorCode) {
|
|
2469
2466
|
case "AccessDeniedException":
|
|
2470
2467
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
@@ -2489,10 +2486,12 @@ const deserializeAws_restJson1UpdateEntityCommandError = async (output, context)
|
|
|
2489
2486
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2490
2487
|
default:
|
|
2491
2488
|
const parsedBody = parsedOutput.body;
|
|
2489
|
+
const $metadata = deserializeMetadata(output);
|
|
2490
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2492
2491
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
2493
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2492
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2494
2493
|
$fault: "client",
|
|
2495
|
-
$metadata
|
|
2494
|
+
$metadata,
|
|
2496
2495
|
});
|
|
2497
2496
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2498
2497
|
}
|
|
@@ -2518,8 +2517,7 @@ const deserializeAws_restJson1UpdateSceneCommandError = async (output, context)
|
|
|
2518
2517
|
body: await parseBody(output.body, context),
|
|
2519
2518
|
};
|
|
2520
2519
|
let response;
|
|
2521
|
-
|
|
2522
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2520
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2523
2521
|
switch (errorCode) {
|
|
2524
2522
|
case "AccessDeniedException":
|
|
2525
2523
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
@@ -2538,10 +2536,12 @@ const deserializeAws_restJson1UpdateSceneCommandError = async (output, context)
|
|
|
2538
2536
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2539
2537
|
default:
|
|
2540
2538
|
const parsedBody = parsedOutput.body;
|
|
2539
|
+
const $metadata = deserializeMetadata(output);
|
|
2540
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2541
2541
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
2542
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2542
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2543
2543
|
$fault: "client",
|
|
2544
|
-
$metadata
|
|
2544
|
+
$metadata,
|
|
2545
2545
|
});
|
|
2546
2546
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2547
2547
|
}
|
|
@@ -2567,8 +2567,7 @@ const deserializeAws_restJson1UpdateWorkspaceCommandError = async (output, conte
|
|
|
2567
2567
|
body: await parseBody(output.body, context),
|
|
2568
2568
|
};
|
|
2569
2569
|
let response;
|
|
2570
|
-
|
|
2571
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2570
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2572
2571
|
switch (errorCode) {
|
|
2573
2572
|
case "AccessDeniedException":
|
|
2574
2573
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
@@ -2590,10 +2589,12 @@ const deserializeAws_restJson1UpdateWorkspaceCommandError = async (output, conte
|
|
|
2590
2589
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2591
2590
|
default:
|
|
2592
2591
|
const parsedBody = parsedOutput.body;
|
|
2592
|
+
const $metadata = deserializeMetadata(output);
|
|
2593
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2593
2594
|
response = new IoTTwinMakerServiceException_1.IoTTwinMakerServiceException({
|
|
2594
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2595
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2595
2596
|
$fault: "client",
|
|
2596
|
-
$metadata
|
|
2597
|
+
$metadata,
|
|
2597
2598
|
});
|
|
2598
2599
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2599
2600
|
}
|
|
@@ -2720,11 +2721,9 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2720
2721
|
};
|
|
2721
2722
|
const serializeAws_restJson1ComponentRequest = (input, context) => {
|
|
2722
2723
|
return {
|
|
2723
|
-
...(input.componentTypeId
|
|
2724
|
-
|
|
2725
|
-
...(input.
|
|
2726
|
-
...(input.properties !== undefined &&
|
|
2727
|
-
input.properties !== null && { properties: serializeAws_restJson1PropertyRequests(input.properties, context) }),
|
|
2724
|
+
...(input.componentTypeId != null && { componentTypeId: input.componentTypeId }),
|
|
2725
|
+
...(input.description != null && { description: input.description }),
|
|
2726
|
+
...(input.properties != null && { properties: serializeAws_restJson1PropertyRequests(input.properties, context) }),
|
|
2728
2727
|
};
|
|
2729
2728
|
};
|
|
2730
2729
|
const serializeAws_restJson1ComponentsMapRequest = (input, context) => {
|
|
@@ -2740,14 +2739,12 @@ const serializeAws_restJson1ComponentsMapRequest = (input, context) => {
|
|
|
2740
2739
|
};
|
|
2741
2740
|
const serializeAws_restJson1ComponentUpdateRequest = (input, context) => {
|
|
2742
2741
|
return {
|
|
2743
|
-
...(input.componentTypeId
|
|
2744
|
-
|
|
2745
|
-
...(input.
|
|
2746
|
-
...(input.propertyUpdates !== undefined &&
|
|
2747
|
-
input.propertyUpdates !== null && {
|
|
2742
|
+
...(input.componentTypeId != null && { componentTypeId: input.componentTypeId }),
|
|
2743
|
+
...(input.description != null && { description: input.description }),
|
|
2744
|
+
...(input.propertyUpdates != null && {
|
|
2748
2745
|
propertyUpdates: serializeAws_restJson1PropertyRequests(input.propertyUpdates, context),
|
|
2749
2746
|
}),
|
|
2750
|
-
...(input.updateType
|
|
2747
|
+
...(input.updateType != null && { updateType: input.updateType }),
|
|
2751
2748
|
};
|
|
2752
2749
|
};
|
|
2753
2750
|
const serializeAws_restJson1ComponentUpdatesMapRequest = (input, context) => {
|
|
@@ -2774,42 +2771,36 @@ const serializeAws_restJson1Configuration = (input, context) => {
|
|
|
2774
2771
|
};
|
|
2775
2772
|
const serializeAws_restJson1DataConnector = (input, context) => {
|
|
2776
2773
|
return {
|
|
2777
|
-
...(input.isNative
|
|
2778
|
-
...(input.lambda
|
|
2779
|
-
input.lambda !== null && { lambda: serializeAws_restJson1LambdaFunction(input.lambda, context) }),
|
|
2774
|
+
...(input.isNative != null && { isNative: input.isNative }),
|
|
2775
|
+
...(input.lambda != null && { lambda: serializeAws_restJson1LambdaFunction(input.lambda, context) }),
|
|
2780
2776
|
};
|
|
2781
2777
|
};
|
|
2782
2778
|
const serializeAws_restJson1DataType = (input, context) => {
|
|
2783
2779
|
return {
|
|
2784
|
-
...(input.allowedValues
|
|
2785
|
-
input.allowedValues !== null && {
|
|
2780
|
+
...(input.allowedValues != null && {
|
|
2786
2781
|
allowedValues: serializeAws_restJson1DataValueList(input.allowedValues, context),
|
|
2787
2782
|
}),
|
|
2788
|
-
...(input.nestedType
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
...(input.type
|
|
2793
|
-
...(input.unitOfMeasure
|
|
2783
|
+
...(input.nestedType != null && { nestedType: serializeAws_restJson1DataType(input.nestedType, context) }),
|
|
2784
|
+
...(input.relationship != null && {
|
|
2785
|
+
relationship: serializeAws_restJson1Relationship(input.relationship, context),
|
|
2786
|
+
}),
|
|
2787
|
+
...(input.type != null && { type: input.type }),
|
|
2788
|
+
...(input.unitOfMeasure != null && { unitOfMeasure: input.unitOfMeasure }),
|
|
2794
2789
|
};
|
|
2795
2790
|
};
|
|
2796
2791
|
const serializeAws_restJson1DataValue = (input, context) => {
|
|
2797
2792
|
return {
|
|
2798
|
-
...(input.booleanValue
|
|
2799
|
-
...(input.doubleValue
|
|
2800
|
-
|
|
2801
|
-
...(input.
|
|
2802
|
-
...(input.
|
|
2803
|
-
...(input.
|
|
2804
|
-
|
|
2805
|
-
...(input.
|
|
2806
|
-
...(input.mapValue !== undefined &&
|
|
2807
|
-
input.mapValue !== null && { mapValue: serializeAws_restJson1DataValueMap(input.mapValue, context) }),
|
|
2808
|
-
...(input.relationshipValue !== undefined &&
|
|
2809
|
-
input.relationshipValue !== null && {
|
|
2793
|
+
...(input.booleanValue != null && { booleanValue: input.booleanValue }),
|
|
2794
|
+
...(input.doubleValue != null && { doubleValue: (0, smithy_client_1.serializeFloat)(input.doubleValue) }),
|
|
2795
|
+
...(input.expression != null && { expression: input.expression }),
|
|
2796
|
+
...(input.integerValue != null && { integerValue: input.integerValue }),
|
|
2797
|
+
...(input.listValue != null && { listValue: serializeAws_restJson1DataValueList(input.listValue, context) }),
|
|
2798
|
+
...(input.longValue != null && { longValue: input.longValue }),
|
|
2799
|
+
...(input.mapValue != null && { mapValue: serializeAws_restJson1DataValueMap(input.mapValue, context) }),
|
|
2800
|
+
...(input.relationshipValue != null && {
|
|
2810
2801
|
relationshipValue: serializeAws_restJson1RelationshipValue(input.relationshipValue, context),
|
|
2811
2802
|
}),
|
|
2812
|
-
...(input.stringValue
|
|
2803
|
+
...(input.stringValue != null && { stringValue: input.stringValue }),
|
|
2813
2804
|
};
|
|
2814
2805
|
};
|
|
2815
2806
|
const serializeAws_restJson1DataValueList = (input, context) => {
|
|
@@ -2835,13 +2826,12 @@ const serializeAws_restJson1DataValueMap = (input, context) => {
|
|
|
2835
2826
|
};
|
|
2836
2827
|
const serializeAws_restJson1EntityPropertyReference = (input, context) => {
|
|
2837
2828
|
return {
|
|
2838
|
-
...(input.componentName
|
|
2839
|
-
...(input.entityId
|
|
2840
|
-
...(input.externalIdProperty
|
|
2841
|
-
input.externalIdProperty !== null && {
|
|
2829
|
+
...(input.componentName != null && { componentName: input.componentName }),
|
|
2830
|
+
...(input.entityId != null && { entityId: input.entityId }),
|
|
2831
|
+
...(input.externalIdProperty != null && {
|
|
2842
2832
|
externalIdProperty: serializeAws_restJson1ExternalIdProperty(input.externalIdProperty, context),
|
|
2843
2833
|
}),
|
|
2844
|
-
...(input.propertyName
|
|
2834
|
+
...(input.propertyName != null && { propertyName: input.propertyName }),
|
|
2845
2835
|
};
|
|
2846
2836
|
};
|
|
2847
2837
|
const serializeAws_restJson1Entries = (input, context) => {
|
|
@@ -2877,15 +2867,13 @@ const serializeAws_restJson1ExternalIdProperty = (input, context) => {
|
|
|
2877
2867
|
};
|
|
2878
2868
|
const serializeAws_restJson1FunctionRequest = (input, context) => {
|
|
2879
2869
|
return {
|
|
2880
|
-
...(input.implementedBy
|
|
2881
|
-
input.implementedBy !== null && {
|
|
2870
|
+
...(input.implementedBy != null && {
|
|
2882
2871
|
implementedBy: serializeAws_restJson1DataConnector(input.implementedBy, context),
|
|
2883
2872
|
}),
|
|
2884
|
-
...(input.requiredProperties
|
|
2885
|
-
input.requiredProperties !== null && {
|
|
2873
|
+
...(input.requiredProperties != null && {
|
|
2886
2874
|
requiredProperties: serializeAws_restJson1RequiredProperties(input.requiredProperties, context),
|
|
2887
2875
|
}),
|
|
2888
|
-
...(input.scope
|
|
2876
|
+
...(input.scope != null && { scope: input.scope }),
|
|
2889
2877
|
};
|
|
2890
2878
|
};
|
|
2891
2879
|
const serializeAws_restJson1FunctionsRequest = (input, context) => {
|
|
@@ -2901,15 +2889,13 @@ const serializeAws_restJson1FunctionsRequest = (input, context) => {
|
|
|
2901
2889
|
};
|
|
2902
2890
|
const serializeAws_restJson1InterpolationParameters = (input, context) => {
|
|
2903
2891
|
return {
|
|
2904
|
-
...(input.interpolationType
|
|
2905
|
-
|
|
2906
|
-
...(input.intervalInSeconds !== undefined &&
|
|
2907
|
-
input.intervalInSeconds !== null && { intervalInSeconds: input.intervalInSeconds }),
|
|
2892
|
+
...(input.interpolationType != null && { interpolationType: input.interpolationType }),
|
|
2893
|
+
...(input.intervalInSeconds != null && { intervalInSeconds: input.intervalInSeconds }),
|
|
2908
2894
|
};
|
|
2909
2895
|
};
|
|
2910
2896
|
const serializeAws_restJson1LambdaFunction = (input, context) => {
|
|
2911
2897
|
return {
|
|
2912
|
-
...(input.arn
|
|
2898
|
+
...(input.arn != null && { arn: input.arn }),
|
|
2913
2899
|
};
|
|
2914
2900
|
};
|
|
2915
2901
|
const serializeAws_restJson1ListComponentTypesFilter = (input, context) => {
|
|
@@ -2950,27 +2936,21 @@ const serializeAws_restJson1ListEntitiesFilters = (input, context) => {
|
|
|
2950
2936
|
};
|
|
2951
2937
|
const serializeAws_restJson1ParentEntityUpdateRequest = (input, context) => {
|
|
2952
2938
|
return {
|
|
2953
|
-
...(input.parentEntityId
|
|
2954
|
-
|
|
2955
|
-
...(input.updateType !== undefined && input.updateType !== null && { updateType: input.updateType }),
|
|
2939
|
+
...(input.parentEntityId != null && { parentEntityId: input.parentEntityId }),
|
|
2940
|
+
...(input.updateType != null && { updateType: input.updateType }),
|
|
2956
2941
|
};
|
|
2957
2942
|
};
|
|
2958
2943
|
const serializeAws_restJson1PropertyDefinitionRequest = (input, context) => {
|
|
2959
2944
|
return {
|
|
2960
|
-
...(input.configuration
|
|
2961
|
-
input.configuration !== null && {
|
|
2945
|
+
...(input.configuration != null && {
|
|
2962
2946
|
configuration: serializeAws_restJson1Configuration(input.configuration, context),
|
|
2963
2947
|
}),
|
|
2964
|
-
...(input.dataType
|
|
2965
|
-
|
|
2966
|
-
...(input.
|
|
2967
|
-
|
|
2968
|
-
...(input.
|
|
2969
|
-
...(input.
|
|
2970
|
-
input.isRequiredInEntity !== null && { isRequiredInEntity: input.isRequiredInEntity }),
|
|
2971
|
-
...(input.isStoredExternally !== undefined &&
|
|
2972
|
-
input.isStoredExternally !== null && { isStoredExternally: input.isStoredExternally }),
|
|
2973
|
-
...(input.isTimeSeries !== undefined && input.isTimeSeries !== null && { isTimeSeries: input.isTimeSeries }),
|
|
2948
|
+
...(input.dataType != null && { dataType: serializeAws_restJson1DataType(input.dataType, context) }),
|
|
2949
|
+
...(input.defaultValue != null && { defaultValue: serializeAws_restJson1DataValue(input.defaultValue, context) }),
|
|
2950
|
+
...(input.isExternalId != null && { isExternalId: input.isExternalId }),
|
|
2951
|
+
...(input.isRequiredInEntity != null && { isRequiredInEntity: input.isRequiredInEntity }),
|
|
2952
|
+
...(input.isStoredExternally != null && { isStoredExternally: input.isStoredExternally }),
|
|
2953
|
+
...(input.isTimeSeries != null && { isTimeSeries: input.isTimeSeries }),
|
|
2974
2954
|
};
|
|
2975
2955
|
};
|
|
2976
2956
|
const serializeAws_restJson1PropertyDefinitionsRequest = (input, context) => {
|
|
@@ -2986,10 +2966,9 @@ const serializeAws_restJson1PropertyDefinitionsRequest = (input, context) => {
|
|
|
2986
2966
|
};
|
|
2987
2967
|
const serializeAws_restJson1PropertyFilter = (input, context) => {
|
|
2988
2968
|
return {
|
|
2989
|
-
...(input.operator
|
|
2990
|
-
...(input.propertyName
|
|
2991
|
-
...(input.value
|
|
2992
|
-
input.value !== null && { value: serializeAws_restJson1DataValue(input.value, context) }),
|
|
2969
|
+
...(input.operator != null && { operator: input.operator }),
|
|
2970
|
+
...(input.propertyName != null && { propertyName: input.propertyName }),
|
|
2971
|
+
...(input.value != null && { value: serializeAws_restJson1DataValue(input.value, context) }),
|
|
2993
2972
|
};
|
|
2994
2973
|
};
|
|
2995
2974
|
const serializeAws_restJson1PropertyFilters = (input, context) => {
|
|
@@ -3004,13 +2983,11 @@ const serializeAws_restJson1PropertyFilters = (input, context) => {
|
|
|
3004
2983
|
};
|
|
3005
2984
|
const serializeAws_restJson1PropertyRequest = (input, context) => {
|
|
3006
2985
|
return {
|
|
3007
|
-
...(input.definition
|
|
3008
|
-
input.definition !== null && {
|
|
2986
|
+
...(input.definition != null && {
|
|
3009
2987
|
definition: serializeAws_restJson1PropertyDefinitionRequest(input.definition, context),
|
|
3010
2988
|
}),
|
|
3011
|
-
...(input.updateType
|
|
3012
|
-
...(input.value
|
|
3013
|
-
input.value !== null && { value: serializeAws_restJson1DataValue(input.value, context) }),
|
|
2989
|
+
...(input.updateType != null && { updateType: input.updateType }),
|
|
2990
|
+
...(input.value != null && { value: serializeAws_restJson1DataValue(input.value, context) }),
|
|
3014
2991
|
};
|
|
3015
2992
|
};
|
|
3016
2993
|
const serializeAws_restJson1PropertyRequests = (input, context) => {
|
|
@@ -3026,21 +3003,17 @@ const serializeAws_restJson1PropertyRequests = (input, context) => {
|
|
|
3026
3003
|
};
|
|
3027
3004
|
const serializeAws_restJson1PropertyValue = (input, context) => {
|
|
3028
3005
|
return {
|
|
3029
|
-
...(input.time
|
|
3030
|
-
...(input.timestamp
|
|
3031
|
-
|
|
3032
|
-
...(input.value !== undefined &&
|
|
3033
|
-
input.value !== null && { value: serializeAws_restJson1DataValue(input.value, context) }),
|
|
3006
|
+
...(input.time != null && { time: input.time }),
|
|
3007
|
+
...(input.timestamp != null && { timestamp: Math.round(input.timestamp.getTime() / 1000) }),
|
|
3008
|
+
...(input.value != null && { value: serializeAws_restJson1DataValue(input.value, context) }),
|
|
3034
3009
|
};
|
|
3035
3010
|
};
|
|
3036
3011
|
const serializeAws_restJson1PropertyValueEntry = (input, context) => {
|
|
3037
3012
|
return {
|
|
3038
|
-
...(input.entityPropertyReference
|
|
3039
|
-
input.entityPropertyReference !== null && {
|
|
3013
|
+
...(input.entityPropertyReference != null && {
|
|
3040
3014
|
entityPropertyReference: serializeAws_restJson1EntityPropertyReference(input.entityPropertyReference, context),
|
|
3041
3015
|
}),
|
|
3042
|
-
...(input.propertyValues
|
|
3043
|
-
input.propertyValues !== null && {
|
|
3016
|
+
...(input.propertyValues != null && {
|
|
3044
3017
|
propertyValues: serializeAws_restJson1PropertyValues(input.propertyValues, context),
|
|
3045
3018
|
}),
|
|
3046
3019
|
};
|
|
@@ -3057,18 +3030,14 @@ const serializeAws_restJson1PropertyValues = (input, context) => {
|
|
|
3057
3030
|
};
|
|
3058
3031
|
const serializeAws_restJson1Relationship = (input, context) => {
|
|
3059
3032
|
return {
|
|
3060
|
-
...(input.relationshipType
|
|
3061
|
-
|
|
3062
|
-
...(input.targetComponentTypeId !== undefined &&
|
|
3063
|
-
input.targetComponentTypeId !== null && { targetComponentTypeId: input.targetComponentTypeId }),
|
|
3033
|
+
...(input.relationshipType != null && { relationshipType: input.relationshipType }),
|
|
3034
|
+
...(input.targetComponentTypeId != null && { targetComponentTypeId: input.targetComponentTypeId }),
|
|
3064
3035
|
};
|
|
3065
3036
|
};
|
|
3066
3037
|
const serializeAws_restJson1RelationshipValue = (input, context) => {
|
|
3067
3038
|
return {
|
|
3068
|
-
...(input.targetComponentName
|
|
3069
|
-
|
|
3070
|
-
...(input.targetEntityId !== undefined &&
|
|
3071
|
-
input.targetEntityId !== null && { targetEntityId: input.targetEntityId }),
|
|
3039
|
+
...(input.targetComponentName != null && { targetComponentName: input.targetComponentName }),
|
|
3040
|
+
...(input.targetEntityId != null && { targetEntityId: input.targetEntityId }),
|
|
3072
3041
|
};
|
|
3073
3042
|
};
|
|
3074
3043
|
const serializeAws_restJson1RequiredProperties = (input, context) => {
|
|
@@ -3114,18 +3083,14 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
3114
3083
|
};
|
|
3115
3084
|
const deserializeAws_restJson1BatchPutPropertyError = (output, context) => {
|
|
3116
3085
|
return {
|
|
3117
|
-
entry: output.entry
|
|
3118
|
-
? deserializeAws_restJson1PropertyValueEntry(output.entry, context)
|
|
3119
|
-
: undefined,
|
|
3086
|
+
entry: output.entry != null ? deserializeAws_restJson1PropertyValueEntry(output.entry, context) : undefined,
|
|
3120
3087
|
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
3121
3088
|
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
3122
3089
|
};
|
|
3123
3090
|
};
|
|
3124
3091
|
const deserializeAws_restJson1BatchPutPropertyErrorEntry = (output, context) => {
|
|
3125
3092
|
return {
|
|
3126
|
-
errors: output.errors
|
|
3127
|
-
? deserializeAws_restJson1Errors(output.errors, context)
|
|
3128
|
-
: undefined,
|
|
3093
|
+
errors: output.errors != null ? deserializeAws_restJson1Errors(output.errors, context) : undefined,
|
|
3129
3094
|
};
|
|
3130
3095
|
};
|
|
3131
3096
|
const deserializeAws_restJson1ComponentResponse = (output, context) => {
|
|
@@ -3134,12 +3099,8 @@ const deserializeAws_restJson1ComponentResponse = (output, context) => {
|
|
|
3134
3099
|
componentTypeId: (0, smithy_client_1.expectString)(output.componentTypeId),
|
|
3135
3100
|
definedIn: (0, smithy_client_1.expectString)(output.definedIn),
|
|
3136
3101
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
3137
|
-
properties: output.properties
|
|
3138
|
-
|
|
3139
|
-
: undefined,
|
|
3140
|
-
status: output.status !== undefined && output.status !== null
|
|
3141
|
-
? deserializeAws_restJson1Status(output.status, context)
|
|
3142
|
-
: undefined,
|
|
3102
|
+
properties: output.properties != null ? deserializeAws_restJson1PropertyResponses(output.properties, context) : undefined,
|
|
3103
|
+
status: output.status != null ? deserializeAws_restJson1Status(output.status, context) : undefined,
|
|
3143
3104
|
};
|
|
3144
3105
|
};
|
|
3145
3106
|
const deserializeAws_restJson1ComponentsMap = (output, context) => {
|
|
@@ -3168,14 +3129,12 @@ const deserializeAws_restJson1ComponentTypeSummary = (output, context) => {
|
|
|
3168
3129
|
return {
|
|
3169
3130
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3170
3131
|
componentTypeId: (0, smithy_client_1.expectString)(output.componentTypeId),
|
|
3171
|
-
creationDateTime: output.creationDateTime
|
|
3132
|
+
creationDateTime: output.creationDateTime != null
|
|
3172
3133
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
|
|
3173
3134
|
: undefined,
|
|
3174
3135
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
3175
|
-
status: output.status
|
|
3176
|
-
|
|
3177
|
-
: undefined,
|
|
3178
|
-
updateDateTime: output.updateDateTime !== undefined && output.updateDateTime !== null
|
|
3136
|
+
status: output.status != null ? deserializeAws_restJson1Status(output.status, context) : undefined,
|
|
3137
|
+
updateDateTime: output.updateDateTime != null
|
|
3179
3138
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDateTime)))
|
|
3180
3139
|
: undefined,
|
|
3181
3140
|
};
|
|
@@ -3194,22 +3153,14 @@ const deserializeAws_restJson1Configuration = (output, context) => {
|
|
|
3194
3153
|
const deserializeAws_restJson1DataConnector = (output, context) => {
|
|
3195
3154
|
return {
|
|
3196
3155
|
isNative: (0, smithy_client_1.expectBoolean)(output.isNative),
|
|
3197
|
-
lambda: output.lambda
|
|
3198
|
-
? deserializeAws_restJson1LambdaFunction(output.lambda, context)
|
|
3199
|
-
: undefined,
|
|
3156
|
+
lambda: output.lambda != null ? deserializeAws_restJson1LambdaFunction(output.lambda, context) : undefined,
|
|
3200
3157
|
};
|
|
3201
3158
|
};
|
|
3202
3159
|
const deserializeAws_restJson1DataType = (output, context) => {
|
|
3203
3160
|
return {
|
|
3204
|
-
allowedValues: output.allowedValues
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
nestedType: output.nestedType !== undefined && output.nestedType !== null
|
|
3208
|
-
? deserializeAws_restJson1DataType(output.nestedType, context)
|
|
3209
|
-
: undefined,
|
|
3210
|
-
relationship: output.relationship !== undefined && output.relationship !== null
|
|
3211
|
-
? deserializeAws_restJson1Relationship(output.relationship, context)
|
|
3212
|
-
: undefined,
|
|
3161
|
+
allowedValues: output.allowedValues != null ? deserializeAws_restJson1DataValueList(output.allowedValues, context) : undefined,
|
|
3162
|
+
nestedType: output.nestedType != null ? deserializeAws_restJson1DataType(output.nestedType, context) : undefined,
|
|
3163
|
+
relationship: output.relationship != null ? deserializeAws_restJson1Relationship(output.relationship, context) : undefined,
|
|
3213
3164
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
3214
3165
|
unitOfMeasure: (0, smithy_client_1.expectString)(output.unitOfMeasure),
|
|
3215
3166
|
};
|
|
@@ -3220,14 +3171,10 @@ const deserializeAws_restJson1DataValue = (output, context) => {
|
|
|
3220
3171
|
doubleValue: (0, smithy_client_1.limitedParseDouble)(output.doubleValue),
|
|
3221
3172
|
expression: (0, smithy_client_1.expectString)(output.expression),
|
|
3222
3173
|
integerValue: (0, smithy_client_1.expectInt32)(output.integerValue),
|
|
3223
|
-
listValue: output.listValue
|
|
3224
|
-
? deserializeAws_restJson1DataValueList(output.listValue, context)
|
|
3225
|
-
: undefined,
|
|
3174
|
+
listValue: output.listValue != null ? deserializeAws_restJson1DataValueList(output.listValue, context) : undefined,
|
|
3226
3175
|
longValue: (0, smithy_client_1.expectLong)(output.longValue),
|
|
3227
|
-
mapValue: output.mapValue
|
|
3228
|
-
|
|
3229
|
-
: undefined,
|
|
3230
|
-
relationshipValue: output.relationshipValue !== undefined && output.relationshipValue !== null
|
|
3176
|
+
mapValue: output.mapValue != null ? deserializeAws_restJson1DataValueMap(output.mapValue, context) : undefined,
|
|
3177
|
+
relationshipValue: output.relationshipValue != null
|
|
3231
3178
|
? deserializeAws_restJson1RelationshipValue(output.relationshipValue, context)
|
|
3232
3179
|
: undefined,
|
|
3233
3180
|
stringValue: (0, smithy_client_1.expectString)(output.stringValue),
|
|
@@ -3259,7 +3206,7 @@ const deserializeAws_restJson1EntityPropertyReference = (output, context) => {
|
|
|
3259
3206
|
return {
|
|
3260
3207
|
componentName: (0, smithy_client_1.expectString)(output.componentName),
|
|
3261
3208
|
entityId: (0, smithy_client_1.expectString)(output.entityId),
|
|
3262
|
-
externalIdProperty: output.externalIdProperty
|
|
3209
|
+
externalIdProperty: output.externalIdProperty != null
|
|
3263
3210
|
? deserializeAws_restJson1ExternalIdProperty(output.externalIdProperty, context)
|
|
3264
3211
|
: undefined,
|
|
3265
3212
|
propertyName: (0, smithy_client_1.expectString)(output.propertyName),
|
|
@@ -3279,7 +3226,7 @@ const deserializeAws_restJson1EntitySummaries = (output, context) => {
|
|
|
3279
3226
|
const deserializeAws_restJson1EntitySummary = (output, context) => {
|
|
3280
3227
|
return {
|
|
3281
3228
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3282
|
-
creationDateTime: output.creationDateTime
|
|
3229
|
+
creationDateTime: output.creationDateTime != null
|
|
3283
3230
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
|
|
3284
3231
|
: undefined,
|
|
3285
3232
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
@@ -3287,10 +3234,8 @@ const deserializeAws_restJson1EntitySummary = (output, context) => {
|
|
|
3287
3234
|
entityName: (0, smithy_client_1.expectString)(output.entityName),
|
|
3288
3235
|
hasChildEntities: (0, smithy_client_1.expectBoolean)(output.hasChildEntities),
|
|
3289
3236
|
parentEntityId: (0, smithy_client_1.expectString)(output.parentEntityId),
|
|
3290
|
-
status: output.status
|
|
3291
|
-
|
|
3292
|
-
: undefined,
|
|
3293
|
-
updateDateTime: output.updateDateTime !== undefined && output.updateDateTime !== null
|
|
3237
|
+
status: output.status != null ? deserializeAws_restJson1Status(output.status, context) : undefined,
|
|
3238
|
+
updateDateTime: output.updateDateTime != null
|
|
3294
3239
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDateTime)))
|
|
3295
3240
|
: undefined,
|
|
3296
3241
|
};
|
|
@@ -3347,11 +3292,9 @@ const deserializeAws_restJson1ExternalIdProperty = (output, context) => {
|
|
|
3347
3292
|
};
|
|
3348
3293
|
const deserializeAws_restJson1FunctionResponse = (output, context) => {
|
|
3349
3294
|
return {
|
|
3350
|
-
implementedBy: output.implementedBy
|
|
3351
|
-
? deserializeAws_restJson1DataConnector(output.implementedBy, context)
|
|
3352
|
-
: undefined,
|
|
3295
|
+
implementedBy: output.implementedBy != null ? deserializeAws_restJson1DataConnector(output.implementedBy, context) : undefined,
|
|
3353
3296
|
isInherited: (0, smithy_client_1.expectBoolean)(output.isInherited),
|
|
3354
|
-
requiredProperties: output.requiredProperties
|
|
3297
|
+
requiredProperties: output.requiredProperties != null
|
|
3355
3298
|
? deserializeAws_restJson1RequiredProperties(output.requiredProperties, context)
|
|
3356
3299
|
: undefined,
|
|
3357
3300
|
scope: (0, smithy_client_1.expectString)(output.scope),
|
|
@@ -3375,15 +3318,9 @@ const deserializeAws_restJson1LambdaFunction = (output, context) => {
|
|
|
3375
3318
|
};
|
|
3376
3319
|
const deserializeAws_restJson1PropertyDefinitionResponse = (output, context) => {
|
|
3377
3320
|
return {
|
|
3378
|
-
configuration: output.configuration
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
dataType: output.dataType !== undefined && output.dataType !== null
|
|
3382
|
-
? deserializeAws_restJson1DataType(output.dataType, context)
|
|
3383
|
-
: undefined,
|
|
3384
|
-
defaultValue: output.defaultValue !== undefined && output.defaultValue !== null
|
|
3385
|
-
? deserializeAws_restJson1DataValue(output.defaultValue, context)
|
|
3386
|
-
: undefined,
|
|
3321
|
+
configuration: output.configuration != null ? deserializeAws_restJson1Configuration(output.configuration, context) : undefined,
|
|
3322
|
+
dataType: output.dataType != null ? deserializeAws_restJson1DataType(output.dataType, context) : undefined,
|
|
3323
|
+
defaultValue: output.defaultValue != null ? deserializeAws_restJson1DataValue(output.defaultValue, context) : undefined,
|
|
3387
3324
|
isExternalId: (0, smithy_client_1.expectBoolean)(output.isExternalId),
|
|
3388
3325
|
isFinal: (0, smithy_client_1.expectBoolean)(output.isFinal),
|
|
3389
3326
|
isImported: (0, smithy_client_1.expectBoolean)(output.isImported),
|
|
@@ -3406,12 +3343,10 @@ const deserializeAws_restJson1PropertyDefinitionsResponse = (output, context) =>
|
|
|
3406
3343
|
};
|
|
3407
3344
|
const deserializeAws_restJson1PropertyLatestValue = (output, context) => {
|
|
3408
3345
|
return {
|
|
3409
|
-
propertyReference: output.propertyReference
|
|
3346
|
+
propertyReference: output.propertyReference != null
|
|
3410
3347
|
? deserializeAws_restJson1EntityPropertyReference(output.propertyReference, context)
|
|
3411
3348
|
: undefined,
|
|
3412
|
-
propertyValue: output.propertyValue
|
|
3413
|
-
? deserializeAws_restJson1DataValue(output.propertyValue, context)
|
|
3414
|
-
: undefined,
|
|
3349
|
+
propertyValue: output.propertyValue != null ? deserializeAws_restJson1DataValue(output.propertyValue, context) : undefined,
|
|
3415
3350
|
};
|
|
3416
3351
|
};
|
|
3417
3352
|
const deserializeAws_restJson1PropertyLatestValueMap = (output, context) => {
|
|
@@ -3427,12 +3362,10 @@ const deserializeAws_restJson1PropertyLatestValueMap = (output, context) => {
|
|
|
3427
3362
|
};
|
|
3428
3363
|
const deserializeAws_restJson1PropertyResponse = (output, context) => {
|
|
3429
3364
|
return {
|
|
3430
|
-
definition: output.definition
|
|
3365
|
+
definition: output.definition != null
|
|
3431
3366
|
? deserializeAws_restJson1PropertyDefinitionResponse(output.definition, context)
|
|
3432
3367
|
: undefined,
|
|
3433
|
-
value: output.value
|
|
3434
|
-
? deserializeAws_restJson1DataValue(output.value, context)
|
|
3435
|
-
: undefined,
|
|
3368
|
+
value: output.value != null ? deserializeAws_restJson1DataValue(output.value, context) : undefined,
|
|
3436
3369
|
};
|
|
3437
3370
|
};
|
|
3438
3371
|
const deserializeAws_restJson1PropertyResponses = (output, context) => {
|
|
@@ -3449,32 +3382,26 @@ const deserializeAws_restJson1PropertyResponses = (output, context) => {
|
|
|
3449
3382
|
const deserializeAws_restJson1PropertyValue = (output, context) => {
|
|
3450
3383
|
return {
|
|
3451
3384
|
time: (0, smithy_client_1.expectString)(output.time),
|
|
3452
|
-
timestamp: output.timestamp
|
|
3453
|
-
|
|
3454
|
-
: undefined,
|
|
3455
|
-
value: output.value !== undefined && output.value !== null
|
|
3456
|
-
? deserializeAws_restJson1DataValue(output.value, context)
|
|
3457
|
-
: undefined,
|
|
3385
|
+
timestamp: output.timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timestamp))) : undefined,
|
|
3386
|
+
value: output.value != null ? deserializeAws_restJson1DataValue(output.value, context) : undefined,
|
|
3458
3387
|
};
|
|
3459
3388
|
};
|
|
3460
3389
|
const deserializeAws_restJson1PropertyValueEntry = (output, context) => {
|
|
3461
3390
|
return {
|
|
3462
|
-
entityPropertyReference: output.entityPropertyReference
|
|
3391
|
+
entityPropertyReference: output.entityPropertyReference != null
|
|
3463
3392
|
? deserializeAws_restJson1EntityPropertyReference(output.entityPropertyReference, context)
|
|
3464
3393
|
: undefined,
|
|
3465
|
-
propertyValues: output.propertyValues
|
|
3394
|
+
propertyValues: output.propertyValues != null
|
|
3466
3395
|
? deserializeAws_restJson1PropertyValues(output.propertyValues, context)
|
|
3467
3396
|
: undefined,
|
|
3468
3397
|
};
|
|
3469
3398
|
};
|
|
3470
3399
|
const deserializeAws_restJson1PropertyValueHistory = (output, context) => {
|
|
3471
3400
|
return {
|
|
3472
|
-
entityPropertyReference: output.entityPropertyReference
|
|
3401
|
+
entityPropertyReference: output.entityPropertyReference != null
|
|
3473
3402
|
? deserializeAws_restJson1EntityPropertyReference(output.entityPropertyReference, context)
|
|
3474
3403
|
: undefined,
|
|
3475
|
-
values: output.values
|
|
3476
|
-
? deserializeAws_restJson1Values(output.values, context)
|
|
3477
|
-
: undefined,
|
|
3404
|
+
values: output.values != null ? deserializeAws_restJson1Values(output.values, context) : undefined,
|
|
3478
3405
|
};
|
|
3479
3406
|
};
|
|
3480
3407
|
const deserializeAws_restJson1PropertyValueList = (output, context) => {
|
|
@@ -3548,21 +3475,19 @@ const deserializeAws_restJson1SceneSummary = (output, context) => {
|
|
|
3548
3475
|
return {
|
|
3549
3476
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3550
3477
|
contentLocation: (0, smithy_client_1.expectString)(output.contentLocation),
|
|
3551
|
-
creationDateTime: output.creationDateTime
|
|
3478
|
+
creationDateTime: output.creationDateTime != null
|
|
3552
3479
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
|
|
3553
3480
|
: undefined,
|
|
3554
3481
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
3555
3482
|
sceneId: (0, smithy_client_1.expectString)(output.sceneId),
|
|
3556
|
-
updateDateTime: output.updateDateTime
|
|
3483
|
+
updateDateTime: output.updateDateTime != null
|
|
3557
3484
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDateTime)))
|
|
3558
3485
|
: undefined,
|
|
3559
3486
|
};
|
|
3560
3487
|
};
|
|
3561
3488
|
const deserializeAws_restJson1Status = (output, context) => {
|
|
3562
3489
|
return {
|
|
3563
|
-
error: output.error
|
|
3564
|
-
? deserializeAws_restJson1ErrorDetails(output.error, context)
|
|
3565
|
-
: undefined,
|
|
3490
|
+
error: output.error != null ? deserializeAws_restJson1ErrorDetails(output.error, context) : undefined,
|
|
3566
3491
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
3567
3492
|
};
|
|
3568
3493
|
};
|
|
@@ -3602,11 +3527,11 @@ const deserializeAws_restJson1WorkspaceSummaries = (output, context) => {
|
|
|
3602
3527
|
const deserializeAws_restJson1WorkspaceSummary = (output, context) => {
|
|
3603
3528
|
return {
|
|
3604
3529
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3605
|
-
creationDateTime: output.creationDateTime
|
|
3530
|
+
creationDateTime: output.creationDateTime != null
|
|
3606
3531
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
|
|
3607
3532
|
: undefined,
|
|
3608
3533
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
3609
|
-
updateDateTime: output.updateDateTime
|
|
3534
|
+
updateDateTime: output.updateDateTime != null
|
|
3610
3535
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDateTime)))
|
|
3611
3536
|
: undefined,
|
|
3612
3537
|
workspaceId: (0, smithy_client_1.expectString)(output.workspaceId),
|
|
@@ -3661,5 +3586,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3661
3586
|
if (data["__type"] !== undefined) {
|
|
3662
3587
|
return sanitizeErrorCode(data["__type"]);
|
|
3663
3588
|
}
|
|
3664
|
-
return "";
|
|
3665
3589
|
};
|