Skip to main content

vpc_links

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

Overview

Namevpc_links
TypeResource
Idaws.apigateway.vpc_links

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe identifier of the VpcLink. It is used in an Integration to reference this VpcLink.
namestringThe name used to label and identify the VPC link.
descriptionstringThe description of the VPC link.
statusstringThe status of the VPC link. The valid values are AVAILABLE, PENDING, DELETING, or FAILED. Deploying an API will wait if the status is PENDING and will fail if the status is DELETING. (AVAILABLE, PENDING, DELETING, FAILED)
status_messagestringA description about the VPC link status.
tagsobjectThe collection of tags. Each tag element is associated with a given resource.
target_arnsarrayThe ARN of the network load balancer of the VPC targeted by the VPC link. The network load balancer must be owned by the same Amazon Web Services account of the API owner.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_vpc_linkselectvpclink_id, regionGets a specified VPC link under the caller's account in a region.
get_vpc_linksselectregionposition, limitGets the VpcLinks collection under the caller's account in a selected region.
create_vpc_linkinsertregion, name, targetArnsCreates a VPC link, under the caller's account in a selected region, in an asynchronous operation that typically takes 2-4 minutes to complete and become operational. The caller must have permissions to create and update VPC Endpoint services.
update_vpc_linkupdatevpclink_id, regionUpdates an existing VpcLink of a specified identifier.
delete_vpc_linkdeletevpclink_id, regionDeletes an existing VpcLink of a specified identifier.

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)
limitintegerThe maximum number of returned results per page. The default value is 25 and the maximum value is 500.
positionstringThe current pagination position in the paged result set.

SELECT examples

Gets a specified VPC link under the caller's account in a region.

SELECT
id,
name,
description,
status,
status_message,
tags,
target_arns
FROM aws.apigateway.vpc_links
WHERE vpclink_id = '{{ vpclink_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a VPC link, under the caller's account in a selected region, in an asynchronous operation that typically takes 2-4 minutes to complete and become operational. The caller must have permissions to create and update VPC Endpoint services.

INSERT INTO aws.apigateway.vpc_links (
name,
description,
targetArns,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ targetArns }}' /* required */,
'{{ tags }}',
'{{ region }}'
RETURNING
id,
name,
description,
status,
status_message,
tags,
target_arns
;

UPDATE examples

Updates an existing VpcLink of a specified identifier.

UPDATE aws.apigateway.vpc_links
SET
patchOperations = '{{ patchOperations }}'
WHERE
vpclink_id = '{{ vpclink_id }}' --required
AND region = '{{ region }}' --required
RETURNING
id,
name,
description,
status,
status_message,
tags,
target_arns;

DELETE examples

Deletes an existing VpcLink of a specified identifier.

DELETE FROM aws.apigateway.vpc_links
WHERE vpclink_id = '{{ vpclink_id }}' --required
AND region = '{{ region }}' --required
;