Interface IgwFirewallConfig.Builder

  • Method Details

    • defaultSubnetConnectivity

      IgwFirewallConfig.Builder defaultSubnetConnectivity(String defaultSubnetConnectivity)

      The default internet connectivity treatment that AWS Network Security Manager applies to subnets in scope, unless a subnet connectivity override applies. Required for Network Firewall automated internet firewall policies. Valid values:

      • flexible – Sets the connectivity for each network interface in the subnet based on whether it is associated with a public IP address. A network interface with a public IP address gets bidirectional internet connectivity. A network interface without a public IP address gets outbound-only connectivity. All traffic is inspected against your firewall rules.

      • bidirectional – Provides bidirectional internet connectivity to every network interface that has a public IP association. Any network interface without a public IP cannot communicate with the internet unless a NAT device is explicitly inserted in the path. All inbound and outbound traffic is inspected against your firewall rules.

      • outbound-only – Provides egress-only connectivity for all network interfaces in the subnet. All outbound traffic and inbound responses are inspected against your firewall rules. Unsolicited inbound connections are dropped. For IPv4 traffic, the Network Firewall automated internet firewall performs NAT.

      Parameters:
      defaultSubnetConnectivity - The default internet connectivity treatment that AWS Network Security Manager applies to subnets in scope, unless a subnet connectivity override applies. Required for Network Firewall automated internet firewall policies. Valid values:

      • flexible – Sets the connectivity for each network interface in the subnet based on whether it is associated with a public IP address. A network interface with a public IP address gets bidirectional internet connectivity. A network interface without a public IP address gets outbound-only connectivity. All traffic is inspected against your firewall rules.

      • bidirectional – Provides bidirectional internet connectivity to every network interface that has a public IP association. Any network interface without a public IP cannot communicate with the internet unless a NAT device is explicitly inserted in the path. All inbound and outbound traffic is inspected against your firewall rules.

      • outbound-only – Provides egress-only connectivity for all network interfaces in the subnet. All outbound traffic and inbound responses are inspected against your firewall rules. Unsolicited inbound connections are dropped. For IPv4 traffic, the Network Firewall automated internet firewall performs NAT.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • defaultSubnetConnectivity

      IgwFirewallConfig.Builder defaultSubnetConnectivity(DefaultSubnetConnectivity defaultSubnetConnectivity)

      The default internet connectivity treatment that AWS Network Security Manager applies to subnets in scope, unless a subnet connectivity override applies. Required for Network Firewall automated internet firewall policies. Valid values:

      • flexible – Sets the connectivity for each network interface in the subnet based on whether it is associated with a public IP address. A network interface with a public IP address gets bidirectional internet connectivity. A network interface without a public IP address gets outbound-only connectivity. All traffic is inspected against your firewall rules.

      • bidirectional – Provides bidirectional internet connectivity to every network interface that has a public IP association. Any network interface without a public IP cannot communicate with the internet unless a NAT device is explicitly inserted in the path. All inbound and outbound traffic is inspected against your firewall rules.

      • outbound-only – Provides egress-only connectivity for all network interfaces in the subnet. All outbound traffic and inbound responses are inspected against your firewall rules. Unsolicited inbound connections are dropped. For IPv4 traffic, the Network Firewall automated internet firewall performs NAT.

      Parameters:
      defaultSubnetConnectivity - The default internet connectivity treatment that AWS Network Security Manager applies to subnets in scope, unless a subnet connectivity override applies. Required for Network Firewall automated internet firewall policies. Valid values:

      • flexible – Sets the connectivity for each network interface in the subnet based on whether it is associated with a public IP address. A network interface with a public IP address gets bidirectional internet connectivity. A network interface without a public IP address gets outbound-only connectivity. All traffic is inspected against your firewall rules.

      • bidirectional – Provides bidirectional internet connectivity to every network interface that has a public IP association. Any network interface without a public IP cannot communicate with the internet unless a NAT device is explicitly inserted in the path. All inbound and outbound traffic is inspected against your firewall rules.

      • outbound-only – Provides egress-only connectivity for all network interfaces in the subnet. All outbound traffic and inbound responses are inspected against your firewall rules. Unsolicited inbound connections are dropped. For IPv4 traffic, the Network Firewall automated internet firewall performs NAT.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • subnetConnectivityOverrides

      IgwFirewallConfig.Builder subnetConnectivityOverrides(Collection<SubnetConnectivityOverride> subnetConnectivityOverrides)

      An ordered list of overrides that apply a different connectivity treatment to the subnets that a scope selects. When a subnet matches more than one override, the first matching override in the list applies. You can specify at most one override for each connectivity type.

      Parameters:
      subnetConnectivityOverrides - An ordered list of overrides that apply a different connectivity treatment to the subnets that a scope selects. When a subnet matches more than one override, the first matching override in the list applies. You can specify at most one override for each connectivity type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subnetConnectivityOverrides

      IgwFirewallConfig.Builder subnetConnectivityOverrides(SubnetConnectivityOverride... subnetConnectivityOverrides)

      An ordered list of overrides that apply a different connectivity treatment to the subnets that a scope selects. When a subnet matches more than one override, the first matching override in the list applies. You can specify at most one override for each connectivity type.

      Parameters:
      subnetConnectivityOverrides - An ordered list of overrides that apply a different connectivity treatment to the subnets that a scope selects. When a subnet matches more than one override, the first matching override in the list applies. You can specify at most one override for each connectivity type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subnetConnectivityOverrides

      IgwFirewallConfig.Builder subnetConnectivityOverrides(Consumer<SubnetConnectivityOverride.Builder>... subnetConnectivityOverrides)

      An ordered list of overrides that apply a different connectivity treatment to the subnets that a scope selects. When a subnet matches more than one override, the first matching override in the list applies. You can specify at most one override for each connectivity type.

      This is a convenience method that creates an instance of the SubnetConnectivityOverride.Builder avoiding the need to create one manually via SubnetConnectivityOverride.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to subnetConnectivityOverrides(List<SubnetConnectivityOverride>).

      Parameters:
      subnetConnectivityOverrides - a consumer that will call methods on SubnetConnectivityOverride.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: