stop_pipeline_execution
async
¶
stop_pipeline_execution(
pipeline_name: PipelineName,
pipeline_execution_id: PipelineExecutionId,
*,
config_overrides: Optional[AsyncCodePipelineClientConfig] = 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/async_code_pipeline.py
3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 | |