Skip to content

FirewallPolicyV2

Source code in docs_src/capo_network_firewall/types/firewall_policy_v2.py
class FirewallPolicyV2(TypedDict, closed=True):
    firewall_rule_group_entries: NotRequired[
        "capo_network_firewall.types.firewall_rule_group_entries.FirewallRuleGroupEntries"
    ]
    """<p>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.</p>"""
    ips_rule_group_entries: NotRequired[
        "capo_network_firewall.types.ips_rule_group_entries.IpsRuleGroupEntries"
    ]
    """<p>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.</p>"""
    policy_mode: NotRequired["capo_network_firewall.types.policy_mode.PolicyMode"]
    """<p>Indicates whether the policy's engines enforce their verdicts or only report them. In <code>ENFORCE</code> mode, the firewall engine and IPS engine apply their verdicts to traffic. In <code>MONITOR</code> mode, 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 <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/firewall-policies-v2.html">Next Generation policies</a> in the <i>Network Firewall Developer Guide</i>.</p>"""
    firewall_default_action: NotRequired[
        "capo_network_firewall.types.policy_default_action.PolicyDefaultAction"
    ]
    """<p>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:</p> <ul> <li> <p> <code>DROP</code> - Block the traffic.</p> </li> <li> <p> <code>ACCEPT</code> - Allow the traffic.</p> </li> <li> <p> <code>REJECT</code> - Block the traffic and send a TCP reset packet back to the client.</p> </li> <li> <p> <code>ALERT</code> - 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 to <code>MONITOR</code>.</p> </li> </ul> <p>For more information, see <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/firewall-policies-v2.html">Next Generation policies</a> in the <i>Network Firewall Developer Guide</i>.</p>"""
    stateful_engine_options: NotRequired[
        "capo_network_firewall.types.stateful_engine_options_v2.StatefulEngineOptionsV2"
    ]
    """<p>Additional options governing how the engines handle stateful traffic, such as the stream exception policy and flow timeouts.</p>"""
    tls_inspection_configuration_arn: NotRequired[
        "capo_network_firewall.types.resource_arn.ResourceArn"
    ]
    """<p>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 <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/tls-inspection.html">Inspecting SSL/TLS traffic with TLS inspection configurations</a> in the <i>Network Firewall Developer Guide</i>.</p>"""
    policy_variables: NotRequired[
        "capo_network_firewall.types.policy_variables.PolicyVariables"
    ]
    """<p>Contains variables that you can use to override default Suricata settings in your Next Generation policy.</p>"""
    route53_resolved_ip_validation: NotRequired[
        "capo_network_firewall.types.route53_resolved_ip_validation.Route53ResolvedIPValidation"
    ]
    """<p>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 <code>Host</code> header. For more information, see <a>Route53ResolvedIPValidation</a>.</p>"""

firewall_default_action instance-attribute

firewall_default_action: NotRequired[PolicyDefaultAction]

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 to MONITOR.

For more information, see Next Generation policies in the Network Firewall Developer Guide.

firewall_rule_group_entries instance-attribute

firewall_rule_group_entries: NotRequired[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.

ips_rule_group_entries instance-attribute

ips_rule_group_entries: NotRequired[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.

policy_mode instance-attribute

policy_mode: NotRequired[PolicyMode]

Indicates whether the policy's engines enforce their verdicts or only report them. In ENFORCE mode, the firewall engine and IPS engine apply their verdicts to traffic. In MONITOR mode, 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.

policy_variables instance-attribute

policy_variables: NotRequired[PolicyVariables]

Contains variables that you can use to override default Suricata settings in your Next Generation policy.

route53_resolved_ip_validation instance-attribute

route53_resolved_ip_validation: NotRequired[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 Host header. For more information, see Route53ResolvedIPValidation.

stateful_engine_options instance-attribute

stateful_engine_options: NotRequired[StatefulEngineOptionsV2]

Additional options governing how the engines handle stateful traffic, such as the stream exception policy and flow timeouts.

tls_inspection_configuration_arn instance-attribute

tls_inspection_configuration_arn: NotRequired[ResourceArn]

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.