Interface FirewallPolicyV2.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<FirewallPolicyV2.Builder,,FirewallPolicyV2> SdkBuilder<FirewallPolicyV2.Builder,,FirewallPolicyV2> SdkPojo
- Enclosing class:
FirewallPolicyV2
-
Method Summary
Modifier and TypeMethodDescriptionfirewallDefaultAction(String firewallDefaultAction) The action that the firewall engine takes on traffic that doesn't match any firewall engine rule at a hook.firewallDefaultAction(PolicyDefaultAction firewallDefaultAction) The action that the firewall engine takes on traffic that doesn't match any firewall engine rule at a hook.firewallRuleGroupEntries(Collection<FirewallRuleGroupEntry> firewallRuleGroupEntries) The firewall section of the policy—the rule groups that the firewall engine evaluates.firewallRuleGroupEntries(Consumer<FirewallRuleGroupEntry.Builder>... firewallRuleGroupEntries) The firewall section of the policy—the rule groups that the firewall engine evaluates.firewallRuleGroupEntries(FirewallRuleGroupEntry... firewallRuleGroupEntries) The firewall section of the policy—the rule groups that the firewall engine evaluates.ipsRuleGroupEntries(Collection<IpsRuleGroupEntry> ipsRuleGroupEntries) The IPS section of the policy—the rule groups that the IPS engine evaluates.ipsRuleGroupEntries(Consumer<IpsRuleGroupEntry.Builder>... ipsRuleGroupEntries) The IPS section of the policy—the rule groups that the IPS engine evaluates.ipsRuleGroupEntries(IpsRuleGroupEntry... ipsRuleGroupEntries) The IPS section of the policy—the rule groups that the IPS engine evaluates.policyMode(String policyMode) Indicates whether the policy's engines enforce their verdicts or only report them.policyMode(PolicyMode policyMode) Indicates whether the policy's engines enforce their verdicts or only report them.default FirewallPolicyV2.BuilderpolicyVariables(Consumer<PolicyVariables.Builder> policyVariables) Contains variables that you can use to override default Suricata settings in your Next Generation policy.policyVariables(PolicyVariables policyVariables) Contains variables that you can use to override default Suricata settings in your Next Generation policy.default FirewallPolicyV2.Builderroute53ResolvedIPValidation(Consumer<Route53ResolvedIPValidation.Builder> route53ResolvedIPValidation) The settings that enable resolved IP validation for the Next Generation policy.route53ResolvedIPValidation(Route53ResolvedIPValidation route53ResolvedIPValidation) The settings that enable resolved IP validation for the Next Generation policy.default FirewallPolicyV2.BuilderstatefulEngineOptions(Consumer<StatefulEngineOptionsV2.Builder> statefulEngineOptions) Additional options governing how the engines handle stateful traffic, such as the stream exception policy and flow timeouts.statefulEngineOptions(StatefulEngineOptionsV2 statefulEngineOptions) Additional options governing how the engines handle stateful traffic, such as the stream exception policy and flow timeouts.tlsInspectionConfigurationArn(String tlsInspectionConfigurationArn) The Amazon Resource Name (ARN) of the TLS inspection configuration to use to decrypt traffic for inspection.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
firewallRuleGroupEntries
FirewallPolicyV2.Builder firewallRuleGroupEntries(Collection<FirewallRuleGroupEntry> firewallRuleGroupEntries) The firewall section of the policy—the rule groups that the firewall engine evaluates. Each entry references an existing firewall engine rule group or embeds a rule group directly in the policy, and each entry has a unique priority that sets its evaluation order within the section.
- Parameters:
firewallRuleGroupEntries- The firewall section of the policy—the rule groups that the firewall engine evaluates. Each entry references an existing firewall engine rule group or embeds a rule group directly in the policy, and each entry has a unique priority that sets its evaluation order within the section.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
firewallRuleGroupEntries
FirewallPolicyV2.Builder firewallRuleGroupEntries(FirewallRuleGroupEntry... firewallRuleGroupEntries) The firewall section of the policy—the rule groups that the firewall engine evaluates. Each entry references an existing firewall engine rule group or embeds a rule group directly in the policy, and each entry has a unique priority that sets its evaluation order within the section.
- Parameters:
firewallRuleGroupEntries- The firewall section of the policy—the rule groups that the firewall engine evaluates. Each entry references an existing firewall engine rule group or embeds a rule group directly in the policy, and each entry has a unique priority that sets its evaluation order within the section.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
firewallRuleGroupEntries
FirewallPolicyV2.Builder firewallRuleGroupEntries(Consumer<FirewallRuleGroupEntry.Builder>... firewallRuleGroupEntries) The firewall section of the policy—the rule groups that the firewall engine evaluates. Each entry references an existing firewall engine rule group or embeds a rule group directly in the policy, and each entry has a unique priority that sets its evaluation order within the section.
This is a convenience method that creates an instance of theFirewallRuleGroupEntry.Builderavoiding the need to create one manually viaFirewallRuleGroupEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofirewallRuleGroupEntries(List<FirewallRuleGroupEntry>).- Parameters:
firewallRuleGroupEntries- a consumer that will call methods onFirewallRuleGroupEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipsRuleGroupEntries
The IPS section of the policy—the rule groups that the IPS engine evaluates. Each entry references an existing IPS engine rule group or embeds a rule group directly in the policy. IPS section entries don't use a priority.
- Parameters:
ipsRuleGroupEntries- The IPS section of the policy—the rule groups that the IPS engine evaluates. Each entry references an existing IPS engine rule group or embeds a rule group directly in the policy. IPS section entries don't use a priority.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipsRuleGroupEntries
The IPS section of the policy—the rule groups that the IPS engine evaluates. Each entry references an existing IPS engine rule group or embeds a rule group directly in the policy. IPS section entries don't use a priority.
- Parameters:
ipsRuleGroupEntries- The IPS section of the policy—the rule groups that the IPS engine evaluates. Each entry references an existing IPS engine rule group or embeds a rule group directly in the policy. IPS section entries don't use a priority.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipsRuleGroupEntries
FirewallPolicyV2.Builder ipsRuleGroupEntries(Consumer<IpsRuleGroupEntry.Builder>... ipsRuleGroupEntries) The IPS section of the policy—the rule groups that the IPS engine evaluates. Each entry references an existing IPS engine rule group or embeds a rule group directly in the policy. IPS section entries don't use a priority.
This is a convenience method that creates an instance of theIpsRuleGroupEntry.Builderavoiding the need to create one manually viaIpsRuleGroupEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toipsRuleGroupEntries(List<IpsRuleGroupEntry>).- Parameters:
ipsRuleGroupEntries- a consumer that will call methods onIpsRuleGroupEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
policyMode
Indicates whether the policy's engines enforce their verdicts or only report them. In
ENFORCEmode, the firewall engine and IPS engine apply their verdicts to traffic. InMONITORmode, the engines evaluate traffic and generate logs and metrics, but don't block traffic, so you can observe how a policy would behave before you enforce it. For more information, see Next Generation policies in the Network Firewall Developer Guide.- Parameters:
policyMode- Indicates whether the policy's engines enforce their verdicts or only report them. InENFORCEmode, the firewall engine and IPS engine apply their verdicts to traffic. InMONITORmode, the engines evaluate traffic and generate logs and metrics, but don't block traffic, so you can observe how a policy would behave before you enforce it. For more information, see Next Generation policies in the Network Firewall Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
policyMode
Indicates whether the policy's engines enforce their verdicts or only report them. In
ENFORCEmode, the firewall engine and IPS engine apply their verdicts to traffic. InMONITORmode, the engines evaluate traffic and generate logs and metrics, but don't block traffic, so you can observe how a policy would behave before you enforce it. For more information, see Next Generation policies in the Network Firewall Developer Guide.- Parameters:
policyMode- Indicates whether the policy's engines enforce their verdicts or only report them. InENFORCEmode, the firewall engine and IPS engine apply their verdicts to traffic. InMONITORmode, the engines evaluate traffic and generate logs and metrics, but don't block traffic, so you can observe how a policy would behave before you enforce it. For more information, see Next Generation policies in the Network Firewall Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
firewallDefaultAction
The action that the firewall engine takes on traffic that doesn't match any firewall engine rule at a hook. The firewall engine is drop by default. You can set the default action to one of the following:
-
DROP- Block the traffic. -
ACCEPT- Allow the traffic. -
REJECT- Block the traffic and send a TCP reset packet back to the client. -
ALERT- Allow the traffic and generate an alert log for the traffic that reaches the default action at every hook. This is distinct from setting the policy mode toMONITOR.
For more information, see Next Generation policies in the Network Firewall Developer Guide.
- Parameters:
firewallDefaultAction- The action that the firewall engine takes on traffic that doesn't match any firewall engine rule at a hook. The firewall engine is drop by default. You can set the default action to one of the following:-
DROP- Block the traffic. -
ACCEPT- Allow the traffic. -
REJECT- Block the traffic and send a TCP reset packet back to the client. -
ALERT- Allow the traffic and generate an alert log for the traffic that reaches the default action at every hook. This is distinct from setting the policy mode toMONITOR.
For more information, see Next Generation policies in the Network Firewall Developer Guide.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
firewallDefaultAction
The action that the firewall engine takes on traffic that doesn't match any firewall engine rule at a hook. The firewall engine is drop by default. You can set the default action to one of the following:
-
DROP- Block the traffic. -
ACCEPT- Allow the traffic. -
REJECT- Block the traffic and send a TCP reset packet back to the client. -
ALERT- Allow the traffic and generate an alert log for the traffic that reaches the default action at every hook. This is distinct from setting the policy mode toMONITOR.
For more information, see Next Generation policies in the Network Firewall Developer Guide.
- Parameters:
firewallDefaultAction- The action that the firewall engine takes on traffic that doesn't match any firewall engine rule at a hook. The firewall engine is drop by default. You can set the default action to one of the following:-
DROP- Block the traffic. -
ACCEPT- Allow the traffic. -
REJECT- Block the traffic and send a TCP reset packet back to the client. -
ALERT- Allow the traffic and generate an alert log for the traffic that reaches the default action at every hook. This is distinct from setting the policy mode toMONITOR.
For more information, see Next Generation policies in the Network Firewall Developer Guide.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
statefulEngineOptions
Additional options governing how the engines handle stateful traffic, such as the stream exception policy and flow timeouts.
- Parameters:
statefulEngineOptions- Additional options governing how the engines handle stateful traffic, such as the stream exception policy and flow timeouts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statefulEngineOptions
default FirewallPolicyV2.Builder statefulEngineOptions(Consumer<StatefulEngineOptionsV2.Builder> statefulEngineOptions) Additional options governing how the engines handle stateful traffic, such as the stream exception policy and flow timeouts.
This is a convenience method that creates an instance of theStatefulEngineOptionsV2.Builderavoiding the need to create one manually viaStatefulEngineOptionsV2.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostatefulEngineOptions(StatefulEngineOptionsV2).- Parameters:
statefulEngineOptions- a consumer that will call methods onStatefulEngineOptionsV2.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tlsInspectionConfigurationArn
The Amazon Resource Name (ARN) of the TLS inspection configuration to use to decrypt traffic for inspection. Next Generation policies support session holding only. For more information, see Inspecting SSL/TLS traffic with TLS inspection configurations in the Network Firewall Developer Guide.
- Parameters:
tlsInspectionConfigurationArn- The Amazon Resource Name (ARN) of the TLS inspection configuration to use to decrypt traffic for inspection. Next Generation policies support session holding only. For more information, see Inspecting SSL/TLS traffic with TLS inspection configurations in the Network Firewall Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyVariables
Contains variables that you can use to override default Suricata settings in your Next Generation policy.
- Parameters:
policyVariables- Contains variables that you can use to override default Suricata settings in your Next Generation policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyVariables
Contains variables that you can use to override default Suricata settings in your Next Generation policy.
This is a convenience method that creates an instance of thePolicyVariables.Builderavoiding the need to create one manually viaPolicyVariables.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topolicyVariables(PolicyVariables).- Parameters:
policyVariables- a consumer that will call methods onPolicyVariables.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
route53ResolvedIPValidation
FirewallPolicyV2.Builder route53ResolvedIPValidation(Route53ResolvedIPValidation route53ResolvedIPValidation) The settings that enable resolved IP validation for the Next Generation policy. Resolved IP validation verifies that a connection's destination IP address is one that the Amazon Route 53 Resolver returned in a DNS response for a domain. A VPC that's associated with the Route 53 Resolver DNS Firewall rule group that you specify must send the response. This checks how the destination IP address was obtained, instead of relying only on the domain that the client asserts in its TLS Server Name Indication (SNI) or HTTP
Hostheader. For more information, see Route53ResolvedIPValidation.- Parameters:
route53ResolvedIPValidation- The settings that enable resolved IP validation for the Next Generation policy. Resolved IP validation verifies that a connection's destination IP address is one that the Amazon Route 53 Resolver returned in a DNS response for a domain. A VPC that's associated with the Route 53 Resolver DNS Firewall rule group that you specify must send the response. This checks how the destination IP address was obtained, instead of relying only on the domain that the client asserts in its TLS Server Name Indication (SNI) or HTTPHostheader. For more information, see Route53ResolvedIPValidation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
route53ResolvedIPValidation
default FirewallPolicyV2.Builder route53ResolvedIPValidation(Consumer<Route53ResolvedIPValidation.Builder> route53ResolvedIPValidation) The settings that enable resolved IP validation for the Next Generation policy. Resolved IP validation verifies that a connection's destination IP address is one that the Amazon Route 53 Resolver returned in a DNS response for a domain. A VPC that's associated with the Route 53 Resolver DNS Firewall rule group that you specify must send the response. This checks how the destination IP address was obtained, instead of relying only on the domain that the client asserts in its TLS Server Name Indication (SNI) or HTTP
This is a convenience method that creates an instance of theHostheader. For more information, see Route53ResolvedIPValidation.Route53ResolvedIPValidation.Builderavoiding the need to create one manually viaRoute53ResolvedIPValidation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toroute53ResolvedIPValidation(Route53ResolvedIPValidation).- Parameters:
route53ResolvedIPValidation- a consumer that will call methods onRoute53ResolvedIPValidation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-