@aws-sdk/client-sagemaker-geospatial 3.310.0 → 3.315.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.
@@ -47,13 +47,13 @@ const se_ExportEarthObservationJobCommand = async (input, context) => {
47
47
  };
48
48
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/export-earth-observation-job";
49
49
  let body;
50
- body = JSON.stringify({
51
- ...(input.Arn != null && { Arn: input.Arn }),
52
- ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
53
- ...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
54
- ...(input.ExportSourceImages != null && { ExportSourceImages: input.ExportSourceImages }),
55
- ...(input.OutputConfig != null && { OutputConfig: se_OutputConfigInput(input.OutputConfig, context) }),
56
- });
50
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
51
+ Arn: [],
52
+ ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
53
+ ExecutionRoleArn: [],
54
+ ExportSourceImages: [],
55
+ OutputConfig: (_) => (0, smithy_client_1._json)(_),
56
+ }));
57
57
  return new protocol_http_1.HttpRequest({
58
58
  protocol,
59
59
  hostname,
@@ -72,14 +72,12 @@ const se_ExportVectorEnrichmentJobCommand = async (input, context) => {
72
72
  };
73
73
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/export-vector-enrichment-jobs";
74
74
  let body;
75
- body = JSON.stringify({
76
- ...(input.Arn != null && { Arn: input.Arn }),
77
- ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
78
- ...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
79
- ...(input.OutputConfig != null && {
80
- OutputConfig: se_ExportVectorEnrichmentJobOutputConfig(input.OutputConfig, context),
81
- }),
82
- });
75
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
76
+ Arn: [],
77
+ ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
78
+ ExecutionRoleArn: [],
79
+ OutputConfig: (_) => (0, smithy_client_1._json)(_),
80
+ }));
83
81
  return new protocol_http_1.HttpRequest({
84
82
  protocol,
85
83
  hostname,
@@ -132,7 +130,7 @@ const se_GetTileCommand = async (input, context) => {
132
130
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "x", () => input.x.toString(), "{x}", false);
133
131
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "y", () => input.y.toString(), "{y}", false);
134
132
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "z", () => input.z.toString(), "{z}", false);
135
- const query = map({
133
+ const query = (0, smithy_client_1.map)({
136
134
  ImageAssets: [
137
135
  (0, smithy_client_1.expectNonNull)(input.ImageAssets, `ImageAssets`) != null,
138
136
  () => (input.ImageAssets || []).map((_entry) => _entry),
@@ -183,13 +181,13 @@ const se_ListEarthObservationJobsCommand = async (input, context) => {
183
181
  };
184
182
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-earth-observation-jobs";
185
183
  let body;
186
- body = JSON.stringify({
187
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
188
- ...(input.NextToken != null && { NextToken: input.NextToken }),
189
- ...(input.SortBy != null && { SortBy: input.SortBy }),
190
- ...(input.SortOrder != null && { SortOrder: input.SortOrder }),
191
- ...(input.StatusEquals != null && { StatusEquals: input.StatusEquals }),
192
- });
184
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
185
+ MaxResults: [],
186
+ NextToken: [],
187
+ SortBy: [],
188
+ SortOrder: [],
189
+ StatusEquals: [],
190
+ }));
193
191
  return new protocol_http_1.HttpRequest({
194
192
  protocol,
195
193
  hostname,
@@ -205,7 +203,7 @@ const se_ListRasterDataCollectionsCommand = async (input, context) => {
205
203
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
206
204
  const headers = {};
207
205
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/raster-data-collections";
208
- const query = map({
206
+ const query = (0, smithy_client_1.map)({
209
207
  NextToken: [, input.NextToken],
210
208
  MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
211
209
  });
@@ -246,13 +244,13 @@ const se_ListVectorEnrichmentJobsCommand = async (input, context) => {
246
244
  };
247
245
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-vector-enrichment-jobs";
248
246
  let body;
249
- body = JSON.stringify({
250
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
251
- ...(input.NextToken != null && { NextToken: input.NextToken }),
252
- ...(input.SortBy != null && { SortBy: input.SortBy }),
253
- ...(input.SortOrder != null && { SortOrder: input.SortOrder }),
254
- ...(input.StatusEquals != null && { StatusEquals: input.StatusEquals }),
255
- });
247
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
248
+ MaxResults: [],
249
+ NextToken: [],
250
+ SortBy: [],
251
+ SortOrder: [],
252
+ StatusEquals: [],
253
+ }));
256
254
  return new protocol_http_1.HttpRequest({
257
255
  protocol,
258
256
  hostname,
@@ -271,13 +269,11 @@ const se_SearchRasterDataCollectionCommand = async (input, context) => {
271
269
  };
272
270
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/search-raster-data-collection";
273
271
  let body;
274
- body = JSON.stringify({
275
- ...(input.Arn != null && { Arn: input.Arn }),
276
- ...(input.NextToken != null && { NextToken: input.NextToken }),
277
- ...(input.RasterDataCollectionQuery != null && {
278
- RasterDataCollectionQuery: se_RasterDataCollectionQueryWithBandFilterInput(input.RasterDataCollectionQuery, context),
279
- }),
280
- });
272
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
273
+ Arn: [],
274
+ NextToken: [],
275
+ RasterDataCollectionQuery: (_) => se_RasterDataCollectionQueryWithBandFilterInput(_, context),
276
+ }));
281
277
  return new protocol_http_1.HttpRequest({
282
278
  protocol,
283
279
  hostname,
@@ -296,15 +292,15 @@ const se_StartEarthObservationJobCommand = async (input, context) => {
296
292
  };
297
293
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/earth-observation-jobs";
298
294
  let body;
299
- body = JSON.stringify({
300
- ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
301
- ...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
302
- ...(input.InputConfig != null && { InputConfig: se_InputConfigInput(input.InputConfig, context) }),
303
- ...(input.JobConfig != null && { JobConfig: se_JobConfigInput(input.JobConfig, context) }),
304
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
305
- ...(input.Name != null && { Name: input.Name }),
306
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
307
- });
295
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
296
+ ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
297
+ ExecutionRoleArn: [],
298
+ InputConfig: (_) => se_InputConfigInput(_, context),
299
+ JobConfig: (_) => se_JobConfigInput(_, context),
300
+ KmsKeyId: [],
301
+ Name: [],
302
+ Tags: (_) => (0, smithy_client_1._json)(_),
303
+ }));
308
304
  return new protocol_http_1.HttpRequest({
309
305
  protocol,
310
306
  hostname,
@@ -323,15 +319,15 @@ const se_StartVectorEnrichmentJobCommand = async (input, context) => {
323
319
  };
324
320
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vector-enrichment-jobs";
325
321
  let body;
326
- body = JSON.stringify({
327
- ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
328
- ...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
329
- ...(input.InputConfig != null && { InputConfig: se_VectorEnrichmentJobInputConfig(input.InputConfig, context) }),
330
- ...(input.JobConfig != null && { JobConfig: se_VectorEnrichmentJobConfig(input.JobConfig, context) }),
331
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
332
- ...(input.Name != null && { Name: input.Name }),
333
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
334
- });
322
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
323
+ ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
324
+ ExecutionRoleArn: [],
325
+ InputConfig: (_) => (0, smithy_client_1._json)(_),
326
+ JobConfig: (_) => (0, smithy_client_1._json)(_),
327
+ KmsKeyId: [],
328
+ Name: [],
329
+ Tags: (_) => (0, smithy_client_1._json)(_),
330
+ }));
335
331
  return new protocol_http_1.HttpRequest({
336
332
  protocol,
337
333
  hostname,
@@ -350,9 +346,9 @@ const se_StopEarthObservationJobCommand = async (input, context) => {
350
346
  };
351
347
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/earth-observation-jobs/stop";
352
348
  let body;
353
- body = JSON.stringify({
354
- ...(input.Arn != null && { Arn: input.Arn }),
355
- });
349
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
350
+ Arn: [],
351
+ }));
356
352
  return new protocol_http_1.HttpRequest({
357
353
  protocol,
358
354
  hostname,
@@ -371,9 +367,9 @@ const se_StopVectorEnrichmentJobCommand = async (input, context) => {
371
367
  };
372
368
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vector-enrichment-jobs/stop";
373
369
  let body;
374
- body = JSON.stringify({
375
- ...(input.Arn != null && { Arn: input.Arn }),
376
- });
370
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
371
+ Arn: [],
372
+ }));
377
373
  return new protocol_http_1.HttpRequest({
378
374
  protocol,
379
375
  hostname,
@@ -393,9 +389,9 @@ const se_TagResourceCommand = async (input, context) => {
393
389
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
394
390
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
395
391
  let body;
396
- body = JSON.stringify({
397
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
398
- });
392
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
393
+ Tags: (_) => (0, smithy_client_1._json)(_),
394
+ }));
399
395
  return new protocol_http_1.HttpRequest({
400
396
  protocol,
401
397
  hostname,
@@ -412,7 +408,7 @@ const se_UntagResourceCommand = async (input, context) => {
412
408
  const headers = {};
413
409
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
414
410
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
415
- const query = map({
411
+ const query = (0, smithy_client_1.map)({
416
412
  tagKeys: [
417
413
  (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
418
414
  () => (input.TagKeys || []).map((_entry) => _entry),
@@ -435,7 +431,7 @@ const de_DeleteEarthObservationJobCommand = async (output, context) => {
435
431
  if (output.statusCode !== 200 && output.statusCode >= 300) {
436
432
  return de_DeleteEarthObservationJobCommandError(output, context);
437
433
  }
438
- const contents = map({
434
+ const contents = (0, smithy_client_1.map)({
439
435
  $metadata: deserializeMetadata(output),
440
436
  });
441
437
  await collectBody(output.body, context);
@@ -469,10 +465,9 @@ const de_DeleteEarthObservationJobCommandError = async (output, context) => {
469
465
  throw await de_ValidationExceptionRes(parsedOutput, context);
470
466
  default:
471
467
  const parsedBody = parsedOutput.body;
472
- (0, smithy_client_1.throwDefaultError)({
468
+ return throwDefaultError({
473
469
  output,
474
470
  parsedBody,
475
- exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
476
471
  errorCode,
477
472
  });
478
473
  }
@@ -481,7 +476,7 @@ const de_DeleteVectorEnrichmentJobCommand = async (output, context) => {
481
476
  if (output.statusCode !== 200 && output.statusCode >= 300) {
482
477
  return de_DeleteVectorEnrichmentJobCommandError(output, context);
483
478
  }
484
- const contents = map({
479
+ const contents = (0, smithy_client_1.map)({
485
480
  $metadata: deserializeMetadata(output),
486
481
  });
487
482
  await collectBody(output.body, context);
@@ -515,10 +510,9 @@ const de_DeleteVectorEnrichmentJobCommandError = async (output, context) => {
515
510
  throw await de_ValidationExceptionRes(parsedOutput, context);
516
511
  default:
517
512
  const parsedBody = parsedOutput.body;
518
- (0, smithy_client_1.throwDefaultError)({
513
+ return throwDefaultError({
519
514
  output,
520
515
  parsedBody,
521
- exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
522
516
  errorCode,
523
517
  });
524
518
  }
@@ -527,28 +521,19 @@ const de_ExportEarthObservationJobCommand = async (output, context) => {
527
521
  if (output.statusCode !== 200 && output.statusCode >= 300) {
528
522
  return de_ExportEarthObservationJobCommandError(output, context);
529
523
  }
530
- const contents = map({
524
+ const contents = (0, smithy_client_1.map)({
531
525
  $metadata: deserializeMetadata(output),
532
526
  });
533
527
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
534
- if (data.Arn != null) {
535
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
536
- }
537
- if (data.CreationTime != null) {
538
- contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.CreationTime));
539
- }
540
- if (data.ExecutionRoleArn != null) {
541
- contents.ExecutionRoleArn = (0, smithy_client_1.expectString)(data.ExecutionRoleArn);
542
- }
543
- if (data.ExportSourceImages != null) {
544
- contents.ExportSourceImages = (0, smithy_client_1.expectBoolean)(data.ExportSourceImages);
545
- }
546
- if (data.ExportStatus != null) {
547
- contents.ExportStatus = (0, smithy_client_1.expectString)(data.ExportStatus);
548
- }
549
- if (data.OutputConfig != null) {
550
- contents.OutputConfig = de_OutputConfigInput(data.OutputConfig, context);
551
- }
528
+ const doc = (0, smithy_client_1.take)(data, {
529
+ Arn: smithy_client_1.expectString,
530
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
531
+ ExecutionRoleArn: smithy_client_1.expectString,
532
+ ExportSourceImages: smithy_client_1.expectBoolean,
533
+ ExportStatus: smithy_client_1.expectString,
534
+ OutputConfig: smithy_client_1._json,
535
+ });
536
+ Object.assign(contents, doc);
552
537
  return contents;
553
538
  };
554
539
  exports.de_ExportEarthObservationJobCommand = de_ExportEarthObservationJobCommand;
@@ -582,10 +567,9 @@ const de_ExportEarthObservationJobCommandError = async (output, context) => {
582
567
  throw await de_ValidationExceptionRes(parsedOutput, context);
583
568
  default:
584
569
  const parsedBody = parsedOutput.body;
585
- (0, smithy_client_1.throwDefaultError)({
570
+ return throwDefaultError({
586
571
  output,
587
572
  parsedBody,
588
- exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
589
573
  errorCode,
590
574
  });
591
575
  }
@@ -594,25 +578,18 @@ const de_ExportVectorEnrichmentJobCommand = async (output, context) => {
594
578
  if (output.statusCode !== 200 && output.statusCode >= 300) {
595
579
  return de_ExportVectorEnrichmentJobCommandError(output, context);
596
580
  }
597
- const contents = map({
581
+ const contents = (0, smithy_client_1.map)({
598
582
  $metadata: deserializeMetadata(output),
599
583
  });
600
584
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
601
- if (data.Arn != null) {
602
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
603
- }
604
- if (data.CreationTime != null) {
605
- contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.CreationTime));
606
- }
607
- if (data.ExecutionRoleArn != null) {
608
- contents.ExecutionRoleArn = (0, smithy_client_1.expectString)(data.ExecutionRoleArn);
609
- }
610
- if (data.ExportStatus != null) {
611
- contents.ExportStatus = (0, smithy_client_1.expectString)(data.ExportStatus);
612
- }
613
- if (data.OutputConfig != null) {
614
- contents.OutputConfig = de_ExportVectorEnrichmentJobOutputConfig(data.OutputConfig, context);
615
- }
585
+ const doc = (0, smithy_client_1.take)(data, {
586
+ Arn: smithy_client_1.expectString,
587
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
588
+ ExecutionRoleArn: smithy_client_1.expectString,
589
+ ExportStatus: smithy_client_1.expectString,
590
+ OutputConfig: smithy_client_1._json,
591
+ });
592
+ Object.assign(contents, doc);
616
593
  return contents;
617
594
  };
618
595
  exports.de_ExportVectorEnrichmentJobCommand = de_ExportVectorEnrichmentJobCommand;
@@ -646,10 +623,9 @@ const de_ExportVectorEnrichmentJobCommandError = async (output, context) => {
646
623
  throw await de_ValidationExceptionRes(parsedOutput, context);
647
624
  default:
648
625
  const parsedBody = parsedOutput.body;
649
- (0, smithy_client_1.throwDefaultError)({
626
+ return throwDefaultError({
650
627
  output,
651
628
  parsedBody,
652
- exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
653
629
  errorCode,
654
630
  });
655
631
  }
@@ -658,52 +634,27 @@ const de_GetEarthObservationJobCommand = async (output, context) => {
658
634
  if (output.statusCode !== 200 && output.statusCode >= 300) {
659
635
  return de_GetEarthObservationJobCommandError(output, context);
660
636
  }
661
- const contents = map({
637
+ const contents = (0, smithy_client_1.map)({
662
638
  $metadata: deserializeMetadata(output),
663
639
  });
664
640
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
665
- if (data.Arn != null) {
666
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
667
- }
668
- if (data.CreationTime != null) {
669
- contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.CreationTime));
670
- }
671
- if (data.DurationInSeconds != null) {
672
- contents.DurationInSeconds = (0, smithy_client_1.expectInt32)(data.DurationInSeconds);
673
- }
674
- if (data.ErrorDetails != null) {
675
- contents.ErrorDetails = de_EarthObservationJobErrorDetails(data.ErrorDetails, context);
676
- }
677
- if (data.ExecutionRoleArn != null) {
678
- contents.ExecutionRoleArn = (0, smithy_client_1.expectString)(data.ExecutionRoleArn);
679
- }
680
- if (data.ExportErrorDetails != null) {
681
- contents.ExportErrorDetails = de_ExportErrorDetails(data.ExportErrorDetails, context);
682
- }
683
- if (data.ExportStatus != null) {
684
- contents.ExportStatus = (0, smithy_client_1.expectString)(data.ExportStatus);
685
- }
686
- if (data.InputConfig != null) {
687
- contents.InputConfig = de_InputConfigOutput(data.InputConfig, context);
688
- }
689
- if (data.JobConfig != null) {
690
- contents.JobConfig = de_JobConfigInput((0, smithy_client_1.expectUnion)(data.JobConfig), context);
691
- }
692
- if (data.KmsKeyId != null) {
693
- contents.KmsKeyId = (0, smithy_client_1.expectString)(data.KmsKeyId);
694
- }
695
- if (data.Name != null) {
696
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
697
- }
698
- if (data.OutputBands != null) {
699
- contents.OutputBands = de_EarthObservationJobOutputBands(data.OutputBands, context);
700
- }
701
- if (data.Status != null) {
702
- contents.Status = (0, smithy_client_1.expectString)(data.Status);
703
- }
704
- if (data.Tags != null) {
705
- contents.Tags = de_Tags(data.Tags, context);
706
- }
641
+ const doc = (0, smithy_client_1.take)(data, {
642
+ Arn: smithy_client_1.expectString,
643
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
644
+ DurationInSeconds: smithy_client_1.expectInt32,
645
+ ErrorDetails: smithy_client_1._json,
646
+ ExecutionRoleArn: smithy_client_1.expectString,
647
+ ExportErrorDetails: smithy_client_1._json,
648
+ ExportStatus: smithy_client_1.expectString,
649
+ InputConfig: (_) => de_InputConfigOutput(_, context),
650
+ JobConfig: (_) => de_JobConfigInput((0, smithy_client_1.expectUnion)(_), context),
651
+ KmsKeyId: smithy_client_1.expectString,
652
+ Name: smithy_client_1.expectString,
653
+ OutputBands: smithy_client_1._json,
654
+ Status: smithy_client_1.expectString,
655
+ Tags: smithy_client_1._json,
656
+ });
657
+ Object.assign(contents, doc);
707
658
  return contents;
708
659
  };
709
660
  exports.de_GetEarthObservationJobCommand = de_GetEarthObservationJobCommand;
@@ -731,10 +682,9 @@ const de_GetEarthObservationJobCommandError = async (output, context) => {
731
682
  throw await de_ValidationExceptionRes(parsedOutput, context);
732
683
  default:
733
684
  const parsedBody = parsedOutput.body;
734
- (0, smithy_client_1.throwDefaultError)({
685
+ return throwDefaultError({
735
686
  output,
736
687
  parsedBody,
737
- exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
738
688
  errorCode,
739
689
  });
740
690
  }
@@ -743,34 +693,21 @@ const de_GetRasterDataCollectionCommand = async (output, context) => {
743
693
  if (output.statusCode !== 200 && output.statusCode >= 300) {
744
694
  return de_GetRasterDataCollectionCommandError(output, context);
745
695
  }
746
- const contents = map({
696
+ const contents = (0, smithy_client_1.map)({
747
697
  $metadata: deserializeMetadata(output),
748
698
  });
749
699
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
750
- if (data.Arn != null) {
751
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
752
- }
753
- if (data.Description != null) {
754
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
755
- }
756
- if (data.DescriptionPageUrl != null) {
757
- contents.DescriptionPageUrl = (0, smithy_client_1.expectString)(data.DescriptionPageUrl);
758
- }
759
- if (data.ImageSourceBands != null) {
760
- contents.ImageSourceBands = de_ImageSourceBandList(data.ImageSourceBands, context);
761
- }
762
- if (data.Name != null) {
763
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
764
- }
765
- if (data.SupportedFilters != null) {
766
- contents.SupportedFilters = de_FilterList(data.SupportedFilters, context);
767
- }
768
- if (data.Tags != null) {
769
- contents.Tags = de_Tags(data.Tags, context);
770
- }
771
- if (data.Type != null) {
772
- contents.Type = (0, smithy_client_1.expectString)(data.Type);
773
- }
700
+ const doc = (0, smithy_client_1.take)(data, {
701
+ Arn: smithy_client_1.expectString,
702
+ Description: smithy_client_1.expectString,
703
+ DescriptionPageUrl: smithy_client_1.expectString,
704
+ ImageSourceBands: smithy_client_1._json,
705
+ Name: smithy_client_1.expectString,
706
+ SupportedFilters: (_) => de_FilterList(_, context),
707
+ Tags: smithy_client_1._json,
708
+ Type: smithy_client_1.expectString,
709
+ });
710
+ Object.assign(contents, doc);
774
711
  return contents;
775
712
  };
776
713
  exports.de_GetRasterDataCollectionCommand = de_GetRasterDataCollectionCommand;
@@ -798,10 +735,9 @@ const de_GetRasterDataCollectionCommandError = async (output, context) => {
798
735
  throw await de_ValidationExceptionRes(parsedOutput, context);
799
736
  default:
800
737
  const parsedBody = parsedOutput.body;
801
- (0, smithy_client_1.throwDefaultError)({
738
+ return throwDefaultError({
802
739
  output,
803
740
  parsedBody,
804
- exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
805
741
  errorCode,
806
742
  });
807
743
  }
@@ -810,7 +746,7 @@ const de_GetTileCommand = async (output, context) => {
810
746
  if (output.statusCode !== 200 && output.statusCode >= 300) {
811
747
  return de_GetTileCommandError(output, context);
812
748
  }
813
- const contents = map({
749
+ const contents = (0, smithy_client_1.map)({
814
750
  $metadata: deserializeMetadata(output),
815
751
  });
816
752
  const data = output.body;
@@ -843,10 +779,9 @@ const de_GetTileCommandError = async (output, context) => {
843
779
  throw await de_ValidationExceptionRes(parsedOutput, context);
844
780
  default:
845
781
  const parsedBody = parsedOutput.body;
846
- (0, smithy_client_1.throwDefaultError)({
782
+ return throwDefaultError({
847
783
  output,
848
784
  parsedBody,
849
- exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
850
785
  errorCode,
851
786
  });
852
787
  }
@@ -855,52 +790,27 @@ const de_GetVectorEnrichmentJobCommand = async (output, context) => {
855
790
  if (output.statusCode !== 200 && output.statusCode >= 300) {
856
791
  return de_GetVectorEnrichmentJobCommandError(output, context);
857
792
  }
858
- const contents = map({
793
+ const contents = (0, smithy_client_1.map)({
859
794
  $metadata: deserializeMetadata(output),
860
795
  });
861
796
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
862
- if (data.Arn != null) {
863
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
864
- }
865
- if (data.CreationTime != null) {
866
- contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.CreationTime));
867
- }
868
- if (data.DurationInSeconds != null) {
869
- contents.DurationInSeconds = (0, smithy_client_1.expectInt32)(data.DurationInSeconds);
870
- }
871
- if (data.ErrorDetails != null) {
872
- contents.ErrorDetails = de_VectorEnrichmentJobErrorDetails(data.ErrorDetails, context);
873
- }
874
- if (data.ExecutionRoleArn != null) {
875
- contents.ExecutionRoleArn = (0, smithy_client_1.expectString)(data.ExecutionRoleArn);
876
- }
877
- if (data.ExportErrorDetails != null) {
878
- contents.ExportErrorDetails = de_VectorEnrichmentJobExportErrorDetails(data.ExportErrorDetails, context);
879
- }
880
- if (data.ExportStatus != null) {
881
- contents.ExportStatus = (0, smithy_client_1.expectString)(data.ExportStatus);
882
- }
883
- if (data.InputConfig != null) {
884
- contents.InputConfig = de_VectorEnrichmentJobInputConfig(data.InputConfig, context);
885
- }
886
- if (data.JobConfig != null) {
887
- contents.JobConfig = de_VectorEnrichmentJobConfig((0, smithy_client_1.expectUnion)(data.JobConfig), context);
888
- }
889
- if (data.KmsKeyId != null) {
890
- contents.KmsKeyId = (0, smithy_client_1.expectString)(data.KmsKeyId);
891
- }
892
- if (data.Name != null) {
893
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
894
- }
895
- if (data.Status != null) {
896
- contents.Status = (0, smithy_client_1.expectString)(data.Status);
897
- }
898
- if (data.Tags != null) {
899
- contents.Tags = de_Tags(data.Tags, context);
900
- }
901
- if (data.Type != null) {
902
- contents.Type = (0, smithy_client_1.expectString)(data.Type);
903
- }
797
+ const doc = (0, smithy_client_1.take)(data, {
798
+ Arn: smithy_client_1.expectString,
799
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
800
+ DurationInSeconds: smithy_client_1.expectInt32,
801
+ ErrorDetails: smithy_client_1._json,
802
+ ExecutionRoleArn: smithy_client_1.expectString,
803
+ ExportErrorDetails: smithy_client_1._json,
804
+ ExportStatus: smithy_client_1.expectString,
805
+ InputConfig: smithy_client_1._json,
806
+ JobConfig: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
807
+ KmsKeyId: smithy_client_1.expectString,
808
+ Name: smithy_client_1.expectString,
809
+ Status: smithy_client_1.expectString,
810
+ Tags: smithy_client_1._json,
811
+ Type: smithy_client_1.expectString,
812
+ });
813
+ Object.assign(contents, doc);
904
814
  return contents;
905
815
  };
906
816
  exports.de_GetVectorEnrichmentJobCommand = de_GetVectorEnrichmentJobCommand;
@@ -928,10 +838,9 @@ const de_GetVectorEnrichmentJobCommandError = async (output, context) => {
928
838
  throw await de_ValidationExceptionRes(parsedOutput, context);
929
839
  default:
930
840
  const parsedBody = parsedOutput.body;
931
- (0, smithy_client_1.throwDefaultError)({
841
+ return throwDefaultError({
932
842
  output,
933
843
  parsedBody,
934
- exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
935
844
  errorCode,
936
845
  });
937
846
  }
@@ -940,16 +849,15 @@ const de_ListEarthObservationJobsCommand = async (output, context) => {
940
849
  if (output.statusCode !== 200 && output.statusCode >= 300) {
941
850
  return de_ListEarthObservationJobsCommandError(output, context);
942
851
  }
943
- const contents = map({
852
+ const contents = (0, smithy_client_1.map)({
944
853
  $metadata: deserializeMetadata(output),
945
854
  });
946
855
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
947
- if (data.EarthObservationJobSummaries != null) {
948
- contents.EarthObservationJobSummaries = de_EarthObservationJobList(data.EarthObservationJobSummaries, context);
949
- }
950
- if (data.NextToken != null) {
951
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
952
- }
856
+ const doc = (0, smithy_client_1.take)(data, {
857
+ EarthObservationJobSummaries: (_) => de_EarthObservationJobList(_, context),
858
+ NextToken: smithy_client_1.expectString,
859
+ });
860
+ Object.assign(contents, doc);
953
861
  return contents;
954
862
  };
955
863
  exports.de_ListEarthObservationJobsCommand = de_ListEarthObservationJobsCommand;
@@ -977,10 +885,9 @@ const de_ListEarthObservationJobsCommandError = async (output, context) => {
977
885
  throw await de_ValidationExceptionRes(parsedOutput, context);
978
886
  default:
979
887
  const parsedBody = parsedOutput.body;
980
- (0, smithy_client_1.throwDefaultError)({
888
+ return throwDefaultError({
981
889
  output,
982
890
  parsedBody,
983
- exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
984
891
  errorCode,
985
892
  });
986
893
  }
@@ -989,16 +896,15 @@ const de_ListRasterDataCollectionsCommand = async (output, context) => {
989
896
  if (output.statusCode !== 200 && output.statusCode >= 300) {
990
897
  return de_ListRasterDataCollectionsCommandError(output, context);
991
898
  }
992
- const contents = map({
899
+ const contents = (0, smithy_client_1.map)({
993
900
  $metadata: deserializeMetadata(output),
994
901
  });
995
902
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
996
- if (data.NextToken != null) {
997
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
998
- }
999
- if (data.RasterDataCollectionSummaries != null) {
1000
- contents.RasterDataCollectionSummaries = de_DataCollectionsList(data.RasterDataCollectionSummaries, context);
1001
- }
903
+ const doc = (0, smithy_client_1.take)(data, {
904
+ NextToken: smithy_client_1.expectString,
905
+ RasterDataCollectionSummaries: (_) => de_DataCollectionsList(_, context),
906
+ });
907
+ Object.assign(contents, doc);
1002
908
  return contents;
1003
909
  };
1004
910
  exports.de_ListRasterDataCollectionsCommand = de_ListRasterDataCollectionsCommand;
@@ -1026,10 +932,9 @@ const de_ListRasterDataCollectionsCommandError = async (output, context) => {
1026
932
  throw await de_ValidationExceptionRes(parsedOutput, context);
1027
933
  default:
1028
934
  const parsedBody = parsedOutput.body;
1029
- (0, smithy_client_1.throwDefaultError)({
935
+ return throwDefaultError({
1030
936
  output,
1031
937
  parsedBody,
1032
- exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
1033
938
  errorCode,
1034
939
  });
1035
940
  }
@@ -1038,13 +943,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
1038
943
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1039
944
  return de_ListTagsForResourceCommandError(output, context);
1040
945
  }
1041
- const contents = map({
946
+ const contents = (0, smithy_client_1.map)({
1042
947
  $metadata: deserializeMetadata(output),
1043
948
  });
1044
949
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1045
- if (data.Tags != null) {
1046
- contents.Tags = de_Tags(data.Tags, context);
1047
- }
950
+ const doc = (0, smithy_client_1.take)(data, {
951
+ Tags: smithy_client_1._json,
952
+ });
953
+ Object.assign(contents, doc);
1048
954
  return contents;
1049
955
  };
1050
956
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
@@ -1072,10 +978,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1072
978
  throw await de_ValidationExceptionRes(parsedOutput, context);
1073
979
  default:
1074
980
  const parsedBody = parsedOutput.body;
1075
- (0, smithy_client_1.throwDefaultError)({
981
+ return throwDefaultError({
1076
982
  output,
1077
983
  parsedBody,
1078
- exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
1079
984
  errorCode,
1080
985
  });
1081
986
  }
@@ -1084,16 +989,15 @@ const de_ListVectorEnrichmentJobsCommand = async (output, context) => {
1084
989
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1085
990
  return de_ListVectorEnrichmentJobsCommandError(output, context);
1086
991
  }
1087
- const contents = map({
992
+ const contents = (0, smithy_client_1.map)({
1088
993
  $metadata: deserializeMetadata(output),
1089
994
  });
1090
995
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1091
- if (data.NextToken != null) {
1092
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1093
- }
1094
- if (data.VectorEnrichmentJobSummaries != null) {
1095
- contents.VectorEnrichmentJobSummaries = de_VectorEnrichmentJobList(data.VectorEnrichmentJobSummaries, context);
1096
- }
996
+ const doc = (0, smithy_client_1.take)(data, {
997
+ NextToken: smithy_client_1.expectString,
998
+ VectorEnrichmentJobSummaries: (_) => de_VectorEnrichmentJobList(_, context),
999
+ });
1000
+ Object.assign(contents, doc);
1097
1001
  return contents;
1098
1002
  };
1099
1003
  exports.de_ListVectorEnrichmentJobsCommand = de_ListVectorEnrichmentJobsCommand;
@@ -1121,10 +1025,9 @@ const de_ListVectorEnrichmentJobsCommandError = async (output, context) => {
1121
1025
  throw await de_ValidationExceptionRes(parsedOutput, context);
1122
1026
  default:
1123
1027
  const parsedBody = parsedOutput.body;
1124
- (0, smithy_client_1.throwDefaultError)({
1028
+ return throwDefaultError({
1125
1029
  output,
1126
1030
  parsedBody,
1127
- exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
1128
1031
  errorCode,
1129
1032
  });
1130
1033
  }
@@ -1133,19 +1036,16 @@ const de_SearchRasterDataCollectionCommand = async (output, context) => {
1133
1036
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1134
1037
  return de_SearchRasterDataCollectionCommandError(output, context);
1135
1038
  }
1136
- const contents = map({
1039
+ const contents = (0, smithy_client_1.map)({
1137
1040
  $metadata: deserializeMetadata(output),
1138
1041
  });
1139
1042
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1140
- if (data.ApproximateResultCount != null) {
1141
- contents.ApproximateResultCount = (0, smithy_client_1.expectInt32)(data.ApproximateResultCount);
1142
- }
1143
- if (data.Items != null) {
1144
- contents.Items = de_ItemSourceList(data.Items, context);
1145
- }
1146
- if (data.NextToken != null) {
1147
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1148
- }
1043
+ const doc = (0, smithy_client_1.take)(data, {
1044
+ ApproximateResultCount: smithy_client_1.expectInt32,
1045
+ Items: (_) => de_ItemSourceList(_, context),
1046
+ NextToken: smithy_client_1.expectString,
1047
+ });
1048
+ Object.assign(contents, doc);
1149
1049
  return contents;
1150
1050
  };
1151
1051
  exports.de_SearchRasterDataCollectionCommand = de_SearchRasterDataCollectionCommand;
@@ -1173,10 +1073,9 @@ const de_SearchRasterDataCollectionCommandError = async (output, context) => {
1173
1073
  throw await de_ValidationExceptionRes(parsedOutput, context);
1174
1074
  default:
1175
1075
  const parsedBody = parsedOutput.body;
1176
- (0, smithy_client_1.throwDefaultError)({
1076
+ return throwDefaultError({
1177
1077
  output,
1178
1078
  parsedBody,
1179
- exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
1180
1079
  errorCode,
1181
1080
  });
1182
1081
  }
@@ -1185,40 +1084,23 @@ const de_StartEarthObservationJobCommand = async (output, context) => {
1185
1084
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1186
1085
  return de_StartEarthObservationJobCommandError(output, context);
1187
1086
  }
1188
- const contents = map({
1087
+ const contents = (0, smithy_client_1.map)({
1189
1088
  $metadata: deserializeMetadata(output),
1190
1089
  });
1191
1090
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1192
- if (data.Arn != null) {
1193
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
1194
- }
1195
- if (data.CreationTime != null) {
1196
- contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.CreationTime));
1197
- }
1198
- if (data.DurationInSeconds != null) {
1199
- contents.DurationInSeconds = (0, smithy_client_1.expectInt32)(data.DurationInSeconds);
1200
- }
1201
- if (data.ExecutionRoleArn != null) {
1202
- contents.ExecutionRoleArn = (0, smithy_client_1.expectString)(data.ExecutionRoleArn);
1203
- }
1204
- if (data.InputConfig != null) {
1205
- contents.InputConfig = de_InputConfigOutput(data.InputConfig, context);
1206
- }
1207
- if (data.JobConfig != null) {
1208
- contents.JobConfig = de_JobConfigInput((0, smithy_client_1.expectUnion)(data.JobConfig), context);
1209
- }
1210
- if (data.KmsKeyId != null) {
1211
- contents.KmsKeyId = (0, smithy_client_1.expectString)(data.KmsKeyId);
1212
- }
1213
- if (data.Name != null) {
1214
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
1215
- }
1216
- if (data.Status != null) {
1217
- contents.Status = (0, smithy_client_1.expectString)(data.Status);
1218
- }
1219
- if (data.Tags != null) {
1220
- contents.Tags = de_Tags(data.Tags, context);
1221
- }
1091
+ const doc = (0, smithy_client_1.take)(data, {
1092
+ Arn: smithy_client_1.expectString,
1093
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1094
+ DurationInSeconds: smithy_client_1.expectInt32,
1095
+ ExecutionRoleArn: smithy_client_1.expectString,
1096
+ InputConfig: (_) => de_InputConfigOutput(_, context),
1097
+ JobConfig: (_) => de_JobConfigInput((0, smithy_client_1.expectUnion)(_), context),
1098
+ KmsKeyId: smithy_client_1.expectString,
1099
+ Name: smithy_client_1.expectString,
1100
+ Status: smithy_client_1.expectString,
1101
+ Tags: smithy_client_1._json,
1102
+ });
1103
+ Object.assign(contents, doc);
1222
1104
  return contents;
1223
1105
  };
1224
1106
  exports.de_StartEarthObservationJobCommand = de_StartEarthObservationJobCommand;
@@ -1252,10 +1134,9 @@ const de_StartEarthObservationJobCommandError = async (output, context) => {
1252
1134
  throw await de_ValidationExceptionRes(parsedOutput, context);
1253
1135
  default:
1254
1136
  const parsedBody = parsedOutput.body;
1255
- (0, smithy_client_1.throwDefaultError)({
1137
+ return throwDefaultError({
1256
1138
  output,
1257
1139
  parsedBody,
1258
- exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
1259
1140
  errorCode,
1260
1141
  });
1261
1142
  }
@@ -1264,43 +1145,24 @@ const de_StartVectorEnrichmentJobCommand = async (output, context) => {
1264
1145
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1265
1146
  return de_StartVectorEnrichmentJobCommandError(output, context);
1266
1147
  }
1267
- const contents = map({
1148
+ const contents = (0, smithy_client_1.map)({
1268
1149
  $metadata: deserializeMetadata(output),
1269
1150
  });
1270
1151
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1271
- if (data.Arn != null) {
1272
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
1273
- }
1274
- if (data.CreationTime != null) {
1275
- contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.CreationTime));
1276
- }
1277
- if (data.DurationInSeconds != null) {
1278
- contents.DurationInSeconds = (0, smithy_client_1.expectInt32)(data.DurationInSeconds);
1279
- }
1280
- if (data.ExecutionRoleArn != null) {
1281
- contents.ExecutionRoleArn = (0, smithy_client_1.expectString)(data.ExecutionRoleArn);
1282
- }
1283
- if (data.InputConfig != null) {
1284
- contents.InputConfig = de_VectorEnrichmentJobInputConfig(data.InputConfig, context);
1285
- }
1286
- if (data.JobConfig != null) {
1287
- contents.JobConfig = de_VectorEnrichmentJobConfig((0, smithy_client_1.expectUnion)(data.JobConfig), context);
1288
- }
1289
- if (data.KmsKeyId != null) {
1290
- contents.KmsKeyId = (0, smithy_client_1.expectString)(data.KmsKeyId);
1291
- }
1292
- if (data.Name != null) {
1293
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
1294
- }
1295
- if (data.Status != null) {
1296
- contents.Status = (0, smithy_client_1.expectString)(data.Status);
1297
- }
1298
- if (data.Tags != null) {
1299
- contents.Tags = de_Tags(data.Tags, context);
1300
- }
1301
- if (data.Type != null) {
1302
- contents.Type = (0, smithy_client_1.expectString)(data.Type);
1303
- }
1152
+ const doc = (0, smithy_client_1.take)(data, {
1153
+ Arn: smithy_client_1.expectString,
1154
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1155
+ DurationInSeconds: smithy_client_1.expectInt32,
1156
+ ExecutionRoleArn: smithy_client_1.expectString,
1157
+ InputConfig: smithy_client_1._json,
1158
+ JobConfig: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
1159
+ KmsKeyId: smithy_client_1.expectString,
1160
+ Name: smithy_client_1.expectString,
1161
+ Status: smithy_client_1.expectString,
1162
+ Tags: smithy_client_1._json,
1163
+ Type: smithy_client_1.expectString,
1164
+ });
1165
+ Object.assign(contents, doc);
1304
1166
  return contents;
1305
1167
  };
1306
1168
  exports.de_StartVectorEnrichmentJobCommand = de_StartVectorEnrichmentJobCommand;
@@ -1334,10 +1196,9 @@ const de_StartVectorEnrichmentJobCommandError = async (output, context) => {
1334
1196
  throw await de_ValidationExceptionRes(parsedOutput, context);
1335
1197
  default:
1336
1198
  const parsedBody = parsedOutput.body;
1337
- (0, smithy_client_1.throwDefaultError)({
1199
+ return throwDefaultError({
1338
1200
  output,
1339
1201
  parsedBody,
1340
- exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
1341
1202
  errorCode,
1342
1203
  });
1343
1204
  }
@@ -1346,7 +1207,7 @@ const de_StopEarthObservationJobCommand = async (output, context) => {
1346
1207
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1347
1208
  return de_StopEarthObservationJobCommandError(output, context);
1348
1209
  }
1349
- const contents = map({
1210
+ const contents = (0, smithy_client_1.map)({
1350
1211
  $metadata: deserializeMetadata(output),
1351
1212
  });
1352
1213
  await collectBody(output.body, context);
@@ -1380,10 +1241,9 @@ const de_StopEarthObservationJobCommandError = async (output, context) => {
1380
1241
  throw await de_ValidationExceptionRes(parsedOutput, context);
1381
1242
  default:
1382
1243
  const parsedBody = parsedOutput.body;
1383
- (0, smithy_client_1.throwDefaultError)({
1244
+ return throwDefaultError({
1384
1245
  output,
1385
1246
  parsedBody,
1386
- exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
1387
1247
  errorCode,
1388
1248
  });
1389
1249
  }
@@ -1392,7 +1252,7 @@ const de_StopVectorEnrichmentJobCommand = async (output, context) => {
1392
1252
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1393
1253
  return de_StopVectorEnrichmentJobCommandError(output, context);
1394
1254
  }
1395
- const contents = map({
1255
+ const contents = (0, smithy_client_1.map)({
1396
1256
  $metadata: deserializeMetadata(output),
1397
1257
  });
1398
1258
  await collectBody(output.body, context);
@@ -1426,10 +1286,9 @@ const de_StopVectorEnrichmentJobCommandError = async (output, context) => {
1426
1286
  throw await de_ValidationExceptionRes(parsedOutput, context);
1427
1287
  default:
1428
1288
  const parsedBody = parsedOutput.body;
1429
- (0, smithy_client_1.throwDefaultError)({
1289
+ return throwDefaultError({
1430
1290
  output,
1431
1291
  parsedBody,
1432
- exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
1433
1292
  errorCode,
1434
1293
  });
1435
1294
  }
@@ -1438,7 +1297,7 @@ const de_TagResourceCommand = async (output, context) => {
1438
1297
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1439
1298
  return de_TagResourceCommandError(output, context);
1440
1299
  }
1441
- const contents = map({
1300
+ const contents = (0, smithy_client_1.map)({
1442
1301
  $metadata: deserializeMetadata(output),
1443
1302
  });
1444
1303
  await collectBody(output.body, context);
@@ -1469,10 +1328,9 @@ const de_TagResourceCommandError = async (output, context) => {
1469
1328
  throw await de_ValidationExceptionRes(parsedOutput, context);
1470
1329
  default:
1471
1330
  const parsedBody = parsedOutput.body;
1472
- (0, smithy_client_1.throwDefaultError)({
1331
+ return throwDefaultError({
1473
1332
  output,
1474
1333
  parsedBody,
1475
- exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
1476
1334
  errorCode,
1477
1335
  });
1478
1336
  }
@@ -1481,7 +1339,7 @@ const de_UntagResourceCommand = async (output, context) => {
1481
1339
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1482
1340
  return de_UntagResourceCommandError(output, context);
1483
1341
  }
1484
- const contents = map({
1342
+ const contents = (0, smithy_client_1.map)({
1485
1343
  $metadata: deserializeMetadata(output),
1486
1344
  });
1487
1345
  await collectBody(output.body, context);
@@ -1512,21 +1370,21 @@ const de_UntagResourceCommandError = async (output, context) => {
1512
1370
  throw await de_ValidationExceptionRes(parsedOutput, context);
1513
1371
  default:
1514
1372
  const parsedBody = parsedOutput.body;
1515
- (0, smithy_client_1.throwDefaultError)({
1373
+ return throwDefaultError({
1516
1374
  output,
1517
1375
  parsedBody,
1518
- exceptionCtor: SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException,
1519
1376
  errorCode,
1520
1377
  });
1521
1378
  }
1522
1379
  };
1523
- const map = smithy_client_1.map;
1380
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(SageMakerGeospatialServiceException_1.SageMakerGeospatialServiceException);
1524
1381
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1525
- const contents = map({});
1382
+ const contents = (0, smithy_client_1.map)({});
1526
1383
  const data = parsedOutput.body;
1527
- if (data.Message != null) {
1528
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
1529
- }
1384
+ const doc = (0, smithy_client_1.take)(data, {
1385
+ Message: smithy_client_1.expectString,
1386
+ });
1387
+ Object.assign(contents, doc);
1530
1388
  const exception = new models_0_1.AccessDeniedException({
1531
1389
  $metadata: deserializeMetadata(parsedOutput),
1532
1390
  ...contents,
@@ -1534,14 +1392,13 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1534
1392
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1535
1393
  };
1536
1394
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
1537
- const contents = map({});
1395
+ const contents = (0, smithy_client_1.map)({});
1538
1396
  const data = parsedOutput.body;
1539
- if (data.Message != null) {
1540
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
1541
- }
1542
- if (data.ResourceId != null) {
1543
- contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
1544
- }
1397
+ const doc = (0, smithy_client_1.take)(data, {
1398
+ Message: smithy_client_1.expectString,
1399
+ ResourceId: smithy_client_1.expectString,
1400
+ });
1401
+ Object.assign(contents, doc);
1545
1402
  const exception = new models_0_1.ConflictException({
1546
1403
  $metadata: deserializeMetadata(parsedOutput),
1547
1404
  ...contents,
@@ -1549,14 +1406,13 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1549
1406
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1550
1407
  };
1551
1408
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1552
- const contents = map({});
1409
+ const contents = (0, smithy_client_1.map)({});
1553
1410
  const data = parsedOutput.body;
1554
- if (data.Message != null) {
1555
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
1556
- }
1557
- if (data.ResourceId != null) {
1558
- contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
1559
- }
1411
+ const doc = (0, smithy_client_1.take)(data, {
1412
+ Message: smithy_client_1.expectString,
1413
+ ResourceId: smithy_client_1.expectString,
1414
+ });
1415
+ Object.assign(contents, doc);
1560
1416
  const exception = new models_0_1.InternalServerException({
1561
1417
  $metadata: deserializeMetadata(parsedOutput),
1562
1418
  ...contents,
@@ -1564,14 +1420,13 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1564
1420
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1565
1421
  };
1566
1422
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1567
- const contents = map({});
1423
+ const contents = (0, smithy_client_1.map)({});
1568
1424
  const data = parsedOutput.body;
1569
- if (data.Message != null) {
1570
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
1571
- }
1572
- if (data.ResourceId != null) {
1573
- contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
1574
- }
1425
+ const doc = (0, smithy_client_1.take)(data, {
1426
+ Message: smithy_client_1.expectString,
1427
+ ResourceId: smithy_client_1.expectString,
1428
+ });
1429
+ Object.assign(contents, doc);
1575
1430
  const exception = new models_0_1.ResourceNotFoundException({
1576
1431
  $metadata: deserializeMetadata(parsedOutput),
1577
1432
  ...contents,
@@ -1579,14 +1434,13 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1579
1434
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1580
1435
  };
1581
1436
  const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1582
- const contents = map({});
1437
+ const contents = (0, smithy_client_1.map)({});
1583
1438
  const data = parsedOutput.body;
1584
- if (data.Message != null) {
1585
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
1586
- }
1587
- if (data.ResourceId != null) {
1588
- contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
1589
- }
1439
+ const doc = (0, smithy_client_1.take)(data, {
1440
+ Message: smithy_client_1.expectString,
1441
+ ResourceId: smithy_client_1.expectString,
1442
+ });
1443
+ Object.assign(contents, doc);
1590
1444
  const exception = new models_0_1.ServiceQuotaExceededException({
1591
1445
  $metadata: deserializeMetadata(parsedOutput),
1592
1446
  ...contents,
@@ -1594,14 +1448,13 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1594
1448
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1595
1449
  };
1596
1450
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1597
- const contents = map({});
1451
+ const contents = (0, smithy_client_1.map)({});
1598
1452
  const data = parsedOutput.body;
1599
- if (data.Message != null) {
1600
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
1601
- }
1602
- if (data.ResourceId != null) {
1603
- contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
1604
- }
1453
+ const doc = (0, smithy_client_1.take)(data, {
1454
+ Message: smithy_client_1.expectString,
1455
+ ResourceId: smithy_client_1.expectString,
1456
+ });
1457
+ Object.assign(contents, doc);
1605
1458
  const exception = new models_0_1.ThrottlingException({
1606
1459
  $metadata: deserializeMetadata(parsedOutput),
1607
1460
  ...contents,
@@ -1609,14 +1462,13 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1609
1462
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1610
1463
  };
1611
1464
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
1612
- const contents = map({});
1465
+ const contents = (0, smithy_client_1.map)({});
1613
1466
  const data = parsedOutput.body;
1614
- if (data.Message != null) {
1615
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
1616
- }
1617
- if (data.ResourceId != null) {
1618
- contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
1619
- }
1467
+ const doc = (0, smithy_client_1.take)(data, {
1468
+ Message: smithy_client_1.expectString,
1469
+ ResourceId: smithy_client_1.expectString,
1470
+ });
1471
+ Object.assign(contents, doc);
1620
1472
  const exception = new models_0_1.ValidationException({
1621
1473
  $metadata: deserializeMetadata(parsedOutput),
1622
1474
  ...contents,
@@ -1636,95 +1488,38 @@ const se_AreaOfInterestGeometry = (input, context) => {
1636
1488
  _: (name, value) => ({ name: value }),
1637
1489
  });
1638
1490
  };
1639
- const se_BandMathConfigInput = (input, context) => {
1640
- return {
1641
- ...(input.CustomIndices != null && { CustomIndices: se_CustomIndicesInput(input.CustomIndices, context) }),
1642
- ...(input.PredefinedIndices != null && { PredefinedIndices: se_StringListInput(input.PredefinedIndices, context) }),
1643
- };
1644
- };
1645
- const se_CloudMaskingConfigInput = (input, context) => {
1646
- return {};
1647
- };
1648
- const se_CloudRemovalConfigInput = (input, context) => {
1649
- return {
1650
- ...(input.AlgorithmName != null && { AlgorithmName: input.AlgorithmName }),
1651
- ...(input.InterpolationValue != null && { InterpolationValue: input.InterpolationValue }),
1652
- ...(input.TargetBands != null && { TargetBands: se_StringListInput(input.TargetBands, context) }),
1653
- };
1654
- };
1655
- const se_CustomIndicesInput = (input, context) => {
1656
- return {
1657
- ...(input.Operations != null && { Operations: se_OperationsListInput(input.Operations, context) }),
1658
- };
1659
- };
1660
1491
  const se_EoCloudCoverInput = (input, context) => {
1661
- return {
1662
- ...(input.LowerBound != null && { LowerBound: (0, smithy_client_1.serializeFloat)(input.LowerBound) }),
1663
- ...(input.UpperBound != null && { UpperBound: (0, smithy_client_1.serializeFloat)(input.UpperBound) }),
1664
- };
1665
- };
1666
- const se_EojDataSourceConfigInput = (input, context) => {
1667
- return models_0_1.EojDataSourceConfigInput.visit(input, {
1668
- S3Data: (value) => ({ S3Data: se_S3DataInput(value, context) }),
1669
- _: (name, value) => ({ name: value }),
1492
+ return (0, smithy_client_1.take)(input, {
1493
+ LowerBound: smithy_client_1.serializeFloat,
1494
+ UpperBound: smithy_client_1.serializeFloat,
1670
1495
  });
1671
1496
  };
1672
- const se_ExportS3DataInput = (input, context) => {
1673
- return {
1674
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
1675
- ...(input.S3Uri != null && { S3Uri: input.S3Uri }),
1676
- };
1677
- };
1678
- const se_ExportVectorEnrichmentJobOutputConfig = (input, context) => {
1679
- return {
1680
- ...(input.S3Data != null && { S3Data: se_VectorEnrichmentJobS3Data(input.S3Data, context) }),
1681
- };
1682
- };
1683
- const se_GeoMosaicConfigInput = (input, context) => {
1684
- return {
1685
- ...(input.AlgorithmName != null && { AlgorithmName: input.AlgorithmName }),
1686
- ...(input.TargetBands != null && { TargetBands: se_StringListInput(input.TargetBands, context) }),
1687
- };
1688
- };
1689
1497
  const se_InputConfigInput = (input, context) => {
1690
- return {
1691
- ...(input.DataSourceConfig != null && {
1692
- DataSourceConfig: se_EojDataSourceConfigInput(input.DataSourceConfig, context),
1693
- }),
1694
- ...(input.PreviousEarthObservationJobArn != null && {
1695
- PreviousEarthObservationJobArn: input.PreviousEarthObservationJobArn,
1696
- }),
1697
- ...(input.RasterDataCollectionQuery != null && {
1698
- RasterDataCollectionQuery: se_RasterDataCollectionQueryInput(input.RasterDataCollectionQuery, context),
1699
- }),
1700
- };
1498
+ return (0, smithy_client_1.take)(input, {
1499
+ DataSourceConfig: smithy_client_1._json,
1500
+ PreviousEarthObservationJobArn: [],
1501
+ RasterDataCollectionQuery: (_) => se_RasterDataCollectionQueryInput(_, context),
1502
+ });
1701
1503
  };
1702
1504
  const se_JobConfigInput = (input, context) => {
1703
1505
  return models_0_1.JobConfigInput.visit(input, {
1704
- BandMathConfig: (value) => ({ BandMathConfig: se_BandMathConfigInput(value, context) }),
1705
- CloudMaskingConfig: (value) => ({ CloudMaskingConfig: se_CloudMaskingConfigInput(value, context) }),
1706
- CloudRemovalConfig: (value) => ({ CloudRemovalConfig: se_CloudRemovalConfigInput(value, context) }),
1707
- GeoMosaicConfig: (value) => ({ GeoMosaicConfig: se_GeoMosaicConfigInput(value, context) }),
1708
- LandCoverSegmentationConfig: (value) => ({
1709
- LandCoverSegmentationConfig: se_LandCoverSegmentationConfigInput(value, context),
1710
- }),
1506
+ BandMathConfig: (value) => ({ BandMathConfig: (0, smithy_client_1._json)(value) }),
1507
+ CloudMaskingConfig: (value) => ({ CloudMaskingConfig: (0, smithy_client_1._json)(value) }),
1508
+ CloudRemovalConfig: (value) => ({ CloudRemovalConfig: (0, smithy_client_1._json)(value) }),
1509
+ GeoMosaicConfig: (value) => ({ GeoMosaicConfig: (0, smithy_client_1._json)(value) }),
1510
+ LandCoverSegmentationConfig: (value) => ({ LandCoverSegmentationConfig: (0, smithy_client_1._json)(value) }),
1711
1511
  ResamplingConfig: (value) => ({ ResamplingConfig: se_ResamplingConfigInput(value, context) }),
1712
1512
  StackConfig: (value) => ({ StackConfig: se_StackConfigInput(value, context) }),
1713
- TemporalStatisticsConfig: (value) => ({
1714
- TemporalStatisticsConfig: se_TemporalStatisticsConfigInput(value, context),
1715
- }),
1716
- ZonalStatisticsConfig: (value) => ({ ZonalStatisticsConfig: se_ZonalStatisticsConfigInput(value, context) }),
1513
+ TemporalStatisticsConfig: (value) => ({ TemporalStatisticsConfig: (0, smithy_client_1._json)(value) }),
1514
+ ZonalStatisticsConfig: (value) => ({ ZonalStatisticsConfig: (0, smithy_client_1._json)(value) }),
1717
1515
  _: (name, value) => ({ name: value }),
1718
1516
  });
1719
1517
  };
1720
- const se_LandCoverSegmentationConfigInput = (input, context) => {
1721
- return {};
1722
- };
1723
1518
  const se_LandsatCloudCoverLandInput = (input, context) => {
1724
- return {
1725
- ...(input.LowerBound != null && { LowerBound: (0, smithy_client_1.serializeFloat)(input.LowerBound) }),
1726
- ...(input.UpperBound != null && { UpperBound: (0, smithy_client_1.serializeFloat)(input.UpperBound) }),
1727
- };
1519
+ return (0, smithy_client_1.take)(input, {
1520
+ LowerBound: smithy_client_1.serializeFloat,
1521
+ UpperBound: smithy_client_1.serializeFloat,
1522
+ });
1728
1523
  };
1729
1524
  const se_LinearRing = (input, context) => {
1730
1525
  return input
@@ -1747,59 +1542,26 @@ const se_LinearRingsList = (input, context) => {
1747
1542
  return se_LinearRings(entry, context);
1748
1543
  });
1749
1544
  };
1750
- const se_MapMatchingConfig = (input, context) => {
1751
- return {
1752
- ...(input.IdAttributeName != null && { IdAttributeName: input.IdAttributeName }),
1753
- ...(input.TimestampAttributeName != null && { TimestampAttributeName: input.TimestampAttributeName }),
1754
- ...(input.XAttributeName != null && { XAttributeName: input.XAttributeName }),
1755
- ...(input.YAttributeName != null && { YAttributeName: input.YAttributeName }),
1756
- };
1757
- };
1758
1545
  const se_MultiPolygonGeometryInput = (input, context) => {
1759
- return {
1760
- ...(input.Coordinates != null && { Coordinates: se_LinearRingsList(input.Coordinates, context) }),
1761
- };
1762
- };
1763
- const se_Operation = (input, context) => {
1764
- return {
1765
- ...(input.Equation != null && { Equation: input.Equation }),
1766
- ...(input.Name != null && { Name: input.Name }),
1767
- ...(input.OutputType != null && { OutputType: input.OutputType }),
1768
- };
1769
- };
1770
- const se_OperationsListInput = (input, context) => {
1771
- return input
1772
- .filter((e) => e != null)
1773
- .map((entry) => {
1774
- return se_Operation(entry, context);
1546
+ return (0, smithy_client_1.take)(input, {
1547
+ Coordinates: (_) => se_LinearRingsList(_, context),
1775
1548
  });
1776
1549
  };
1777
- const se_OutputConfigInput = (input, context) => {
1778
- return {
1779
- ...(input.S3Data != null && { S3Data: se_ExportS3DataInput(input.S3Data, context) }),
1780
- };
1781
- };
1782
1550
  const se_OutputResolutionResamplingInput = (input, context) => {
1783
- return {
1784
- ...(input.UserDefined != null && { UserDefined: se_UserDefined(input.UserDefined, context) }),
1785
- };
1551
+ return (0, smithy_client_1.take)(input, {
1552
+ UserDefined: (_) => se_UserDefined(_, context),
1553
+ });
1786
1554
  };
1787
1555
  const se_OutputResolutionStackInput = (input, context) => {
1788
- return {
1789
- ...(input.Predefined != null && { Predefined: input.Predefined }),
1790
- ...(input.UserDefined != null && { UserDefined: se_UserDefined(input.UserDefined, context) }),
1791
- };
1792
- };
1793
- const se_PlatformInput = (input, context) => {
1794
- return {
1795
- ...(input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }),
1796
- ...(input.Value != null && { Value: input.Value }),
1797
- };
1556
+ return (0, smithy_client_1.take)(input, {
1557
+ Predefined: [],
1558
+ UserDefined: (_) => se_UserDefined(_, context),
1559
+ });
1798
1560
  };
1799
1561
  const se_PolygonGeometryInput = (input, context) => {
1800
- return {
1801
- ...(input.Coordinates != null && { Coordinates: se_LinearRings(input.Coordinates, context) }),
1802
- };
1562
+ return (0, smithy_client_1.take)(input, {
1563
+ Coordinates: (_) => se_LinearRings(_, context),
1564
+ });
1803
1565
  };
1804
1566
  const se_Position = (input, context) => {
1805
1567
  return input
@@ -1812,7 +1574,7 @@ const se_Property = (input, context) => {
1812
1574
  return models_0_1.Property.visit(input, {
1813
1575
  EoCloudCover: (value) => ({ EoCloudCover: se_EoCloudCoverInput(value, context) }),
1814
1576
  LandsatCloudCoverLand: (value) => ({ LandsatCloudCoverLand: se_LandsatCloudCoverLandInput(value, context) }),
1815
- Platform: (value) => ({ Platform: se_PlatformInput(value, context) }),
1577
+ Platform: (value) => ({ Platform: (0, smithy_client_1._json)(value) }),
1816
1578
  ViewOffNadir: (value) => ({ ViewOffNadir: se_ViewOffNadirInput(value, context) }),
1817
1579
  ViewSunAzimuth: (value) => ({ ViewSunAzimuth: se_ViewSunAzimuthInput(value, context) }),
1818
1580
  ViewSunElevation: (value) => ({ ViewSunElevation: se_ViewSunElevationInput(value, context) }),
@@ -1820,15 +1582,15 @@ const se_Property = (input, context) => {
1820
1582
  });
1821
1583
  };
1822
1584
  const se_PropertyFilter = (input, context) => {
1823
- return {
1824
- ...(input.Property != null && { Property: se_Property(input.Property, context) }),
1825
- };
1585
+ return (0, smithy_client_1.take)(input, {
1586
+ Property: (_) => se_Property(_, context),
1587
+ });
1826
1588
  };
1827
1589
  const se_PropertyFilters = (input, context) => {
1828
- return {
1829
- ...(input.LogicalOperator != null && { LogicalOperator: input.LogicalOperator }),
1830
- ...(input.Properties != null && { Properties: se_PropertyFiltersList(input.Properties, context) }),
1831
- };
1590
+ return (0, smithy_client_1.take)(input, {
1591
+ LogicalOperator: [],
1592
+ Properties: (_) => se_PropertyFiltersList(_, context),
1593
+ });
1832
1594
  };
1833
1595
  const se_PropertyFiltersList = (input, context) => {
1834
1596
  return input
@@ -1838,151 +1600,62 @@ const se_PropertyFiltersList = (input, context) => {
1838
1600
  });
1839
1601
  };
1840
1602
  const se_RasterDataCollectionQueryInput = (input, context) => {
1841
- return {
1842
- ...(input.AreaOfInterest != null && { AreaOfInterest: se_AreaOfInterest(input.AreaOfInterest, context) }),
1843
- ...(input.PropertyFilters != null && { PropertyFilters: se_PropertyFilters(input.PropertyFilters, context) }),
1844
- ...(input.RasterDataCollectionArn != null && { RasterDataCollectionArn: input.RasterDataCollectionArn }),
1845
- ...(input.TimeRangeFilter != null && { TimeRangeFilter: se_TimeRangeFilterInput(input.TimeRangeFilter, context) }),
1846
- };
1603
+ return (0, smithy_client_1.take)(input, {
1604
+ AreaOfInterest: (_) => se_AreaOfInterest(_, context),
1605
+ PropertyFilters: (_) => se_PropertyFilters(_, context),
1606
+ RasterDataCollectionArn: [],
1607
+ TimeRangeFilter: (_) => se_TimeRangeFilterInput(_, context),
1608
+ });
1847
1609
  };
1848
1610
  const se_RasterDataCollectionQueryWithBandFilterInput = (input, context) => {
1849
- return {
1850
- ...(input.AreaOfInterest != null && { AreaOfInterest: se_AreaOfInterest(input.AreaOfInterest, context) }),
1851
- ...(input.BandFilter != null && { BandFilter: se_StringListInput(input.BandFilter, context) }),
1852
- ...(input.PropertyFilters != null && { PropertyFilters: se_PropertyFilters(input.PropertyFilters, context) }),
1853
- ...(input.TimeRangeFilter != null && { TimeRangeFilter: se_TimeRangeFilterInput(input.TimeRangeFilter, context) }),
1854
- };
1611
+ return (0, smithy_client_1.take)(input, {
1612
+ AreaOfInterest: (_) => se_AreaOfInterest(_, context),
1613
+ BandFilter: smithy_client_1._json,
1614
+ PropertyFilters: (_) => se_PropertyFilters(_, context),
1615
+ TimeRangeFilter: (_) => se_TimeRangeFilterInput(_, context),
1616
+ });
1855
1617
  };
1856
1618
  const se_ResamplingConfigInput = (input, context) => {
1857
- return {
1858
- ...(input.AlgorithmName != null && { AlgorithmName: input.AlgorithmName }),
1859
- ...(input.OutputResolution != null && {
1860
- OutputResolution: se_OutputResolutionResamplingInput(input.OutputResolution, context),
1861
- }),
1862
- ...(input.TargetBands != null && { TargetBands: se_StringListInput(input.TargetBands, context) }),
1863
- };
1864
- };
1865
- const se_ReverseGeocodingConfig = (input, context) => {
1866
- return {
1867
- ...(input.XAttributeName != null && { XAttributeName: input.XAttributeName }),
1868
- ...(input.YAttributeName != null && { YAttributeName: input.YAttributeName }),
1869
- };
1870
- };
1871
- const se_S3DataInput = (input, context) => {
1872
- return {
1873
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
1874
- ...(input.MetadataProvider != null && { MetadataProvider: input.MetadataProvider }),
1875
- ...(input.S3Uri != null && { S3Uri: input.S3Uri }),
1876
- };
1877
- };
1878
- const se_StackConfigInput = (input, context) => {
1879
- return {
1880
- ...(input.OutputResolution != null && {
1881
- OutputResolution: se_OutputResolutionStackInput(input.OutputResolution, context),
1882
- }),
1883
- ...(input.TargetBands != null && { TargetBands: se_StringListInput(input.TargetBands, context) }),
1884
- };
1885
- };
1886
- const se_StringListInput = (input, context) => {
1887
- return input
1888
- .filter((e) => e != null)
1889
- .map((entry) => {
1890
- return entry;
1619
+ return (0, smithy_client_1.take)(input, {
1620
+ AlgorithmName: [],
1621
+ OutputResolution: (_) => se_OutputResolutionResamplingInput(_, context),
1622
+ TargetBands: smithy_client_1._json,
1891
1623
  });
1892
1624
  };
1893
- const se_Tags = (input, context) => {
1894
- return Object.entries(input).reduce((acc, [key, value]) => {
1895
- if (value === null) {
1896
- return acc;
1897
- }
1898
- acc[key] = value;
1899
- return acc;
1900
- }, {});
1901
- };
1902
- const se_TemporalStatisticsConfigInput = (input, context) => {
1903
- return {
1904
- ...(input.GroupBy != null && { GroupBy: input.GroupBy }),
1905
- ...(input.Statistics != null && { Statistics: se_TemporalStatisticsListInput(input.Statistics, context) }),
1906
- ...(input.TargetBands != null && { TargetBands: se_StringListInput(input.TargetBands, context) }),
1907
- };
1908
- };
1909
- const se_TemporalStatisticsListInput = (input, context) => {
1910
- return input
1911
- .filter((e) => e != null)
1912
- .map((entry) => {
1913
- return entry;
1625
+ const se_StackConfigInput = (input, context) => {
1626
+ return (0, smithy_client_1.take)(input, {
1627
+ OutputResolution: (_) => se_OutputResolutionStackInput(_, context),
1628
+ TargetBands: smithy_client_1._json,
1914
1629
  });
1915
1630
  };
1916
1631
  const se_TimeRangeFilterInput = (input, context) => {
1917
- return {
1918
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
1919
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
1920
- };
1921
- };
1922
- const se_UserDefined = (input, context) => {
1923
- return {
1924
- ...(input.Unit != null && { Unit: input.Unit }),
1925
- ...(input.Value != null && { Value: (0, smithy_client_1.serializeFloat)(input.Value) }),
1926
- };
1927
- };
1928
- const se_VectorEnrichmentJobConfig = (input, context) => {
1929
- return models_0_1.VectorEnrichmentJobConfig.visit(input, {
1930
- MapMatchingConfig: (value) => ({ MapMatchingConfig: se_MapMatchingConfig(value, context) }),
1931
- ReverseGeocodingConfig: (value) => ({ ReverseGeocodingConfig: se_ReverseGeocodingConfig(value, context) }),
1932
- _: (name, value) => ({ name: value }),
1632
+ return (0, smithy_client_1.take)(input, {
1633
+ EndTime: (_) => Math.round(_.getTime() / 1000),
1634
+ StartTime: (_) => Math.round(_.getTime() / 1000),
1933
1635
  });
1934
1636
  };
1935
- const se_VectorEnrichmentJobDataSourceConfigInput = (input, context) => {
1936
- return models_0_1.VectorEnrichmentJobDataSourceConfigInput.visit(input, {
1937
- S3Data: (value) => ({ S3Data: se_VectorEnrichmentJobS3Data(value, context) }),
1938
- _: (name, value) => ({ name: value }),
1637
+ const se_UserDefined = (input, context) => {
1638
+ return (0, smithy_client_1.take)(input, {
1639
+ Unit: [],
1640
+ Value: smithy_client_1.serializeFloat,
1939
1641
  });
1940
1642
  };
1941
- const se_VectorEnrichmentJobInputConfig = (input, context) => {
1942
- return {
1943
- ...(input.DataSourceConfig != null && {
1944
- DataSourceConfig: se_VectorEnrichmentJobDataSourceConfigInput(input.DataSourceConfig, context),
1945
- }),
1946
- ...(input.DocumentType != null && { DocumentType: input.DocumentType }),
1947
- };
1948
- };
1949
- const se_VectorEnrichmentJobS3Data = (input, context) => {
1950
- return {
1951
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
1952
- ...(input.S3Uri != null && { S3Uri: input.S3Uri }),
1953
- };
1954
- };
1955
1643
  const se_ViewOffNadirInput = (input, context) => {
1956
- return {
1957
- ...(input.LowerBound != null && { LowerBound: (0, smithy_client_1.serializeFloat)(input.LowerBound) }),
1958
- ...(input.UpperBound != null && { UpperBound: (0, smithy_client_1.serializeFloat)(input.UpperBound) }),
1959
- };
1644
+ return (0, smithy_client_1.take)(input, {
1645
+ LowerBound: smithy_client_1.serializeFloat,
1646
+ UpperBound: smithy_client_1.serializeFloat,
1647
+ });
1960
1648
  };
1961
1649
  const se_ViewSunAzimuthInput = (input, context) => {
1962
- return {
1963
- ...(input.LowerBound != null && { LowerBound: (0, smithy_client_1.serializeFloat)(input.LowerBound) }),
1964
- ...(input.UpperBound != null && { UpperBound: (0, smithy_client_1.serializeFloat)(input.UpperBound) }),
1965
- };
1650
+ return (0, smithy_client_1.take)(input, {
1651
+ LowerBound: smithy_client_1.serializeFloat,
1652
+ UpperBound: smithy_client_1.serializeFloat,
1653
+ });
1966
1654
  };
1967
1655
  const se_ViewSunElevationInput = (input, context) => {
1968
- return {
1969
- ...(input.LowerBound != null && { LowerBound: (0, smithy_client_1.serializeFloat)(input.LowerBound) }),
1970
- ...(input.UpperBound != null && { UpperBound: (0, smithy_client_1.serializeFloat)(input.UpperBound) }),
1971
- };
1972
- };
1973
- const se_ZonalStatisticsConfigInput = (input, context) => {
1974
- return {
1975
- ...(input.Statistics != null && { Statistics: se_ZonalStatisticsListInput(input.Statistics, context) }),
1976
- ...(input.TargetBands != null && { TargetBands: se_StringListInput(input.TargetBands, context) }),
1977
- ...(input.ZoneS3Path != null && { ZoneS3Path: input.ZoneS3Path }),
1978
- ...(input.ZoneS3PathKmsKeyId != null && { ZoneS3PathKmsKeyId: input.ZoneS3PathKmsKeyId }),
1979
- };
1980
- };
1981
- const se_ZonalStatisticsListInput = (input, context) => {
1982
- return input
1983
- .filter((e) => e != null)
1984
- .map((entry) => {
1985
- return entry;
1656
+ return (0, smithy_client_1.take)(input, {
1657
+ LowerBound: smithy_client_1.serializeFloat,
1658
+ UpperBound: smithy_client_1.serializeFloat,
1986
1659
  });
1987
1660
  };
1988
1661
  const de_AreaOfInterest = (output, context) => {
@@ -2006,186 +1679,70 @@ const de_AreaOfInterestGeometry = (output, context) => {
2006
1679
  }
2007
1680
  return { $unknown: Object.entries(output)[0] };
2008
1681
  };
2009
- const de_AssetsMap = (output, context) => {
2010
- return Object.entries(output).reduce((acc, [key, value]) => {
2011
- if (value === null) {
2012
- return acc;
2013
- }
2014
- acc[key] = de_AssetValue(value, context);
2015
- return acc;
2016
- }, {});
2017
- };
2018
- const de_AssetValue = (output, context) => {
2019
- return {
2020
- Href: (0, smithy_client_1.expectString)(output.Href),
2021
- };
2022
- };
2023
- const de_BandMathConfigInput = (output, context) => {
2024
- return {
2025
- CustomIndices: output.CustomIndices != null ? de_CustomIndicesInput(output.CustomIndices, context) : undefined,
2026
- PredefinedIndices: output.PredefinedIndices != null ? de_StringListInput(output.PredefinedIndices, context) : undefined,
2027
- };
2028
- };
2029
- const de_CloudMaskingConfigInput = (output, context) => {
2030
- return {};
2031
- };
2032
- const de_CloudRemovalConfigInput = (output, context) => {
2033
- return {
2034
- AlgorithmName: (0, smithy_client_1.expectString)(output.AlgorithmName),
2035
- InterpolationValue: (0, smithy_client_1.expectString)(output.InterpolationValue),
2036
- TargetBands: output.TargetBands != null ? de_StringListInput(output.TargetBands, context) : undefined,
2037
- };
2038
- };
2039
- const de_CustomIndicesInput = (output, context) => {
2040
- return {
2041
- Operations: output.Operations != null ? de_OperationsListInput(output.Operations, context) : undefined,
2042
- };
2043
- };
2044
1682
  const de_DataCollectionsList = (output, context) => {
2045
1683
  const retVal = (output || [])
2046
1684
  .filter((e) => e != null)
2047
1685
  .map((entry) => {
2048
- if (entry === null) {
2049
- return null;
2050
- }
2051
1686
  return de_RasterDataCollectionMetadata(entry, context);
2052
1687
  });
2053
1688
  return retVal;
2054
1689
  };
2055
- const de_EarthObservationJobErrorDetails = (output, context) => {
2056
- return {
2057
- Message: (0, smithy_client_1.expectString)(output.Message),
2058
- Type: (0, smithy_client_1.expectString)(output.Type),
2059
- };
2060
- };
2061
1690
  const de_EarthObservationJobList = (output, context) => {
2062
1691
  const retVal = (output || [])
2063
1692
  .filter((e) => e != null)
2064
1693
  .map((entry) => {
2065
- if (entry === null) {
2066
- return null;
2067
- }
2068
1694
  return de_ListEarthObservationJobOutputConfig(entry, context);
2069
1695
  });
2070
1696
  return retVal;
2071
1697
  };
2072
- const de_EarthObservationJobOutputBands = (output, context) => {
2073
- const retVal = (output || [])
2074
- .filter((e) => e != null)
2075
- .map((entry) => {
2076
- if (entry === null) {
2077
- return null;
2078
- }
2079
- return de_OutputBand(entry, context);
2080
- });
2081
- return retVal;
2082
- };
2083
1698
  const de_EoCloudCoverInput = (output, context) => {
2084
- return {
2085
- LowerBound: (0, smithy_client_1.limitedParseFloat32)(output.LowerBound),
2086
- UpperBound: (0, smithy_client_1.limitedParseFloat32)(output.UpperBound),
2087
- };
2088
- };
2089
- const de_EojDataSourceConfigInput = (output, context) => {
2090
- if (output.S3Data != null) {
2091
- return {
2092
- S3Data: de_S3DataInput(output.S3Data, context),
2093
- };
2094
- }
2095
- return { $unknown: Object.entries(output)[0] };
2096
- };
2097
- const de_ExportErrorDetails = (output, context) => {
2098
- return {
2099
- ExportResults: output.ExportResults != null ? de_ExportErrorDetailsOutput(output.ExportResults, context) : undefined,
2100
- ExportSourceImages: output.ExportSourceImages != null ? de_ExportErrorDetailsOutput(output.ExportSourceImages, context) : undefined,
2101
- };
2102
- };
2103
- const de_ExportErrorDetailsOutput = (output, context) => {
2104
- return {
2105
- Message: (0, smithy_client_1.expectString)(output.Message),
2106
- Type: (0, smithy_client_1.expectString)(output.Type),
2107
- };
2108
- };
2109
- const de_ExportS3DataInput = (output, context) => {
2110
- return {
2111
- KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
2112
- S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
2113
- };
2114
- };
2115
- const de_ExportVectorEnrichmentJobOutputConfig = (output, context) => {
2116
- return {
2117
- S3Data: output.S3Data != null ? de_VectorEnrichmentJobS3Data(output.S3Data, context) : undefined,
2118
- };
1699
+ return (0, smithy_client_1.take)(output, {
1700
+ LowerBound: smithy_client_1.limitedParseFloat32,
1701
+ UpperBound: smithy_client_1.limitedParseFloat32,
1702
+ });
2119
1703
  };
2120
1704
  const de_Filter = (output, context) => {
2121
- return {
2122
- Maximum: (0, smithy_client_1.limitedParseFloat32)(output.Maximum),
2123
- Minimum: (0, smithy_client_1.limitedParseFloat32)(output.Minimum),
2124
- Name: (0, smithy_client_1.expectString)(output.Name),
2125
- Type: (0, smithy_client_1.expectString)(output.Type),
2126
- };
1705
+ return (0, smithy_client_1.take)(output, {
1706
+ Maximum: smithy_client_1.limitedParseFloat32,
1707
+ Minimum: smithy_client_1.limitedParseFloat32,
1708
+ Name: smithy_client_1.expectString,
1709
+ Type: smithy_client_1.expectString,
1710
+ });
2127
1711
  };
2128
1712
  const de_FilterList = (output, context) => {
2129
1713
  const retVal = (output || [])
2130
1714
  .filter((e) => e != null)
2131
1715
  .map((entry) => {
2132
- if (entry === null) {
2133
- return null;
2134
- }
2135
1716
  return de_Filter(entry, context);
2136
1717
  });
2137
1718
  return retVal;
2138
1719
  };
2139
1720
  const de_Geometry = (output, context) => {
2140
- return {
2141
- Coordinates: output.Coordinates != null ? de_LinearRings(output.Coordinates, context) : undefined,
2142
- Type: (0, smithy_client_1.expectString)(output.Type),
2143
- };
2144
- };
2145
- const de_GeoMosaicConfigInput = (output, context) => {
2146
- return {
2147
- AlgorithmName: (0, smithy_client_1.expectString)(output.AlgorithmName),
2148
- TargetBands: output.TargetBands != null ? de_StringListInput(output.TargetBands, context) : undefined,
2149
- };
2150
- };
2151
- const de_ImageSourceBandList = (output, context) => {
2152
- const retVal = (output || [])
2153
- .filter((e) => e != null)
2154
- .map((entry) => {
2155
- if (entry === null) {
2156
- return null;
2157
- }
2158
- return (0, smithy_client_1.expectString)(entry);
1721
+ return (0, smithy_client_1.take)(output, {
1722
+ Coordinates: (_) => de_LinearRings(_, context),
1723
+ Type: smithy_client_1.expectString,
2159
1724
  });
2160
- return retVal;
2161
1725
  };
2162
1726
  const de_InputConfigOutput = (output, context) => {
2163
- return {
2164
- DataSourceConfig: output.DataSourceConfig != null
2165
- ? de_EojDataSourceConfigInput((0, smithy_client_1.expectUnion)(output.DataSourceConfig), context)
2166
- : undefined,
2167
- PreviousEarthObservationJobArn: (0, smithy_client_1.expectString)(output.PreviousEarthObservationJobArn),
2168
- RasterDataCollectionQuery: output.RasterDataCollectionQuery != null
2169
- ? de_RasterDataCollectionQueryOutput(output.RasterDataCollectionQuery, context)
2170
- : undefined,
2171
- };
1727
+ return (0, smithy_client_1.take)(output, {
1728
+ DataSourceConfig: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
1729
+ PreviousEarthObservationJobArn: smithy_client_1.expectString,
1730
+ RasterDataCollectionQuery: (_) => de_RasterDataCollectionQueryOutput(_, context),
1731
+ });
2172
1732
  };
2173
1733
  const de_ItemSource = (output, context) => {
2174
- return {
2175
- Assets: output.Assets != null ? de_AssetsMap(output.Assets, context) : undefined,
2176
- DateTime: output.DateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateTime))) : undefined,
2177
- Geometry: output.Geometry != null ? de_Geometry(output.Geometry, context) : undefined,
2178
- Id: (0, smithy_client_1.expectString)(output.Id),
2179
- Properties: output.Properties != null ? de_Properties(output.Properties, context) : undefined,
2180
- };
1734
+ return (0, smithy_client_1.take)(output, {
1735
+ Assets: smithy_client_1._json,
1736
+ DateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1737
+ Geometry: (_) => de_Geometry(_, context),
1738
+ Id: smithy_client_1.expectString,
1739
+ Properties: (_) => de_Properties(_, context),
1740
+ });
2181
1741
  };
2182
1742
  const de_ItemSourceList = (output, context) => {
2183
1743
  const retVal = (output || [])
2184
1744
  .filter((e) => e != null)
2185
1745
  .map((entry) => {
2186
- if (entry === null) {
2187
- return null;
2188
- }
2189
1746
  return de_ItemSource(entry, context);
2190
1747
  });
2191
1748
  return retVal;
@@ -2193,27 +1750,27 @@ const de_ItemSourceList = (output, context) => {
2193
1750
  const de_JobConfigInput = (output, context) => {
2194
1751
  if (output.BandMathConfig != null) {
2195
1752
  return {
2196
- BandMathConfig: de_BandMathConfigInput(output.BandMathConfig, context),
1753
+ BandMathConfig: (0, smithy_client_1._json)(output.BandMathConfig),
2197
1754
  };
2198
1755
  }
2199
1756
  if (output.CloudMaskingConfig != null) {
2200
1757
  return {
2201
- CloudMaskingConfig: de_CloudMaskingConfigInput(output.CloudMaskingConfig, context),
1758
+ CloudMaskingConfig: (0, smithy_client_1._json)(output.CloudMaskingConfig),
2202
1759
  };
2203
1760
  }
2204
1761
  if (output.CloudRemovalConfig != null) {
2205
1762
  return {
2206
- CloudRemovalConfig: de_CloudRemovalConfigInput(output.CloudRemovalConfig, context),
1763
+ CloudRemovalConfig: (0, smithy_client_1._json)(output.CloudRemovalConfig),
2207
1764
  };
2208
1765
  }
2209
1766
  if (output.GeoMosaicConfig != null) {
2210
1767
  return {
2211
- GeoMosaicConfig: de_GeoMosaicConfigInput(output.GeoMosaicConfig, context),
1768
+ GeoMosaicConfig: (0, smithy_client_1._json)(output.GeoMosaicConfig),
2212
1769
  };
2213
1770
  }
2214
1771
  if (output.LandCoverSegmentationConfig != null) {
2215
1772
  return {
2216
- LandCoverSegmentationConfig: de_LandCoverSegmentationConfigInput(output.LandCoverSegmentationConfig, context),
1773
+ LandCoverSegmentationConfig: (0, smithy_client_1._json)(output.LandCoverSegmentationConfig),
2217
1774
  };
2218
1775
  }
2219
1776
  if (output.ResamplingConfig != null) {
@@ -2228,32 +1785,26 @@ const de_JobConfigInput = (output, context) => {
2228
1785
  }
2229
1786
  if (output.TemporalStatisticsConfig != null) {
2230
1787
  return {
2231
- TemporalStatisticsConfig: de_TemporalStatisticsConfigInput(output.TemporalStatisticsConfig, context),
1788
+ TemporalStatisticsConfig: (0, smithy_client_1._json)(output.TemporalStatisticsConfig),
2232
1789
  };
2233
1790
  }
2234
1791
  if (output.ZonalStatisticsConfig != null) {
2235
1792
  return {
2236
- ZonalStatisticsConfig: de_ZonalStatisticsConfigInput(output.ZonalStatisticsConfig, context),
1793
+ ZonalStatisticsConfig: (0, smithy_client_1._json)(output.ZonalStatisticsConfig),
2237
1794
  };
2238
1795
  }
2239
1796
  return { $unknown: Object.entries(output)[0] };
2240
1797
  };
2241
- const de_LandCoverSegmentationConfigInput = (output, context) => {
2242
- return {};
2243
- };
2244
1798
  const de_LandsatCloudCoverLandInput = (output, context) => {
2245
- return {
2246
- LowerBound: (0, smithy_client_1.limitedParseFloat32)(output.LowerBound),
2247
- UpperBound: (0, smithy_client_1.limitedParseFloat32)(output.UpperBound),
2248
- };
1799
+ return (0, smithy_client_1.take)(output, {
1800
+ LowerBound: smithy_client_1.limitedParseFloat32,
1801
+ UpperBound: smithy_client_1.limitedParseFloat32,
1802
+ });
2249
1803
  };
2250
1804
  const de_LinearRing = (output, context) => {
2251
1805
  const retVal = (output || [])
2252
1806
  .filter((e) => e != null)
2253
1807
  .map((entry) => {
2254
- if (entry === null) {
2255
- return null;
2256
- }
2257
1808
  return de_Position(entry, context);
2258
1809
  });
2259
1810
  return retVal;
@@ -2262,9 +1813,6 @@ const de_LinearRings = (output, context) => {
2262
1813
  const retVal = (output || [])
2263
1814
  .filter((e) => e != null)
2264
1815
  .map((entry) => {
2265
- if (entry === null) {
2266
- return null;
2267
- }
2268
1816
  return de_LinearRing(entry, context);
2269
1817
  });
2270
1818
  return retVal;
@@ -2273,119 +1821,70 @@ const de_LinearRingsList = (output, context) => {
2273
1821
  const retVal = (output || [])
2274
1822
  .filter((e) => e != null)
2275
1823
  .map((entry) => {
2276
- if (entry === null) {
2277
- return null;
2278
- }
2279
1824
  return de_LinearRings(entry, context);
2280
1825
  });
2281
1826
  return retVal;
2282
1827
  };
2283
1828
  const de_ListEarthObservationJobOutputConfig = (output, context) => {
2284
- return {
2285
- Arn: (0, smithy_client_1.expectString)(output.Arn),
2286
- CreationTime: output.CreationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.CreationTime)) : undefined,
2287
- DurationInSeconds: (0, smithy_client_1.expectInt32)(output.DurationInSeconds),
2288
- Name: (0, smithy_client_1.expectString)(output.Name),
2289
- OperationType: (0, smithy_client_1.expectString)(output.OperationType),
2290
- Status: (0, smithy_client_1.expectString)(output.Status),
2291
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
2292
- };
1829
+ return (0, smithy_client_1.take)(output, {
1830
+ Arn: smithy_client_1.expectString,
1831
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1832
+ DurationInSeconds: smithy_client_1.expectInt32,
1833
+ Name: smithy_client_1.expectString,
1834
+ OperationType: smithy_client_1.expectString,
1835
+ Status: smithy_client_1.expectString,
1836
+ Tags: smithy_client_1._json,
1837
+ });
2293
1838
  };
2294
1839
  const de_ListVectorEnrichmentJobOutputConfig = (output, context) => {
2295
- return {
2296
- Arn: (0, smithy_client_1.expectString)(output.Arn),
2297
- CreationTime: output.CreationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.CreationTime)) : undefined,
2298
- DurationInSeconds: (0, smithy_client_1.expectInt32)(output.DurationInSeconds),
2299
- Name: (0, smithy_client_1.expectString)(output.Name),
2300
- Status: (0, smithy_client_1.expectString)(output.Status),
2301
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
2302
- Type: (0, smithy_client_1.expectString)(output.Type),
2303
- };
2304
- };
2305
- const de_MapMatchingConfig = (output, context) => {
2306
- return {
2307
- IdAttributeName: (0, smithy_client_1.expectString)(output.IdAttributeName),
2308
- TimestampAttributeName: (0, smithy_client_1.expectString)(output.TimestampAttributeName),
2309
- XAttributeName: (0, smithy_client_1.expectString)(output.XAttributeName),
2310
- YAttributeName: (0, smithy_client_1.expectString)(output.YAttributeName),
2311
- };
1840
+ return (0, smithy_client_1.take)(output, {
1841
+ Arn: smithy_client_1.expectString,
1842
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1843
+ DurationInSeconds: smithy_client_1.expectInt32,
1844
+ Name: smithy_client_1.expectString,
1845
+ Status: smithy_client_1.expectString,
1846
+ Tags: smithy_client_1._json,
1847
+ Type: smithy_client_1.expectString,
1848
+ });
2312
1849
  };
2313
1850
  const de_MultiPolygonGeometryInput = (output, context) => {
2314
- return {
2315
- Coordinates: output.Coordinates != null ? de_LinearRingsList(output.Coordinates, context) : undefined,
2316
- };
2317
- };
2318
- const de_Operation = (output, context) => {
2319
- return {
2320
- Equation: (0, smithy_client_1.expectString)(output.Equation),
2321
- Name: (0, smithy_client_1.expectString)(output.Name),
2322
- OutputType: (0, smithy_client_1.expectString)(output.OutputType),
2323
- };
2324
- };
2325
- const de_OperationsListInput = (output, context) => {
2326
- const retVal = (output || [])
2327
- .filter((e) => e != null)
2328
- .map((entry) => {
2329
- if (entry === null) {
2330
- return null;
2331
- }
2332
- return de_Operation(entry, context);
1851
+ return (0, smithy_client_1.take)(output, {
1852
+ Coordinates: (_) => de_LinearRingsList(_, context),
2333
1853
  });
2334
- return retVal;
2335
- };
2336
- const de_OutputBand = (output, context) => {
2337
- return {
2338
- BandName: (0, smithy_client_1.expectString)(output.BandName),
2339
- OutputDataType: (0, smithy_client_1.expectString)(output.OutputDataType),
2340
- };
2341
- };
2342
- const de_OutputConfigInput = (output, context) => {
2343
- return {
2344
- S3Data: output.S3Data != null ? de_ExportS3DataInput(output.S3Data, context) : undefined,
2345
- };
2346
1854
  };
2347
1855
  const de_OutputResolutionResamplingInput = (output, context) => {
2348
- return {
2349
- UserDefined: output.UserDefined != null ? de_UserDefined(output.UserDefined, context) : undefined,
2350
- };
1856
+ return (0, smithy_client_1.take)(output, {
1857
+ UserDefined: (_) => de_UserDefined(_, context),
1858
+ });
2351
1859
  };
2352
1860
  const de_OutputResolutionStackInput = (output, context) => {
2353
- return {
2354
- Predefined: (0, smithy_client_1.expectString)(output.Predefined),
2355
- UserDefined: output.UserDefined != null ? de_UserDefined(output.UserDefined, context) : undefined,
2356
- };
2357
- };
2358
- const de_PlatformInput = (output, context) => {
2359
- return {
2360
- ComparisonOperator: (0, smithy_client_1.expectString)(output.ComparisonOperator),
2361
- Value: (0, smithy_client_1.expectString)(output.Value),
2362
- };
1861
+ return (0, smithy_client_1.take)(output, {
1862
+ Predefined: smithy_client_1.expectString,
1863
+ UserDefined: (_) => de_UserDefined(_, context),
1864
+ });
2363
1865
  };
2364
1866
  const de_PolygonGeometryInput = (output, context) => {
2365
- return {
2366
- Coordinates: output.Coordinates != null ? de_LinearRings(output.Coordinates, context) : undefined,
2367
- };
1867
+ return (0, smithy_client_1.take)(output, {
1868
+ Coordinates: (_) => de_LinearRings(_, context),
1869
+ });
2368
1870
  };
2369
1871
  const de_Position = (output, context) => {
2370
1872
  const retVal = (output || [])
2371
1873
  .filter((e) => e != null)
2372
1874
  .map((entry) => {
2373
- if (entry === null) {
2374
- return null;
2375
- }
2376
1875
  return (0, smithy_client_1.limitedParseDouble)(entry);
2377
1876
  });
2378
1877
  return retVal;
2379
1878
  };
2380
1879
  const de_Properties = (output, context) => {
2381
- return {
2382
- EoCloudCover: (0, smithy_client_1.limitedParseFloat32)(output.EoCloudCover),
2383
- LandsatCloudCoverLand: (0, smithy_client_1.limitedParseFloat32)(output.LandsatCloudCoverLand),
2384
- Platform: (0, smithy_client_1.expectString)(output.Platform),
2385
- ViewOffNadir: (0, smithy_client_1.limitedParseFloat32)(output.ViewOffNadir),
2386
- ViewSunAzimuth: (0, smithy_client_1.limitedParseFloat32)(output.ViewSunAzimuth),
2387
- ViewSunElevation: (0, smithy_client_1.limitedParseFloat32)(output.ViewSunElevation),
2388
- };
1880
+ return (0, smithy_client_1.take)(output, {
1881
+ EoCloudCover: smithy_client_1.limitedParseFloat32,
1882
+ LandsatCloudCoverLand: smithy_client_1.limitedParseFloat32,
1883
+ Platform: smithy_client_1.expectString,
1884
+ ViewOffNadir: smithy_client_1.limitedParseFloat32,
1885
+ ViewSunAzimuth: smithy_client_1.limitedParseFloat32,
1886
+ ViewSunElevation: smithy_client_1.limitedParseFloat32,
1887
+ });
2389
1888
  };
2390
1889
  const de_Property = (output, context) => {
2391
1890
  if (output.EoCloudCover != null) {
@@ -2400,7 +1899,7 @@ const de_Property = (output, context) => {
2400
1899
  }
2401
1900
  if (output.Platform != null) {
2402
1901
  return {
2403
- Platform: de_PlatformInput(output.Platform, context),
1902
+ Platform: (0, smithy_client_1._json)(output.Platform),
2404
1903
  };
2405
1904
  }
2406
1905
  if (output.ViewOffNadir != null) {
@@ -2421,219 +1920,94 @@ const de_Property = (output, context) => {
2421
1920
  return { $unknown: Object.entries(output)[0] };
2422
1921
  };
2423
1922
  const de_PropertyFilter = (output, context) => {
2424
- return {
2425
- Property: output.Property != null ? de_Property((0, smithy_client_1.expectUnion)(output.Property), context) : undefined,
2426
- };
1923
+ return (0, smithy_client_1.take)(output, {
1924
+ Property: (_) => de_Property((0, smithy_client_1.expectUnion)(_), context),
1925
+ });
2427
1926
  };
2428
1927
  const de_PropertyFilters = (output, context) => {
2429
- return {
2430
- LogicalOperator: (0, smithy_client_1.expectString)(output.LogicalOperator),
2431
- Properties: output.Properties != null ? de_PropertyFiltersList(output.Properties, context) : undefined,
2432
- };
1928
+ return (0, smithy_client_1.take)(output, {
1929
+ LogicalOperator: smithy_client_1.expectString,
1930
+ Properties: (_) => de_PropertyFiltersList(_, context),
1931
+ });
2433
1932
  };
2434
1933
  const de_PropertyFiltersList = (output, context) => {
2435
1934
  const retVal = (output || [])
2436
1935
  .filter((e) => e != null)
2437
1936
  .map((entry) => {
2438
- if (entry === null) {
2439
- return null;
2440
- }
2441
1937
  return de_PropertyFilter(entry, context);
2442
1938
  });
2443
1939
  return retVal;
2444
1940
  };
2445
1941
  const de_RasterDataCollectionMetadata = (output, context) => {
2446
- return {
2447
- Arn: (0, smithy_client_1.expectString)(output.Arn),
2448
- Description: (0, smithy_client_1.expectString)(output.Description),
2449
- DescriptionPageUrl: (0, smithy_client_1.expectString)(output.DescriptionPageUrl),
2450
- Name: (0, smithy_client_1.expectString)(output.Name),
2451
- SupportedFilters: output.SupportedFilters != null ? de_FilterList(output.SupportedFilters, context) : undefined,
2452
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
2453
- Type: (0, smithy_client_1.expectString)(output.Type),
2454
- };
1942
+ return (0, smithy_client_1.take)(output, {
1943
+ Arn: smithy_client_1.expectString,
1944
+ Description: smithy_client_1.expectString,
1945
+ DescriptionPageUrl: smithy_client_1.expectString,
1946
+ Name: smithy_client_1.expectString,
1947
+ SupportedFilters: (_) => de_FilterList(_, context),
1948
+ Tags: smithy_client_1._json,
1949
+ Type: smithy_client_1.expectString,
1950
+ });
2455
1951
  };
2456
1952
  const de_RasterDataCollectionQueryOutput = (output, context) => {
2457
- return {
2458
- AreaOfInterest: output.AreaOfInterest != null ? de_AreaOfInterest((0, smithy_client_1.expectUnion)(output.AreaOfInterest), context) : undefined,
2459
- PropertyFilters: output.PropertyFilters != null ? de_PropertyFilters(output.PropertyFilters, context) : undefined,
2460
- RasterDataCollectionArn: (0, smithy_client_1.expectString)(output.RasterDataCollectionArn),
2461
- RasterDataCollectionName: (0, smithy_client_1.expectString)(output.RasterDataCollectionName),
2462
- TimeRangeFilter: output.TimeRangeFilter != null ? de_TimeRangeFilterOutput(output.TimeRangeFilter, context) : undefined,
2463
- };
1953
+ return (0, smithy_client_1.take)(output, {
1954
+ AreaOfInterest: (_) => de_AreaOfInterest((0, smithy_client_1.expectUnion)(_), context),
1955
+ PropertyFilters: (_) => de_PropertyFilters(_, context),
1956
+ RasterDataCollectionArn: smithy_client_1.expectString,
1957
+ RasterDataCollectionName: smithy_client_1.expectString,
1958
+ TimeRangeFilter: (_) => de_TimeRangeFilterOutput(_, context),
1959
+ });
2464
1960
  };
2465
1961
  const de_ResamplingConfigInput = (output, context) => {
2466
- return {
2467
- AlgorithmName: (0, smithy_client_1.expectString)(output.AlgorithmName),
2468
- OutputResolution: output.OutputResolution != null
2469
- ? de_OutputResolutionResamplingInput(output.OutputResolution, context)
2470
- : undefined,
2471
- TargetBands: output.TargetBands != null ? de_StringListInput(output.TargetBands, context) : undefined,
2472
- };
2473
- };
2474
- const de_ReverseGeocodingConfig = (output, context) => {
2475
- return {
2476
- XAttributeName: (0, smithy_client_1.expectString)(output.XAttributeName),
2477
- YAttributeName: (0, smithy_client_1.expectString)(output.YAttributeName),
2478
- };
2479
- };
2480
- const de_S3DataInput = (output, context) => {
2481
- return {
2482
- KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
2483
- MetadataProvider: (0, smithy_client_1.expectString)(output.MetadataProvider),
2484
- S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
2485
- };
2486
- };
2487
- const de_StackConfigInput = (output, context) => {
2488
- return {
2489
- OutputResolution: output.OutputResolution != null ? de_OutputResolutionStackInput(output.OutputResolution, context) : undefined,
2490
- TargetBands: output.TargetBands != null ? de_StringListInput(output.TargetBands, context) : undefined,
2491
- };
2492
- };
2493
- const de_StringListInput = (output, context) => {
2494
- const retVal = (output || [])
2495
- .filter((e) => e != null)
2496
- .map((entry) => {
2497
- if (entry === null) {
2498
- return null;
2499
- }
2500
- return (0, smithy_client_1.expectString)(entry);
1962
+ return (0, smithy_client_1.take)(output, {
1963
+ AlgorithmName: smithy_client_1.expectString,
1964
+ OutputResolution: (_) => de_OutputResolutionResamplingInput(_, context),
1965
+ TargetBands: smithy_client_1._json,
2501
1966
  });
2502
- return retVal;
2503
- };
2504
- const de_Tags = (output, context) => {
2505
- return Object.entries(output).reduce((acc, [key, value]) => {
2506
- if (value === null) {
2507
- return acc;
2508
- }
2509
- acc[key] = (0, smithy_client_1.expectString)(value);
2510
- return acc;
2511
- }, {});
2512
- };
2513
- const de_TemporalStatisticsConfigInput = (output, context) => {
2514
- return {
2515
- GroupBy: (0, smithy_client_1.expectString)(output.GroupBy),
2516
- Statistics: output.Statistics != null ? de_TemporalStatisticsListInput(output.Statistics, context) : undefined,
2517
- TargetBands: output.TargetBands != null ? de_StringListInput(output.TargetBands, context) : undefined,
2518
- };
2519
1967
  };
2520
- const de_TemporalStatisticsListInput = (output, context) => {
2521
- const retVal = (output || [])
2522
- .filter((e) => e != null)
2523
- .map((entry) => {
2524
- if (entry === null) {
2525
- return null;
2526
- }
2527
- return (0, smithy_client_1.expectString)(entry);
1968
+ const de_StackConfigInput = (output, context) => {
1969
+ return (0, smithy_client_1.take)(output, {
1970
+ OutputResolution: (_) => de_OutputResolutionStackInput(_, context),
1971
+ TargetBands: smithy_client_1._json,
2528
1972
  });
2529
- return retVal;
2530
1973
  };
2531
1974
  const de_TimeRangeFilterOutput = (output, context) => {
2532
- return {
2533
- EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.EndTime)) : undefined,
2534
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.StartTime)) : undefined,
2535
- };
1975
+ return (0, smithy_client_1.take)(output, {
1976
+ EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1977
+ StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1978
+ });
2536
1979
  };
2537
1980
  const de_UserDefined = (output, context) => {
2538
- return {
2539
- Unit: (0, smithy_client_1.expectString)(output.Unit),
2540
- Value: (0, smithy_client_1.limitedParseFloat32)(output.Value),
2541
- };
2542
- };
2543
- const de_VectorEnrichmentJobConfig = (output, context) => {
2544
- if (output.MapMatchingConfig != null) {
2545
- return {
2546
- MapMatchingConfig: de_MapMatchingConfig(output.MapMatchingConfig, context),
2547
- };
2548
- }
2549
- if (output.ReverseGeocodingConfig != null) {
2550
- return {
2551
- ReverseGeocodingConfig: de_ReverseGeocodingConfig(output.ReverseGeocodingConfig, context),
2552
- };
2553
- }
2554
- return { $unknown: Object.entries(output)[0] };
2555
- };
2556
- const de_VectorEnrichmentJobDataSourceConfigInput = (output, context) => {
2557
- if (output.S3Data != null) {
2558
- return {
2559
- S3Data: de_VectorEnrichmentJobS3Data(output.S3Data, context),
2560
- };
2561
- }
2562
- return { $unknown: Object.entries(output)[0] };
2563
- };
2564
- const de_VectorEnrichmentJobErrorDetails = (output, context) => {
2565
- return {
2566
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
2567
- ErrorType: (0, smithy_client_1.expectString)(output.ErrorType),
2568
- };
2569
- };
2570
- const de_VectorEnrichmentJobExportErrorDetails = (output, context) => {
2571
- return {
2572
- Message: (0, smithy_client_1.expectString)(output.Message),
2573
- Type: (0, smithy_client_1.expectString)(output.Type),
2574
- };
2575
- };
2576
- const de_VectorEnrichmentJobInputConfig = (output, context) => {
2577
- return {
2578
- DataSourceConfig: output.DataSourceConfig != null
2579
- ? de_VectorEnrichmentJobDataSourceConfigInput((0, smithy_client_1.expectUnion)(output.DataSourceConfig), context)
2580
- : undefined,
2581
- DocumentType: (0, smithy_client_1.expectString)(output.DocumentType),
2582
- };
1981
+ return (0, smithy_client_1.take)(output, {
1982
+ Unit: smithy_client_1.expectString,
1983
+ Value: smithy_client_1.limitedParseFloat32,
1984
+ });
2583
1985
  };
2584
1986
  const de_VectorEnrichmentJobList = (output, context) => {
2585
1987
  const retVal = (output || [])
2586
1988
  .filter((e) => e != null)
2587
1989
  .map((entry) => {
2588
- if (entry === null) {
2589
- return null;
2590
- }
2591
1990
  return de_ListVectorEnrichmentJobOutputConfig(entry, context);
2592
1991
  });
2593
1992
  return retVal;
2594
1993
  };
2595
- const de_VectorEnrichmentJobS3Data = (output, context) => {
2596
- return {
2597
- KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
2598
- S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
2599
- };
2600
- };
2601
1994
  const de_ViewOffNadirInput = (output, context) => {
2602
- return {
2603
- LowerBound: (0, smithy_client_1.limitedParseFloat32)(output.LowerBound),
2604
- UpperBound: (0, smithy_client_1.limitedParseFloat32)(output.UpperBound),
2605
- };
1995
+ return (0, smithy_client_1.take)(output, {
1996
+ LowerBound: smithy_client_1.limitedParseFloat32,
1997
+ UpperBound: smithy_client_1.limitedParseFloat32,
1998
+ });
2606
1999
  };
2607
2000
  const de_ViewSunAzimuthInput = (output, context) => {
2608
- return {
2609
- LowerBound: (0, smithy_client_1.limitedParseFloat32)(output.LowerBound),
2610
- UpperBound: (0, smithy_client_1.limitedParseFloat32)(output.UpperBound),
2611
- };
2001
+ return (0, smithy_client_1.take)(output, {
2002
+ LowerBound: smithy_client_1.limitedParseFloat32,
2003
+ UpperBound: smithy_client_1.limitedParseFloat32,
2004
+ });
2612
2005
  };
2613
2006
  const de_ViewSunElevationInput = (output, context) => {
2614
- return {
2615
- LowerBound: (0, smithy_client_1.limitedParseFloat32)(output.LowerBound),
2616
- UpperBound: (0, smithy_client_1.limitedParseFloat32)(output.UpperBound),
2617
- };
2618
- };
2619
- const de_ZonalStatisticsConfigInput = (output, context) => {
2620
- return {
2621
- Statistics: output.Statistics != null ? de_ZonalStatisticsListInput(output.Statistics, context) : undefined,
2622
- TargetBands: output.TargetBands != null ? de_StringListInput(output.TargetBands, context) : undefined,
2623
- ZoneS3Path: (0, smithy_client_1.expectString)(output.ZoneS3Path),
2624
- ZoneS3PathKmsKeyId: (0, smithy_client_1.expectString)(output.ZoneS3PathKmsKeyId),
2625
- };
2626
- };
2627
- const de_ZonalStatisticsListInput = (output, context) => {
2628
- const retVal = (output || [])
2629
- .filter((e) => e != null)
2630
- .map((entry) => {
2631
- if (entry === null) {
2632
- return null;
2633
- }
2634
- return (0, smithy_client_1.expectString)(entry);
2007
+ return (0, smithy_client_1.take)(output, {
2008
+ LowerBound: smithy_client_1.limitedParseFloat32,
2009
+ UpperBound: smithy_client_1.limitedParseFloat32,
2635
2010
  });
2636
- return retVal;
2637
2011
  };
2638
2012
  const deserializeMetadata = (output) => ({
2639
2013
  httpStatusCode: output.statusCode,