Skip to main content

local_gateway_virtual_interface_groups

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

Overview

Namelocal_gateway_virtual_interface_groups
TypeResource
Idaws.ec2.local_gateway_virtual_interface_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
configuration_statestringThe current state of the local gateway virtual interface group.
local_bgp_asnintegerThe Autonomous System Number(ASN) for the local Border Gateway Protocol (BGP).
local_bgp_asn_extendedintegerThe extended 32-bit ASN for the local BGP configuration.
local_gateway_idstringThe ID of the local gateway.
local_gateway_virtual_interface_group_arnstringThe Amazon Resource Number (ARN) of the local gateway virtual interface group.
local_gateway_virtual_interface_group_idstringThe ID of the virtual interface group.
local_gateway_virtual_interface_idsstringThe IDs of the virtual interfaces.
owner_idstringThe ID of the Amazon Web Services account that owns the local gateway virtual interface group.
tagsstringThe tags assigned to the virtual interface group.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_local_gateway_virtual_interface_groupsselectregionLocalGatewayVirtualInterfaceGroupId, Filter, MaxResults, NextToken, DryRunDescribes the specified local gateway virtual interface groups.
create_local_gateway_virtual_interface_groupinsertLocalGatewayId, regionLocalBgpAsn, LocalBgpAsnExtended, TagSpecification, DryRunCreate a local gateway virtual interface group.
delete_local_gateway_virtual_interface_groupdeleteLocalGatewayVirtualInterfaceGroupId, regionDryRunDelete the specified local gateway interface group.

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
LocalGatewayIdstringThe ID of the local gateway.
LocalGatewayVirtualInterfaceGroupIdstringThe ID of the local gateway virtual interface group to delete.
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. local-gateway-virtual-interface-group-id - The ID of the virtual interface group. 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 group.
LocalBgpAsnintegerThe Autonomous System Number(ASN) for the local Border Gateway Protocol (BGP).
LocalBgpAsnExtendedinteger (int64)The extended 32-bit ASN for the local BGP configuration.
LocalGatewayVirtualInterfaceGroupIdarrayThe IDs of the virtual interface groups.
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.
TagSpecificationarrayThe tags to apply to the local gateway virtual interface group when the resource is being created.

SELECT examples

Describes the specified local gateway virtual interface groups.

SELECT
configuration_state,
local_bgp_asn,
local_bgp_asn_extended,
local_gateway_id,
local_gateway_virtual_interface_group_arn,
local_gateway_virtual_interface_group_id,
local_gateway_virtual_interface_ids,
owner_id,
tags
FROM aws.ec2.local_gateway_virtual_interface_groups
WHERE region = '{{ region }}' -- required
AND LocalGatewayVirtualInterfaceGroupId = '{{ LocalGatewayVirtualInterfaceGroupId }}'
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
AND DryRun = '{{ DryRun }}'
;

INSERT examples

Create a local gateway virtual interface group.

INSERT INTO aws.ec2.local_gateway_virtual_interface_groups (
LocalGatewayId,
region,
LocalBgpAsn,
LocalBgpAsnExtended,
TagSpecification,
DryRun
)
SELECT
'{{ LocalGatewayId }}',
'{{ region }}',
'{{ LocalBgpAsn }}',
'{{ LocalBgpAsnExtended }}',
'{{ TagSpecification }}',
'{{ DryRun }}'
RETURNING
configuration_state,
local_bgp_asn,
local_bgp_asn_extended,
local_gateway_id,
local_gateway_virtual_interface_group_arn,
local_gateway_virtual_interface_group_id,
local_gateway_virtual_interface_ids,
owner_id,
tags
;

DELETE examples

Delete the specified local gateway interface group.

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