Package software.amazon.awscdk.core
Class CfnRule.Builder
java.lang.Object
software.amazon.awscdk.core.CfnRule.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRule>
- Enclosing class:
CfnRule
@Stability(Stable)
public static final class CfnRule.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRule>
A fluent builder for
CfnRule
.-
Method Summary
Modifier and TypeMethodDescriptionassertions
(List<? extends CfnRuleAssertion> assertions) Assertions which define the rule.build()
static CfnRule.Builder
ruleCondition
(ICfnConditionExpression ruleCondition) If the rule condition evaluates to false, the rule doesn't take effect.
-
Method Details
-
create
@Stability(Stable) public static CfnRule.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- The parent construct. This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
CfnRule.Builder
.
-
assertions
Assertions which define the rule.Default: - No assertions for the rule.
- Parameters:
assertions
- Assertions which define the rule. This parameter is required.- Returns:
this
-
ruleCondition
If the rule condition evaluates to false, the rule doesn't take effect.If the function in the rule condition evaluates to true, expressions in each assert are evaluated and applied.
Default: - Rule's assertions will always take effect.
- Parameters:
ruleCondition
- If the rule condition evaluates to false, the rule doesn't take effect. This parameter is required.- Returns:
this
-
build
-