# AnalysisTransitGatewayPolicyTableEntryProperty

- Source: Generated at build time
- Type last changed: v2.275.0 · 26 Oct 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 analysisTransitGatewayPolicyTableEntryProperty: ec2.CfnNetworkInsightsAnalysis.AnalysisTransitGatewayPolicyTableEntryProperty = {
  destinationCidr: 'destinationCidr',
  destinationPortRange: {
    from: 123,
    to: 123,
  },
  protocol: 'protocol',
  ruleNumber: 123,
  sourceCidr: 'sourceCidr',
  sourcePortRange: {
    from: 123,
    to: 123,
  },
  targetRouteTableId: 'targetRouteTableId',
};
```

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_transit_gateway_policy_table_entry_property = ec2.CfnNetworkInsightsAnalysis.AnalysisTransitGatewayPolicyTableEntryProperty(
    destination_cidr="destinationCidr",
    destination_port_range=ec2.CfnNetworkInsightsAnalysis.PortRangeProperty(
        from=123,
        to=123
    ),
    protocol="protocol",
    rule_number=123,
    source_cidr="sourceCidr",
    source_port_range=ec2.CfnNetworkInsightsAnalysis.PortRangeProperty(
        from=123,
        to=123
    ),
    target_route_table_id="targetRouteTableId"
)
```

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

AnalysisTransitGatewayPolicyTableEntryProperty analysisTransitGatewayPolicyTableEntryProperty = AnalysisTransitGatewayPolicyTableEntryProperty.builder()
        .destinationCidr("destinationCidr")
        .destinationPortRange(PortRangeProperty.builder()
                .from(123)
                .to(123)
                .build())
        .protocol("protocol")
        .ruleNumber(123)
        .sourceCidr("sourceCidr")
        .sourcePortRange(PortRangeProperty.builder()
                .from(123)
                .to(123)
                .build())
        .targetRouteTableId("targetRouteTableId")
        .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 analysisTransitGatewayPolicyTableEntryProperty = new AnalysisTransitGatewayPolicyTableEntryProperty {
    DestinationCidr = "destinationCidr",
    DestinationPortRange = new PortRangeProperty {
        From = 123,
        To = 123
    },
    Protocol = "protocol",
    RuleNumber = 123,
    SourceCidr = "sourceCidr",
    SourcePortRange = new PortRangeProperty {
        From = 123,
        To = 123
    },
    TargetRouteTableId = "targetRouteTableId"
};
```

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"

analysisTransitGatewayPolicyTableEntryProperty := &AnalysisTransitGatewayPolicyTableEntryProperty{
	DestinationCidr: jsii.String("destinationCidr"),
	DestinationPortRange: &PortRangeProperty{
		From: jsii.Number(123),
		To: jsii.Number(123),
	},
	Protocol: jsii.String("protocol"),
	RuleNumber: jsii.Number(123),
	SourceCidr: jsii.String("sourceCidr"),
	SourcePortRange: &PortRangeProperty{
		From: jsii.Number(123),
		To: jsii.Number(123),
	},
	TargetRouteTableId: jsii.String("targetRouteTableId"),
}
```

## Properties

- `destinationCidr`: string

- `destinationPortRange`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnNetworkInsightsAnalysis.PortRangeProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnNetworkInsightsAnalysis.PortRangeProperty.html)

- `protocol`: string

- `ruleNumber`: number

- `sourceCidr`: string

- `sourcePortRange`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnNetworkInsightsAnalysis.PortRangeProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnNetworkInsightsAnalysis.PortRangeProperty.html)

- `targetRouteTableId`: string
