1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. networkfirewall
  6. Firewall

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    Resource type definition for AWS::NetworkFirewall::Firewall

    Create Firewall Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Firewall(name: string, args: FirewallArgs, opts?: CustomResourceOptions);
    @overload
    def Firewall(resource_name: str,
                 args: FirewallArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Firewall(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 firewall_policy_arn: Optional[str] = None,
                 nat_gateway_mappings: Optional[Sequence[FirewallNatGatewayMappingArgs]] = None,
                 proxy_settings: Optional[FirewallProxySettingsArgs] = None,
                 description: Optional[str] = None,
                 enabled_analysis_types: Optional[Sequence[FirewallEnabledAnalysisType]] = None,
                 firewall_name: Optional[str] = None,
                 availability_zone_mappings: Optional[Sequence[FirewallAvailabilityZoneMappingArgs]] = None,
                 delete_protection: Optional[bool] = None,
                 firewall_policy_change_protection: Optional[bool] = None,
                 no_source_preservation: Optional[bool] = None,
                 availability_zone_change_protection: Optional[bool] = None,
                 subnet_change_protection: Optional[bool] = None,
                 subnet_mappings: Optional[Sequence[FirewallSubnetMappingArgs]] = None,
                 tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
                 transit_gateway_id: Optional[str] = None,
                 vpc_endpoint: Optional[FirewallVpcEndpointArgs] = None,
                 vpc_id: Optional[str] = None)
    func NewFirewall(ctx *Context, name string, args FirewallArgs, opts ...ResourceOption) (*Firewall, error)
    public Firewall(string name, FirewallArgs args, CustomResourceOptions? opts = null)
    public Firewall(String name, FirewallArgs args)
    public Firewall(String name, FirewallArgs args, CustomResourceOptions options)
    
    type: aws-native:networkfirewall:Firewall
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_networkfirewall_firewall" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args FirewallArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args FirewallArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args FirewallArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FirewallArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FirewallArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Firewall Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Firewall resource accepts the following input properties:

    FirewallPolicyArn string

    The Amazon Resource Name (ARN) of the firewall policy.

    The relationship of firewall to firewall policy is many to one. Each firewall requires one firewall policy association, and you can use the same firewall policy for multiple firewalls.

    AvailabilityZoneChangeProtection bool
    A setting indicating whether the firewall is protected against changes to its Availability Zone configuration. When set to TRUE , you must first disable this protection before adding or removing Availability Zones.
    AvailabilityZoneMappings List<Pulumi.AwsNative.NetworkFirewall.Inputs.FirewallAvailabilityZoneMapping>
    The Availability Zones where the firewall endpoints are created for a transit gateway-attached firewall. Each mapping specifies an Availability Zone where the firewall processes traffic.
    DeleteProtection bool
    A flag indicating whether it is possible to delete the firewall. A setting of TRUE indicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag to TRUE .
    Description string
    A description of the firewall.
    EnabledAnalysisTypes List<Pulumi.AwsNative.NetworkFirewall.FirewallEnabledAnalysisType>
    The types of analysis to enable for the firewall. Can be TLS_SNI, HTTP_HOST, or both.
    FirewallName string
    The descriptive name of the firewall. You can't change the name of a firewall after you create it.
    FirewallPolicyChangeProtection bool
    A setting indicating whether the firewall is protected against a change to the firewall policy association. Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE .
    NatGatewayMappings List<Pulumi.AwsNative.NetworkFirewall.Inputs.FirewallNatGatewayMapping>
    The NAT gateways that the firewall proxies egress traffic through when NoSourcePreservation is true.
    NoSourcePreservation bool
    Indicates whether the firewall operates in proxy mode, where the source IP address of traffic is not preserved. When true, specify NatGatewayMappings and VpcEndpoint instead of the top-level VpcId and SubnetMappings. You can't change this setting after you create the firewall.
    ProxySettings Pulumi.AwsNative.NetworkFirewall.Inputs.FirewallProxySettings
    SubnetChangeProtection bool
    A setting indicating whether the firewall is protected against changes to the subnet associations. Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE .
    SubnetMappings List<Pulumi.AwsNative.NetworkFirewall.Inputs.FirewallSubnetMapping>

    The primary public subnets that Network Firewall is using for the firewall. Network Firewall creates a firewall endpoint in each subnet. Create a subnet mapping for each Availability Zone where you want to use the firewall.

    These subnets are all defined for a single, primary VPC, and each must belong to a different Availability Zone. Each of these subnets establishes the availability of the firewall in its Availability Zone.

    In addition to these subnets, you can define other endpoints for the firewall in VpcEndpointAssociation resources. You can define these additional endpoints for any VPC, and for any of the Availability Zones where the firewall resource already has a subnet mapping. VPC endpoint associations give you the ability to protect multiple VPCs using a single firewall, and to define multiple firewall endpoints for a VPC in a single Availability Zone.

    Tags List<Pulumi.AwsNative.Inputs.Tag>

    An array of key-value pairs to apply to this resource.

    For more information, see Tag .

    TransitGatewayId string
    The unique identifier of the transit gateway associated with this firewall. This field is only present for transit gateway-attached firewalls.
    VpcEndpoint Pulumi.AwsNative.NetworkFirewall.Inputs.FirewallVpcEndpoint
    VpcId string
    The unique identifier of the VPC where the firewall is in use. You can't change the VPC of a firewall after you create the firewall.
    FirewallPolicyArn string

    The Amazon Resource Name (ARN) of the firewall policy.

    The relationship of firewall to firewall policy is many to one. Each firewall requires one firewall policy association, and you can use the same firewall policy for multiple firewalls.

    AvailabilityZoneChangeProtection bool
    A setting indicating whether the firewall is protected against changes to its Availability Zone configuration. When set to TRUE , you must first disable this protection before adding or removing Availability Zones.
    AvailabilityZoneMappings []FirewallAvailabilityZoneMappingArgs
    The Availability Zones where the firewall endpoints are created for a transit gateway-attached firewall. Each mapping specifies an Availability Zone where the firewall processes traffic.
    DeleteProtection bool
    A flag indicating whether it is possible to delete the firewall. A setting of TRUE indicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag to TRUE .
    Description string
    A description of the firewall.
    EnabledAnalysisTypes []FirewallEnabledAnalysisType
    The types of analysis to enable for the firewall. Can be TLS_SNI, HTTP_HOST, or both.
    FirewallName string
    The descriptive name of the firewall. You can't change the name of a firewall after you create it.
    FirewallPolicyChangeProtection bool
    A setting indicating whether the firewall is protected against a change to the firewall policy association. Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE .
    NatGatewayMappings []FirewallNatGatewayMappingArgs
    The NAT gateways that the firewall proxies egress traffic through when NoSourcePreservation is true.
    NoSourcePreservation bool
    Indicates whether the firewall operates in proxy mode, where the source IP address of traffic is not preserved. When true, specify NatGatewayMappings and VpcEndpoint instead of the top-level VpcId and SubnetMappings. You can't change this setting after you create the firewall.
    ProxySettings FirewallProxySettingsArgs
    SubnetChangeProtection bool
    A setting indicating whether the firewall is protected against changes to the subnet associations. Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE .
    SubnetMappings []FirewallSubnetMappingArgs

    The primary public subnets that Network Firewall is using for the firewall. Network Firewall creates a firewall endpoint in each subnet. Create a subnet mapping for each Availability Zone where you want to use the firewall.

    These subnets are all defined for a single, primary VPC, and each must belong to a different Availability Zone. Each of these subnets establishes the availability of the firewall in its Availability Zone.

    In addition to these subnets, you can define other endpoints for the firewall in VpcEndpointAssociation resources. You can define these additional endpoints for any VPC, and for any of the Availability Zones where the firewall resource already has a subnet mapping. VPC endpoint associations give you the ability to protect multiple VPCs using a single firewall, and to define multiple firewall endpoints for a VPC in a single Availability Zone.

    Tags TagArgs

    An array of key-value pairs to apply to this resource.

    For more information, see Tag .

    TransitGatewayId string
    The unique identifier of the transit gateway associated with this firewall. This field is only present for transit gateway-attached firewalls.
    VpcEndpoint FirewallVpcEndpointArgs
    VpcId string
    The unique identifier of the VPC where the firewall is in use. You can't change the VPC of a firewall after you create the firewall.
    firewall_policy_arn string

    The Amazon Resource Name (ARN) of the firewall policy.

    The relationship of firewall to firewall policy is many to one. Each firewall requires one firewall policy association, and you can use the same firewall policy for multiple firewalls.

    availability_zone_change_protection bool
    A setting indicating whether the firewall is protected against changes to its Availability Zone configuration. When set to TRUE , you must first disable this protection before adding or removing Availability Zones.
    availability_zone_mappings list(object)
    The Availability Zones where the firewall endpoints are created for a transit gateway-attached firewall. Each mapping specifies an Availability Zone where the firewall processes traffic.
    delete_protection bool
    A flag indicating whether it is possible to delete the firewall. A setting of TRUE indicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag to TRUE .
    description string
    A description of the firewall.
    enabled_analysis_types list("TLS_SNI" | "HTTP_HOST")
    The types of analysis to enable for the firewall. Can be TLS_SNI, HTTP_HOST, or both.
    firewall_name string
    The descriptive name of the firewall. You can't change the name of a firewall after you create it.
    firewall_policy_change_protection bool
    A setting indicating whether the firewall is protected against a change to the firewall policy association. Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE .
    nat_gateway_mappings list(object)
    The NAT gateways that the firewall proxies egress traffic through when NoSourcePreservation is true.
    no_source_preservation bool
    Indicates whether the firewall operates in proxy mode, where the source IP address of traffic is not preserved. When true, specify NatGatewayMappings and VpcEndpoint instead of the top-level VpcId and SubnetMappings. You can't change this setting after you create the firewall.
    proxy_settings object
    subnet_change_protection bool
    A setting indicating whether the firewall is protected against changes to the subnet associations. Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE .
    subnet_mappings list(object)

    The primary public subnets that Network Firewall is using for the firewall. Network Firewall creates a firewall endpoint in each subnet. Create a subnet mapping for each Availability Zone where you want to use the firewall.

    These subnets are all defined for a single, primary VPC, and each must belong to a different Availability Zone. Each of these subnets establishes the availability of the firewall in its Availability Zone.

    In addition to these subnets, you can define other endpoints for the firewall in VpcEndpointAssociation resources. You can define these additional endpoints for any VPC, and for any of the Availability Zones where the firewall resource already has a subnet mapping. VPC endpoint associations give you the ability to protect multiple VPCs using a single firewall, and to define multiple firewall endpoints for a VPC in a single Availability Zone.

    tags list(object)

    An array of key-value pairs to apply to this resource.

    For more information, see Tag .

    transit_gateway_id string
    The unique identifier of the transit gateway associated with this firewall. This field is only present for transit gateway-attached firewalls.
    vpc_endpoint object
    vpc_id string
    The unique identifier of the VPC where the firewall is in use. You can't change the VPC of a firewall after you create the firewall.
    firewallPolicyArn String

    The Amazon Resource Name (ARN) of the firewall policy.

    The relationship of firewall to firewall policy is many to one. Each firewall requires one firewall policy association, and you can use the same firewall policy for multiple firewalls.

    availabilityZoneChangeProtection Boolean
    A setting indicating whether the firewall is protected against changes to its Availability Zone configuration. When set to TRUE , you must first disable this protection before adding or removing Availability Zones.
    availabilityZoneMappings List<FirewallAvailabilityZoneMapping>
    The Availability Zones where the firewall endpoints are created for a transit gateway-attached firewall. Each mapping specifies an Availability Zone where the firewall processes traffic.
    deleteProtection Boolean
    A flag indicating whether it is possible to delete the firewall. A setting of TRUE indicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag to TRUE .
    description String
    A description of the firewall.
    enabledAnalysisTypes List<FirewallEnabledAnalysisType>
    The types of analysis to enable for the firewall. Can be TLS_SNI, HTTP_HOST, or both.
    firewallName String
    The descriptive name of the firewall. You can't change the name of a firewall after you create it.
    firewallPolicyChangeProtection Boolean
    A setting indicating whether the firewall is protected against a change to the firewall policy association. Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE .
    natGatewayMappings List<FirewallNatGatewayMapping>
    The NAT gateways that the firewall proxies egress traffic through when NoSourcePreservation is true.
    noSourcePreservation Boolean
    Indicates whether the firewall operates in proxy mode, where the source IP address of traffic is not preserved. When true, specify NatGatewayMappings and VpcEndpoint instead of the top-level VpcId and SubnetMappings. You can't change this setting after you create the firewall.
    proxySettings FirewallProxySettings
    subnetChangeProtection Boolean
    A setting indicating whether the firewall is protected against changes to the subnet associations. Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE .
    subnetMappings List<FirewallSubnetMapping>

    The primary public subnets that Network Firewall is using for the firewall. Network Firewall creates a firewall endpoint in each subnet. Create a subnet mapping for each Availability Zone where you want to use the firewall.

    These subnets are all defined for a single, primary VPC, and each must belong to a different Availability Zone. Each of these subnets establishes the availability of the firewall in its Availability Zone.

    In addition to these subnets, you can define other endpoints for the firewall in VpcEndpointAssociation resources. You can define these additional endpoints for any VPC, and for any of the Availability Zones where the firewall resource already has a subnet mapping. VPC endpoint associations give you the ability to protect multiple VPCs using a single firewall, and to define multiple firewall endpoints for a VPC in a single Availability Zone.

    tags List<Tag>

    An array of key-value pairs to apply to this resource.

    For more information, see Tag .

    transitGatewayId String
    The unique identifier of the transit gateway associated with this firewall. This field is only present for transit gateway-attached firewalls.
    vpcEndpoint FirewallVpcEndpoint
    vpcId String
    The unique identifier of the VPC where the firewall is in use. You can't change the VPC of a firewall after you create the firewall.
    firewallPolicyArn string

    The Amazon Resource Name (ARN) of the firewall policy.

    The relationship of firewall to firewall policy is many to one. Each firewall requires one firewall policy association, and you can use the same firewall policy for multiple firewalls.

    availabilityZoneChangeProtection boolean
    A setting indicating whether the firewall is protected against changes to its Availability Zone configuration. When set to TRUE , you must first disable this protection before adding or removing Availability Zones.
    availabilityZoneMappings FirewallAvailabilityZoneMapping[]
    The Availability Zones where the firewall endpoints are created for a transit gateway-attached firewall. Each mapping specifies an Availability Zone where the firewall processes traffic.
    deleteProtection boolean
    A flag indicating whether it is possible to delete the firewall. A setting of TRUE indicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag to TRUE .
    description string
    A description of the firewall.
    enabledAnalysisTypes FirewallEnabledAnalysisType[]
    The types of analysis to enable for the firewall. Can be TLS_SNI, HTTP_HOST, or both.
    firewallName string
    The descriptive name of the firewall. You can't change the name of a firewall after you create it.
    firewallPolicyChangeProtection boolean
    A setting indicating whether the firewall is protected against a change to the firewall policy association. Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE .
    natGatewayMappings FirewallNatGatewayMapping[]
    The NAT gateways that the firewall proxies egress traffic through when NoSourcePreservation is true.
    noSourcePreservation boolean
    Indicates whether the firewall operates in proxy mode, where the source IP address of traffic is not preserved. When true, specify NatGatewayMappings and VpcEndpoint instead of the top-level VpcId and SubnetMappings. You can't change this setting after you create the firewall.
    proxySettings FirewallProxySettings
    subnetChangeProtection boolean
    A setting indicating whether the firewall is protected against changes to the subnet associations. Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE .
    subnetMappings FirewallSubnetMapping[]

    The primary public subnets that Network Firewall is using for the firewall. Network Firewall creates a firewall endpoint in each subnet. Create a subnet mapping for each Availability Zone where you want to use the firewall.

    These subnets are all defined for a single, primary VPC, and each must belong to a different Availability Zone. Each of these subnets establishes the availability of the firewall in its Availability Zone.

    In addition to these subnets, you can define other endpoints for the firewall in VpcEndpointAssociation resources. You can define these additional endpoints for any VPC, and for any of the Availability Zones where the firewall resource already has a subnet mapping. VPC endpoint associations give you the ability to protect multiple VPCs using a single firewall, and to define multiple firewall endpoints for a VPC in a single Availability Zone.

    tags Tag[]

    An array of key-value pairs to apply to this resource.

    For more information, see Tag .

    transitGatewayId string
    The unique identifier of the transit gateway associated with this firewall. This field is only present for transit gateway-attached firewalls.
    vpcEndpoint FirewallVpcEndpoint
    vpcId string
    The unique identifier of the VPC where the firewall is in use. You can't change the VPC of a firewall after you create the firewall.
    firewall_policy_arn str

    The Amazon Resource Name (ARN) of the firewall policy.

    The relationship of firewall to firewall policy is many to one. Each firewall requires one firewall policy association, and you can use the same firewall policy for multiple firewalls.

    availability_zone_change_protection bool
    A setting indicating whether the firewall is protected against changes to its Availability Zone configuration. When set to TRUE , you must first disable this protection before adding or removing Availability Zones.
    availability_zone_mappings Sequence[FirewallAvailabilityZoneMappingArgs]
    The Availability Zones where the firewall endpoints are created for a transit gateway-attached firewall. Each mapping specifies an Availability Zone where the firewall processes traffic.
    delete_protection bool
    A flag indicating whether it is possible to delete the firewall. A setting of TRUE indicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag to TRUE .
    description str
    A description of the firewall.
    enabled_analysis_types Sequence[FirewallEnabledAnalysisType]
    The types of analysis to enable for the firewall. Can be TLS_SNI, HTTP_HOST, or both.
    firewall_name str
    The descriptive name of the firewall. You can't change the name of a firewall after you create it.
    firewall_policy_change_protection bool
    A setting indicating whether the firewall is protected against a change to the firewall policy association. Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE .
    nat_gateway_mappings Sequence[FirewallNatGatewayMappingArgs]
    The NAT gateways that the firewall proxies egress traffic through when NoSourcePreservation is true.
    no_source_preservation bool
    Indicates whether the firewall operates in proxy mode, where the source IP address of traffic is not preserved. When true, specify NatGatewayMappings and VpcEndpoint instead of the top-level VpcId and SubnetMappings. You can't change this setting after you create the firewall.
    proxy_settings FirewallProxySettingsArgs
    subnet_change_protection bool
    A setting indicating whether the firewall is protected against changes to the subnet associations. Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE .
    subnet_mappings Sequence[FirewallSubnetMappingArgs]

    The primary public subnets that Network Firewall is using for the firewall. Network Firewall creates a firewall endpoint in each subnet. Create a subnet mapping for each Availability Zone where you want to use the firewall.

    These subnets are all defined for a single, primary VPC, and each must belong to a different Availability Zone. Each of these subnets establishes the availability of the firewall in its Availability Zone.

    In addition to these subnets, you can define other endpoints for the firewall in VpcEndpointAssociation resources. You can define these additional endpoints for any VPC, and for any of the Availability Zones where the firewall resource already has a subnet mapping. VPC endpoint associations give you the ability to protect multiple VPCs using a single firewall, and to define multiple firewall endpoints for a VPC in a single Availability Zone.

    tags Sequence[TagArgs]

    An array of key-value pairs to apply to this resource.

    For more information, see Tag .

    transit_gateway_id str
    The unique identifier of the transit gateway associated with this firewall. This field is only present for transit gateway-attached firewalls.
    vpc_endpoint FirewallVpcEndpointArgs
    vpc_id str
    The unique identifier of the VPC where the firewall is in use. You can't change the VPC of a firewall after you create the firewall.
    firewallPolicyArn String

    The Amazon Resource Name (ARN) of the firewall policy.

    The relationship of firewall to firewall policy is many to one. Each firewall requires one firewall policy association, and you can use the same firewall policy for multiple firewalls.

    availabilityZoneChangeProtection Boolean
    A setting indicating whether the firewall is protected against changes to its Availability Zone configuration. When set to TRUE , you must first disable this protection before adding or removing Availability Zones.
    availabilityZoneMappings List<Property Map>
    The Availability Zones where the firewall endpoints are created for a transit gateway-attached firewall. Each mapping specifies an Availability Zone where the firewall processes traffic.
    deleteProtection Boolean
    A flag indicating whether it is possible to delete the firewall. A setting of TRUE indicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag to TRUE .
    description String
    A description of the firewall.
    enabledAnalysisTypes List<"TLS_SNI" | "HTTP_HOST">
    The types of analysis to enable for the firewall. Can be TLS_SNI, HTTP_HOST, or both.
    firewallName String
    The descriptive name of the firewall. You can't change the name of a firewall after you create it.
    firewallPolicyChangeProtection Boolean
    A setting indicating whether the firewall is protected against a change to the firewall policy association. Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE .
    natGatewayMappings List<Property Map>
    The NAT gateways that the firewall proxies egress traffic through when NoSourcePreservation is true.
    noSourcePreservation Boolean
    Indicates whether the firewall operates in proxy mode, where the source IP address of traffic is not preserved. When true, specify NatGatewayMappings and VpcEndpoint instead of the top-level VpcId and SubnetMappings. You can't change this setting after you create the firewall.
    proxySettings Property Map
    subnetChangeProtection Boolean
    A setting indicating whether the firewall is protected against changes to the subnet associations. Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE .
    subnetMappings List<Property Map>

    The primary public subnets that Network Firewall is using for the firewall. Network Firewall creates a firewall endpoint in each subnet. Create a subnet mapping for each Availability Zone where you want to use the firewall.

    These subnets are all defined for a single, primary VPC, and each must belong to a different Availability Zone. Each of these subnets establishes the availability of the firewall in its Availability Zone.

    In addition to these subnets, you can define other endpoints for the firewall in VpcEndpointAssociation resources. You can define these additional endpoints for any VPC, and for any of the Availability Zones where the firewall resource already has a subnet mapping. VPC endpoint associations give you the ability to protect multiple VPCs using a single firewall, and to define multiple firewall endpoints for a VPC in a single Availability Zone.

    tags List<Property Map>

    An array of key-value pairs to apply to this resource.

    For more information, see Tag .

    transitGatewayId String
    The unique identifier of the transit gateway associated with this firewall. This field is only present for transit gateway-attached firewalls.
    vpcEndpoint Property Map
    vpcId String
    The unique identifier of the VPC where the firewall is in use. You can't change the VPC of a firewall after you create the firewall.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Firewall resource produces the following output properties:

    EndpointIds List<string>
    The unique IDs of the firewall endpoints for all of the subnets that you attached to the firewall. The subnets are not listed in any particular order. For example: ["us-west-2c:vpce-111122223333", "us-west-2a:vpce-987654321098", "us-west-2b:vpce-012345678901"] .
    FirewallArn string
    The Amazon Resource Name (ARN) of the firewall.
    FirewallId string
    The name of the firewallresource.
    Id string
    The provider-assigned unique ID for this managed resource.
    NumberOfAssociations int
    The number of VPC endpoint associations attached to the firewall.
    TransitGatewayAttachmentId string
    The unique identifier of the transit gateway attachment associated with this firewall. This field is only present for transit gateway-attached firewalls.
    EndpointIds []string
    The unique IDs of the firewall endpoints for all of the subnets that you attached to the firewall. The subnets are not listed in any particular order. For example: ["us-west-2c:vpce-111122223333", "us-west-2a:vpce-987654321098", "us-west-2b:vpce-012345678901"] .
    FirewallArn string
    The Amazon Resource Name (ARN) of the firewall.
    FirewallId string
    The name of the firewallresource.
    Id string
    The provider-assigned unique ID for this managed resource.
    NumberOfAssociations int
    The number of VPC endpoint associations attached to the firewall.
    TransitGatewayAttachmentId string
    The unique identifier of the transit gateway attachment associated with this firewall. This field is only present for transit gateway-attached firewalls.
    endpoint_ids list(string)
    The unique IDs of the firewall endpoints for all of the subnets that you attached to the firewall. The subnets are not listed in any particular order. For example: ["us-west-2c:vpce-111122223333", "us-west-2a:vpce-987654321098", "us-west-2b:vpce-012345678901"] .
    firewall_arn string
    The Amazon Resource Name (ARN) of the firewall.
    firewall_id string
    The name of the firewallresource.
    id string
    The provider-assigned unique ID for this managed resource.
    number_of_associations number
    The number of VPC endpoint associations attached to the firewall.
    transit_gateway_attachment_id string
    The unique identifier of the transit gateway attachment associated with this firewall. This field is only present for transit gateway-attached firewalls.
    endpointIds List<String>
    The unique IDs of the firewall endpoints for all of the subnets that you attached to the firewall. The subnets are not listed in any particular order. For example: ["us-west-2c:vpce-111122223333", "us-west-2a:vpce-987654321098", "us-west-2b:vpce-012345678901"] .
    firewallArn String
    The Amazon Resource Name (ARN) of the firewall.
    firewallId String
    The name of the firewallresource.
    id String
    The provider-assigned unique ID for this managed resource.
    numberOfAssociations Integer
    The number of VPC endpoint associations attached to the firewall.
    transitGatewayAttachmentId String
    The unique identifier of the transit gateway attachment associated with this firewall. This field is only present for transit gateway-attached firewalls.
    endpointIds string[]
    The unique IDs of the firewall endpoints for all of the subnets that you attached to the firewall. The subnets are not listed in any particular order. For example: ["us-west-2c:vpce-111122223333", "us-west-2a:vpce-987654321098", "us-west-2b:vpce-012345678901"] .
    firewallArn string
    The Amazon Resource Name (ARN) of the firewall.
    firewallId string
    The name of the firewallresource.
    id string
    The provider-assigned unique ID for this managed resource.
    numberOfAssociations number
    The number of VPC endpoint associations attached to the firewall.
    transitGatewayAttachmentId string
    The unique identifier of the transit gateway attachment associated with this firewall. This field is only present for transit gateway-attached firewalls.
    endpoint_ids Sequence[str]
    The unique IDs of the firewall endpoints for all of the subnets that you attached to the firewall. The subnets are not listed in any particular order. For example: ["us-west-2c:vpce-111122223333", "us-west-2a:vpce-987654321098", "us-west-2b:vpce-012345678901"] .
    firewall_arn str
    The Amazon Resource Name (ARN) of the firewall.
    firewall_id str
    The name of the firewallresource.
    id str
    The provider-assigned unique ID for this managed resource.
    number_of_associations int
    The number of VPC endpoint associations attached to the firewall.
    transit_gateway_attachment_id str
    The unique identifier of the transit gateway attachment associated with this firewall. This field is only present for transit gateway-attached firewalls.
    endpointIds List<String>
    The unique IDs of the firewall endpoints for all of the subnets that you attached to the firewall. The subnets are not listed in any particular order. For example: ["us-west-2c:vpce-111122223333", "us-west-2a:vpce-987654321098", "us-west-2b:vpce-012345678901"] .
    firewallArn String
    The Amazon Resource Name (ARN) of the firewall.
    firewallId String
    The name of the firewallresource.
    id String
    The provider-assigned unique ID for this managed resource.
    numberOfAssociations Number
    The number of VPC endpoint associations attached to the firewall.
    transitGatewayAttachmentId String
    The unique identifier of the transit gateway attachment associated with this firewall. This field is only present for transit gateway-attached firewalls.

    Look up Existing Firewall Resource

    Get an existing Firewall resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): Firewall
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> Firewall
    func GetFirewall(ctx *Context, name string, id IDInput, state *FirewallState, opts ...ResourceOption) (*Firewall, error)
    public static Firewall Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static Firewall get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingFirewall:    type: aws-native:networkfirewall:Firewall    get:      id: ${id}
    import {
      to = aws-native_networkfirewall_firewall.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state FirewallState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    FirewallAvailabilityZoneMapping, FirewallAvailabilityZoneMappingArgs

    AvailabilityZone string
    A AvailabilityZone
    AvailabilityZone string
    A AvailabilityZone
    availability_zone string
    A AvailabilityZone
    availabilityZone String
    A AvailabilityZone
    availabilityZone string
    A AvailabilityZone
    availability_zone str
    A AvailabilityZone
    availabilityZone String
    A AvailabilityZone

    FirewallEnabledAnalysisType

    An analysis type.

    NameValue
    TlsSniTLS_SNI
    HttpHostHTTP_HOST
    NameValue
    FirewallEnabledAnalysisTypeTlsSniTLS_SNI
    FirewallEnabledAnalysisTypeHttpHostHTTP_HOST
    Value
    TLS_SNI
    HTTP_HOST
    NameValue
    TlsSniTLS_SNI
    HttpHostHTTP_HOST
    NameValue
    TlsSniTLS_SNI
    HttpHostHTTP_HOST
    NameValue
    TLS_SNITLS_SNI
    HTTP_HOSTHTTP_HOST
    Value
    TLS_SNI
    HTTP_HOST

    FirewallListenerProperty, FirewallListenerPropertyArgs

    A port and protocol that a proxy-mode firewall's proxy listener accepts traffic on.

    Port int
    The port the proxy listener accepts traffic on.
    Type Pulumi.AwsNative.NetworkFirewall.FirewallListenerPropertyType
    The protocol the proxy listener uses.
    Port int
    The port the proxy listener accepts traffic on.
    Type FirewallListenerPropertyType
    The protocol the proxy listener uses.
    port number
    The port the proxy listener accepts traffic on.
    type "HTTP" | "HTTPS"
    The protocol the proxy listener uses.
    port Integer
    The port the proxy listener accepts traffic on.
    type FirewallListenerPropertyType
    The protocol the proxy listener uses.
    port number
    The port the proxy listener accepts traffic on.
    type FirewallListenerPropertyType
    The protocol the proxy listener uses.
    port int
    The port the proxy listener accepts traffic on.
    type FirewallListenerPropertyType
    The protocol the proxy listener uses.
    port Number
    The port the proxy listener accepts traffic on.
    type "HTTP" | "HTTPS"
    The protocol the proxy listener uses.

    FirewallListenerPropertyType

    The protocol the proxy listener uses.

    NameValue
    HttpHTTP
    HttpsHTTPS
    NameValue
    FirewallListenerPropertyTypeHttpHTTP
    FirewallListenerPropertyTypeHttpsHTTPS
    Value
    HTTP
    HTTPS
    NameValue
    HttpHTTP
    HttpsHTTPS
    NameValue
    HttpHTTP
    HttpsHTTPS
    NameValue
    HTTPHTTP
    HTTPSHTTPS
    Value
    HTTP
    HTTPS

    FirewallNatGatewayMapping, FirewallNatGatewayMappingArgs

    A mapping to a NAT gateway that a proxy-mode firewall proxies egress traffic through.

    NatGatewayId string
    The unique identifier of a NAT gateway.
    NatGatewayId string
    The unique identifier of a NAT gateway.
    nat_gateway_id string
    The unique identifier of a NAT gateway.
    natGatewayId String
    The unique identifier of a NAT gateway.
    natGatewayId string
    The unique identifier of a NAT gateway.
    nat_gateway_id str
    The unique identifier of a NAT gateway.
    natGatewayId String
    The unique identifier of a NAT gateway.

    FirewallProxySettings, FirewallProxySettingsArgs

    The proxy listener configuration for a proxy-mode (no source preservation) firewall.

    FirewallSubnetMapping, FirewallSubnetMappingArgs

    SubnetId string
    A SubnetId.
    IpAddressType string
    A IPAddressType
    SubnetId string
    A SubnetId.
    IpAddressType string
    A IPAddressType
    subnet_id string
    A SubnetId.
    ip_address_type string
    A IPAddressType
    subnetId String
    A SubnetId.
    ipAddressType String
    A IPAddressType
    subnetId string
    A SubnetId.
    ipAddressType string
    A IPAddressType
    subnet_id str
    A SubnetId.
    ip_address_type str
    A IPAddressType
    subnetId String
    A SubnetId.
    ipAddressType String
    A IPAddressType

    FirewallVpcEndpoint, FirewallVpcEndpointArgs

    The VPC and subnets for a proxy-mode firewall's endpoint. Provide this instead of the top-level VpcId and SubnetMappings when NoSourcePreservation is true.

    SubnetMappings List<Pulumi.AwsNative.NetworkFirewall.Inputs.FirewallSubnetMapping>
    VpcId string
    The unique identifier of the VPC for the firewall endpoint.
    SubnetMappings []FirewallSubnetMapping
    VpcId string
    The unique identifier of the VPC for the firewall endpoint.
    subnet_mappings list(object)
    vpc_id string
    The unique identifier of the VPC for the firewall endpoint.
    subnetMappings List<FirewallSubnetMapping>
    vpcId String
    The unique identifier of the VPC for the firewall endpoint.
    subnetMappings FirewallSubnetMapping[]
    vpcId string
    The unique identifier of the VPC for the firewall endpoint.
    subnet_mappings Sequence[FirewallSubnetMapping]
    vpc_id str
    The unique identifier of the VPC for the firewall endpoint.
    subnetMappings List<Property Map>
    vpcId String
    The unique identifier of the VPC for the firewall endpoint.

    Tag, TagArgs

    A set of tags to apply to the resource.

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial