# CfnTransitGatewayPolicyTableAssociationProps

Properties for defining a `CfnTransitGatewayPolicyTableAssociation`.

Used as props by: [CfnTransitGatewayPolicyTableAssociation](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnTransitGatewayPolicyTableAssociation.html)

- Source: Generated at build time
- Type last changed: v2.264.0 · 10 Aug 2026

## 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 cfnTransitGatewayPolicyTableAssociationProps: ec2.CfnTransitGatewayPolicyTableAssociationProps = {
  transitGatewayAttachmentId: 'transitGatewayAttachmentId',
  transitGatewayPolicyTableId: 'transitGatewayPolicyTableId',
};
```

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

cfn_transit_gateway_policy_table_association_props = ec2.CfnTransitGatewayPolicyTableAssociationProps(
    transit_gateway_attachment_id="transitGatewayAttachmentId",
    transit_gateway_policy_table_id="transitGatewayPolicyTableId"
)
```

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

CfnTransitGatewayPolicyTableAssociationProps cfnTransitGatewayPolicyTableAssociationProps = CfnTransitGatewayPolicyTableAssociationProps.builder()
        .transitGatewayAttachmentId("transitGatewayAttachmentId")
        .transitGatewayPolicyTableId("transitGatewayPolicyTableId")
        .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 cfnTransitGatewayPolicyTableAssociationProps = new CfnTransitGatewayPolicyTableAssociationProps {
    TransitGatewayAttachmentId = "transitGatewayAttachmentId",
    TransitGatewayPolicyTableId = "transitGatewayPolicyTableId"
};
```

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"

cfnTransitGatewayPolicyTableAssociationProps := &CfnTransitGatewayPolicyTableAssociationProps{
	TransitGatewayAttachmentId: jsii.String("transitGatewayAttachmentId"),
	TransitGatewayPolicyTableId: jsii.String("transitGatewayPolicyTableId"),
}
```

## Properties

- `transitGatewayAttachmentId`: string (required) — The ID of transit gateway attachment.

- `transitGatewayPolicyTableId`: string (required) — The ID of transit gateway policy table.
