Class CfnFirewallMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFirewallMixinProps>
- Enclosing interface:
CfnFirewallMixinProps
CfnFirewallMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZoneChangeProtection(Boolean availabilityZoneChangeProtection) Sets the value ofCfnFirewallMixinProps.getAvailabilityZoneChangeProtection()availabilityZoneChangeProtection(IResolvable availabilityZoneChangeProtection) Sets the value ofCfnFirewallMixinProps.getAvailabilityZoneChangeProtection()availabilityZoneMappings(List<? extends Object> availabilityZoneMappings) Sets the value ofCfnFirewallMixinProps.getAvailabilityZoneMappings()availabilityZoneMappings(IResolvable availabilityZoneMappings) Sets the value ofCfnFirewallMixinProps.getAvailabilityZoneMappings()build()Builds the configured instance.deleteProtection(Boolean deleteProtection) Sets the value ofCfnFirewallMixinProps.getDeleteProtection()deleteProtection(IResolvable deleteProtection) Sets the value ofCfnFirewallMixinProps.getDeleteProtection()description(String description) Sets the value ofCfnFirewallMixinProps.getDescription()enabledAnalysisTypes(List<String> enabledAnalysisTypes) Sets the value ofCfnFirewallMixinProps.getEnabledAnalysisTypes()firewallName(String firewallName) Sets the value ofCfnFirewallMixinProps.getFirewallName()firewallPolicyArn(String firewallPolicyArn) Sets the value ofCfnFirewallMixinProps.getFirewallPolicyArn()firewallPolicyArn(IFirewallPolicyRef firewallPolicyArn) Sets the value ofCfnFirewallMixinProps.getFirewallPolicyArn()firewallPolicyChangeProtection(Boolean firewallPolicyChangeProtection) Sets the value ofCfnFirewallMixinProps.getFirewallPolicyChangeProtection()firewallPolicyChangeProtection(IResolvable firewallPolicyChangeProtection) Sets the value ofCfnFirewallMixinProps.getFirewallPolicyChangeProtection()subnetChangeProtection(Boolean subnetChangeProtection) Sets the value ofCfnFirewallMixinProps.getSubnetChangeProtection()subnetChangeProtection(IResolvable subnetChangeProtection) Sets the value ofCfnFirewallMixinProps.getSubnetChangeProtection()subnetMappings(List<? extends Object> subnetMappings) Sets the value ofCfnFirewallMixinProps.getSubnetMappings()subnetMappings(IResolvable subnetMappings) Sets the value ofCfnFirewallMixinProps.getSubnetMappings()Sets the value ofCfnFirewallMixinProps.getTags()transitGatewayId(String transitGatewayId) Sets the value ofCfnFirewallMixinProps.getTransitGatewayId()Sets the value ofCfnFirewallMixinProps.getVpcId()Sets the value ofCfnFirewallMixinProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZoneChangeProtection
@Stability(Stable) public CfnFirewallMixinProps.Builder availabilityZoneChangeProtection(Boolean availabilityZoneChangeProtection) Sets the value ofCfnFirewallMixinProps.getAvailabilityZoneChangeProtection()- Parameters:
availabilityZoneChangeProtection- A setting indicating whether the firewall is protected against changes to its Availability Zone configuration. When set toTRUE, you must first disable this protection before adding or removing Availability Zones.- Returns:
this
-
availabilityZoneChangeProtection
@Stability(Stable) public CfnFirewallMixinProps.Builder availabilityZoneChangeProtection(IResolvable availabilityZoneChangeProtection) Sets the value ofCfnFirewallMixinProps.getAvailabilityZoneChangeProtection()- Parameters:
availabilityZoneChangeProtection- A setting indicating whether the firewall is protected against changes to its Availability Zone configuration. When set toTRUE, you must first disable this protection before adding or removing Availability Zones.- Returns:
this
-
availabilityZoneMappings
@Stability(Stable) public CfnFirewallMixinProps.Builder availabilityZoneMappings(IResolvable availabilityZoneMappings) Sets the value ofCfnFirewallMixinProps.getAvailabilityZoneMappings()- Parameters:
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.- Returns:
this
-
availabilityZoneMappings
@Stability(Stable) public CfnFirewallMixinProps.Builder availabilityZoneMappings(List<? extends Object> availabilityZoneMappings) Sets the value ofCfnFirewallMixinProps.getAvailabilityZoneMappings()- Parameters:
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.- Returns:
this
-
deleteProtection
Sets the value ofCfnFirewallMixinProps.getDeleteProtection()- Parameters:
deleteProtection- A flag indicating whether it is possible to delete the firewall. A setting ofTRUEindicates 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.- Returns:
this
-
deleteProtection
@Stability(Stable) public CfnFirewallMixinProps.Builder deleteProtection(IResolvable deleteProtection) Sets the value ofCfnFirewallMixinProps.getDeleteProtection()- Parameters:
deleteProtection- A flag indicating whether it is possible to delete the firewall. A setting ofTRUEindicates 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.- Returns:
this
-
description
Sets the value ofCfnFirewallMixinProps.getDescription()- Parameters:
description- A description of the firewall.- Returns:
this
-
enabledAnalysisTypes
@Stability(Stable) public CfnFirewallMixinProps.Builder enabledAnalysisTypes(List<String> enabledAnalysisTypes) Sets the value ofCfnFirewallMixinProps.getEnabledAnalysisTypes()- Parameters:
enabledAnalysisTypes- An optional setting indicating the specific traffic analysis types to enable on the firewall.- Returns:
this
-
firewallName
Sets the value ofCfnFirewallMixinProps.getFirewallName()- Parameters:
firewallName- The descriptive name of the firewall. You can't change the name of a firewall after you create it.- Returns:
this
-
firewallPolicyArn
Sets the value ofCfnFirewallMixinProps.getFirewallPolicyArn()- Parameters:
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.- Returns:
this
-
firewallPolicyArn
@Stability(Stable) public CfnFirewallMixinProps.Builder firewallPolicyArn(IFirewallPolicyRef firewallPolicyArn) Sets the value ofCfnFirewallMixinProps.getFirewallPolicyArn()- Parameters:
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.- Returns:
this
-
firewallPolicyChangeProtection
@Stability(Stable) public CfnFirewallMixinProps.Builder firewallPolicyChangeProtection(Boolean firewallPolicyChangeProtection) Sets the value ofCfnFirewallMixinProps.getFirewallPolicyChangeProtection()- Parameters:
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 toTRUE.- Returns:
this
-
firewallPolicyChangeProtection
@Stability(Stable) public CfnFirewallMixinProps.Builder firewallPolicyChangeProtection(IResolvable firewallPolicyChangeProtection) Sets the value ofCfnFirewallMixinProps.getFirewallPolicyChangeProtection()- Parameters:
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 toTRUE.- Returns:
this
-
subnetChangeProtection
@Stability(Stable) public CfnFirewallMixinProps.Builder subnetChangeProtection(Boolean subnetChangeProtection) Sets the value ofCfnFirewallMixinProps.getSubnetChangeProtection()- Parameters:
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 toTRUE.- Returns:
this
-
subnetChangeProtection
@Stability(Stable) public CfnFirewallMixinProps.Builder subnetChangeProtection(IResolvable subnetChangeProtection) Sets the value ofCfnFirewallMixinProps.getSubnetChangeProtection()- Parameters:
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 toTRUE.- Returns:
this
-
subnetMappings
Sets the value ofCfnFirewallMixinProps.getSubnetMappings()- Parameters:
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
VpcEndpointAssociationresources. 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.- Returns:
this
-
subnetMappings
@Stability(Stable) public CfnFirewallMixinProps.Builder subnetMappings(List<? extends Object> subnetMappings) Sets the value ofCfnFirewallMixinProps.getSubnetMappings()- Parameters:
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
VpcEndpointAssociationresources. 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.- Returns:
this
-
tags
Sets the value ofCfnFirewallMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
transitGatewayId
Sets the value ofCfnFirewallMixinProps.getTransitGatewayId()- Parameters:
transitGatewayId- The unique identifier of the transit gateway associated with this firewall. This field is only present for transit gateway-attached firewalls.- Returns:
this
-
vpcId
Sets the value ofCfnFirewallMixinProps.getVpcId()- Parameters:
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.- Returns:
this
-
vpcId
Sets the value ofCfnFirewallMixinProps.getVpcId()- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFirewallMixinProps>- Returns:
- a new instance of
CfnFirewallMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-