local_gateway_route_table_virtual_interface_group_associations
Creates, updates, deletes or gets a local_gateway_route_table_virtual_interface_group_association
resource or lists local_gateway_route_table_virtual_interface_group_associations
in a region
Overview
Name | local_gateway_route_table_virtual_interface_group_associations |
Type | Resource |
Description | Describes a local gateway route table virtual interface group association for a local gateway. |
Id | aws.ec2.local_gateway_route_table_virtual_interface_group_associations |
Fields
Name | Datatype | Description |
---|---|---|
local_gateway_route_table_virtual_interface_group_association_id | string | The ID of the local gateway route table virtual interface group association. |
local_gateway_id | string | The ID of the local gateway. |
local_gateway_route_table_id | string | The ID of the local gateway route table. |
local_gateway_route_table_arn | string | The ARN of the local gateway route table. |
local_gateway_virtual_interface_group_id | string | The ID of the local gateway route table virtual interface group. |
owner_id | string | The owner of the local gateway route table virtual interface group association. |
state | string | The state of the local gateway route table virtual interface group association. |
tags | array | The tags for the local gateway route table virtual interface group association. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | LocalGatewayRouteTableId, LocalGatewayVirtualInterfaceGroupId, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all local_gateway_route_table_virtual_interface_group_associations
in a region.
SELECT
region,
local_gateway_route_table_virtual_interface_group_association_id,
local_gateway_id,
local_gateway_route_table_id,
local_gateway_route_table_arn,
local_gateway_virtual_interface_group_id,
owner_id,
state,
tags
FROM aws.ec2.local_gateway_route_table_virtual_interface_group_associations
WHERE region = 'us-east-1';
Gets all properties from an individual local_gateway_route_table_virtual_interface_group_association
.
SELECT
region,
local_gateway_route_table_virtual_interface_group_association_id,
local_gateway_id,
local_gateway_route_table_id,
local_gateway_route_table_arn,
local_gateway_virtual_interface_group_id,
owner_id,
state,
tags
FROM aws.ec2.local_gateway_route_table_virtual_interface_group_associations
WHERE region = 'us-east-1' AND data__Identifier = '<LocalGatewayRouteTableVirtualInterfaceGroupAssociationId>';
INSERT
example
Use the following StackQL query and manifest file to create a new local_gateway_route_table_virtual_interface_group_association
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.ec2.local_gateway_route_table_virtual_interface_group_associations (
LocalGatewayRouteTableId,
LocalGatewayVirtualInterfaceGroupId,
region
)
SELECT
'{{ LocalGatewayRouteTableId }}',
'{{ LocalGatewayVirtualInterfaceGroupId }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.ec2.local_gateway_route_table_virtual_interface_group_associations (
LocalGatewayRouteTableId,
LocalGatewayVirtualInterfaceGroupId,
Tags,
region
)
SELECT
'{{ LocalGatewayRouteTableId }}',
'{{ LocalGatewayVirtualInterfaceGroupId }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: local_gateway_route_table_virtual_interface_group_association
props:
- name: LocalGatewayRouteTableId
value: '{{ LocalGatewayRouteTableId }}'
- name: LocalGatewayVirtualInterfaceGroupId
value: '{{ LocalGatewayVirtualInterfaceGroupId }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
DELETE
example
/*+ delete */
DELETE FROM aws.ec2.local_gateway_route_table_virtual_interface_group_associations
WHERE data__Identifier = '<LocalGatewayRouteTableVirtualInterfaceGroupAssociationId>'
AND region = 'us-east-1';
Permissions
To operate on the local_gateway_route_table_virtual_interface_group_associations
resource, the following permissions are required:
Create
ec2:CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation,
ec2:DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations,
ec2:CreateTags
Read
ec2:DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations
Update
ec2:DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations,
ec2:CreateTags,
ec2:DeleteTags
Delete
ec2:DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation,
ec2:DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations,
ec2:DeleteTags
List
ec2:DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations