1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. ec2
  6. getTransitGatewayPolicyTableEntry

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.76.0
published on Monday, Aug 24, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.76.0
published on Monday, Aug 24, 2026 by Pulumi

    AWS::EC2::TransitGatewayPolicyTableEntry Resource Definition

    Using getTransitGatewayPolicyTableEntry

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getTransitGatewayPolicyTableEntry(args: GetTransitGatewayPolicyTableEntryArgs, opts?: InvokeOptions): Promise<GetTransitGatewayPolicyTableEntryResult>
    function getTransitGatewayPolicyTableEntryOutput(args: GetTransitGatewayPolicyTableEntryOutputArgs, opts?: InvokeOutputOptions): Output<GetTransitGatewayPolicyTableEntryResult>
    def get_transit_gateway_policy_table_entry(policy_rule_number: Optional[str] = None,
                                               transit_gateway_policy_table_id: Optional[str] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetTransitGatewayPolicyTableEntryResult
    def get_transit_gateway_policy_table_entry_output(policy_rule_number: pulumi.Input[Optional[str]] = None,
                                               transit_gateway_policy_table_id: pulumi.Input[Optional[str]] = None,
                                               opts: Optional[InvokeOutputOptions] = None) -> Output[GetTransitGatewayPolicyTableEntryResult]
    func LookupTransitGatewayPolicyTableEntry(ctx *Context, args *LookupTransitGatewayPolicyTableEntryArgs, opts ...InvokeOption) (*LookupTransitGatewayPolicyTableEntryResult, error)
    func LookupTransitGatewayPolicyTableEntryOutput(ctx *Context, args *LookupTransitGatewayPolicyTableEntryOutputArgs, opts ...InvokeOption) LookupTransitGatewayPolicyTableEntryResultOutput

    > Note: This function is named LookupTransitGatewayPolicyTableEntry in the Go SDK.

    public static class GetTransitGatewayPolicyTableEntry 
    {
        public static Task<GetTransitGatewayPolicyTableEntryResult> InvokeAsync(GetTransitGatewayPolicyTableEntryArgs args, InvokeOptions? opts = null)
        public static Output<GetTransitGatewayPolicyTableEntryResult> Invoke(GetTransitGatewayPolicyTableEntryInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetTransitGatewayPolicyTableEntryResult> Invoke(GetTransitGatewayPolicyTableEntryInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetTransitGatewayPolicyTableEntryResult> getTransitGatewayPolicyTableEntry(GetTransitGatewayPolicyTableEntryArgs args, InvokeOptions options)
    public static Output<GetTransitGatewayPolicyTableEntryResult> getTransitGatewayPolicyTableEntry(GetTransitGatewayPolicyTableEntryArgs args, InvokeOptions options)
    public static Output<GetTransitGatewayPolicyTableEntryResult> getTransitGatewayPolicyTableEntry(GetTransitGatewayPolicyTableEntryArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:ec2:getTransitGatewayPolicyTableEntry
      arguments:
        # arguments dictionary
    data "aws-native_ec2_get_transit_gateway_policy_table_entry" "name" {
        # arguments
    }

    The following arguments are supported:

    PolicyRuleNumber string
    The rule number for the policy table entry.
    TransitGatewayPolicyTableId string
    The ID of the transit gateway policy table.
    PolicyRuleNumber string
    The rule number for the policy table entry.
    TransitGatewayPolicyTableId string
    The ID of the transit gateway policy table.
    policy_rule_number string
    The rule number for the policy table entry.
    transit_gateway_policy_table_id string
    The ID of the transit gateway policy table.
    policyRuleNumber String
    The rule number for the policy table entry.
    transitGatewayPolicyTableId String
    The ID of the transit gateway policy table.
    policyRuleNumber string
    The rule number for the policy table entry.
    transitGatewayPolicyTableId string
    The ID of the transit gateway policy table.
    policy_rule_number str
    The rule number for the policy table entry.
    transit_gateway_policy_table_id str
    The ID of the transit gateway policy table.
    policyRuleNumber String
    The rule number for the policy table entry.
    transitGatewayPolicyTableId String
    The ID of the transit gateway policy table.

    getTransitGatewayPolicyTableEntry Result

    The following output properties are available:

    PolicyRule Pulumi.AwsNative.Ec2.Outputs.TransitGatewayPolicyTableEntryTransitGatewayPolicyRule
    The policy rule associated with the entry.
    State string
    The state of the policy table entry.
    TargetRouteTableId string
    The ID of the target route table.
    PolicyRule TransitGatewayPolicyTableEntryTransitGatewayPolicyRule
    The policy rule associated with the entry.
    State string
    The state of the policy table entry.
    TargetRouteTableId string
    The ID of the target route table.
    policy_rule object
    The policy rule associated with the entry.
    state string
    The state of the policy table entry.
    target_route_table_id string
    The ID of the target route table.
    policyRule TransitGatewayPolicyTableEntryTransitGatewayPolicyRule
    The policy rule associated with the entry.
    state String
    The state of the policy table entry.
    targetRouteTableId String
    The ID of the target route table.
    policyRule TransitGatewayPolicyTableEntryTransitGatewayPolicyRule
    The policy rule associated with the entry.
    state string
    The state of the policy table entry.
    targetRouteTableId string
    The ID of the target route table.
    policy_rule TransitGatewayPolicyTableEntryTransitGatewayPolicyRule
    The policy rule associated with the entry.
    state str
    The state of the policy table entry.
    target_route_table_id str
    The ID of the target route table.
    policyRule Property Map
    The policy rule associated with the entry.
    state String
    The state of the policy table entry.
    targetRouteTableId String
    The ID of the target route table.

    Supporting Types

    TransitGatewayPolicyTableEntryTransitGatewayPolicyRule

    DestinationCidrBlock string
    The destination CIDR block for the transit gateway policy rule.
    DestinationPortRange string
    The destination port range for the transit gateway policy rule.
    Protocol string
    The protocol for the transit gateway policy rule.
    SourceCidrBlock string
    The source CIDR block for the transit gateway policy rule.
    SourcePortRange string
    The source port range for the transit gateway policy rule.
    DestinationCidrBlock string
    The destination CIDR block for the transit gateway policy rule.
    DestinationPortRange string
    The destination port range for the transit gateway policy rule.
    Protocol string
    The protocol for the transit gateway policy rule.
    SourceCidrBlock string
    The source CIDR block for the transit gateway policy rule.
    SourcePortRange string
    The source port range for the transit gateway policy rule.
    destination_cidr_block string
    The destination CIDR block for the transit gateway policy rule.
    destination_port_range string
    The destination port range for the transit gateway policy rule.
    protocol string
    The protocol for the transit gateway policy rule.
    source_cidr_block string
    The source CIDR block for the transit gateway policy rule.
    source_port_range string
    The source port range for the transit gateway policy rule.
    destinationCidrBlock String
    The destination CIDR block for the transit gateway policy rule.
    destinationPortRange String
    The destination port range for the transit gateway policy rule.
    protocol String
    The protocol for the transit gateway policy rule.
    sourceCidrBlock String
    The source CIDR block for the transit gateway policy rule.
    sourcePortRange String
    The source port range for the transit gateway policy rule.
    destinationCidrBlock string
    The destination CIDR block for the transit gateway policy rule.
    destinationPortRange string
    The destination port range for the transit gateway policy rule.
    protocol string
    The protocol for the transit gateway policy rule.
    sourceCidrBlock string
    The source CIDR block for the transit gateway policy rule.
    sourcePortRange string
    The source port range for the transit gateway policy rule.
    destination_cidr_block str
    The destination CIDR block for the transit gateway policy rule.
    destination_port_range str
    The destination port range for the transit gateway policy rule.
    protocol str
    The protocol for the transit gateway policy rule.
    source_cidr_block str
    The source CIDR block for the transit gateway policy rule.
    source_port_range str
    The source port range for the transit gateway policy rule.
    destinationCidrBlock String
    The destination CIDR block for the transit gateway policy rule.
    destinationPortRange String
    The destination port range for the transit gateway policy rule.
    protocol String
    The protocol for the transit gateway policy rule.
    sourceCidrBlock String
    The source CIDR block for the transit gateway policy rule.
    sourcePortRange String
    The source port range for the transit gateway policy rule.

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.76.0
    published on Monday, Aug 24, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial