AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::EC2::VPNConnectionRoute

CfnVPNConnectionRoute

Specifies a static route for a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway. For more information, see [AWS Site-to-Site VPN](https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html) in the *AWS Site-to-Site VPN User Guide* .

Import

import { CfnVPNConnectionRoute } from 'aws-cdk-lib/aws-ec2';

Or use the module namespace:

import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.CfnVPNConnectionRoute

Properties

Configuration passed to the constructor as CfnVPNConnectionRouteProps.

destinationCidrBlockRequired
string

The CIDR block associated with the local subnet of the customer network.

vpnConnectionIdRequired
string | IVPNConnectionRef

The ID of the VPN connection.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon EC2 Cheat Sheet

Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.

Download Free Infographic