Skip to main content

private_connections

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

Overview

Nameprivate_connections
TypeResource
Idaws.devops_agent.private_connections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringUnique name for a Private Connection within an account. (pattern: <code>[a-z0-9]([a-z0-9-]*[a-z0-9])?</code>)
certificate_expiry_timestring (date-time)The expiry time of the certificate associated with the Private Connection. Only present when a certificate is associated.
dns_resolutionstringDNS resolution mode for the Private Connection's resource gateway. (PUBLIC, IN_VPC)
failure_messagestringMessage describing the reason for a failed Private Connection, if applicable.
host_addressstringIP address or DNS name of the target resource. Only present for service-managed Private Connections. (pattern: <code>[a-zA-Z0-9.:-]+</code>)
resource_configuration_idstringThe Resource Configuration ARN. Only present for self-managed Private Connections. (pattern: <code>(arn:[a-z0-9-]+:vpc-lattice:[a-zA-Z0-9-]+:\d{12}:resourceconfiguration/rcfg-[0-9a-z]{17}|rcfg-[0-9a-z]{17})</code>)
resource_gateway_idstringThe service-managed Resource Gateway ARN. Only present for service-managed Private Connections. (pattern: <code>arn:[a-z0-9-]+:vpc-lattice:[a-zA-Z0-9-]+:\d{12}:resourcegateway/rgw-[0-9a-z]{17}</code>)
statusstringThe status of the Private Connection. (ACTIVE, CREATE_IN_PROGRESS, CREATE_FAILED, DELETE_IN_PROGRESS, DELETE_FAILED)
tagsobjectTags associated with the Private Connection.
type_stringThe type of the Private Connection. (SELF_MANAGED, SERVICE_MANAGED)
vpc_idstringVPC identifier of the service-managed Resource Gateway. Only present for service-managed Private Connections. (pattern: <code>vpc-(([0-9a-z]{8})|([0-9a-z]{17}))</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_private_connectionselectname, regionRetrieves details of an existing Private Connection.
list_private_connectionsselectregionLists all Private Connections in the caller's account.
create_private_connectioninsertregion, name, modeCreates a Private Connection to a target resource.
update_private_connection_certificateupdatename, region, certificateUpdates the certificate associated with a Private Connection.
delete_private_connectiondeletename, regionDeletes a Private Connection. The deletion is asynchronous and returns DELETE_IN_PROGRESS status.

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
namestringThe name of the Private Connection.
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves details of an existing Private Connection.

SELECT
name,
certificate_expiry_time,
dns_resolution,
failure_message,
host_address,
resource_configuration_id,
resource_gateway_id,
status,
tags,
type_,
vpc_id
FROM aws.devops_agent.private_connections
WHERE name = '{{ name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a Private Connection to a target resource.

INSERT INTO aws.devops_agent.private_connections (
name,
mode,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ mode }}' /* required */,
'{{ tags }}',
'{{ region }}'
RETURNING
name,
certificate_expiry_time,
dns_resolution,
failure_message,
host_address,
resource_configuration_id,
resource_gateway_id,
status,
tags,
type_,
vpc_id
;

UPDATE examples

Updates the certificate associated with a Private Connection.

UPDATE aws.devops_agent.private_connections
SET
certificate = '{{ certificate }}'
WHERE
name = '{{ name }}' --required
AND region = '{{ region }}' --required
AND certificate = '{{ certificate }}' --required
RETURNING
name,
certificate_expiry_time,
dns_resolution,
failure_message,
host_address,
resource_configuration_id,
resource_gateway_id,
status,
type_,
vpc_id;

DELETE examples

Deletes a Private Connection. The deletion is asynchronous and returns DELETE_IN_PROGRESS status.

DELETE FROM aws.devops_agent.private_connections
WHERE name = '{{ name }}' --required
AND region = '{{ region }}' --required
;