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
3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 | |