# ClientVpnRouteProps

Properties for a ClientVpnRoute.

Extends: [ClientVpnRouteOptions](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.ClientVpnRouteOptions.html)
Used as props by: [ClientVpnRoute](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.ClientVpnRoute.html)

- Source: [`aws-ec2/lib/client-vpn-route.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-ec2/lib/client-vpn-route.ts#L67)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';

declare const clientVpnEndpoint: ec2.ClientVpnEndpoint;
declare const clientVpnRouteTarget: ec2.ClientVpnRouteTarget;
const clientVpnRouteProps: ec2.ClientVpnRouteProps = {
  cidr: 'cidr',
  target: clientVpnRouteTarget,

  // the properties below are optional
  clientVpnEndpoint: clientVpnEndpoint,
  description: 'description',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

# client_vpn_endpoint: ec2.ClientVpnEndpoint
# client_vpn_route_target: ec2.ClientVpnRouteTarget

client_vpn_route_props = ec2.ClientVpnRouteProps(
    cidr="cidr",
    target=client_vpn_route_target,

    # the properties below are optional
    client_vpn_endpoint=client_vpn_endpoint,
    description="description"
)
```

Java:

```java
// 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.*;

ClientVpnEndpoint clientVpnEndpoint;
ClientVpnRouteTarget clientVpnRouteTarget;

ClientVpnRouteProps clientVpnRouteProps = ClientVpnRouteProps.builder()
        .cidr("cidr")
        .target(clientVpnRouteTarget)

        // the properties below are optional
        .clientVpnEndpoint(clientVpnEndpoint)
        .description("description")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;

ClientVpnEndpoint clientVpnEndpoint;
ClientVpnRouteTarget clientVpnRouteTarget;

var clientVpnRouteProps = new ClientVpnRouteProps {
    Cidr = "cidr",
    Target = clientVpnRouteTarget,

    // the properties below are optional
    ClientVpnEndpoint = clientVpnEndpoint,
    Description = "description"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var clientVpnEndpoint ClientVpnEndpoint
var clientVpnRouteTarget ClientVpnRouteTarget

clientVpnRouteProps := &ClientVpnRouteProps{
	Cidr: jsii.String("cidr"),
	Target: clientVpnRouteTarget,

	// the properties below are optional
	ClientVpnEndpoint: clientVpnEndpoint,
	Description: jsii.String("description"),
}
```

## Properties

- `cidr`: string (required) — 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

- `clientVpnEndpoint`: [IClientVpnEndpoint](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.IClientVpnEndpoint.html) — The client VPN endpoint to which to add the route.

  **Default:** clientVpnEndpoint is required

- `description`: string — A brief description of the authorization rule.

  **Default:** no description

- `target`: [ClientVpnRouteTarget](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.ClientVpnRouteTarget.html) (required) — The target for the route.
