override_stage_condition
¶
override_stage_condition(
pipeline_name: PipelineName,
stage_name: StageName,
pipeline_execution_id: PipelineExecutionId,
condition_type: ConditionType,
*,
config_overrides: Optional[CodePipelineClientConfig] = None,
) -> None
Used to override a stage condition. For more information about conditions, see Stage conditions and How do stage conditions work?.
Parameters:
-
pipeline_name(PipelineName) –The name of the pipeline with the stage that will override the condition.
-
stage_name(StageName) –The name of the stage for the override.
-
pipeline_execution_id(PipelineExecutionId) –The ID of the pipeline execution for the override.
-
condition_type(ConditionType) –The type of condition to override for the stage, such as entry conditions, failure conditions, or success conditions.
Raises:
-
ConcurrentPipelineExecutionsLimitExceededException–The pipeline has reached the limit for concurrent pipeline executions.
-
ConditionNotOverridableException–Unable to override because the condition does not allow overrides.
-
ConflictException–Your request cannot be handled because the pipeline is busy handling ongoing activities. Try again later.
-
NotLatestPipelineExecutionException–The stage has failed in a later run of the pipeline and the
pipelineExecutionIdassociated with the request is out of date. -
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.
Source code in docs_src/capo_codepipeline/_services/code_pipeline.py
2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 | |