Interface CfnRuleGroup.StatefulRuleProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnRuleGroup.StatefulRuleProperty.Jsii$Proxy
Enclosing class:
CfnRuleGroup

@Stability(Stable) public static interface CfnRuleGroup.StatefulRuleProperty extends software.amazon.jsii.JsiiSerializable
A single Suricata rules specification, for use in a stateful rule group.

Use this option to specify a simple Suricata rule with protocol, source and destination, ports, direction, and rule options. For information about the Suricata Rules format, see Rules Format .

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.networkfirewall.*;
 StatefulRuleProperty statefulRuleProperty = StatefulRuleProperty.builder()
         .action("action")
         .header(HeaderProperty.builder()
                 .destination("destination")
                 .destinationPort("destinationPort")
                 .direction("direction")
                 .protocol("protocol")
                 .source("source")
                 .sourcePort("sourcePort")
                 .build())
         .ruleOptions(List.of(RuleOptionProperty.builder()
                 .keyword("keyword")
                 // the properties below are optional
                 .settings(List.of("settings"))
                 .build()))
         .build();
 

See Also: