Interface StatefulRule.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<StatefulRule.Builder,,- StatefulRule> - SdkBuilder<StatefulRule.Builder,,- StatefulRule> - SdkPojo
- Enclosing class:
- StatefulRule
- 
Method SummaryModifier and TypeMethodDescriptionDefines what Network Firewall should do with the packets in a traffic flow when the flow matches the stateful rule criteria.action(StatefulAction action) Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the stateful rule criteria.default StatefulRule.Builderheader(Consumer<Header.Builder> header) The stateful inspection criteria for this rule, used to inspect traffic flows.The stateful inspection criteria for this rule, used to inspect traffic flows.ruleOptions(Collection<RuleOption> ruleOptions) Additional options for the rule.ruleOptions(Consumer<RuleOption.Builder>... ruleOptions) Additional options for the rule.ruleOptions(RuleOption... ruleOptions) Additional options for the rule.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
actionDefines 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 - 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 ALERTaction, verify in the logs that the rule is filtering as you want, then change the action toDROP.
- 
 REJECT - Drops traffic that matches the conditions of the stateful rule, and sends a TCP reset packet back to sender of the packet. A TCP reset packet is a packet with no payload and an RST bit contained in the TCP header flags. REJECT is available only for TCP traffic. This option doesn't support FTP or IMAP protocols. 
 - Parameters:
- 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 - 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 ALERTaction, verify in the logs that the rule is filtering as you want, then change the action toDROP.
- 
        REJECT - Drops traffic that matches the conditions of the stateful rule, and sends a TCP reset packet back to sender of the packet. A TCP reset packet is a packet with no payload and an RST bit contained in the TCP header flags. REJECT is available only for TCP traffic. This option doesn't support FTP or IMAP protocols. 
 
- 
        
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
 
- 
actionDefines 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 - 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 ALERTaction, verify in the logs that the rule is filtering as you want, then change the action toDROP.
- 
 REJECT - Drops traffic that matches the conditions of the stateful rule, and sends a TCP reset packet back to sender of the packet. A TCP reset packet is a packet with no payload and an RST bit contained in the TCP header flags. REJECT is available only for TCP traffic. This option doesn't support FTP or IMAP protocols. 
 - Parameters:
- 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 - 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 ALERTaction, verify in the logs that the rule is filtering as you want, then change the action toDROP.
- 
        REJECT - Drops traffic that matches the conditions of the stateful rule, and sends a TCP reset packet back to sender of the packet. A TCP reset packet is a packet with no payload and an RST bit contained in the TCP header flags. REJECT is available only for TCP traffic. This option doesn't support FTP or IMAP protocols. 
 
- 
        
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
 
- 
headerThe stateful inspection criteria for this rule, used to inspect traffic flows. - Parameters:
- header- The stateful inspection criteria for this rule, used to inspect traffic flows.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
headerThe stateful inspection criteria for this rule, used to inspect traffic flows. This is a convenience method that creates an instance of theHeader.Builderavoiding the need to create one manually viaHeader.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toheader(Header).- Parameters:
- header- a consumer that will call methods on- Header.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
ruleOptionsAdditional options for the rule. These are the Suricata RuleOptionssettings.- Parameters:
- ruleOptions- Additional options for the rule. These are the Suricata- RuleOptionssettings.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
ruleOptionsAdditional options for the rule. These are the Suricata RuleOptionssettings.- Parameters:
- ruleOptions- Additional options for the rule. These are the Suricata- RuleOptionssettings.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
ruleOptionsAdditional options for the rule. These are the Suricata This is a convenience method that creates an instance of theRuleOptionssettings.RuleOption.Builderavoiding the need to create one manually viaRuleOption.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toruleOptions(List<RuleOption>).- Parameters:
- ruleOptions- a consumer that will call methods on- RuleOption.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-