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 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

      @Stability(Stable) public CfnRule.Builder assertions(List<? extends CfnRuleAssertion> 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

      @Stability(Stable) public CfnRule.Builder ruleCondition(ICfnConditionExpression 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

      @Stability(Stable) public CfnRule build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnRule>
      Returns:
      a newly built instance of CfnRule.