@Stability(value=Stable) public static final class CfnRuleGroup.StatefulRuleProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnRuleGroup.StatefulRuleProperty>
CfnRuleGroup.StatefulRuleProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnRuleGroup.StatefulRuleProperty.Builder |
action(String action)
Sets the value of
CfnRuleGroup.StatefulRuleProperty.getAction() |
CfnRuleGroup.StatefulRuleProperty |
build()
Builds the configured instance.
|
CfnRuleGroup.StatefulRuleProperty.Builder |
header(CfnRuleGroup.HeaderProperty header)
Sets the value of
CfnRuleGroup.StatefulRuleProperty.getHeader() |
CfnRuleGroup.StatefulRuleProperty.Builder |
header(IResolvable header)
Sets the value of
CfnRuleGroup.StatefulRuleProperty.getHeader() |
CfnRuleGroup.StatefulRuleProperty.Builder |
ruleOptions(IResolvable ruleOptions)
Sets the value of
CfnRuleGroup.StatefulRuleProperty.getRuleOptions() |
CfnRuleGroup.StatefulRuleProperty.Builder |
ruleOptions(List<? extends Object> ruleOptions)
Sets the value of
CfnRuleGroup.StatefulRuleProperty.getRuleOptions() |
@Stability(value=Stable) public CfnRuleGroup.StatefulRuleProperty.Builder action(String action)
CfnRuleGroup.StatefulRuleProperty.getAction()action - Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the stateful rule criteria. This parameter is required.
For all actions, Network Firewall performs the specified action and discontinues stateful inspection of the traffic flow.
The actions for a stateful rule are defined as follows:
LoggingConfiguration .LoggingConfiguration .
You can use this action to test a rule that you intend to use to drop traffic. You can enable the rule with ALERT action, verify in the logs that the rule is filtering as you want, then change the action to DROP .
this@Stability(value=Stable) public CfnRuleGroup.StatefulRuleProperty.Builder header(CfnRuleGroup.HeaderProperty header)
CfnRuleGroup.StatefulRuleProperty.getHeader()header - The stateful inspection criteria for this rule, used to inspect traffic flows. This parameter is required.this@Stability(value=Stable) public CfnRuleGroup.StatefulRuleProperty.Builder header(IResolvable header)
CfnRuleGroup.StatefulRuleProperty.getHeader()header - The stateful inspection criteria for this rule, used to inspect traffic flows. This parameter is required.this@Stability(value=Stable) public CfnRuleGroup.StatefulRuleProperty.Builder ruleOptions(IResolvable ruleOptions)
CfnRuleGroup.StatefulRuleProperty.getRuleOptions()ruleOptions - Additional settings for a stateful rule, provided as keywords and settings. This parameter is required.this@Stability(value=Stable) public CfnRuleGroup.StatefulRuleProperty.Builder ruleOptions(List<? extends Object> ruleOptions)
CfnRuleGroup.StatefulRuleProperty.getRuleOptions()ruleOptions - Additional settings for a stateful rule, provided as keywords and settings. This parameter is required.this@Stability(value=Stable) public CfnRuleGroup.StatefulRuleProperty build()
build in interface software.amazon.jsii.Builder<CfnRuleGroup.StatefulRuleProperty>CfnRuleGroup.StatefulRulePropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.