Skip to content
v2.275.0

Condition Struct ​

The condition for the stage.

A condition is made up of the rules and the result for the condition.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codepipeline as codepipeline } from 'aws-cdk-lib';

declare const rule: codepipeline.Rule;
const condition: codepipeline.Condition = {
  result: codepipeline.Result.ROLLBACK,
  rules: [rule],
};

Properties ​

resultoptionalResultresultoptionalResultresultoptionalResultResultoptionalResultResultoptionalResult#
The action to be done when the condition is met.

Default: No result action is taken

rulesoptionalRule[]rulesoptionaltyping.List[Rule]rulesoptionalList<Rule>RulesoptionalRule[]Rulesoptional*[]Rule#
The rules that make up the condition.

Default: No rules are applied