Class VpnTunnelOption.Builder

java.lang.Object
software.amazon.awscdk.services.ec2.VpnTunnelOption.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<VpnTunnelOption>
Enclosing interface:
VpnTunnelOption

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

    • Builder

      public Builder()
  • Method Details

    • preSharedKey

      @Stability(Deprecated) @Deprecated public VpnTunnelOption.Builder preSharedKey(String preSharedKey)
      Deprecated.
      Use `preSharedKeySecret` instead
      Parameters:
      preSharedKey - The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer gateway. Allowed characters are alphanumeric characters period . and underscores _. Must be between 8 and 64 characters in length and cannot start with zero (0).
      Returns:
      this
    • preSharedKeySecret

      @Stability(Stable) public VpnTunnelOption.Builder preSharedKeySecret(SecretValue preSharedKeySecret)
      Parameters:
      preSharedKeySecret - The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer gateway. Allowed characters are alphanumeric characters period . and underscores _. Must be between 8 and 64 characters in length and cannot start with zero (0).
      Returns:
      this
    • tunnelInsideCidr

      @Stability(Stable) public VpnTunnelOption.Builder tunnelInsideCidr(String tunnelInsideCidr)
      Parameters:
      tunnelInsideCidr - The range of inside IP addresses for the tunnel. Any specified CIDR blocks must be unique across all VPN connections that use the same virtual private gateway. A size /30 CIDR block from the 169.254.0.0/16 range.
      Returns:
      this
    • build

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