rollback_stage
async
¶
rollback_stage(
pipeline_name: PipelineName,
stage_name: StageName,
target_pipeline_execution_id: PipelineExecutionId,
*,
config_overrides: Optional[AsyncCodePipelineClientConfig] = 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/async_code_pipeline.py
3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 | |