ClientVpnRouteTarget

class aws_cdk.aws_ec2.ClientVpnRouteTarget

Bases: object

Target for a client VPN route.

ExampleMetadata:

fixture=client-vpn infused

Example:

endpoint = vpc.add_client_vpn_endpoint("Endpoint",
    cidr="10.100.0.0/16",
    server_certificate_arn="arn:aws:acm:us-east-1:123456789012:certificate/server-certificate-id",
    user_based_authentication=ec2.ClientVpnUserBasedAuthentication.federated(saml_provider)
)

# Client-to-client access
endpoint.add_route("Route",
    cidr="10.100.0.0/16",
    target=ec2.ClientVpnRouteTarget.local()
)

Attributes

subnet_id

The subnet ID.

Static Methods

classmethod local()

Local network.

Return type:

ClientVpnRouteTarget

classmethod subnet(subnet)

Subnet.

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

Parameters:

subnet (ISubnet) –

Return type:

ClientVpnRouteTarget