@aws-sdk/client-iotsitewise 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.
@@ -27,9 +27,9 @@ const serializeAws_restJson1AssociateAssetsCommand = async (input, context) => {
27
27
  }
28
28
  let body;
29
29
  body = JSON.stringify({
30
- ...(input.childAssetId !== undefined && input.childAssetId !== null && { childAssetId: input.childAssetId }),
30
+ ...(input.childAssetId != null && { childAssetId: input.childAssetId }),
31
31
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
32
- ...(input.hierarchyId !== undefined && input.hierarchyId !== null && { hierarchyId: input.hierarchyId }),
32
+ ...(input.hierarchyId != null && { hierarchyId: input.hierarchyId }),
33
33
  });
34
34
  let { hostname: resolvedHostname } = await context.endpoint();
35
35
  if (context.disableHostPrefix !== true) {
@@ -103,8 +103,7 @@ const serializeAws_restJson1BatchAssociateProjectAssetsCommand = async (input, c
103
103
  }
104
104
  let body;
105
105
  body = JSON.stringify({
106
- ...(input.assetIds !== undefined &&
107
- input.assetIds !== null && { assetIds: serializeAws_restJson1IDs(input.assetIds, context) }),
106
+ ...(input.assetIds != null && { assetIds: serializeAws_restJson1IDs(input.assetIds, context) }),
108
107
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
109
108
  });
110
109
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -144,8 +143,7 @@ const serializeAws_restJson1BatchDisassociateProjectAssetsCommand = async (input
144
143
  }
145
144
  let body;
146
145
  body = JSON.stringify({
147
- ...(input.assetIds !== undefined &&
148
- input.assetIds !== null && { assetIds: serializeAws_restJson1IDs(input.assetIds, context) }),
146
+ ...(input.assetIds != null && { assetIds: serializeAws_restJson1IDs(input.assetIds, context) }),
149
147
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
150
148
  });
151
149
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -174,12 +172,11 @@ const serializeAws_restJson1BatchGetAssetPropertyAggregatesCommand = async (inpu
174
172
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/aggregates";
175
173
  let body;
176
174
  body = JSON.stringify({
177
- ...(input.entries !== undefined &&
178
- input.entries !== null && {
175
+ ...(input.entries != null && {
179
176
  entries: serializeAws_restJson1BatchGetAssetPropertyAggregatesEntries(input.entries, context),
180
177
  }),
181
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
182
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
178
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
179
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
183
180
  });
184
181
  let { hostname: resolvedHostname } = await context.endpoint();
185
182
  if (context.disableHostPrefix !== true) {
@@ -207,11 +204,10 @@ const serializeAws_restJson1BatchGetAssetPropertyValueCommand = async (input, co
207
204
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/latest";
208
205
  let body;
209
206
  body = JSON.stringify({
210
- ...(input.entries !== undefined &&
211
- input.entries !== null && {
207
+ ...(input.entries != null && {
212
208
  entries: serializeAws_restJson1BatchGetAssetPropertyValueEntries(input.entries, context),
213
209
  }),
214
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
210
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
215
211
  });
216
212
  let { hostname: resolvedHostname } = await context.endpoint();
217
213
  if (context.disableHostPrefix !== true) {
@@ -239,12 +235,11 @@ const serializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand = async (in
239
235
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/history";
240
236
  let body;
241
237
  body = JSON.stringify({
242
- ...(input.entries !== undefined &&
243
- input.entries !== null && {
238
+ ...(input.entries != null && {
244
239
  entries: serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntries(input.entries, context),
245
240
  }),
246
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
247
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
241
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
242
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
248
243
  });
249
244
  let { hostname: resolvedHostname } = await context.endpoint();
250
245
  if (context.disableHostPrefix !== true) {
@@ -272,8 +267,7 @@ const serializeAws_restJson1BatchPutAssetPropertyValueCommand = async (input, co
272
267
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/properties";
273
268
  let body;
274
269
  body = JSON.stringify({
275
- ...(input.entries !== undefined &&
276
- input.entries !== null && {
270
+ ...(input.entries != null && {
277
271
  entries: serializeAws_restJson1PutAssetPropertyValueEntries(input.entries, context),
278
272
  }),
279
273
  });
@@ -304,18 +298,15 @@ const serializeAws_restJson1CreateAccessPolicyCommand = async (input, context) =
304
298
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies";
305
299
  let body;
306
300
  body = JSON.stringify({
307
- ...(input.accessPolicyIdentity !== undefined &&
308
- input.accessPolicyIdentity !== null && {
301
+ ...(input.accessPolicyIdentity != null && {
309
302
  accessPolicyIdentity: serializeAws_restJson1Identity(input.accessPolicyIdentity, context),
310
303
  }),
311
- ...(input.accessPolicyPermission !== undefined &&
312
- input.accessPolicyPermission !== null && { accessPolicyPermission: input.accessPolicyPermission }),
313
- ...(input.accessPolicyResource !== undefined &&
314
- input.accessPolicyResource !== null && {
304
+ ...(input.accessPolicyPermission != null && { accessPolicyPermission: input.accessPolicyPermission }),
305
+ ...(input.accessPolicyResource != null && {
315
306
  accessPolicyResource: serializeAws_restJson1Resource(input.accessPolicyResource, context),
316
307
  }),
317
308
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
318
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
309
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
319
310
  });
320
311
  let { hostname: resolvedHostname } = await context.endpoint();
321
312
  if (context.disableHostPrefix !== true) {
@@ -344,12 +335,11 @@ const serializeAws_restJson1CreateAssetCommand = async (input, context) => {
344
335
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assets";
345
336
  let body;
346
337
  body = JSON.stringify({
347
- ...(input.assetDescription !== undefined &&
348
- input.assetDescription !== null && { assetDescription: input.assetDescription }),
349
- ...(input.assetModelId !== undefined && input.assetModelId !== null && { assetModelId: input.assetModelId }),
350
- ...(input.assetName !== undefined && input.assetName !== null && { assetName: input.assetName }),
338
+ ...(input.assetDescription != null && { assetDescription: input.assetDescription }),
339
+ ...(input.assetModelId != null && { assetModelId: input.assetModelId }),
340
+ ...(input.assetName != null && { assetName: input.assetName }),
351
341
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
352
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
342
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
353
343
  });
354
344
  let { hostname: resolvedHostname } = await context.endpoint();
355
345
  if (context.disableHostPrefix !== true) {
@@ -378,24 +368,19 @@ const serializeAws_restJson1CreateAssetModelCommand = async (input, context) =>
378
368
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models";
379
369
  let body;
380
370
  body = JSON.stringify({
381
- ...(input.assetModelCompositeModels !== undefined &&
382
- input.assetModelCompositeModels !== null && {
371
+ ...(input.assetModelCompositeModels != null && {
383
372
  assetModelCompositeModels: serializeAws_restJson1AssetModelCompositeModelDefinitions(input.assetModelCompositeModels, context),
384
373
  }),
385
- ...(input.assetModelDescription !== undefined &&
386
- input.assetModelDescription !== null && { assetModelDescription: input.assetModelDescription }),
387
- ...(input.assetModelHierarchies !== undefined &&
388
- input.assetModelHierarchies !== null && {
374
+ ...(input.assetModelDescription != null && { assetModelDescription: input.assetModelDescription }),
375
+ ...(input.assetModelHierarchies != null && {
389
376
  assetModelHierarchies: serializeAws_restJson1AssetModelHierarchyDefinitions(input.assetModelHierarchies, context),
390
377
  }),
391
- ...(input.assetModelName !== undefined &&
392
- input.assetModelName !== null && { assetModelName: input.assetModelName }),
393
- ...(input.assetModelProperties !== undefined &&
394
- input.assetModelProperties !== null && {
378
+ ...(input.assetModelName != null && { assetModelName: input.assetModelName }),
379
+ ...(input.assetModelProperties != null && {
395
380
  assetModelProperties: serializeAws_restJson1AssetModelPropertyDefinitions(input.assetModelProperties, context),
396
381
  }),
397
382
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
398
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
383
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
399
384
  });
400
385
  let { hostname: resolvedHostname } = await context.endpoint();
401
386
  if (context.disableHostPrefix !== true) {
@@ -425,13 +410,11 @@ const serializeAws_restJson1CreateDashboardCommand = async (input, context) => {
425
410
  let body;
426
411
  body = JSON.stringify({
427
412
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
428
- ...(input.dashboardDefinition !== undefined &&
429
- input.dashboardDefinition !== null && { dashboardDefinition: input.dashboardDefinition }),
430
- ...(input.dashboardDescription !== undefined &&
431
- input.dashboardDescription !== null && { dashboardDescription: input.dashboardDescription }),
432
- ...(input.dashboardName !== undefined && input.dashboardName !== null && { dashboardName: input.dashboardName }),
433
- ...(input.projectId !== undefined && input.projectId !== null && { projectId: input.projectId }),
434
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
413
+ ...(input.dashboardDefinition != null && { dashboardDefinition: input.dashboardDefinition }),
414
+ ...(input.dashboardDescription != null && { dashboardDescription: input.dashboardDescription }),
415
+ ...(input.dashboardName != null && { dashboardName: input.dashboardName }),
416
+ ...(input.projectId != null && { projectId: input.projectId }),
417
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
435
418
  });
436
419
  let { hostname: resolvedHostname } = await context.endpoint();
437
420
  if (context.disableHostPrefix !== true) {
@@ -459,12 +442,11 @@ const serializeAws_restJson1CreateGatewayCommand = async (input, context) => {
459
442
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways";
460
443
  let body;
461
444
  body = JSON.stringify({
462
- ...(input.gatewayName !== undefined && input.gatewayName !== null && { gatewayName: input.gatewayName }),
463
- ...(input.gatewayPlatform !== undefined &&
464
- input.gatewayPlatform !== null && {
445
+ ...(input.gatewayName != null && { gatewayName: input.gatewayName }),
446
+ ...(input.gatewayPlatform != null && {
465
447
  gatewayPlatform: serializeAws_restJson1GatewayPlatform(input.gatewayPlatform, context),
466
448
  }),
467
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
449
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
468
450
  });
469
451
  let { hostname: resolvedHostname } = await context.endpoint();
470
452
  if (context.disableHostPrefix !== true) {
@@ -493,24 +475,18 @@ const serializeAws_restJson1CreatePortalCommand = async (input, context) => {
493
475
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals";
494
476
  let body;
495
477
  body = JSON.stringify({
496
- ...(input.alarms !== undefined &&
497
- input.alarms !== null && { alarms: serializeAws_restJson1Alarms(input.alarms, context) }),
478
+ ...(input.alarms != null && { alarms: serializeAws_restJson1Alarms(input.alarms, context) }),
498
479
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
499
- ...(input.notificationSenderEmail !== undefined &&
500
- input.notificationSenderEmail !== null && { notificationSenderEmail: input.notificationSenderEmail }),
501
- ...(input.portalAuthMode !== undefined &&
502
- input.portalAuthMode !== null && { portalAuthMode: input.portalAuthMode }),
503
- ...(input.portalContactEmail !== undefined &&
504
- input.portalContactEmail !== null && { portalContactEmail: input.portalContactEmail }),
505
- ...(input.portalDescription !== undefined &&
506
- input.portalDescription !== null && { portalDescription: input.portalDescription }),
507
- ...(input.portalLogoImageFile !== undefined &&
508
- input.portalLogoImageFile !== null && {
480
+ ...(input.notificationSenderEmail != null && { notificationSenderEmail: input.notificationSenderEmail }),
481
+ ...(input.portalAuthMode != null && { portalAuthMode: input.portalAuthMode }),
482
+ ...(input.portalContactEmail != null && { portalContactEmail: input.portalContactEmail }),
483
+ ...(input.portalDescription != null && { portalDescription: input.portalDescription }),
484
+ ...(input.portalLogoImageFile != null && {
509
485
  portalLogoImageFile: serializeAws_restJson1ImageFile(input.portalLogoImageFile, context),
510
486
  }),
511
- ...(input.portalName !== undefined && input.portalName !== null && { portalName: input.portalName }),
512
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
513
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
487
+ ...(input.portalName != null && { portalName: input.portalName }),
488
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
489
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
514
490
  });
515
491
  let { hostname: resolvedHostname } = await context.endpoint();
516
492
  if (context.disableHostPrefix !== true) {
@@ -540,11 +516,10 @@ const serializeAws_restJson1CreateProjectCommand = async (input, context) => {
540
516
  let body;
541
517
  body = JSON.stringify({
542
518
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
543
- ...(input.portalId !== undefined && input.portalId !== null && { portalId: input.portalId }),
544
- ...(input.projectDescription !== undefined &&
545
- input.projectDescription !== null && { projectDescription: input.projectDescription }),
546
- ...(input.projectName !== undefined && input.projectName !== null && { projectName: input.projectName }),
547
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
519
+ ...(input.portalId != null && { portalId: input.portalId }),
520
+ ...(input.projectDescription != null && { projectDescription: input.projectDescription }),
521
+ ...(input.projectName != null && { projectName: input.projectName }),
522
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
548
523
  });
549
524
  let { hostname: resolvedHostname } = await context.endpoint();
550
525
  if (context.disableHostPrefix !== true) {
@@ -1298,9 +1273,9 @@ const serializeAws_restJson1DisassociateAssetsCommand = async (input, context) =
1298
1273
  }
1299
1274
  let body;
1300
1275
  body = JSON.stringify({
1301
- ...(input.childAssetId !== undefined && input.childAssetId !== null && { childAssetId: input.childAssetId }),
1276
+ ...(input.childAssetId != null && { childAssetId: input.childAssetId }),
1302
1277
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1303
- ...(input.hierarchyId !== undefined && input.hierarchyId !== null && { hierarchyId: input.hierarchyId }),
1278
+ ...(input.hierarchyId != null && { hierarchyId: input.hierarchyId }),
1304
1279
  });
1305
1280
  let { hostname: resolvedHostname } = await context.endpoint();
1306
1281
  if (context.disableHostPrefix !== true) {
@@ -1889,9 +1864,8 @@ const serializeAws_restJson1PutDefaultEncryptionConfigurationCommand = async (in
1889
1864
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/encryption";
1890
1865
  let body;
1891
1866
  body = JSON.stringify({
1892
- ...(input.encryptionType !== undefined &&
1893
- input.encryptionType !== null && { encryptionType: input.encryptionType }),
1894
- ...(input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId }),
1867
+ ...(input.encryptionType != null && { encryptionType: input.encryptionType }),
1868
+ ...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
1895
1869
  });
1896
1870
  let { hostname: resolvedHostname } = await context.endpoint();
1897
1871
  if (context.disableHostPrefix !== true) {
@@ -1919,8 +1893,7 @@ const serializeAws_restJson1PutLoggingOptionsCommand = async (input, context) =>
1919
1893
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/logging";
1920
1894
  let body;
1921
1895
  body = JSON.stringify({
1922
- ...(input.loggingOptions !== undefined &&
1923
- input.loggingOptions !== null && {
1896
+ ...(input.loggingOptions != null && {
1924
1897
  loggingOptions: serializeAws_restJson1LoggingOptions(input.loggingOptions, context),
1925
1898
  }),
1926
1899
  });
@@ -1950,17 +1923,14 @@ const serializeAws_restJson1PutStorageConfigurationCommand = async (input, conte
1950
1923
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/storage";
1951
1924
  let body;
1952
1925
  body = JSON.stringify({
1953
- ...(input.disassociatedDataStorage !== undefined &&
1954
- input.disassociatedDataStorage !== null && { disassociatedDataStorage: input.disassociatedDataStorage }),
1955
- ...(input.multiLayerStorage !== undefined &&
1956
- input.multiLayerStorage !== null && {
1926
+ ...(input.disassociatedDataStorage != null && { disassociatedDataStorage: input.disassociatedDataStorage }),
1927
+ ...(input.multiLayerStorage != null && {
1957
1928
  multiLayerStorage: serializeAws_restJson1MultiLayerStorage(input.multiLayerStorage, context),
1958
1929
  }),
1959
- ...(input.retentionPeriod !== undefined &&
1960
- input.retentionPeriod !== null && {
1930
+ ...(input.retentionPeriod != null && {
1961
1931
  retentionPeriod: serializeAws_restJson1RetentionPeriod(input.retentionPeriod, context),
1962
1932
  }),
1963
- ...(input.storageType !== undefined && input.storageType !== null && { storageType: input.storageType }),
1933
+ ...(input.storageType != null && { storageType: input.storageType }),
1964
1934
  });
1965
1935
  let { hostname: resolvedHostname } = await context.endpoint();
1966
1936
  if (context.disableHostPrefix !== true) {
@@ -1991,7 +1961,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
1991
1961
  };
1992
1962
  let body;
1993
1963
  body = JSON.stringify({
1994
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
1964
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
1995
1965
  });
1996
1966
  let { hostname: resolvedHostname } = await context.endpoint();
1997
1967
  if (context.disableHostPrefix !== true) {
@@ -2059,14 +2029,11 @@ const serializeAws_restJson1UpdateAccessPolicyCommand = async (input, context) =
2059
2029
  }
2060
2030
  let body;
2061
2031
  body = JSON.stringify({
2062
- ...(input.accessPolicyIdentity !== undefined &&
2063
- input.accessPolicyIdentity !== null && {
2032
+ ...(input.accessPolicyIdentity != null && {
2064
2033
  accessPolicyIdentity: serializeAws_restJson1Identity(input.accessPolicyIdentity, context),
2065
2034
  }),
2066
- ...(input.accessPolicyPermission !== undefined &&
2067
- input.accessPolicyPermission !== null && { accessPolicyPermission: input.accessPolicyPermission }),
2068
- ...(input.accessPolicyResource !== undefined &&
2069
- input.accessPolicyResource !== null && {
2035
+ ...(input.accessPolicyPermission != null && { accessPolicyPermission: input.accessPolicyPermission }),
2036
+ ...(input.accessPolicyResource != null && {
2070
2037
  accessPolicyResource: serializeAws_restJson1Resource(input.accessPolicyResource, context),
2071
2038
  }),
2072
2039
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
@@ -2108,9 +2075,8 @@ const serializeAws_restJson1UpdateAssetCommand = async (input, context) => {
2108
2075
  }
2109
2076
  let body;
2110
2077
  body = JSON.stringify({
2111
- ...(input.assetDescription !== undefined &&
2112
- input.assetDescription !== null && { assetDescription: input.assetDescription }),
2113
- ...(input.assetName !== undefined && input.assetName !== null && { assetName: input.assetName }),
2078
+ ...(input.assetDescription != null && { assetDescription: input.assetDescription }),
2079
+ ...(input.assetName != null && { assetName: input.assetName }),
2114
2080
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2115
2081
  });
2116
2082
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -2150,20 +2116,15 @@ const serializeAws_restJson1UpdateAssetModelCommand = async (input, context) =>
2150
2116
  }
2151
2117
  let body;
2152
2118
  body = JSON.stringify({
2153
- ...(input.assetModelCompositeModels !== undefined &&
2154
- input.assetModelCompositeModels !== null && {
2119
+ ...(input.assetModelCompositeModels != null && {
2155
2120
  assetModelCompositeModels: serializeAws_restJson1AssetModelCompositeModels(input.assetModelCompositeModels, context),
2156
2121
  }),
2157
- ...(input.assetModelDescription !== undefined &&
2158
- input.assetModelDescription !== null && { assetModelDescription: input.assetModelDescription }),
2159
- ...(input.assetModelHierarchies !== undefined &&
2160
- input.assetModelHierarchies !== null && {
2122
+ ...(input.assetModelDescription != null && { assetModelDescription: input.assetModelDescription }),
2123
+ ...(input.assetModelHierarchies != null && {
2161
2124
  assetModelHierarchies: serializeAws_restJson1AssetModelHierarchies(input.assetModelHierarchies, context),
2162
2125
  }),
2163
- ...(input.assetModelName !== undefined &&
2164
- input.assetModelName !== null && { assetModelName: input.assetModelName }),
2165
- ...(input.assetModelProperties !== undefined &&
2166
- input.assetModelProperties !== null && {
2126
+ ...(input.assetModelName != null && { assetModelName: input.assetModelName }),
2127
+ ...(input.assetModelProperties != null && {
2167
2128
  assetModelProperties: serializeAws_restJson1AssetModelProperties(input.assetModelProperties, context),
2168
2129
  }),
2169
2130
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
@@ -2216,9 +2177,8 @@ const serializeAws_restJson1UpdateAssetPropertyCommand = async (input, context)
2216
2177
  let body;
2217
2178
  body = JSON.stringify({
2218
2179
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2219
- ...(input.propertyAlias !== undefined && input.propertyAlias !== null && { propertyAlias: input.propertyAlias }),
2220
- ...(input.propertyNotificationState !== undefined &&
2221
- input.propertyNotificationState !== null && { propertyNotificationState: input.propertyNotificationState }),
2180
+ ...(input.propertyAlias != null && { propertyAlias: input.propertyAlias }),
2181
+ ...(input.propertyNotificationState != null && { propertyNotificationState: input.propertyNotificationState }),
2222
2182
  });
2223
2183
  let { hostname: resolvedHostname } = await context.endpoint();
2224
2184
  if (context.disableHostPrefix !== true) {
@@ -2258,11 +2218,9 @@ const serializeAws_restJson1UpdateDashboardCommand = async (input, context) => {
2258
2218
  let body;
2259
2219
  body = JSON.stringify({
2260
2220
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2261
- ...(input.dashboardDefinition !== undefined &&
2262
- input.dashboardDefinition !== null && { dashboardDefinition: input.dashboardDefinition }),
2263
- ...(input.dashboardDescription !== undefined &&
2264
- input.dashboardDescription !== null && { dashboardDescription: input.dashboardDescription }),
2265
- ...(input.dashboardName !== undefined && input.dashboardName !== null && { dashboardName: input.dashboardName }),
2221
+ ...(input.dashboardDefinition != null && { dashboardDefinition: input.dashboardDefinition }),
2222
+ ...(input.dashboardDescription != null && { dashboardDescription: input.dashboardDescription }),
2223
+ ...(input.dashboardName != null && { dashboardName: input.dashboardName }),
2266
2224
  });
2267
2225
  let { hostname: resolvedHostname } = await context.endpoint();
2268
2226
  if (context.disableHostPrefix !== true) {
@@ -2300,7 +2258,7 @@ const serializeAws_restJson1UpdateGatewayCommand = async (input, context) => {
2300
2258
  }
2301
2259
  let body;
2302
2260
  body = JSON.stringify({
2303
- ...(input.gatewayName !== undefined && input.gatewayName !== null && { gatewayName: input.gatewayName }),
2261
+ ...(input.gatewayName != null && { gatewayName: input.gatewayName }),
2304
2262
  });
2305
2263
  let { hostname: resolvedHostname } = await context.endpoint();
2306
2264
  if (context.disableHostPrefix !== true) {
@@ -2338,10 +2296,8 @@ const serializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = async
2338
2296
  }
2339
2297
  let body;
2340
2298
  body = JSON.stringify({
2341
- ...(input.capabilityConfiguration !== undefined &&
2342
- input.capabilityConfiguration !== null && { capabilityConfiguration: input.capabilityConfiguration }),
2343
- ...(input.capabilityNamespace !== undefined &&
2344
- input.capabilityNamespace !== null && { capabilityNamespace: input.capabilityNamespace }),
2299
+ ...(input.capabilityConfiguration != null && { capabilityConfiguration: input.capabilityConfiguration }),
2300
+ ...(input.capabilityNamespace != null && { capabilityNamespace: input.capabilityNamespace }),
2345
2301
  });
2346
2302
  let { hostname: resolvedHostname } = await context.endpoint();
2347
2303
  if (context.disableHostPrefix !== true) {
@@ -2380,21 +2336,16 @@ const serializeAws_restJson1UpdatePortalCommand = async (input, context) => {
2380
2336
  }
2381
2337
  let body;
2382
2338
  body = JSON.stringify({
2383
- ...(input.alarms !== undefined &&
2384
- input.alarms !== null && { alarms: serializeAws_restJson1Alarms(input.alarms, context) }),
2339
+ ...(input.alarms != null && { alarms: serializeAws_restJson1Alarms(input.alarms, context) }),
2385
2340
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2386
- ...(input.notificationSenderEmail !== undefined &&
2387
- input.notificationSenderEmail !== null && { notificationSenderEmail: input.notificationSenderEmail }),
2388
- ...(input.portalContactEmail !== undefined &&
2389
- input.portalContactEmail !== null && { portalContactEmail: input.portalContactEmail }),
2390
- ...(input.portalDescription !== undefined &&
2391
- input.portalDescription !== null && { portalDescription: input.portalDescription }),
2392
- ...(input.portalLogoImage !== undefined &&
2393
- input.portalLogoImage !== null && {
2341
+ ...(input.notificationSenderEmail != null && { notificationSenderEmail: input.notificationSenderEmail }),
2342
+ ...(input.portalContactEmail != null && { portalContactEmail: input.portalContactEmail }),
2343
+ ...(input.portalDescription != null && { portalDescription: input.portalDescription }),
2344
+ ...(input.portalLogoImage != null && {
2394
2345
  portalLogoImage: serializeAws_restJson1Image(input.portalLogoImage, context),
2395
2346
  }),
2396
- ...(input.portalName !== undefined && input.portalName !== null && { portalName: input.portalName }),
2397
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
2347
+ ...(input.portalName != null && { portalName: input.portalName }),
2348
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
2398
2349
  });
2399
2350
  let { hostname: resolvedHostname } = await context.endpoint();
2400
2351
  if (context.disableHostPrefix !== true) {
@@ -2434,9 +2385,8 @@ const serializeAws_restJson1UpdateProjectCommand = async (input, context) => {
2434
2385
  let body;
2435
2386
  body = JSON.stringify({
2436
2387
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2437
- ...(input.projectDescription !== undefined &&
2438
- input.projectDescription !== null && { projectDescription: input.projectDescription }),
2439
- ...(input.projectName !== undefined && input.projectName !== null && { projectName: input.projectName }),
2388
+ ...(input.projectDescription != null && { projectDescription: input.projectDescription }),
2389
+ ...(input.projectName != null && { projectName: input.projectName }),
2440
2390
  });
2441
2391
  let { hostname: resolvedHostname } = await context.endpoint();
2442
2392
  if (context.disableHostPrefix !== true) {
@@ -6356,31 +6306,28 @@ const serializeAws_restJson1AggregateTypes = (input, context) => {
6356
6306
  };
6357
6307
  const serializeAws_restJson1Alarms = (input, context) => {
6358
6308
  return {
6359
- ...(input.alarmRoleArn !== undefined && input.alarmRoleArn !== null && { alarmRoleArn: input.alarmRoleArn }),
6360
- ...(input.notificationLambdaArn !== undefined &&
6361
- input.notificationLambdaArn !== null && { notificationLambdaArn: input.notificationLambdaArn }),
6309
+ ...(input.alarmRoleArn != null && { alarmRoleArn: input.alarmRoleArn }),
6310
+ ...(input.notificationLambdaArn != null && { notificationLambdaArn: input.notificationLambdaArn }),
6362
6311
  };
6363
6312
  };
6364
6313
  const serializeAws_restJson1AssetModelCompositeModel = (input, context) => {
6365
6314
  return {
6366
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
6367
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
6368
- ...(input.properties !== undefined &&
6369
- input.properties !== null && {
6315
+ ...(input.description != null && { description: input.description }),
6316
+ ...(input.name != null && { name: input.name }),
6317
+ ...(input.properties != null && {
6370
6318
  properties: serializeAws_restJson1AssetModelProperties(input.properties, context),
6371
6319
  }),
6372
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
6320
+ ...(input.type != null && { type: input.type }),
6373
6321
  };
6374
6322
  };
6375
6323
  const serializeAws_restJson1AssetModelCompositeModelDefinition = (input, context) => {
6376
6324
  return {
6377
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
6378
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
6379
- ...(input.properties !== undefined &&
6380
- input.properties !== null && {
6325
+ ...(input.description != null && { description: input.description }),
6326
+ ...(input.name != null && { name: input.name }),
6327
+ ...(input.properties != null && {
6381
6328
  properties: serializeAws_restJson1AssetModelPropertyDefinitions(input.properties, context),
6382
6329
  }),
6383
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
6330
+ ...(input.type != null && { type: input.type }),
6384
6331
  };
6385
6332
  };
6386
6333
  const serializeAws_restJson1AssetModelCompositeModelDefinitions = (input, context) => {
@@ -6415,17 +6362,15 @@ const serializeAws_restJson1AssetModelHierarchies = (input, context) => {
6415
6362
  };
6416
6363
  const serializeAws_restJson1AssetModelHierarchy = (input, context) => {
6417
6364
  return {
6418
- ...(input.childAssetModelId !== undefined &&
6419
- input.childAssetModelId !== null && { childAssetModelId: input.childAssetModelId }),
6420
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
6421
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
6365
+ ...(input.childAssetModelId != null && { childAssetModelId: input.childAssetModelId }),
6366
+ ...(input.id != null && { id: input.id }),
6367
+ ...(input.name != null && { name: input.name }),
6422
6368
  };
6423
6369
  };
6424
6370
  const serializeAws_restJson1AssetModelHierarchyDefinition = (input, context) => {
6425
6371
  return {
6426
- ...(input.childAssetModelId !== undefined &&
6427
- input.childAssetModelId !== null && { childAssetModelId: input.childAssetModelId }),
6428
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
6372
+ ...(input.childAssetModelId != null && { childAssetModelId: input.childAssetModelId }),
6373
+ ...(input.name != null && { name: input.name }),
6429
6374
  };
6430
6375
  };
6431
6376
  const serializeAws_restJson1AssetModelHierarchyDefinitions = (input, context) => {
@@ -6450,23 +6395,21 @@ const serializeAws_restJson1AssetModelProperties = (input, context) => {
6450
6395
  };
6451
6396
  const serializeAws_restJson1AssetModelProperty = (input, context) => {
6452
6397
  return {
6453
- ...(input.dataType !== undefined && input.dataType !== null && { dataType: input.dataType }),
6454
- ...(input.dataTypeSpec !== undefined && input.dataTypeSpec !== null && { dataTypeSpec: input.dataTypeSpec }),
6455
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
6456
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
6457
- ...(input.type !== undefined &&
6458
- input.type !== null && { type: serializeAws_restJson1PropertyType(input.type, context) }),
6459
- ...(input.unit !== undefined && input.unit !== null && { unit: input.unit }),
6398
+ ...(input.dataType != null && { dataType: input.dataType }),
6399
+ ...(input.dataTypeSpec != null && { dataTypeSpec: input.dataTypeSpec }),
6400
+ ...(input.id != null && { id: input.id }),
6401
+ ...(input.name != null && { name: input.name }),
6402
+ ...(input.type != null && { type: serializeAws_restJson1PropertyType(input.type, context) }),
6403
+ ...(input.unit != null && { unit: input.unit }),
6460
6404
  };
6461
6405
  };
6462
6406
  const serializeAws_restJson1AssetModelPropertyDefinition = (input, context) => {
6463
6407
  return {
6464
- ...(input.dataType !== undefined && input.dataType !== null && { dataType: input.dataType }),
6465
- ...(input.dataTypeSpec !== undefined && input.dataTypeSpec !== null && { dataTypeSpec: input.dataTypeSpec }),
6466
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
6467
- ...(input.type !== undefined &&
6468
- input.type !== null && { type: serializeAws_restJson1PropertyType(input.type, context) }),
6469
- ...(input.unit !== undefined && input.unit !== null && { unit: input.unit }),
6408
+ ...(input.dataType != null && { dataType: input.dataType }),
6409
+ ...(input.dataTypeSpec != null && { dataTypeSpec: input.dataTypeSpec }),
6410
+ ...(input.name != null && { name: input.name }),
6411
+ ...(input.type != null && { type: serializeAws_restJson1PropertyType(input.type, context) }),
6412
+ ...(input.unit != null && { unit: input.unit }),
6470
6413
  };
6471
6414
  };
6472
6415
  const serializeAws_restJson1AssetModelPropertyDefinitions = (input, context) => {
@@ -6481,11 +6424,9 @@ const serializeAws_restJson1AssetModelPropertyDefinitions = (input, context) =>
6481
6424
  };
6482
6425
  const serializeAws_restJson1AssetPropertyValue = (input, context) => {
6483
6426
  return {
6484
- ...(input.quality !== undefined && input.quality !== null && { quality: input.quality }),
6485
- ...(input.timestamp !== undefined &&
6486
- input.timestamp !== null && { timestamp: serializeAws_restJson1TimeInNanos(input.timestamp, context) }),
6487
- ...(input.value !== undefined &&
6488
- input.value !== null && { value: serializeAws_restJson1Variant(input.value, context) }),
6427
+ ...(input.quality != null && { quality: input.quality }),
6428
+ ...(input.timestamp != null && { timestamp: serializeAws_restJson1TimeInNanos(input.timestamp, context) }),
6429
+ ...(input.value != null && { value: serializeAws_restJson1Variant(input.value, context) }),
6489
6430
  };
6490
6431
  };
6491
6432
  const serializeAws_restJson1AssetPropertyValues = (input, context) => {
@@ -6500,7 +6441,7 @@ const serializeAws_restJson1AssetPropertyValues = (input, context) => {
6500
6441
  };
6501
6442
  const serializeAws_restJson1Attribute = (input, context) => {
6502
6443
  return {
6503
- ...(input.defaultValue !== undefined && input.defaultValue !== null && { defaultValue: input.defaultValue }),
6444
+ ...(input.defaultValue != null && { defaultValue: input.defaultValue }),
6504
6445
  };
6505
6446
  };
6506
6447
  const serializeAws_restJson1BatchGetAssetPropertyAggregatesEntries = (input, context) => {
@@ -6515,22 +6456,18 @@ const serializeAws_restJson1BatchGetAssetPropertyAggregatesEntries = (input, con
6515
6456
  };
6516
6457
  const serializeAws_restJson1BatchGetAssetPropertyAggregatesEntry = (input, context) => {
6517
6458
  return {
6518
- ...(input.aggregateTypes !== undefined &&
6519
- input.aggregateTypes !== null && {
6459
+ ...(input.aggregateTypes != null && {
6520
6460
  aggregateTypes: serializeAws_restJson1AggregateTypes(input.aggregateTypes, context),
6521
6461
  }),
6522
- ...(input.assetId !== undefined && input.assetId !== null && { assetId: input.assetId }),
6523
- ...(input.endDate !== undefined &&
6524
- input.endDate !== null && { endDate: Math.round(input.endDate.getTime() / 1000) }),
6525
- ...(input.entryId !== undefined && input.entryId !== null && { entryId: input.entryId }),
6526
- ...(input.propertyAlias !== undefined && input.propertyAlias !== null && { propertyAlias: input.propertyAlias }),
6527
- ...(input.propertyId !== undefined && input.propertyId !== null && { propertyId: input.propertyId }),
6528
- ...(input.qualities !== undefined &&
6529
- input.qualities !== null && { qualities: serializeAws_restJson1Qualities(input.qualities, context) }),
6530
- ...(input.resolution !== undefined && input.resolution !== null && { resolution: input.resolution }),
6531
- ...(input.startDate !== undefined &&
6532
- input.startDate !== null && { startDate: Math.round(input.startDate.getTime() / 1000) }),
6533
- ...(input.timeOrdering !== undefined && input.timeOrdering !== null && { timeOrdering: input.timeOrdering }),
6462
+ ...(input.assetId != null && { assetId: input.assetId }),
6463
+ ...(input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000) }),
6464
+ ...(input.entryId != null && { entryId: input.entryId }),
6465
+ ...(input.propertyAlias != null && { propertyAlias: input.propertyAlias }),
6466
+ ...(input.propertyId != null && { propertyId: input.propertyId }),
6467
+ ...(input.qualities != null && { qualities: serializeAws_restJson1Qualities(input.qualities, context) }),
6468
+ ...(input.resolution != null && { resolution: input.resolution }),
6469
+ ...(input.startDate != null && { startDate: Math.round(input.startDate.getTime() / 1000) }),
6470
+ ...(input.timeOrdering != null && { timeOrdering: input.timeOrdering }),
6534
6471
  };
6535
6472
  };
6536
6473
  const serializeAws_restJson1BatchGetAssetPropertyValueEntries = (input, context) => {
@@ -6545,10 +6482,10 @@ const serializeAws_restJson1BatchGetAssetPropertyValueEntries = (input, context)
6545
6482
  };
6546
6483
  const serializeAws_restJson1BatchGetAssetPropertyValueEntry = (input, context) => {
6547
6484
  return {
6548
- ...(input.assetId !== undefined && input.assetId !== null && { assetId: input.assetId }),
6549
- ...(input.entryId !== undefined && input.entryId !== null && { entryId: input.entryId }),
6550
- ...(input.propertyAlias !== undefined && input.propertyAlias !== null && { propertyAlias: input.propertyAlias }),
6551
- ...(input.propertyId !== undefined && input.propertyId !== null && { propertyId: input.propertyId }),
6485
+ ...(input.assetId != null && { assetId: input.assetId }),
6486
+ ...(input.entryId != null && { entryId: input.entryId }),
6487
+ ...(input.propertyAlias != null && { propertyAlias: input.propertyAlias }),
6488
+ ...(input.propertyId != null && { propertyId: input.propertyId }),
6552
6489
  };
6553
6490
  };
6554
6491
  const serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntries = (input, context) => {
@@ -6563,30 +6500,26 @@ const serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntries = (input, c
6563
6500
  };
6564
6501
  const serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntry = (input, context) => {
6565
6502
  return {
6566
- ...(input.assetId !== undefined && input.assetId !== null && { assetId: input.assetId }),
6567
- ...(input.endDate !== undefined &&
6568
- input.endDate !== null && { endDate: Math.round(input.endDate.getTime() / 1000) }),
6569
- ...(input.entryId !== undefined && input.entryId !== null && { entryId: input.entryId }),
6570
- ...(input.propertyAlias !== undefined && input.propertyAlias !== null && { propertyAlias: input.propertyAlias }),
6571
- ...(input.propertyId !== undefined && input.propertyId !== null && { propertyId: input.propertyId }),
6572
- ...(input.qualities !== undefined &&
6573
- input.qualities !== null && { qualities: serializeAws_restJson1Qualities(input.qualities, context) }),
6574
- ...(input.startDate !== undefined &&
6575
- input.startDate !== null && { startDate: Math.round(input.startDate.getTime() / 1000) }),
6576
- ...(input.timeOrdering !== undefined && input.timeOrdering !== null && { timeOrdering: input.timeOrdering }),
6503
+ ...(input.assetId != null && { assetId: input.assetId }),
6504
+ ...(input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000) }),
6505
+ ...(input.entryId != null && { entryId: input.entryId }),
6506
+ ...(input.propertyAlias != null && { propertyAlias: input.propertyAlias }),
6507
+ ...(input.propertyId != null && { propertyId: input.propertyId }),
6508
+ ...(input.qualities != null && { qualities: serializeAws_restJson1Qualities(input.qualities, context) }),
6509
+ ...(input.startDate != null && { startDate: Math.round(input.startDate.getTime() / 1000) }),
6510
+ ...(input.timeOrdering != null && { timeOrdering: input.timeOrdering }),
6577
6511
  };
6578
6512
  };
6579
6513
  const serializeAws_restJson1CustomerManagedS3Storage = (input, context) => {
6580
6514
  return {
6581
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
6582
- ...(input.s3ResourceArn !== undefined && input.s3ResourceArn !== null && { s3ResourceArn: input.s3ResourceArn }),
6515
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
6516
+ ...(input.s3ResourceArn != null && { s3ResourceArn: input.s3ResourceArn }),
6583
6517
  };
6584
6518
  };
6585
6519
  const serializeAws_restJson1ExpressionVariable = (input, context) => {
6586
6520
  return {
6587
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
6588
- ...(input.value !== undefined &&
6589
- input.value !== null && { value: serializeAws_restJson1VariableValue(input.value, context) }),
6521
+ ...(input.name != null && { name: input.name }),
6522
+ ...(input.value != null && { value: serializeAws_restJson1VariableValue(input.value, context) }),
6590
6523
  };
6591
6524
  };
6592
6525
  const serializeAws_restJson1ExpressionVariables = (input, context) => {
@@ -6601,53 +6534,48 @@ const serializeAws_restJson1ExpressionVariables = (input, context) => {
6601
6534
  };
6602
6535
  const serializeAws_restJson1ForwardingConfig = (input, context) => {
6603
6536
  return {
6604
- ...(input.state !== undefined && input.state !== null && { state: input.state }),
6537
+ ...(input.state != null && { state: input.state }),
6605
6538
  };
6606
6539
  };
6607
6540
  const serializeAws_restJson1GatewayPlatform = (input, context) => {
6608
6541
  return {
6609
- ...(input.greengrass !== undefined &&
6610
- input.greengrass !== null && { greengrass: serializeAws_restJson1Greengrass(input.greengrass, context) }),
6611
- ...(input.greengrassV2 !== undefined &&
6612
- input.greengrassV2 !== null && { greengrassV2: serializeAws_restJson1GreengrassV2(input.greengrassV2, context) }),
6542
+ ...(input.greengrass != null && { greengrass: serializeAws_restJson1Greengrass(input.greengrass, context) }),
6543
+ ...(input.greengrassV2 != null && {
6544
+ greengrassV2: serializeAws_restJson1GreengrassV2(input.greengrassV2, context),
6545
+ }),
6613
6546
  };
6614
6547
  };
6615
6548
  const serializeAws_restJson1Greengrass = (input, context) => {
6616
6549
  return {
6617
- ...(input.groupArn !== undefined && input.groupArn !== null && { groupArn: input.groupArn }),
6550
+ ...(input.groupArn != null && { groupArn: input.groupArn }),
6618
6551
  };
6619
6552
  };
6620
6553
  const serializeAws_restJson1GreengrassV2 = (input, context) => {
6621
6554
  return {
6622
- ...(input.coreDeviceThingName !== undefined &&
6623
- input.coreDeviceThingName !== null && { coreDeviceThingName: input.coreDeviceThingName }),
6555
+ ...(input.coreDeviceThingName != null && { coreDeviceThingName: input.coreDeviceThingName }),
6624
6556
  };
6625
6557
  };
6626
6558
  const serializeAws_restJson1GroupIdentity = (input, context) => {
6627
6559
  return {
6628
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
6560
+ ...(input.id != null && { id: input.id }),
6629
6561
  };
6630
6562
  };
6631
6563
  const serializeAws_restJson1IAMRoleIdentity = (input, context) => {
6632
6564
  return {
6633
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
6565
+ ...(input.arn != null && { arn: input.arn }),
6634
6566
  };
6635
6567
  };
6636
6568
  const serializeAws_restJson1IAMUserIdentity = (input, context) => {
6637
6569
  return {
6638
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
6570
+ ...(input.arn != null && { arn: input.arn }),
6639
6571
  };
6640
6572
  };
6641
6573
  const serializeAws_restJson1Identity = (input, context) => {
6642
6574
  return {
6643
- ...(input.group !== undefined &&
6644
- input.group !== null && { group: serializeAws_restJson1GroupIdentity(input.group, context) }),
6645
- ...(input.iamRole !== undefined &&
6646
- input.iamRole !== null && { iamRole: serializeAws_restJson1IAMRoleIdentity(input.iamRole, context) }),
6647
- ...(input.iamUser !== undefined &&
6648
- input.iamUser !== null && { iamUser: serializeAws_restJson1IAMUserIdentity(input.iamUser, context) }),
6649
- ...(input.user !== undefined &&
6650
- input.user !== null && { user: serializeAws_restJson1UserIdentity(input.user, context) }),
6575
+ ...(input.group != null && { group: serializeAws_restJson1GroupIdentity(input.group, context) }),
6576
+ ...(input.iamRole != null && { iamRole: serializeAws_restJson1IAMRoleIdentity(input.iamRole, context) }),
6577
+ ...(input.iamUser != null && { iamUser: serializeAws_restJson1IAMUserIdentity(input.iamUser, context) }),
6578
+ ...(input.user != null && { user: serializeAws_restJson1UserIdentity(input.user, context) }),
6651
6579
  };
6652
6580
  };
6653
6581
  const serializeAws_restJson1IDs = (input, context) => {
@@ -6662,91 +6590,78 @@ const serializeAws_restJson1IDs = (input, context) => {
6662
6590
  };
6663
6591
  const serializeAws_restJson1Image = (input, context) => {
6664
6592
  return {
6665
- ...(input.file !== undefined &&
6666
- input.file !== null && { file: serializeAws_restJson1ImageFile(input.file, context) }),
6667
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
6593
+ ...(input.file != null && { file: serializeAws_restJson1ImageFile(input.file, context) }),
6594
+ ...(input.id != null && { id: input.id }),
6668
6595
  };
6669
6596
  };
6670
6597
  const serializeAws_restJson1ImageFile = (input, context) => {
6671
6598
  return {
6672
- ...(input.data !== undefined && input.data !== null && { data: context.base64Encoder(input.data) }),
6673
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
6599
+ ...(input.data != null && { data: context.base64Encoder(input.data) }),
6600
+ ...(input.type != null && { type: input.type }),
6674
6601
  };
6675
6602
  };
6676
6603
  const serializeAws_restJson1LoggingOptions = (input, context) => {
6677
6604
  return {
6678
- ...(input.level !== undefined && input.level !== null && { level: input.level }),
6605
+ ...(input.level != null && { level: input.level }),
6679
6606
  };
6680
6607
  };
6681
6608
  const serializeAws_restJson1Measurement = (input, context) => {
6682
6609
  return {
6683
- ...(input.processingConfig !== undefined &&
6684
- input.processingConfig !== null && {
6610
+ ...(input.processingConfig != null && {
6685
6611
  processingConfig: serializeAws_restJson1MeasurementProcessingConfig(input.processingConfig, context),
6686
6612
  }),
6687
6613
  };
6688
6614
  };
6689
6615
  const serializeAws_restJson1MeasurementProcessingConfig = (input, context) => {
6690
6616
  return {
6691
- ...(input.forwardingConfig !== undefined &&
6692
- input.forwardingConfig !== null && {
6617
+ ...(input.forwardingConfig != null && {
6693
6618
  forwardingConfig: serializeAws_restJson1ForwardingConfig(input.forwardingConfig, context),
6694
6619
  }),
6695
6620
  };
6696
6621
  };
6697
6622
  const serializeAws_restJson1Metric = (input, context) => {
6698
6623
  return {
6699
- ...(input.expression !== undefined && input.expression !== null && { expression: input.expression }),
6700
- ...(input.processingConfig !== undefined &&
6701
- input.processingConfig !== null && {
6624
+ ...(input.expression != null && { expression: input.expression }),
6625
+ ...(input.processingConfig != null && {
6702
6626
  processingConfig: serializeAws_restJson1MetricProcessingConfig(input.processingConfig, context),
6703
6627
  }),
6704
- ...(input.variables !== undefined &&
6705
- input.variables !== null && { variables: serializeAws_restJson1ExpressionVariables(input.variables, context) }),
6706
- ...(input.window !== undefined &&
6707
- input.window !== null && { window: serializeAws_restJson1MetricWindow(input.window, context) }),
6628
+ ...(input.variables != null && { variables: serializeAws_restJson1ExpressionVariables(input.variables, context) }),
6629
+ ...(input.window != null && { window: serializeAws_restJson1MetricWindow(input.window, context) }),
6708
6630
  };
6709
6631
  };
6710
6632
  const serializeAws_restJson1MetricProcessingConfig = (input, context) => {
6711
6633
  return {
6712
- ...(input.computeLocation !== undefined &&
6713
- input.computeLocation !== null && { computeLocation: input.computeLocation }),
6634
+ ...(input.computeLocation != null && { computeLocation: input.computeLocation }),
6714
6635
  };
6715
6636
  };
6716
6637
  const serializeAws_restJson1MetricWindow = (input, context) => {
6717
6638
  return {
6718
- ...(input.tumbling !== undefined &&
6719
- input.tumbling !== null && { tumbling: serializeAws_restJson1TumblingWindow(input.tumbling, context) }),
6639
+ ...(input.tumbling != null && { tumbling: serializeAws_restJson1TumblingWindow(input.tumbling, context) }),
6720
6640
  };
6721
6641
  };
6722
6642
  const serializeAws_restJson1MultiLayerStorage = (input, context) => {
6723
6643
  return {
6724
- ...(input.customerManagedS3Storage !== undefined &&
6725
- input.customerManagedS3Storage !== null && {
6644
+ ...(input.customerManagedS3Storage != null && {
6726
6645
  customerManagedS3Storage: serializeAws_restJson1CustomerManagedS3Storage(input.customerManagedS3Storage, context),
6727
6646
  }),
6728
6647
  };
6729
6648
  };
6730
6649
  const serializeAws_restJson1PortalResource = (input, context) => {
6731
6650
  return {
6732
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
6651
+ ...(input.id != null && { id: input.id }),
6733
6652
  };
6734
6653
  };
6735
6654
  const serializeAws_restJson1ProjectResource = (input, context) => {
6736
6655
  return {
6737
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
6656
+ ...(input.id != null && { id: input.id }),
6738
6657
  };
6739
6658
  };
6740
6659
  const serializeAws_restJson1PropertyType = (input, context) => {
6741
6660
  return {
6742
- ...(input.attribute !== undefined &&
6743
- input.attribute !== null && { attribute: serializeAws_restJson1Attribute(input.attribute, context) }),
6744
- ...(input.measurement !== undefined &&
6745
- input.measurement !== null && { measurement: serializeAws_restJson1Measurement(input.measurement, context) }),
6746
- ...(input.metric !== undefined &&
6747
- input.metric !== null && { metric: serializeAws_restJson1Metric(input.metric, context) }),
6748
- ...(input.transform !== undefined &&
6749
- input.transform !== null && { transform: serializeAws_restJson1Transform(input.transform, context) }),
6661
+ ...(input.attribute != null && { attribute: serializeAws_restJson1Attribute(input.attribute, context) }),
6662
+ ...(input.measurement != null && { measurement: serializeAws_restJson1Measurement(input.measurement, context) }),
6663
+ ...(input.metric != null && { metric: serializeAws_restJson1Metric(input.metric, context) }),
6664
+ ...(input.transform != null && { transform: serializeAws_restJson1Transform(input.transform, context) }),
6750
6665
  };
6751
6666
  };
6752
6667
  const serializeAws_restJson1PutAssetPropertyValueEntries = (input, context) => {
@@ -6761,12 +6676,11 @@ const serializeAws_restJson1PutAssetPropertyValueEntries = (input, context) => {
6761
6676
  };
6762
6677
  const serializeAws_restJson1PutAssetPropertyValueEntry = (input, context) => {
6763
6678
  return {
6764
- ...(input.assetId !== undefined && input.assetId !== null && { assetId: input.assetId }),
6765
- ...(input.entryId !== undefined && input.entryId !== null && { entryId: input.entryId }),
6766
- ...(input.propertyAlias !== undefined && input.propertyAlias !== null && { propertyAlias: input.propertyAlias }),
6767
- ...(input.propertyId !== undefined && input.propertyId !== null && { propertyId: input.propertyId }),
6768
- ...(input.propertyValues !== undefined &&
6769
- input.propertyValues !== null && {
6679
+ ...(input.assetId != null && { assetId: input.assetId }),
6680
+ ...(input.entryId != null && { entryId: input.entryId }),
6681
+ ...(input.propertyAlias != null && { propertyAlias: input.propertyAlias }),
6682
+ ...(input.propertyId != null && { propertyId: input.propertyId }),
6683
+ ...(input.propertyValues != null && {
6770
6684
  propertyValues: serializeAws_restJson1AssetPropertyValues(input.propertyValues, context),
6771
6685
  }),
6772
6686
  };
@@ -6783,16 +6697,14 @@ const serializeAws_restJson1Qualities = (input, context) => {
6783
6697
  };
6784
6698
  const serializeAws_restJson1Resource = (input, context) => {
6785
6699
  return {
6786
- ...(input.portal !== undefined &&
6787
- input.portal !== null && { portal: serializeAws_restJson1PortalResource(input.portal, context) }),
6788
- ...(input.project !== undefined &&
6789
- input.project !== null && { project: serializeAws_restJson1ProjectResource(input.project, context) }),
6700
+ ...(input.portal != null && { portal: serializeAws_restJson1PortalResource(input.portal, context) }),
6701
+ ...(input.project != null && { project: serializeAws_restJson1ProjectResource(input.project, context) }),
6790
6702
  };
6791
6703
  };
6792
6704
  const serializeAws_restJson1RetentionPeriod = (input, context) => {
6793
6705
  return {
6794
- ...(input.numberOfDays !== undefined && input.numberOfDays !== null && { numberOfDays: input.numberOfDays }),
6795
- ...(input.unlimited !== undefined && input.unlimited !== null && { unlimited: input.unlimited }),
6706
+ ...(input.numberOfDays != null && { numberOfDays: input.numberOfDays }),
6707
+ ...(input.unlimited != null && { unlimited: input.unlimited }),
6796
6708
  };
6797
6709
  };
6798
6710
  const serializeAws_restJson1TagMap = (input, context) => {
@@ -6808,55 +6720,50 @@ const serializeAws_restJson1TagMap = (input, context) => {
6808
6720
  };
6809
6721
  const serializeAws_restJson1TimeInNanos = (input, context) => {
6810
6722
  return {
6811
- ...(input.offsetInNanos !== undefined && input.offsetInNanos !== null && { offsetInNanos: input.offsetInNanos }),
6812
- ...(input.timeInSeconds !== undefined && input.timeInSeconds !== null && { timeInSeconds: input.timeInSeconds }),
6723
+ ...(input.offsetInNanos != null && { offsetInNanos: input.offsetInNanos }),
6724
+ ...(input.timeInSeconds != null && { timeInSeconds: input.timeInSeconds }),
6813
6725
  };
6814
6726
  };
6815
6727
  const serializeAws_restJson1Transform = (input, context) => {
6816
6728
  return {
6817
- ...(input.expression !== undefined && input.expression !== null && { expression: input.expression }),
6818
- ...(input.processingConfig !== undefined &&
6819
- input.processingConfig !== null && {
6729
+ ...(input.expression != null && { expression: input.expression }),
6730
+ ...(input.processingConfig != null && {
6820
6731
  processingConfig: serializeAws_restJson1TransformProcessingConfig(input.processingConfig, context),
6821
6732
  }),
6822
- ...(input.variables !== undefined &&
6823
- input.variables !== null && { variables: serializeAws_restJson1ExpressionVariables(input.variables, context) }),
6733
+ ...(input.variables != null && { variables: serializeAws_restJson1ExpressionVariables(input.variables, context) }),
6824
6734
  };
6825
6735
  };
6826
6736
  const serializeAws_restJson1TransformProcessingConfig = (input, context) => {
6827
6737
  return {
6828
- ...(input.computeLocation !== undefined &&
6829
- input.computeLocation !== null && { computeLocation: input.computeLocation }),
6830
- ...(input.forwardingConfig !== undefined &&
6831
- input.forwardingConfig !== null && {
6738
+ ...(input.computeLocation != null && { computeLocation: input.computeLocation }),
6739
+ ...(input.forwardingConfig != null && {
6832
6740
  forwardingConfig: serializeAws_restJson1ForwardingConfig(input.forwardingConfig, context),
6833
6741
  }),
6834
6742
  };
6835
6743
  };
6836
6744
  const serializeAws_restJson1TumblingWindow = (input, context) => {
6837
6745
  return {
6838
- ...(input.interval !== undefined && input.interval !== null && { interval: input.interval }),
6839
- ...(input.offset !== undefined && input.offset !== null && { offset: input.offset }),
6746
+ ...(input.interval != null && { interval: input.interval }),
6747
+ ...(input.offset != null && { offset: input.offset }),
6840
6748
  };
6841
6749
  };
6842
6750
  const serializeAws_restJson1UserIdentity = (input, context) => {
6843
6751
  return {
6844
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
6752
+ ...(input.id != null && { id: input.id }),
6845
6753
  };
6846
6754
  };
6847
6755
  const serializeAws_restJson1VariableValue = (input, context) => {
6848
6756
  return {
6849
- ...(input.hierarchyId !== undefined && input.hierarchyId !== null && { hierarchyId: input.hierarchyId }),
6850
- ...(input.propertyId !== undefined && input.propertyId !== null && { propertyId: input.propertyId }),
6757
+ ...(input.hierarchyId != null && { hierarchyId: input.hierarchyId }),
6758
+ ...(input.propertyId != null && { propertyId: input.propertyId }),
6851
6759
  };
6852
6760
  };
6853
6761
  const serializeAws_restJson1Variant = (input, context) => {
6854
6762
  return {
6855
- ...(input.booleanValue !== undefined && input.booleanValue !== null && { booleanValue: input.booleanValue }),
6856
- ...(input.doubleValue !== undefined &&
6857
- input.doubleValue !== null && { doubleValue: (0, smithy_client_1.serializeFloat)(input.doubleValue) }),
6858
- ...(input.integerValue !== undefined && input.integerValue !== null && { integerValue: input.integerValue }),
6859
- ...(input.stringValue !== undefined && input.stringValue !== null && { stringValue: input.stringValue }),
6763
+ ...(input.booleanValue != null && { booleanValue: input.booleanValue }),
6764
+ ...(input.doubleValue != null && { doubleValue: (0, smithy_client_1.serializeFloat)(input.doubleValue) }),
6765
+ ...(input.integerValue != null && { integerValue: input.integerValue }),
6766
+ ...(input.stringValue != null && { stringValue: input.stringValue }),
6860
6767
  };
6861
6768
  };
6862
6769
  const deserializeAws_restJson1AccessPolicySummaries = (output, context) => {
@@ -6872,31 +6779,23 @@ const deserializeAws_restJson1AccessPolicySummaries = (output, context) => {
6872
6779
  };
6873
6780
  const deserializeAws_restJson1AccessPolicySummary = (output, context) => {
6874
6781
  return {
6875
- creationDate: output.creationDate !== undefined && output.creationDate !== null
6782
+ creationDate: output.creationDate != null
6876
6783
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
6877
6784
  : undefined,
6878
6785
  id: (0, smithy_client_1.expectString)(output.id),
6879
- identity: output.identity !== undefined && output.identity !== null
6880
- ? deserializeAws_restJson1Identity(output.identity, context)
6881
- : undefined,
6882
- lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
6786
+ identity: output.identity != null ? deserializeAws_restJson1Identity(output.identity, context) : undefined,
6787
+ lastUpdateDate: output.lastUpdateDate != null
6883
6788
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateDate)))
6884
6789
  : undefined,
6885
6790
  permission: (0, smithy_client_1.expectString)(output.permission),
6886
- resource: output.resource !== undefined && output.resource !== null
6887
- ? deserializeAws_restJson1Resource(output.resource, context)
6888
- : undefined,
6791
+ resource: output.resource != null ? deserializeAws_restJson1Resource(output.resource, context) : undefined,
6889
6792
  };
6890
6793
  };
6891
6794
  const deserializeAws_restJson1AggregatedValue = (output, context) => {
6892
6795
  return {
6893
6796
  quality: (0, smithy_client_1.expectString)(output.quality),
6894
- timestamp: output.timestamp !== undefined && output.timestamp !== null
6895
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timestamp)))
6896
- : undefined,
6897
- value: output.value !== undefined && output.value !== null
6898
- ? deserializeAws_restJson1Aggregates(output.value, context)
6899
- : undefined,
6797
+ timestamp: output.timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timestamp))) : undefined,
6798
+ value: output.value != null ? deserializeAws_restJson1Aggregates(output.value, context) : undefined,
6900
6799
  };
6901
6800
  };
6902
6801
  const deserializeAws_restJson1AggregatedValues = (output, context) => {
@@ -6930,9 +6829,7 @@ const deserializeAws_restJson1AssetCompositeModel = (output, context) => {
6930
6829
  return {
6931
6830
  description: (0, smithy_client_1.expectString)(output.description),
6932
6831
  name: (0, smithy_client_1.expectString)(output.name),
6933
- properties: output.properties !== undefined && output.properties !== null
6934
- ? deserializeAws_restJson1AssetProperties(output.properties, context)
6935
- : undefined,
6832
+ properties: output.properties != null ? deserializeAws_restJson1AssetProperties(output.properties, context) : undefined,
6936
6833
  type: (0, smithy_client_1.expectString)(output.type),
6937
6834
  };
6938
6835
  };
@@ -6992,9 +6889,7 @@ const deserializeAws_restJson1AssetModelCompositeModel = (output, context) => {
6992
6889
  return {
6993
6890
  description: (0, smithy_client_1.expectString)(output.description),
6994
6891
  name: (0, smithy_client_1.expectString)(output.name),
6995
- properties: output.properties !== undefined && output.properties !== null
6996
- ? deserializeAws_restJson1AssetModelProperties(output.properties, context)
6997
- : undefined,
6892
+ properties: output.properties != null ? deserializeAws_restJson1AssetModelProperties(output.properties, context) : undefined,
6998
6893
  type: (0, smithy_client_1.expectString)(output.type),
6999
6894
  };
7000
6895
  };
@@ -7044,17 +6939,13 @@ const deserializeAws_restJson1AssetModelProperty = (output, context) => {
7044
6939
  dataTypeSpec: (0, smithy_client_1.expectString)(output.dataTypeSpec),
7045
6940
  id: (0, smithy_client_1.expectString)(output.id),
7046
6941
  name: (0, smithy_client_1.expectString)(output.name),
7047
- type: output.type !== undefined && output.type !== null
7048
- ? deserializeAws_restJson1PropertyType(output.type, context)
7049
- : undefined,
6942
+ type: output.type != null ? deserializeAws_restJson1PropertyType(output.type, context) : undefined,
7050
6943
  unit: (0, smithy_client_1.expectString)(output.unit),
7051
6944
  };
7052
6945
  };
7053
6946
  const deserializeAws_restJson1AssetModelStatus = (output, context) => {
7054
6947
  return {
7055
- error: output.error !== undefined && output.error !== null
7056
- ? deserializeAws_restJson1ErrorDetails(output.error, context)
7057
- : undefined,
6948
+ error: output.error != null ? deserializeAws_restJson1ErrorDetails(output.error, context) : undefined,
7058
6949
  state: (0, smithy_client_1.expectString)(output.state),
7059
6950
  };
7060
6951
  };
@@ -7072,18 +6963,16 @@ const deserializeAws_restJson1AssetModelSummaries = (output, context) => {
7072
6963
  const deserializeAws_restJson1AssetModelSummary = (output, context) => {
7073
6964
  return {
7074
6965
  arn: (0, smithy_client_1.expectString)(output.arn),
7075
- creationDate: output.creationDate !== undefined && output.creationDate !== null
6966
+ creationDate: output.creationDate != null
7076
6967
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
7077
6968
  : undefined,
7078
6969
  description: (0, smithy_client_1.expectString)(output.description),
7079
6970
  id: (0, smithy_client_1.expectString)(output.id),
7080
- lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
6971
+ lastUpdateDate: output.lastUpdateDate != null
7081
6972
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateDate)))
7082
6973
  : undefined,
7083
6974
  name: (0, smithy_client_1.expectString)(output.name),
7084
- status: output.status !== undefined && output.status !== null
7085
- ? deserializeAws_restJson1AssetModelStatus(output.status, context)
7086
- : undefined,
6975
+ status: output.status != null ? deserializeAws_restJson1AssetModelStatus(output.status, context) : undefined,
7087
6976
  };
7088
6977
  };
7089
6978
  const deserializeAws_restJson1AssetProperties = (output, context) => {
@@ -7104,7 +6993,7 @@ const deserializeAws_restJson1AssetProperty = (output, context) => {
7104
6993
  dataTypeSpec: (0, smithy_client_1.expectString)(output.dataTypeSpec),
7105
6994
  id: (0, smithy_client_1.expectString)(output.id),
7106
6995
  name: (0, smithy_client_1.expectString)(output.name),
7107
- notification: output.notification !== undefined && output.notification !== null
6996
+ notification: output.notification != null
7108
6997
  ? deserializeAws_restJson1PropertyNotification(output.notification, context)
7109
6998
  : undefined,
7110
6999
  unit: (0, smithy_client_1.expectString)(output.unit),
@@ -7113,12 +7002,8 @@ const deserializeAws_restJson1AssetProperty = (output, context) => {
7113
7002
  const deserializeAws_restJson1AssetPropertyValue = (output, context) => {
7114
7003
  return {
7115
7004
  quality: (0, smithy_client_1.expectString)(output.quality),
7116
- timestamp: output.timestamp !== undefined && output.timestamp !== null
7117
- ? deserializeAws_restJson1TimeInNanos(output.timestamp, context)
7118
- : undefined,
7119
- value: output.value !== undefined && output.value !== null
7120
- ? deserializeAws_restJson1Variant(output.value, context)
7121
- : undefined,
7005
+ timestamp: output.timestamp != null ? deserializeAws_restJson1TimeInNanos(output.timestamp, context) : undefined,
7006
+ value: output.value != null ? deserializeAws_restJson1Variant(output.value, context) : undefined,
7122
7007
  };
7123
7008
  };
7124
7009
  const deserializeAws_restJson1AssetPropertyValueHistory = (output, context) => {
@@ -7145,7 +7030,7 @@ const deserializeAws_restJson1AssetRelationshipSummaries = (output, context) =>
7145
7030
  };
7146
7031
  const deserializeAws_restJson1AssetRelationshipSummary = (output, context) => {
7147
7032
  return {
7148
- hierarchyInfo: output.hierarchyInfo !== undefined && output.hierarchyInfo !== null
7033
+ hierarchyInfo: output.hierarchyInfo != null
7149
7034
  ? deserializeAws_restJson1AssetHierarchyInfo(output.hierarchyInfo, context)
7150
7035
  : undefined,
7151
7036
  relationshipType: (0, smithy_client_1.expectString)(output.relationshipType),
@@ -7153,9 +7038,7 @@ const deserializeAws_restJson1AssetRelationshipSummary = (output, context) => {
7153
7038
  };
7154
7039
  const deserializeAws_restJson1AssetStatus = (output, context) => {
7155
7040
  return {
7156
- error: output.error !== undefined && output.error !== null
7157
- ? deserializeAws_restJson1ErrorDetails(output.error, context)
7158
- : undefined,
7041
+ error: output.error != null ? deserializeAws_restJson1ErrorDetails(output.error, context) : undefined,
7159
7042
  state: (0, smithy_client_1.expectString)(output.state),
7160
7043
  };
7161
7044
  };
@@ -7174,21 +7057,17 @@ const deserializeAws_restJson1AssetSummary = (output, context) => {
7174
7057
  return {
7175
7058
  arn: (0, smithy_client_1.expectString)(output.arn),
7176
7059
  assetModelId: (0, smithy_client_1.expectString)(output.assetModelId),
7177
- creationDate: output.creationDate !== undefined && output.creationDate !== null
7060
+ creationDate: output.creationDate != null
7178
7061
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
7179
7062
  : undefined,
7180
7063
  description: (0, smithy_client_1.expectString)(output.description),
7181
- hierarchies: output.hierarchies !== undefined && output.hierarchies !== null
7182
- ? deserializeAws_restJson1AssetHierarchies(output.hierarchies, context)
7183
- : undefined,
7064
+ hierarchies: output.hierarchies != null ? deserializeAws_restJson1AssetHierarchies(output.hierarchies, context) : undefined,
7184
7065
  id: (0, smithy_client_1.expectString)(output.id),
7185
- lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
7066
+ lastUpdateDate: output.lastUpdateDate != null
7186
7067
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateDate)))
7187
7068
  : undefined,
7188
7069
  name: (0, smithy_client_1.expectString)(output.name),
7189
- status: output.status !== undefined && output.status !== null
7190
- ? deserializeAws_restJson1AssetStatus(output.status, context)
7191
- : undefined,
7070
+ status: output.status != null ? deserializeAws_restJson1AssetStatus(output.status, context) : undefined,
7192
7071
  };
7193
7072
  };
7194
7073
  const deserializeAws_restJson1AssociatedAssetsSummaries = (output, context) => {
@@ -7206,21 +7085,17 @@ const deserializeAws_restJson1AssociatedAssetsSummary = (output, context) => {
7206
7085
  return {
7207
7086
  arn: (0, smithy_client_1.expectString)(output.arn),
7208
7087
  assetModelId: (0, smithy_client_1.expectString)(output.assetModelId),
7209
- creationDate: output.creationDate !== undefined && output.creationDate !== null
7088
+ creationDate: output.creationDate != null
7210
7089
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
7211
7090
  : undefined,
7212
7091
  description: (0, smithy_client_1.expectString)(output.description),
7213
- hierarchies: output.hierarchies !== undefined && output.hierarchies !== null
7214
- ? deserializeAws_restJson1AssetHierarchies(output.hierarchies, context)
7215
- : undefined,
7092
+ hierarchies: output.hierarchies != null ? deserializeAws_restJson1AssetHierarchies(output.hierarchies, context) : undefined,
7216
7093
  id: (0, smithy_client_1.expectString)(output.id),
7217
- lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
7094
+ lastUpdateDate: output.lastUpdateDate != null
7218
7095
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateDate)))
7219
7096
  : undefined,
7220
7097
  name: (0, smithy_client_1.expectString)(output.name),
7221
- status: output.status !== undefined && output.status !== null
7222
- ? deserializeAws_restJson1AssetStatus(output.status, context)
7223
- : undefined,
7098
+ status: output.status != null ? deserializeAws_restJson1AssetStatus(output.status, context) : undefined,
7224
7099
  };
7225
7100
  };
7226
7101
  const deserializeAws_restJson1Attribute = (output, context) => {
@@ -7271,7 +7146,7 @@ const deserializeAws_restJson1BatchGetAssetPropertyAggregatesErrorEntry = (outpu
7271
7146
  const deserializeAws_restJson1BatchGetAssetPropertyAggregatesErrorInfo = (output, context) => {
7272
7147
  return {
7273
7148
  errorCode: (0, smithy_client_1.expectString)(output.errorCode),
7274
- errorTimestamp: output.errorTimestamp !== undefined && output.errorTimestamp !== null
7149
+ errorTimestamp: output.errorTimestamp != null
7275
7150
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.errorTimestamp)))
7276
7151
  : undefined,
7277
7152
  };
@@ -7291,7 +7166,7 @@ const deserializeAws_restJson1BatchGetAssetPropertyAggregatesSkippedEntry = (out
7291
7166
  return {
7292
7167
  completionStatus: (0, smithy_client_1.expectString)(output.completionStatus),
7293
7168
  entryId: (0, smithy_client_1.expectString)(output.entryId),
7294
- errorInfo: output.errorInfo !== undefined && output.errorInfo !== null
7169
+ errorInfo: output.errorInfo != null
7295
7170
  ? deserializeAws_restJson1BatchGetAssetPropertyAggregatesErrorInfo(output.errorInfo, context)
7296
7171
  : undefined,
7297
7172
  };
@@ -7309,7 +7184,7 @@ const deserializeAws_restJson1BatchGetAssetPropertyAggregatesSuccessEntries = (o
7309
7184
  };
7310
7185
  const deserializeAws_restJson1BatchGetAssetPropertyAggregatesSuccessEntry = (output, context) => {
7311
7186
  return {
7312
- aggregatedValues: output.aggregatedValues !== undefined && output.aggregatedValues !== null
7187
+ aggregatedValues: output.aggregatedValues != null
7313
7188
  ? deserializeAws_restJson1AggregatedValues(output.aggregatedValues, context)
7314
7189
  : undefined,
7315
7190
  entryId: (0, smithy_client_1.expectString)(output.entryId),
@@ -7336,7 +7211,7 @@ const deserializeAws_restJson1BatchGetAssetPropertyValueErrorEntry = (output, co
7336
7211
  const deserializeAws_restJson1BatchGetAssetPropertyValueErrorInfo = (output, context) => {
7337
7212
  return {
7338
7213
  errorCode: (0, smithy_client_1.expectString)(output.errorCode),
7339
- errorTimestamp: output.errorTimestamp !== undefined && output.errorTimestamp !== null
7214
+ errorTimestamp: output.errorTimestamp != null
7340
7215
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.errorTimestamp)))
7341
7216
  : undefined,
7342
7217
  };
@@ -7362,7 +7237,7 @@ const deserializeAws_restJson1BatchGetAssetPropertyValueHistoryErrorEntry = (out
7362
7237
  const deserializeAws_restJson1BatchGetAssetPropertyValueHistoryErrorInfo = (output, context) => {
7363
7238
  return {
7364
7239
  errorCode: (0, smithy_client_1.expectString)(output.errorCode),
7365
- errorTimestamp: output.errorTimestamp !== undefined && output.errorTimestamp !== null
7240
+ errorTimestamp: output.errorTimestamp != null
7366
7241
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.errorTimestamp)))
7367
7242
  : undefined,
7368
7243
  };
@@ -7382,7 +7257,7 @@ const deserializeAws_restJson1BatchGetAssetPropertyValueHistorySkippedEntry = (o
7382
7257
  return {
7383
7258
  completionStatus: (0, smithy_client_1.expectString)(output.completionStatus),
7384
7259
  entryId: (0, smithy_client_1.expectString)(output.entryId),
7385
- errorInfo: output.errorInfo !== undefined && output.errorInfo !== null
7260
+ errorInfo: output.errorInfo != null
7386
7261
  ? deserializeAws_restJson1BatchGetAssetPropertyValueHistoryErrorInfo(output.errorInfo, context)
7387
7262
  : undefined,
7388
7263
  };
@@ -7400,7 +7275,7 @@ const deserializeAws_restJson1BatchGetAssetPropertyValueHistorySuccessEntries =
7400
7275
  };
7401
7276
  const deserializeAws_restJson1BatchGetAssetPropertyValueHistorySuccessEntry = (output, context) => {
7402
7277
  return {
7403
- assetPropertyValueHistory: output.assetPropertyValueHistory !== undefined && output.assetPropertyValueHistory !== null
7278
+ assetPropertyValueHistory: output.assetPropertyValueHistory != null
7404
7279
  ? deserializeAws_restJson1AssetPropertyValueHistory(output.assetPropertyValueHistory, context)
7405
7280
  : undefined,
7406
7281
  entryId: (0, smithy_client_1.expectString)(output.entryId),
@@ -7421,7 +7296,7 @@ const deserializeAws_restJson1BatchGetAssetPropertyValueSkippedEntry = (output,
7421
7296
  return {
7422
7297
  completionStatus: (0, smithy_client_1.expectString)(output.completionStatus),
7423
7298
  entryId: (0, smithy_client_1.expectString)(output.entryId),
7424
- errorInfo: output.errorInfo !== undefined && output.errorInfo !== null
7299
+ errorInfo: output.errorInfo != null
7425
7300
  ? deserializeAws_restJson1BatchGetAssetPropertyValueErrorInfo(output.errorInfo, context)
7426
7301
  : undefined,
7427
7302
  };
@@ -7439,7 +7314,7 @@ const deserializeAws_restJson1BatchGetAssetPropertyValueSuccessEntries = (output
7439
7314
  };
7440
7315
  const deserializeAws_restJson1BatchGetAssetPropertyValueSuccessEntry = (output, context) => {
7441
7316
  return {
7442
- assetPropertyValue: output.assetPropertyValue !== undefined && output.assetPropertyValue !== null
7317
+ assetPropertyValue: output.assetPropertyValue != null
7443
7318
  ? deserializeAws_restJson1AssetPropertyValue(output.assetPropertyValue, context)
7444
7319
  : undefined,
7445
7320
  entryId: (0, smithy_client_1.expectString)(output.entryId),
@@ -7449,9 +7324,7 @@ const deserializeAws_restJson1BatchPutAssetPropertyError = (output, context) =>
7449
7324
  return {
7450
7325
  errorCode: (0, smithy_client_1.expectString)(output.errorCode),
7451
7326
  errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
7452
- timestamps: output.timestamps !== undefined && output.timestamps !== null
7453
- ? deserializeAws_restJson1Timestamps(output.timestamps, context)
7454
- : undefined,
7327
+ timestamps: output.timestamps != null ? deserializeAws_restJson1Timestamps(output.timestamps, context) : undefined,
7455
7328
  };
7456
7329
  };
7457
7330
  const deserializeAws_restJson1BatchPutAssetPropertyErrorEntries = (output, context) => {
@@ -7468,9 +7341,7 @@ const deserializeAws_restJson1BatchPutAssetPropertyErrorEntries = (output, conte
7468
7341
  const deserializeAws_restJson1BatchPutAssetPropertyErrorEntry = (output, context) => {
7469
7342
  return {
7470
7343
  entryId: (0, smithy_client_1.expectString)(output.entryId),
7471
- errors: output.errors !== undefined && output.errors !== null
7472
- ? deserializeAws_restJson1BatchPutAssetPropertyErrors(output.errors, context)
7473
- : undefined,
7344
+ errors: output.errors != null ? deserializeAws_restJson1BatchPutAssetPropertyErrors(output.errors, context) : undefined,
7474
7345
  };
7475
7346
  };
7476
7347
  const deserializeAws_restJson1BatchPutAssetPropertyErrors = (output, context) => {
@@ -7486,9 +7357,7 @@ const deserializeAws_restJson1BatchPutAssetPropertyErrors = (output, context) =>
7486
7357
  };
7487
7358
  const deserializeAws_restJson1CompositeModelProperty = (output, context) => {
7488
7359
  return {
7489
- assetProperty: output.assetProperty !== undefined && output.assetProperty !== null
7490
- ? deserializeAws_restJson1Property(output.assetProperty, context)
7491
- : undefined,
7360
+ assetProperty: output.assetProperty != null ? deserializeAws_restJson1Property(output.assetProperty, context) : undefined,
7492
7361
  name: (0, smithy_client_1.expectString)(output.name),
7493
7362
  type: (0, smithy_client_1.expectString)(output.type),
7494
7363
  };
@@ -7501,9 +7370,7 @@ const deserializeAws_restJson1ConfigurationErrorDetails = (output, context) => {
7501
7370
  };
7502
7371
  const deserializeAws_restJson1ConfigurationStatus = (output, context) => {
7503
7372
  return {
7504
- error: output.error !== undefined && output.error !== null
7505
- ? deserializeAws_restJson1ConfigurationErrorDetails(output.error, context)
7506
- : undefined,
7373
+ error: output.error != null ? deserializeAws_restJson1ConfigurationErrorDetails(output.error, context) : undefined,
7507
7374
  state: (0, smithy_client_1.expectString)(output.state),
7508
7375
  };
7509
7376
  };
@@ -7526,12 +7393,12 @@ const deserializeAws_restJson1DashboardSummaries = (output, context) => {
7526
7393
  };
7527
7394
  const deserializeAws_restJson1DashboardSummary = (output, context) => {
7528
7395
  return {
7529
- creationDate: output.creationDate !== undefined && output.creationDate !== null
7396
+ creationDate: output.creationDate != null
7530
7397
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
7531
7398
  : undefined,
7532
7399
  description: (0, smithy_client_1.expectString)(output.description),
7533
7400
  id: (0, smithy_client_1.expectString)(output.id),
7534
- lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
7401
+ lastUpdateDate: output.lastUpdateDate != null
7535
7402
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateDate)))
7536
7403
  : undefined,
7537
7404
  name: (0, smithy_client_1.expectString)(output.name),
@@ -7557,18 +7424,14 @@ const deserializeAws_restJson1DetailedErrors = (output, context) => {
7557
7424
  const deserializeAws_restJson1ErrorDetails = (output, context) => {
7558
7425
  return {
7559
7426
  code: (0, smithy_client_1.expectString)(output.code),
7560
- details: output.details !== undefined && output.details !== null
7561
- ? deserializeAws_restJson1DetailedErrors(output.details, context)
7562
- : undefined,
7427
+ details: output.details != null ? deserializeAws_restJson1DetailedErrors(output.details, context) : undefined,
7563
7428
  message: (0, smithy_client_1.expectString)(output.message),
7564
7429
  };
7565
7430
  };
7566
7431
  const deserializeAws_restJson1ExpressionVariable = (output, context) => {
7567
7432
  return {
7568
7433
  name: (0, smithy_client_1.expectString)(output.name),
7569
- value: output.value !== undefined && output.value !== null
7570
- ? deserializeAws_restJson1VariableValue(output.value, context)
7571
- : undefined,
7434
+ value: output.value != null ? deserializeAws_restJson1VariableValue(output.value, context) : undefined,
7572
7435
  };
7573
7436
  };
7574
7437
  const deserializeAws_restJson1ExpressionVariables = (output, context) => {
@@ -7606,12 +7469,8 @@ const deserializeAws_restJson1GatewayCapabilitySummary = (output, context) => {
7606
7469
  };
7607
7470
  const deserializeAws_restJson1GatewayPlatform = (output, context) => {
7608
7471
  return {
7609
- greengrass: output.greengrass !== undefined && output.greengrass !== null
7610
- ? deserializeAws_restJson1Greengrass(output.greengrass, context)
7611
- : undefined,
7612
- greengrassV2: output.greengrassV2 !== undefined && output.greengrassV2 !== null
7613
- ? deserializeAws_restJson1GreengrassV2(output.greengrassV2, context)
7614
- : undefined,
7472
+ greengrass: output.greengrass != null ? deserializeAws_restJson1Greengrass(output.greengrass, context) : undefined,
7473
+ greengrassV2: output.greengrassV2 != null ? deserializeAws_restJson1GreengrassV2(output.greengrassV2, context) : undefined,
7615
7474
  };
7616
7475
  };
7617
7476
  const deserializeAws_restJson1GatewaySummaries = (output, context) => {
@@ -7627,18 +7486,18 @@ const deserializeAws_restJson1GatewaySummaries = (output, context) => {
7627
7486
  };
7628
7487
  const deserializeAws_restJson1GatewaySummary = (output, context) => {
7629
7488
  return {
7630
- creationDate: output.creationDate !== undefined && output.creationDate !== null
7489
+ creationDate: output.creationDate != null
7631
7490
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
7632
7491
  : undefined,
7633
- gatewayCapabilitySummaries: output.gatewayCapabilitySummaries !== undefined && output.gatewayCapabilitySummaries !== null
7492
+ gatewayCapabilitySummaries: output.gatewayCapabilitySummaries != null
7634
7493
  ? deserializeAws_restJson1GatewayCapabilitySummaries(output.gatewayCapabilitySummaries, context)
7635
7494
  : undefined,
7636
7495
  gatewayId: (0, smithy_client_1.expectString)(output.gatewayId),
7637
7496
  gatewayName: (0, smithy_client_1.expectString)(output.gatewayName),
7638
- gatewayPlatform: output.gatewayPlatform !== undefined && output.gatewayPlatform !== null
7497
+ gatewayPlatform: output.gatewayPlatform != null
7639
7498
  ? deserializeAws_restJson1GatewayPlatform(output.gatewayPlatform, context)
7640
7499
  : undefined,
7641
- lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
7500
+ lastUpdateDate: output.lastUpdateDate != null
7642
7501
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateDate)))
7643
7502
  : undefined,
7644
7503
  };
@@ -7670,18 +7529,10 @@ const deserializeAws_restJson1IAMUserIdentity = (output, context) => {
7670
7529
  };
7671
7530
  const deserializeAws_restJson1Identity = (output, context) => {
7672
7531
  return {
7673
- group: output.group !== undefined && output.group !== null
7674
- ? deserializeAws_restJson1GroupIdentity(output.group, context)
7675
- : undefined,
7676
- iamRole: output.iamRole !== undefined && output.iamRole !== null
7677
- ? deserializeAws_restJson1IAMRoleIdentity(output.iamRole, context)
7678
- : undefined,
7679
- iamUser: output.iamUser !== undefined && output.iamUser !== null
7680
- ? deserializeAws_restJson1IAMUserIdentity(output.iamUser, context)
7681
- : undefined,
7682
- user: output.user !== undefined && output.user !== null
7683
- ? deserializeAws_restJson1UserIdentity(output.user, context)
7684
- : undefined,
7532
+ group: output.group != null ? deserializeAws_restJson1GroupIdentity(output.group, context) : undefined,
7533
+ iamRole: output.iamRole != null ? deserializeAws_restJson1IAMRoleIdentity(output.iamRole, context) : undefined,
7534
+ iamUser: output.iamUser != null ? deserializeAws_restJson1IAMUserIdentity(output.iamUser, context) : undefined,
7535
+ user: output.user != null ? deserializeAws_restJson1UserIdentity(output.user, context) : undefined,
7685
7536
  };
7686
7537
  };
7687
7538
  const deserializeAws_restJson1ImageLocation = (output, context) => {
@@ -7692,12 +7543,8 @@ const deserializeAws_restJson1ImageLocation = (output, context) => {
7692
7543
  };
7693
7544
  const deserializeAws_restJson1InterpolatedAssetPropertyValue = (output, context) => {
7694
7545
  return {
7695
- timestamp: output.timestamp !== undefined && output.timestamp !== null
7696
- ? deserializeAws_restJson1TimeInNanos(output.timestamp, context)
7697
- : undefined,
7698
- value: output.value !== undefined && output.value !== null
7699
- ? deserializeAws_restJson1Variant(output.value, context)
7700
- : undefined,
7546
+ timestamp: output.timestamp != null ? deserializeAws_restJson1TimeInNanos(output.timestamp, context) : undefined,
7547
+ value: output.value != null ? deserializeAws_restJson1Variant(output.value, context) : undefined,
7701
7548
  };
7702
7549
  };
7703
7550
  const deserializeAws_restJson1InterpolatedAssetPropertyValues = (output, context) => {
@@ -7718,14 +7565,14 @@ const deserializeAws_restJson1LoggingOptions = (output, context) => {
7718
7565
  };
7719
7566
  const deserializeAws_restJson1Measurement = (output, context) => {
7720
7567
  return {
7721
- processingConfig: output.processingConfig !== undefined && output.processingConfig !== null
7568
+ processingConfig: output.processingConfig != null
7722
7569
  ? deserializeAws_restJson1MeasurementProcessingConfig(output.processingConfig, context)
7723
7570
  : undefined,
7724
7571
  };
7725
7572
  };
7726
7573
  const deserializeAws_restJson1MeasurementProcessingConfig = (output, context) => {
7727
7574
  return {
7728
- forwardingConfig: output.forwardingConfig !== undefined && output.forwardingConfig !== null
7575
+ forwardingConfig: output.forwardingConfig != null
7729
7576
  ? deserializeAws_restJson1ForwardingConfig(output.forwardingConfig, context)
7730
7577
  : undefined,
7731
7578
  };
@@ -7733,15 +7580,11 @@ const deserializeAws_restJson1MeasurementProcessingConfig = (output, context) =>
7733
7580
  const deserializeAws_restJson1Metric = (output, context) => {
7734
7581
  return {
7735
7582
  expression: (0, smithy_client_1.expectString)(output.expression),
7736
- processingConfig: output.processingConfig !== undefined && output.processingConfig !== null
7583
+ processingConfig: output.processingConfig != null
7737
7584
  ? deserializeAws_restJson1MetricProcessingConfig(output.processingConfig, context)
7738
7585
  : undefined,
7739
- variables: output.variables !== undefined && output.variables !== null
7740
- ? deserializeAws_restJson1ExpressionVariables(output.variables, context)
7741
- : undefined,
7742
- window: output.window !== undefined && output.window !== null
7743
- ? deserializeAws_restJson1MetricWindow(output.window, context)
7744
- : undefined,
7586
+ variables: output.variables != null ? deserializeAws_restJson1ExpressionVariables(output.variables, context) : undefined,
7587
+ window: output.window != null ? deserializeAws_restJson1MetricWindow(output.window, context) : undefined,
7745
7588
  };
7746
7589
  };
7747
7590
  const deserializeAws_restJson1MetricProcessingConfig = (output, context) => {
@@ -7751,9 +7594,7 @@ const deserializeAws_restJson1MetricProcessingConfig = (output, context) => {
7751
7594
  };
7752
7595
  const deserializeAws_restJson1MetricWindow = (output, context) => {
7753
7596
  return {
7754
- tumbling: output.tumbling !== undefined && output.tumbling !== null
7755
- ? deserializeAws_restJson1TumblingWindow(output.tumbling, context)
7756
- : undefined,
7597
+ tumbling: output.tumbling != null ? deserializeAws_restJson1TumblingWindow(output.tumbling, context) : undefined,
7757
7598
  };
7758
7599
  };
7759
7600
  const deserializeAws_restJson1MonitorErrorDetails = (output, context) => {
@@ -7764,7 +7605,7 @@ const deserializeAws_restJson1MonitorErrorDetails = (output, context) => {
7764
7605
  };
7765
7606
  const deserializeAws_restJson1MultiLayerStorage = (output, context) => {
7766
7607
  return {
7767
- customerManagedS3Storage: output.customerManagedS3Storage !== undefined && output.customerManagedS3Storage !== null
7608
+ customerManagedS3Storage: output.customerManagedS3Storage != null
7768
7609
  ? deserializeAws_restJson1CustomerManagedS3Storage(output.customerManagedS3Storage, context)
7769
7610
  : undefined,
7770
7611
  };
@@ -7776,9 +7617,7 @@ const deserializeAws_restJson1PortalResource = (output, context) => {
7776
7617
  };
7777
7618
  const deserializeAws_restJson1PortalStatus = (output, context) => {
7778
7619
  return {
7779
- error: output.error !== undefined && output.error !== null
7780
- ? deserializeAws_restJson1MonitorErrorDetails(output.error, context)
7781
- : undefined,
7620
+ error: output.error != null ? deserializeAws_restJson1MonitorErrorDetails(output.error, context) : undefined,
7782
7621
  state: (0, smithy_client_1.expectString)(output.state),
7783
7622
  };
7784
7623
  };
@@ -7795,20 +7634,18 @@ const deserializeAws_restJson1PortalSummaries = (output, context) => {
7795
7634
  };
7796
7635
  const deserializeAws_restJson1PortalSummary = (output, context) => {
7797
7636
  return {
7798
- creationDate: output.creationDate !== undefined && output.creationDate !== null
7637
+ creationDate: output.creationDate != null
7799
7638
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
7800
7639
  : undefined,
7801
7640
  description: (0, smithy_client_1.expectString)(output.description),
7802
7641
  id: (0, smithy_client_1.expectString)(output.id),
7803
- lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
7642
+ lastUpdateDate: output.lastUpdateDate != null
7804
7643
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateDate)))
7805
7644
  : undefined,
7806
7645
  name: (0, smithy_client_1.expectString)(output.name),
7807
7646
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
7808
7647
  startUrl: (0, smithy_client_1.expectString)(output.startUrl),
7809
- status: output.status !== undefined && output.status !== null
7810
- ? deserializeAws_restJson1PortalStatus(output.status, context)
7811
- : undefined,
7648
+ status: output.status != null ? deserializeAws_restJson1PortalStatus(output.status, context) : undefined,
7812
7649
  };
7813
7650
  };
7814
7651
  const deserializeAws_restJson1ProjectResource = (output, context) => {
@@ -7829,12 +7666,12 @@ const deserializeAws_restJson1ProjectSummaries = (output, context) => {
7829
7666
  };
7830
7667
  const deserializeAws_restJson1ProjectSummary = (output, context) => {
7831
7668
  return {
7832
- creationDate: output.creationDate !== undefined && output.creationDate !== null
7669
+ creationDate: output.creationDate != null
7833
7670
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
7834
7671
  : undefined,
7835
7672
  description: (0, smithy_client_1.expectString)(output.description),
7836
7673
  id: (0, smithy_client_1.expectString)(output.id),
7837
- lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
7674
+ lastUpdateDate: output.lastUpdateDate != null
7838
7675
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateDate)))
7839
7676
  : undefined,
7840
7677
  name: (0, smithy_client_1.expectString)(output.name),
@@ -7846,12 +7683,10 @@ const deserializeAws_restJson1Property = (output, context) => {
7846
7683
  dataType: (0, smithy_client_1.expectString)(output.dataType),
7847
7684
  id: (0, smithy_client_1.expectString)(output.id),
7848
7685
  name: (0, smithy_client_1.expectString)(output.name),
7849
- notification: output.notification !== undefined && output.notification !== null
7686
+ notification: output.notification != null
7850
7687
  ? deserializeAws_restJson1PropertyNotification(output.notification, context)
7851
7688
  : undefined,
7852
- type: output.type !== undefined && output.type !== null
7853
- ? deserializeAws_restJson1PropertyType(output.type, context)
7854
- : undefined,
7689
+ type: output.type != null ? deserializeAws_restJson1PropertyType(output.type, context) : undefined,
7855
7690
  unit: (0, smithy_client_1.expectString)(output.unit),
7856
7691
  };
7857
7692
  };
@@ -7863,28 +7698,16 @@ const deserializeAws_restJson1PropertyNotification = (output, context) => {
7863
7698
  };
7864
7699
  const deserializeAws_restJson1PropertyType = (output, context) => {
7865
7700
  return {
7866
- attribute: output.attribute !== undefined && output.attribute !== null
7867
- ? deserializeAws_restJson1Attribute(output.attribute, context)
7868
- : undefined,
7869
- measurement: output.measurement !== undefined && output.measurement !== null
7870
- ? deserializeAws_restJson1Measurement(output.measurement, context)
7871
- : undefined,
7872
- metric: output.metric !== undefined && output.metric !== null
7873
- ? deserializeAws_restJson1Metric(output.metric, context)
7874
- : undefined,
7875
- transform: output.transform !== undefined && output.transform !== null
7876
- ? deserializeAws_restJson1Transform(output.transform, context)
7877
- : undefined,
7701
+ attribute: output.attribute != null ? deserializeAws_restJson1Attribute(output.attribute, context) : undefined,
7702
+ measurement: output.measurement != null ? deserializeAws_restJson1Measurement(output.measurement, context) : undefined,
7703
+ metric: output.metric != null ? deserializeAws_restJson1Metric(output.metric, context) : undefined,
7704
+ transform: output.transform != null ? deserializeAws_restJson1Transform(output.transform, context) : undefined,
7878
7705
  };
7879
7706
  };
7880
7707
  const deserializeAws_restJson1Resource = (output, context) => {
7881
7708
  return {
7882
- portal: output.portal !== undefined && output.portal !== null
7883
- ? deserializeAws_restJson1PortalResource(output.portal, context)
7884
- : undefined,
7885
- project: output.project !== undefined && output.project !== null
7886
- ? deserializeAws_restJson1ProjectResource(output.project, context)
7887
- : undefined,
7709
+ portal: output.portal != null ? deserializeAws_restJson1PortalResource(output.portal, context) : undefined,
7710
+ project: output.project != null ? deserializeAws_restJson1ProjectResource(output.project, context) : undefined,
7888
7711
  };
7889
7712
  };
7890
7713
  const deserializeAws_restJson1RetentionPeriod = (output, context) => {
@@ -7928,11 +7751,11 @@ const deserializeAws_restJson1TimeSeriesSummary = (output, context) => {
7928
7751
  dataType: (0, smithy_client_1.expectString)(output.dataType),
7929
7752
  dataTypeSpec: (0, smithy_client_1.expectString)(output.dataTypeSpec),
7930
7753
  propertyId: (0, smithy_client_1.expectString)(output.propertyId),
7931
- timeSeriesCreationDate: output.timeSeriesCreationDate !== undefined && output.timeSeriesCreationDate !== null
7754
+ timeSeriesCreationDate: output.timeSeriesCreationDate != null
7932
7755
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timeSeriesCreationDate)))
7933
7756
  : undefined,
7934
7757
  timeSeriesId: (0, smithy_client_1.expectString)(output.timeSeriesId),
7935
- timeSeriesLastUpdateDate: output.timeSeriesLastUpdateDate !== undefined && output.timeSeriesLastUpdateDate !== null
7758
+ timeSeriesLastUpdateDate: output.timeSeriesLastUpdateDate != null
7936
7759
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timeSeriesLastUpdateDate)))
7937
7760
  : undefined,
7938
7761
  };
@@ -7951,18 +7774,16 @@ const deserializeAws_restJson1Timestamps = (output, context) => {
7951
7774
  const deserializeAws_restJson1Transform = (output, context) => {
7952
7775
  return {
7953
7776
  expression: (0, smithy_client_1.expectString)(output.expression),
7954
- processingConfig: output.processingConfig !== undefined && output.processingConfig !== null
7777
+ processingConfig: output.processingConfig != null
7955
7778
  ? deserializeAws_restJson1TransformProcessingConfig(output.processingConfig, context)
7956
7779
  : undefined,
7957
- variables: output.variables !== undefined && output.variables !== null
7958
- ? deserializeAws_restJson1ExpressionVariables(output.variables, context)
7959
- : undefined,
7780
+ variables: output.variables != null ? deserializeAws_restJson1ExpressionVariables(output.variables, context) : undefined,
7960
7781
  };
7961
7782
  };
7962
7783
  const deserializeAws_restJson1TransformProcessingConfig = (output, context) => {
7963
7784
  return {
7964
7785
  computeLocation: (0, smithy_client_1.expectString)(output.computeLocation),
7965
- forwardingConfig: output.forwardingConfig !== undefined && output.forwardingConfig !== null
7786
+ forwardingConfig: output.forwardingConfig != null
7966
7787
  ? deserializeAws_restJson1ForwardingConfig(output.forwardingConfig, context)
7967
7788
  : undefined,
7968
7789
  };
@@ -8023,6 +7844,9 @@ const loadRestJsonErrorCode = (output, data) => {
8023
7844
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
8024
7845
  const sanitizeErrorCode = (rawValue) => {
8025
7846
  let cleanValue = rawValue;
7847
+ if (typeof cleanValue === "number") {
7848
+ cleanValue = cleanValue.toString();
7849
+ }
8026
7850
  if (cleanValue.indexOf(":") >= 0) {
8027
7851
  cleanValue = cleanValue.split(":")[0];
8028
7852
  }