interface Condition
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CodePipeline.Condition |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodepipeline#Condition |
Java | software.amazon.awscdk.services.codepipeline.Condition |
Python | aws_cdk.aws_codepipeline.Condition |
TypeScript (source) | aws-cdk-lib » aws_codepipeline » Condition |
The condition for the stage.
A condition is made up of the rules and the result for the condition.
Example
// 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
| Name | Type | Description |
|---|---|---|
| result? | Result | The action to be done when the condition is met. |
| rules? | Rule[] | The rules that make up the condition. |
result?
Type:
Result
(optional, default: No result action is taken)
The action to be done when the condition is met.
rules?
Type:
Rule[]
(optional, default: No rules are applied)
The rules that make up the condition.

.NET
Go
Java
Python
TypeScript (