@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StatefulRule extends Object implements Serializable, Cloneable, StructuredPojo
A single 5-tuple stateful rule, for use in a stateful rule group.
Constructor and Description |
---|
StatefulRule() |
Modifier and Type | Method and Description |
---|---|
StatefulRule |
clone() |
boolean |
equals(Object obj) |
String |
getAction()
Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the stateful
rule criteria.
|
Header |
getHeader()
The stateful 5-tuple inspection criteria for this rule, used to inspect traffic flows.
|
List<RuleOption> |
getRuleOptions()
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAction(String action)
Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the stateful
rule criteria.
|
void |
setHeader(Header header)
The stateful 5-tuple inspection criteria for this rule, used to inspect traffic flows.
|
void |
setRuleOptions(Collection<RuleOption> ruleOptions)
|
String |
toString()
Returns a string representation of this object.
|
StatefulRule |
withAction(StatefulAction action)
Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the stateful
rule criteria.
|
StatefulRule |
withAction(String action)
Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the stateful
rule criteria.
|
StatefulRule |
withHeader(Header header)
The stateful 5-tuple inspection criteria for this rule, used to inspect traffic flows.
|
StatefulRule |
withRuleOptions(Collection<RuleOption> ruleOptions)
|
StatefulRule |
withRuleOptions(RuleOption... ruleOptions)
|
public void setAction(String action)
Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the stateful rule criteria. 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:
PASS - Permits the packets to go to the intended destination.
DROP - Blocks the packets from going to the intended destination and sends an alert log message, if alert logging is configured in the Firewall LoggingConfiguration.
ALERT - Permits the packets to go to the intended destination and sends an alert log message, if alert logging is configured in the Firewall 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
.
action
- Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the
stateful rule criteria. 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:
PASS - Permits the packets to go to the intended destination.
DROP - Blocks the packets from going to the intended destination and sends an alert log message, if alert logging is configured in the Firewall LoggingConfiguration.
ALERT - Permits the packets to go to the intended destination and sends an alert log message, if alert logging is configured in the Firewall 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
.
StatefulAction
public String getAction()
Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the stateful rule criteria. 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:
PASS - Permits the packets to go to the intended destination.
DROP - Blocks the packets from going to the intended destination and sends an alert log message, if alert logging is configured in the Firewall LoggingConfiguration.
ALERT - Permits the packets to go to the intended destination and sends an alert log message, if alert logging is configured in the Firewall 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
.
The actions for a stateful rule are defined as follows:
PASS - Permits the packets to go to the intended destination.
DROP - Blocks the packets from going to the intended destination and sends an alert log message, if alert logging is configured in the Firewall LoggingConfiguration.
ALERT - Permits the packets to go to the intended destination and sends an alert log message, if alert logging is configured in the Firewall 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
.
StatefulAction
public StatefulRule withAction(String action)
Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the stateful rule criteria. 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:
PASS - Permits the packets to go to the intended destination.
DROP - Blocks the packets from going to the intended destination and sends an alert log message, if alert logging is configured in the Firewall LoggingConfiguration.
ALERT - Permits the packets to go to the intended destination and sends an alert log message, if alert logging is configured in the Firewall 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
.
action
- Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the
stateful rule criteria. 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:
PASS - Permits the packets to go to the intended destination.
DROP - Blocks the packets from going to the intended destination and sends an alert log message, if alert logging is configured in the Firewall LoggingConfiguration.
ALERT - Permits the packets to go to the intended destination and sends an alert log message, if alert logging is configured in the Firewall 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
.
StatefulAction
public StatefulRule withAction(StatefulAction action)
Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the stateful rule criteria. 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:
PASS - Permits the packets to go to the intended destination.
DROP - Blocks the packets from going to the intended destination and sends an alert log message, if alert logging is configured in the Firewall LoggingConfiguration.
ALERT - Permits the packets to go to the intended destination and sends an alert log message, if alert logging is configured in the Firewall 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
.
action
- Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the
stateful rule criteria. 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:
PASS - Permits the packets to go to the intended destination.
DROP - Blocks the packets from going to the intended destination and sends an alert log message, if alert logging is configured in the Firewall LoggingConfiguration.
ALERT - Permits the packets to go to the intended destination and sends an alert log message, if alert logging is configured in the Firewall 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
.
StatefulAction
public void setHeader(Header header)
The stateful 5-tuple inspection criteria for this rule, used to inspect traffic flows.
header
- The stateful 5-tuple inspection criteria for this rule, used to inspect traffic flows.public Header getHeader()
The stateful 5-tuple inspection criteria for this rule, used to inspect traffic flows.
public StatefulRule withHeader(Header header)
The stateful 5-tuple inspection criteria for this rule, used to inspect traffic flows.
header
- The stateful 5-tuple inspection criteria for this rule, used to inspect traffic flows.public List<RuleOption> getRuleOptions()
public void setRuleOptions(Collection<RuleOption> ruleOptions)
ruleOptions
- public StatefulRule withRuleOptions(RuleOption... ruleOptions)
NOTE: This method appends the values to the existing list (if any). Use
setRuleOptions(java.util.Collection)
or withRuleOptions(java.util.Collection)
if you want to
override the existing values.
ruleOptions
- public StatefulRule withRuleOptions(Collection<RuleOption> ruleOptions)
ruleOptions
- public String toString()
toString
in class Object
Object.toString()
public StatefulRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.