# AWS::NetworkFirewall Construct Library

This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.

TypeScript:

```ts
import * as networkfirewall from 'aws-cdk-lib/aws-networkfirewall';
```

Python:

```python
import aws_cdk.aws_networkfirewall as networkfirewall
```

Java:

```java
import software.amazon.awscdk.services.networkfirewall.*;
```

C#:

```csharp
using Amazon.CDK.AWS.NetworkFirewall;
```

Go:

```go
import networkfirewall "github.com/aws/aws-cdk-go/awscdk"
```

There are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. Here are some suggestions on how to proceed:

- Search [Construct Hub for NetworkFirewall construct libraries](https://constructs.dev/search?q=networkfirewall)
- Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation AWS::NetworkFirewall resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_NetworkFirewall.html) directly.

There are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet.
However, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly.

For more information on the resources and properties available for this service, see the [CloudFormation documentation for AWS::NetworkFirewall](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_NetworkFirewall.html).

(Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.)

## Types

### Constructs (L1)

- [`CfnContainerAssociation`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnContainerAssociation.html) Construct (L1) Resource type definition for AWS::NetworkFirewall::ContainerAssociation.
- [`CfnFirewall`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewall.html) Construct (L1) Use the firewall to provide stateful, managed, network firewall and intrusion detection and prevention filtering for your VPCs in Amazon VPC .
- [`CfnFirewallPolicy`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewallPolicy.html) Construct (L1) Use the firewall policy to define the stateless and stateful network traffic filtering behavior for your firewall.
- [`CfnLoggingConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnLoggingConfiguration.html) Construct (L1) Use the logging configuration to define the destinations and logging options for an firewall.
- [`CfnRuleGroup`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.html) Construct (L1) Use the [](https://docs.aws.amazon.com/RuleGroup) to define a reusable collection of stateless or stateful network traffic filtering rules. You use rule groups in an firewall policy to specify the filtering behavior of an firewall.
- [`CfnTLSInspectionConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnTLSInspectionConfiguration.html) Construct (L1) The object that defines a TLS inspection configuration.
- [`CfnVpcEndpointAssociation`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnVpcEndpointAssociation.html) Construct (L1) A VPC endpoint association defines a single subnet to use for a firewall endpoint for a `Firewall` .

### Structs

- [`CfnContainerAssociation.ContainerAttributeProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnContainerAssociation.ContainerAttributeProperty.html) Struct A key-value filter pair used in container association monitoring configurations to narrow which containers are tracked.
- [`CfnContainerAssociation.ContainerMonitoringConfigurationProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnContainerAssociation.ContainerMonitoringConfigurationProperty.html) Struct Contains the monitoring configuration for a single cluster in a container association.
- [`CfnContainerAssociationProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnContainerAssociationProps.html) Struct Properties for defining a `CfnContainerAssociation`.
- [`CfnFirewall.AvailabilityZoneMappingProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewall.AvailabilityZoneMappingProperty.html) Struct Defines the mapping between an Availability Zone and a firewall endpoint for a transit gateway-attached firewall.
- [`CfnFirewall.ListenerPropertyProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewall.ListenerPropertyProperty.html) Struct A port and protocol that a proxy-mode firewall's proxy listener accepts traffic on.
- [`CfnFirewall.NatGatewayMappingProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewall.NatGatewayMappingProperty.html) Struct A mapping to a NAT gateway that a proxy-mode firewall proxies egress traffic through.
- [`CfnFirewall.ProxySettingsProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewall.ProxySettingsProperty.html) Struct The proxy listener configuration for a proxy-mode (no source preservation) firewall.
- [`CfnFirewall.SubnetMappingProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewall.SubnetMappingProperty.html) Struct The ID for a subnet that you want to associate with the firewall.
- [`CfnFirewall.VpcEndpointProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewall.VpcEndpointProperty.html) Struct The VPC and subnets for a proxy-mode firewall's endpoint.
- [`CfnFirewallPolicy.ActionDefinitionProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewallPolicy.ActionDefinitionProperty.html) Struct A custom action to use in stateless rule actions settings.
- [`CfnFirewallPolicy.AddressProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewallPolicy.AddressProperty.html) Struct
- [`CfnFirewallPolicy.CustomActionProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewallPolicy.CustomActionProperty.html) Struct An optional, non-standard action to use for stateless packet handling.
- [`CfnFirewallPolicy.DimensionProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewallPolicy.DimensionProperty.html) Struct The value to use in an Amazon CloudWatch custom metric dimension.
- [`CfnFirewallPolicy.FirewallPolicyProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewallPolicy.FirewallPolicyProperty.html) Struct The traffic filtering behavior of a firewall policy, defined in a collection of stateless and stateful rule groups and other settings.
- [`CfnFirewallPolicy.FlowTimeoutsProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewallPolicy.FlowTimeoutsProperty.html) Struct Describes the amount of time that can pass without any traffic sent through the firewall before the firewall determines that the connection is idle and Network Firewall removes the flow entry from its flow table.
- [`CfnFirewallPolicy.IPSetProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewallPolicy.IPSetProperty.html) Struct A list of IP addresses and address ranges, in CIDR notation.
- [`CfnFirewallPolicy.PolicyVariablesProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewallPolicy.PolicyVariablesProperty.html) Struct Contains variables that you can use to override default Suricata settings in your firewall policy.
- [`CfnFirewallPolicy.PublishMetricActionProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewallPolicy.PublishMetricActionProperty.html) Struct Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet.
- [`CfnFirewallPolicy.Route53ResolvedIPValidationProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewallPolicy.Route53ResolvedIPValidationProperty.html) Struct
- [`CfnFirewallPolicy.StatefulEngineOptionsProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewallPolicy.StatefulEngineOptionsProperty.html) Struct Configuration settings for the handling of the stateful rule groups in a firewall policy.
- [`CfnFirewallPolicy.StatefulRuleGroupOverrideProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewallPolicy.StatefulRuleGroupOverrideProperty.html) Struct The setting that allows the policy owner to change the behavior of the rule group within a policy.
- [`CfnFirewallPolicy.StatefulRuleGroupReferenceProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewallPolicy.StatefulRuleGroupReferenceProperty.html) Struct Identifier for a single stateful rule group, used in a firewall policy to refer to a rule group.
- [`CfnFirewallPolicy.StatelessRuleGroupReferenceProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewallPolicy.StatelessRuleGroupReferenceProperty.html) Struct Identifier for a single stateless rule group, used in a firewall policy to refer to the rule group.
- [`CfnFirewallPolicyProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewallPolicyProps.html) Struct Properties for defining a `CfnFirewallPolicy`.
- [`CfnFirewallProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewallProps.html) Struct Properties for defining a `CfnFirewall`.
- [`CfnLoggingConfiguration.LogDestinationConfigProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnLoggingConfiguration.LogDestinationConfigProperty.html) Struct Defines where AWS Network Firewall sends logs for the firewall for one log type.
- [`CfnLoggingConfiguration.LoggingConfigurationProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnLoggingConfiguration.LoggingConfigurationProperty.html) Struct Defines how AWS Network Firewall performs logging for a firewall.
- [`CfnLoggingConfigurationProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnLoggingConfigurationProps.html) Struct Properties for defining a `CfnLoggingConfiguration`.
- [`CfnRuleGroup.ActionDefinitionProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.ActionDefinitionProperty.html) Struct A custom action to use in stateless rule actions settings.
- [`CfnRuleGroup.AddressProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.AddressProperty.html) Struct A single IP address specification.
- [`CfnRuleGroup.CustomActionProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.CustomActionProperty.html) Struct An optional, non-standard action to use for stateless packet handling.
- [`CfnRuleGroup.DimensionProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.DimensionProperty.html) Struct The value to use in an Amazon CloudWatch custom metric dimension.
- [`CfnRuleGroup.HeaderProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.HeaderProperty.html) Struct The 5-tuple criteria for AWS Network Firewall to use to inspect packet headers in stateful traffic flow inspection.
- [`CfnRuleGroup.IPSetProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.IPSetProperty.html) Struct A list of IP addresses and address ranges, in CIDR notation.
- [`CfnRuleGroup.IPSetReferenceProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.IPSetReferenceProperty.html) Struct Configures one or more IP set references for a Suricata-compatible rule group.
- [`CfnRuleGroup.MatchAttributesProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.MatchAttributesProperty.html) Struct Criteria for Network Firewall to use to inspect an individual packet in stateless rule inspection.
- [`CfnRuleGroup.PortRangeProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.PortRangeProperty.html) Struct A single port range specification.
- [`CfnRuleGroup.PortSetProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.PortSetProperty.html) Struct A set of port ranges for use in the rules in a rule group.
- [`CfnRuleGroup.PublishMetricActionProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.PublishMetricActionProperty.html) Struct Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet.
- [`CfnRuleGroup.ReferenceSetsProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.ReferenceSetsProperty.html) Struct Configures the reference sets for a stateful rule group.
- [`CfnRuleGroup.RuleDefinitionProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.RuleDefinitionProperty.html) Struct The inspection criteria and action for a single stateless rule.
- [`CfnRuleGroup.RuleGroupProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.RuleGroupProperty.html) Struct The object that defines the rules in a rule group.
- [`CfnRuleGroup.RuleOptionProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.RuleOptionProperty.html) Struct Additional settings for a stateful rule.
- [`CfnRuleGroup.RulesSourceListProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.RulesSourceListProperty.html) Struct Stateful inspection criteria for a domain list rule group.
- [`CfnRuleGroup.RulesSourceProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.RulesSourceProperty.html) Struct The stateless or stateful rules definitions for use in a single rule group.
- [`CfnRuleGroup.RuleVariablesProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.RuleVariablesProperty.html) Struct Settings that are available for use in the rules in the rule group where this is defined.
- [`CfnRuleGroup.StatefulRuleOptionsProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.StatefulRuleOptionsProperty.html) Struct Additional options governing how Network Firewall handles the rule group.
- [`CfnRuleGroup.StatefulRuleProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.StatefulRuleProperty.html) Struct A single Suricata rules specification, for use in a stateful rule group.
- [`CfnRuleGroup.StatelessRuleProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.StatelessRuleProperty.html) Struct A single stateless rule.
- [`CfnRuleGroup.StatelessRulesAndCustomActionsProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.StatelessRulesAndCustomActionsProperty.html) Struct Stateless inspection criteria.
- [`CfnRuleGroup.SummaryConfigurationProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.SummaryConfigurationProperty.html) Struct A complex type that specifies which Suricata rule metadata fields to use when displaying threat information. Contains:.
- [`CfnRuleGroup.TCPFlagFieldProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.TCPFlagFieldProperty.html) Struct TCP flags and masks to inspect packets for. This is used in the match attributes specification.
- [`CfnRuleGroupProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnRuleGroupProps.html) Struct Properties for defining a `CfnRuleGroup`.
- [`CfnTLSInspectionConfiguration.AddressProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnTLSInspectionConfiguration.AddressProperty.html) Struct A single IP address specification.
- [`CfnTLSInspectionConfiguration.CheckCertificateRevocationStatusProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnTLSInspectionConfiguration.CheckCertificateRevocationStatusProperty.html) Struct When enabled, Network Firewall checks if the server certificate presented by the server in the SSL/TLS connection has a revoked or unkown status.
- [`CfnTLSInspectionConfiguration.PortRangeProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnTLSInspectionConfiguration.PortRangeProperty.html) Struct A single port range specification.
- [`CfnTLSInspectionConfiguration.ServerCertificateConfigurationProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnTLSInspectionConfiguration.ServerCertificateConfigurationProperty.html) Struct Configures the Certificate Manager certificates and scope that Network Firewall uses to decrypt and re-encrypt traffic using a [TLSInspectionConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-networkfirewall-tlsinspectionconfiguration.html) . You can configure `ServerCertificates` for inbound SSL/TLS inspection, a `CertificateAuthorityArn` for outbound SSL/TLS inspection, or both. For information about working with certificates for TLS inspection, see [Using SSL/TLS server certficiates with TLS inspection configurations](https://docs.aws.amazon.com/network-firewall/latest/developerguide/tls-inspection-certificate-requirements.html) in the *AWS Network Firewall Developer Guide* .
- [`CfnTLSInspectionConfiguration.ServerCertificateProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnTLSInspectionConfiguration.ServerCertificateProperty.html) Struct Any Certificate Manager (ACM) Secure Sockets Layer/Transport Layer Security (SSL/TLS) server certificate that's associated with a [ServerCertificateConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-tlsinspectionconfiguration-servercertificateconfiguration.html) . Used in a [TLSInspectionConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-networkfirewall-tlsinspectionconfiguration.html) for inspection of inbound traffic to your firewall. You must request or import a SSL/TLS certificate into ACM for each domain Network Firewall needs to decrypt and inspect. AWS Network Firewall uses the SSL/TLS certificates to decrypt specified inbound SSL/TLS traffic going to your firewall. For information about working with certificates in Certificate Manager , see [Request a public certificate](https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-request-public.html) or [Importing certificates](https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html) in the *Certificate Manager User Guide* .
- [`CfnTLSInspectionConfiguration.ServerCertificateScopeProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnTLSInspectionConfiguration.ServerCertificateScopeProperty.html) Struct Settings that define the Secure Sockets Layer/Transport Layer Security (SSL/TLS) traffic that Network Firewall should decrypt for inspection by the stateful rule engine.
- [`CfnTLSInspectionConfiguration.TLSInspectionConfigurationProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnTLSInspectionConfiguration.TLSInspectionConfigurationProperty.html) Struct The object that defines a TLS inspection configuration. This defines the TLS inspection configuration.
- [`CfnTLSInspectionConfigurationProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnTLSInspectionConfigurationProps.html) Struct Properties for defining a `CfnTLSInspectionConfiguration`.
- [`CfnVpcEndpointAssociation.SubnetMappingProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnVpcEndpointAssociation.SubnetMappingProperty.html) Struct The ID for a subnet that's used in an association with a firewall.
- [`CfnVpcEndpointAssociationProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnVpcEndpointAssociationProps.html) Struct Properties for defining a `CfnVpcEndpointAssociation`.
