@aws-sdk/client-bcm-data-exports 3.503.1 → 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.
- package/dist-cjs/index.js +20 -316
- package/dist-es/protocols/Aws_json1_1.js +19 -315
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -386,7 +386,7 @@ var se_UpdateExportCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
386
386
|
}, "se_UpdateExportCommand");
|
|
387
387
|
var de_CreateExportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
388
388
|
if (output.statusCode >= 300) {
|
|
389
|
-
return
|
|
389
|
+
return de_CommandError(output, context);
|
|
390
390
|
}
|
|
391
391
|
const data = await parseBody(output.body, context);
|
|
392
392
|
let contents = {};
|
|
@@ -397,37 +397,9 @@ var de_CreateExportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
397
397
|
};
|
|
398
398
|
return response;
|
|
399
399
|
}, "de_CreateExportCommand");
|
|
400
|
-
var de_CreateExportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
401
|
-
const parsedOutput = {
|
|
402
|
-
...output,
|
|
403
|
-
body: await parseErrorBody(output.body, context)
|
|
404
|
-
};
|
|
405
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
406
|
-
switch (errorCode) {
|
|
407
|
-
case "InternalServerException":
|
|
408
|
-
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
409
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
410
|
-
case "ServiceQuotaExceededException":
|
|
411
|
-
case "com.amazonaws.bcmdataexports#ServiceQuotaExceededException":
|
|
412
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
413
|
-
case "ThrottlingException":
|
|
414
|
-
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
415
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
416
|
-
case "ValidationException":
|
|
417
|
-
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
418
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
419
|
-
default:
|
|
420
|
-
const parsedBody = parsedOutput.body;
|
|
421
|
-
return throwDefaultError({
|
|
422
|
-
output,
|
|
423
|
-
parsedBody,
|
|
424
|
-
errorCode
|
|
425
|
-
});
|
|
426
|
-
}
|
|
427
|
-
}, "de_CreateExportCommandError");
|
|
428
400
|
var de_DeleteExportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
429
401
|
if (output.statusCode >= 300) {
|
|
430
|
-
return
|
|
402
|
+
return de_CommandError(output, context);
|
|
431
403
|
}
|
|
432
404
|
const data = await parseBody(output.body, context);
|
|
433
405
|
let contents = {};
|
|
@@ -438,37 +410,9 @@ var de_DeleteExportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
438
410
|
};
|
|
439
411
|
return response;
|
|
440
412
|
}, "de_DeleteExportCommand");
|
|
441
|
-
var de_DeleteExportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
442
|
-
const parsedOutput = {
|
|
443
|
-
...output,
|
|
444
|
-
body: await parseErrorBody(output.body, context)
|
|
445
|
-
};
|
|
446
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
447
|
-
switch (errorCode) {
|
|
448
|
-
case "InternalServerException":
|
|
449
|
-
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
450
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
451
|
-
case "ResourceNotFoundException":
|
|
452
|
-
case "com.amazonaws.bcmdataexports#ResourceNotFoundException":
|
|
453
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
454
|
-
case "ThrottlingException":
|
|
455
|
-
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
456
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
457
|
-
case "ValidationException":
|
|
458
|
-
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
459
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
460
|
-
default:
|
|
461
|
-
const parsedBody = parsedOutput.body;
|
|
462
|
-
return throwDefaultError({
|
|
463
|
-
output,
|
|
464
|
-
parsedBody,
|
|
465
|
-
errorCode
|
|
466
|
-
});
|
|
467
|
-
}
|
|
468
|
-
}, "de_DeleteExportCommandError");
|
|
469
413
|
var de_GetExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
470
414
|
if (output.statusCode >= 300) {
|
|
471
|
-
return
|
|
415
|
+
return de_CommandError(output, context);
|
|
472
416
|
}
|
|
473
417
|
const data = await parseBody(output.body, context);
|
|
474
418
|
let contents = {};
|
|
@@ -479,37 +423,9 @@ var de_GetExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
479
423
|
};
|
|
480
424
|
return response;
|
|
481
425
|
}, "de_GetExecutionCommand");
|
|
482
|
-
var de_GetExecutionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
483
|
-
const parsedOutput = {
|
|
484
|
-
...output,
|
|
485
|
-
body: await parseErrorBody(output.body, context)
|
|
486
|
-
};
|
|
487
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
488
|
-
switch (errorCode) {
|
|
489
|
-
case "InternalServerException":
|
|
490
|
-
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
491
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
492
|
-
case "ResourceNotFoundException":
|
|
493
|
-
case "com.amazonaws.bcmdataexports#ResourceNotFoundException":
|
|
494
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
495
|
-
case "ThrottlingException":
|
|
496
|
-
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
497
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
498
|
-
case "ValidationException":
|
|
499
|
-
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
500
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
501
|
-
default:
|
|
502
|
-
const parsedBody = parsedOutput.body;
|
|
503
|
-
return throwDefaultError({
|
|
504
|
-
output,
|
|
505
|
-
parsedBody,
|
|
506
|
-
errorCode
|
|
507
|
-
});
|
|
508
|
-
}
|
|
509
|
-
}, "de_GetExecutionCommandError");
|
|
510
426
|
var de_GetExportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
511
427
|
if (output.statusCode >= 300) {
|
|
512
|
-
return
|
|
428
|
+
return de_CommandError(output, context);
|
|
513
429
|
}
|
|
514
430
|
const data = await parseBody(output.body, context);
|
|
515
431
|
let contents = {};
|
|
@@ -520,37 +436,9 @@ var de_GetExportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
520
436
|
};
|
|
521
437
|
return response;
|
|
522
438
|
}, "de_GetExportCommand");
|
|
523
|
-
var de_GetExportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
524
|
-
const parsedOutput = {
|
|
525
|
-
...output,
|
|
526
|
-
body: await parseErrorBody(output.body, context)
|
|
527
|
-
};
|
|
528
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
529
|
-
switch (errorCode) {
|
|
530
|
-
case "InternalServerException":
|
|
531
|
-
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
532
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
533
|
-
case "ResourceNotFoundException":
|
|
534
|
-
case "com.amazonaws.bcmdataexports#ResourceNotFoundException":
|
|
535
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
536
|
-
case "ThrottlingException":
|
|
537
|
-
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
538
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
539
|
-
case "ValidationException":
|
|
540
|
-
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
541
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
542
|
-
default:
|
|
543
|
-
const parsedBody = parsedOutput.body;
|
|
544
|
-
return throwDefaultError({
|
|
545
|
-
output,
|
|
546
|
-
parsedBody,
|
|
547
|
-
errorCode
|
|
548
|
-
});
|
|
549
|
-
}
|
|
550
|
-
}, "de_GetExportCommandError");
|
|
551
439
|
var de_GetTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
552
440
|
if (output.statusCode >= 300) {
|
|
553
|
-
return
|
|
441
|
+
return de_CommandError(output, context);
|
|
554
442
|
}
|
|
555
443
|
const data = await parseBody(output.body, context);
|
|
556
444
|
let contents = {};
|
|
@@ -561,34 +449,9 @@ var de_GetTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
561
449
|
};
|
|
562
450
|
return response;
|
|
563
451
|
}, "de_GetTableCommand");
|
|
564
|
-
var de_GetTableCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
565
|
-
const parsedOutput = {
|
|
566
|
-
...output,
|
|
567
|
-
body: await parseErrorBody(output.body, context)
|
|
568
|
-
};
|
|
569
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
570
|
-
switch (errorCode) {
|
|
571
|
-
case "InternalServerException":
|
|
572
|
-
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
573
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
574
|
-
case "ThrottlingException":
|
|
575
|
-
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
576
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
577
|
-
case "ValidationException":
|
|
578
|
-
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
579
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
580
|
-
default:
|
|
581
|
-
const parsedBody = parsedOutput.body;
|
|
582
|
-
return throwDefaultError({
|
|
583
|
-
output,
|
|
584
|
-
parsedBody,
|
|
585
|
-
errorCode
|
|
586
|
-
});
|
|
587
|
-
}
|
|
588
|
-
}, "de_GetTableCommandError");
|
|
589
452
|
var de_ListExecutionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
590
453
|
if (output.statusCode >= 300) {
|
|
591
|
-
return
|
|
454
|
+
return de_CommandError(output, context);
|
|
592
455
|
}
|
|
593
456
|
const data = await parseBody(output.body, context);
|
|
594
457
|
let contents = {};
|
|
@@ -599,37 +462,9 @@ var de_ListExecutionsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
599
462
|
};
|
|
600
463
|
return response;
|
|
601
464
|
}, "de_ListExecutionsCommand");
|
|
602
|
-
var de_ListExecutionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
603
|
-
const parsedOutput = {
|
|
604
|
-
...output,
|
|
605
|
-
body: await parseErrorBody(output.body, context)
|
|
606
|
-
};
|
|
607
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
608
|
-
switch (errorCode) {
|
|
609
|
-
case "InternalServerException":
|
|
610
|
-
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
611
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
612
|
-
case "ResourceNotFoundException":
|
|
613
|
-
case "com.amazonaws.bcmdataexports#ResourceNotFoundException":
|
|
614
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
615
|
-
case "ThrottlingException":
|
|
616
|
-
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
617
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
618
|
-
case "ValidationException":
|
|
619
|
-
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
620
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
621
|
-
default:
|
|
622
|
-
const parsedBody = parsedOutput.body;
|
|
623
|
-
return throwDefaultError({
|
|
624
|
-
output,
|
|
625
|
-
parsedBody,
|
|
626
|
-
errorCode
|
|
627
|
-
});
|
|
628
|
-
}
|
|
629
|
-
}, "de_ListExecutionsCommandError");
|
|
630
465
|
var de_ListExportsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
631
466
|
if (output.statusCode >= 300) {
|
|
632
|
-
return
|
|
467
|
+
return de_CommandError(output, context);
|
|
633
468
|
}
|
|
634
469
|
const data = await parseBody(output.body, context);
|
|
635
470
|
let contents = {};
|
|
@@ -640,34 +475,9 @@ var de_ListExportsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
640
475
|
};
|
|
641
476
|
return response;
|
|
642
477
|
}, "de_ListExportsCommand");
|
|
643
|
-
var de_ListExportsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
644
|
-
const parsedOutput = {
|
|
645
|
-
...output,
|
|
646
|
-
body: await parseErrorBody(output.body, context)
|
|
647
|
-
};
|
|
648
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
649
|
-
switch (errorCode) {
|
|
650
|
-
case "InternalServerException":
|
|
651
|
-
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
652
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
653
|
-
case "ThrottlingException":
|
|
654
|
-
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
655
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
656
|
-
case "ValidationException":
|
|
657
|
-
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
658
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
659
|
-
default:
|
|
660
|
-
const parsedBody = parsedOutput.body;
|
|
661
|
-
return throwDefaultError({
|
|
662
|
-
output,
|
|
663
|
-
parsedBody,
|
|
664
|
-
errorCode
|
|
665
|
-
});
|
|
666
|
-
}
|
|
667
|
-
}, "de_ListExportsCommandError");
|
|
668
478
|
var de_ListTablesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
669
479
|
if (output.statusCode >= 300) {
|
|
670
|
-
return
|
|
480
|
+
return de_CommandError(output, context);
|
|
671
481
|
}
|
|
672
482
|
const data = await parseBody(output.body, context);
|
|
673
483
|
let contents = {};
|
|
@@ -678,34 +488,9 @@ var de_ListTablesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
678
488
|
};
|
|
679
489
|
return response;
|
|
680
490
|
}, "de_ListTablesCommand");
|
|
681
|
-
var de_ListTablesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
682
|
-
const parsedOutput = {
|
|
683
|
-
...output,
|
|
684
|
-
body: await parseErrorBody(output.body, context)
|
|
685
|
-
};
|
|
686
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
687
|
-
switch (errorCode) {
|
|
688
|
-
case "InternalServerException":
|
|
689
|
-
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
690
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
691
|
-
case "ThrottlingException":
|
|
692
|
-
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
693
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
694
|
-
case "ValidationException":
|
|
695
|
-
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
696
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
697
|
-
default:
|
|
698
|
-
const parsedBody = parsedOutput.body;
|
|
699
|
-
return throwDefaultError({
|
|
700
|
-
output,
|
|
701
|
-
parsedBody,
|
|
702
|
-
errorCode
|
|
703
|
-
});
|
|
704
|
-
}
|
|
705
|
-
}, "de_ListTablesCommandError");
|
|
706
491
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
707
492
|
if (output.statusCode >= 300) {
|
|
708
|
-
return
|
|
493
|
+
return de_CommandError(output, context);
|
|
709
494
|
}
|
|
710
495
|
const data = await parseBody(output.body, context);
|
|
711
496
|
let contents = {};
|
|
@@ -716,37 +501,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
716
501
|
};
|
|
717
502
|
return response;
|
|
718
503
|
}, "de_ListTagsForResourceCommand");
|
|
719
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
720
|
-
const parsedOutput = {
|
|
721
|
-
...output,
|
|
722
|
-
body: await parseErrorBody(output.body, context)
|
|
723
|
-
};
|
|
724
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
725
|
-
switch (errorCode) {
|
|
726
|
-
case "InternalServerException":
|
|
727
|
-
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
728
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
729
|
-
case "ResourceNotFoundException":
|
|
730
|
-
case "com.amazonaws.bcmdataexports#ResourceNotFoundException":
|
|
731
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
732
|
-
case "ThrottlingException":
|
|
733
|
-
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
734
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
735
|
-
case "ValidationException":
|
|
736
|
-
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
737
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
738
|
-
default:
|
|
739
|
-
const parsedBody = parsedOutput.body;
|
|
740
|
-
return throwDefaultError({
|
|
741
|
-
output,
|
|
742
|
-
parsedBody,
|
|
743
|
-
errorCode
|
|
744
|
-
});
|
|
745
|
-
}
|
|
746
|
-
}, "de_ListTagsForResourceCommandError");
|
|
747
504
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
748
505
|
if (output.statusCode >= 300) {
|
|
749
|
-
return
|
|
506
|
+
return de_CommandError(output, context);
|
|
750
507
|
}
|
|
751
508
|
const data = await parseBody(output.body, context);
|
|
752
509
|
let contents = {};
|
|
@@ -757,37 +514,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
757
514
|
};
|
|
758
515
|
return response;
|
|
759
516
|
}, "de_TagResourceCommand");
|
|
760
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
761
|
-
const parsedOutput = {
|
|
762
|
-
...output,
|
|
763
|
-
body: await parseErrorBody(output.body, context)
|
|
764
|
-
};
|
|
765
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
766
|
-
switch (errorCode) {
|
|
767
|
-
case "InternalServerException":
|
|
768
|
-
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
769
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
770
|
-
case "ResourceNotFoundException":
|
|
771
|
-
case "com.amazonaws.bcmdataexports#ResourceNotFoundException":
|
|
772
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
773
|
-
case "ThrottlingException":
|
|
774
|
-
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
775
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
776
|
-
case "ValidationException":
|
|
777
|
-
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
778
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
779
|
-
default:
|
|
780
|
-
const parsedBody = parsedOutput.body;
|
|
781
|
-
return throwDefaultError({
|
|
782
|
-
output,
|
|
783
|
-
parsedBody,
|
|
784
|
-
errorCode
|
|
785
|
-
});
|
|
786
|
-
}
|
|
787
|
-
}, "de_TagResourceCommandError");
|
|
788
517
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
789
518
|
if (output.statusCode >= 300) {
|
|
790
|
-
return
|
|
519
|
+
return de_CommandError(output, context);
|
|
791
520
|
}
|
|
792
521
|
const data = await parseBody(output.body, context);
|
|
793
522
|
let contents = {};
|
|
@@ -798,37 +527,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
798
527
|
};
|
|
799
528
|
return response;
|
|
800
529
|
}, "de_UntagResourceCommand");
|
|
801
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
802
|
-
const parsedOutput = {
|
|
803
|
-
...output,
|
|
804
|
-
body: await parseErrorBody(output.body, context)
|
|
805
|
-
};
|
|
806
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
807
|
-
switch (errorCode) {
|
|
808
|
-
case "InternalServerException":
|
|
809
|
-
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
810
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
811
|
-
case "ResourceNotFoundException":
|
|
812
|
-
case "com.amazonaws.bcmdataexports#ResourceNotFoundException":
|
|
813
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
814
|
-
case "ThrottlingException":
|
|
815
|
-
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
816
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
817
|
-
case "ValidationException":
|
|
818
|
-
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
819
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
820
|
-
default:
|
|
821
|
-
const parsedBody = parsedOutput.body;
|
|
822
|
-
return throwDefaultError({
|
|
823
|
-
output,
|
|
824
|
-
parsedBody,
|
|
825
|
-
errorCode
|
|
826
|
-
});
|
|
827
|
-
}
|
|
828
|
-
}, "de_UntagResourceCommandError");
|
|
829
530
|
var de_UpdateExportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
830
531
|
if (output.statusCode >= 300) {
|
|
831
|
-
return
|
|
532
|
+
return de_CommandError(output, context);
|
|
832
533
|
}
|
|
833
534
|
const data = await parseBody(output.body, context);
|
|
834
535
|
let contents = {};
|
|
@@ -839,7 +540,7 @@ var de_UpdateExportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
839
540
|
};
|
|
840
541
|
return response;
|
|
841
542
|
}, "de_UpdateExportCommand");
|
|
842
|
-
var
|
|
543
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
843
544
|
const parsedOutput = {
|
|
844
545
|
...output,
|
|
845
546
|
body: await parseErrorBody(output.body, context)
|
|
@@ -849,15 +550,18 @@ var de_UpdateExportCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
849
550
|
case "InternalServerException":
|
|
850
551
|
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
851
552
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
852
|
-
case "
|
|
853
|
-
case "com.amazonaws.bcmdataexports#
|
|
854
|
-
throw await
|
|
553
|
+
case "ServiceQuotaExceededException":
|
|
554
|
+
case "com.amazonaws.bcmdataexports#ServiceQuotaExceededException":
|
|
555
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
855
556
|
case "ThrottlingException":
|
|
856
557
|
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
857
558
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
858
559
|
case "ValidationException":
|
|
859
560
|
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
860
561
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
562
|
+
case "ResourceNotFoundException":
|
|
563
|
+
case "com.amazonaws.bcmdataexports#ResourceNotFoundException":
|
|
564
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
861
565
|
default:
|
|
862
566
|
const parsedBody = parsedOutput.body;
|
|
863
567
|
return throwDefaultError({
|
|
@@ -866,7 +570,7 @@ var de_UpdateExportCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
866
570
|
errorCode
|
|
867
571
|
});
|
|
868
572
|
}
|
|
869
|
-
}, "
|
|
573
|
+
}, "de_CommandError");
|
|
870
574
|
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
871
575
|
const body = parsedOutput.body;
|
|
872
576
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -76,7 +76,7 @@ export const se_UpdateExportCommand = async (input, context) => {
|
|
|
76
76
|
};
|
|
77
77
|
export const de_CreateExportCommand = async (output, context) => {
|
|
78
78
|
if (output.statusCode >= 300) {
|
|
79
|
-
return
|
|
79
|
+
return de_CommandError(output, context);
|
|
80
80
|
}
|
|
81
81
|
const data = await parseBody(output.body, context);
|
|
82
82
|
let contents = {};
|
|
@@ -87,37 +87,9 @@ export const de_CreateExportCommand = async (output, context) => {
|
|
|
87
87
|
};
|
|
88
88
|
return response;
|
|
89
89
|
};
|
|
90
|
-
const de_CreateExportCommandError = async (output, context) => {
|
|
91
|
-
const parsedOutput = {
|
|
92
|
-
...output,
|
|
93
|
-
body: await parseErrorBody(output.body, context),
|
|
94
|
-
};
|
|
95
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
96
|
-
switch (errorCode) {
|
|
97
|
-
case "InternalServerException":
|
|
98
|
-
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
99
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
100
|
-
case "ServiceQuotaExceededException":
|
|
101
|
-
case "com.amazonaws.bcmdataexports#ServiceQuotaExceededException":
|
|
102
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
103
|
-
case "ThrottlingException":
|
|
104
|
-
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
105
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
106
|
-
case "ValidationException":
|
|
107
|
-
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
108
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
109
|
-
default:
|
|
110
|
-
const parsedBody = parsedOutput.body;
|
|
111
|
-
return throwDefaultError({
|
|
112
|
-
output,
|
|
113
|
-
parsedBody,
|
|
114
|
-
errorCode,
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
90
|
export const de_DeleteExportCommand = async (output, context) => {
|
|
119
91
|
if (output.statusCode >= 300) {
|
|
120
|
-
return
|
|
92
|
+
return de_CommandError(output, context);
|
|
121
93
|
}
|
|
122
94
|
const data = await parseBody(output.body, context);
|
|
123
95
|
let contents = {};
|
|
@@ -128,37 +100,9 @@ export const de_DeleteExportCommand = async (output, context) => {
|
|
|
128
100
|
};
|
|
129
101
|
return response;
|
|
130
102
|
};
|
|
131
|
-
const de_DeleteExportCommandError = async (output, context) => {
|
|
132
|
-
const parsedOutput = {
|
|
133
|
-
...output,
|
|
134
|
-
body: await parseErrorBody(output.body, context),
|
|
135
|
-
};
|
|
136
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
137
|
-
switch (errorCode) {
|
|
138
|
-
case "InternalServerException":
|
|
139
|
-
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
140
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
141
|
-
case "ResourceNotFoundException":
|
|
142
|
-
case "com.amazonaws.bcmdataexports#ResourceNotFoundException":
|
|
143
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
144
|
-
case "ThrottlingException":
|
|
145
|
-
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
146
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
147
|
-
case "ValidationException":
|
|
148
|
-
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
149
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
150
|
-
default:
|
|
151
|
-
const parsedBody = parsedOutput.body;
|
|
152
|
-
return throwDefaultError({
|
|
153
|
-
output,
|
|
154
|
-
parsedBody,
|
|
155
|
-
errorCode,
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
103
|
export const de_GetExecutionCommand = async (output, context) => {
|
|
160
104
|
if (output.statusCode >= 300) {
|
|
161
|
-
return
|
|
105
|
+
return de_CommandError(output, context);
|
|
162
106
|
}
|
|
163
107
|
const data = await parseBody(output.body, context);
|
|
164
108
|
let contents = {};
|
|
@@ -169,37 +113,9 @@ export const de_GetExecutionCommand = async (output, context) => {
|
|
|
169
113
|
};
|
|
170
114
|
return response;
|
|
171
115
|
};
|
|
172
|
-
const de_GetExecutionCommandError = async (output, context) => {
|
|
173
|
-
const parsedOutput = {
|
|
174
|
-
...output,
|
|
175
|
-
body: await parseErrorBody(output.body, context),
|
|
176
|
-
};
|
|
177
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
178
|
-
switch (errorCode) {
|
|
179
|
-
case "InternalServerException":
|
|
180
|
-
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
181
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
182
|
-
case "ResourceNotFoundException":
|
|
183
|
-
case "com.amazonaws.bcmdataexports#ResourceNotFoundException":
|
|
184
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
185
|
-
case "ThrottlingException":
|
|
186
|
-
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
187
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
188
|
-
case "ValidationException":
|
|
189
|
-
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
190
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
191
|
-
default:
|
|
192
|
-
const parsedBody = parsedOutput.body;
|
|
193
|
-
return throwDefaultError({
|
|
194
|
-
output,
|
|
195
|
-
parsedBody,
|
|
196
|
-
errorCode,
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
};
|
|
200
116
|
export const de_GetExportCommand = async (output, context) => {
|
|
201
117
|
if (output.statusCode >= 300) {
|
|
202
|
-
return
|
|
118
|
+
return de_CommandError(output, context);
|
|
203
119
|
}
|
|
204
120
|
const data = await parseBody(output.body, context);
|
|
205
121
|
let contents = {};
|
|
@@ -210,37 +126,9 @@ export const de_GetExportCommand = async (output, context) => {
|
|
|
210
126
|
};
|
|
211
127
|
return response;
|
|
212
128
|
};
|
|
213
|
-
const de_GetExportCommandError = async (output, context) => {
|
|
214
|
-
const parsedOutput = {
|
|
215
|
-
...output,
|
|
216
|
-
body: await parseErrorBody(output.body, context),
|
|
217
|
-
};
|
|
218
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
219
|
-
switch (errorCode) {
|
|
220
|
-
case "InternalServerException":
|
|
221
|
-
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
222
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
223
|
-
case "ResourceNotFoundException":
|
|
224
|
-
case "com.amazonaws.bcmdataexports#ResourceNotFoundException":
|
|
225
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
226
|
-
case "ThrottlingException":
|
|
227
|
-
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
228
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
229
|
-
case "ValidationException":
|
|
230
|
-
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
231
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
232
|
-
default:
|
|
233
|
-
const parsedBody = parsedOutput.body;
|
|
234
|
-
return throwDefaultError({
|
|
235
|
-
output,
|
|
236
|
-
parsedBody,
|
|
237
|
-
errorCode,
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
129
|
export const de_GetTableCommand = async (output, context) => {
|
|
242
130
|
if (output.statusCode >= 300) {
|
|
243
|
-
return
|
|
131
|
+
return de_CommandError(output, context);
|
|
244
132
|
}
|
|
245
133
|
const data = await parseBody(output.body, context);
|
|
246
134
|
let contents = {};
|
|
@@ -251,34 +139,9 @@ export const de_GetTableCommand = async (output, context) => {
|
|
|
251
139
|
};
|
|
252
140
|
return response;
|
|
253
141
|
};
|
|
254
|
-
const de_GetTableCommandError = async (output, context) => {
|
|
255
|
-
const parsedOutput = {
|
|
256
|
-
...output,
|
|
257
|
-
body: await parseErrorBody(output.body, context),
|
|
258
|
-
};
|
|
259
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
260
|
-
switch (errorCode) {
|
|
261
|
-
case "InternalServerException":
|
|
262
|
-
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
263
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
264
|
-
case "ThrottlingException":
|
|
265
|
-
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
266
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
267
|
-
case "ValidationException":
|
|
268
|
-
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
269
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
270
|
-
default:
|
|
271
|
-
const parsedBody = parsedOutput.body;
|
|
272
|
-
return throwDefaultError({
|
|
273
|
-
output,
|
|
274
|
-
parsedBody,
|
|
275
|
-
errorCode,
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
};
|
|
279
142
|
export const de_ListExecutionsCommand = async (output, context) => {
|
|
280
143
|
if (output.statusCode >= 300) {
|
|
281
|
-
return
|
|
144
|
+
return de_CommandError(output, context);
|
|
282
145
|
}
|
|
283
146
|
const data = await parseBody(output.body, context);
|
|
284
147
|
let contents = {};
|
|
@@ -289,37 +152,9 @@ export const de_ListExecutionsCommand = async (output, context) => {
|
|
|
289
152
|
};
|
|
290
153
|
return response;
|
|
291
154
|
};
|
|
292
|
-
const de_ListExecutionsCommandError = async (output, context) => {
|
|
293
|
-
const parsedOutput = {
|
|
294
|
-
...output,
|
|
295
|
-
body: await parseErrorBody(output.body, context),
|
|
296
|
-
};
|
|
297
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
298
|
-
switch (errorCode) {
|
|
299
|
-
case "InternalServerException":
|
|
300
|
-
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
301
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
302
|
-
case "ResourceNotFoundException":
|
|
303
|
-
case "com.amazonaws.bcmdataexports#ResourceNotFoundException":
|
|
304
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
305
|
-
case "ThrottlingException":
|
|
306
|
-
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
307
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
308
|
-
case "ValidationException":
|
|
309
|
-
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
310
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
311
|
-
default:
|
|
312
|
-
const parsedBody = parsedOutput.body;
|
|
313
|
-
return throwDefaultError({
|
|
314
|
-
output,
|
|
315
|
-
parsedBody,
|
|
316
|
-
errorCode,
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
};
|
|
320
155
|
export const de_ListExportsCommand = async (output, context) => {
|
|
321
156
|
if (output.statusCode >= 300) {
|
|
322
|
-
return
|
|
157
|
+
return de_CommandError(output, context);
|
|
323
158
|
}
|
|
324
159
|
const data = await parseBody(output.body, context);
|
|
325
160
|
let contents = {};
|
|
@@ -330,34 +165,9 @@ export const de_ListExportsCommand = async (output, context) => {
|
|
|
330
165
|
};
|
|
331
166
|
return response;
|
|
332
167
|
};
|
|
333
|
-
const de_ListExportsCommandError = async (output, context) => {
|
|
334
|
-
const parsedOutput = {
|
|
335
|
-
...output,
|
|
336
|
-
body: await parseErrorBody(output.body, context),
|
|
337
|
-
};
|
|
338
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
339
|
-
switch (errorCode) {
|
|
340
|
-
case "InternalServerException":
|
|
341
|
-
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
342
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
343
|
-
case "ThrottlingException":
|
|
344
|
-
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
345
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
346
|
-
case "ValidationException":
|
|
347
|
-
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
348
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
349
|
-
default:
|
|
350
|
-
const parsedBody = parsedOutput.body;
|
|
351
|
-
return throwDefaultError({
|
|
352
|
-
output,
|
|
353
|
-
parsedBody,
|
|
354
|
-
errorCode,
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
|
-
};
|
|
358
168
|
export const de_ListTablesCommand = async (output, context) => {
|
|
359
169
|
if (output.statusCode >= 300) {
|
|
360
|
-
return
|
|
170
|
+
return de_CommandError(output, context);
|
|
361
171
|
}
|
|
362
172
|
const data = await parseBody(output.body, context);
|
|
363
173
|
let contents = {};
|
|
@@ -368,34 +178,9 @@ export const de_ListTablesCommand = async (output, context) => {
|
|
|
368
178
|
};
|
|
369
179
|
return response;
|
|
370
180
|
};
|
|
371
|
-
const de_ListTablesCommandError = async (output, context) => {
|
|
372
|
-
const parsedOutput = {
|
|
373
|
-
...output,
|
|
374
|
-
body: await parseErrorBody(output.body, context),
|
|
375
|
-
};
|
|
376
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
377
|
-
switch (errorCode) {
|
|
378
|
-
case "InternalServerException":
|
|
379
|
-
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
380
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
381
|
-
case "ThrottlingException":
|
|
382
|
-
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
383
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
384
|
-
case "ValidationException":
|
|
385
|
-
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
386
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
387
|
-
default:
|
|
388
|
-
const parsedBody = parsedOutput.body;
|
|
389
|
-
return throwDefaultError({
|
|
390
|
-
output,
|
|
391
|
-
parsedBody,
|
|
392
|
-
errorCode,
|
|
393
|
-
});
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
181
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
397
182
|
if (output.statusCode >= 300) {
|
|
398
|
-
return
|
|
183
|
+
return de_CommandError(output, context);
|
|
399
184
|
}
|
|
400
185
|
const data = await parseBody(output.body, context);
|
|
401
186
|
let contents = {};
|
|
@@ -406,37 +191,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
406
191
|
};
|
|
407
192
|
return response;
|
|
408
193
|
};
|
|
409
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
410
|
-
const parsedOutput = {
|
|
411
|
-
...output,
|
|
412
|
-
body: await parseErrorBody(output.body, context),
|
|
413
|
-
};
|
|
414
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
415
|
-
switch (errorCode) {
|
|
416
|
-
case "InternalServerException":
|
|
417
|
-
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
418
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
419
|
-
case "ResourceNotFoundException":
|
|
420
|
-
case "com.amazonaws.bcmdataexports#ResourceNotFoundException":
|
|
421
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
422
|
-
case "ThrottlingException":
|
|
423
|
-
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
424
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
425
|
-
case "ValidationException":
|
|
426
|
-
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
427
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
428
|
-
default:
|
|
429
|
-
const parsedBody = parsedOutput.body;
|
|
430
|
-
return throwDefaultError({
|
|
431
|
-
output,
|
|
432
|
-
parsedBody,
|
|
433
|
-
errorCode,
|
|
434
|
-
});
|
|
435
|
-
}
|
|
436
|
-
};
|
|
437
194
|
export const de_TagResourceCommand = async (output, context) => {
|
|
438
195
|
if (output.statusCode >= 300) {
|
|
439
|
-
return
|
|
196
|
+
return de_CommandError(output, context);
|
|
440
197
|
}
|
|
441
198
|
const data = await parseBody(output.body, context);
|
|
442
199
|
let contents = {};
|
|
@@ -447,37 +204,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
447
204
|
};
|
|
448
205
|
return response;
|
|
449
206
|
};
|
|
450
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
451
|
-
const parsedOutput = {
|
|
452
|
-
...output,
|
|
453
|
-
body: await parseErrorBody(output.body, context),
|
|
454
|
-
};
|
|
455
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
456
|
-
switch (errorCode) {
|
|
457
|
-
case "InternalServerException":
|
|
458
|
-
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
459
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
460
|
-
case "ResourceNotFoundException":
|
|
461
|
-
case "com.amazonaws.bcmdataexports#ResourceNotFoundException":
|
|
462
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
463
|
-
case "ThrottlingException":
|
|
464
|
-
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
465
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
466
|
-
case "ValidationException":
|
|
467
|
-
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
468
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
469
|
-
default:
|
|
470
|
-
const parsedBody = parsedOutput.body;
|
|
471
|
-
return throwDefaultError({
|
|
472
|
-
output,
|
|
473
|
-
parsedBody,
|
|
474
|
-
errorCode,
|
|
475
|
-
});
|
|
476
|
-
}
|
|
477
|
-
};
|
|
478
207
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
479
208
|
if (output.statusCode >= 300) {
|
|
480
|
-
return
|
|
209
|
+
return de_CommandError(output, context);
|
|
481
210
|
}
|
|
482
211
|
const data = await parseBody(output.body, context);
|
|
483
212
|
let contents = {};
|
|
@@ -488,37 +217,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
488
217
|
};
|
|
489
218
|
return response;
|
|
490
219
|
};
|
|
491
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
492
|
-
const parsedOutput = {
|
|
493
|
-
...output,
|
|
494
|
-
body: await parseErrorBody(output.body, context),
|
|
495
|
-
};
|
|
496
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
497
|
-
switch (errorCode) {
|
|
498
|
-
case "InternalServerException":
|
|
499
|
-
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
500
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
501
|
-
case "ResourceNotFoundException":
|
|
502
|
-
case "com.amazonaws.bcmdataexports#ResourceNotFoundException":
|
|
503
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
504
|
-
case "ThrottlingException":
|
|
505
|
-
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
506
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
507
|
-
case "ValidationException":
|
|
508
|
-
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
509
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
510
|
-
default:
|
|
511
|
-
const parsedBody = parsedOutput.body;
|
|
512
|
-
return throwDefaultError({
|
|
513
|
-
output,
|
|
514
|
-
parsedBody,
|
|
515
|
-
errorCode,
|
|
516
|
-
});
|
|
517
|
-
}
|
|
518
|
-
};
|
|
519
220
|
export const de_UpdateExportCommand = async (output, context) => {
|
|
520
221
|
if (output.statusCode >= 300) {
|
|
521
|
-
return
|
|
222
|
+
return de_CommandError(output, context);
|
|
522
223
|
}
|
|
523
224
|
const data = await parseBody(output.body, context);
|
|
524
225
|
let contents = {};
|
|
@@ -529,7 +230,7 @@ export const de_UpdateExportCommand = async (output, context) => {
|
|
|
529
230
|
};
|
|
530
231
|
return response;
|
|
531
232
|
};
|
|
532
|
-
const
|
|
233
|
+
const de_CommandError = async (output, context) => {
|
|
533
234
|
const parsedOutput = {
|
|
534
235
|
...output,
|
|
535
236
|
body: await parseErrorBody(output.body, context),
|
|
@@ -539,15 +240,18 @@ const de_UpdateExportCommandError = async (output, context) => {
|
|
|
539
240
|
case "InternalServerException":
|
|
540
241
|
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
541
242
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
542
|
-
case "
|
|
543
|
-
case "com.amazonaws.bcmdataexports#
|
|
544
|
-
throw await
|
|
243
|
+
case "ServiceQuotaExceededException":
|
|
244
|
+
case "com.amazonaws.bcmdataexports#ServiceQuotaExceededException":
|
|
245
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
545
246
|
case "ThrottlingException":
|
|
546
247
|
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
547
248
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
548
249
|
case "ValidationException":
|
|
549
250
|
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
550
251
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
252
|
+
case "ResourceNotFoundException":
|
|
253
|
+
case "com.amazonaws.bcmdataexports#ResourceNotFoundException":
|
|
254
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
551
255
|
default:
|
|
552
256
|
const parsedBody = parsedOutput.body;
|
|
553
257
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bcm-data-exports",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bcm Data Exports Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.507.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bcm-data-exports",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|