Skip to main content

local_gateway_virtual_interfaces

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

Overview

Namelocal_gateway_virtual_interfaces
TypeResource
Idaws.ec2.local_gateway_virtual_interfaces

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
configuration_statestringThe current state of the local gateway virtual interface.
local_addressstringThe local address.
local_bgp_asnintegerThe Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the local gateway.
local_gateway_idstringThe ID of the local gateway.
local_gateway_virtual_interface_arnstringThe Amazon Resource Number (ARN) of the local gateway virtual interface.
local_gateway_virtual_interface_group_idstringThe ID of the local gateway virtual interface group.
local_gateway_virtual_interface_idstringThe ID of the virtual interface.
outpost_lag_idstringThe Outpost LAG ID.
owner_idstringThe ID of the Amazon Web Services account that owns the local gateway virtual interface.
peer_addressstringThe peer address.
peer_bgp_asnintegerThe peer BGP ASN.
peer_bgp_asn_extendedintegerThe extended 32-bit ASN of the BGP peer for use with larger ASN values.
tagsstringThe tags assigned to the virtual interface.
vlanintegerThe ID of the VLAN.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_local_gateway_virtual_interfacesselectregionLocalGatewayVirtualInterfaceId, Filter, MaxResults, NextToken, DryRunDescribes the specified local gateway virtual interfaces.
create_local_gateway_virtual_interfaceinsertLocalGatewayVirtualInterfaceGroupId, OutpostLagId, LocalAddress, PeerAddress, regionVlan, PeerBgpAsn, TagSpecification, DryRun, PeerBgpAsnExtendedCreate a virtual interface for a local gateway.
delete_local_gateway_virtual_interfacedeleteLocalGatewayVirtualInterfaceId, regionDryRunDeletes the specified local gateway virtual interface.

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
LocalAddressstringThe IP address assigned to the local gateway virtual interface on the Outpost side. Only IPv4 is supported.
LocalGatewayVirtualInterfaceGroupIdstringThe ID of the local gateway virtual interface group.
LocalGatewayVirtualInterfaceIdstringThe ID of the local virtual interface to delete.
OutpostLagIdstringReferences the Link Aggregation Group (LAG) that connects the Outpost to on-premises network devices.
PeerAddressstringThe peer IP address for the local gateway virtual interface. Only IPv4 is supported.
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-address - The local address. local-bgp-asn - The Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the local gateway. local-gateway-id - The ID of the local gateway. local-gateway-virtual-interface-id - The ID of the virtual interface. owner-id - The ID of the Amazon Web Services account that owns the local gateway virtual interface. peer-address - The peer address. peer-bgp-asn - The peer BGP ASN. vlan - The ID of the VLAN.
LocalGatewayVirtualInterfaceIdarrayThe IDs of the virtual interfaces.
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.
PeerBgpAsnintegerThe Autonomous System Number (ASN) of the Border Gateway Protocol (BGP) peer.
PeerBgpAsnExtendedinteger (int64)The extended 32-bit ASN of the BGP peer for use with larger ASN values.
TagSpecificationarrayThe tags to apply to a resource when the local gateway virtual interface is being created.
VlanintegerThe virtual local area network (VLAN) used for the local gateway virtual interface.

SELECT examples

Describes the specified local gateway virtual interfaces.

SELECT
configuration_state,
local_address,
local_bgp_asn,
local_gateway_id,
local_gateway_virtual_interface_arn,
local_gateway_virtual_interface_group_id,
local_gateway_virtual_interface_id,
outpost_lag_id,
owner_id,
peer_address,
peer_bgp_asn,
peer_bgp_asn_extended,
tags,
vlan
FROM aws.ec2.local_gateway_virtual_interfaces
WHERE region = '{{ region }}' -- required
AND LocalGatewayVirtualInterfaceId = '{{ LocalGatewayVirtualInterfaceId }}'
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
AND DryRun = '{{ DryRun }}'
;

INSERT examples

Create a virtual interface for a local gateway.

INSERT INTO aws.ec2.local_gateway_virtual_interfaces (
LocalGatewayVirtualInterfaceGroupId,
OutpostLagId,
LocalAddress,
PeerAddress,
region,
Vlan,
PeerBgpAsn,
TagSpecification,
DryRun,
PeerBgpAsnExtended
)
SELECT
'{{ LocalGatewayVirtualInterfaceGroupId }}',
'{{ OutpostLagId }}',
'{{ LocalAddress }}',
'{{ PeerAddress }}',
'{{ region }}',
'{{ Vlan }}',
'{{ PeerBgpAsn }}',
'{{ TagSpecification }}',
'{{ DryRun }}',
'{{ PeerBgpAsnExtended }}'
RETURNING
configuration_state,
local_address,
local_bgp_asn,
local_gateway_id,
local_gateway_virtual_interface_arn,
local_gateway_virtual_interface_group_id,
local_gateway_virtual_interface_id,
outpost_lag_id,
owner_id,
peer_address,
peer_bgp_asn,
peer_bgp_asn_extended,
tags,
vlan
;

DELETE examples

Deletes the specified local gateway virtual interface.

DELETE FROM aws.ec2.local_gateway_virtual_interfaces
WHERE LocalGatewayVirtualInterfaceId = '{{ LocalGatewayVirtualInterfaceId }}' --required
AND region = '{{ region }}' --required
AND DryRun = '{{ DryRun }}'
;