Interface CfnRuleProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRuleProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-10-08T16:59:59.241Z")
@Stability(Stable)
public interface CfnRuleProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnRule.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.networksecuritymanager.*;
CfnRuleProps cfnRuleProps = CfnRuleProps.builder()
.ruleName("ruleName")
// the properties below are optional
.configuration("configuration")
.firewallType("firewallType")
.ruleDescription("ruleDescription")
.ruleType("ruleType")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnRulePropsstatic final classAn implementation forCfnRuleProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnRuleProps.Builderbuilder()default StringThe rule configuration as a JSON string.default StringThe type of firewall for this rule.default StringA description of the rule.The name of the rule.default StringThe type of rule.getTags()The tags associated with the rule.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRuleName
The name of the rule.- See Also:
-
getConfiguration
The rule configuration as a JSON string.- See Also:
-
getFirewallType
The type of firewall for this rule.- See Also:
-
getRuleDescription
A description of the rule.- See Also:
-
getRuleType
The type of rule.- See Also:
-
getTags
The tags associated with the rule.- See Also:
-
builder
- Returns:
- a
CfnRuleProps.BuilderofCfnRuleProps
-