Skip to main content

vpc_links

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

Overview​

Namevpc_links
TypeResource
Idaws.apigatewayv2.vpc_links

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_datestring (date-time)The timestamp when the VPC link was created.
namestringA string with a length between [1-128].
security_group_idsarrayA list of security group IDs for the VPC link.
subnet_idsarrayA list of subnet IDs to include in the VPC link.
tagsobjectTags for the VPC link.
vpc_link_idstringThe identifier.
vpc_link_statusstringThe status of the VPC link. (PENDING, AVAILABLE, DELETING, FAILED, INACTIVE)
vpc_link_status_messagestringA string with a length between [0-1024].
vpc_link_versionstringThe version of the VPC link. (V2)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_vpc_linkselectvpc_link_id, regionGets a VPC link.
get_vpc_linksselectregionmaxResults, nextTokenGets a collection of VPC links.
create_vpc_linkinsertregion, SubnetIdsCreates a VPC link.
update_vpc_linkupdatevpc_link_id, regionUpdates a VPC link.
delete_vpc_linkdeletevpc_link_id, regionDeletes a VPC link.

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)
maxResultsstringThe maximum number of elements to be returned for this resource.
nextTokenstringThe next page of elements from this collection. Not valid for the last element of the collection.

SELECT examples​

Gets a VPC link.

SELECT
created_date,
name,
security_group_ids,
subnet_ids,
tags,
vpc_link_id,
vpc_link_status,
vpc_link_status_message,
vpc_link_version
FROM aws.apigatewayv2.vpc_links
WHERE vpc_link_id = '{{ vpc_link_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples​

Creates a VPC link.

INSERT INTO aws.apigatewayv2.vpc_links (
Name,
SecurityGroupIds,
SubnetIds,
Tags,
region
)
SELECT
'{{ Name }}',
'{{ SecurityGroupIds }}',
'{{ SubnetIds }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
created_date,
name,
security_group_ids,
subnet_ids,
tags,
vpc_link_id,
vpc_link_status,
vpc_link_status_message,
vpc_link_version
;

UPDATE examples​

Updates a VPC link.

UPDATE aws.apigatewayv2.vpc_links
SET
Name = '{{ Name }}'
WHERE
vpc_link_id = '{{ vpc_link_id }}' --required
AND region = '{{ region }}' --required
RETURNING
created_date,
name,
security_group_ids,
subnet_ids,
tags,
vpc_link_id,
vpc_link_status,
vpc_link_status_message,
vpc_link_version;

DELETE examples​

Deletes a VPC link.

DELETE FROM aws.apigatewayv2.vpc_links
WHERE vpc_link_id = '{{ vpc_link_id }}' --required
AND region = '{{ region }}' --required
;