stop_pipeline_execution
¶
stop_pipeline_execution(
pipeline_name: PipelineName,
pipeline_execution_id: PipelineExecutionId,
*,
config_overrides: Optional[CodePipelineClientConfig] = None,
abandon: Optional[Boolean] = None,
reason: Optional[StopPipelineExecutionReason] = None,
) -> StopPipelineExecutionOutput
Stops the specified pipeline execution. You choose to either stop the pipeline execution by completing in-progress actions without starting subsequent actions, or by abandoning in-progress actions. While completing or abandoning in-progress actions, the pipeline execution is in a Stopping state. After all in-progress actions are completed or abandoned, the pipeline execution is in a Stopped state.
Parameters:
-
pipeline_name(PipelineName) –The name of the pipeline to stop.
-
pipeline_execution_id(PipelineExecutionId) –The ID of the pipeline execution to be stopped in the current stage. Use the
GetPipelineStateaction to retrieve the current pipelineExecutionId. -
abandon(Optional[Boolean], default:None) –Use this option to stop the pipeline execution by abandoning, rather than finishing, in-progress actions.
This option can lead to failed or out-of-sequence tasks.
-
reason(Optional[StopPipelineExecutionReason], default:None) –Use this option to enter comments, such as the reason the pipeline was stopped.
Raises:
-
ConflictException–Your request cannot be handled because the pipeline is busy handling ongoing activities. Try again later.
-
DuplicatedStopRequestException–The pipeline execution is already in a
Stoppingstate. If you already chose to stop and wait, you cannot make that request again. You can choose to stop and abandon now, but be aware that this option can lead to failed tasks or out of sequence tasks. If you already chose to stop and abandon, you cannot make that request again. -
PipelineExecutionNotStoppableException–Unable to stop the pipeline execution. The execution might already be in a
Stoppedstate, or it might no longer be in progress. -
PipelineNotFoundException–The pipeline was specified in an invalid format or cannot be found.
-
ValidationException–The validation was specified in an invalid format.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codepipeline/_services/code_pipeline.py
2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 | |