Skip to main content

private_connections

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

Overview

Nameprivate_connections
TypeResource
Idaws.securityagent.private_connections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe unique name of a private connection within your account.
certificate_expiry_timestring (date-time)The date and time the connection's certificate expires, in UTC format.
dns_resolutionstringThe DNS resolution mode for the resource gateway. (PUBLIC, IN_VPC)
failure_messagestringA message describing why the private connection entered a failed state, if applicable.
host_addressstringThe IP address or DNS name of the target resource.
resource_configuration_idstringThe identifier or ARN of the VPC Lattice resource configuration.
resource_gateway_idstringThe identifier or ARN of the VPC Lattice resource gateway.
statusstringThe current status of the private connection. (ACTIVE, CREATE_IN_PROGRESS, CREATE_FAILED, DELETE_IN_PROGRESS, DELETE_FAILED)
tagsobjectThe tags attached to the private connection.
type_stringThe type of the private connection, indicating whether it is service-managed or self-managed. (SERVICE_MANAGED, SELF_MANAGED)
vpc_idstringThe identifier of the VPC the resource gateway is created in.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_private_connectionselectregionRetrieves the details of a private connection.
list_private_connectionsselectregionLists the private connections in your account.
create_private_connectioninsertregion, privateConnectionName, modeCreates a private connection for reaching a self-hosted provider instance over private networking using Amazon VPC Lattice.
update_private_connection_certificateupdateregion, privateConnectionName, certificateUpdates the certificate associated with a private connection. Certificates can be added or replaced but not removed.
delete_private_connectiondeleteregionDeletes a private connection.

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)

SELECT examples

Retrieves the details of a 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.securityagent.private_connections
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a private connection for reaching a self-hosted provider instance over private networking using Amazon VPC Lattice.

INSERT INTO aws.securityagent.private_connections (
privateConnectionName,
mode,
tags,
region
)
SELECT
'{{ privateConnectionName }}' /* 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. Certificates can be added or replaced but not removed.

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

DELETE examples

Deletes a private connection.

DELETE FROM aws.securityagent.private_connections
WHERE region = '{{ region }}' --required
;