Skip to main content

local_gateways

Creates, updates, deletes, gets or lists a local_gateways resource.

Overview

Namelocal_gateways
TypeResource
Idaws.ec2.local_gateways

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
local_gateway_idstringThe ID of the local gateway.
outpost_arnstringThe Amazon Resource Name (ARN) of the Outpost.
owner_idstringThe ID of the Amazon Web Services account that owns the local gateway.
statestringThe state of the local gateway.
tagsstringThe tags assigned to the local gateway.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_local_gatewaysselectregionLocalGatewayId, Filter, MaxResults, NextToken, DryRunDescribes one or more local gateways. By default, all local gateways are described. Alternatively, you can filter the results.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
DryRunbooleanChecks 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.
FilterarrayOne or more filters. local-gateway-id - The ID of a local gateway. outpost-arn - The Amazon Resource Name (ARN) of the Outpost. owner-id - The ID of the Amazon Web Services account that owns the local gateway. state - The state of the association.
LocalGatewayIdarrayThe IDs of the local gateways.
MaxResultsintegerThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
NextTokenstringThe token for the next page of results.

SELECT examples

Describes one or more local gateways. By default, all local gateways are described. Alternatively, you can filter the results.

SELECT
local_gateway_id,
outpost_arn,
owner_id,
state,
tags
FROM aws.ec2.local_gateways
WHERE region = '{{ region }}' -- required
AND LocalGatewayId = '{{ LocalGatewayId }}'
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
AND DryRun = '{{ DryRun }}'
;