Class CfnVPNConnection.Builder

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

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

    • create

      @Stability(Stable) public static CfnVPNConnection.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 CfnVPNConnection.Builder.
    • customerGatewayId

      @Stability(Stable) public CfnVPNConnection.Builder customerGatewayId(String customerGatewayId)
      The ID of the customer gateway at your end of the VPN connection.

      Parameters:
      customerGatewayId - The ID of the customer gateway at your end of the VPN connection. This parameter is required.
      Returns:
      this
    • type

      @Stability(Stable) public CfnVPNConnection.Builder type(String type)
      The type of VPN connection.

      Parameters:
      type - The type of VPN connection. This parameter is required.
      Returns:
      this
    • staticRoutesOnly

      @Stability(Stable) public CfnVPNConnection.Builder staticRoutesOnly(Boolean staticRoutesOnly)
      Indicates whether the VPN connection uses static routes only.

      Static routes must be used for devices that don't support BGP.

      If you are creating a VPN connection for a device that does not support Border Gateway Protocol (BGP), you must specify true .

      Parameters:
      staticRoutesOnly - Indicates whether the VPN connection uses static routes only. This parameter is required.
      Returns:
      this
    • staticRoutesOnly

      @Stability(Stable) public CfnVPNConnection.Builder staticRoutesOnly(IResolvable staticRoutesOnly)
      Indicates whether the VPN connection uses static routes only.

      Static routes must be used for devices that don't support BGP.

      If you are creating a VPN connection for a device that does not support Border Gateway Protocol (BGP), you must specify true .

      Parameters:
      staticRoutesOnly - Indicates whether the VPN connection uses static routes only. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnVPNConnection.Builder tags(List<? extends CfnTag> tags)
      Any tags assigned to the VPN connection.

      Parameters:
      tags - Any tags assigned to the VPN connection. This parameter is required.
      Returns:
      this
    • transitGatewayId

      @Stability(Stable) public CfnVPNConnection.Builder transitGatewayId(String transitGatewayId)
      The ID of the transit gateway associated with the VPN connection.

      You must specify either TransitGatewayId or VpnGatewayId , but not both.

      Parameters:
      transitGatewayId - The ID of the transit gateway associated with the VPN connection. This parameter is required.
      Returns:
      this
    • vpnGatewayId

      @Stability(Stable) public CfnVPNConnection.Builder vpnGatewayId(String vpnGatewayId)
      The ID of the virtual private gateway at the AWS side of the VPN connection.

      You must specify either TransitGatewayId or VpnGatewayId , but not both.

      Parameters:
      vpnGatewayId - The ID of the virtual private gateway at the AWS side of the VPN connection. This parameter is required.
      Returns:
      this
    • vpnTunnelOptionsSpecifications

      @Stability(Stable) public CfnVPNConnection.Builder vpnTunnelOptionsSpecifications(IResolvable vpnTunnelOptionsSpecifications)
      The tunnel options for the VPN connection.

      Parameters:
      vpnTunnelOptionsSpecifications - The tunnel options for the VPN connection. This parameter is required.
      Returns:
      this
    • vpnTunnelOptionsSpecifications

      @Stability(Stable) public CfnVPNConnection.Builder vpnTunnelOptionsSpecifications(List<? extends Object> vpnTunnelOptionsSpecifications)
      The tunnel options for the VPN connection.

      Parameters:
      vpnTunnelOptionsSpecifications - The tunnel options for the VPN connection. This parameter is required.
      Returns:
      this
    • build

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