Class CfnClientVpnRoute.Builder

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

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

    • create

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

      @Stability(Stable) public CfnClientVpnRoute.Builder clientVpnEndpointId(String clientVpnEndpointId)
      The ID of the Client VPN endpoint to which to add the route.

      Parameters:
      clientVpnEndpointId - The ID of the Client VPN endpoint to which to add the route. This parameter is required.
      Returns:
      this
    • destinationCidrBlock

      @Stability(Stable) public CfnClientVpnRoute.Builder destinationCidrBlock(String destinationCidrBlock)
      The IPv4 address range, in CIDR notation, of the route destination. For example:.

      • To add a route for Internet access, enter 0.0.0.0/0
      • To add a route for a peered VPC, enter the peered VPC's IPv4 CIDR range
      • To add a route for an on-premises network, enter the AWS Site-to-Site VPN connection's IPv4 CIDR range
      • To add a route for the local network, enter the client CIDR range

      Parameters:
      destinationCidrBlock - The IPv4 address range, in CIDR notation, of the route destination. For example:. This parameter is required.
      Returns:
      this
    • targetVpcSubnetId

      @Stability(Stable) public CfnClientVpnRoute.Builder targetVpcSubnetId(String targetVpcSubnetId)
      The ID of the subnet through which you want to route traffic.

      The specified subnet must be an existing target network of the Client VPN endpoint.

      Alternatively, if you're adding a route for the local network, specify local .

      Parameters:
      targetVpcSubnetId - The ID of the subnet through which you want to route traffic. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnClientVpnRoute.Builder description(String description)
      A brief description of the route.

      Parameters:
      description - A brief description of the route. This parameter is required.
      Returns:
      this
    • build

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