Class CfnFirewallMixinProps.Builder

java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.networkfirewall.CfnFirewallMixinProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFirewallMixinProps>
Enclosing interface:
CfnFirewallMixinProps

@Stability(Stable) public static final class CfnFirewallMixinProps.Builder extends Object implements software.amazon.jsii.Builder<CfnFirewallMixinProps>
A builder for CfnFirewallMixinProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • availabilityZoneChangeProtection

      @Stability(Stable) public CfnFirewallMixinProps.Builder availabilityZoneChangeProtection(Boolean availabilityZoneChangeProtection)
      Parameters:
      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.
      Returns:
      this
    • availabilityZoneChangeProtection

      @Stability(Stable) public CfnFirewallMixinProps.Builder availabilityZoneChangeProtection(IResolvable availabilityZoneChangeProtection)
      Parameters:
      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.
      Returns:
      this
    • availabilityZoneMappings

      @Stability(Stable) public CfnFirewallMixinProps.Builder availabilityZoneMappings(IResolvable availabilityZoneMappings)
      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)
      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

      @Stability(Stable) public CfnFirewallMixinProps.Builder deleteProtection(Boolean deleteProtection)
      Parameters:
      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 to TRUE .
      Returns:
      this
    • deleteProtection

      @Stability(Stable) public CfnFirewallMixinProps.Builder deleteProtection(IResolvable deleteProtection)
      Parameters:
      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 to TRUE .
      Returns:
      this
    • description

      @Stability(Stable) public CfnFirewallMixinProps.Builder description(String description)
      Parameters:
      description - A description of the firewall.
      Returns:
      this
    • enabledAnalysisTypes

      @Stability(Stable) public CfnFirewallMixinProps.Builder enabledAnalysisTypes(List<String> enabledAnalysisTypes)
      Parameters:
      enabledAnalysisTypes - An optional setting indicating the specific traffic analysis types to enable on the firewall.
      Returns:
      this
    • firewallName

      @Stability(Stable) public CfnFirewallMixinProps.Builder firewallName(String firewallName)
      Parameters:
      firewallName - The descriptive name of the firewall. You can't change the name of a firewall after you create it.
      Returns:
      this
    • firewallPolicyArn

      @Stability(Stable) public CfnFirewallMixinProps.Builder firewallPolicyArn(String firewallPolicyArn)
      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)
      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)
      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 to TRUE .
      Returns:
      this
    • firewallPolicyChangeProtection

      @Stability(Stable) public CfnFirewallMixinProps.Builder firewallPolicyChangeProtection(IResolvable firewallPolicyChangeProtection)
      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 to TRUE .
      Returns:
      this
    • subnetChangeProtection

      @Stability(Stable) public CfnFirewallMixinProps.Builder subnetChangeProtection(Boolean subnetChangeProtection)
      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 to TRUE .
      Returns:
      this
    • subnetChangeProtection

      @Stability(Stable) public CfnFirewallMixinProps.Builder subnetChangeProtection(IResolvable subnetChangeProtection)
      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 to TRUE .
      Returns:
      this
    • subnetMappings

      @Stability(Stable) public CfnFirewallMixinProps.Builder subnetMappings(IResolvable subnetMappings)
      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 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.

      Returns:
      this
    • subnetMappings

      @Stability(Stable) public CfnFirewallMixinProps.Builder subnetMappings(List<? extends Object> subnetMappings)
      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 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.

      Returns:
      this
    • tags

      @Stability(Stable) public CfnFirewallMixinProps.Builder tags(List<? extends CfnTag> tags)
      Parameters:
      tags - An array of key-value pairs to apply to this resource. For more information, see Tag .
      Returns:
      this
    • transitGatewayId

      @Stability(Stable) public CfnFirewallMixinProps.Builder transitGatewayId(String transitGatewayId)
      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

      @Stability(Stable) public CfnFirewallMixinProps.Builder vpcId(String vpcId)
      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

      @Stability(Stable) public CfnFirewallMixinProps.Builder vpcId(IVPCRef vpcId)
      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

      @Stability(Stable) public CfnFirewallMixinProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnFirewallMixinProps>
      Returns:
      a new instance of CfnFirewallMixinProps
      Throws:
      NullPointerException - if any required attribute was not provided