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

Common properties for a Transit Gateway Route Table Association.

Used as props by: [TransitGatewayRouteTableAssociation](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-ec2-alpha.TransitGatewayRouteTableAssociation.html)

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

## 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 transitGatewayAttachment: ec2_alpha.ITransitGatewayAttachment;
declare const transitGatewayRouteTable: ec2_alpha.TransitGatewayRouteTable;
const transitGatewayRouteTableAssociationProps: ec2_alpha.TransitGatewayRouteTableAssociationProps = {
  transitGatewayRouteTable: transitGatewayRouteTable,
  transitGatewayVpcAttachment: transitGatewayAttachment,

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

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_attachment: ec2_alpha.ITransitGatewayAttachment
# transit_gateway_route_table: ec2_alpha.TransitGatewayRouteTable

transit_gateway_route_table_association_props = ec2_alpha.TransitGatewayRouteTableAssociationProps(
    transit_gateway_route_table=transit_gateway_route_table,
    transit_gateway_vpc_attachment=transit_gateway_attachment,

    # the properties below are optional
    transit_gateway_route_table_association_name="transitGatewayRouteTableAssociationName"
)
```

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

ITransitGatewayAttachment transitGatewayAttachment;
TransitGatewayRouteTable transitGatewayRouteTable;

TransitGatewayRouteTableAssociationProps transitGatewayRouteTableAssociationProps = TransitGatewayRouteTableAssociationProps.builder()
        .transitGatewayRouteTable(transitGatewayRouteTable)
        .transitGatewayVpcAttachment(transitGatewayAttachment)

        // the properties below are optional
        .transitGatewayRouteTableAssociationName("transitGatewayRouteTableAssociationName")
        .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;

ITransitGatewayAttachment transitGatewayAttachment;
TransitGatewayRouteTable transitGatewayRouteTable;

var transitGatewayRouteTableAssociationProps = new TransitGatewayRouteTableAssociationProps {
    TransitGatewayRouteTable = transitGatewayRouteTable,
    TransitGatewayVpcAttachment = transitGatewayAttachment,

    // the properties below are optional
    TransitGatewayRouteTableAssociationName = "transitGatewayRouteTableAssociationName"
};
```

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 transitGatewayAttachment ITransitGatewayAttachment
var transitGatewayRouteTable TransitGatewayRouteTable

transitGatewayRouteTableAssociationProps := &TransitGatewayRouteTableAssociationProps{
	TransitGatewayRouteTable: transitGatewayRouteTable,
	TransitGatewayVpcAttachment: transitGatewayAttachment,

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

## Properties

- `transitGatewayRouteTable`: [ITransitGatewayRouteTable](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-ec2-alpha.ITransitGatewayRouteTable.html) (required) — The ID of the transit gateway route table association.

- `transitGatewayRouteTableAssociationName`: string — Physical name of this association.

  **Default:** Assigned by CloudFormation.

- `transitGatewayVpcAttachment`: [ITransitGatewayAttachment](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-ec2-alpha.ITransitGatewayAttachment.html) (required) — The ID of the transit gateway route table association.
