# AnalysisRouteTableRouteProperty

Describes a route table route.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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 analysisRouteTableRouteProperty: ec2.CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty = {
  destinationCidr: 'destinationCidr',
  destinationPrefixListId: 'destinationPrefixListId',
  egressOnlyInternetGatewayId: 'egressOnlyInternetGatewayId',
  gatewayId: 'gatewayId',
  instanceId: 'instanceId',
  natGatewayId: 'natGatewayId',
  networkInterfaceId: 'networkInterfaceId',
  origin: 'origin',
  state: 'state',
  transitGatewayId: 'transitGatewayId',
  vpcPeeringConnectionId: 'vpcPeeringConnectionId',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

analysis_route_table_route_property = ec2.CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty(
    destination_cidr="destinationCidr",
    destination_prefix_list_id="destinationPrefixListId",
    egress_only_internet_gateway_id="egressOnlyInternetGatewayId",
    gateway_id="gatewayId",
    instance_id="instanceId",
    nat_gateway_id="natGatewayId",
    network_interface_id="networkInterfaceId",
    origin="origin",
    state="state",
    transit_gateway_id="transitGatewayId",
    vpc_peering_connection_id="vpcPeeringConnectionId"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;

AnalysisRouteTableRouteProperty analysisRouteTableRouteProperty = AnalysisRouteTableRouteProperty.builder()
        .destinationCidr("destinationCidr")
        .destinationPrefixListId("destinationPrefixListId")
        .egressOnlyInternetGatewayId("egressOnlyInternetGatewayId")
        .gatewayId("gatewayId")
        .instanceId("instanceId")
        .natGatewayId("natGatewayId")
        .networkInterfaceId("networkInterfaceId")
        .origin("origin")
        .state("state")
        .transitGatewayId("transitGatewayId")
        .vpcPeeringConnectionId("vpcPeeringConnectionId")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;

var analysisRouteTableRouteProperty = new AnalysisRouteTableRouteProperty {
    DestinationCidr = "destinationCidr",
    DestinationPrefixListId = "destinationPrefixListId",
    EgressOnlyInternetGatewayId = "egressOnlyInternetGatewayId",
    GatewayId = "gatewayId",
    InstanceId = "instanceId",
    NatGatewayId = "natGatewayId",
    NetworkInterfaceId = "networkInterfaceId",
    Origin = "origin",
    State = "state",
    TransitGatewayId = "transitGatewayId",
    VpcPeeringConnectionId = "vpcPeeringConnectionId"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

analysisRouteTableRouteProperty := &AnalysisRouteTableRouteProperty{
	DestinationCidr: jsii.String("destinationCidr"),
	DestinationPrefixListId: jsii.String("destinationPrefixListId"),
	EgressOnlyInternetGatewayId: jsii.String("egressOnlyInternetGatewayId"),
	GatewayId: jsii.String("gatewayId"),
	InstanceId: jsii.String("instanceId"),
	NatGatewayId: jsii.String("natGatewayId"),
	NetworkInterfaceId: jsii.String("networkInterfaceId"),
	Origin: jsii.String("origin"),
	State: jsii.String("state"),
	TransitGatewayId: jsii.String("transitGatewayId"),
	VpcPeeringConnectionId: jsii.String("vpcPeeringConnectionId"),
}
```

## Properties

- `destinationCidr`: string — The destination IPv4 address, in CIDR notation.

- `destinationPrefixListId`: string — The prefix of the AWS service.

- `egressOnlyInternetGatewayId`: string — The ID of an egress-only internet gateway.

- `gatewayId`: string — The ID of the gateway, such as an internet gateway or virtual private gateway.

- `instanceId`: string — The ID of the instance, such as a NAT instance.

- `natGatewayId`: string — The ID of a NAT gateway.

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

- `origin`: string — Describes how the route was created. The following are the possible values:.

  - CreateRouteTable - The route was automatically created when the route table was created.
  - CreateRoute - The route was manually added to the route table.
  - EnableVgwRoutePropagation - The route was propagated by route propagation.

- `state`: string — The state. The following are the possible values:.

  - active
  - blackhole

- `transitGatewayId`: string — The ID of a transit gateway.

- `vpcPeeringConnectionId`: string — The ID of a VPC peering connection.
