Skip to content

Delete Transit Gateway Route

ec2_delete_transit_gateway_route R Documentation

Deletes the specified route from the specified transit gateway route table

Description

Deletes the specified route from the specified transit gateway route table.

Usage

ec2_delete_transit_gateway_route(TransitGatewayRouteTableId,
  DestinationCidrBlock, DryRun)

Arguments

TransitGatewayRouteTableId

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

DestinationCidrBlock

[required] The CIDR range for the route. This must match the CIDR for the route exactly.

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(
  Route = list(
    DestinationCidrBlock = "string",
    PrefixListId = "string",
    TransitGatewayRouteTableAnnouncementId = "string",
    TransitGatewayAttachments = list(
      list(
        ResourceId = "string",
        TransitGatewayAttachmentId = "string",
        ResourceType = "vpc"|"vpn"|"direct-connect-gateway"|"connect"|"peering"|"tgw-peering"
      )
    ),
    Type = "static"|"propagated",
    State = "pending"|"active"|"blackhole"|"deleting"|"deleted"
  )
)

Request syntax

svc$delete_transit_gateway_route(
  TransitGatewayRouteTableId = "string",
  DestinationCidrBlock = "string",
  DryRun = TRUE|FALSE
)