AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::EC2::LocalGatewayRoute

CfnLocalGatewayRoute

Creates a static route for the specified local gateway route table. You must specify one of the following targets:. - `LocalGatewayVirtualInterfaceGroupId` - `NetworkInterfaceId`

Import

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

Or use the module namespace:

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

Properties

Configuration passed to the constructor as CfnLocalGatewayRouteProps.

destinationCidrBlockRequired
string

The CIDR block used for destination matches.

localGatewayRouteTableIdRequired
string

The ID of the local gateway route table.

localGatewayVirtualInterfaceGroupIdOptional
string

The ID of the virtual interface group.

networkInterfaceIdOptional
string

The ID of the network interface.

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