> **Experimental**
>
> `@aws-cdk/aws-ec2-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# BaseTransitGatewayRouteProps

Common properties for a Transit Gateway Route.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/transit-gateway-route.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/@aws-cdk/aws-ec2-alpha/lib/transit-gateway-route.ts#L31)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ec2_alpha from '@aws-cdk/aws-ec2-alpha';

declare const transitGatewayRouteTable: ec2_alpha.TransitGatewayRouteTable;
const baseTransitGatewayRouteProps: ec2_alpha.BaseTransitGatewayRouteProps = {
  destinationCidrBlock: 'destinationCidrBlock',
  transitGatewayRouteTable: transitGatewayRouteTable,

  // the properties below are optional
  transitGatewayRouteName: 'transitGatewayRouteName',
};
```

Python:

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

# transit_gateway_route_table: ec2_alpha.TransitGatewayRouteTable

base_transit_gateway_route_props = ec2_alpha.BaseTransitGatewayRouteProps(
    destination_cidr_block="destinationCidrBlock",
    transit_gateway_route_table=transit_gateway_route_table,

    # the properties below are optional
    transit_gateway_route_name="transitGatewayRouteName"
)
```

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.alpha.*;

TransitGatewayRouteTable transitGatewayRouteTable;

BaseTransitGatewayRouteProps baseTransitGatewayRouteProps = BaseTransitGatewayRouteProps.builder()
        .destinationCidrBlock("destinationCidrBlock")
        .transitGatewayRouteTable(transitGatewayRouteTable)

        // the properties below are optional
        .transitGatewayRouteName("transitGatewayRouteName")
        .build();
```

C# / .NET:

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

TransitGatewayRouteTable transitGatewayRouteTable;

var baseTransitGatewayRouteProps = new BaseTransitGatewayRouteProps {
    DestinationCidrBlock = "destinationCidrBlock",
    TransitGatewayRouteTable = transitGatewayRouteTable,

    // the properties below are optional
    TransitGatewayRouteName = "transitGatewayRouteName"
};
```

Golang:

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

var transitGatewayRouteTable TransitGatewayRouteTable

baseTransitGatewayRouteProps := &BaseTransitGatewayRouteProps{
	DestinationCidrBlock: jsii.String("destinationCidrBlock"),
	TransitGatewayRouteTable: transitGatewayRouteTable,

	// the properties below are optional
	TransitGatewayRouteName: jsii.String("transitGatewayRouteName"),
}
```

## Properties

- `destinationCidrBlock`: string (required) — The destination CIDR block for this route.

  Destination Cidr cannot overlap for static routes but is allowed for propagated routes.
  When overlapping occurs, static routes take precedence over propagated routes.

- `transitGatewayRouteName`: string — Physical name of this Transit Gateway Route.

  **Default:** Assigned by CloudFormation.

- `transitGatewayRouteTable`: [ITransitGatewayRouteTable](/cdk/api/v2/docs/@aws-cdk_aws-ec2-alpha.ITransitGatewayRouteTable.html) (required) — The transit gateway route table you want to install this route into.
