Skip to content

Creates an entry in a transit gateway policy table to route matching traffic to a specified route table

Description

Creates an entry in a transit gateway policy table to route matching traffic to a specified route table.

Usage

ec2_create_transit_gateway_policy_table_entry(
  TransitGatewayPolicyTableId, PolicyRuleNumber, PolicyRule,
  TargetRouteTableId, DryRun)

Arguments

  • TransitGatewayPolicyTableId

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

  • PolicyRuleNumber

[required] The rule number for the policy table entry. Lower rule numbers are evaluated first and take precedence.

  • PolicyRule

The matching criteria for the policy table entry.

  • TargetRouteTableId

[required] The ID of the transit gateway route table to use for traffic matching this rule.

  • 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(
  TransitGatewayPolicyTableEntry = 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"
  )
)

Request syntax

svc$create_transit_gateway_policy_table_entry(
  TransitGatewayPolicyTableId = "string",
  PolicyRuleNumber = "string",
  PolicyRule = list(
    SourceCidrBlock = "string",
    SourcePortRange = "string",
    DestinationCidrBlock = "string",
    DestinationPortRange = "string",
    Protocol = "string",
    MetaData = list(
      MetaDataKey = "string",
      MetaDataValue = "string"
    )
  ),
  TargetRouteTableId = "string",
  DryRun = TRUE|FALSE
)