Skip to content
v2.274.0

CfnLocalGatewayRouteProps Struct ​

Properties for defining a CfnLocalGatewayRoute.

Example ​

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 cfnLocalGatewayRouteProps: ec2.CfnLocalGatewayRouteProps = {
  destinationCidrBlock: 'destinationCidrBlock',
  localGatewayRouteTableId: 'localGatewayRouteTableId',

  // the properties below are optional
  localGatewayVirtualInterfaceGroupId: 'localGatewayVirtualInterfaceGroupId',
  networkInterfaceId: 'networkInterfaceId',
};

Properties ​

destinationCidrBlockstringdestination_cidr_blockstrdestinationCidrBlockStringDestinationCidrBlockstringDestinationCidrBlock*stringrequired#
The CIDR block used for destination matches.
localGatewayRouteTableIdstringlocal_gateway_route_table_idstrlocalGatewayRouteTableIdStringLocalGatewayRouteTableIdstringLocalGatewayRouteTableId*stringrequired#
The ID of the local gateway route table.
localGatewayVirtualInterfaceGroupIdoptionalstringlocal_gateway_virtual_interface_group_idoptionalstrlocalGatewayVirtualInterfaceGroupIdoptionalStringLocalGatewayVirtualInterfaceGroupIdoptionalstringLocalGatewayVirtualInterfaceGroupIdoptional*string#
The ID of the virtual interface group.
networkInterfaceIdoptionalstringnetwork_interface_idoptionalstrnetworkInterfaceIdoptionalStringNetworkInterfaceIdoptionalstringNetworkInterfaceIdoptional*string#
The ID of the network interface.