# CfnVPNConnectionRouteProps

Properties for defining a `CfnVPNConnectionRoute`.

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

- Source: Generated at build time
- Type last changed: v2.227.0 · 21 Nov 2025

## 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';
const cfnVPNConnectionRouteProps: ec2.CfnVPNConnectionRouteProps = {
  destinationCidrBlock: 'destinationCidrBlock',
  vpnConnectionId: 'vpnConnectionId',
};
```

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

cfn_vpn_connection_route_props = ec2.CfnVPNConnectionRouteProps(
    destination_cidr_block="destinationCidrBlock",
    vpn_connection_id="vpnConnectionId"
)
```

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.*;

CfnVPNConnectionRouteProps cfnVPNConnectionRouteProps = CfnVPNConnectionRouteProps.builder()
        .destinationCidrBlock("destinationCidrBlock")
        .vpnConnectionId("vpnConnectionId")
        .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;

var cfnVPNConnectionRouteProps = new CfnVPNConnectionRouteProps {
    DestinationCidrBlock = "destinationCidrBlock",
    VpnConnectionId = "vpnConnectionId"
};
```

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"

cfnVPNConnectionRouteProps := &CfnVPNConnectionRouteProps{
	DestinationCidrBlock: jsii.String("destinationCidrBlock"),
	VpnConnectionId: jsii.String("vpnConnectionId"),
}
```

## Properties

- `destinationCidrBlock`: string (required) — The CIDR block associated with the local subnet of the customer network.

- `vpnConnectionId`: string | [IVPNConnectionRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_ec2.IVPNConnectionRef.html) (required) — The ID of the VPN connection.
