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
Name | local_gateway_route |
Type | Resource |
Description | Describes a route for a local gateway route table. |
Id | aws.ec2.local_gateway_route |
Fields
Name | Datatype | Description |
---|---|---|
destination_cidr_block | string | The CIDR block used for destination matches. |
local_gateway_route_table_id | string | The ID of the local gateway route table. |
local_gateway_virtual_interface_group_id | string | The ID of the virtual interface group. |
network_interface_id | string | The ID of the network interface. |
state | string | The state of the route. |
type | string | The route type. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
get_resource | SELECT | data__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