# CfnTransitGatewayPolicyTableEntryProps

Properties for defining a `CfnTransitGatewayPolicyTableEntry`.

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

- Source: Generated at build time
- Type last changed: v2.268.0 · 2 Sep 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 cfnTransitGatewayPolicyTableEntryProps: ec2.CfnTransitGatewayPolicyTableEntryProps = {
  policyRule: {
    destinationCidrBlock: 'destinationCidrBlock',
    destinationPortRange: 'destinationPortRange',
    protocol: 'protocol',
    sourceCidrBlock: 'sourceCidrBlock',
    sourcePortRange: 'sourcePortRange',
  },
  policyRuleNumber: 'policyRuleNumber',
  targetRouteTableId: 'targetRouteTableId',
  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_entry_props = ec2.CfnTransitGatewayPolicyTableEntryProps(
    policy_rule=ec2.CfnTransitGatewayPolicyTableEntry.TransitGatewayPolicyRuleProperty(
        destination_cidr_block="destinationCidrBlock",
        destination_port_range="destinationPortRange",
        protocol="protocol",
        source_cidr_block="sourceCidrBlock",
        source_port_range="sourcePortRange"
    ),
    policy_rule_number="policyRuleNumber",
    target_route_table_id="targetRouteTableId",
    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.*;

CfnTransitGatewayPolicyTableEntryProps cfnTransitGatewayPolicyTableEntryProps = CfnTransitGatewayPolicyTableEntryProps.builder()
        .policyRule(TransitGatewayPolicyRuleProperty.builder()
                .destinationCidrBlock("destinationCidrBlock")
                .destinationPortRange("destinationPortRange")
                .protocol("protocol")
                .sourceCidrBlock("sourceCidrBlock")
                .sourcePortRange("sourcePortRange")
                .build())
        .policyRuleNumber("policyRuleNumber")
        .targetRouteTableId("targetRouteTableId")
        .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 cfnTransitGatewayPolicyTableEntryProps = new CfnTransitGatewayPolicyTableEntryProps {
    PolicyRule = new TransitGatewayPolicyRuleProperty {
        DestinationCidrBlock = "destinationCidrBlock",
        DestinationPortRange = "destinationPortRange",
        Protocol = "protocol",
        SourceCidrBlock = "sourceCidrBlock",
        SourcePortRange = "sourcePortRange"
    },
    PolicyRuleNumber = "policyRuleNumber",
    TargetRouteTableId = "targetRouteTableId",
    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"

cfnTransitGatewayPolicyTableEntryProps := &CfnTransitGatewayPolicyTableEntryProps{
	PolicyRule: &TransitGatewayPolicyRuleProperty{
		DestinationCidrBlock: jsii.String("destinationCidrBlock"),
		DestinationPortRange: jsii.String("destinationPortRange"),
		Protocol: jsii.String("protocol"),
		SourceCidrBlock: jsii.String("sourceCidrBlock"),
		SourcePortRange: jsii.String("sourcePortRange"),
	},
	PolicyRuleNumber: jsii.String("policyRuleNumber"),
	TargetRouteTableId: jsii.String("targetRouteTableId"),
	TransitGatewayPolicyTableId: jsii.String("transitGatewayPolicyTableId"),
}
```

## Properties

- `policyRule`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTransitGatewayPolicyTableEntry.TransitGatewayPolicyRuleProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnTransitGatewayPolicyTableEntry.TransitGatewayPolicyRuleProperty.html) (required)

- `policyRuleNumber`: string (required) — The rule number for the policy table entry.

- `targetRouteTableId`: string (required) — The ID of the target route table.

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