@aws-sdk/client-dataexchange 3.29.0 → 3.33.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.
Files changed (76) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/cjs/DataExchangeClient.js +13 -13
  3. package/dist/cjs/DataExchangeClient.js.map +1 -1
  4. package/dist/cjs/commands/CancelJobCommand.js +3 -3
  5. package/dist/cjs/commands/CancelJobCommand.js.map +1 -1
  6. package/dist/cjs/commands/CreateDataSetCommand.js +3 -3
  7. package/dist/cjs/commands/CreateDataSetCommand.js.map +1 -1
  8. package/dist/cjs/commands/CreateJobCommand.js +3 -3
  9. package/dist/cjs/commands/CreateJobCommand.js.map +1 -1
  10. package/dist/cjs/commands/CreateRevisionCommand.js +3 -3
  11. package/dist/cjs/commands/CreateRevisionCommand.js.map +1 -1
  12. package/dist/cjs/commands/DeleteAssetCommand.js +3 -3
  13. package/dist/cjs/commands/DeleteAssetCommand.js.map +1 -1
  14. package/dist/cjs/commands/DeleteDataSetCommand.js +3 -3
  15. package/dist/cjs/commands/DeleteDataSetCommand.js.map +1 -1
  16. package/dist/cjs/commands/DeleteRevisionCommand.js +3 -3
  17. package/dist/cjs/commands/DeleteRevisionCommand.js.map +1 -1
  18. package/dist/cjs/commands/GetAssetCommand.js +3 -3
  19. package/dist/cjs/commands/GetAssetCommand.js.map +1 -1
  20. package/dist/cjs/commands/GetDataSetCommand.js +3 -3
  21. package/dist/cjs/commands/GetDataSetCommand.js.map +1 -1
  22. package/dist/cjs/commands/GetJobCommand.js +3 -3
  23. package/dist/cjs/commands/GetJobCommand.js.map +1 -1
  24. package/dist/cjs/commands/GetRevisionCommand.js +3 -3
  25. package/dist/cjs/commands/GetRevisionCommand.js.map +1 -1
  26. package/dist/cjs/commands/ListDataSetRevisionsCommand.js +3 -3
  27. package/dist/cjs/commands/ListDataSetRevisionsCommand.js.map +1 -1
  28. package/dist/cjs/commands/ListDataSetsCommand.js +3 -3
  29. package/dist/cjs/commands/ListDataSetsCommand.js.map +1 -1
  30. package/dist/cjs/commands/ListJobsCommand.js +3 -3
  31. package/dist/cjs/commands/ListJobsCommand.js.map +1 -1
  32. package/dist/cjs/commands/ListRevisionAssetsCommand.js +3 -3
  33. package/dist/cjs/commands/ListRevisionAssetsCommand.js.map +1 -1
  34. package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
  35. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
  36. package/dist/cjs/commands/StartJobCommand.js +3 -3
  37. package/dist/cjs/commands/StartJobCommand.js.map +1 -1
  38. package/dist/cjs/commands/TagResourceCommand.js +3 -3
  39. package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
  40. package/dist/cjs/commands/UntagResourceCommand.js +3 -3
  41. package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
  42. package/dist/cjs/commands/UpdateAssetCommand.js +3 -3
  43. package/dist/cjs/commands/UpdateAssetCommand.js.map +1 -1
  44. package/dist/cjs/commands/UpdateDataSetCommand.js +3 -3
  45. package/dist/cjs/commands/UpdateDataSetCommand.js.map +1 -1
  46. package/dist/cjs/commands/UpdateRevisionCommand.js +3 -3
  47. package/dist/cjs/commands/UpdateRevisionCommand.js.map +1 -1
  48. package/dist/cjs/endpoints.js +1 -1
  49. package/dist/cjs/endpoints.js.map +1 -1
  50. package/dist/cjs/index.js +30 -30
  51. package/dist/cjs/index.js.map +1 -1
  52. package/dist/cjs/models/index.js +1 -1
  53. package/dist/cjs/models/index.js.map +1 -1
  54. package/dist/cjs/package.json +31 -31
  55. package/dist/cjs/protocols/Aws_restJson1.js +225 -209
  56. package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
  57. package/dist/cjs/runtimeConfig.browser.js +4 -4
  58. package/dist/cjs/runtimeConfig.browser.js.map +1 -1
  59. package/dist/cjs/runtimeConfig.js +8 -8
  60. package/dist/cjs/runtimeConfig.js.map +1 -1
  61. package/dist/cjs/runtimeConfig.native.js +1 -1
  62. package/dist/cjs/runtimeConfig.native.js.map +1 -1
  63. package/dist/es/package.json +31 -31
  64. package/dist/es/pagination/ListDataSetRevisionsPaginator.js +4 -4
  65. package/dist/es/pagination/ListDataSetRevisionsPaginator.js.map +1 -1
  66. package/dist/es/pagination/ListDataSetsPaginator.js +4 -4
  67. package/dist/es/pagination/ListDataSetsPaginator.js.map +1 -1
  68. package/dist/es/pagination/ListJobsPaginator.js +4 -4
  69. package/dist/es/pagination/ListJobsPaginator.js.map +1 -1
  70. package/dist/es/pagination/ListRevisionAssetsPaginator.js +4 -4
  71. package/dist/es/pagination/ListRevisionAssetsPaginator.js.map +1 -1
  72. package/dist/es/protocols/Aws_restJson1.js +47 -31
  73. package/dist/es/protocols/Aws_restJson1.js.map +1 -1
  74. package/package.json +31 -31
  75. package/protocols/Aws_restJson1.ts +55 -30
  76. package/tsconfig.json +1 -2
@@ -12,7 +12,7 @@ const serializeAws_restJson1CancelJobCommand = async (input, context) => {
12
12
  if (labelValue.length <= 0) {
13
13
  throw new Error("Empty value provided for input HTTP label: JobId.");
14
14
  }
15
- resolvedPath = resolvedPath.replace("{JobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
15
+ resolvedPath = resolvedPath.replace("{JobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
16
16
  }
17
17
  else {
18
18
  throw new Error("No value provided for input HTTP label: JobId.");
@@ -88,7 +88,7 @@ const serializeAws_restJson1CreateRevisionCommand = async (input, context) => {
88
88
  if (labelValue.length <= 0) {
89
89
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
90
90
  }
91
- resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
91
+ resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
92
92
  }
93
93
  else {
94
94
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -120,7 +120,7 @@ const serializeAws_restJson1DeleteAssetCommand = async (input, context) => {
120
120
  if (labelValue.length <= 0) {
121
121
  throw new Error("Empty value provided for input HTTP label: AssetId.");
122
122
  }
123
- resolvedPath = resolvedPath.replace("{AssetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
123
+ resolvedPath = resolvedPath.replace("{AssetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
124
124
  }
125
125
  else {
126
126
  throw new Error("No value provided for input HTTP label: AssetId.");
@@ -130,7 +130,7 @@ const serializeAws_restJson1DeleteAssetCommand = async (input, context) => {
130
130
  if (labelValue.length <= 0) {
131
131
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
132
132
  }
133
- resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
133
+ resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
134
134
  }
135
135
  else {
136
136
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -140,7 +140,7 @@ const serializeAws_restJson1DeleteAssetCommand = async (input, context) => {
140
140
  if (labelValue.length <= 0) {
141
141
  throw new Error("Empty value provided for input HTTP label: RevisionId.");
142
142
  }
143
- resolvedPath = resolvedPath.replace("{RevisionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
143
+ resolvedPath = resolvedPath.replace("{RevisionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
144
144
  }
145
145
  else {
146
146
  throw new Error("No value provided for input HTTP label: RevisionId.");
@@ -166,7 +166,7 @@ const serializeAws_restJson1DeleteDataSetCommand = async (input, context) => {
166
166
  if (labelValue.length <= 0) {
167
167
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
168
168
  }
169
- resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
169
+ resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
170
170
  }
171
171
  else {
172
172
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -193,7 +193,7 @@ const serializeAws_restJson1DeleteRevisionCommand = async (input, context) => {
193
193
  if (labelValue.length <= 0) {
194
194
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
195
195
  }
196
- resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
196
+ resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
197
197
  }
198
198
  else {
199
199
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -203,7 +203,7 @@ const serializeAws_restJson1DeleteRevisionCommand = async (input, context) => {
203
203
  if (labelValue.length <= 0) {
204
204
  throw new Error("Empty value provided for input HTTP label: RevisionId.");
205
205
  }
206
- resolvedPath = resolvedPath.replace("{RevisionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
206
+ resolvedPath = resolvedPath.replace("{RevisionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
207
207
  }
208
208
  else {
209
209
  throw new Error("No value provided for input HTTP label: RevisionId.");
@@ -230,7 +230,7 @@ const serializeAws_restJson1GetAssetCommand = async (input, context) => {
230
230
  if (labelValue.length <= 0) {
231
231
  throw new Error("Empty value provided for input HTTP label: AssetId.");
232
232
  }
233
- resolvedPath = resolvedPath.replace("{AssetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
233
+ resolvedPath = resolvedPath.replace("{AssetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
234
234
  }
235
235
  else {
236
236
  throw new Error("No value provided for input HTTP label: AssetId.");
@@ -240,7 +240,7 @@ const serializeAws_restJson1GetAssetCommand = async (input, context) => {
240
240
  if (labelValue.length <= 0) {
241
241
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
242
242
  }
243
- resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
243
+ resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
244
244
  }
245
245
  else {
246
246
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -250,7 +250,7 @@ const serializeAws_restJson1GetAssetCommand = async (input, context) => {
250
250
  if (labelValue.length <= 0) {
251
251
  throw new Error("Empty value provided for input HTTP label: RevisionId.");
252
252
  }
253
- resolvedPath = resolvedPath.replace("{RevisionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
253
+ resolvedPath = resolvedPath.replace("{RevisionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
254
254
  }
255
255
  else {
256
256
  throw new Error("No value provided for input HTTP label: RevisionId.");
@@ -276,7 +276,7 @@ const serializeAws_restJson1GetDataSetCommand = async (input, context) => {
276
276
  if (labelValue.length <= 0) {
277
277
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
278
278
  }
279
- resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
279
+ resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
280
280
  }
281
281
  else {
282
282
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -302,7 +302,7 @@ const serializeAws_restJson1GetJobCommand = async (input, context) => {
302
302
  if (labelValue.length <= 0) {
303
303
  throw new Error("Empty value provided for input HTTP label: JobId.");
304
304
  }
305
- resolvedPath = resolvedPath.replace("{JobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
305
+ resolvedPath = resolvedPath.replace("{JobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
306
306
  }
307
307
  else {
308
308
  throw new Error("No value provided for input HTTP label: JobId.");
@@ -329,7 +329,7 @@ const serializeAws_restJson1GetRevisionCommand = async (input, context) => {
329
329
  if (labelValue.length <= 0) {
330
330
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
331
331
  }
332
- resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
332
+ resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
333
333
  }
334
334
  else {
335
335
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -339,7 +339,7 @@ const serializeAws_restJson1GetRevisionCommand = async (input, context) => {
339
339
  if (labelValue.length <= 0) {
340
340
  throw new Error("Empty value provided for input HTTP label: RevisionId.");
341
341
  }
342
- resolvedPath = resolvedPath.replace("{RevisionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
342
+ resolvedPath = resolvedPath.replace("{RevisionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
343
343
  }
344
344
  else {
345
345
  throw new Error("No value provided for input HTTP label: RevisionId.");
@@ -365,7 +365,7 @@ const serializeAws_restJson1ListDataSetRevisionsCommand = async (input, context)
365
365
  if (labelValue.length <= 0) {
366
366
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
367
367
  }
368
- resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
368
+ resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
369
369
  }
370
370
  else {
371
371
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -442,7 +442,7 @@ const serializeAws_restJson1ListRevisionAssetsCommand = async (input, context) =
442
442
  if (labelValue.length <= 0) {
443
443
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
444
444
  }
445
- resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
445
+ resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
446
446
  }
447
447
  else {
448
448
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -452,7 +452,7 @@ const serializeAws_restJson1ListRevisionAssetsCommand = async (input, context) =
452
452
  if (labelValue.length <= 0) {
453
453
  throw new Error("Empty value provided for input HTTP label: RevisionId.");
454
454
  }
455
- resolvedPath = resolvedPath.replace("{RevisionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
455
+ resolvedPath = resolvedPath.replace("{RevisionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
456
456
  }
457
457
  else {
458
458
  throw new Error("No value provided for input HTTP label: RevisionId.");
@@ -483,7 +483,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
483
483
  if (labelValue.length <= 0) {
484
484
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
485
485
  }
486
- resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
486
+ resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
487
487
  }
488
488
  else {
489
489
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -509,7 +509,7 @@ const serializeAws_restJson1StartJobCommand = async (input, context) => {
509
509
  if (labelValue.length <= 0) {
510
510
  throw new Error("Empty value provided for input HTTP label: JobId.");
511
511
  }
512
- resolvedPath = resolvedPath.replace("{JobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
512
+ resolvedPath = resolvedPath.replace("{JobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
513
513
  }
514
514
  else {
515
515
  throw new Error("No value provided for input HTTP label: JobId.");
@@ -537,7 +537,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
537
537
  if (labelValue.length <= 0) {
538
538
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
539
539
  }
540
- resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
540
+ resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
541
541
  }
542
542
  else {
543
543
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -567,7 +567,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
567
567
  if (labelValue.length <= 0) {
568
568
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
569
569
  }
570
- resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
570
+ resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
571
571
  }
572
572
  else {
573
573
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -600,7 +600,7 @@ const serializeAws_restJson1UpdateAssetCommand = async (input, context) => {
600
600
  if (labelValue.length <= 0) {
601
601
  throw new Error("Empty value provided for input HTTP label: AssetId.");
602
602
  }
603
- resolvedPath = resolvedPath.replace("{AssetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
603
+ resolvedPath = resolvedPath.replace("{AssetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
604
604
  }
605
605
  else {
606
606
  throw new Error("No value provided for input HTTP label: AssetId.");
@@ -610,7 +610,7 @@ const serializeAws_restJson1UpdateAssetCommand = async (input, context) => {
610
610
  if (labelValue.length <= 0) {
611
611
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
612
612
  }
613
- resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
613
+ resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
614
614
  }
615
615
  else {
616
616
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -620,7 +620,7 @@ const serializeAws_restJson1UpdateAssetCommand = async (input, context) => {
620
620
  if (labelValue.length <= 0) {
621
621
  throw new Error("Empty value provided for input HTTP label: RevisionId.");
622
622
  }
623
- resolvedPath = resolvedPath.replace("{RevisionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
623
+ resolvedPath = resolvedPath.replace("{RevisionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
624
624
  }
625
625
  else {
626
626
  throw new Error("No value provided for input HTTP label: RevisionId.");
@@ -651,7 +651,7 @@ const serializeAws_restJson1UpdateDataSetCommand = async (input, context) => {
651
651
  if (labelValue.length <= 0) {
652
652
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
653
653
  }
654
- resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
654
+ resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
655
655
  }
656
656
  else {
657
657
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -684,7 +684,7 @@ const serializeAws_restJson1UpdateRevisionCommand = async (input, context) => {
684
684
  if (labelValue.length <= 0) {
685
685
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
686
686
  }
687
- resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
687
+ resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
688
688
  }
689
689
  else {
690
690
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -694,7 +694,7 @@ const serializeAws_restJson1UpdateRevisionCommand = async (input, context) => {
694
694
  if (labelValue.length <= 0) {
695
695
  throw new Error("Empty value provided for input HTTP label: RevisionId.");
696
696
  }
697
- resolvedPath = resolvedPath.replace("{RevisionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
697
+ resolvedPath = resolvedPath.replace("{RevisionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
698
698
  }
699
699
  else {
700
700
  throw new Error("No value provided for input HTTP label: RevisionId.");
@@ -809,39 +809,39 @@ const deserializeAws_restJson1CreateDataSetCommand = async (output, context) =>
809
809
  Tags: undefined,
810
810
  UpdatedAt: undefined,
811
811
  };
812
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
812
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
813
813
  if (data.Arn !== undefined && data.Arn !== null) {
814
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
814
+ contents.Arn = smithy_client_1.expectString(data.Arn);
815
815
  }
816
816
  if (data.AssetType !== undefined && data.AssetType !== null) {
817
- contents.AssetType = (0, smithy_client_1.expectString)(data.AssetType);
817
+ contents.AssetType = smithy_client_1.expectString(data.AssetType);
818
818
  }
819
819
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
820
- contents.CreatedAt = new Date(data.CreatedAt);
820
+ contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
821
821
  }
822
822
  if (data.Description !== undefined && data.Description !== null) {
823
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
823
+ contents.Description = smithy_client_1.expectString(data.Description);
824
824
  }
825
825
  if (data.Id !== undefined && data.Id !== null) {
826
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
826
+ contents.Id = smithy_client_1.expectString(data.Id);
827
827
  }
828
828
  if (data.Name !== undefined && data.Name !== null) {
829
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
829
+ contents.Name = smithy_client_1.expectString(data.Name);
830
830
  }
831
831
  if (data.Origin !== undefined && data.Origin !== null) {
832
- contents.Origin = (0, smithy_client_1.expectString)(data.Origin);
832
+ contents.Origin = smithy_client_1.expectString(data.Origin);
833
833
  }
834
834
  if (data.OriginDetails !== undefined && data.OriginDetails !== null) {
835
835
  contents.OriginDetails = deserializeAws_restJson1OriginDetails(data.OriginDetails, context);
836
836
  }
837
837
  if (data.SourceId !== undefined && data.SourceId !== null) {
838
- contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
838
+ contents.SourceId = smithy_client_1.expectString(data.SourceId);
839
839
  }
840
840
  if (data.Tags !== undefined && data.Tags !== null) {
841
841
  contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
842
842
  }
843
843
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
844
- contents.UpdatedAt = new Date(data.UpdatedAt);
844
+ contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
845
845
  }
846
846
  return Promise.resolve(contents);
847
847
  };
@@ -926,12 +926,12 @@ const deserializeAws_restJson1CreateJobCommand = async (output, context) => {
926
926
  Type: undefined,
927
927
  UpdatedAt: undefined,
928
928
  };
929
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
929
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
930
930
  if (data.Arn !== undefined && data.Arn !== null) {
931
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
931
+ contents.Arn = smithy_client_1.expectString(data.Arn);
932
932
  }
933
933
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
934
- contents.CreatedAt = new Date(data.CreatedAt);
934
+ contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
935
935
  }
936
936
  if (data.Details !== undefined && data.Details !== null) {
937
937
  contents.Details = deserializeAws_restJson1ResponseDetails(data.Details, context);
@@ -940,16 +940,16 @@ const deserializeAws_restJson1CreateJobCommand = async (output, context) => {
940
940
  contents.Errors = deserializeAws_restJson1ListOfJobError(data.Errors, context);
941
941
  }
942
942
  if (data.Id !== undefined && data.Id !== null) {
943
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
943
+ contents.Id = smithy_client_1.expectString(data.Id);
944
944
  }
945
945
  if (data.State !== undefined && data.State !== null) {
946
- contents.State = (0, smithy_client_1.expectString)(data.State);
946
+ contents.State = smithy_client_1.expectString(data.State);
947
947
  }
948
948
  if (data.Type !== undefined && data.Type !== null) {
949
- contents.Type = (0, smithy_client_1.expectString)(data.Type);
949
+ contents.Type = smithy_client_1.expectString(data.Type);
950
950
  }
951
951
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
952
- contents.UpdatedAt = new Date(data.UpdatedAt);
952
+ contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
953
953
  }
954
954
  return Promise.resolve(contents);
955
955
  };
@@ -1035,33 +1035,33 @@ const deserializeAws_restJson1CreateRevisionCommand = async (output, context) =>
1035
1035
  Tags: undefined,
1036
1036
  UpdatedAt: undefined,
1037
1037
  };
1038
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1038
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1039
1039
  if (data.Arn !== undefined && data.Arn !== null) {
1040
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
1040
+ contents.Arn = smithy_client_1.expectString(data.Arn);
1041
1041
  }
1042
1042
  if (data.Comment !== undefined && data.Comment !== null) {
1043
- contents.Comment = (0, smithy_client_1.expectString)(data.Comment);
1043
+ contents.Comment = smithy_client_1.expectString(data.Comment);
1044
1044
  }
1045
1045
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
1046
- contents.CreatedAt = new Date(data.CreatedAt);
1046
+ contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
1047
1047
  }
1048
1048
  if (data.DataSetId !== undefined && data.DataSetId !== null) {
1049
- contents.DataSetId = (0, smithy_client_1.expectString)(data.DataSetId);
1049
+ contents.DataSetId = smithy_client_1.expectString(data.DataSetId);
1050
1050
  }
1051
1051
  if (data.Finalized !== undefined && data.Finalized !== null) {
1052
- contents.Finalized = (0, smithy_client_1.expectBoolean)(data.Finalized);
1052
+ contents.Finalized = smithy_client_1.expectBoolean(data.Finalized);
1053
1053
  }
1054
1054
  if (data.Id !== undefined && data.Id !== null) {
1055
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
1055
+ contents.Id = smithy_client_1.expectString(data.Id);
1056
1056
  }
1057
1057
  if (data.SourceId !== undefined && data.SourceId !== null) {
1058
- contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
1058
+ contents.SourceId = smithy_client_1.expectString(data.SourceId);
1059
1059
  }
1060
1060
  if (data.Tags !== undefined && data.Tags !== null) {
1061
1061
  contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
1062
1062
  }
1063
1063
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
1064
- contents.UpdatedAt = new Date(data.UpdatedAt);
1064
+ contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
1065
1065
  }
1066
1066
  return Promise.resolve(contents);
1067
1067
  };
@@ -1400,36 +1400,36 @@ const deserializeAws_restJson1GetAssetCommand = async (output, context) => {
1400
1400
  SourceId: undefined,
1401
1401
  UpdatedAt: undefined,
1402
1402
  };
1403
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1403
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1404
1404
  if (data.Arn !== undefined && data.Arn !== null) {
1405
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
1405
+ contents.Arn = smithy_client_1.expectString(data.Arn);
1406
1406
  }
1407
1407
  if (data.AssetDetails !== undefined && data.AssetDetails !== null) {
1408
1408
  contents.AssetDetails = deserializeAws_restJson1AssetDetails(data.AssetDetails, context);
1409
1409
  }
1410
1410
  if (data.AssetType !== undefined && data.AssetType !== null) {
1411
- contents.AssetType = (0, smithy_client_1.expectString)(data.AssetType);
1411
+ contents.AssetType = smithy_client_1.expectString(data.AssetType);
1412
1412
  }
1413
1413
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
1414
- contents.CreatedAt = new Date(data.CreatedAt);
1414
+ contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
1415
1415
  }
1416
1416
  if (data.DataSetId !== undefined && data.DataSetId !== null) {
1417
- contents.DataSetId = (0, smithy_client_1.expectString)(data.DataSetId);
1417
+ contents.DataSetId = smithy_client_1.expectString(data.DataSetId);
1418
1418
  }
1419
1419
  if (data.Id !== undefined && data.Id !== null) {
1420
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
1420
+ contents.Id = smithy_client_1.expectString(data.Id);
1421
1421
  }
1422
1422
  if (data.Name !== undefined && data.Name !== null) {
1423
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
1423
+ contents.Name = smithy_client_1.expectString(data.Name);
1424
1424
  }
1425
1425
  if (data.RevisionId !== undefined && data.RevisionId !== null) {
1426
- contents.RevisionId = (0, smithy_client_1.expectString)(data.RevisionId);
1426
+ contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
1427
1427
  }
1428
1428
  if (data.SourceId !== undefined && data.SourceId !== null) {
1429
- contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
1429
+ contents.SourceId = smithy_client_1.expectString(data.SourceId);
1430
1430
  }
1431
1431
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
1432
- contents.UpdatedAt = new Date(data.UpdatedAt);
1432
+ contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
1433
1433
  }
1434
1434
  return Promise.resolve(contents);
1435
1435
  };
@@ -1509,39 +1509,39 @@ const deserializeAws_restJson1GetDataSetCommand = async (output, context) => {
1509
1509
  Tags: undefined,
1510
1510
  UpdatedAt: undefined,
1511
1511
  };
1512
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1512
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1513
1513
  if (data.Arn !== undefined && data.Arn !== null) {
1514
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
1514
+ contents.Arn = smithy_client_1.expectString(data.Arn);
1515
1515
  }
1516
1516
  if (data.AssetType !== undefined && data.AssetType !== null) {
1517
- contents.AssetType = (0, smithy_client_1.expectString)(data.AssetType);
1517
+ contents.AssetType = smithy_client_1.expectString(data.AssetType);
1518
1518
  }
1519
1519
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
1520
- contents.CreatedAt = new Date(data.CreatedAt);
1520
+ contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
1521
1521
  }
1522
1522
  if (data.Description !== undefined && data.Description !== null) {
1523
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
1523
+ contents.Description = smithy_client_1.expectString(data.Description);
1524
1524
  }
1525
1525
  if (data.Id !== undefined && data.Id !== null) {
1526
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
1526
+ contents.Id = smithy_client_1.expectString(data.Id);
1527
1527
  }
1528
1528
  if (data.Name !== undefined && data.Name !== null) {
1529
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
1529
+ contents.Name = smithy_client_1.expectString(data.Name);
1530
1530
  }
1531
1531
  if (data.Origin !== undefined && data.Origin !== null) {
1532
- contents.Origin = (0, smithy_client_1.expectString)(data.Origin);
1532
+ contents.Origin = smithy_client_1.expectString(data.Origin);
1533
1533
  }
1534
1534
  if (data.OriginDetails !== undefined && data.OriginDetails !== null) {
1535
1535
  contents.OriginDetails = deserializeAws_restJson1OriginDetails(data.OriginDetails, context);
1536
1536
  }
1537
1537
  if (data.SourceId !== undefined && data.SourceId !== null) {
1538
- contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
1538
+ contents.SourceId = smithy_client_1.expectString(data.SourceId);
1539
1539
  }
1540
1540
  if (data.Tags !== undefined && data.Tags !== null) {
1541
1541
  contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
1542
1542
  }
1543
1543
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
1544
- contents.UpdatedAt = new Date(data.UpdatedAt);
1544
+ contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
1545
1545
  }
1546
1546
  return Promise.resolve(contents);
1547
1547
  };
@@ -1618,12 +1618,12 @@ const deserializeAws_restJson1GetJobCommand = async (output, context) => {
1618
1618
  Type: undefined,
1619
1619
  UpdatedAt: undefined,
1620
1620
  };
1621
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1621
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1622
1622
  if (data.Arn !== undefined && data.Arn !== null) {
1623
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
1623
+ contents.Arn = smithy_client_1.expectString(data.Arn);
1624
1624
  }
1625
1625
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
1626
- contents.CreatedAt = new Date(data.CreatedAt);
1626
+ contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
1627
1627
  }
1628
1628
  if (data.Details !== undefined && data.Details !== null) {
1629
1629
  contents.Details = deserializeAws_restJson1ResponseDetails(data.Details, context);
@@ -1632,16 +1632,16 @@ const deserializeAws_restJson1GetJobCommand = async (output, context) => {
1632
1632
  contents.Errors = deserializeAws_restJson1ListOfJobError(data.Errors, context);
1633
1633
  }
1634
1634
  if (data.Id !== undefined && data.Id !== null) {
1635
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
1635
+ contents.Id = smithy_client_1.expectString(data.Id);
1636
1636
  }
1637
1637
  if (data.State !== undefined && data.State !== null) {
1638
- contents.State = (0, smithy_client_1.expectString)(data.State);
1638
+ contents.State = smithy_client_1.expectString(data.State);
1639
1639
  }
1640
1640
  if (data.Type !== undefined && data.Type !== null) {
1641
- contents.Type = (0, smithy_client_1.expectString)(data.Type);
1641
+ contents.Type = smithy_client_1.expectString(data.Type);
1642
1642
  }
1643
1643
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
1644
- contents.UpdatedAt = new Date(data.UpdatedAt);
1644
+ contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
1645
1645
  }
1646
1646
  return Promise.resolve(contents);
1647
1647
  };
@@ -1719,33 +1719,33 @@ const deserializeAws_restJson1GetRevisionCommand = async (output, context) => {
1719
1719
  Tags: undefined,
1720
1720
  UpdatedAt: undefined,
1721
1721
  };
1722
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1722
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1723
1723
  if (data.Arn !== undefined && data.Arn !== null) {
1724
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
1724
+ contents.Arn = smithy_client_1.expectString(data.Arn);
1725
1725
  }
1726
1726
  if (data.Comment !== undefined && data.Comment !== null) {
1727
- contents.Comment = (0, smithy_client_1.expectString)(data.Comment);
1727
+ contents.Comment = smithy_client_1.expectString(data.Comment);
1728
1728
  }
1729
1729
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
1730
- contents.CreatedAt = new Date(data.CreatedAt);
1730
+ contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
1731
1731
  }
1732
1732
  if (data.DataSetId !== undefined && data.DataSetId !== null) {
1733
- contents.DataSetId = (0, smithy_client_1.expectString)(data.DataSetId);
1733
+ contents.DataSetId = smithy_client_1.expectString(data.DataSetId);
1734
1734
  }
1735
1735
  if (data.Finalized !== undefined && data.Finalized !== null) {
1736
- contents.Finalized = (0, smithy_client_1.expectBoolean)(data.Finalized);
1736
+ contents.Finalized = smithy_client_1.expectBoolean(data.Finalized);
1737
1737
  }
1738
1738
  if (data.Id !== undefined && data.Id !== null) {
1739
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
1739
+ contents.Id = smithy_client_1.expectString(data.Id);
1740
1740
  }
1741
1741
  if (data.SourceId !== undefined && data.SourceId !== null) {
1742
- contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
1742
+ contents.SourceId = smithy_client_1.expectString(data.SourceId);
1743
1743
  }
1744
1744
  if (data.Tags !== undefined && data.Tags !== null) {
1745
1745
  contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
1746
1746
  }
1747
1747
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
1748
- contents.UpdatedAt = new Date(data.UpdatedAt);
1748
+ contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
1749
1749
  }
1750
1750
  return Promise.resolve(contents);
1751
1751
  };
@@ -1816,9 +1816,9 @@ const deserializeAws_restJson1ListDataSetRevisionsCommand = async (output, conte
1816
1816
  NextToken: undefined,
1817
1817
  Revisions: undefined,
1818
1818
  };
1819
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1819
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1820
1820
  if (data.NextToken !== undefined && data.NextToken !== null) {
1821
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1821
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
1822
1822
  }
1823
1823
  if (data.Revisions !== undefined && data.Revisions !== null) {
1824
1824
  contents.Revisions = deserializeAws_restJson1ListOfRevisionEntry(data.Revisions, context);
@@ -1892,12 +1892,12 @@ const deserializeAws_restJson1ListDataSetsCommand = async (output, context) => {
1892
1892
  DataSets: undefined,
1893
1893
  NextToken: undefined,
1894
1894
  };
1895
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1895
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1896
1896
  if (data.DataSets !== undefined && data.DataSets !== null) {
1897
1897
  contents.DataSets = deserializeAws_restJson1ListOfDataSetEntry(data.DataSets, context);
1898
1898
  }
1899
1899
  if (data.NextToken !== undefined && data.NextToken !== null) {
1900
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1900
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
1901
1901
  }
1902
1902
  return Promise.resolve(contents);
1903
1903
  };
@@ -1968,12 +1968,12 @@ const deserializeAws_restJson1ListJobsCommand = async (output, context) => {
1968
1968
  Jobs: undefined,
1969
1969
  NextToken: undefined,
1970
1970
  };
1971
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1971
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1972
1972
  if (data.Jobs !== undefined && data.Jobs !== null) {
1973
1973
  contents.Jobs = deserializeAws_restJson1ListOfJobEntry(data.Jobs, context);
1974
1974
  }
1975
1975
  if (data.NextToken !== undefined && data.NextToken !== null) {
1976
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1976
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
1977
1977
  }
1978
1978
  return Promise.resolve(contents);
1979
1979
  };
@@ -2044,12 +2044,12 @@ const deserializeAws_restJson1ListRevisionAssetsCommand = async (output, context
2044
2044
  Assets: undefined,
2045
2045
  NextToken: undefined,
2046
2046
  };
2047
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2047
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2048
2048
  if (data.Assets !== undefined && data.Assets !== null) {
2049
2049
  contents.Assets = deserializeAws_restJson1ListOfAssetEntry(data.Assets, context);
2050
2050
  }
2051
2051
  if (data.NextToken !== undefined && data.NextToken !== null) {
2052
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2052
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
2053
2053
  }
2054
2054
  return Promise.resolve(contents);
2055
2055
  };
@@ -2119,7 +2119,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
2119
2119
  $metadata: deserializeMetadata(output),
2120
2120
  Tags: undefined,
2121
2121
  };
2122
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2122
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2123
2123
  if (data.tags !== undefined && data.tags !== null) {
2124
2124
  contents.Tags = deserializeAws_restJson1MapOf__string(data.tags, context);
2125
2125
  }
@@ -2324,36 +2324,36 @@ const deserializeAws_restJson1UpdateAssetCommand = async (output, context) => {
2324
2324
  SourceId: undefined,
2325
2325
  UpdatedAt: undefined,
2326
2326
  };
2327
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2327
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2328
2328
  if (data.Arn !== undefined && data.Arn !== null) {
2329
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
2329
+ contents.Arn = smithy_client_1.expectString(data.Arn);
2330
2330
  }
2331
2331
  if (data.AssetDetails !== undefined && data.AssetDetails !== null) {
2332
2332
  contents.AssetDetails = deserializeAws_restJson1AssetDetails(data.AssetDetails, context);
2333
2333
  }
2334
2334
  if (data.AssetType !== undefined && data.AssetType !== null) {
2335
- contents.AssetType = (0, smithy_client_1.expectString)(data.AssetType);
2335
+ contents.AssetType = smithy_client_1.expectString(data.AssetType);
2336
2336
  }
2337
2337
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
2338
- contents.CreatedAt = new Date(data.CreatedAt);
2338
+ contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
2339
2339
  }
2340
2340
  if (data.DataSetId !== undefined && data.DataSetId !== null) {
2341
- contents.DataSetId = (0, smithy_client_1.expectString)(data.DataSetId);
2341
+ contents.DataSetId = smithy_client_1.expectString(data.DataSetId);
2342
2342
  }
2343
2343
  if (data.Id !== undefined && data.Id !== null) {
2344
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
2344
+ contents.Id = smithy_client_1.expectString(data.Id);
2345
2345
  }
2346
2346
  if (data.Name !== undefined && data.Name !== null) {
2347
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
2347
+ contents.Name = smithy_client_1.expectString(data.Name);
2348
2348
  }
2349
2349
  if (data.RevisionId !== undefined && data.RevisionId !== null) {
2350
- contents.RevisionId = (0, smithy_client_1.expectString)(data.RevisionId);
2350
+ contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
2351
2351
  }
2352
2352
  if (data.SourceId !== undefined && data.SourceId !== null) {
2353
- contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
2353
+ contents.SourceId = smithy_client_1.expectString(data.SourceId);
2354
2354
  }
2355
2355
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
2356
- contents.UpdatedAt = new Date(data.UpdatedAt);
2356
+ contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
2357
2357
  }
2358
2358
  return Promise.resolve(contents);
2359
2359
  };
@@ -2448,36 +2448,36 @@ const deserializeAws_restJson1UpdateDataSetCommand = async (output, context) =>
2448
2448
  SourceId: undefined,
2449
2449
  UpdatedAt: undefined,
2450
2450
  };
2451
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2451
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2452
2452
  if (data.Arn !== undefined && data.Arn !== null) {
2453
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
2453
+ contents.Arn = smithy_client_1.expectString(data.Arn);
2454
2454
  }
2455
2455
  if (data.AssetType !== undefined && data.AssetType !== null) {
2456
- contents.AssetType = (0, smithy_client_1.expectString)(data.AssetType);
2456
+ contents.AssetType = smithy_client_1.expectString(data.AssetType);
2457
2457
  }
2458
2458
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
2459
- contents.CreatedAt = new Date(data.CreatedAt);
2459
+ contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
2460
2460
  }
2461
2461
  if (data.Description !== undefined && data.Description !== null) {
2462
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
2462
+ contents.Description = smithy_client_1.expectString(data.Description);
2463
2463
  }
2464
2464
  if (data.Id !== undefined && data.Id !== null) {
2465
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
2465
+ contents.Id = smithy_client_1.expectString(data.Id);
2466
2466
  }
2467
2467
  if (data.Name !== undefined && data.Name !== null) {
2468
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
2468
+ contents.Name = smithy_client_1.expectString(data.Name);
2469
2469
  }
2470
2470
  if (data.Origin !== undefined && data.Origin !== null) {
2471
- contents.Origin = (0, smithy_client_1.expectString)(data.Origin);
2471
+ contents.Origin = smithy_client_1.expectString(data.Origin);
2472
2472
  }
2473
2473
  if (data.OriginDetails !== undefined && data.OriginDetails !== null) {
2474
2474
  contents.OriginDetails = deserializeAws_restJson1OriginDetails(data.OriginDetails, context);
2475
2475
  }
2476
2476
  if (data.SourceId !== undefined && data.SourceId !== null) {
2477
- contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
2477
+ contents.SourceId = smithy_client_1.expectString(data.SourceId);
2478
2478
  }
2479
2479
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
2480
- contents.UpdatedAt = new Date(data.UpdatedAt);
2480
+ contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
2481
2481
  }
2482
2482
  return Promise.resolve(contents);
2483
2483
  };
@@ -2562,30 +2562,30 @@ const deserializeAws_restJson1UpdateRevisionCommand = async (output, context) =>
2562
2562
  SourceId: undefined,
2563
2563
  UpdatedAt: undefined,
2564
2564
  };
2565
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2565
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2566
2566
  if (data.Arn !== undefined && data.Arn !== null) {
2567
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
2567
+ contents.Arn = smithy_client_1.expectString(data.Arn);
2568
2568
  }
2569
2569
  if (data.Comment !== undefined && data.Comment !== null) {
2570
- contents.Comment = (0, smithy_client_1.expectString)(data.Comment);
2570
+ contents.Comment = smithy_client_1.expectString(data.Comment);
2571
2571
  }
2572
2572
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
2573
- contents.CreatedAt = new Date(data.CreatedAt);
2573
+ contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
2574
2574
  }
2575
2575
  if (data.DataSetId !== undefined && data.DataSetId !== null) {
2576
- contents.DataSetId = (0, smithy_client_1.expectString)(data.DataSetId);
2576
+ contents.DataSetId = smithy_client_1.expectString(data.DataSetId);
2577
2577
  }
2578
2578
  if (data.Finalized !== undefined && data.Finalized !== null) {
2579
- contents.Finalized = (0, smithy_client_1.expectBoolean)(data.Finalized);
2579
+ contents.Finalized = smithy_client_1.expectBoolean(data.Finalized);
2580
2580
  }
2581
2581
  if (data.Id !== undefined && data.Id !== null) {
2582
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
2582
+ contents.Id = smithy_client_1.expectString(data.Id);
2583
2583
  }
2584
2584
  if (data.SourceId !== undefined && data.SourceId !== null) {
2585
- contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
2585
+ contents.SourceId = smithy_client_1.expectString(data.SourceId);
2586
2586
  }
2587
2587
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
2588
- contents.UpdatedAt = new Date(data.UpdatedAt);
2588
+ contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
2589
2589
  }
2590
2590
  return Promise.resolve(contents);
2591
2591
  };
@@ -2672,7 +2672,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
2672
2672
  };
2673
2673
  const data = parsedOutput.body;
2674
2674
  if (data.Message !== undefined && data.Message !== null) {
2675
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
2675
+ contents.Message = smithy_client_1.expectString(data.Message);
2676
2676
  }
2677
2677
  return contents;
2678
2678
  };
@@ -2687,13 +2687,13 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
2687
2687
  };
2688
2688
  const data = parsedOutput.body;
2689
2689
  if (data.Message !== undefined && data.Message !== null) {
2690
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
2690
+ contents.Message = smithy_client_1.expectString(data.Message);
2691
2691
  }
2692
2692
  if (data.ResourceId !== undefined && data.ResourceId !== null) {
2693
- contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
2693
+ contents.ResourceId = smithy_client_1.expectString(data.ResourceId);
2694
2694
  }
2695
2695
  if (data.ResourceType !== undefined && data.ResourceType !== null) {
2696
- contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
2696
+ contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
2697
2697
  }
2698
2698
  return contents;
2699
2699
  };
@@ -2706,7 +2706,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
2706
2706
  };
2707
2707
  const data = parsedOutput.body;
2708
2708
  if (data.Message !== undefined && data.Message !== null) {
2709
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
2709
+ contents.Message = smithy_client_1.expectString(data.Message);
2710
2710
  }
2711
2711
  return contents;
2712
2712
  };
@@ -2721,13 +2721,13 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
2721
2721
  };
2722
2722
  const data = parsedOutput.body;
2723
2723
  if (data.Message !== undefined && data.Message !== null) {
2724
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
2724
+ contents.Message = smithy_client_1.expectString(data.Message);
2725
2725
  }
2726
2726
  if (data.ResourceId !== undefined && data.ResourceId !== null) {
2727
- contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
2727
+ contents.ResourceId = smithy_client_1.expectString(data.ResourceId);
2728
2728
  }
2729
2729
  if (data.ResourceType !== undefined && data.ResourceType !== null) {
2730
- contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
2730
+ contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
2731
2731
  }
2732
2732
  return contents;
2733
2733
  };
@@ -2742,13 +2742,13 @@ const deserializeAws_restJson1ServiceLimitExceededExceptionResponse = async (par
2742
2742
  };
2743
2743
  const data = parsedOutput.body;
2744
2744
  if (data.LimitName !== undefined && data.LimitName !== null) {
2745
- contents.LimitName = (0, smithy_client_1.expectString)(data.LimitName);
2745
+ contents.LimitName = smithy_client_1.expectString(data.LimitName);
2746
2746
  }
2747
2747
  if (data.LimitValue !== undefined && data.LimitValue !== null) {
2748
- contents.LimitValue = (0, smithy_client_1.limitedParseDouble)(data.LimitValue);
2748
+ contents.LimitValue = smithy_client_1.limitedParseDouble(data.LimitValue);
2749
2749
  }
2750
2750
  if (data.Message !== undefined && data.Message !== null) {
2751
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
2751
+ contents.Message = smithy_client_1.expectString(data.Message);
2752
2752
  }
2753
2753
  return contents;
2754
2754
  };
@@ -2761,7 +2761,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
2761
2761
  };
2762
2762
  const data = parsedOutput.body;
2763
2763
  if (data.Message !== undefined && data.Message !== null) {
2764
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
2764
+ contents.Message = smithy_client_1.expectString(data.Message);
2765
2765
  }
2766
2766
  return contents;
2767
2767
  };
@@ -2774,7 +2774,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
2774
2774
  };
2775
2775
  const data = parsedOutput.body;
2776
2776
  if (data.Message !== undefined && data.Message !== null) {
2777
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
2777
+ contents.Message = smithy_client_1.expectString(data.Message);
2778
2778
  }
2779
2779
  return contents;
2780
2780
  };
@@ -2923,9 +2923,9 @@ const serializeAws_restJson1RevisionDestinationEntry = (input, context) => {
2923
2923
  };
2924
2924
  const deserializeAws_restJson1AssetDestinationEntry = (output, context) => {
2925
2925
  return {
2926
- AssetId: (0, smithy_client_1.expectString)(output.AssetId),
2927
- Bucket: (0, smithy_client_1.expectString)(output.Bucket),
2928
- Key: (0, smithy_client_1.expectString)(output.Key),
2926
+ AssetId: smithy_client_1.expectString(output.AssetId),
2927
+ Bucket: smithy_client_1.expectString(output.Bucket),
2928
+ Key: smithy_client_1.expectString(output.Key),
2929
2929
  };
2930
2930
  };
2931
2931
  const deserializeAws_restJson1AssetDetails = (output, context) => {
@@ -2937,40 +2937,48 @@ const deserializeAws_restJson1AssetDetails = (output, context) => {
2937
2937
  };
2938
2938
  const deserializeAws_restJson1AssetEntry = (output, context) => {
2939
2939
  return {
2940
- Arn: (0, smithy_client_1.expectString)(output.Arn),
2940
+ Arn: smithy_client_1.expectString(output.Arn),
2941
2941
  AssetDetails: output.AssetDetails !== undefined && output.AssetDetails !== null
2942
2942
  ? deserializeAws_restJson1AssetDetails(output.AssetDetails, context)
2943
2943
  : undefined,
2944
- AssetType: (0, smithy_client_1.expectString)(output.AssetType),
2945
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null ? new Date(output.CreatedAt) : undefined,
2946
- DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
2947
- Id: (0, smithy_client_1.expectString)(output.Id),
2948
- Name: (0, smithy_client_1.expectString)(output.Name),
2949
- RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
2950
- SourceId: (0, smithy_client_1.expectString)(output.SourceId),
2951
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null ? new Date(output.UpdatedAt) : undefined,
2944
+ AssetType: smithy_client_1.expectString(output.AssetType),
2945
+ CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
2946
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedAt))
2947
+ : undefined,
2948
+ DataSetId: smithy_client_1.expectString(output.DataSetId),
2949
+ Id: smithy_client_1.expectString(output.Id),
2950
+ Name: smithy_client_1.expectString(output.Name),
2951
+ RevisionId: smithy_client_1.expectString(output.RevisionId),
2952
+ SourceId: smithy_client_1.expectString(output.SourceId),
2953
+ UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
2954
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedAt))
2955
+ : undefined,
2952
2956
  };
2953
2957
  };
2954
2958
  const deserializeAws_restJson1AssetSourceEntry = (output, context) => {
2955
2959
  return {
2956
- Bucket: (0, smithy_client_1.expectString)(output.Bucket),
2957
- Key: (0, smithy_client_1.expectString)(output.Key),
2960
+ Bucket: smithy_client_1.expectString(output.Bucket),
2961
+ Key: smithy_client_1.expectString(output.Key),
2958
2962
  };
2959
2963
  };
2960
2964
  const deserializeAws_restJson1DataSetEntry = (output, context) => {
2961
2965
  return {
2962
- Arn: (0, smithy_client_1.expectString)(output.Arn),
2963
- AssetType: (0, smithy_client_1.expectString)(output.AssetType),
2964
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null ? new Date(output.CreatedAt) : undefined,
2965
- Description: (0, smithy_client_1.expectString)(output.Description),
2966
- Id: (0, smithy_client_1.expectString)(output.Id),
2967
- Name: (0, smithy_client_1.expectString)(output.Name),
2968
- Origin: (0, smithy_client_1.expectString)(output.Origin),
2966
+ Arn: smithy_client_1.expectString(output.Arn),
2967
+ AssetType: smithy_client_1.expectString(output.AssetType),
2968
+ CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
2969
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedAt))
2970
+ : undefined,
2971
+ Description: smithy_client_1.expectString(output.Description),
2972
+ Id: smithy_client_1.expectString(output.Id),
2973
+ Name: smithy_client_1.expectString(output.Name),
2974
+ Origin: smithy_client_1.expectString(output.Origin),
2969
2975
  OriginDetails: output.OriginDetails !== undefined && output.OriginDetails !== null
2970
2976
  ? deserializeAws_restJson1OriginDetails(output.OriginDetails, context)
2971
2977
  : undefined,
2972
- SourceId: (0, smithy_client_1.expectString)(output.SourceId),
2973
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null ? new Date(output.UpdatedAt) : undefined,
2978
+ SourceId: smithy_client_1.expectString(output.SourceId),
2979
+ UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
2980
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedAt))
2981
+ : undefined,
2974
2982
  };
2975
2983
  };
2976
2984
  const deserializeAws_restJson1Details = (output, context) => {
@@ -2989,27 +2997,27 @@ const deserializeAws_restJson1ExportAssetsToS3ResponseDetails = (output, context
2989
2997
  AssetDestinations: output.AssetDestinations !== undefined && output.AssetDestinations !== null
2990
2998
  ? deserializeAws_restJson1ListOfAssetDestinationEntry(output.AssetDestinations, context)
2991
2999
  : undefined,
2992
- DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
3000
+ DataSetId: smithy_client_1.expectString(output.DataSetId),
2993
3001
  Encryption: output.Encryption !== undefined && output.Encryption !== null
2994
3002
  ? deserializeAws_restJson1ExportServerSideEncryption(output.Encryption, context)
2995
3003
  : undefined,
2996
- RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
3004
+ RevisionId: smithy_client_1.expectString(output.RevisionId),
2997
3005
  };
2998
3006
  };
2999
3007
  const deserializeAws_restJson1ExportAssetToSignedUrlResponseDetails = (output, context) => {
3000
3008
  return {
3001
- AssetId: (0, smithy_client_1.expectString)(output.AssetId),
3002
- DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
3003
- RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
3004
- SignedUrl: (0, smithy_client_1.expectString)(output.SignedUrl),
3009
+ AssetId: smithy_client_1.expectString(output.AssetId),
3010
+ DataSetId: smithy_client_1.expectString(output.DataSetId),
3011
+ RevisionId: smithy_client_1.expectString(output.RevisionId),
3012
+ SignedUrl: smithy_client_1.expectString(output.SignedUrl),
3005
3013
  SignedUrlExpiresAt: output.SignedUrlExpiresAt !== undefined && output.SignedUrlExpiresAt !== null
3006
- ? new Date(output.SignedUrlExpiresAt)
3014
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.SignedUrlExpiresAt))
3007
3015
  : undefined,
3008
3016
  };
3009
3017
  };
3010
3018
  const deserializeAws_restJson1ExportRevisionsToS3ResponseDetails = (output, context) => {
3011
3019
  return {
3012
- DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
3020
+ DataSetId: smithy_client_1.expectString(output.DataSetId),
3013
3021
  Encryption: output.Encryption !== undefined && output.Encryption !== null
3014
3022
  ? deserializeAws_restJson1ExportServerSideEncryption(output.Encryption, context)
3015
3023
  : undefined,
@@ -3020,24 +3028,24 @@ const deserializeAws_restJson1ExportRevisionsToS3ResponseDetails = (output, cont
3020
3028
  };
3021
3029
  const deserializeAws_restJson1ExportServerSideEncryption = (output, context) => {
3022
3030
  return {
3023
- KmsKeyArn: (0, smithy_client_1.expectString)(output.KmsKeyArn),
3024
- Type: (0, smithy_client_1.expectString)(output.Type),
3031
+ KmsKeyArn: smithy_client_1.expectString(output.KmsKeyArn),
3032
+ Type: smithy_client_1.expectString(output.Type),
3025
3033
  };
3026
3034
  };
3027
3035
  const deserializeAws_restJson1ImportAssetFromSignedUrlJobErrorDetails = (output, context) => {
3028
3036
  return {
3029
- AssetName: (0, smithy_client_1.expectString)(output.AssetName),
3037
+ AssetName: smithy_client_1.expectString(output.AssetName),
3030
3038
  };
3031
3039
  };
3032
3040
  const deserializeAws_restJson1ImportAssetFromSignedUrlResponseDetails = (output, context) => {
3033
3041
  return {
3034
- AssetName: (0, smithy_client_1.expectString)(output.AssetName),
3035
- DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
3036
- Md5Hash: (0, smithy_client_1.expectString)(output.Md5Hash),
3037
- RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
3038
- SignedUrl: (0, smithy_client_1.expectString)(output.SignedUrl),
3042
+ AssetName: smithy_client_1.expectString(output.AssetName),
3043
+ DataSetId: smithy_client_1.expectString(output.DataSetId),
3044
+ Md5Hash: smithy_client_1.expectString(output.Md5Hash),
3045
+ RevisionId: smithy_client_1.expectString(output.RevisionId),
3046
+ SignedUrl: smithy_client_1.expectString(output.SignedUrl),
3039
3047
  SignedUrlExpiresAt: output.SignedUrlExpiresAt !== undefined && output.SignedUrlExpiresAt !== null
3040
- ? new Date(output.SignedUrlExpiresAt)
3048
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.SignedUrlExpiresAt))
3041
3049
  : undefined,
3042
3050
  };
3043
3051
  };
@@ -3046,37 +3054,41 @@ const deserializeAws_restJson1ImportAssetsFromS3ResponseDetails = (output, conte
3046
3054
  AssetSources: output.AssetSources !== undefined && output.AssetSources !== null
3047
3055
  ? deserializeAws_restJson1ListOfAssetSourceEntry(output.AssetSources, context)
3048
3056
  : undefined,
3049
- DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
3050
- RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
3057
+ DataSetId: smithy_client_1.expectString(output.DataSetId),
3058
+ RevisionId: smithy_client_1.expectString(output.RevisionId),
3051
3059
  };
3052
3060
  };
3053
3061
  const deserializeAws_restJson1JobEntry = (output, context) => {
3054
3062
  return {
3055
- Arn: (0, smithy_client_1.expectString)(output.Arn),
3056
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null ? new Date(output.CreatedAt) : undefined,
3063
+ Arn: smithy_client_1.expectString(output.Arn),
3064
+ CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
3065
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedAt))
3066
+ : undefined,
3057
3067
  Details: output.Details !== undefined && output.Details !== null
3058
3068
  ? deserializeAws_restJson1ResponseDetails(output.Details, context)
3059
3069
  : undefined,
3060
3070
  Errors: output.Errors !== undefined && output.Errors !== null
3061
3071
  ? deserializeAws_restJson1ListOfJobError(output.Errors, context)
3062
3072
  : undefined,
3063
- Id: (0, smithy_client_1.expectString)(output.Id),
3064
- State: (0, smithy_client_1.expectString)(output.State),
3065
- Type: (0, smithy_client_1.expectString)(output.Type),
3066
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null ? new Date(output.UpdatedAt) : undefined,
3073
+ Id: smithy_client_1.expectString(output.Id),
3074
+ State: smithy_client_1.expectString(output.State),
3075
+ Type: smithy_client_1.expectString(output.Type),
3076
+ UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
3077
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedAt))
3078
+ : undefined,
3067
3079
  };
3068
3080
  };
3069
3081
  const deserializeAws_restJson1JobError = (output, context) => {
3070
3082
  return {
3071
- Code: (0, smithy_client_1.expectString)(output.Code),
3083
+ Code: smithy_client_1.expectString(output.Code),
3072
3084
  Details: output.Details !== undefined && output.Details !== null
3073
3085
  ? deserializeAws_restJson1Details(output.Details, context)
3074
3086
  : undefined,
3075
- LimitName: (0, smithy_client_1.expectString)(output.LimitName),
3076
- LimitValue: (0, smithy_client_1.limitedParseDouble)(output.LimitValue),
3077
- Message: (0, smithy_client_1.expectString)(output.Message),
3078
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
3079
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
3087
+ LimitName: smithy_client_1.expectString(output.LimitName),
3088
+ LimitValue: smithy_client_1.limitedParseDouble(output.LimitValue),
3089
+ Message: smithy_client_1.expectString(output.Message),
3090
+ ResourceId: smithy_client_1.expectString(output.ResourceId),
3091
+ ResourceType: smithy_client_1.expectString(output.ResourceType),
3080
3092
  };
3081
3093
  };
3082
3094
  const deserializeAws_restJson1ListOfAssetDestinationEntry = (output, context) => {
@@ -3166,13 +3178,13 @@ const deserializeAws_restJson1MapOf__string = (output, context) => {
3166
3178
  }
3167
3179
  return {
3168
3180
  ...acc,
3169
- [key]: (0, smithy_client_1.expectString)(value),
3181
+ [key]: smithy_client_1.expectString(value),
3170
3182
  };
3171
3183
  }, {});
3172
3184
  };
3173
3185
  const deserializeAws_restJson1OriginDetails = (output, context) => {
3174
3186
  return {
3175
- ProductId: (0, smithy_client_1.expectString)(output.ProductId),
3187
+ ProductId: smithy_client_1.expectString(output.ProductId),
3176
3188
  };
3177
3189
  };
3178
3190
  const deserializeAws_restJson1ResponseDetails = (output, context) => {
@@ -3196,26 +3208,30 @@ const deserializeAws_restJson1ResponseDetails = (output, context) => {
3196
3208
  };
3197
3209
  const deserializeAws_restJson1RevisionDestinationEntry = (output, context) => {
3198
3210
  return {
3199
- Bucket: (0, smithy_client_1.expectString)(output.Bucket),
3200
- KeyPattern: (0, smithy_client_1.expectString)(output.KeyPattern),
3201
- RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
3211
+ Bucket: smithy_client_1.expectString(output.Bucket),
3212
+ KeyPattern: smithy_client_1.expectString(output.KeyPattern),
3213
+ RevisionId: smithy_client_1.expectString(output.RevisionId),
3202
3214
  };
3203
3215
  };
3204
3216
  const deserializeAws_restJson1RevisionEntry = (output, context) => {
3205
3217
  return {
3206
- Arn: (0, smithy_client_1.expectString)(output.Arn),
3207
- Comment: (0, smithy_client_1.expectString)(output.Comment),
3208
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null ? new Date(output.CreatedAt) : undefined,
3209
- DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
3210
- Finalized: (0, smithy_client_1.expectBoolean)(output.Finalized),
3211
- Id: (0, smithy_client_1.expectString)(output.Id),
3212
- SourceId: (0, smithy_client_1.expectString)(output.SourceId),
3213
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null ? new Date(output.UpdatedAt) : undefined,
3218
+ Arn: smithy_client_1.expectString(output.Arn),
3219
+ Comment: smithy_client_1.expectString(output.Comment),
3220
+ CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
3221
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedAt))
3222
+ : undefined,
3223
+ DataSetId: smithy_client_1.expectString(output.DataSetId),
3224
+ Finalized: smithy_client_1.expectBoolean(output.Finalized),
3225
+ Id: smithy_client_1.expectString(output.Id),
3226
+ SourceId: smithy_client_1.expectString(output.SourceId),
3227
+ UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
3228
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedAt))
3229
+ : undefined,
3214
3230
  };
3215
3231
  };
3216
3232
  const deserializeAws_restJson1S3SnapshotAsset = (output, context) => {
3217
3233
  return {
3218
- Size: (0, smithy_client_1.limitedParseDouble)(output.Size),
3234
+ Size: smithy_client_1.limitedParseDouble(output.Size),
3219
3235
  };
3220
3236
  };
3221
3237
  const deserializeMetadata = (output) => {