rollback_stage
¶
rollback_stage(
pipeline_name: PipelineName,
stage_name: StageName,
target_pipeline_execution_id: PipelineExecutionId,
*,
config_overrides: Optional[CodePipelineClientConfig] = None,
) -> RollbackStageOutput
Rolls back a stage execution.
Parameters:
-
pipeline_name(PipelineName) –The name of the pipeline for which the stage will be rolled back.
-
stage_name(StageName) –The name of the stage in the pipeline to be rolled back.
-
target_pipeline_execution_id(PipelineExecutionId) –The pipeline execution ID for the stage to be rolled back to.
Raises:
-
ConflictException–Your request cannot be handled because the pipeline is busy handling ongoing activities. Try again later.
-
PipelineExecutionNotFoundException–The pipeline execution was specified in an invalid format or cannot be found, or an execution ID does not belong to the specified pipeline.
-
PipelineExecutionOutdatedException–The specified pipeline execution is outdated and cannot be used as a target pipeline execution for rollback.
-
PipelineNotFoundException–The pipeline was specified in an invalid format or cannot be found.
-
StageNotFoundException–The stage was specified in an invalid format or cannot be found.
-
UnableToRollbackStageException–Unable to roll back the stage. The cause might be if the pipeline version has changed since the target pipeline execution was deployed, the stage is currently running, or an incorrect target pipeline execution ID was provided.
-
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
2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 | |