Skip to main content

local_gateway_route_table_virtual_interface_group_associations

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

Overview

Namelocal_gateway_route_table_virtual_interface_group_associations
TypeResource
Idaws.ec2.local_gateway_route_table_virtual_interface_group_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
local_gateway_idstringThe ID of the local gateway.
local_gateway_route_table_arnstringThe Amazon Resource Name (ARN) of the local gateway route table for the virtual interface group.
local_gateway_route_table_idstringThe ID of the local gateway route table.
local_gateway_route_table_virtual_interface_group_association_idstringThe ID of the association.
local_gateway_virtual_interface_group_idstringThe ID of the virtual interface group.
owner_idstringThe ID of the Amazon Web Services account that owns the local gateway virtual interface group association.
statestringThe state of the association.
tagsstringThe tags assigned to the association.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_local_gateway_route_table_virtual_interface_group_associationsselectregionLocalGatewayRouteTableVirtualInterfaceGroupAssociationId, Filter, MaxResults, NextToken, DryRunDescribes the associations between virtual interface groups and local gateway route tables.
create_local_gateway_route_table_virtual_interface_group_associationinsertLocalGatewayRouteTableId, LocalGatewayVirtualInterfaceGroupId, regionTagSpecification, DryRunCreates a local gateway route table virtual interface group association.
delete_local_gateway_route_table_virtual_interface_group_associationdeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationId, regionDryRunDeletes a local gateway route table virtual interface group association.

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
LocalGatewayRouteTableIdstringThe ID of the local gateway route table.
LocalGatewayRouteTableVirtualInterfaceGroupAssociationIdstringThe ID of the local gateway route table virtual interface group association.
LocalGatewayVirtualInterfaceGroupIdstringThe ID of the local gateway route table virtual interface group association.
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-route-table-arn - The Amazon Resource Name (ARN) of the local gateway route table for the virtual interface group. local-gateway-route-table-id - The ID of the local gateway route table. local-gateway-route-table-virtual-interface-group-association-id - The ID of the association. local-gateway-route-table-virtual-interface-group-id - The ID of the virtual interface group. owner-id - The ID of the Amazon Web Services account that owns the local gateway virtual interface group association. state - The state of the association.
LocalGatewayRouteTableVirtualInterfaceGroupAssociationIdarrayThe IDs of the associations.
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 assigned to the local gateway route table virtual interface group association.

SELECT examples

Describes the associations between virtual interface groups and local gateway route tables.

SELECT
local_gateway_id,
local_gateway_route_table_arn,
local_gateway_route_table_id,
local_gateway_route_table_virtual_interface_group_association_id,
local_gateway_virtual_interface_group_id,
owner_id,
state,
tags
FROM aws.ec2.local_gateway_route_table_virtual_interface_group_associations
WHERE region = '{{ region }}' -- required
AND LocalGatewayRouteTableVirtualInterfaceGroupAssociationId = '{{ LocalGatewayRouteTableVirtualInterfaceGroupAssociationId }}'
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
AND DryRun = '{{ DryRun }}'
;

INSERT examples

Creates a local gateway route table virtual interface group association.

INSERT INTO aws.ec2.local_gateway_route_table_virtual_interface_group_associations (
LocalGatewayRouteTableId,
LocalGatewayVirtualInterfaceGroupId,
region,
TagSpecification,
DryRun
)
SELECT
'{{ LocalGatewayRouteTableId }}',
'{{ LocalGatewayVirtualInterfaceGroupId }}',
'{{ region }}',
'{{ TagSpecification }}',
'{{ DryRun }}'
RETURNING
local_gateway_id,
local_gateway_route_table_arn,
local_gateway_route_table_id,
local_gateway_route_table_virtual_interface_group_association_id,
local_gateway_virtual_interface_group_id,
owner_id,
state,
tags
;

DELETE examples

Deletes a local gateway route table virtual interface group association.

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