Skip to content

Modifies the specified transit gateway policy table entry

Description

Modifies the specified transit gateway policy table entry.

Usage

ec2_modify_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 of the policy table entry to modify.

  • PolicyRule

The updated matching criteria for the policy table entry. Unspecified fields retain their current values.

  • TargetRouteTableId

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$modify_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
)