@aws-sdk/client-data-pipeline 3.504.0 → 3.509.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 +24 -510
- package/dist-es/protocols/Aws_json1_1.js +23 -509
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -385,7 +385,7 @@ var se_ValidatePipelineDefinitionCommand = /* @__PURE__ */ __name(async (input,
|
|
|
385
385
|
}, "se_ValidatePipelineDefinitionCommand");
|
|
386
386
|
var de_ActivatePipelineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
387
387
|
if (output.statusCode >= 300) {
|
|
388
|
-
return
|
|
388
|
+
return de_CommandError(output, context);
|
|
389
389
|
}
|
|
390
390
|
const data = await parseBody(output.body, context);
|
|
391
391
|
let contents = {};
|
|
@@ -396,37 +396,9 @@ var de_ActivatePipelineCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
396
396
|
};
|
|
397
397
|
return response;
|
|
398
398
|
}, "de_ActivatePipelineCommand");
|
|
399
|
-
var de_ActivatePipelineCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
400
|
-
const parsedOutput = {
|
|
401
|
-
...output,
|
|
402
|
-
body: await parseErrorBody(output.body, context)
|
|
403
|
-
};
|
|
404
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
405
|
-
switch (errorCode) {
|
|
406
|
-
case "InternalServiceError":
|
|
407
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
408
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
409
|
-
case "InvalidRequestException":
|
|
410
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
411
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
412
|
-
case "PipelineDeletedException":
|
|
413
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
414
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
415
|
-
case "PipelineNotFoundException":
|
|
416
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
417
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
418
|
-
default:
|
|
419
|
-
const parsedBody = parsedOutput.body;
|
|
420
|
-
return throwDefaultError({
|
|
421
|
-
output,
|
|
422
|
-
parsedBody,
|
|
423
|
-
errorCode
|
|
424
|
-
});
|
|
425
|
-
}
|
|
426
|
-
}, "de_ActivatePipelineCommandError");
|
|
427
399
|
var de_AddTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
428
400
|
if (output.statusCode >= 300) {
|
|
429
|
-
return
|
|
401
|
+
return de_CommandError(output, context);
|
|
430
402
|
}
|
|
431
403
|
const data = await parseBody(output.body, context);
|
|
432
404
|
let contents = {};
|
|
@@ -437,37 +409,9 @@ var de_AddTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
437
409
|
};
|
|
438
410
|
return response;
|
|
439
411
|
}, "de_AddTagsCommand");
|
|
440
|
-
var de_AddTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
441
|
-
const parsedOutput = {
|
|
442
|
-
...output,
|
|
443
|
-
body: await parseErrorBody(output.body, context)
|
|
444
|
-
};
|
|
445
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
446
|
-
switch (errorCode) {
|
|
447
|
-
case "InternalServiceError":
|
|
448
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
449
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
450
|
-
case "InvalidRequestException":
|
|
451
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
452
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
453
|
-
case "PipelineDeletedException":
|
|
454
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
455
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
456
|
-
case "PipelineNotFoundException":
|
|
457
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
458
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
459
|
-
default:
|
|
460
|
-
const parsedBody = parsedOutput.body;
|
|
461
|
-
return throwDefaultError({
|
|
462
|
-
output,
|
|
463
|
-
parsedBody,
|
|
464
|
-
errorCode
|
|
465
|
-
});
|
|
466
|
-
}
|
|
467
|
-
}, "de_AddTagsCommandError");
|
|
468
412
|
var de_CreatePipelineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
469
413
|
if (output.statusCode >= 300) {
|
|
470
|
-
return
|
|
414
|
+
return de_CommandError(output, context);
|
|
471
415
|
}
|
|
472
416
|
const data = await parseBody(output.body, context);
|
|
473
417
|
let contents = {};
|
|
@@ -478,31 +422,9 @@ var de_CreatePipelineCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
478
422
|
};
|
|
479
423
|
return response;
|
|
480
424
|
}, "de_CreatePipelineCommand");
|
|
481
|
-
var de_CreatePipelineCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
482
|
-
const parsedOutput = {
|
|
483
|
-
...output,
|
|
484
|
-
body: await parseErrorBody(output.body, context)
|
|
485
|
-
};
|
|
486
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
487
|
-
switch (errorCode) {
|
|
488
|
-
case "InternalServiceError":
|
|
489
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
490
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
491
|
-
case "InvalidRequestException":
|
|
492
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
493
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
494
|
-
default:
|
|
495
|
-
const parsedBody = parsedOutput.body;
|
|
496
|
-
return throwDefaultError({
|
|
497
|
-
output,
|
|
498
|
-
parsedBody,
|
|
499
|
-
errorCode
|
|
500
|
-
});
|
|
501
|
-
}
|
|
502
|
-
}, "de_CreatePipelineCommandError");
|
|
503
425
|
var de_DeactivatePipelineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
504
426
|
if (output.statusCode >= 300) {
|
|
505
|
-
return
|
|
427
|
+
return de_CommandError(output, context);
|
|
506
428
|
}
|
|
507
429
|
const data = await parseBody(output.body, context);
|
|
508
430
|
let contents = {};
|
|
@@ -513,37 +435,9 @@ var de_DeactivatePipelineCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
513
435
|
};
|
|
514
436
|
return response;
|
|
515
437
|
}, "de_DeactivatePipelineCommand");
|
|
516
|
-
var de_DeactivatePipelineCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
517
|
-
const parsedOutput = {
|
|
518
|
-
...output,
|
|
519
|
-
body: await parseErrorBody(output.body, context)
|
|
520
|
-
};
|
|
521
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
522
|
-
switch (errorCode) {
|
|
523
|
-
case "InternalServiceError":
|
|
524
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
525
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
526
|
-
case "InvalidRequestException":
|
|
527
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
528
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
529
|
-
case "PipelineDeletedException":
|
|
530
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
531
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
532
|
-
case "PipelineNotFoundException":
|
|
533
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
534
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
535
|
-
default:
|
|
536
|
-
const parsedBody = parsedOutput.body;
|
|
537
|
-
return throwDefaultError({
|
|
538
|
-
output,
|
|
539
|
-
parsedBody,
|
|
540
|
-
errorCode
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
}, "de_DeactivatePipelineCommandError");
|
|
544
438
|
var de_DeletePipelineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
545
439
|
if (output.statusCode >= 300) {
|
|
546
|
-
return
|
|
440
|
+
return de_CommandError(output, context);
|
|
547
441
|
}
|
|
548
442
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
549
443
|
const response = {
|
|
@@ -551,34 +445,9 @@ var de_DeletePipelineCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
551
445
|
};
|
|
552
446
|
return response;
|
|
553
447
|
}, "de_DeletePipelineCommand");
|
|
554
|
-
var de_DeletePipelineCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
555
|
-
const parsedOutput = {
|
|
556
|
-
...output,
|
|
557
|
-
body: await parseErrorBody(output.body, context)
|
|
558
|
-
};
|
|
559
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
560
|
-
switch (errorCode) {
|
|
561
|
-
case "InternalServiceError":
|
|
562
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
563
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
564
|
-
case "InvalidRequestException":
|
|
565
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
566
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
567
|
-
case "PipelineNotFoundException":
|
|
568
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
569
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
570
|
-
default:
|
|
571
|
-
const parsedBody = parsedOutput.body;
|
|
572
|
-
return throwDefaultError({
|
|
573
|
-
output,
|
|
574
|
-
parsedBody,
|
|
575
|
-
errorCode
|
|
576
|
-
});
|
|
577
|
-
}
|
|
578
|
-
}, "de_DeletePipelineCommandError");
|
|
579
448
|
var de_DescribeObjectsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
580
449
|
if (output.statusCode >= 300) {
|
|
581
|
-
return
|
|
450
|
+
return de_CommandError(output, context);
|
|
582
451
|
}
|
|
583
452
|
const data = await parseBody(output.body, context);
|
|
584
453
|
let contents = {};
|
|
@@ -589,37 +458,9 @@ var de_DescribeObjectsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
589
458
|
};
|
|
590
459
|
return response;
|
|
591
460
|
}, "de_DescribeObjectsCommand");
|
|
592
|
-
var de_DescribeObjectsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
593
|
-
const parsedOutput = {
|
|
594
|
-
...output,
|
|
595
|
-
body: await parseErrorBody(output.body, context)
|
|
596
|
-
};
|
|
597
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
598
|
-
switch (errorCode) {
|
|
599
|
-
case "InternalServiceError":
|
|
600
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
601
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
602
|
-
case "InvalidRequestException":
|
|
603
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
604
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
605
|
-
case "PipelineDeletedException":
|
|
606
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
607
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
608
|
-
case "PipelineNotFoundException":
|
|
609
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
610
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
611
|
-
default:
|
|
612
|
-
const parsedBody = parsedOutput.body;
|
|
613
|
-
return throwDefaultError({
|
|
614
|
-
output,
|
|
615
|
-
parsedBody,
|
|
616
|
-
errorCode
|
|
617
|
-
});
|
|
618
|
-
}
|
|
619
|
-
}, "de_DescribeObjectsCommandError");
|
|
620
461
|
var de_DescribePipelinesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
621
462
|
if (output.statusCode >= 300) {
|
|
622
|
-
return
|
|
463
|
+
return de_CommandError(output, context);
|
|
623
464
|
}
|
|
624
465
|
const data = await parseBody(output.body, context);
|
|
625
466
|
let contents = {};
|
|
@@ -630,37 +471,9 @@ var de_DescribePipelinesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
630
471
|
};
|
|
631
472
|
return response;
|
|
632
473
|
}, "de_DescribePipelinesCommand");
|
|
633
|
-
var de_DescribePipelinesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
634
|
-
const parsedOutput = {
|
|
635
|
-
...output,
|
|
636
|
-
body: await parseErrorBody(output.body, context)
|
|
637
|
-
};
|
|
638
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
639
|
-
switch (errorCode) {
|
|
640
|
-
case "InternalServiceError":
|
|
641
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
642
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
643
|
-
case "InvalidRequestException":
|
|
644
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
645
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
646
|
-
case "PipelineDeletedException":
|
|
647
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
648
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
649
|
-
case "PipelineNotFoundException":
|
|
650
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
651
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
652
|
-
default:
|
|
653
|
-
const parsedBody = parsedOutput.body;
|
|
654
|
-
return throwDefaultError({
|
|
655
|
-
output,
|
|
656
|
-
parsedBody,
|
|
657
|
-
errorCode
|
|
658
|
-
});
|
|
659
|
-
}
|
|
660
|
-
}, "de_DescribePipelinesCommandError");
|
|
661
474
|
var de_EvaluateExpressionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
662
475
|
if (output.statusCode >= 300) {
|
|
663
|
-
return
|
|
476
|
+
return de_CommandError(output, context);
|
|
664
477
|
}
|
|
665
478
|
const data = await parseBody(output.body, context);
|
|
666
479
|
let contents = {};
|
|
@@ -671,40 +484,9 @@ var de_EvaluateExpressionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
671
484
|
};
|
|
672
485
|
return response;
|
|
673
486
|
}, "de_EvaluateExpressionCommand");
|
|
674
|
-
var de_EvaluateExpressionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
675
|
-
const parsedOutput = {
|
|
676
|
-
...output,
|
|
677
|
-
body: await parseErrorBody(output.body, context)
|
|
678
|
-
};
|
|
679
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
680
|
-
switch (errorCode) {
|
|
681
|
-
case "InternalServiceError":
|
|
682
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
683
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
684
|
-
case "InvalidRequestException":
|
|
685
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
686
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
687
|
-
case "PipelineDeletedException":
|
|
688
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
689
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
690
|
-
case "PipelineNotFoundException":
|
|
691
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
692
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
693
|
-
case "TaskNotFoundException":
|
|
694
|
-
case "com.amazonaws.datapipeline#TaskNotFoundException":
|
|
695
|
-
throw await de_TaskNotFoundExceptionRes(parsedOutput, context);
|
|
696
|
-
default:
|
|
697
|
-
const parsedBody = parsedOutput.body;
|
|
698
|
-
return throwDefaultError({
|
|
699
|
-
output,
|
|
700
|
-
parsedBody,
|
|
701
|
-
errorCode
|
|
702
|
-
});
|
|
703
|
-
}
|
|
704
|
-
}, "de_EvaluateExpressionCommandError");
|
|
705
487
|
var de_GetPipelineDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
706
488
|
if (output.statusCode >= 300) {
|
|
707
|
-
return
|
|
489
|
+
return de_CommandError(output, context);
|
|
708
490
|
}
|
|
709
491
|
const data = await parseBody(output.body, context);
|
|
710
492
|
let contents = {};
|
|
@@ -715,37 +497,9 @@ var de_GetPipelineDefinitionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
715
497
|
};
|
|
716
498
|
return response;
|
|
717
499
|
}, "de_GetPipelineDefinitionCommand");
|
|
718
|
-
var de_GetPipelineDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
719
|
-
const parsedOutput = {
|
|
720
|
-
...output,
|
|
721
|
-
body: await parseErrorBody(output.body, context)
|
|
722
|
-
};
|
|
723
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
724
|
-
switch (errorCode) {
|
|
725
|
-
case "InternalServiceError":
|
|
726
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
727
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
728
|
-
case "InvalidRequestException":
|
|
729
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
730
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
731
|
-
case "PipelineDeletedException":
|
|
732
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
733
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
734
|
-
case "PipelineNotFoundException":
|
|
735
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
736
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
737
|
-
default:
|
|
738
|
-
const parsedBody = parsedOutput.body;
|
|
739
|
-
return throwDefaultError({
|
|
740
|
-
output,
|
|
741
|
-
parsedBody,
|
|
742
|
-
errorCode
|
|
743
|
-
});
|
|
744
|
-
}
|
|
745
|
-
}, "de_GetPipelineDefinitionCommandError");
|
|
746
500
|
var de_ListPipelinesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
747
501
|
if (output.statusCode >= 300) {
|
|
748
|
-
return
|
|
502
|
+
return de_CommandError(output, context);
|
|
749
503
|
}
|
|
750
504
|
const data = await parseBody(output.body, context);
|
|
751
505
|
let contents = {};
|
|
@@ -756,31 +510,9 @@ var de_ListPipelinesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
756
510
|
};
|
|
757
511
|
return response;
|
|
758
512
|
}, "de_ListPipelinesCommand");
|
|
759
|
-
var de_ListPipelinesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
760
|
-
const parsedOutput = {
|
|
761
|
-
...output,
|
|
762
|
-
body: await parseErrorBody(output.body, context)
|
|
763
|
-
};
|
|
764
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
765
|
-
switch (errorCode) {
|
|
766
|
-
case "InternalServiceError":
|
|
767
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
768
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
769
|
-
case "InvalidRequestException":
|
|
770
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
771
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
772
|
-
default:
|
|
773
|
-
const parsedBody = parsedOutput.body;
|
|
774
|
-
return throwDefaultError({
|
|
775
|
-
output,
|
|
776
|
-
parsedBody,
|
|
777
|
-
errorCode
|
|
778
|
-
});
|
|
779
|
-
}
|
|
780
|
-
}, "de_ListPipelinesCommandError");
|
|
781
513
|
var de_PollForTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
782
514
|
if (output.statusCode >= 300) {
|
|
783
|
-
return
|
|
515
|
+
return de_CommandError(output, context);
|
|
784
516
|
}
|
|
785
517
|
const data = await parseBody(output.body, context);
|
|
786
518
|
let contents = {};
|
|
@@ -791,34 +523,9 @@ var de_PollForTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
791
523
|
};
|
|
792
524
|
return response;
|
|
793
525
|
}, "de_PollForTaskCommand");
|
|
794
|
-
var de_PollForTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
795
|
-
const parsedOutput = {
|
|
796
|
-
...output,
|
|
797
|
-
body: await parseErrorBody(output.body, context)
|
|
798
|
-
};
|
|
799
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
800
|
-
switch (errorCode) {
|
|
801
|
-
case "InternalServiceError":
|
|
802
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
803
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
804
|
-
case "InvalidRequestException":
|
|
805
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
806
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
807
|
-
case "TaskNotFoundException":
|
|
808
|
-
case "com.amazonaws.datapipeline#TaskNotFoundException":
|
|
809
|
-
throw await de_TaskNotFoundExceptionRes(parsedOutput, context);
|
|
810
|
-
default:
|
|
811
|
-
const parsedBody = parsedOutput.body;
|
|
812
|
-
return throwDefaultError({
|
|
813
|
-
output,
|
|
814
|
-
parsedBody,
|
|
815
|
-
errorCode
|
|
816
|
-
});
|
|
817
|
-
}
|
|
818
|
-
}, "de_PollForTaskCommandError");
|
|
819
526
|
var de_PutPipelineDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
820
527
|
if (output.statusCode >= 300) {
|
|
821
|
-
return
|
|
528
|
+
return de_CommandError(output, context);
|
|
822
529
|
}
|
|
823
530
|
const data = await parseBody(output.body, context);
|
|
824
531
|
let contents = {};
|
|
@@ -829,37 +536,9 @@ var de_PutPipelineDefinitionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
829
536
|
};
|
|
830
537
|
return response;
|
|
831
538
|
}, "de_PutPipelineDefinitionCommand");
|
|
832
|
-
var de_PutPipelineDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
833
|
-
const parsedOutput = {
|
|
834
|
-
...output,
|
|
835
|
-
body: await parseErrorBody(output.body, context)
|
|
836
|
-
};
|
|
837
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
838
|
-
switch (errorCode) {
|
|
839
|
-
case "InternalServiceError":
|
|
840
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
841
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
842
|
-
case "InvalidRequestException":
|
|
843
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
844
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
845
|
-
case "PipelineDeletedException":
|
|
846
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
847
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
848
|
-
case "PipelineNotFoundException":
|
|
849
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
850
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
851
|
-
default:
|
|
852
|
-
const parsedBody = parsedOutput.body;
|
|
853
|
-
return throwDefaultError({
|
|
854
|
-
output,
|
|
855
|
-
parsedBody,
|
|
856
|
-
errorCode
|
|
857
|
-
});
|
|
858
|
-
}
|
|
859
|
-
}, "de_PutPipelineDefinitionCommandError");
|
|
860
539
|
var de_QueryObjectsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
861
540
|
if (output.statusCode >= 300) {
|
|
862
|
-
return
|
|
541
|
+
return de_CommandError(output, context);
|
|
863
542
|
}
|
|
864
543
|
const data = await parseBody(output.body, context);
|
|
865
544
|
let contents = {};
|
|
@@ -870,37 +549,9 @@ var de_QueryObjectsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
870
549
|
};
|
|
871
550
|
return response;
|
|
872
551
|
}, "de_QueryObjectsCommand");
|
|
873
|
-
var de_QueryObjectsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
874
|
-
const parsedOutput = {
|
|
875
|
-
...output,
|
|
876
|
-
body: await parseErrorBody(output.body, context)
|
|
877
|
-
};
|
|
878
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
879
|
-
switch (errorCode) {
|
|
880
|
-
case "InternalServiceError":
|
|
881
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
882
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
883
|
-
case "InvalidRequestException":
|
|
884
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
885
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
886
|
-
case "PipelineDeletedException":
|
|
887
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
888
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
889
|
-
case "PipelineNotFoundException":
|
|
890
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
891
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
892
|
-
default:
|
|
893
|
-
const parsedBody = parsedOutput.body;
|
|
894
|
-
return throwDefaultError({
|
|
895
|
-
output,
|
|
896
|
-
parsedBody,
|
|
897
|
-
errorCode
|
|
898
|
-
});
|
|
899
|
-
}
|
|
900
|
-
}, "de_QueryObjectsCommandError");
|
|
901
552
|
var de_RemoveTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
902
553
|
if (output.statusCode >= 300) {
|
|
903
|
-
return
|
|
554
|
+
return de_CommandError(output, context);
|
|
904
555
|
}
|
|
905
556
|
const data = await parseBody(output.body, context);
|
|
906
557
|
let contents = {};
|
|
@@ -911,37 +562,9 @@ var de_RemoveTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
911
562
|
};
|
|
912
563
|
return response;
|
|
913
564
|
}, "de_RemoveTagsCommand");
|
|
914
|
-
var de_RemoveTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
915
|
-
const parsedOutput = {
|
|
916
|
-
...output,
|
|
917
|
-
body: await parseErrorBody(output.body, context)
|
|
918
|
-
};
|
|
919
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
920
|
-
switch (errorCode) {
|
|
921
|
-
case "InternalServiceError":
|
|
922
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
923
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
924
|
-
case "InvalidRequestException":
|
|
925
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
926
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
927
|
-
case "PipelineDeletedException":
|
|
928
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
929
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
930
|
-
case "PipelineNotFoundException":
|
|
931
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
932
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
933
|
-
default:
|
|
934
|
-
const parsedBody = parsedOutput.body;
|
|
935
|
-
return throwDefaultError({
|
|
936
|
-
output,
|
|
937
|
-
parsedBody,
|
|
938
|
-
errorCode
|
|
939
|
-
});
|
|
940
|
-
}
|
|
941
|
-
}, "de_RemoveTagsCommandError");
|
|
942
565
|
var de_ReportTaskProgressCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
943
566
|
if (output.statusCode >= 300) {
|
|
944
|
-
return
|
|
567
|
+
return de_CommandError(output, context);
|
|
945
568
|
}
|
|
946
569
|
const data = await parseBody(output.body, context);
|
|
947
570
|
let contents = {};
|
|
@@ -952,40 +575,9 @@ var de_ReportTaskProgressCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
952
575
|
};
|
|
953
576
|
return response;
|
|
954
577
|
}, "de_ReportTaskProgressCommand");
|
|
955
|
-
var de_ReportTaskProgressCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
956
|
-
const parsedOutput = {
|
|
957
|
-
...output,
|
|
958
|
-
body: await parseErrorBody(output.body, context)
|
|
959
|
-
};
|
|
960
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
961
|
-
switch (errorCode) {
|
|
962
|
-
case "InternalServiceError":
|
|
963
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
964
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
965
|
-
case "InvalidRequestException":
|
|
966
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
967
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
968
|
-
case "PipelineDeletedException":
|
|
969
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
970
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
971
|
-
case "PipelineNotFoundException":
|
|
972
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
973
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
974
|
-
case "TaskNotFoundException":
|
|
975
|
-
case "com.amazonaws.datapipeline#TaskNotFoundException":
|
|
976
|
-
throw await de_TaskNotFoundExceptionRes(parsedOutput, context);
|
|
977
|
-
default:
|
|
978
|
-
const parsedBody = parsedOutput.body;
|
|
979
|
-
return throwDefaultError({
|
|
980
|
-
output,
|
|
981
|
-
parsedBody,
|
|
982
|
-
errorCode
|
|
983
|
-
});
|
|
984
|
-
}
|
|
985
|
-
}, "de_ReportTaskProgressCommandError");
|
|
986
578
|
var de_ReportTaskRunnerHeartbeatCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
987
579
|
if (output.statusCode >= 300) {
|
|
988
|
-
return
|
|
580
|
+
return de_CommandError(output, context);
|
|
989
581
|
}
|
|
990
582
|
const data = await parseBody(output.body, context);
|
|
991
583
|
let contents = {};
|
|
@@ -996,31 +588,9 @@ var de_ReportTaskRunnerHeartbeatCommand = /* @__PURE__ */ __name(async (output,
|
|
|
996
588
|
};
|
|
997
589
|
return response;
|
|
998
590
|
}, "de_ReportTaskRunnerHeartbeatCommand");
|
|
999
|
-
var de_ReportTaskRunnerHeartbeatCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1000
|
-
const parsedOutput = {
|
|
1001
|
-
...output,
|
|
1002
|
-
body: await parseErrorBody(output.body, context)
|
|
1003
|
-
};
|
|
1004
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1005
|
-
switch (errorCode) {
|
|
1006
|
-
case "InternalServiceError":
|
|
1007
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
1008
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1009
|
-
case "InvalidRequestException":
|
|
1010
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
1011
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1012
|
-
default:
|
|
1013
|
-
const parsedBody = parsedOutput.body;
|
|
1014
|
-
return throwDefaultError({
|
|
1015
|
-
output,
|
|
1016
|
-
parsedBody,
|
|
1017
|
-
errorCode
|
|
1018
|
-
});
|
|
1019
|
-
}
|
|
1020
|
-
}, "de_ReportTaskRunnerHeartbeatCommandError");
|
|
1021
591
|
var de_SetStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1022
592
|
if (output.statusCode >= 300) {
|
|
1023
|
-
return
|
|
593
|
+
return de_CommandError(output, context);
|
|
1024
594
|
}
|
|
1025
595
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1026
596
|
const response = {
|
|
@@ -1028,37 +598,9 @@ var de_SetStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1028
598
|
};
|
|
1029
599
|
return response;
|
|
1030
600
|
}, "de_SetStatusCommand");
|
|
1031
|
-
var de_SetStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1032
|
-
const parsedOutput = {
|
|
1033
|
-
...output,
|
|
1034
|
-
body: await parseErrorBody(output.body, context)
|
|
1035
|
-
};
|
|
1036
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1037
|
-
switch (errorCode) {
|
|
1038
|
-
case "InternalServiceError":
|
|
1039
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
1040
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1041
|
-
case "InvalidRequestException":
|
|
1042
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
1043
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1044
|
-
case "PipelineDeletedException":
|
|
1045
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
1046
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "PipelineNotFoundException":
|
|
1048
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
1049
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
1050
|
-
default:
|
|
1051
|
-
const parsedBody = parsedOutput.body;
|
|
1052
|
-
return throwDefaultError({
|
|
1053
|
-
output,
|
|
1054
|
-
parsedBody,
|
|
1055
|
-
errorCode
|
|
1056
|
-
});
|
|
1057
|
-
}
|
|
1058
|
-
}, "de_SetStatusCommandError");
|
|
1059
601
|
var de_SetTaskStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1060
602
|
if (output.statusCode >= 300) {
|
|
1061
|
-
return
|
|
603
|
+
return de_CommandError(output, context);
|
|
1062
604
|
}
|
|
1063
605
|
const data = await parseBody(output.body, context);
|
|
1064
606
|
let contents = {};
|
|
@@ -1069,40 +611,9 @@ var de_SetTaskStatusCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1069
611
|
};
|
|
1070
612
|
return response;
|
|
1071
613
|
}, "de_SetTaskStatusCommand");
|
|
1072
|
-
var de_SetTaskStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1073
|
-
const parsedOutput = {
|
|
1074
|
-
...output,
|
|
1075
|
-
body: await parseErrorBody(output.body, context)
|
|
1076
|
-
};
|
|
1077
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1078
|
-
switch (errorCode) {
|
|
1079
|
-
case "InternalServiceError":
|
|
1080
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
1081
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1082
|
-
case "InvalidRequestException":
|
|
1083
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
1084
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1085
|
-
case "PipelineDeletedException":
|
|
1086
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
1087
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
1088
|
-
case "PipelineNotFoundException":
|
|
1089
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
1090
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
1091
|
-
case "TaskNotFoundException":
|
|
1092
|
-
case "com.amazonaws.datapipeline#TaskNotFoundException":
|
|
1093
|
-
throw await de_TaskNotFoundExceptionRes(parsedOutput, context);
|
|
1094
|
-
default:
|
|
1095
|
-
const parsedBody = parsedOutput.body;
|
|
1096
|
-
return throwDefaultError({
|
|
1097
|
-
output,
|
|
1098
|
-
parsedBody,
|
|
1099
|
-
errorCode
|
|
1100
|
-
});
|
|
1101
|
-
}
|
|
1102
|
-
}, "de_SetTaskStatusCommandError");
|
|
1103
614
|
var de_ValidatePipelineDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1104
615
|
if (output.statusCode >= 300) {
|
|
1105
|
-
return
|
|
616
|
+
return de_CommandError(output, context);
|
|
1106
617
|
}
|
|
1107
618
|
const data = await parseBody(output.body, context);
|
|
1108
619
|
let contents = {};
|
|
@@ -1113,7 +624,7 @@ var de_ValidatePipelineDefinitionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1113
624
|
};
|
|
1114
625
|
return response;
|
|
1115
626
|
}, "de_ValidatePipelineDefinitionCommand");
|
|
1116
|
-
var
|
|
627
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1117
628
|
const parsedOutput = {
|
|
1118
629
|
...output,
|
|
1119
630
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1132,6 +643,9 @@ var de_ValidatePipelineDefinitionCommandError = /* @__PURE__ */ __name(async (ou
|
|
|
1132
643
|
case "PipelineNotFoundException":
|
|
1133
644
|
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
1134
645
|
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
646
|
+
case "TaskNotFoundException":
|
|
647
|
+
case "com.amazonaws.datapipeline#TaskNotFoundException":
|
|
648
|
+
throw await de_TaskNotFoundExceptionRes(parsedOutput, context);
|
|
1135
649
|
default:
|
|
1136
650
|
const parsedBody = parsedOutput.body;
|
|
1137
651
|
return throwDefaultError({
|
|
@@ -1140,7 +654,7 @@ var de_ValidatePipelineDefinitionCommandError = /* @__PURE__ */ __name(async (ou
|
|
|
1140
654
|
errorCode
|
|
1141
655
|
});
|
|
1142
656
|
}
|
|
1143
|
-
}, "
|
|
657
|
+
}, "de_CommandError");
|
|
1144
658
|
var de_InternalServiceErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1145
659
|
const body = parsedOutput.body;
|
|
1146
660
|
const deserialized = (0, import_smithy_client._json)(body);
|