Class CfnRuleGroup.Builder

java.lang.Object
software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroup>
Enclosing class:
CfnRuleGroup

@Stability(Stable) public static final class CfnRuleGroup.Builder extends Object implements software.amazon.jsii.Builder<CfnRuleGroup>
A fluent builder for CfnRuleGroup.
  • Method Details

    • create

      @Stability(Stable) public static CfnRuleGroup.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnRuleGroup.Builder.
    • capacity

      @Stability(Stable) public CfnRuleGroup.Builder capacity(Number capacity)
      The maximum operating resources that this rule group can use.

      You can't change a rule group's capacity setting after you create the rule group. When you update a rule group, you are limited to this capacity. When you reference a rule group from a firewall policy, Network Firewall reserves this capacity for the rule group.

      Parameters:
      capacity - The maximum operating resources that this rule group can use. This parameter is required.
      Returns:
      this
    • ruleGroupName

      @Stability(Stable) public CfnRuleGroup.Builder ruleGroupName(String ruleGroupName)
      The descriptive name of the rule group.

      You can't change the name of a rule group after you create it.

      Parameters:
      ruleGroupName - The descriptive name of the rule group. This parameter is required.
      Returns:
      this
    • type

      @Stability(Stable) public CfnRuleGroup.Builder type(String type)
      Indicates whether the rule group is stateless or stateful.

      If the rule group is stateless, it contains stateless rules. If it is stateful, it contains stateful rules.

      Parameters:
      type - Indicates whether the rule group is stateless or stateful. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnRuleGroup.Builder description(String description)
      A description of the rule group.

      Parameters:
      description - A description of the rule group. This parameter is required.
      Returns:
      this
    • ruleGroup

      @Stability(Stable) public CfnRuleGroup.Builder ruleGroup(IResolvable ruleGroup)
      An object that defines the rule group rules.

      Parameters:
      ruleGroup - An object that defines the rule group rules. This parameter is required.
      Returns:
      this
    • ruleGroup

      @Stability(Stable) public CfnRuleGroup.Builder ruleGroup(CfnRuleGroup.RuleGroupProperty ruleGroup)
      An object that defines the rule group rules.

      Parameters:
      ruleGroup - An object that defines the rule group rules. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnRuleGroup.Builder tags(List<? extends CfnTag> tags)
      An array of key-value pairs to apply to this resource.

      For more information, see Tag .

      Parameters:
      tags - An array of key-value pairs to apply to this resource. This parameter is required.
      Returns:
      this
    • build

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