Skip to content

Returns a list of transit gateway policy table entries

Description

Returns a list of transit gateway policy table entries.

Usage

ec2_get_transit_gateway_policy_table_entries(
  TransitGatewayPolicyTableId, Filters, MaxResults, NextToken, DryRun)

Arguments

  • TransitGatewayPolicyTableId

    [required] The ID of the transit gateway policy table.

  • Filters

    One or more filters. The possible values are:

    • policy-rule-number - The rule number for the transit gateway policy table entry.
    • target-route-table-id - The ID of the target route table.
    • policy-rule.source-ip - The source CIDR block for the policy rule.
    • policy-rule.destination-ip - The destination CIDR block for the policy rule.
    • policy-rule.source-port - The source port or port range for the policy rule.
    • policy-rule.destination-port - The destination port or port range for the policy rule.
    • policy-rule.protocol - The protocol for the policy rule.
    • policy-rule.meta-data.key - The metadata key for the policy rule.
    • policy-rule.meta-data.value - The metadata value for the policy rule.
  • MaxResults

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

  • NextToken

    The token for the next page of results.

  • DryRun

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Value

A list with the following syntax:

list(
  TransitGatewayPolicyTableEntries = list(
    list(
      PolicyRuleNumber = "string",
      PolicyRule = list(
        SourceCidrBlock = "string",
        SourcePortRange = "string",
        DestinationCidrBlock = "string",
        DestinationPortRange = "string",
        Protocol = "string",
        MetaData = list(
          MetaDataKey = "string",
          MetaDataValue = "string"
        )
      ),
      TargetRouteTableId = "string",
      State = "active"|"deleted"
    )
  ),
  NextToken = "string"
)

Request syntax

svc$get_transit_gateway_policy_table_entries(
  TransitGatewayPolicyTableId = "string",
  Filters = list(
    list(
      Name = "string",
      Values = list(
        "string"
      )
    )
  ),
  MaxResults = 123,
  NextToken = "string",
  DryRun = TRUE|FALSE
)