Skip to main content

local_gateway_route

Gets or updates an individual local_gateway_route resource, use local_gateway_routes to retrieve a list of resources or to create or delete a resource.

Overview

Namelocal_gateway_route
TypeResource
DescriptionDescribes a route for a local gateway route table.
Idaws.ec2.local_gateway_route

Fields

NameDatatypeDescription
destination_cidr_blockstringThe CIDR block used for destination matches.
local_gateway_route_table_idstringThe ID of the local gateway route table.
local_gateway_virtual_interface_group_idstringThe ID of the virtual interface group.
network_interface_idstringThe ID of the network interface.
statestringThe state of the route.
typestringThe route type.
regionstringAWS region.

Methods

NameAccessible byRequired Params
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
get_resourceSELECTdata__Identifier, region

SELECT Example

SELECT
region,
destination_cidr_block,
local_gateway_route_table_id,
local_gateway_virtual_interface_group_id,
network_interface_id,
state,
type
FROM aws.ec2.local_gateway_route
WHERE region = 'us-east-1' AND data__Identifier = '<DestinationCidrBlock>|<LocalGatewayRouteTableId>';

Permissions

To operate on the local_gateway_route resource, the following permissions are required:

Read

ec2:SearchLocalGatewayRoutes

Update

ec2:ModifyLocalGatewayRoute,
ec2:SearchLocalGatewayRoutes