Interface CfnClientVpnRouteProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnClientVpnRouteProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:38.455Z") @Stability(Stable) public interface CfnClientVpnRouteProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnClientVpnRoute.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ec2.*;
 CfnClientVpnRouteProps cfnClientVpnRouteProps = CfnClientVpnRouteProps.builder()
         .clientVpnEndpointId("clientVpnEndpointId")
         .destinationCidrBlock("destinationCidrBlock")
         .targetVpcSubnetId("targetVpcSubnetId")
         // the properties below are optional
         .description("description")
         .build();
 
  • Method Details

    • getClientVpnEndpointId

      @Stability(Stable) @NotNull String getClientVpnEndpointId()
      The ID of the Client VPN endpoint to which to add the route.
    • getDestinationCidrBlock

      @Stability(Stable) @NotNull String getDestinationCidrBlock()
      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
    • getTargetVpcSubnetId

      @Stability(Stable) @NotNull String getTargetVpcSubnetId()
      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 .

    • getDescription

      @Stability(Stable) @Nullable default String getDescription()
      A brief description of the route.
    • builder

      @Stability(Stable) static CfnClientVpnRouteProps.Builder builder()
      Returns:
      a CfnClientVpnRouteProps.Builder of CfnClientVpnRouteProps