Class CfnFirewall.Builder

java.lang.Object
software.amazon.awscdk.services.networkfirewall.CfnFirewall.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFirewall>
Enclosing class:
CfnFirewall

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

    • create

      @Stability(Stable) public static CfnFirewall.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnFirewall.Builder.
    • firewallName

      @Stability(Stable) public CfnFirewall.Builder firewallName(String 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
    • firewallPolicyArn

      @Stability(Stable) public CfnFirewall.Builder firewallPolicyArn(String 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
    • subnetMappings

      @Stability(Stable) public CfnFirewall.Builder subnetMappings(IResolvable subnetMappings)
      The public subnets that Network Firewall is using for the firewall.

      Each subnet must belong to a different Availability Zone.

      Parameters:
      subnetMappings - The public subnets that Network Firewall is using for the firewall. This parameter is required.
      Returns:
      this
    • subnetMappings

      @Stability(Stable) public CfnFirewall.Builder subnetMappings(List<? extends Object> subnetMappings)
      The public subnets that Network Firewall is using for the firewall.

      Each subnet must belong to a different Availability Zone.

      Parameters:
      subnetMappings - The public subnets that Network Firewall is using for the firewall. This parameter is required.
      Returns:
      this
    • vpcId

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

      @Stability(Stable) public CfnFirewall.Builder deleteProtection(Boolean 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 .

      Parameters:
      deleteProtection - A flag indicating whether it is possible to delete the firewall. This parameter is required.
      Returns:
      this
    • deleteProtection

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

      Parameters:
      deleteProtection - A flag indicating whether it is possible to delete the firewall. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnFirewall.Builder description(String description)
      A description of the firewall.

      Parameters:
      description - A description of the firewall. This parameter is required.
      Returns:
      this
    • 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
    • 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
    • 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
    • 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
    • tags

      @Stability(Stable) public CfnFirewall.Builder tags(List<? extends CfnTag> 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
    • build

      @Stability(Stable) public CfnFirewall build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnFirewall>
      Returns:
      a newly built instance of CfnFirewall.