Class CfnFirewall.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFirewall>
- Enclosing class:
CfnFirewall
CfnFirewall
.-
Method Summary
Modifier and TypeMethodDescriptionavailabilityZoneChangeProtection
(Boolean availabilityZoneChangeProtection) A setting indicating whether the firewall is protected against changes to its Availability Zone configuration.availabilityZoneChangeProtection
(IResolvable availabilityZoneChangeProtection) A setting indicating whether the firewall is protected against changes to its Availability Zone configuration.availabilityZoneMappings
(List<? extends Object> availabilityZoneMappings) The Availability Zones where the firewall endpoints are created for a transit gateway-attached firewall.availabilityZoneMappings
(IResolvable availabilityZoneMappings) The Availability Zones where the firewall endpoints are created for a transit gateway-attached firewall.build()
static CfnFirewall.Builder
deleteProtection
(Boolean deleteProtection) A flag indicating whether it is possible to delete the firewall.deleteProtection
(IResolvable deleteProtection) A flag indicating whether it is possible to delete the firewall.description
(String description) A description of the firewall.enabledAnalysisTypes
(List<String> enabledAnalysisTypes) An optional setting indicating the specific traffic analysis types to enable on the firewall.firewallName
(String firewallName) The descriptive name of the firewall.firewallPolicyArn
(String firewallPolicyArn) The Amazon Resource Name (ARN) of the firewall policy.firewallPolicyChangeProtection
(Boolean firewallPolicyChangeProtection) A setting indicating whether the firewall is protected against a change to the firewall policy association.firewallPolicyChangeProtection
(IResolvable firewallPolicyChangeProtection) A setting indicating whether the firewall is protected against a change to the firewall policy association.subnetChangeProtection
(Boolean subnetChangeProtection) A setting indicating whether the firewall is protected against changes to the subnet associations.subnetChangeProtection
(IResolvable subnetChangeProtection) A setting indicating whether the firewall is protected against changes to the subnet associations.subnetMappings
(List<? extends Object> subnetMappings) The primary public subnets that Network Firewall is using for the firewall.subnetMappings
(IResolvable subnetMappings) The primary public subnets that Network Firewall is using for the firewall.An array of key-value pairs to apply to this resource.transitGatewayId
(String transitGatewayId) The unique identifier of the transit gateway associated with this firewall.The unique identifier of the VPC where the firewall is in use.
-
Method Details
-
create
@Stability(Stable) public static CfnFirewall.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnFirewall.Builder
.
-
firewallName
The descriptive name of the firewall.You can't change the name of a firewall after you create it.
- Parameters:
firewallName
- The descriptive name of the firewall. This parameter is required.- Returns:
this
- See Also:
-
firewallPolicyArn
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.
- Parameters:
firewallPolicyArn
- The Amazon Resource Name (ARN) of the firewall policy. This parameter is required.- Returns:
this
- See Also:
-
availabilityZoneChangeProtection
@Stability(Stable) public CfnFirewall.Builder availabilityZoneChangeProtection(Boolean availabilityZoneChangeProtection) 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.- Parameters:
availabilityZoneChangeProtection
- A setting indicating whether the firewall is protected against changes to its Availability Zone configuration. This parameter is required.- Returns:
this
- See Also:
-
availabilityZoneChangeProtection
@Stability(Stable) public CfnFirewall.Builder availabilityZoneChangeProtection(IResolvable availabilityZoneChangeProtection) 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.- Parameters:
availabilityZoneChangeProtection
- A setting indicating whether the firewall is protected against changes to its Availability Zone configuration. This parameter is required.- Returns:
this
- See Also:
-
availabilityZoneMappings
@Stability(Stable) public CfnFirewall.Builder availabilityZoneMappings(IResolvable availabilityZoneMappings) 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.
- Parameters:
availabilityZoneMappings
- The Availability Zones where the firewall endpoints are created for a transit gateway-attached firewall. This parameter is required.- Returns:
this
- See Also:
-
availabilityZoneMappings
@Stability(Stable) public CfnFirewall.Builder availabilityZoneMappings(List<? extends Object> availabilityZoneMappings) 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.
- Parameters:
availabilityZoneMappings
- The Availability Zones where the firewall endpoints are created for a transit gateway-attached firewall. This parameter is required.- Returns:
this
- See Also:
-
deleteProtection
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 toTRUE
.- Parameters:
deleteProtection
- A flag indicating whether it is possible to delete the firewall. This parameter is required.- Returns:
this
- See Also:
-
deleteProtection
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 toTRUE
.- Parameters:
deleteProtection
- A flag indicating whether it is possible to delete the firewall. This parameter is required.- Returns:
this
- See Also:
-
description
A description of the firewall.- Parameters:
description
- A description of the firewall. This parameter is required.- Returns:
this
- See Also:
-
enabledAnalysisTypes
@Stability(Stable) public CfnFirewall.Builder enabledAnalysisTypes(List<String> enabledAnalysisTypes) An optional setting indicating the specific traffic analysis types to enable on the firewall.- Parameters:
enabledAnalysisTypes
- An optional setting indicating the specific traffic analysis types to enable on the firewall. This parameter is required.- Returns:
this
- See Also:
-
firewallPolicyChangeProtection
@Stability(Stable) public CfnFirewall.Builder firewallPolicyChangeProtection(Boolean firewallPolicyChangeProtection) 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
.- Parameters:
firewallPolicyChangeProtection
- A setting indicating whether the firewall is protected against a change to the firewall policy association. This parameter is required.- Returns:
this
- See Also:
-
firewallPolicyChangeProtection
@Stability(Stable) public CfnFirewall.Builder firewallPolicyChangeProtection(IResolvable firewallPolicyChangeProtection) 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
.- Parameters:
firewallPolicyChangeProtection
- A setting indicating whether the firewall is protected against a change to the firewall policy association. This parameter is required.- Returns:
this
- See Also:
-
subnetChangeProtection
@Stability(Stable) public CfnFirewall.Builder subnetChangeProtection(Boolean subnetChangeProtection) 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
.- Parameters:
subnetChangeProtection
- A setting indicating whether the firewall is protected against changes to the subnet associations. This parameter is required.- Returns:
this
- See Also:
-
subnetChangeProtection
@Stability(Stable) public CfnFirewall.Builder subnetChangeProtection(IResolvable subnetChangeProtection) 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
.- Parameters:
subnetChangeProtection
- A setting indicating whether the firewall is protected against changes to the subnet associations. This parameter is required.- Returns:
this
- See Also:
-
subnetMappings
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.- Parameters:
subnetMappings
- The primary public subnets that Network Firewall is using for the firewall. This parameter is required.- Returns:
this
- See Also:
-
subnetMappings
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.- Parameters:
subnetMappings
- The primary public subnets that Network Firewall is using for the firewall. This parameter is required.- Returns:
this
- See Also:
-
tags
An array of key-value pairs to apply to this resource.For more information, see Tag .
- Parameters:
tags
- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this
- See Also:
-
transitGatewayId
The unique identifier of the transit gateway associated with this firewall.This field is only present for transit gateway-attached firewalls.
- Parameters:
transitGatewayId
- The unique identifier of the transit gateway associated with this firewall. This parameter is required.- Returns:
this
- See Also:
-
vpcId
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.
- Parameters:
vpcId
- The unique identifier of the VPC where the firewall is in use. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFirewall>
- Returns:
- a newly built instance of
CfnFirewall
.
-