# CfnLocalGatewayRouteProps

Properties for defining a `CfnLocalGatewayRoute`.

Extends: CfnLocalGatewayRouteProps
Used as props by: CfnLocalGatewayRoute

- Source: Generated code
- Type last changed: v2.51.0 · 18 Nov 2022

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

- `destinationCidrBlock`: string (required) — The CIDR block used for destination matches.

- `localGatewayRouteTableId`: string (required) — The ID of the local gateway route table.

- `localGatewayVirtualInterfaceGroupId`: string — The ID of the virtual interface group.

- `networkInterfaceId`: string — The ID of the network interface.
