aws-cdk-lib.aws_ec2.CfnLocalGatewayRouteProps

interface CfnLocalGatewayRouteProps

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnLocalGatewayRouteProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnLocalGatewayRouteProps
Javasoftware.amazon.awscdk.services.ec2.CfnLocalGatewayRouteProps
Pythonaws_cdk.aws_ec2.CfnLocalGatewayRouteProps
TypeScript aws-cdk-lib » aws_ec2 » CfnLocalGatewayRouteProps

Properties for defining a CfnLocalGatewayRoute.

Example

// 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

NameTypeDescription
destinationCidrBlockstringThe CIDR block used for destination matches.
localGatewayRouteTableIdstringThe ID of the local gateway route table.
localGatewayVirtualInterfaceGroupId?stringThe ID of the virtual interface group.
networkInterfaceId?stringThe ID of the network interface.

destinationCidrBlock

Type: string

The CIDR block used for destination matches.


localGatewayRouteTableId

Type: string

The ID of the local gateway route table.


localGatewayVirtualInterfaceGroupId?

Type: string (optional)

The ID of the virtual interface group.


networkInterfaceId?

Type: string (optional)

The ID of the network interface.