@aws-sdk/client-iottwinmaker 3.121.0 → 3.130.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.
@@ -25,8 +25,7 @@ export var serializeAws_restJson1BatchPutPropertyValuesCommand = function (input
25
25
  else {
26
26
  throw new Error("No value provided for input HTTP label: workspaceId.");
27
27
  }
28
- body = JSON.stringify(__assign({}, (input.entries !== undefined &&
29
- input.entries !== null && { entries: serializeAws_restJson1Entries(input.entries, context) })));
28
+ body = JSON.stringify(__assign({}, (input.entries != null && { entries: serializeAws_restJson1Entries(input.entries, context) })));
30
29
  return [4, context.endpoint()];
31
30
  case 2:
32
31
  resolvedHostname = (_c.sent()).hostname;
@@ -80,12 +79,9 @@ export var serializeAws_restJson1CreateComponentTypeCommand = function (input, c
80
79
  else {
81
80
  throw new Error("No value provided for input HTTP label: componentTypeId.");
82
81
  }
83
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.extendsFrom !== undefined &&
84
- input.extendsFrom !== null && { extendsFrom: serializeAws_restJson1ExtendsFrom(input.extendsFrom, context) })), (input.functions !== undefined &&
85
- input.functions !== null && { functions: serializeAws_restJson1FunctionsRequest(input.functions, context) })), (input.isSingleton !== undefined && input.isSingleton !== null && { isSingleton: input.isSingleton })), (input.propertyDefinitions !== undefined &&
86
- input.propertyDefinitions !== null && {
82
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.extendsFrom != null && { extendsFrom: serializeAws_restJson1ExtendsFrom(input.extendsFrom, context) })), (input.functions != null && { functions: serializeAws_restJson1FunctionsRequest(input.functions, context) })), (input.isSingleton != null && { isSingleton: input.isSingleton })), (input.propertyDefinitions != null && {
87
83
  propertyDefinitions: serializeAws_restJson1PropertyDefinitionsRequest(input.propertyDefinitions, context),
88
- })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
84
+ })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
89
85
  return [4, context.endpoint()];
90
86
  case 2:
91
87
  resolvedHostname = (_c.sent()).hostname;
@@ -128,11 +124,9 @@ export var serializeAws_restJson1CreateEntityCommand = function (input, context)
128
124
  else {
129
125
  throw new Error("No value provided for input HTTP label: workspaceId.");
130
126
  }
131
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.components !== undefined &&
132
- input.components !== null && {
127
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.components != null && {
133
128
  components: serializeAws_restJson1ComponentsMapRequest(input.components, context),
134
- })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.entityId !== undefined && input.entityId !== null && { entityId: input.entityId })), (input.entityName !== undefined && input.entityName !== null && { entityName: input.entityName })), (input.parentEntityId !== undefined &&
135
- input.parentEntityId !== null && { parentEntityId: input.parentEntityId })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
129
+ })), (input.description != null && { description: input.description })), (input.entityId != null && { entityId: input.entityId })), (input.entityName != null && { entityName: input.entityName })), (input.parentEntityId != null && { parentEntityId: input.parentEntityId })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
136
130
  return [4, context.endpoint()];
137
131
  case 2:
138
132
  resolvedHostname = (_c.sent()).hostname;
@@ -175,11 +169,9 @@ export var serializeAws_restJson1CreateSceneCommand = function (input, context)
175
169
  else {
176
170
  throw new Error("No value provided for input HTTP label: workspaceId.");
177
171
  }
178
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.capabilities !== undefined &&
179
- input.capabilities !== null && {
172
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.capabilities != null && {
180
173
  capabilities: serializeAws_restJson1SceneCapabilities(input.capabilities, context),
181
- })), (input.contentLocation !== undefined &&
182
- input.contentLocation !== null && { contentLocation: input.contentLocation })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.sceneId !== undefined && input.sceneId !== null && { sceneId: input.sceneId })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
174
+ })), (input.contentLocation != null && { contentLocation: input.contentLocation })), (input.description != null && { description: input.description })), (input.sceneId != null && { sceneId: input.sceneId })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
183
175
  return [4, context.endpoint()];
184
176
  case 2:
185
177
  resolvedHostname = (_c.sent()).hostname;
@@ -222,7 +214,7 @@ export var serializeAws_restJson1CreateWorkspaceCommand = function (input, conte
222
214
  else {
223
215
  throw new Error("No value provided for input HTTP label: workspaceId.");
224
216
  }
225
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.role !== undefined && input.role !== null && { role: input.role })), (input.s3Location !== undefined && input.s3Location !== null && { s3Location: input.s3Location })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
217
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.role != null && { role: input.role })), (input.s3Location != null && { s3Location: input.s3Location })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
226
218
  return [4, context.endpoint()];
227
219
  case 2:
228
220
  resolvedHostname = (_c.sent()).hostname;
@@ -563,9 +555,7 @@ export var serializeAws_restJson1GetPropertyValueCommand = function (input, cont
563
555
  else {
564
556
  throw new Error("No value provided for input HTTP label: workspaceId.");
565
557
  }
566
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.componentName !== undefined && input.componentName !== null && { componentName: input.componentName })), (input.componentTypeId !== undefined &&
567
- input.componentTypeId !== null && { componentTypeId: input.componentTypeId })), (input.entityId !== undefined && input.entityId !== null && { entityId: input.entityId })), (input.selectedProperties !== undefined &&
568
- input.selectedProperties !== null && {
558
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.componentName != null && { componentName: input.componentName })), (input.componentTypeId != null && { componentTypeId: input.componentTypeId })), (input.entityId != null && { entityId: input.entityId })), (input.selectedProperties != null && {
569
559
  selectedProperties: serializeAws_restJson1SelectedPropertyList(input.selectedProperties, context),
570
560
  })));
571
561
  return [4, context.endpoint()];
@@ -611,19 +601,13 @@ export var serializeAws_restJson1GetPropertyValueHistoryCommand = function (inpu
611
601
  else {
612
602
  throw new Error("No value provided for input HTTP label: workspaceId.");
613
603
  }
614
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.componentName !== undefined && input.componentName !== null && { componentName: input.componentName })), (input.componentTypeId !== undefined &&
615
- input.componentTypeId !== null && { componentTypeId: input.componentTypeId })), (input.endDateTime !== undefined &&
616
- input.endDateTime !== null && { endDateTime: Math.round(input.endDateTime.getTime() / 1000) })), (input.endTime !== undefined && input.endTime !== null && { endTime: input.endTime })), (input.entityId !== undefined && input.entityId !== null && { entityId: input.entityId })), (input.interpolation !== undefined &&
617
- input.interpolation !== null && {
604
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.componentName != null && { componentName: input.componentName })), (input.componentTypeId != null && { componentTypeId: input.componentTypeId })), (input.endDateTime != null && { endDateTime: Math.round(input.endDateTime.getTime() / 1000) })), (input.endTime != null && { endTime: input.endTime })), (input.entityId != null && { entityId: input.entityId })), (input.interpolation != null && {
618
605
  interpolation: serializeAws_restJson1InterpolationParameters(input.interpolation, context),
619
- })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.orderByTime !== undefined && input.orderByTime !== null && { orderByTime: input.orderByTime })), (input.propertyFilters !== undefined &&
620
- input.propertyFilters !== null && {
606
+ })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.orderByTime != null && { orderByTime: input.orderByTime })), (input.propertyFilters != null && {
621
607
  propertyFilters: serializeAws_restJson1PropertyFilters(input.propertyFilters, context),
622
- })), (input.selectedProperties !== undefined &&
623
- input.selectedProperties !== null && {
608
+ })), (input.selectedProperties != null && {
624
609
  selectedProperties: serializeAws_restJson1SelectedPropertyList(input.selectedProperties, context),
625
- })), (input.startDateTime !== undefined &&
626
- input.startDateTime !== null && { startDateTime: Math.round(input.startDateTime.getTime() / 1000) })), (input.startTime !== undefined && input.startTime !== null && { startTime: input.startTime })));
610
+ })), (input.startDateTime != null && { startDateTime: Math.round(input.startDateTime.getTime() / 1000) })), (input.startTime != null && { startTime: input.startTime })));
627
611
  return [4, context.endpoint()];
628
612
  case 2:
629
613
  resolvedHostname = (_c.sent()).hostname;
@@ -758,8 +742,7 @@ export var serializeAws_restJson1ListComponentTypesCommand = function (input, co
758
742
  else {
759
743
  throw new Error("No value provided for input HTTP label: workspaceId.");
760
744
  }
761
- body = JSON.stringify(__assign(__assign(__assign({}, (input.filters !== undefined &&
762
- input.filters !== null && { filters: serializeAws_restJson1ListComponentTypesFilters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
745
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1ListComponentTypesFilters(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
763
746
  return [4, context.endpoint()];
764
747
  case 2:
765
748
  resolvedHostname = (_c.sent()).hostname;
@@ -802,8 +785,7 @@ export var serializeAws_restJson1ListEntitiesCommand = function (input, context)
802
785
  else {
803
786
  throw new Error("No value provided for input HTTP label: workspaceId.");
804
787
  }
805
- body = JSON.stringify(__assign(__assign(__assign({}, (input.filters !== undefined &&
806
- input.filters !== null && { filters: serializeAws_restJson1ListEntitiesFilters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
788
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1ListEntitiesFilters(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
807
789
  return [4, context.endpoint()];
808
790
  case 2:
809
791
  resolvedHostname = (_c.sent()).hostname;
@@ -846,7 +828,7 @@ export var serializeAws_restJson1ListScenesCommand = function (input, context) {
846
828
  else {
847
829
  throw new Error("No value provided for input HTTP label: workspaceId.");
848
830
  }
849
- body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
831
+ body = JSON.stringify(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
850
832
  return [4, context.endpoint()];
851
833
  case 2:
852
834
  resolvedHostname = (_c.sent()).hostname;
@@ -879,7 +861,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
879
861
  "content-type": "application/json",
880
862
  };
881
863
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags-list";
882
- body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.resourceARN !== undefined && input.resourceARN !== null && { resourceARN: input.resourceARN })));
864
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.resourceARN != null && { resourceARN: input.resourceARN })));
883
865
  return [4, context.endpoint()];
884
866
  case 2:
885
867
  resolvedHostname = (_c.sent()).hostname;
@@ -912,7 +894,7 @@ export var serializeAws_restJson1ListWorkspacesCommand = function (input, contex
912
894
  "content-type": "application/json",
913
895
  };
914
896
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/workspaces-list";
915
- body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
897
+ body = JSON.stringify(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
916
898
  return [4, context.endpoint()];
917
899
  case 2:
918
900
  resolvedHostname = (_c.sent()).hostname;
@@ -945,7 +927,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
945
927
  "content-type": "application/json",
946
928
  };
947
929
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
948
- body = JSON.stringify(__assign(__assign({}, (input.resourceARN !== undefined && input.resourceARN !== null && { resourceARN: input.resourceARN })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
930
+ body = JSON.stringify(__assign(__assign({}, (input.resourceARN != null && { resourceARN: input.resourceARN })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
949
931
  return [4, context.endpoint()];
950
932
  case 2:
951
933
  resolvedHostname = (_c.sent()).hostname;
@@ -1031,10 +1013,7 @@ export var serializeAws_restJson1UpdateComponentTypeCommand = function (input, c
1031
1013
  else {
1032
1014
  throw new Error("No value provided for input HTTP label: componentTypeId.");
1033
1015
  }
1034
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.extendsFrom !== undefined &&
1035
- input.extendsFrom !== null && { extendsFrom: serializeAws_restJson1ExtendsFrom(input.extendsFrom, context) })), (input.functions !== undefined &&
1036
- input.functions !== null && { functions: serializeAws_restJson1FunctionsRequest(input.functions, context) })), (input.isSingleton !== undefined && input.isSingleton !== null && { isSingleton: input.isSingleton })), (input.propertyDefinitions !== undefined &&
1037
- input.propertyDefinitions !== null && {
1016
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.extendsFrom != null && { extendsFrom: serializeAws_restJson1ExtendsFrom(input.extendsFrom, context) })), (input.functions != null && { functions: serializeAws_restJson1FunctionsRequest(input.functions, context) })), (input.isSingleton != null && { isSingleton: input.isSingleton })), (input.propertyDefinitions != null && {
1038
1017
  propertyDefinitions: serializeAws_restJson1PropertyDefinitionsRequest(input.propertyDefinitions, context),
1039
1018
  })));
1040
1019
  return [4, context.endpoint()];
@@ -1090,11 +1069,9 @@ export var serializeAws_restJson1UpdateEntityCommand = function (input, context)
1090
1069
  else {
1091
1070
  throw new Error("No value provided for input HTTP label: entityId.");
1092
1071
  }
1093
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.componentUpdates !== undefined &&
1094
- input.componentUpdates !== null && {
1072
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.componentUpdates != null && {
1095
1073
  componentUpdates: serializeAws_restJson1ComponentUpdatesMapRequest(input.componentUpdates, context),
1096
- })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.entityName !== undefined && input.entityName !== null && { entityName: input.entityName })), (input.parentEntityUpdate !== undefined &&
1097
- input.parentEntityUpdate !== null && {
1074
+ })), (input.description != null && { description: input.description })), (input.entityName != null && { entityName: input.entityName })), (input.parentEntityUpdate != null && {
1098
1075
  parentEntityUpdate: serializeAws_restJson1ParentEntityUpdateRequest(input.parentEntityUpdate, context),
1099
1076
  })));
1100
1077
  return [4, context.endpoint()];
@@ -1150,11 +1127,9 @@ export var serializeAws_restJson1UpdateSceneCommand = function (input, context)
1150
1127
  else {
1151
1128
  throw new Error("No value provided for input HTTP label: sceneId.");
1152
1129
  }
1153
- body = JSON.stringify(__assign(__assign(__assign({}, (input.capabilities !== undefined &&
1154
- input.capabilities !== null && {
1130
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.capabilities != null && {
1155
1131
  capabilities: serializeAws_restJson1SceneCapabilities(input.capabilities, context),
1156
- })), (input.contentLocation !== undefined &&
1157
- input.contentLocation !== null && { contentLocation: input.contentLocation })), (input.description !== undefined && input.description !== null && { description: input.description })));
1132
+ })), (input.contentLocation != null && { contentLocation: input.contentLocation })), (input.description != null && { description: input.description })));
1158
1133
  return [4, context.endpoint()];
1159
1134
  case 2:
1160
1135
  resolvedHostname = (_c.sent()).hostname;
@@ -1197,7 +1172,7 @@ export var serializeAws_restJson1UpdateWorkspaceCommand = function (input, conte
1197
1172
  else {
1198
1173
  throw new Error("No value provided for input HTTP label: workspaceId.");
1199
1174
  }
1200
- body = JSON.stringify(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.role !== undefined && input.role !== null && { role: input.role })));
1175
+ body = JSON.stringify(__assign(__assign({}, (input.description != null && { description: input.description })), (input.role != null && { role: input.role })));
1201
1176
  return [4, context.endpoint()];
1202
1177
  case 2:
1203
1178
  resolvedHostname = (_c.sent()).hostname;
@@ -3422,9 +3397,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
3422
3397
  });
3423
3398
  }); };
3424
3399
  var serializeAws_restJson1ComponentRequest = function (input, context) {
3425
- return __assign(__assign(__assign({}, (input.componentTypeId !== undefined &&
3426
- input.componentTypeId !== null && { componentTypeId: input.componentTypeId })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.properties !== undefined &&
3427
- input.properties !== null && { properties: serializeAws_restJson1PropertyRequests(input.properties, context) }));
3400
+ return __assign(__assign(__assign({}, (input.componentTypeId != null && { componentTypeId: input.componentTypeId })), (input.description != null && { description: input.description })), (input.properties != null && { properties: serializeAws_restJson1PropertyRequests(input.properties, context) }));
3428
3401
  };
3429
3402
  var serializeAws_restJson1ComponentsMapRequest = function (input, context) {
3430
3403
  return Object.entries(input).reduce(function (acc, _a) {
@@ -3437,11 +3410,9 @@ var serializeAws_restJson1ComponentsMapRequest = function (input, context) {
3437
3410
  }, {});
3438
3411
  };
3439
3412
  var serializeAws_restJson1ComponentUpdateRequest = function (input, context) {
3440
- return __assign(__assign(__assign(__assign({}, (input.componentTypeId !== undefined &&
3441
- input.componentTypeId !== null && { componentTypeId: input.componentTypeId })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.propertyUpdates !== undefined &&
3442
- input.propertyUpdates !== null && {
3413
+ return __assign(__assign(__assign(__assign({}, (input.componentTypeId != null && { componentTypeId: input.componentTypeId })), (input.description != null && { description: input.description })), (input.propertyUpdates != null && {
3443
3414
  propertyUpdates: serializeAws_restJson1PropertyRequests(input.propertyUpdates, context),
3444
- })), (input.updateType !== undefined && input.updateType !== null && { updateType: input.updateType }));
3415
+ })), (input.updateType != null && { updateType: input.updateType }));
3445
3416
  };
3446
3417
  var serializeAws_restJson1ComponentUpdatesMapRequest = function (input, context) {
3447
3418
  return Object.entries(input).reduce(function (acc, _a) {
@@ -3464,25 +3435,19 @@ var serializeAws_restJson1Configuration = function (input, context) {
3464
3435
  }, {});
3465
3436
  };
3466
3437
  var serializeAws_restJson1DataConnector = function (input, context) {
3467
- return __assign(__assign({}, (input.isNative !== undefined && input.isNative !== null && { isNative: input.isNative })), (input.lambda !== undefined &&
3468
- input.lambda !== null && { lambda: serializeAws_restJson1LambdaFunction(input.lambda, context) }));
3438
+ return __assign(__assign({}, (input.isNative != null && { isNative: input.isNative })), (input.lambda != null && { lambda: serializeAws_restJson1LambdaFunction(input.lambda, context) }));
3469
3439
  };
3470
3440
  var serializeAws_restJson1DataType = function (input, context) {
3471
- return __assign(__assign(__assign(__assign(__assign({}, (input.allowedValues !== undefined &&
3472
- input.allowedValues !== null && {
3441
+ return __assign(__assign(__assign(__assign(__assign({}, (input.allowedValues != null && {
3473
3442
  allowedValues: serializeAws_restJson1DataValueList(input.allowedValues, context),
3474
- })), (input.nestedType !== undefined &&
3475
- input.nestedType !== null && { nestedType: serializeAws_restJson1DataType(input.nestedType, context) })), (input.relationship !== undefined &&
3476
- input.relationship !== null && { relationship: serializeAws_restJson1Relationship(input.relationship, context) })), (input.type !== undefined && input.type !== null && { type: input.type })), (input.unitOfMeasure !== undefined && input.unitOfMeasure !== null && { unitOfMeasure: input.unitOfMeasure }));
3443
+ })), (input.nestedType != null && { nestedType: serializeAws_restJson1DataType(input.nestedType, context) })), (input.relationship != null && {
3444
+ relationship: serializeAws_restJson1Relationship(input.relationship, context),
3445
+ })), (input.type != null && { type: input.type })), (input.unitOfMeasure != null && { unitOfMeasure: input.unitOfMeasure }));
3477
3446
  };
3478
3447
  var serializeAws_restJson1DataValue = function (input, context) {
3479
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.booleanValue !== undefined && input.booleanValue !== null && { booleanValue: input.booleanValue })), (input.doubleValue !== undefined &&
3480
- input.doubleValue !== null && { doubleValue: __serializeFloat(input.doubleValue) })), (input.expression !== undefined && input.expression !== null && { expression: input.expression })), (input.integerValue !== undefined && input.integerValue !== null && { integerValue: input.integerValue })), (input.listValue !== undefined &&
3481
- input.listValue !== null && { listValue: serializeAws_restJson1DataValueList(input.listValue, context) })), (input.longValue !== undefined && input.longValue !== null && { longValue: input.longValue })), (input.mapValue !== undefined &&
3482
- input.mapValue !== null && { mapValue: serializeAws_restJson1DataValueMap(input.mapValue, context) })), (input.relationshipValue !== undefined &&
3483
- input.relationshipValue !== null && {
3448
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.booleanValue != null && { booleanValue: input.booleanValue })), (input.doubleValue != null && { doubleValue: __serializeFloat(input.doubleValue) })), (input.expression != null && { expression: input.expression })), (input.integerValue != null && { integerValue: input.integerValue })), (input.listValue != null && { listValue: serializeAws_restJson1DataValueList(input.listValue, context) })), (input.longValue != null && { longValue: input.longValue })), (input.mapValue != null && { mapValue: serializeAws_restJson1DataValueMap(input.mapValue, context) })), (input.relationshipValue != null && {
3484
3449
  relationshipValue: serializeAws_restJson1RelationshipValue(input.relationshipValue, context),
3485
- })), (input.stringValue !== undefined && input.stringValue !== null && { stringValue: input.stringValue }));
3450
+ })), (input.stringValue != null && { stringValue: input.stringValue }));
3486
3451
  };
3487
3452
  var serializeAws_restJson1DataValueList = function (input, context) {
3488
3453
  return input
@@ -3505,10 +3470,9 @@ var serializeAws_restJson1DataValueMap = function (input, context) {
3505
3470
  }, {});
3506
3471
  };
3507
3472
  var serializeAws_restJson1EntityPropertyReference = function (input, context) {
3508
- return __assign(__assign(__assign(__assign({}, (input.componentName !== undefined && input.componentName !== null && { componentName: input.componentName })), (input.entityId !== undefined && input.entityId !== null && { entityId: input.entityId })), (input.externalIdProperty !== undefined &&
3509
- input.externalIdProperty !== null && {
3473
+ return __assign(__assign(__assign(__assign({}, (input.componentName != null && { componentName: input.componentName })), (input.entityId != null && { entityId: input.entityId })), (input.externalIdProperty != null && {
3510
3474
  externalIdProperty: serializeAws_restJson1ExternalIdProperty(input.externalIdProperty, context),
3511
- })), (input.propertyName !== undefined && input.propertyName !== null && { propertyName: input.propertyName }));
3475
+ })), (input.propertyName != null && { propertyName: input.propertyName }));
3512
3476
  };
3513
3477
  var serializeAws_restJson1Entries = function (input, context) {
3514
3478
  return input
@@ -3541,13 +3505,11 @@ var serializeAws_restJson1ExternalIdProperty = function (input, context) {
3541
3505
  }, {});
3542
3506
  };
3543
3507
  var serializeAws_restJson1FunctionRequest = function (input, context) {
3544
- return __assign(__assign(__assign({}, (input.implementedBy !== undefined &&
3545
- input.implementedBy !== null && {
3508
+ return __assign(__assign(__assign({}, (input.implementedBy != null && {
3546
3509
  implementedBy: serializeAws_restJson1DataConnector(input.implementedBy, context),
3547
- })), (input.requiredProperties !== undefined &&
3548
- input.requiredProperties !== null && {
3510
+ })), (input.requiredProperties != null && {
3549
3511
  requiredProperties: serializeAws_restJson1RequiredProperties(input.requiredProperties, context),
3550
- })), (input.scope !== undefined && input.scope !== null && { scope: input.scope }));
3512
+ })), (input.scope != null && { scope: input.scope }));
3551
3513
  };
3552
3514
  var serializeAws_restJson1FunctionsRequest = function (input, context) {
3553
3515
  return Object.entries(input).reduce(function (acc, _a) {
@@ -3560,12 +3522,10 @@ var serializeAws_restJson1FunctionsRequest = function (input, context) {
3560
3522
  }, {});
3561
3523
  };
3562
3524
  var serializeAws_restJson1InterpolationParameters = function (input, context) {
3563
- return __assign(__assign({}, (input.interpolationType !== undefined &&
3564
- input.interpolationType !== null && { interpolationType: input.interpolationType })), (input.intervalInSeconds !== undefined &&
3565
- input.intervalInSeconds !== null && { intervalInSeconds: input.intervalInSeconds }));
3525
+ return __assign(__assign({}, (input.interpolationType != null && { interpolationType: input.interpolationType })), (input.intervalInSeconds != null && { intervalInSeconds: input.intervalInSeconds }));
3566
3526
  };
3567
3527
  var serializeAws_restJson1LambdaFunction = function (input, context) {
3568
- return __assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn }));
3528
+ return __assign({}, (input.arn != null && { arn: input.arn }));
3569
3529
  };
3570
3530
  var serializeAws_restJson1ListComponentTypesFilter = function (input, context) {
3571
3531
  return ListComponentTypesFilter.visit(input, {
@@ -3604,18 +3564,12 @@ var serializeAws_restJson1ListEntitiesFilters = function (input, context) {
3604
3564
  });
3605
3565
  };
3606
3566
  var serializeAws_restJson1ParentEntityUpdateRequest = function (input, context) {
3607
- return __assign(__assign({}, (input.parentEntityId !== undefined &&
3608
- input.parentEntityId !== null && { parentEntityId: input.parentEntityId })), (input.updateType !== undefined && input.updateType !== null && { updateType: input.updateType }));
3567
+ return __assign(__assign({}, (input.parentEntityId != null && { parentEntityId: input.parentEntityId })), (input.updateType != null && { updateType: input.updateType }));
3609
3568
  };
3610
3569
  var serializeAws_restJson1PropertyDefinitionRequest = function (input, context) {
3611
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.configuration !== undefined &&
3612
- input.configuration !== null && {
3570
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.configuration != null && {
3613
3571
  configuration: serializeAws_restJson1Configuration(input.configuration, context),
3614
- })), (input.dataType !== undefined &&
3615
- input.dataType !== null && { dataType: serializeAws_restJson1DataType(input.dataType, context) })), (input.defaultValue !== undefined &&
3616
- input.defaultValue !== null && { defaultValue: serializeAws_restJson1DataValue(input.defaultValue, context) })), (input.isExternalId !== undefined && input.isExternalId !== null && { isExternalId: input.isExternalId })), (input.isRequiredInEntity !== undefined &&
3617
- input.isRequiredInEntity !== null && { isRequiredInEntity: input.isRequiredInEntity })), (input.isStoredExternally !== undefined &&
3618
- input.isStoredExternally !== null && { isStoredExternally: input.isStoredExternally })), (input.isTimeSeries !== undefined && input.isTimeSeries !== null && { isTimeSeries: input.isTimeSeries }));
3572
+ })), (input.dataType != null && { dataType: serializeAws_restJson1DataType(input.dataType, context) })), (input.defaultValue != null && { defaultValue: serializeAws_restJson1DataValue(input.defaultValue, context) })), (input.isExternalId != null && { isExternalId: input.isExternalId })), (input.isRequiredInEntity != null && { isRequiredInEntity: input.isRequiredInEntity })), (input.isStoredExternally != null && { isStoredExternally: input.isStoredExternally })), (input.isTimeSeries != null && { isTimeSeries: input.isTimeSeries }));
3619
3573
  };
3620
3574
  var serializeAws_restJson1PropertyDefinitionsRequest = function (input, context) {
3621
3575
  return Object.entries(input).reduce(function (acc, _a) {
@@ -3628,8 +3582,7 @@ var serializeAws_restJson1PropertyDefinitionsRequest = function (input, context)
3628
3582
  }, {});
3629
3583
  };
3630
3584
  var serializeAws_restJson1PropertyFilter = function (input, context) {
3631
- return __assign(__assign(__assign({}, (input.operator !== undefined && input.operator !== null && { operator: input.operator })), (input.propertyName !== undefined && input.propertyName !== null && { propertyName: input.propertyName })), (input.value !== undefined &&
3632
- input.value !== null && { value: serializeAws_restJson1DataValue(input.value, context) }));
3585
+ return __assign(__assign(__assign({}, (input.operator != null && { operator: input.operator })), (input.propertyName != null && { propertyName: input.propertyName })), (input.value != null && { value: serializeAws_restJson1DataValue(input.value, context) }));
3633
3586
  };
3634
3587
  var serializeAws_restJson1PropertyFilters = function (input, context) {
3635
3588
  return input
@@ -3642,11 +3595,9 @@ var serializeAws_restJson1PropertyFilters = function (input, context) {
3642
3595
  });
3643
3596
  };
3644
3597
  var serializeAws_restJson1PropertyRequest = function (input, context) {
3645
- return __assign(__assign(__assign({}, (input.definition !== undefined &&
3646
- input.definition !== null && {
3598
+ return __assign(__assign(__assign({}, (input.definition != null && {
3647
3599
  definition: serializeAws_restJson1PropertyDefinitionRequest(input.definition, context),
3648
- })), (input.updateType !== undefined && input.updateType !== null && { updateType: input.updateType })), (input.value !== undefined &&
3649
- input.value !== null && { value: serializeAws_restJson1DataValue(input.value, context) }));
3600
+ })), (input.updateType != null && { updateType: input.updateType })), (input.value != null && { value: serializeAws_restJson1DataValue(input.value, context) }));
3650
3601
  };
3651
3602
  var serializeAws_restJson1PropertyRequests = function (input, context) {
3652
3603
  return Object.entries(input).reduce(function (acc, _a) {
@@ -3659,16 +3610,12 @@ var serializeAws_restJson1PropertyRequests = function (input, context) {
3659
3610
  }, {});
3660
3611
  };
3661
3612
  var serializeAws_restJson1PropertyValue = function (input, context) {
3662
- return __assign(__assign(__assign({}, (input.time !== undefined && input.time !== null && { time: input.time })), (input.timestamp !== undefined &&
3663
- input.timestamp !== null && { timestamp: Math.round(input.timestamp.getTime() / 1000) })), (input.value !== undefined &&
3664
- input.value !== null && { value: serializeAws_restJson1DataValue(input.value, context) }));
3613
+ return __assign(__assign(__assign({}, (input.time != null && { time: input.time })), (input.timestamp != null && { timestamp: Math.round(input.timestamp.getTime() / 1000) })), (input.value != null && { value: serializeAws_restJson1DataValue(input.value, context) }));
3665
3614
  };
3666
3615
  var serializeAws_restJson1PropertyValueEntry = function (input, context) {
3667
- return __assign(__assign({}, (input.entityPropertyReference !== undefined &&
3668
- input.entityPropertyReference !== null && {
3616
+ return __assign(__assign({}, (input.entityPropertyReference != null && {
3669
3617
  entityPropertyReference: serializeAws_restJson1EntityPropertyReference(input.entityPropertyReference, context),
3670
- })), (input.propertyValues !== undefined &&
3671
- input.propertyValues !== null && {
3618
+ })), (input.propertyValues != null && {
3672
3619
  propertyValues: serializeAws_restJson1PropertyValues(input.propertyValues, context),
3673
3620
  }));
3674
3621
  };
@@ -3683,14 +3630,10 @@ var serializeAws_restJson1PropertyValues = function (input, context) {
3683
3630
  });
3684
3631
  };
3685
3632
  var serializeAws_restJson1Relationship = function (input, context) {
3686
- return __assign(__assign({}, (input.relationshipType !== undefined &&
3687
- input.relationshipType !== null && { relationshipType: input.relationshipType })), (input.targetComponentTypeId !== undefined &&
3688
- input.targetComponentTypeId !== null && { targetComponentTypeId: input.targetComponentTypeId }));
3633
+ return __assign(__assign({}, (input.relationshipType != null && { relationshipType: input.relationshipType })), (input.targetComponentTypeId != null && { targetComponentTypeId: input.targetComponentTypeId }));
3689
3634
  };
3690
3635
  var serializeAws_restJson1RelationshipValue = function (input, context) {
3691
- return __assign(__assign({}, (input.targetComponentName !== undefined &&
3692
- input.targetComponentName !== null && { targetComponentName: input.targetComponentName })), (input.targetEntityId !== undefined &&
3693
- input.targetEntityId !== null && { targetEntityId: input.targetEntityId }));
3636
+ return __assign(__assign({}, (input.targetComponentName != null && { targetComponentName: input.targetComponentName })), (input.targetEntityId != null && { targetEntityId: input.targetEntityId }));
3694
3637
  };
3695
3638
  var serializeAws_restJson1RequiredProperties = function (input, context) {
3696
3639
  return input
@@ -3734,18 +3677,14 @@ var serializeAws_restJson1TagMap = function (input, context) {
3734
3677
  };
3735
3678
  var deserializeAws_restJson1BatchPutPropertyError = function (output, context) {
3736
3679
  return {
3737
- entry: output.entry !== undefined && output.entry !== null
3738
- ? deserializeAws_restJson1PropertyValueEntry(output.entry, context)
3739
- : undefined,
3680
+ entry: output.entry != null ? deserializeAws_restJson1PropertyValueEntry(output.entry, context) : undefined,
3740
3681
  errorCode: __expectString(output.errorCode),
3741
3682
  errorMessage: __expectString(output.errorMessage),
3742
3683
  };
3743
3684
  };
3744
3685
  var deserializeAws_restJson1BatchPutPropertyErrorEntry = function (output, context) {
3745
3686
  return {
3746
- errors: output.errors !== undefined && output.errors !== null
3747
- ? deserializeAws_restJson1Errors(output.errors, context)
3748
- : undefined,
3687
+ errors: output.errors != null ? deserializeAws_restJson1Errors(output.errors, context) : undefined,
3749
3688
  };
3750
3689
  };
3751
3690
  var deserializeAws_restJson1ComponentResponse = function (output, context) {
@@ -3754,12 +3693,8 @@ var deserializeAws_restJson1ComponentResponse = function (output, context) {
3754
3693
  componentTypeId: __expectString(output.componentTypeId),
3755
3694
  definedIn: __expectString(output.definedIn),
3756
3695
  description: __expectString(output.description),
3757
- properties: output.properties !== undefined && output.properties !== null
3758
- ? deserializeAws_restJson1PropertyResponses(output.properties, context)
3759
- : undefined,
3760
- status: output.status !== undefined && output.status !== null
3761
- ? deserializeAws_restJson1Status(output.status, context)
3762
- : undefined,
3696
+ properties: output.properties != null ? deserializeAws_restJson1PropertyResponses(output.properties, context) : undefined,
3697
+ status: output.status != null ? deserializeAws_restJson1Status(output.status, context) : undefined,
3763
3698
  };
3764
3699
  };
3765
3700
  var deserializeAws_restJson1ComponentsMap = function (output, context) {
@@ -3787,14 +3722,12 @@ var deserializeAws_restJson1ComponentTypeSummary = function (output, context) {
3787
3722
  return {
3788
3723
  arn: __expectString(output.arn),
3789
3724
  componentTypeId: __expectString(output.componentTypeId),
3790
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
3725
+ creationDateTime: output.creationDateTime != null
3791
3726
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
3792
3727
  : undefined,
3793
3728
  description: __expectString(output.description),
3794
- status: output.status !== undefined && output.status !== null
3795
- ? deserializeAws_restJson1Status(output.status, context)
3796
- : undefined,
3797
- updateDateTime: output.updateDateTime !== undefined && output.updateDateTime !== null
3729
+ status: output.status != null ? deserializeAws_restJson1Status(output.status, context) : undefined,
3730
+ updateDateTime: output.updateDateTime != null
3798
3731
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDateTime)))
3799
3732
  : undefined,
3800
3733
  };
@@ -3812,22 +3745,14 @@ var deserializeAws_restJson1Configuration = function (output, context) {
3812
3745
  var deserializeAws_restJson1DataConnector = function (output, context) {
3813
3746
  return {
3814
3747
  isNative: __expectBoolean(output.isNative),
3815
- lambda: output.lambda !== undefined && output.lambda !== null
3816
- ? deserializeAws_restJson1LambdaFunction(output.lambda, context)
3817
- : undefined,
3748
+ lambda: output.lambda != null ? deserializeAws_restJson1LambdaFunction(output.lambda, context) : undefined,
3818
3749
  };
3819
3750
  };
3820
3751
  var deserializeAws_restJson1DataType = function (output, context) {
3821
3752
  return {
3822
- allowedValues: output.allowedValues !== undefined && output.allowedValues !== null
3823
- ? deserializeAws_restJson1DataValueList(output.allowedValues, context)
3824
- : undefined,
3825
- nestedType: output.nestedType !== undefined && output.nestedType !== null
3826
- ? deserializeAws_restJson1DataType(output.nestedType, context)
3827
- : undefined,
3828
- relationship: output.relationship !== undefined && output.relationship !== null
3829
- ? deserializeAws_restJson1Relationship(output.relationship, context)
3830
- : undefined,
3753
+ allowedValues: output.allowedValues != null ? deserializeAws_restJson1DataValueList(output.allowedValues, context) : undefined,
3754
+ nestedType: output.nestedType != null ? deserializeAws_restJson1DataType(output.nestedType, context) : undefined,
3755
+ relationship: output.relationship != null ? deserializeAws_restJson1Relationship(output.relationship, context) : undefined,
3831
3756
  type: __expectString(output.type),
3832
3757
  unitOfMeasure: __expectString(output.unitOfMeasure),
3833
3758
  };
@@ -3838,14 +3763,10 @@ var deserializeAws_restJson1DataValue = function (output, context) {
3838
3763
  doubleValue: __limitedParseDouble(output.doubleValue),
3839
3764
  expression: __expectString(output.expression),
3840
3765
  integerValue: __expectInt32(output.integerValue),
3841
- listValue: output.listValue !== undefined && output.listValue !== null
3842
- ? deserializeAws_restJson1DataValueList(output.listValue, context)
3843
- : undefined,
3766
+ listValue: output.listValue != null ? deserializeAws_restJson1DataValueList(output.listValue, context) : undefined,
3844
3767
  longValue: __expectLong(output.longValue),
3845
- mapValue: output.mapValue !== undefined && output.mapValue !== null
3846
- ? deserializeAws_restJson1DataValueMap(output.mapValue, context)
3847
- : undefined,
3848
- relationshipValue: output.relationshipValue !== undefined && output.relationshipValue !== null
3768
+ mapValue: output.mapValue != null ? deserializeAws_restJson1DataValueMap(output.mapValue, context) : undefined,
3769
+ relationshipValue: output.relationshipValue != null
3849
3770
  ? deserializeAws_restJson1RelationshipValue(output.relationshipValue, context)
3850
3771
  : undefined,
3851
3772
  stringValue: __expectString(output.stringValue),
@@ -3876,7 +3797,7 @@ var deserializeAws_restJson1EntityPropertyReference = function (output, context)
3876
3797
  return {
3877
3798
  componentName: __expectString(output.componentName),
3878
3799
  entityId: __expectString(output.entityId),
3879
- externalIdProperty: output.externalIdProperty !== undefined && output.externalIdProperty !== null
3800
+ externalIdProperty: output.externalIdProperty != null
3880
3801
  ? deserializeAws_restJson1ExternalIdProperty(output.externalIdProperty, context)
3881
3802
  : undefined,
3882
3803
  propertyName: __expectString(output.propertyName),
@@ -3896,7 +3817,7 @@ var deserializeAws_restJson1EntitySummaries = function (output, context) {
3896
3817
  var deserializeAws_restJson1EntitySummary = function (output, context) {
3897
3818
  return {
3898
3819
  arn: __expectString(output.arn),
3899
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
3820
+ creationDateTime: output.creationDateTime != null
3900
3821
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
3901
3822
  : undefined,
3902
3823
  description: __expectString(output.description),
@@ -3904,10 +3825,8 @@ var deserializeAws_restJson1EntitySummary = function (output, context) {
3904
3825
  entityName: __expectString(output.entityName),
3905
3826
  hasChildEntities: __expectBoolean(output.hasChildEntities),
3906
3827
  parentEntityId: __expectString(output.parentEntityId),
3907
- status: output.status !== undefined && output.status !== null
3908
- ? deserializeAws_restJson1Status(output.status, context)
3909
- : undefined,
3910
- updateDateTime: output.updateDateTime !== undefined && output.updateDateTime !== null
3828
+ status: output.status != null ? deserializeAws_restJson1Status(output.status, context) : undefined,
3829
+ updateDateTime: output.updateDateTime != null
3911
3830
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDateTime)))
3912
3831
  : undefined,
3913
3832
  };
@@ -3963,11 +3882,9 @@ var deserializeAws_restJson1ExternalIdProperty = function (output, context) {
3963
3882
  };
3964
3883
  var deserializeAws_restJson1FunctionResponse = function (output, context) {
3965
3884
  return {
3966
- implementedBy: output.implementedBy !== undefined && output.implementedBy !== null
3967
- ? deserializeAws_restJson1DataConnector(output.implementedBy, context)
3968
- : undefined,
3885
+ implementedBy: output.implementedBy != null ? deserializeAws_restJson1DataConnector(output.implementedBy, context) : undefined,
3969
3886
  isInherited: __expectBoolean(output.isInherited),
3970
- requiredProperties: output.requiredProperties !== undefined && output.requiredProperties !== null
3887
+ requiredProperties: output.requiredProperties != null
3971
3888
  ? deserializeAws_restJson1RequiredProperties(output.requiredProperties, context)
3972
3889
  : undefined,
3973
3890
  scope: __expectString(output.scope),
@@ -3990,15 +3907,9 @@ var deserializeAws_restJson1LambdaFunction = function (output, context) {
3990
3907
  };
3991
3908
  var deserializeAws_restJson1PropertyDefinitionResponse = function (output, context) {
3992
3909
  return {
3993
- configuration: output.configuration !== undefined && output.configuration !== null
3994
- ? deserializeAws_restJson1Configuration(output.configuration, context)
3995
- : undefined,
3996
- dataType: output.dataType !== undefined && output.dataType !== null
3997
- ? deserializeAws_restJson1DataType(output.dataType, context)
3998
- : undefined,
3999
- defaultValue: output.defaultValue !== undefined && output.defaultValue !== null
4000
- ? deserializeAws_restJson1DataValue(output.defaultValue, context)
4001
- : undefined,
3910
+ configuration: output.configuration != null ? deserializeAws_restJson1Configuration(output.configuration, context) : undefined,
3911
+ dataType: output.dataType != null ? deserializeAws_restJson1DataType(output.dataType, context) : undefined,
3912
+ defaultValue: output.defaultValue != null ? deserializeAws_restJson1DataValue(output.defaultValue, context) : undefined,
4002
3913
  isExternalId: __expectBoolean(output.isExternalId),
4003
3914
  isFinal: __expectBoolean(output.isFinal),
4004
3915
  isImported: __expectBoolean(output.isImported),
@@ -4020,12 +3931,10 @@ var deserializeAws_restJson1PropertyDefinitionsResponse = function (output, cont
4020
3931
  };
4021
3932
  var deserializeAws_restJson1PropertyLatestValue = function (output, context) {
4022
3933
  return {
4023
- propertyReference: output.propertyReference !== undefined && output.propertyReference !== null
3934
+ propertyReference: output.propertyReference != null
4024
3935
  ? deserializeAws_restJson1EntityPropertyReference(output.propertyReference, context)
4025
3936
  : undefined,
4026
- propertyValue: output.propertyValue !== undefined && output.propertyValue !== null
4027
- ? deserializeAws_restJson1DataValue(output.propertyValue, context)
4028
- : undefined,
3937
+ propertyValue: output.propertyValue != null ? deserializeAws_restJson1DataValue(output.propertyValue, context) : undefined,
4029
3938
  };
4030
3939
  };
4031
3940
  var deserializeAws_restJson1PropertyLatestValueMap = function (output, context) {
@@ -4040,12 +3949,10 @@ var deserializeAws_restJson1PropertyLatestValueMap = function (output, context)
4040
3949
  };
4041
3950
  var deserializeAws_restJson1PropertyResponse = function (output, context) {
4042
3951
  return {
4043
- definition: output.definition !== undefined && output.definition !== null
3952
+ definition: output.definition != null
4044
3953
  ? deserializeAws_restJson1PropertyDefinitionResponse(output.definition, context)
4045
3954
  : undefined,
4046
- value: output.value !== undefined && output.value !== null
4047
- ? deserializeAws_restJson1DataValue(output.value, context)
4048
- : undefined,
3955
+ value: output.value != null ? deserializeAws_restJson1DataValue(output.value, context) : undefined,
4049
3956
  };
4050
3957
  };
4051
3958
  var deserializeAws_restJson1PropertyResponses = function (output, context) {
@@ -4061,32 +3968,26 @@ var deserializeAws_restJson1PropertyResponses = function (output, context) {
4061
3968
  var deserializeAws_restJson1PropertyValue = function (output, context) {
4062
3969
  return {
4063
3970
  time: __expectString(output.time),
4064
- timestamp: output.timestamp !== undefined && output.timestamp !== null
4065
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.timestamp)))
4066
- : undefined,
4067
- value: output.value !== undefined && output.value !== null
4068
- ? deserializeAws_restJson1DataValue(output.value, context)
4069
- : undefined,
3971
+ timestamp: output.timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.timestamp))) : undefined,
3972
+ value: output.value != null ? deserializeAws_restJson1DataValue(output.value, context) : undefined,
4070
3973
  };
4071
3974
  };
4072
3975
  var deserializeAws_restJson1PropertyValueEntry = function (output, context) {
4073
3976
  return {
4074
- entityPropertyReference: output.entityPropertyReference !== undefined && output.entityPropertyReference !== null
3977
+ entityPropertyReference: output.entityPropertyReference != null
4075
3978
  ? deserializeAws_restJson1EntityPropertyReference(output.entityPropertyReference, context)
4076
3979
  : undefined,
4077
- propertyValues: output.propertyValues !== undefined && output.propertyValues !== null
3980
+ propertyValues: output.propertyValues != null
4078
3981
  ? deserializeAws_restJson1PropertyValues(output.propertyValues, context)
4079
3982
  : undefined,
4080
3983
  };
4081
3984
  };
4082
3985
  var deserializeAws_restJson1PropertyValueHistory = function (output, context) {
4083
3986
  return {
4084
- entityPropertyReference: output.entityPropertyReference !== undefined && output.entityPropertyReference !== null
3987
+ entityPropertyReference: output.entityPropertyReference != null
4085
3988
  ? deserializeAws_restJson1EntityPropertyReference(output.entityPropertyReference, context)
4086
3989
  : undefined,
4087
- values: output.values !== undefined && output.values !== null
4088
- ? deserializeAws_restJson1Values(output.values, context)
4089
- : undefined,
3990
+ values: output.values != null ? deserializeAws_restJson1Values(output.values, context) : undefined,
4090
3991
  };
4091
3992
  };
4092
3993
  var deserializeAws_restJson1PropertyValueList = function (output, context) {
@@ -4160,21 +4061,19 @@ var deserializeAws_restJson1SceneSummary = function (output, context) {
4160
4061
  return {
4161
4062
  arn: __expectString(output.arn),
4162
4063
  contentLocation: __expectString(output.contentLocation),
4163
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4064
+ creationDateTime: output.creationDateTime != null
4164
4065
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
4165
4066
  : undefined,
4166
4067
  description: __expectString(output.description),
4167
4068
  sceneId: __expectString(output.sceneId),
4168
- updateDateTime: output.updateDateTime !== undefined && output.updateDateTime !== null
4069
+ updateDateTime: output.updateDateTime != null
4169
4070
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDateTime)))
4170
4071
  : undefined,
4171
4072
  };
4172
4073
  };
4173
4074
  var deserializeAws_restJson1Status = function (output, context) {
4174
4075
  return {
4175
- error: output.error !== undefined && output.error !== null
4176
- ? deserializeAws_restJson1ErrorDetails(output.error, context)
4177
- : undefined,
4076
+ error: output.error != null ? deserializeAws_restJson1ErrorDetails(output.error, context) : undefined,
4178
4077
  state: __expectString(output.state),
4179
4078
  };
4180
4079
  };
@@ -4213,11 +4112,11 @@ var deserializeAws_restJson1WorkspaceSummaries = function (output, context) {
4213
4112
  var deserializeAws_restJson1WorkspaceSummary = function (output, context) {
4214
4113
  return {
4215
4114
  arn: __expectString(output.arn),
4216
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4115
+ creationDateTime: output.creationDateTime != null
4217
4116
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
4218
4117
  : undefined,
4219
4118
  description: __expectString(output.description),
4220
- updateDateTime: output.updateDateTime !== undefined && output.updateDateTime !== null
4119
+ updateDateTime: output.updateDateTime != null
4221
4120
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDateTime)))
4222
4121
  : undefined,
4223
4122
  workspaceId: __expectString(output.workspaceId),
@@ -4261,6 +4160,9 @@ var loadRestJsonErrorCode = function (output, data) {
4261
4160
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
4262
4161
  var sanitizeErrorCode = function (rawValue) {
4263
4162
  var cleanValue = rawValue;
4163
+ if (typeof cleanValue === "number") {
4164
+ cleanValue = cleanValue.toString();
4165
+ }
4264
4166
  if (cleanValue.indexOf(":") >= 0) {
4265
4167
  cleanValue = cleanValue.split(":")[0];
4266
4168
  }