Class CfnRule.Builder
java.lang.Object
software.amazon.awscdk.services.networksecuritymanager.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 TypeMethodDescriptionbuild()configuration(String configuration) The rule configuration as a JSON string.static CfnRule.BuilderfirewallType(String firewallType) The type of firewall for this rule.ruleDescription(String ruleDescription) A description of the rule.The name of the rule.The type of rule.The tags associated with the rule.
-
Method Details
-
create
@Stability(Stable) public static CfnRule.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnRule.Builder.
-
ruleName
The name of the rule.- Parameters:
ruleName- The name of the rule. This parameter is required.- Returns:
this- See Also:
-
configuration
The rule configuration as a JSON string.- Parameters:
configuration- The rule configuration as a JSON string. This parameter is required.- Returns:
this- See Also:
-
firewallType
The type of firewall for this rule.- Parameters:
firewallType- The type of firewall for this rule. This parameter is required.- Returns:
this- See Also:
-
ruleDescription
A description of the rule.- Parameters:
ruleDescription- A description of the rule. This parameter is required.- Returns:
this- See Also:
-
ruleType
The type of rule.- Parameters:
ruleType- The type of rule. This parameter is required.- Returns:
this- See Also:
-
tags
The tags associated with the rule.- Parameters:
tags- The tags associated with the rule. This parameter is required.- Returns:
this- See Also:
-
build
-