disable_stage_transition
async
¶
disable_stage_transition(
pipeline_name: PipelineName,
stage_name: StageName,
transition_type: StageTransitionType,
reason: DisabledReason,
*,
config_overrides: Optional[AsyncCodePipelineClientConfig] = None,
) -> None
Prevents artifacts in a pipeline from transitioning to the next stage in the pipeline.
Parameters:
-
pipeline_name(PipelineName) –The name of the pipeline in which you want to disable the flow of artifacts from one stage to another.
-
stage_name(StageName) –The name of the stage where you want to disable the inbound or outbound transition of artifacts.
-
transition_type(StageTransitionType) –Specifies whether artifacts are prevented from transitioning into the stage and being processed by the actions in that stage (inbound), or prevented from transitioning from the stage after they have been processed by the actions in that stage (outbound).
-
reason(DisabledReason) –The reason given to the user that a stage is disabled, such as waiting for manual approval or manual tests. This message is displayed in the pipeline console UI.
Raises:
-
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.
-
ValidationException–The validation was specified in an invalid format.
-
UnknownServiceError–The service returned an error code this client does not model.