Skip to content
v2.277.0

CfnTransitGatewayPolicyTableEntryProps Struct ​

Properties for defining a CfnTransitGatewayPolicyTableEntry.

Example ​

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
# 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
// 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();
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"
};
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 ​

policyRuleNumberstringpolicy_rule_numberstrpolicyRuleNumberStringPolicyRuleNumberstringPolicyRuleNumber*stringrequired#
The rule number for the policy table entry.
targetRouteTableIdstringtarget_route_table_idstrtargetRouteTableIdStringTargetRouteTableIdstringTargetRouteTableId*stringrequired#
The ID of the target route table.
transitGatewayPolicyTableIdstringtransit_gateway_policy_table_idstrtransitGatewayPolicyTableIdStringTransitGatewayPolicyTableIdstringTransitGatewayPolicyTableId*stringrequired#
The ID of the transit gateway policy table.