| Modifier and Type | Method and Description |
|---|---|
CfnRule.Builder |
assertions(List<? extends CfnRuleAssertion> assertions)
Assertions which define the rule.
|
CfnRule |
build() |
static CfnRule.Builder |
create(software.constructs.Construct scope,
String id) |
CfnRule.Builder |
ruleCondition(ICfnConditionExpression ruleCondition)
If the rule condition evaluates to false, the rule doesn't take effect.
|
@Stability(value=Stable) public static CfnRule.Builder create(software.constructs.Construct scope, String id)
scope - The parent construct. This parameter is required.id - This parameter is required.CfnRule.Builder.@Stability(value=Stable) public CfnRule.Builder assertions(List<? extends CfnRuleAssertion> assertions)
Default: - No assertions for the rule.
assertions - Assertions which define the rule. This parameter is required.this@Stability(value=Stable) public CfnRule.Builder ruleCondition(ICfnConditionExpression ruleCondition)
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.
ruleCondition - If the rule condition evaluates to false, the rule doesn't take effect. This parameter is required.thisCopyright © 2021. All rights reserved.