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 Summary
Modifier and TypeMethodDescriptionbuild()
The maximum operating resources that this rule group can use.static CfnRuleGroup.Builder
description
(String description) A description of the rule group.ruleGroup
(IResolvable ruleGroup) An object that defines the rule group rules.ruleGroup
(CfnRuleGroup.RuleGroupProperty ruleGroup) An object that defines the rule group rules.ruleGroupName
(String ruleGroupName) The descriptive name of the rule group.An array of key-value pairs to apply to this resource.Indicates whether the rule group is stateless or stateful.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnRuleGroup.Builder
.
-
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
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
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
A description of the rule group.- Parameters:
description
- A description of the rule group. This parameter is required.- Returns:
this
-
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
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
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
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRuleGroup>
- Returns:
- a newly built instance of
CfnRuleGroup
.
-