@aws-sdk/client-iotsitewise 3.28.0 → 3.32.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.
@@ -209,10 +209,15 @@ import {
209
209
  } from "@aws-sdk/protocol-http";
210
210
  import {
211
211
  expectBoolean as __expectBoolean,
212
- expectInt as __expectInt,
212
+ expectInt32 as __expectInt32,
213
+ expectLong as __expectLong,
214
+ expectNonNull as __expectNonNull,
215
+ expectNumber as __expectNumber,
216
+ expectObject as __expectObject,
213
217
  expectString as __expectString,
214
218
  extendedEncodeURIComponent as __extendedEncodeURIComponent,
215
- limitedParseFloat as __limitedParseFloat,
219
+ limitedParseDouble as __limitedParseDouble,
220
+ parseEpochTimestamp as __parseEpochTimestamp,
216
221
  serializeFloat as __serializeFloat,
217
222
  } from "@aws-sdk/smithy-client";
218
223
  import {
@@ -2665,7 +2670,7 @@ export const deserializeAws_restJson1BatchAssociateProjectAssetsCommand = async
2665
2670
  $metadata: deserializeMetadata(output),
2666
2671
  errors: undefined,
2667
2672
  };
2668
- const data: any = await parseBody(output.body, context);
2673
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2669
2674
  if (data.errors !== undefined && data.errors !== null) {
2670
2675
  contents.errors = deserializeAws_restJson1BatchAssociateProjectAssetsErrors(data.errors, context);
2671
2676
  }
@@ -2752,7 +2757,7 @@ export const deserializeAws_restJson1BatchDisassociateProjectAssetsCommand = asy
2752
2757
  $metadata: deserializeMetadata(output),
2753
2758
  errors: undefined,
2754
2759
  };
2755
- const data: any = await parseBody(output.body, context);
2760
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2756
2761
  if (data.errors !== undefined && data.errors !== null) {
2757
2762
  contents.errors = deserializeAws_restJson1BatchDisassociateProjectAssetsErrors(data.errors, context);
2758
2763
  }
@@ -2831,7 +2836,7 @@ export const deserializeAws_restJson1BatchPutAssetPropertyValueCommand = async (
2831
2836
  $metadata: deserializeMetadata(output),
2832
2837
  errorEntries: undefined,
2833
2838
  };
2834
- const data: any = await parseBody(output.body, context);
2839
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2835
2840
  if (data.errorEntries !== undefined && data.errorEntries !== null) {
2836
2841
  contents.errorEntries = deserializeAws_restJson1BatchPutAssetPropertyErrorEntries(data.errorEntries, context);
2837
2842
  }
@@ -2935,7 +2940,7 @@ export const deserializeAws_restJson1CreateAccessPolicyCommand = async (
2935
2940
  accessPolicyArn: undefined,
2936
2941
  accessPolicyId: undefined,
2937
2942
  };
2938
- const data: any = await parseBody(output.body, context);
2943
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2939
2944
  if (data.accessPolicyArn !== undefined && data.accessPolicyArn !== null) {
2940
2945
  contents.accessPolicyArn = __expectString(data.accessPolicyArn);
2941
2946
  }
@@ -3027,7 +3032,7 @@ export const deserializeAws_restJson1CreateAssetCommand = async (
3027
3032
  assetId: undefined,
3028
3033
  assetStatus: undefined,
3029
3034
  };
3030
- const data: any = await parseBody(output.body, context);
3035
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3031
3036
  if (data.assetArn !== undefined && data.assetArn !== null) {
3032
3037
  contents.assetArn = __expectString(data.assetArn);
3033
3038
  }
@@ -3138,7 +3143,7 @@ export const deserializeAws_restJson1CreateAssetModelCommand = async (
3138
3143
  assetModelId: undefined,
3139
3144
  assetModelStatus: undefined,
3140
3145
  };
3141
- const data: any = await parseBody(output.body, context);
3146
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3142
3147
  if (data.assetModelArn !== undefined && data.assetModelArn !== null) {
3143
3148
  contents.assetModelArn = __expectString(data.assetModelArn);
3144
3149
  }
@@ -3248,7 +3253,7 @@ export const deserializeAws_restJson1CreateDashboardCommand = async (
3248
3253
  dashboardArn: undefined,
3249
3254
  dashboardId: undefined,
3250
3255
  };
3251
- const data: any = await parseBody(output.body, context);
3256
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3252
3257
  if (data.dashboardArn !== undefined && data.dashboardArn !== null) {
3253
3258
  contents.dashboardArn = __expectString(data.dashboardArn);
3254
3259
  }
@@ -3339,7 +3344,7 @@ export const deserializeAws_restJson1CreateGatewayCommand = async (
3339
3344
  gatewayArn: undefined,
3340
3345
  gatewayId: undefined,
3341
3346
  };
3342
- const data: any = await parseBody(output.body, context);
3347
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3343
3348
  if (data.gatewayArn !== undefined && data.gatewayArn !== null) {
3344
3349
  contents.gatewayArn = __expectString(data.gatewayArn);
3345
3350
  }
@@ -3433,7 +3438,7 @@ export const deserializeAws_restJson1CreatePortalCommand = async (
3433
3438
  portalStatus: undefined,
3434
3439
  ssoApplicationId: undefined,
3435
3440
  };
3436
- const data: any = await parseBody(output.body, context);
3441
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3437
3442
  if (data.portalArn !== undefined && data.portalArn !== null) {
3438
3443
  contents.portalArn = __expectString(data.portalArn);
3439
3444
  }
@@ -3533,7 +3538,7 @@ export const deserializeAws_restJson1CreateProjectCommand = async (
3533
3538
  projectArn: undefined,
3534
3539
  projectId: undefined,
3535
3540
  };
3536
- const data: any = await parseBody(output.body, context);
3541
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3537
3542
  if (data.projectArn !== undefined && data.projectArn !== null) {
3538
3543
  contents.projectArn = __expectString(data.projectArn);
3539
3544
  }
@@ -3698,7 +3703,7 @@ export const deserializeAws_restJson1DeleteAssetCommand = async (
3698
3703
  $metadata: deserializeMetadata(output),
3699
3704
  assetStatus: undefined,
3700
3705
  };
3701
- const data: any = await parseBody(output.body, context);
3706
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3702
3707
  if (data.assetStatus !== undefined && data.assetStatus !== null) {
3703
3708
  contents.assetStatus = deserializeAws_restJson1AssetStatus(data.assetStatus, context);
3704
3709
  }
@@ -3785,7 +3790,7 @@ export const deserializeAws_restJson1DeleteAssetModelCommand = async (
3785
3790
  $metadata: deserializeMetadata(output),
3786
3791
  assetModelStatus: undefined,
3787
3792
  };
3788
- const data: any = await parseBody(output.body, context);
3793
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3789
3794
  if (data.assetModelStatus !== undefined && data.assetModelStatus !== null) {
3790
3795
  contents.assetModelStatus = deserializeAws_restJson1AssetModelStatus(data.assetModelStatus, context);
3791
3796
  }
@@ -4022,7 +4027,7 @@ export const deserializeAws_restJson1DeletePortalCommand = async (
4022
4027
  $metadata: deserializeMetadata(output),
4023
4028
  portalStatus: undefined,
4024
4029
  };
4025
- const data: any = await parseBody(output.body, context);
4030
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4026
4031
  if (data.portalStatus !== undefined && data.portalStatus !== null) {
4027
4032
  contents.portalStatus = deserializeAws_restJson1PortalStatus(data.portalStatus, context);
4028
4033
  }
@@ -4190,12 +4195,14 @@ export const deserializeAws_restJson1DescribeAccessPolicyCommand = async (
4190
4195
  accessPolicyPermission: undefined,
4191
4196
  accessPolicyResource: undefined,
4192
4197
  };
4193
- const data: any = await parseBody(output.body, context);
4198
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4194
4199
  if (data.accessPolicyArn !== undefined && data.accessPolicyArn !== null) {
4195
4200
  contents.accessPolicyArn = __expectString(data.accessPolicyArn);
4196
4201
  }
4197
4202
  if (data.accessPolicyCreationDate !== undefined && data.accessPolicyCreationDate !== null) {
4198
- contents.accessPolicyCreationDate = new Date(Math.round(data.accessPolicyCreationDate * 1000));
4203
+ contents.accessPolicyCreationDate = __expectNonNull(
4204
+ __parseEpochTimestamp(__expectNumber(data.accessPolicyCreationDate))
4205
+ );
4199
4206
  }
4200
4207
  if (data.accessPolicyId !== undefined && data.accessPolicyId !== null) {
4201
4208
  contents.accessPolicyId = __expectString(data.accessPolicyId);
@@ -4204,7 +4211,9 @@ export const deserializeAws_restJson1DescribeAccessPolicyCommand = async (
4204
4211
  contents.accessPolicyIdentity = deserializeAws_restJson1Identity(data.accessPolicyIdentity, context);
4205
4212
  }
4206
4213
  if (data.accessPolicyLastUpdateDate !== undefined && data.accessPolicyLastUpdateDate !== null) {
4207
- contents.accessPolicyLastUpdateDate = new Date(Math.round(data.accessPolicyLastUpdateDate * 1000));
4214
+ contents.accessPolicyLastUpdateDate = __expectNonNull(
4215
+ __parseEpochTimestamp(__expectNumber(data.accessPolicyLastUpdateDate))
4216
+ );
4208
4217
  }
4209
4218
  if (data.accessPolicyPermission !== undefined && data.accessPolicyPermission !== null) {
4210
4219
  contents.accessPolicyPermission = __expectString(data.accessPolicyPermission);
@@ -4296,7 +4305,7 @@ export const deserializeAws_restJson1DescribeAssetCommand = async (
4296
4305
  assetProperties: undefined,
4297
4306
  assetStatus: undefined,
4298
4307
  };
4299
- const data: any = await parseBody(output.body, context);
4308
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4300
4309
  if (data.assetArn !== undefined && data.assetArn !== null) {
4301
4310
  contents.assetArn = __expectString(data.assetArn);
4302
4311
  }
@@ -4304,7 +4313,7 @@ export const deserializeAws_restJson1DescribeAssetCommand = async (
4304
4313
  contents.assetCompositeModels = deserializeAws_restJson1AssetCompositeModels(data.assetCompositeModels, context);
4305
4314
  }
4306
4315
  if (data.assetCreationDate !== undefined && data.assetCreationDate !== null) {
4307
- contents.assetCreationDate = new Date(Math.round(data.assetCreationDate * 1000));
4316
+ contents.assetCreationDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.assetCreationDate)));
4308
4317
  }
4309
4318
  if (data.assetHierarchies !== undefined && data.assetHierarchies !== null) {
4310
4319
  contents.assetHierarchies = deserializeAws_restJson1AssetHierarchies(data.assetHierarchies, context);
@@ -4313,7 +4322,7 @@ export const deserializeAws_restJson1DescribeAssetCommand = async (
4313
4322
  contents.assetId = __expectString(data.assetId);
4314
4323
  }
4315
4324
  if (data.assetLastUpdateDate !== undefined && data.assetLastUpdateDate !== null) {
4316
- contents.assetLastUpdateDate = new Date(Math.round(data.assetLastUpdateDate * 1000));
4325
+ contents.assetLastUpdateDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.assetLastUpdateDate)));
4317
4326
  }
4318
4327
  if (data.assetModelId !== undefined && data.assetModelId !== null) {
4319
4328
  contents.assetModelId = __expectString(data.assetModelId);
@@ -4411,7 +4420,7 @@ export const deserializeAws_restJson1DescribeAssetModelCommand = async (
4411
4420
  assetModelProperties: undefined,
4412
4421
  assetModelStatus: undefined,
4413
4422
  };
4414
- const data: any = await parseBody(output.body, context);
4423
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4415
4424
  if (data.assetModelArn !== undefined && data.assetModelArn !== null) {
4416
4425
  contents.assetModelArn = __expectString(data.assetModelArn);
4417
4426
  }
@@ -4422,7 +4431,9 @@ export const deserializeAws_restJson1DescribeAssetModelCommand = async (
4422
4431
  );
4423
4432
  }
4424
4433
  if (data.assetModelCreationDate !== undefined && data.assetModelCreationDate !== null) {
4425
- contents.assetModelCreationDate = new Date(Math.round(data.assetModelCreationDate * 1000));
4434
+ contents.assetModelCreationDate = __expectNonNull(
4435
+ __parseEpochTimestamp(__expectNumber(data.assetModelCreationDate))
4436
+ );
4426
4437
  }
4427
4438
  if (data.assetModelDescription !== undefined && data.assetModelDescription !== null) {
4428
4439
  contents.assetModelDescription = __expectString(data.assetModelDescription);
@@ -4434,7 +4445,9 @@ export const deserializeAws_restJson1DescribeAssetModelCommand = async (
4434
4445
  contents.assetModelId = __expectString(data.assetModelId);
4435
4446
  }
4436
4447
  if (data.assetModelLastUpdateDate !== undefined && data.assetModelLastUpdateDate !== null) {
4437
- contents.assetModelLastUpdateDate = new Date(Math.round(data.assetModelLastUpdateDate * 1000));
4448
+ contents.assetModelLastUpdateDate = __expectNonNull(
4449
+ __parseEpochTimestamp(__expectNumber(data.assetModelLastUpdateDate))
4450
+ );
4438
4451
  }
4439
4452
  if (data.assetModelName !== undefined && data.assetModelName !== null) {
4440
4453
  contents.assetModelName = __expectString(data.assetModelName);
@@ -4524,7 +4537,7 @@ export const deserializeAws_restJson1DescribeAssetPropertyCommand = async (
4524
4537
  assetProperty: undefined,
4525
4538
  compositeModel: undefined,
4526
4539
  };
4527
- const data: any = await parseBody(output.body, context);
4540
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4528
4541
  if (data.assetId !== undefined && data.assetId !== null) {
4529
4542
  contents.assetId = __expectString(data.assetId);
4530
4543
  }
@@ -4622,12 +4635,12 @@ export const deserializeAws_restJson1DescribeDashboardCommand = async (
4622
4635
  dashboardName: undefined,
4623
4636
  projectId: undefined,
4624
4637
  };
4625
- const data: any = await parseBody(output.body, context);
4638
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4626
4639
  if (data.dashboardArn !== undefined && data.dashboardArn !== null) {
4627
4640
  contents.dashboardArn = __expectString(data.dashboardArn);
4628
4641
  }
4629
4642
  if (data.dashboardCreationDate !== undefined && data.dashboardCreationDate !== null) {
4630
- contents.dashboardCreationDate = new Date(Math.round(data.dashboardCreationDate * 1000));
4643
+ contents.dashboardCreationDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.dashboardCreationDate)));
4631
4644
  }
4632
4645
  if (data.dashboardDefinition !== undefined && data.dashboardDefinition !== null) {
4633
4646
  contents.dashboardDefinition = __expectString(data.dashboardDefinition);
@@ -4639,7 +4652,9 @@ export const deserializeAws_restJson1DescribeDashboardCommand = async (
4639
4652
  contents.dashboardId = __expectString(data.dashboardId);
4640
4653
  }
4641
4654
  if (data.dashboardLastUpdateDate !== undefined && data.dashboardLastUpdateDate !== null) {
4642
- contents.dashboardLastUpdateDate = new Date(Math.round(data.dashboardLastUpdateDate * 1000));
4655
+ contents.dashboardLastUpdateDate = __expectNonNull(
4656
+ __parseEpochTimestamp(__expectNumber(data.dashboardLastUpdateDate))
4657
+ );
4643
4658
  }
4644
4659
  if (data.dashboardName !== undefined && data.dashboardName !== null) {
4645
4660
  contents.dashboardName = __expectString(data.dashboardName);
@@ -4724,7 +4739,7 @@ export const deserializeAws_restJson1DescribeDefaultEncryptionConfigurationComma
4724
4739
  encryptionType: undefined,
4725
4740
  kmsKeyArn: undefined,
4726
4741
  };
4727
- const data: any = await parseBody(output.body, context);
4742
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4728
4743
  if (data.configurationStatus !== undefined && data.configurationStatus !== null) {
4729
4744
  contents.configurationStatus = deserializeAws_restJson1ConfigurationStatus(data.configurationStatus, context);
4730
4745
  }
@@ -4807,9 +4822,9 @@ export const deserializeAws_restJson1DescribeGatewayCommand = async (
4807
4822
  gatewayPlatform: undefined,
4808
4823
  lastUpdateDate: undefined,
4809
4824
  };
4810
- const data: any = await parseBody(output.body, context);
4825
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4811
4826
  if (data.creationDate !== undefined && data.creationDate !== null) {
4812
- contents.creationDate = new Date(Math.round(data.creationDate * 1000));
4827
+ contents.creationDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.creationDate)));
4813
4828
  }
4814
4829
  if (data.gatewayArn !== undefined && data.gatewayArn !== null) {
4815
4830
  contents.gatewayArn = __expectString(data.gatewayArn);
@@ -4830,7 +4845,7 @@ export const deserializeAws_restJson1DescribeGatewayCommand = async (
4830
4845
  contents.gatewayPlatform = deserializeAws_restJson1GatewayPlatform(data.gatewayPlatform, context);
4831
4846
  }
4832
4847
  if (data.lastUpdateDate !== undefined && data.lastUpdateDate !== null) {
4833
- contents.lastUpdateDate = new Date(Math.round(data.lastUpdateDate * 1000));
4848
+ contents.lastUpdateDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.lastUpdateDate)));
4834
4849
  }
4835
4850
  return Promise.resolve(contents);
4836
4851
  };
@@ -4910,7 +4925,7 @@ export const deserializeAws_restJson1DescribeGatewayCapabilityConfigurationComma
4910
4925
  capabilitySyncStatus: undefined,
4911
4926
  gatewayId: undefined,
4912
4927
  };
4913
- const data: any = await parseBody(output.body, context);
4928
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4914
4929
  if (data.capabilityConfiguration !== undefined && data.capabilityConfiguration !== null) {
4915
4930
  contents.capabilityConfiguration = __expectString(data.capabilityConfiguration);
4916
4931
  }
@@ -4998,7 +5013,7 @@ export const deserializeAws_restJson1DescribeLoggingOptionsCommand = async (
4998
5013
  $metadata: deserializeMetadata(output),
4999
5014
  loggingOptions: undefined,
5000
5015
  };
5001
- const data: any = await parseBody(output.body, context);
5016
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5002
5017
  if (data.loggingOptions !== undefined && data.loggingOptions !== null) {
5003
5018
  contents.loggingOptions = deserializeAws_restJson1LoggingOptions(data.loggingOptions, context);
5004
5019
  }
@@ -5091,7 +5106,7 @@ export const deserializeAws_restJson1DescribePortalCommand = async (
5091
5106
  portalStatus: undefined,
5092
5107
  roleArn: undefined,
5093
5108
  };
5094
- const data: any = await parseBody(output.body, context);
5109
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5095
5110
  if (data.alarms !== undefined && data.alarms !== null) {
5096
5111
  contents.alarms = deserializeAws_restJson1Alarms(data.alarms, context);
5097
5112
  }
@@ -5111,7 +5126,7 @@ export const deserializeAws_restJson1DescribePortalCommand = async (
5111
5126
  contents.portalContactEmail = __expectString(data.portalContactEmail);
5112
5127
  }
5113
5128
  if (data.portalCreationDate !== undefined && data.portalCreationDate !== null) {
5114
- contents.portalCreationDate = new Date(Math.round(data.portalCreationDate * 1000));
5129
+ contents.portalCreationDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.portalCreationDate)));
5115
5130
  }
5116
5131
  if (data.portalDescription !== undefined && data.portalDescription !== null) {
5117
5132
  contents.portalDescription = __expectString(data.portalDescription);
@@ -5120,7 +5135,7 @@ export const deserializeAws_restJson1DescribePortalCommand = async (
5120
5135
  contents.portalId = __expectString(data.portalId);
5121
5136
  }
5122
5137
  if (data.portalLastUpdateDate !== undefined && data.portalLastUpdateDate !== null) {
5123
- contents.portalLastUpdateDate = new Date(Math.round(data.portalLastUpdateDate * 1000));
5138
+ contents.portalLastUpdateDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.portalLastUpdateDate)));
5124
5139
  }
5125
5140
  if (data.portalLogoImageLocation !== undefined && data.portalLogoImageLocation !== null) {
5126
5141
  contents.portalLogoImageLocation = deserializeAws_restJson1ImageLocation(data.portalLogoImageLocation, context);
@@ -5218,7 +5233,7 @@ export const deserializeAws_restJson1DescribeProjectCommand = async (
5218
5233
  projectLastUpdateDate: undefined,
5219
5234
  projectName: undefined,
5220
5235
  };
5221
- const data: any = await parseBody(output.body, context);
5236
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5222
5237
  if (data.portalId !== undefined && data.portalId !== null) {
5223
5238
  contents.portalId = __expectString(data.portalId);
5224
5239
  }
@@ -5226,7 +5241,7 @@ export const deserializeAws_restJson1DescribeProjectCommand = async (
5226
5241
  contents.projectArn = __expectString(data.projectArn);
5227
5242
  }
5228
5243
  if (data.projectCreationDate !== undefined && data.projectCreationDate !== null) {
5229
- contents.projectCreationDate = new Date(Math.round(data.projectCreationDate * 1000));
5244
+ contents.projectCreationDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.projectCreationDate)));
5230
5245
  }
5231
5246
  if (data.projectDescription !== undefined && data.projectDescription !== null) {
5232
5247
  contents.projectDescription = __expectString(data.projectDescription);
@@ -5235,7 +5250,7 @@ export const deserializeAws_restJson1DescribeProjectCommand = async (
5235
5250
  contents.projectId = __expectString(data.projectId);
5236
5251
  }
5237
5252
  if (data.projectLastUpdateDate !== undefined && data.projectLastUpdateDate !== null) {
5238
- contents.projectLastUpdateDate = new Date(Math.round(data.projectLastUpdateDate * 1000));
5253
+ contents.projectLastUpdateDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.projectLastUpdateDate)));
5239
5254
  }
5240
5255
  if (data.projectName !== undefined && data.projectName !== null) {
5241
5256
  contents.projectName = __expectString(data.projectName);
@@ -5318,12 +5333,12 @@ export const deserializeAws_restJson1DescribeStorageConfigurationCommand = async
5318
5333
  multiLayerStorage: undefined,
5319
5334
  storageType: undefined,
5320
5335
  };
5321
- const data: any = await parseBody(output.body, context);
5336
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5322
5337
  if (data.configurationStatus !== undefined && data.configurationStatus !== null) {
5323
5338
  contents.configurationStatus = deserializeAws_restJson1ConfigurationStatus(data.configurationStatus, context);
5324
5339
  }
5325
5340
  if (data.lastUpdateDate !== undefined && data.lastUpdateDate !== null) {
5326
- contents.lastUpdateDate = new Date(Math.round(data.lastUpdateDate * 1000));
5341
+ contents.lastUpdateDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.lastUpdateDate)));
5327
5342
  }
5328
5343
  if (data.multiLayerStorage !== undefined && data.multiLayerStorage !== null) {
5329
5344
  contents.multiLayerStorage = deserializeAws_restJson1MultiLayerStorage(data.multiLayerStorage, context);
@@ -5506,7 +5521,7 @@ export const deserializeAws_restJson1GetAssetPropertyAggregatesCommand = async (
5506
5521
  aggregatedValues: undefined,
5507
5522
  nextToken: undefined,
5508
5523
  };
5509
- const data: any = await parseBody(output.body, context);
5524
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5510
5525
  if (data.aggregatedValues !== undefined && data.aggregatedValues !== null) {
5511
5526
  contents.aggregatedValues = deserializeAws_restJson1AggregatedValues(data.aggregatedValues, context);
5512
5527
  }
@@ -5596,7 +5611,7 @@ export const deserializeAws_restJson1GetAssetPropertyValueCommand = async (
5596
5611
  $metadata: deserializeMetadata(output),
5597
5612
  propertyValue: undefined,
5598
5613
  };
5599
- const data: any = await parseBody(output.body, context);
5614
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5600
5615
  if (data.propertyValue !== undefined && data.propertyValue !== null) {
5601
5616
  contents.propertyValue = deserializeAws_restJson1AssetPropertyValue(data.propertyValue, context);
5602
5617
  }
@@ -5684,7 +5699,7 @@ export const deserializeAws_restJson1GetAssetPropertyValueHistoryCommand = async
5684
5699
  assetPropertyValueHistory: undefined,
5685
5700
  nextToken: undefined,
5686
5701
  };
5687
- const data: any = await parseBody(output.body, context);
5702
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5688
5703
  if (data.assetPropertyValueHistory !== undefined && data.assetPropertyValueHistory !== null) {
5689
5704
  contents.assetPropertyValueHistory = deserializeAws_restJson1AssetPropertyValueHistory(
5690
5705
  data.assetPropertyValueHistory,
@@ -5778,7 +5793,7 @@ export const deserializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand =
5778
5793
  interpolatedAssetPropertyValues: undefined,
5779
5794
  nextToken: undefined,
5780
5795
  };
5781
- const data: any = await parseBody(output.body, context);
5796
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5782
5797
  if (data.interpolatedAssetPropertyValues !== undefined && data.interpolatedAssetPropertyValues !== null) {
5783
5798
  contents.interpolatedAssetPropertyValues = deserializeAws_restJson1InterpolatedAssetPropertyValues(
5784
5799
  data.interpolatedAssetPropertyValues,
@@ -5872,7 +5887,7 @@ export const deserializeAws_restJson1ListAccessPoliciesCommand = async (
5872
5887
  accessPolicySummaries: undefined,
5873
5888
  nextToken: undefined,
5874
5889
  };
5875
- const data: any = await parseBody(output.body, context);
5890
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5876
5891
  if (data.accessPolicySummaries !== undefined && data.accessPolicySummaries !== null) {
5877
5892
  contents.accessPolicySummaries = deserializeAws_restJson1AccessPolicySummaries(data.accessPolicySummaries, context);
5878
5893
  }
@@ -5947,7 +5962,7 @@ export const deserializeAws_restJson1ListAssetModelsCommand = async (
5947
5962
  assetModelSummaries: undefined,
5948
5963
  nextToken: undefined,
5949
5964
  };
5950
- const data: any = await parseBody(output.body, context);
5965
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5951
5966
  if (data.assetModelSummaries !== undefined && data.assetModelSummaries !== null) {
5952
5967
  contents.assetModelSummaries = deserializeAws_restJson1AssetModelSummaries(data.assetModelSummaries, context);
5953
5968
  }
@@ -6022,7 +6037,7 @@ export const deserializeAws_restJson1ListAssetRelationshipsCommand = async (
6022
6037
  assetRelationshipSummaries: undefined,
6023
6038
  nextToken: undefined,
6024
6039
  };
6025
- const data: any = await parseBody(output.body, context);
6040
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6026
6041
  if (data.assetRelationshipSummaries !== undefined && data.assetRelationshipSummaries !== null) {
6027
6042
  contents.assetRelationshipSummaries = deserializeAws_restJson1AssetRelationshipSummaries(
6028
6043
  data.assetRelationshipSummaries,
@@ -6108,7 +6123,7 @@ export const deserializeAws_restJson1ListAssetsCommand = async (
6108
6123
  assetSummaries: undefined,
6109
6124
  nextToken: undefined,
6110
6125
  };
6111
- const data: any = await parseBody(output.body, context);
6126
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6112
6127
  if (data.assetSummaries !== undefined && data.assetSummaries !== null) {
6113
6128
  contents.assetSummaries = deserializeAws_restJson1AssetSummaries(data.assetSummaries, context);
6114
6129
  }
@@ -6191,7 +6206,7 @@ export const deserializeAws_restJson1ListAssociatedAssetsCommand = async (
6191
6206
  assetSummaries: undefined,
6192
6207
  nextToken: undefined,
6193
6208
  };
6194
- const data: any = await parseBody(output.body, context);
6209
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6195
6210
  if (data.assetSummaries !== undefined && data.assetSummaries !== null) {
6196
6211
  contents.assetSummaries = deserializeAws_restJson1AssociatedAssetsSummaries(data.assetSummaries, context);
6197
6212
  }
@@ -6274,7 +6289,7 @@ export const deserializeAws_restJson1ListDashboardsCommand = async (
6274
6289
  dashboardSummaries: undefined,
6275
6290
  nextToken: undefined,
6276
6291
  };
6277
- const data: any = await parseBody(output.body, context);
6292
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6278
6293
  if (data.dashboardSummaries !== undefined && data.dashboardSummaries !== null) {
6279
6294
  contents.dashboardSummaries = deserializeAws_restJson1DashboardSummaries(data.dashboardSummaries, context);
6280
6295
  }
@@ -6349,7 +6364,7 @@ export const deserializeAws_restJson1ListGatewaysCommand = async (
6349
6364
  gatewaySummaries: undefined,
6350
6365
  nextToken: undefined,
6351
6366
  };
6352
- const data: any = await parseBody(output.body, context);
6367
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6353
6368
  if (data.gatewaySummaries !== undefined && data.gatewaySummaries !== null) {
6354
6369
  contents.gatewaySummaries = deserializeAws_restJson1GatewaySummaries(data.gatewaySummaries, context);
6355
6370
  }
@@ -6424,7 +6439,7 @@ export const deserializeAws_restJson1ListPortalsCommand = async (
6424
6439
  nextToken: undefined,
6425
6440
  portalSummaries: undefined,
6426
6441
  };
6427
- const data: any = await parseBody(output.body, context);
6442
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6428
6443
  if (data.nextToken !== undefined && data.nextToken !== null) {
6429
6444
  contents.nextToken = __expectString(data.nextToken);
6430
6445
  }
@@ -6499,7 +6514,7 @@ export const deserializeAws_restJson1ListProjectAssetsCommand = async (
6499
6514
  assetIds: undefined,
6500
6515
  nextToken: undefined,
6501
6516
  };
6502
- const data: any = await parseBody(output.body, context);
6517
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6503
6518
  if (data.assetIds !== undefined && data.assetIds !== null) {
6504
6519
  contents.assetIds = deserializeAws_restJson1AssetIDs(data.assetIds, context);
6505
6520
  }
@@ -6574,7 +6589,7 @@ export const deserializeAws_restJson1ListProjectsCommand = async (
6574
6589
  nextToken: undefined,
6575
6590
  projectSummaries: undefined,
6576
6591
  };
6577
- const data: any = await parseBody(output.body, context);
6592
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6578
6593
  if (data.nextToken !== undefined && data.nextToken !== null) {
6579
6594
  contents.nextToken = __expectString(data.nextToken);
6580
6595
  }
@@ -6648,7 +6663,7 @@ export const deserializeAws_restJson1ListTagsForResourceCommand = async (
6648
6663
  $metadata: deserializeMetadata(output),
6649
6664
  tags: undefined,
6650
6665
  };
6651
- const data: any = await parseBody(output.body, context);
6666
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6652
6667
  if (data.tags !== undefined && data.tags !== null) {
6653
6668
  contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
6654
6669
  }
@@ -6753,7 +6768,7 @@ export const deserializeAws_restJson1PutDefaultEncryptionConfigurationCommand =
6753
6768
  encryptionType: undefined,
6754
6769
  kmsKeyArn: undefined,
6755
6770
  };
6756
- const data: any = await parseBody(output.body, context);
6771
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6757
6772
  if (data.configurationStatus !== undefined && data.configurationStatus !== null) {
6758
6773
  contents.configurationStatus = deserializeAws_restJson1ConfigurationStatus(data.configurationStatus, context);
6759
6774
  }
@@ -6931,7 +6946,7 @@ export const deserializeAws_restJson1PutStorageConfigurationCommand = async (
6931
6946
  multiLayerStorage: undefined,
6932
6947
  storageType: undefined,
6933
6948
  };
6934
- const data: any = await parseBody(output.body, context);
6949
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6935
6950
  if (data.configurationStatus !== undefined && data.configurationStatus !== null) {
6936
6951
  contents.configurationStatus = deserializeAws_restJson1ConfigurationStatus(data.configurationStatus, context);
6937
6952
  }
@@ -7321,7 +7336,7 @@ export const deserializeAws_restJson1UpdateAssetCommand = async (
7321
7336
  $metadata: deserializeMetadata(output),
7322
7337
  assetStatus: undefined,
7323
7338
  };
7324
- const data: any = await parseBody(output.body, context);
7339
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
7325
7340
  if (data.assetStatus !== undefined && data.assetStatus !== null) {
7326
7341
  contents.assetStatus = deserializeAws_restJson1AssetStatus(data.assetStatus, context);
7327
7342
  }
@@ -7416,7 +7431,7 @@ export const deserializeAws_restJson1UpdateAssetModelCommand = async (
7416
7431
  $metadata: deserializeMetadata(output),
7417
7432
  assetModelStatus: undefined,
7418
7433
  };
7419
- const data: any = await parseBody(output.body, context);
7434
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
7420
7435
  if (data.assetModelStatus !== undefined && data.assetModelStatus !== null) {
7421
7436
  contents.assetModelStatus = deserializeAws_restJson1AssetModelStatus(data.assetModelStatus, context);
7422
7437
  }
@@ -7761,7 +7776,7 @@ export const deserializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand
7761
7776
  capabilityNamespace: undefined,
7762
7777
  capabilitySyncStatus: undefined,
7763
7778
  };
7764
- const data: any = await parseBody(output.body, context);
7779
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
7765
7780
  if (data.capabilityNamespace !== undefined && data.capabilityNamespace !== null) {
7766
7781
  contents.capabilityNamespace = __expectString(data.capabilityNamespace);
7767
7782
  }
@@ -7859,7 +7874,7 @@ export const deserializeAws_restJson1UpdatePortalCommand = async (
7859
7874
  $metadata: deserializeMetadata(output),
7860
7875
  portalStatus: undefined,
7861
7876
  };
7862
- const data: any = await parseBody(output.body, context);
7877
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
7863
7878
  if (data.portalStatus !== undefined && data.portalStatus !== null) {
7864
7879
  contents.portalStatus = deserializeAws_restJson1PortalStatus(data.portalStatus, context);
7865
7880
  }
@@ -8724,7 +8739,7 @@ const deserializeAws_restJson1AccessPolicySummary = (output: any, context: __Ser
8724
8739
  return {
8725
8740
  creationDate:
8726
8741
  output.creationDate !== undefined && output.creationDate !== null
8727
- ? new Date(Math.round(output.creationDate * 1000))
8742
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
8728
8743
  : undefined,
8729
8744
  id: __expectString(output.id),
8730
8745
  identity:
@@ -8733,7 +8748,7 @@ const deserializeAws_restJson1AccessPolicySummary = (output: any, context: __Ser
8733
8748
  : undefined,
8734
8749
  lastUpdateDate:
8735
8750
  output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
8736
- ? new Date(Math.round(output.lastUpdateDate * 1000))
8751
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
8737
8752
  : undefined,
8738
8753
  permission: __expectString(output.permission),
8739
8754
  resource:
@@ -8748,7 +8763,7 @@ const deserializeAws_restJson1AggregatedValue = (output: any, context: __SerdeCo
8748
8763
  quality: __expectString(output.quality),
8749
8764
  timestamp:
8750
8765
  output.timestamp !== undefined && output.timestamp !== null
8751
- ? new Date(Math.round(output.timestamp * 1000))
8766
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.timestamp)))
8752
8767
  : undefined,
8753
8768
  value:
8754
8769
  output.value !== undefined && output.value !== null
@@ -8770,12 +8785,12 @@ const deserializeAws_restJson1AggregatedValues = (output: any, context: __SerdeC
8770
8785
 
8771
8786
  const deserializeAws_restJson1Aggregates = (output: any, context: __SerdeContext): Aggregates => {
8772
8787
  return {
8773
- average: __limitedParseFloat(output.average),
8774
- count: __limitedParseFloat(output.count),
8775
- maximum: __limitedParseFloat(output.maximum),
8776
- minimum: __limitedParseFloat(output.minimum),
8777
- standardDeviation: __limitedParseFloat(output.standardDeviation),
8778
- sum: __limitedParseFloat(output.sum),
8788
+ average: __limitedParseDouble(output.average),
8789
+ count: __limitedParseDouble(output.count),
8790
+ maximum: __limitedParseDouble(output.maximum),
8791
+ minimum: __limitedParseDouble(output.minimum),
8792
+ standardDeviation: __limitedParseDouble(output.standardDeviation),
8793
+ sum: __limitedParseDouble(output.sum),
8779
8794
  } as any;
8780
8795
  };
8781
8796
 
@@ -8952,13 +8967,13 @@ const deserializeAws_restJson1AssetModelSummary = (output: any, context: __Serde
8952
8967
  arn: __expectString(output.arn),
8953
8968
  creationDate:
8954
8969
  output.creationDate !== undefined && output.creationDate !== null
8955
- ? new Date(Math.round(output.creationDate * 1000))
8970
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
8956
8971
  : undefined,
8957
8972
  description: __expectString(output.description),
8958
8973
  id: __expectString(output.id),
8959
8974
  lastUpdateDate:
8960
8975
  output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
8961
- ? new Date(Math.round(output.lastUpdateDate * 1000))
8976
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
8962
8977
  : undefined,
8963
8978
  name: __expectString(output.name),
8964
8979
  status:
@@ -9076,7 +9091,7 @@ const deserializeAws_restJson1AssetSummary = (output: any, context: __SerdeConte
9076
9091
  assetModelId: __expectString(output.assetModelId),
9077
9092
  creationDate:
9078
9093
  output.creationDate !== undefined && output.creationDate !== null
9079
- ? new Date(Math.round(output.creationDate * 1000))
9094
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
9080
9095
  : undefined,
9081
9096
  hierarchies:
9082
9097
  output.hierarchies !== undefined && output.hierarchies !== null
@@ -9085,7 +9100,7 @@ const deserializeAws_restJson1AssetSummary = (output: any, context: __SerdeConte
9085
9100
  id: __expectString(output.id),
9086
9101
  lastUpdateDate:
9087
9102
  output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
9088
- ? new Date(Math.round(output.lastUpdateDate * 1000))
9103
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
9089
9104
  : undefined,
9090
9105
  name: __expectString(output.name),
9091
9106
  status:
@@ -9118,7 +9133,7 @@ const deserializeAws_restJson1AssociatedAssetsSummary = (
9118
9133
  assetModelId: __expectString(output.assetModelId),
9119
9134
  creationDate:
9120
9135
  output.creationDate !== undefined && output.creationDate !== null
9121
- ? new Date(Math.round(output.creationDate * 1000))
9136
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
9122
9137
  : undefined,
9123
9138
  hierarchies:
9124
9139
  output.hierarchies !== undefined && output.hierarchies !== null
@@ -9127,7 +9142,7 @@ const deserializeAws_restJson1AssociatedAssetsSummary = (
9127
9142
  id: __expectString(output.id),
9128
9143
  lastUpdateDate:
9129
9144
  output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
9130
- ? new Date(Math.round(output.lastUpdateDate * 1000))
9145
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
9131
9146
  : undefined,
9132
9147
  name: __expectString(output.name),
9133
9148
  status:
@@ -9285,13 +9300,13 @@ const deserializeAws_restJson1DashboardSummary = (output: any, context: __SerdeC
9285
9300
  return {
9286
9301
  creationDate:
9287
9302
  output.creationDate !== undefined && output.creationDate !== null
9288
- ? new Date(Math.round(output.creationDate * 1000))
9303
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
9289
9304
  : undefined,
9290
9305
  description: __expectString(output.description),
9291
9306
  id: __expectString(output.id),
9292
9307
  lastUpdateDate:
9293
9308
  output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
9294
- ? new Date(Math.round(output.lastUpdateDate * 1000))
9309
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
9295
9310
  : undefined,
9296
9311
  name: __expectString(output.name),
9297
9312
  } as any;
@@ -9405,7 +9420,7 @@ const deserializeAws_restJson1GatewaySummary = (output: any, context: __SerdeCon
9405
9420
  return {
9406
9421
  creationDate:
9407
9422
  output.creationDate !== undefined && output.creationDate !== null
9408
- ? new Date(Math.round(output.creationDate * 1000))
9423
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
9409
9424
  : undefined,
9410
9425
  gatewayCapabilitySummaries:
9411
9426
  output.gatewayCapabilitySummaries !== undefined && output.gatewayCapabilitySummaries !== null
@@ -9419,7 +9434,7 @@ const deserializeAws_restJson1GatewaySummary = (output: any, context: __SerdeCon
9419
9434
  : undefined,
9420
9435
  lastUpdateDate:
9421
9436
  output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
9422
- ? new Date(Math.round(output.lastUpdateDate * 1000))
9437
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
9423
9438
  : undefined,
9424
9439
  } as any;
9425
9440
  };
@@ -9622,13 +9637,13 @@ const deserializeAws_restJson1PortalSummary = (output: any, context: __SerdeCont
9622
9637
  return {
9623
9638
  creationDate:
9624
9639
  output.creationDate !== undefined && output.creationDate !== null
9625
- ? new Date(Math.round(output.creationDate * 1000))
9640
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
9626
9641
  : undefined,
9627
9642
  description: __expectString(output.description),
9628
9643
  id: __expectString(output.id),
9629
9644
  lastUpdateDate:
9630
9645
  output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
9631
- ? new Date(Math.round(output.lastUpdateDate * 1000))
9646
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
9632
9647
  : undefined,
9633
9648
  name: __expectString(output.name),
9634
9649
  roleArn: __expectString(output.roleArn),
@@ -9661,13 +9676,13 @@ const deserializeAws_restJson1ProjectSummary = (output: any, context: __SerdeCon
9661
9676
  return {
9662
9677
  creationDate:
9663
9678
  output.creationDate !== undefined && output.creationDate !== null
9664
- ? new Date(Math.round(output.creationDate * 1000))
9679
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
9665
9680
  : undefined,
9666
9681
  description: __expectString(output.description),
9667
9682
  id: __expectString(output.id),
9668
9683
  lastUpdateDate:
9669
9684
  output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
9670
- ? new Date(Math.round(output.lastUpdateDate * 1000))
9685
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateDate)))
9671
9686
  : undefined,
9672
9687
  name: __expectString(output.name),
9673
9688
  } as any;
@@ -9746,8 +9761,8 @@ const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): {
9746
9761
 
9747
9762
  const deserializeAws_restJson1TimeInNanos = (output: any, context: __SerdeContext): TimeInNanos => {
9748
9763
  return {
9749
- offsetInNanos: __expectInt(output.offsetInNanos),
9750
- timeInSeconds: __expectInt(output.timeInSeconds),
9764
+ offsetInNanos: __expectInt32(output.offsetInNanos),
9765
+ timeInSeconds: __expectLong(output.timeInSeconds),
9751
9766
  } as any;
9752
9767
  };
9753
9768
 
@@ -9812,8 +9827,8 @@ const deserializeAws_restJson1VariableValue = (output: any, context: __SerdeCont
9812
9827
  const deserializeAws_restJson1Variant = (output: any, context: __SerdeContext): Variant => {
9813
9828
  return {
9814
9829
  booleanValue: __expectBoolean(output.booleanValue),
9815
- doubleValue: __limitedParseFloat(output.doubleValue),
9816
- integerValue: __expectInt(output.integerValue),
9830
+ doubleValue: __limitedParseDouble(output.doubleValue),
9831
+ integerValue: __expectInt32(output.integerValue),
9817
9832
  stringValue: __expectString(output.stringValue),
9818
9833
  } as any;
9819
9834
  };