Route

class Route : KotlinCustomResource

Provides additional routes for AWS Client VPN endpoints. For more information on usage, please see the AWS Client VPN Administrator's Guide.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2clientvpn.Endpoint;
import com.pulumi.aws.ec2clientvpn.EndpointArgs;
import com.pulumi.aws.ec2clientvpn.inputs.EndpointAuthenticationOptionArgs;
import com.pulumi.aws.ec2clientvpn.inputs.EndpointConnectionLogOptionsArgs;
import com.pulumi.aws.ec2clientvpn.NetworkAssociation;
import com.pulumi.aws.ec2clientvpn.NetworkAssociationArgs;
import com.pulumi.aws.ec2clientvpn.Route;
import com.pulumi.aws.ec2clientvpn.RouteArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleEndpoint = new Endpoint("exampleEndpoint", EndpointArgs.builder()
.description("Example Client VPN endpoint")
.serverCertificateArn(aws_acm_certificate.example().arn())
.clientCidrBlock("10.0.0.0/16")
.authenticationOptions(EndpointAuthenticationOptionArgs.builder()
.type("certificate-authentication")
.rootCertificateChainArn(aws_acm_certificate.example().arn())
.build())
.connectionLogOptions(EndpointConnectionLogOptionsArgs.builder()
.enabled(false)
.build())
.build());
var exampleNetworkAssociation = new NetworkAssociation("exampleNetworkAssociation", NetworkAssociationArgs.builder()
.clientVpnEndpointId(exampleEndpoint.id())
.subnetId(aws_subnet.example().id())
.build());
var exampleRoute = new Route("exampleRoute", RouteArgs.builder()
.clientVpnEndpointId(exampleEndpoint.id())
.destinationCidrBlock("0.0.0.0/0")
.targetVpcSubnetId(exampleNetworkAssociation.subnetId())
.build());
}
}

Import

AWS Client VPN routes can be imported using the endpoint ID, target subnet ID, and destination CIDR block. All values are separated by a ,.

$ pulumi import aws:ec2clientvpn/route:Route example cvpn-endpoint-1234567890abcdef,subnet-9876543210fedcba,10.1.0.0/24

Properties

Link copied to clipboard

The ID of the Client VPN endpoint.

Link copied to clipboard
val description: Output<String>?

A brief description of the route.

Link copied to clipboard

The IPv4 address range, in CIDR notation, of the route destination.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val origin: Output<String>

Indicates how the Client VPN route was added. Will be add-route for routes created by this resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The ID of the Subnet to route the traffic through. It must already be attached to the Client VPN.

Link copied to clipboard
val type: Output<String>

The type of the route.

Link copied to clipboard
val urn: Output<String>