@aws-sdk/client-sagemaker-geospatial 3.504.0 → 3.507.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.
@@ -272,7 +272,7 @@ export const se_UntagResourceCommand = async (input, context) => {
272
272
  };
273
273
  export const de_DeleteEarthObservationJobCommand = async (output, context) => {
274
274
  if (output.statusCode !== 200 && output.statusCode >= 300) {
275
- return de_DeleteEarthObservationJobCommandError(output, context);
275
+ return de_CommandError(output, context);
276
276
  }
277
277
  const contents = map({
278
278
  $metadata: deserializeMetadata(output),
@@ -280,43 +280,9 @@ export const de_DeleteEarthObservationJobCommand = async (output, context) => {
280
280
  await collectBody(output.body, context);
281
281
  return contents;
282
282
  };
283
- const de_DeleteEarthObservationJobCommandError = async (output, context) => {
284
- const parsedOutput = {
285
- ...output,
286
- body: await parseErrorBody(output.body, context),
287
- };
288
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
289
- switch (errorCode) {
290
- case "AccessDeniedException":
291
- case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
292
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
293
- case "ConflictException":
294
- case "com.amazonaws.sagemakergeospatial#ConflictException":
295
- throw await de_ConflictExceptionRes(parsedOutput, context);
296
- case "InternalServerException":
297
- case "com.amazonaws.sagemakergeospatial#InternalServerException":
298
- throw await de_InternalServerExceptionRes(parsedOutput, context);
299
- case "ResourceNotFoundException":
300
- case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
301
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
302
- case "ThrottlingException":
303
- case "com.amazonaws.sagemakergeospatial#ThrottlingException":
304
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
305
- case "ValidationException":
306
- case "com.amazonaws.sagemakergeospatial#ValidationException":
307
- throw await de_ValidationExceptionRes(parsedOutput, context);
308
- default:
309
- const parsedBody = parsedOutput.body;
310
- return throwDefaultError({
311
- output,
312
- parsedBody,
313
- errorCode,
314
- });
315
- }
316
- };
317
283
  export const de_DeleteVectorEnrichmentJobCommand = async (output, context) => {
318
284
  if (output.statusCode !== 200 && output.statusCode >= 300) {
319
- return de_DeleteVectorEnrichmentJobCommandError(output, context);
285
+ return de_CommandError(output, context);
320
286
  }
321
287
  const contents = map({
322
288
  $metadata: deserializeMetadata(output),
@@ -324,43 +290,9 @@ export const de_DeleteVectorEnrichmentJobCommand = async (output, context) => {
324
290
  await collectBody(output.body, context);
325
291
  return contents;
326
292
  };
327
- const de_DeleteVectorEnrichmentJobCommandError = async (output, context) => {
328
- const parsedOutput = {
329
- ...output,
330
- body: await parseErrorBody(output.body, context),
331
- };
332
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
333
- switch (errorCode) {
334
- case "AccessDeniedException":
335
- case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
336
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
337
- case "ConflictException":
338
- case "com.amazonaws.sagemakergeospatial#ConflictException":
339
- throw await de_ConflictExceptionRes(parsedOutput, context);
340
- case "InternalServerException":
341
- case "com.amazonaws.sagemakergeospatial#InternalServerException":
342
- throw await de_InternalServerExceptionRes(parsedOutput, context);
343
- case "ResourceNotFoundException":
344
- case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
345
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
346
- case "ThrottlingException":
347
- case "com.amazonaws.sagemakergeospatial#ThrottlingException":
348
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
349
- case "ValidationException":
350
- case "com.amazonaws.sagemakergeospatial#ValidationException":
351
- throw await de_ValidationExceptionRes(parsedOutput, context);
352
- default:
353
- const parsedBody = parsedOutput.body;
354
- return throwDefaultError({
355
- output,
356
- parsedBody,
357
- errorCode,
358
- });
359
- }
360
- };
361
293
  export const de_ExportEarthObservationJobCommand = async (output, context) => {
362
294
  if (output.statusCode !== 200 && output.statusCode >= 300) {
363
- return de_ExportEarthObservationJobCommandError(output, context);
295
+ return de_CommandError(output, context);
364
296
  }
365
297
  const contents = map({
366
298
  $metadata: deserializeMetadata(output),
@@ -377,46 +309,9 @@ export const de_ExportEarthObservationJobCommand = async (output, context) => {
377
309
  Object.assign(contents, doc);
378
310
  return contents;
379
311
  };
380
- const de_ExportEarthObservationJobCommandError = async (output, context) => {
381
- const parsedOutput = {
382
- ...output,
383
- body: await parseErrorBody(output.body, context),
384
- };
385
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
386
- switch (errorCode) {
387
- case "AccessDeniedException":
388
- case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
389
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
390
- case "ConflictException":
391
- case "com.amazonaws.sagemakergeospatial#ConflictException":
392
- throw await de_ConflictExceptionRes(parsedOutput, context);
393
- case "InternalServerException":
394
- case "com.amazonaws.sagemakergeospatial#InternalServerException":
395
- throw await de_InternalServerExceptionRes(parsedOutput, context);
396
- case "ResourceNotFoundException":
397
- case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
398
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
399
- case "ServiceQuotaExceededException":
400
- case "com.amazonaws.sagemakergeospatial#ServiceQuotaExceededException":
401
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
402
- case "ThrottlingException":
403
- case "com.amazonaws.sagemakergeospatial#ThrottlingException":
404
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
405
- case "ValidationException":
406
- case "com.amazonaws.sagemakergeospatial#ValidationException":
407
- throw await de_ValidationExceptionRes(parsedOutput, context);
408
- default:
409
- const parsedBody = parsedOutput.body;
410
- return throwDefaultError({
411
- output,
412
- parsedBody,
413
- errorCode,
414
- });
415
- }
416
- };
417
312
  export const de_ExportVectorEnrichmentJobCommand = async (output, context) => {
418
313
  if (output.statusCode !== 200 && output.statusCode >= 300) {
419
- return de_ExportVectorEnrichmentJobCommandError(output, context);
314
+ return de_CommandError(output, context);
420
315
  }
421
316
  const contents = map({
422
317
  $metadata: deserializeMetadata(output),
@@ -432,46 +327,9 @@ export const de_ExportVectorEnrichmentJobCommand = async (output, context) => {
432
327
  Object.assign(contents, doc);
433
328
  return contents;
434
329
  };
435
- const de_ExportVectorEnrichmentJobCommandError = async (output, context) => {
436
- const parsedOutput = {
437
- ...output,
438
- body: await parseErrorBody(output.body, context),
439
- };
440
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
441
- switch (errorCode) {
442
- case "AccessDeniedException":
443
- case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
444
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
445
- case "ConflictException":
446
- case "com.amazonaws.sagemakergeospatial#ConflictException":
447
- throw await de_ConflictExceptionRes(parsedOutput, context);
448
- case "InternalServerException":
449
- case "com.amazonaws.sagemakergeospatial#InternalServerException":
450
- throw await de_InternalServerExceptionRes(parsedOutput, context);
451
- case "ResourceNotFoundException":
452
- case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
453
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
454
- case "ServiceQuotaExceededException":
455
- case "com.amazonaws.sagemakergeospatial#ServiceQuotaExceededException":
456
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
457
- case "ThrottlingException":
458
- case "com.amazonaws.sagemakergeospatial#ThrottlingException":
459
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
460
- case "ValidationException":
461
- case "com.amazonaws.sagemakergeospatial#ValidationException":
462
- throw await de_ValidationExceptionRes(parsedOutput, context);
463
- default:
464
- const parsedBody = parsedOutput.body;
465
- return throwDefaultError({
466
- output,
467
- parsedBody,
468
- errorCode,
469
- });
470
- }
471
- };
472
330
  export const de_GetEarthObservationJobCommand = async (output, context) => {
473
331
  if (output.statusCode !== 200 && output.statusCode >= 300) {
474
- return de_GetEarthObservationJobCommandError(output, context);
332
+ return de_CommandError(output, context);
475
333
  }
476
334
  const contents = map({
477
335
  $metadata: deserializeMetadata(output),
@@ -496,40 +354,9 @@ export const de_GetEarthObservationJobCommand = async (output, context) => {
496
354
  Object.assign(contents, doc);
497
355
  return contents;
498
356
  };
499
- const de_GetEarthObservationJobCommandError = async (output, context) => {
500
- const parsedOutput = {
501
- ...output,
502
- body: await parseErrorBody(output.body, context),
503
- };
504
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
505
- switch (errorCode) {
506
- case "AccessDeniedException":
507
- case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
508
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
509
- case "InternalServerException":
510
- case "com.amazonaws.sagemakergeospatial#InternalServerException":
511
- throw await de_InternalServerExceptionRes(parsedOutput, context);
512
- case "ResourceNotFoundException":
513
- case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
514
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
515
- case "ThrottlingException":
516
- case "com.amazonaws.sagemakergeospatial#ThrottlingException":
517
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
518
- case "ValidationException":
519
- case "com.amazonaws.sagemakergeospatial#ValidationException":
520
- throw await de_ValidationExceptionRes(parsedOutput, context);
521
- default:
522
- const parsedBody = parsedOutput.body;
523
- return throwDefaultError({
524
- output,
525
- parsedBody,
526
- errorCode,
527
- });
528
- }
529
- };
530
357
  export const de_GetRasterDataCollectionCommand = async (output, context) => {
531
358
  if (output.statusCode !== 200 && output.statusCode >= 300) {
532
- return de_GetRasterDataCollectionCommandError(output, context);
359
+ return de_CommandError(output, context);
533
360
  }
534
361
  const contents = map({
535
362
  $metadata: deserializeMetadata(output),
@@ -548,40 +375,9 @@ export const de_GetRasterDataCollectionCommand = async (output, context) => {
548
375
  Object.assign(contents, doc);
549
376
  return contents;
550
377
  };
551
- const de_GetRasterDataCollectionCommandError = async (output, context) => {
552
- const parsedOutput = {
553
- ...output,
554
- body: await parseErrorBody(output.body, context),
555
- };
556
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
557
- switch (errorCode) {
558
- case "AccessDeniedException":
559
- case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
560
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
561
- case "InternalServerException":
562
- case "com.amazonaws.sagemakergeospatial#InternalServerException":
563
- throw await de_InternalServerExceptionRes(parsedOutput, context);
564
- case "ResourceNotFoundException":
565
- case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
566
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
567
- case "ThrottlingException":
568
- case "com.amazonaws.sagemakergeospatial#ThrottlingException":
569
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
570
- case "ValidationException":
571
- case "com.amazonaws.sagemakergeospatial#ValidationException":
572
- throw await de_ValidationExceptionRes(parsedOutput, context);
573
- default:
574
- const parsedBody = parsedOutput.body;
575
- return throwDefaultError({
576
- output,
577
- parsedBody,
578
- errorCode,
579
- });
580
- }
581
- };
582
378
  export const de_GetTileCommand = async (output, context) => {
583
379
  if (output.statusCode !== 200 && output.statusCode >= 300) {
584
- return de_GetTileCommandError(output, context);
380
+ return de_CommandError(output, context);
585
381
  }
586
382
  const contents = map({
587
383
  $metadata: deserializeMetadata(output),
@@ -591,40 +387,9 @@ export const de_GetTileCommand = async (output, context) => {
591
387
  contents.BinaryFile = data;
592
388
  return contents;
593
389
  };
594
- const de_GetTileCommandError = async (output, context) => {
595
- const parsedOutput = {
596
- ...output,
597
- body: await parseErrorBody(output.body, context),
598
- };
599
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
600
- switch (errorCode) {
601
- case "AccessDeniedException":
602
- case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
603
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
604
- case "InternalServerException":
605
- case "com.amazonaws.sagemakergeospatial#InternalServerException":
606
- throw await de_InternalServerExceptionRes(parsedOutput, context);
607
- case "ResourceNotFoundException":
608
- case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
609
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
610
- case "ThrottlingException":
611
- case "com.amazonaws.sagemakergeospatial#ThrottlingException":
612
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
613
- case "ValidationException":
614
- case "com.amazonaws.sagemakergeospatial#ValidationException":
615
- throw await de_ValidationExceptionRes(parsedOutput, context);
616
- default:
617
- const parsedBody = parsedOutput.body;
618
- return throwDefaultError({
619
- output,
620
- parsedBody,
621
- errorCode,
622
- });
623
- }
624
- };
625
390
  export const de_GetVectorEnrichmentJobCommand = async (output, context) => {
626
391
  if (output.statusCode !== 200 && output.statusCode >= 300) {
627
- return de_GetVectorEnrichmentJobCommandError(output, context);
392
+ return de_CommandError(output, context);
628
393
  }
629
394
  const contents = map({
630
395
  $metadata: deserializeMetadata(output),
@@ -649,40 +414,9 @@ export const de_GetVectorEnrichmentJobCommand = async (output, context) => {
649
414
  Object.assign(contents, doc);
650
415
  return contents;
651
416
  };
652
- const de_GetVectorEnrichmentJobCommandError = async (output, context) => {
653
- const parsedOutput = {
654
- ...output,
655
- body: await parseErrorBody(output.body, context),
656
- };
657
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
658
- switch (errorCode) {
659
- case "AccessDeniedException":
660
- case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
661
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
662
- case "InternalServerException":
663
- case "com.amazonaws.sagemakergeospatial#InternalServerException":
664
- throw await de_InternalServerExceptionRes(parsedOutput, context);
665
- case "ResourceNotFoundException":
666
- case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
667
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
668
- case "ThrottlingException":
669
- case "com.amazonaws.sagemakergeospatial#ThrottlingException":
670
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
671
- case "ValidationException":
672
- case "com.amazonaws.sagemakergeospatial#ValidationException":
673
- throw await de_ValidationExceptionRes(parsedOutput, context);
674
- default:
675
- const parsedBody = parsedOutput.body;
676
- return throwDefaultError({
677
- output,
678
- parsedBody,
679
- errorCode,
680
- });
681
- }
682
- };
683
417
  export const de_ListEarthObservationJobsCommand = async (output, context) => {
684
418
  if (output.statusCode !== 200 && output.statusCode >= 300) {
685
- return de_ListEarthObservationJobsCommandError(output, context);
419
+ return de_CommandError(output, context);
686
420
  }
687
421
  const contents = map({
688
422
  $metadata: deserializeMetadata(output),
@@ -695,131 +429,38 @@ export const de_ListEarthObservationJobsCommand = async (output, context) => {
695
429
  Object.assign(contents, doc);
696
430
  return contents;
697
431
  };
698
- const de_ListEarthObservationJobsCommandError = async (output, context) => {
699
- const parsedOutput = {
700
- ...output,
701
- body: await parseErrorBody(output.body, context),
702
- };
703
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
704
- switch (errorCode) {
705
- case "AccessDeniedException":
706
- case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
707
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
708
- case "InternalServerException":
709
- case "com.amazonaws.sagemakergeospatial#InternalServerException":
710
- throw await de_InternalServerExceptionRes(parsedOutput, context);
711
- case "ResourceNotFoundException":
712
- case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
713
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
714
- case "ThrottlingException":
715
- case "com.amazonaws.sagemakergeospatial#ThrottlingException":
716
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
717
- case "ValidationException":
718
- case "com.amazonaws.sagemakergeospatial#ValidationException":
719
- throw await de_ValidationExceptionRes(parsedOutput, context);
720
- default:
721
- const parsedBody = parsedOutput.body;
722
- return throwDefaultError({
723
- output,
724
- parsedBody,
725
- errorCode,
726
- });
727
- }
728
- };
729
432
  export const de_ListRasterDataCollectionsCommand = async (output, context) => {
730
433
  if (output.statusCode !== 200 && output.statusCode >= 300) {
731
- return de_ListRasterDataCollectionsCommandError(output, context);
732
- }
733
- const contents = map({
734
- $metadata: deserializeMetadata(output),
735
- });
736
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
737
- const doc = take(data, {
738
- NextToken: __expectString,
739
- RasterDataCollectionSummaries: (_) => de_DataCollectionsList(_, context),
740
- });
741
- Object.assign(contents, doc);
742
- return contents;
743
- };
744
- const de_ListRasterDataCollectionsCommandError = async (output, context) => {
745
- const parsedOutput = {
746
- ...output,
747
- body: await parseErrorBody(output.body, context),
748
- };
749
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
750
- switch (errorCode) {
751
- case "AccessDeniedException":
752
- case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
753
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
754
- case "InternalServerException":
755
- case "com.amazonaws.sagemakergeospatial#InternalServerException":
756
- throw await de_InternalServerExceptionRes(parsedOutput, context);
757
- case "ResourceNotFoundException":
758
- case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
759
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
760
- case "ThrottlingException":
761
- case "com.amazonaws.sagemakergeospatial#ThrottlingException":
762
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
763
- case "ValidationException":
764
- case "com.amazonaws.sagemakergeospatial#ValidationException":
765
- throw await de_ValidationExceptionRes(parsedOutput, context);
766
- default:
767
- const parsedBody = parsedOutput.body;
768
- return throwDefaultError({
769
- output,
770
- parsedBody,
771
- errorCode,
772
- });
773
- }
774
- };
775
- export const de_ListTagsForResourceCommand = async (output, context) => {
776
- if (output.statusCode !== 200 && output.statusCode >= 300) {
777
- return de_ListTagsForResourceCommandError(output, context);
434
+ return de_CommandError(output, context);
778
435
  }
779
- const contents = map({
780
- $metadata: deserializeMetadata(output),
781
- });
782
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
783
- const doc = take(data, {
784
- Tags: _json,
785
- });
786
- Object.assign(contents, doc);
787
- return contents;
788
- };
789
- const de_ListTagsForResourceCommandError = async (output, context) => {
790
- const parsedOutput = {
791
- ...output,
792
- body: await parseErrorBody(output.body, context),
793
- };
794
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
795
- switch (errorCode) {
796
- case "AccessDeniedException":
797
- case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
798
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
799
- case "InternalServerException":
800
- case "com.amazonaws.sagemakergeospatial#InternalServerException":
801
- throw await de_InternalServerExceptionRes(parsedOutput, context);
802
- case "ResourceNotFoundException":
803
- case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
804
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
805
- case "ThrottlingException":
806
- case "com.amazonaws.sagemakergeospatial#ThrottlingException":
807
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
808
- case "ValidationException":
809
- case "com.amazonaws.sagemakergeospatial#ValidationException":
810
- throw await de_ValidationExceptionRes(parsedOutput, context);
811
- default:
812
- const parsedBody = parsedOutput.body;
813
- return throwDefaultError({
814
- output,
815
- parsedBody,
816
- errorCode,
817
- });
436
+ const contents = map({
437
+ $metadata: deserializeMetadata(output),
438
+ });
439
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
440
+ const doc = take(data, {
441
+ NextToken: __expectString,
442
+ RasterDataCollectionSummaries: (_) => de_DataCollectionsList(_, context),
443
+ });
444
+ Object.assign(contents, doc);
445
+ return contents;
446
+ };
447
+ export const de_ListTagsForResourceCommand = async (output, context) => {
448
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
449
+ return de_CommandError(output, context);
818
450
  }
451
+ const contents = map({
452
+ $metadata: deserializeMetadata(output),
453
+ });
454
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
455
+ const doc = take(data, {
456
+ Tags: _json,
457
+ });
458
+ Object.assign(contents, doc);
459
+ return contents;
819
460
  };
820
461
  export const de_ListVectorEnrichmentJobsCommand = async (output, context) => {
821
462
  if (output.statusCode !== 200 && output.statusCode >= 300) {
822
- return de_ListVectorEnrichmentJobsCommandError(output, context);
463
+ return de_CommandError(output, context);
823
464
  }
824
465
  const contents = map({
825
466
  $metadata: deserializeMetadata(output),
@@ -832,40 +473,9 @@ export const de_ListVectorEnrichmentJobsCommand = async (output, context) => {
832
473
  Object.assign(contents, doc);
833
474
  return contents;
834
475
  };
835
- const de_ListVectorEnrichmentJobsCommandError = async (output, context) => {
836
- const parsedOutput = {
837
- ...output,
838
- body: await parseErrorBody(output.body, context),
839
- };
840
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
841
- switch (errorCode) {
842
- case "AccessDeniedException":
843
- case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
844
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
845
- case "InternalServerException":
846
- case "com.amazonaws.sagemakergeospatial#InternalServerException":
847
- throw await de_InternalServerExceptionRes(parsedOutput, context);
848
- case "ResourceNotFoundException":
849
- case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
850
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
851
- case "ThrottlingException":
852
- case "com.amazonaws.sagemakergeospatial#ThrottlingException":
853
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
854
- case "ValidationException":
855
- case "com.amazonaws.sagemakergeospatial#ValidationException":
856
- throw await de_ValidationExceptionRes(parsedOutput, context);
857
- default:
858
- const parsedBody = parsedOutput.body;
859
- return throwDefaultError({
860
- output,
861
- parsedBody,
862
- errorCode,
863
- });
864
- }
865
- };
866
476
  export const de_SearchRasterDataCollectionCommand = async (output, context) => {
867
477
  if (output.statusCode !== 200 && output.statusCode >= 300) {
868
- return de_SearchRasterDataCollectionCommandError(output, context);
478
+ return de_CommandError(output, context);
869
479
  }
870
480
  const contents = map({
871
481
  $metadata: deserializeMetadata(output),
@@ -879,40 +489,9 @@ export const de_SearchRasterDataCollectionCommand = async (output, context) => {
879
489
  Object.assign(contents, doc);
880
490
  return contents;
881
491
  };
882
- const de_SearchRasterDataCollectionCommandError = async (output, context) => {
883
- const parsedOutput = {
884
- ...output,
885
- body: await parseErrorBody(output.body, context),
886
- };
887
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
888
- switch (errorCode) {
889
- case "AccessDeniedException":
890
- case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
891
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
892
- case "InternalServerException":
893
- case "com.amazonaws.sagemakergeospatial#InternalServerException":
894
- throw await de_InternalServerExceptionRes(parsedOutput, context);
895
- case "ResourceNotFoundException":
896
- case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
897
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
898
- case "ThrottlingException":
899
- case "com.amazonaws.sagemakergeospatial#ThrottlingException":
900
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
901
- case "ValidationException":
902
- case "com.amazonaws.sagemakergeospatial#ValidationException":
903
- throw await de_ValidationExceptionRes(parsedOutput, context);
904
- default:
905
- const parsedBody = parsedOutput.body;
906
- return throwDefaultError({
907
- output,
908
- parsedBody,
909
- errorCode,
910
- });
911
- }
912
- };
913
492
  export const de_StartEarthObservationJobCommand = async (output, context) => {
914
493
  if (output.statusCode !== 200 && output.statusCode >= 300) {
915
- return de_StartEarthObservationJobCommandError(output, context);
494
+ return de_CommandError(output, context);
916
495
  }
917
496
  const contents = map({
918
497
  $metadata: deserializeMetadata(output),
@@ -933,46 +512,9 @@ export const de_StartEarthObservationJobCommand = async (output, context) => {
933
512
  Object.assign(contents, doc);
934
513
  return contents;
935
514
  };
936
- const de_StartEarthObservationJobCommandError = async (output, context) => {
937
- const parsedOutput = {
938
- ...output,
939
- body: await parseErrorBody(output.body, context),
940
- };
941
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
942
- switch (errorCode) {
943
- case "AccessDeniedException":
944
- case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
945
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
946
- case "ConflictException":
947
- case "com.amazonaws.sagemakergeospatial#ConflictException":
948
- throw await de_ConflictExceptionRes(parsedOutput, context);
949
- case "InternalServerException":
950
- case "com.amazonaws.sagemakergeospatial#InternalServerException":
951
- throw await de_InternalServerExceptionRes(parsedOutput, context);
952
- case "ResourceNotFoundException":
953
- case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
954
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
955
- case "ServiceQuotaExceededException":
956
- case "com.amazonaws.sagemakergeospatial#ServiceQuotaExceededException":
957
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
958
- case "ThrottlingException":
959
- case "com.amazonaws.sagemakergeospatial#ThrottlingException":
960
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
961
- case "ValidationException":
962
- case "com.amazonaws.sagemakergeospatial#ValidationException":
963
- throw await de_ValidationExceptionRes(parsedOutput, context);
964
- default:
965
- const parsedBody = parsedOutput.body;
966
- return throwDefaultError({
967
- output,
968
- parsedBody,
969
- errorCode,
970
- });
971
- }
972
- };
973
515
  export const de_StartVectorEnrichmentJobCommand = async (output, context) => {
974
516
  if (output.statusCode !== 200 && output.statusCode >= 300) {
975
- return de_StartVectorEnrichmentJobCommandError(output, context);
517
+ return de_CommandError(output, context);
976
518
  }
977
519
  const contents = map({
978
520
  $metadata: deserializeMetadata(output),
@@ -994,46 +536,9 @@ export const de_StartVectorEnrichmentJobCommand = async (output, context) => {
994
536
  Object.assign(contents, doc);
995
537
  return contents;
996
538
  };
997
- const de_StartVectorEnrichmentJobCommandError = async (output, context) => {
998
- const parsedOutput = {
999
- ...output,
1000
- body: await parseErrorBody(output.body, context),
1001
- };
1002
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1003
- switch (errorCode) {
1004
- case "AccessDeniedException":
1005
- case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
1006
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1007
- case "ConflictException":
1008
- case "com.amazonaws.sagemakergeospatial#ConflictException":
1009
- throw await de_ConflictExceptionRes(parsedOutput, context);
1010
- case "InternalServerException":
1011
- case "com.amazonaws.sagemakergeospatial#InternalServerException":
1012
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1013
- case "ResourceNotFoundException":
1014
- case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
1015
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1016
- case "ServiceQuotaExceededException":
1017
- case "com.amazonaws.sagemakergeospatial#ServiceQuotaExceededException":
1018
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1019
- case "ThrottlingException":
1020
- case "com.amazonaws.sagemakergeospatial#ThrottlingException":
1021
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1022
- case "ValidationException":
1023
- case "com.amazonaws.sagemakergeospatial#ValidationException":
1024
- throw await de_ValidationExceptionRes(parsedOutput, context);
1025
- default:
1026
- const parsedBody = parsedOutput.body;
1027
- return throwDefaultError({
1028
- output,
1029
- parsedBody,
1030
- errorCode,
1031
- });
1032
- }
1033
- };
1034
539
  export const de_StopEarthObservationJobCommand = async (output, context) => {
1035
540
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1036
- return de_StopEarthObservationJobCommandError(output, context);
541
+ return de_CommandError(output, context);
1037
542
  }
1038
543
  const contents = map({
1039
544
  $metadata: deserializeMetadata(output),
@@ -1041,43 +546,9 @@ export const de_StopEarthObservationJobCommand = async (output, context) => {
1041
546
  await collectBody(output.body, context);
1042
547
  return contents;
1043
548
  };
1044
- const de_StopEarthObservationJobCommandError = async (output, context) => {
1045
- const parsedOutput = {
1046
- ...output,
1047
- body: await parseErrorBody(output.body, context),
1048
- };
1049
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1050
- switch (errorCode) {
1051
- case "AccessDeniedException":
1052
- case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
1053
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1054
- case "ConflictException":
1055
- case "com.amazonaws.sagemakergeospatial#ConflictException":
1056
- throw await de_ConflictExceptionRes(parsedOutput, context);
1057
- case "InternalServerException":
1058
- case "com.amazonaws.sagemakergeospatial#InternalServerException":
1059
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1060
- case "ResourceNotFoundException":
1061
- case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
1062
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1063
- case "ThrottlingException":
1064
- case "com.amazonaws.sagemakergeospatial#ThrottlingException":
1065
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1066
- case "ValidationException":
1067
- case "com.amazonaws.sagemakergeospatial#ValidationException":
1068
- throw await de_ValidationExceptionRes(parsedOutput, context);
1069
- default:
1070
- const parsedBody = parsedOutput.body;
1071
- return throwDefaultError({
1072
- output,
1073
- parsedBody,
1074
- errorCode,
1075
- });
1076
- }
1077
- };
1078
549
  export const de_StopVectorEnrichmentJobCommand = async (output, context) => {
1079
550
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1080
- return de_StopVectorEnrichmentJobCommandError(output, context);
551
+ return de_CommandError(output, context);
1081
552
  }
1082
553
  const contents = map({
1083
554
  $metadata: deserializeMetadata(output),
@@ -1085,43 +556,9 @@ export const de_StopVectorEnrichmentJobCommand = async (output, context) => {
1085
556
  await collectBody(output.body, context);
1086
557
  return contents;
1087
558
  };
1088
- const de_StopVectorEnrichmentJobCommandError = async (output, context) => {
1089
- const parsedOutput = {
1090
- ...output,
1091
- body: await parseErrorBody(output.body, context),
1092
- };
1093
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1094
- switch (errorCode) {
1095
- case "AccessDeniedException":
1096
- case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
1097
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1098
- case "ConflictException":
1099
- case "com.amazonaws.sagemakergeospatial#ConflictException":
1100
- throw await de_ConflictExceptionRes(parsedOutput, context);
1101
- case "InternalServerException":
1102
- case "com.amazonaws.sagemakergeospatial#InternalServerException":
1103
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1104
- case "ResourceNotFoundException":
1105
- case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
1106
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1107
- case "ThrottlingException":
1108
- case "com.amazonaws.sagemakergeospatial#ThrottlingException":
1109
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1110
- case "ValidationException":
1111
- case "com.amazonaws.sagemakergeospatial#ValidationException":
1112
- throw await de_ValidationExceptionRes(parsedOutput, context);
1113
- default:
1114
- const parsedBody = parsedOutput.body;
1115
- return throwDefaultError({
1116
- output,
1117
- parsedBody,
1118
- errorCode,
1119
- });
1120
- }
1121
- };
1122
559
  export const de_TagResourceCommand = async (output, context) => {
1123
560
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1124
- return de_TagResourceCommandError(output, context);
561
+ return de_CommandError(output, context);
1125
562
  }
1126
563
  const contents = map({
1127
564
  $metadata: deserializeMetadata(output),
@@ -1129,40 +566,9 @@ export const de_TagResourceCommand = async (output, context) => {
1129
566
  await collectBody(output.body, context);
1130
567
  return contents;
1131
568
  };
1132
- const de_TagResourceCommandError = async (output, context) => {
1133
- const parsedOutput = {
1134
- ...output,
1135
- body: await parseErrorBody(output.body, context),
1136
- };
1137
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1138
- switch (errorCode) {
1139
- case "AccessDeniedException":
1140
- case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
1141
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1142
- case "InternalServerException":
1143
- case "com.amazonaws.sagemakergeospatial#InternalServerException":
1144
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1145
- case "ResourceNotFoundException":
1146
- case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
1147
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1148
- case "ThrottlingException":
1149
- case "com.amazonaws.sagemakergeospatial#ThrottlingException":
1150
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1151
- case "ValidationException":
1152
- case "com.amazonaws.sagemakergeospatial#ValidationException":
1153
- throw await de_ValidationExceptionRes(parsedOutput, context);
1154
- default:
1155
- const parsedBody = parsedOutput.body;
1156
- return throwDefaultError({
1157
- output,
1158
- parsedBody,
1159
- errorCode,
1160
- });
1161
- }
1162
- };
1163
569
  export const de_UntagResourceCommand = async (output, context) => {
1164
570
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1165
- return de_UntagResourceCommandError(output, context);
571
+ return de_CommandError(output, context);
1166
572
  }
1167
573
  const contents = map({
1168
574
  $metadata: deserializeMetadata(output),
@@ -1170,7 +576,7 @@ export const de_UntagResourceCommand = async (output, context) => {
1170
576
  await collectBody(output.body, context);
1171
577
  return contents;
1172
578
  };
1173
- const de_UntagResourceCommandError = async (output, context) => {
579
+ const de_CommandError = async (output, context) => {
1174
580
  const parsedOutput = {
1175
581
  ...output,
1176
582
  body: await parseErrorBody(output.body, context),
@@ -1180,6 +586,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1180
586
  case "AccessDeniedException":
1181
587
  case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
1182
588
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
589
+ case "ConflictException":
590
+ case "com.amazonaws.sagemakergeospatial#ConflictException":
591
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1183
592
  case "InternalServerException":
1184
593
  case "com.amazonaws.sagemakergeospatial#InternalServerException":
1185
594
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -1192,6 +601,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1192
601
  case "ValidationException":
1193
602
  case "com.amazonaws.sagemakergeospatial#ValidationException":
1194
603
  throw await de_ValidationExceptionRes(parsedOutput, context);
604
+ case "ServiceQuotaExceededException":
605
+ case "com.amazonaws.sagemakergeospatial#ServiceQuotaExceededException":
606
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1195
607
  default:
1196
608
  const parsedBody = parsedOutput.body;
1197
609
  return throwDefaultError({