@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FirewallPolicy extends Object implements Serializable, Cloneable, StructuredPojo
The firewall policy defines the behavior of a firewall using a collection of stateless and stateful rule groups and other settings. You can use one firewall policy for multiple firewalls.
This, along with FirewallPolicyResponse, define the policy. You can retrieve all objects for a firewall policy by calling DescribeFirewallPolicy.
Constructor and Description |
---|
FirewallPolicy() |
Modifier and Type | Method and Description |
---|---|
FirewallPolicy |
clone() |
boolean |
equals(Object obj) |
List<StatefulRuleGroupReference> |
getStatefulRuleGroupReferences()
References to the stateless rule groups that are used in the policy.
|
List<CustomAction> |
getStatelessCustomActions()
The custom action definitions that are available for use in the firewall policy's
StatelessDefaultActions setting. |
List<String> |
getStatelessDefaultActions()
The actions to take on a packet if it doesn't match any of the stateless rules in the policy.
|
List<String> |
getStatelessFragmentDefaultActions()
The actions to take on a fragmented UDP packet if it doesn't match any of the stateless rules in the policy.
|
List<StatelessRuleGroupReference> |
getStatelessRuleGroupReferences()
References to the stateless rule groups that are used in the policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setStatefulRuleGroupReferences(Collection<StatefulRuleGroupReference> statefulRuleGroupReferences)
References to the stateless rule groups that are used in the policy.
|
void |
setStatelessCustomActions(Collection<CustomAction> statelessCustomActions)
The custom action definitions that are available for use in the firewall policy's
StatelessDefaultActions setting. |
void |
setStatelessDefaultActions(Collection<String> statelessDefaultActions)
The actions to take on a packet if it doesn't match any of the stateless rules in the policy.
|
void |
setStatelessFragmentDefaultActions(Collection<String> statelessFragmentDefaultActions)
The actions to take on a fragmented UDP packet if it doesn't match any of the stateless rules in the policy.
|
void |
setStatelessRuleGroupReferences(Collection<StatelessRuleGroupReference> statelessRuleGroupReferences)
References to the stateless rule groups that are used in the policy.
|
String |
toString()
Returns a string representation of this object.
|
FirewallPolicy |
withStatefulRuleGroupReferences(Collection<StatefulRuleGroupReference> statefulRuleGroupReferences)
References to the stateless rule groups that are used in the policy.
|
FirewallPolicy |
withStatefulRuleGroupReferences(StatefulRuleGroupReference... statefulRuleGroupReferences)
References to the stateless rule groups that are used in the policy.
|
FirewallPolicy |
withStatelessCustomActions(Collection<CustomAction> statelessCustomActions)
The custom action definitions that are available for use in the firewall policy's
StatelessDefaultActions setting. |
FirewallPolicy |
withStatelessCustomActions(CustomAction... statelessCustomActions)
The custom action definitions that are available for use in the firewall policy's
StatelessDefaultActions setting. |
FirewallPolicy |
withStatelessDefaultActions(Collection<String> statelessDefaultActions)
The actions to take on a packet if it doesn't match any of the stateless rules in the policy.
|
FirewallPolicy |
withStatelessDefaultActions(String... statelessDefaultActions)
The actions to take on a packet if it doesn't match any of the stateless rules in the policy.
|
FirewallPolicy |
withStatelessFragmentDefaultActions(Collection<String> statelessFragmentDefaultActions)
The actions to take on a fragmented UDP packet if it doesn't match any of the stateless rules in the policy.
|
FirewallPolicy |
withStatelessFragmentDefaultActions(String... statelessFragmentDefaultActions)
The actions to take on a fragmented UDP packet if it doesn't match any of the stateless rules in the policy.
|
FirewallPolicy |
withStatelessRuleGroupReferences(Collection<StatelessRuleGroupReference> statelessRuleGroupReferences)
References to the stateless rule groups that are used in the policy.
|
FirewallPolicy |
withStatelessRuleGroupReferences(StatelessRuleGroupReference... statelessRuleGroupReferences)
References to the stateless rule groups that are used in the policy.
|
public List<StatelessRuleGroupReference> getStatelessRuleGroupReferences()
References to the stateless rule groups that are used in the policy. These define the matching criteria in stateless rules.
public void setStatelessRuleGroupReferences(Collection<StatelessRuleGroupReference> statelessRuleGroupReferences)
References to the stateless rule groups that are used in the policy. These define the matching criteria in stateless rules.
statelessRuleGroupReferences
- References to the stateless rule groups that are used in the policy. These define the matching criteria in
stateless rules.public FirewallPolicy withStatelessRuleGroupReferences(StatelessRuleGroupReference... statelessRuleGroupReferences)
References to the stateless rule groups that are used in the policy. These define the matching criteria in stateless rules.
NOTE: This method appends the values to the existing list (if any). Use
setStatelessRuleGroupReferences(java.util.Collection)
or
withStatelessRuleGroupReferences(java.util.Collection)
if you want to override the existing values.
statelessRuleGroupReferences
- References to the stateless rule groups that are used in the policy. These define the matching criteria in
stateless rules.public FirewallPolicy withStatelessRuleGroupReferences(Collection<StatelessRuleGroupReference> statelessRuleGroupReferences)
References to the stateless rule groups that are used in the policy. These define the matching criteria in stateless rules.
statelessRuleGroupReferences
- References to the stateless rule groups that are used in the policy. These define the matching criteria in
stateless rules.public List<String> getStatelessDefaultActions()
The actions to take on a packet if it doesn't match any of the stateless rules in the policy. If you want
non-matching packets to be forwarded for stateful inspection, specify aws:forward_to_sfe
.
You must specify one of the standard actions: aws:pass
, aws:drop
, or
aws:forward_to_sfe
. In addition, you can specify custom actions that are compatible with your
standard section choice.
For example, you could specify ["aws:pass"]
or you could specify
["aws:pass", “customActionName”]
. For information about compatibility, see the custom action
descriptions under CustomAction.
aws:forward_to_sfe
.
You must specify one of the standard actions: aws:pass
, aws:drop
, or
aws:forward_to_sfe
. In addition, you can specify custom actions that are compatible with
your standard section choice.
For example, you could specify ["aws:pass"]
or you could specify
["aws:pass", “customActionName”]
. For information about compatibility, see the custom action
descriptions under CustomAction.
public void setStatelessDefaultActions(Collection<String> statelessDefaultActions)
The actions to take on a packet if it doesn't match any of the stateless rules in the policy. If you want
non-matching packets to be forwarded for stateful inspection, specify aws:forward_to_sfe
.
You must specify one of the standard actions: aws:pass
, aws:drop
, or
aws:forward_to_sfe
. In addition, you can specify custom actions that are compatible with your
standard section choice.
For example, you could specify ["aws:pass"]
or you could specify
["aws:pass", “customActionName”]
. For information about compatibility, see the custom action
descriptions under CustomAction.
statelessDefaultActions
- The actions to take on a packet if it doesn't match any of the stateless rules in the policy. If you want
non-matching packets to be forwarded for stateful inspection, specify aws:forward_to_sfe
.
You must specify one of the standard actions: aws:pass
, aws:drop
, or
aws:forward_to_sfe
. In addition, you can specify custom actions that are compatible with your
standard section choice.
For example, you could specify ["aws:pass"]
or you could specify
["aws:pass", “customActionName”]
. For information about compatibility, see the custom action
descriptions under CustomAction.
public FirewallPolicy withStatelessDefaultActions(String... statelessDefaultActions)
The actions to take on a packet if it doesn't match any of the stateless rules in the policy. If you want
non-matching packets to be forwarded for stateful inspection, specify aws:forward_to_sfe
.
You must specify one of the standard actions: aws:pass
, aws:drop
, or
aws:forward_to_sfe
. In addition, you can specify custom actions that are compatible with your
standard section choice.
For example, you could specify ["aws:pass"]
or you could specify
["aws:pass", “customActionName”]
. For information about compatibility, see the custom action
descriptions under CustomAction.
NOTE: This method appends the values to the existing list (if any). Use
setStatelessDefaultActions(java.util.Collection)
or
withStatelessDefaultActions(java.util.Collection)
if you want to override the existing values.
statelessDefaultActions
- The actions to take on a packet if it doesn't match any of the stateless rules in the policy. If you want
non-matching packets to be forwarded for stateful inspection, specify aws:forward_to_sfe
.
You must specify one of the standard actions: aws:pass
, aws:drop
, or
aws:forward_to_sfe
. In addition, you can specify custom actions that are compatible with your
standard section choice.
For example, you could specify ["aws:pass"]
or you could specify
["aws:pass", “customActionName”]
. For information about compatibility, see the custom action
descriptions under CustomAction.
public FirewallPolicy withStatelessDefaultActions(Collection<String> statelessDefaultActions)
The actions to take on a packet if it doesn't match any of the stateless rules in the policy. If you want
non-matching packets to be forwarded for stateful inspection, specify aws:forward_to_sfe
.
You must specify one of the standard actions: aws:pass
, aws:drop
, or
aws:forward_to_sfe
. In addition, you can specify custom actions that are compatible with your
standard section choice.
For example, you could specify ["aws:pass"]
or you could specify
["aws:pass", “customActionName”]
. For information about compatibility, see the custom action
descriptions under CustomAction.
statelessDefaultActions
- The actions to take on a packet if it doesn't match any of the stateless rules in the policy. If you want
non-matching packets to be forwarded for stateful inspection, specify aws:forward_to_sfe
.
You must specify one of the standard actions: aws:pass
, aws:drop
, or
aws:forward_to_sfe
. In addition, you can specify custom actions that are compatible with your
standard section choice.
For example, you could specify ["aws:pass"]
or you could specify
["aws:pass", “customActionName”]
. For information about compatibility, see the custom action
descriptions under CustomAction.
public List<String> getStatelessFragmentDefaultActions()
The actions to take on a fragmented UDP packet if it doesn't match any of the stateless rules in the policy.
Network Firewall only manages UDP packet fragments and silently drops packet fragments for other protocols. If
you want non-matching fragmented UDP packets to be forwarded for stateful inspection, specify
aws:forward_to_sfe
.
You must specify one of the standard actions: aws:pass
, aws:drop
, or
aws:forward_to_sfe
. In addition, you can specify custom actions that are compatible with your
standard section choice.
For example, you could specify ["aws:pass"]
or you could specify
["aws:pass", “customActionName”]
. For information about compatibility, see the custom action
descriptions under CustomAction.
aws:forward_to_sfe
.
You must specify one of the standard actions: aws:pass
, aws:drop
, or
aws:forward_to_sfe
. In addition, you can specify custom actions that are compatible with
your standard section choice.
For example, you could specify ["aws:pass"]
or you could specify
["aws:pass", “customActionName”]
. For information about compatibility, see the custom action
descriptions under CustomAction.
public void setStatelessFragmentDefaultActions(Collection<String> statelessFragmentDefaultActions)
The actions to take on a fragmented UDP packet if it doesn't match any of the stateless rules in the policy.
Network Firewall only manages UDP packet fragments and silently drops packet fragments for other protocols. If
you want non-matching fragmented UDP packets to be forwarded for stateful inspection, specify
aws:forward_to_sfe
.
You must specify one of the standard actions: aws:pass
, aws:drop
, or
aws:forward_to_sfe
. In addition, you can specify custom actions that are compatible with your
standard section choice.
For example, you could specify ["aws:pass"]
or you could specify
["aws:pass", “customActionName”]
. For information about compatibility, see the custom action
descriptions under CustomAction.
statelessFragmentDefaultActions
- The actions to take on a fragmented UDP packet if it doesn't match any of the stateless rules in the
policy. Network Firewall only manages UDP packet fragments and silently drops packet fragments for other
protocols. If you want non-matching fragmented UDP packets to be forwarded for stateful inspection,
specify aws:forward_to_sfe
.
You must specify one of the standard actions: aws:pass
, aws:drop
, or
aws:forward_to_sfe
. In addition, you can specify custom actions that are compatible with your
standard section choice.
For example, you could specify ["aws:pass"]
or you could specify
["aws:pass", “customActionName”]
. For information about compatibility, see the custom action
descriptions under CustomAction.
public FirewallPolicy withStatelessFragmentDefaultActions(String... statelessFragmentDefaultActions)
The actions to take on a fragmented UDP packet if it doesn't match any of the stateless rules in the policy.
Network Firewall only manages UDP packet fragments and silently drops packet fragments for other protocols. If
you want non-matching fragmented UDP packets to be forwarded for stateful inspection, specify
aws:forward_to_sfe
.
You must specify one of the standard actions: aws:pass
, aws:drop
, or
aws:forward_to_sfe
. In addition, you can specify custom actions that are compatible with your
standard section choice.
For example, you could specify ["aws:pass"]
or you could specify
["aws:pass", “customActionName”]
. For information about compatibility, see the custom action
descriptions under CustomAction.
NOTE: This method appends the values to the existing list (if any). Use
setStatelessFragmentDefaultActions(java.util.Collection)
or
withStatelessFragmentDefaultActions(java.util.Collection)
if you want to override the existing values.
statelessFragmentDefaultActions
- The actions to take on a fragmented UDP packet if it doesn't match any of the stateless rules in the
policy. Network Firewall only manages UDP packet fragments and silently drops packet fragments for other
protocols. If you want non-matching fragmented UDP packets to be forwarded for stateful inspection,
specify aws:forward_to_sfe
.
You must specify one of the standard actions: aws:pass
, aws:drop
, or
aws:forward_to_sfe
. In addition, you can specify custom actions that are compatible with your
standard section choice.
For example, you could specify ["aws:pass"]
or you could specify
["aws:pass", “customActionName”]
. For information about compatibility, see the custom action
descriptions under CustomAction.
public FirewallPolicy withStatelessFragmentDefaultActions(Collection<String> statelessFragmentDefaultActions)
The actions to take on a fragmented UDP packet if it doesn't match any of the stateless rules in the policy.
Network Firewall only manages UDP packet fragments and silently drops packet fragments for other protocols. If
you want non-matching fragmented UDP packets to be forwarded for stateful inspection, specify
aws:forward_to_sfe
.
You must specify one of the standard actions: aws:pass
, aws:drop
, or
aws:forward_to_sfe
. In addition, you can specify custom actions that are compatible with your
standard section choice.
For example, you could specify ["aws:pass"]
or you could specify
["aws:pass", “customActionName”]
. For information about compatibility, see the custom action
descriptions under CustomAction.
statelessFragmentDefaultActions
- The actions to take on a fragmented UDP packet if it doesn't match any of the stateless rules in the
policy. Network Firewall only manages UDP packet fragments and silently drops packet fragments for other
protocols. If you want non-matching fragmented UDP packets to be forwarded for stateful inspection,
specify aws:forward_to_sfe
.
You must specify one of the standard actions: aws:pass
, aws:drop
, or
aws:forward_to_sfe
. In addition, you can specify custom actions that are compatible with your
standard section choice.
For example, you could specify ["aws:pass"]
or you could specify
["aws:pass", “customActionName”]
. For information about compatibility, see the custom action
descriptions under CustomAction.
public List<CustomAction> getStatelessCustomActions()
The custom action definitions that are available for use in the firewall policy's
StatelessDefaultActions
setting. You name each custom action that you define, and then you can use
it by name in your default actions specifications.
StatelessDefaultActions
setting. You name each custom action that you define, and then you
can use it by name in your default actions specifications.public void setStatelessCustomActions(Collection<CustomAction> statelessCustomActions)
The custom action definitions that are available for use in the firewall policy's
StatelessDefaultActions
setting. You name each custom action that you define, and then you can use
it by name in your default actions specifications.
statelessCustomActions
- The custom action definitions that are available for use in the firewall policy's
StatelessDefaultActions
setting. You name each custom action that you define, and then you
can use it by name in your default actions specifications.public FirewallPolicy withStatelessCustomActions(CustomAction... statelessCustomActions)
The custom action definitions that are available for use in the firewall policy's
StatelessDefaultActions
setting. You name each custom action that you define, and then you can use
it by name in your default actions specifications.
NOTE: This method appends the values to the existing list (if any). Use
setStatelessCustomActions(java.util.Collection)
or
withStatelessCustomActions(java.util.Collection)
if you want to override the existing values.
statelessCustomActions
- The custom action definitions that are available for use in the firewall policy's
StatelessDefaultActions
setting. You name each custom action that you define, and then you
can use it by name in your default actions specifications.public FirewallPolicy withStatelessCustomActions(Collection<CustomAction> statelessCustomActions)
The custom action definitions that are available for use in the firewall policy's
StatelessDefaultActions
setting. You name each custom action that you define, and then you can use
it by name in your default actions specifications.
statelessCustomActions
- The custom action definitions that are available for use in the firewall policy's
StatelessDefaultActions
setting. You name each custom action that you define, and then you
can use it by name in your default actions specifications.public List<StatefulRuleGroupReference> getStatefulRuleGroupReferences()
References to the stateless rule groups that are used in the policy. These define the inspection criteria in stateful rules.
public void setStatefulRuleGroupReferences(Collection<StatefulRuleGroupReference> statefulRuleGroupReferences)
References to the stateless rule groups that are used in the policy. These define the inspection criteria in stateful rules.
statefulRuleGroupReferences
- References to the stateless rule groups that are used in the policy. These define the inspection criteria
in stateful rules.public FirewallPolicy withStatefulRuleGroupReferences(StatefulRuleGroupReference... statefulRuleGroupReferences)
References to the stateless rule groups that are used in the policy. These define the inspection criteria in stateful rules.
NOTE: This method appends the values to the existing list (if any). Use
setStatefulRuleGroupReferences(java.util.Collection)
or
withStatefulRuleGroupReferences(java.util.Collection)
if you want to override the existing values.
statefulRuleGroupReferences
- References to the stateless rule groups that are used in the policy. These define the inspection criteria
in stateful rules.public FirewallPolicy withStatefulRuleGroupReferences(Collection<StatefulRuleGroupReference> statefulRuleGroupReferences)
References to the stateless rule groups that are used in the policy. These define the inspection criteria in stateful rules.
statefulRuleGroupReferences
- References to the stateless rule groups that are used in the policy. These define the inspection criteria
in stateful rules.public String toString()
toString
in class Object
Object.toString()
public FirewallPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.