Skip to main content

connections

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

Overview

Nameconnections
TypeResource
Idaws.apigatewaymanagementapi.connections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
connected_atstring (date-time)The time in ISO 8601 format for when the connection was established.
identityobject
last_active_atstring (date-time)The time in ISO 8601 format for when the connection was last active.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_connectionselectconnection_id, regionGet information about the connection with the provided id.
delete_connectiondeleteconnection_id, regionDelete the connection with the provided id.
post_to_connectionexecconnection_id, region, DataSends the provided data to the specified 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
connection_idstringThe identifier of the connection that a specific client is using.
regionstringAWS region (default: us-east-1)

SELECT examples

Get information about the connection with the provided id.

SELECT
connected_at,
identity,
last_active_at
FROM aws.apigatewaymanagementapi.connections
WHERE connection_id = '{{ connection_id }}' -- required
AND region = '{{ region }}' -- required
;

DELETE examples

Delete the connection with the provided id.

DELETE FROM aws.apigatewaymanagementapi.connections
WHERE connection_id = '{{ connection_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Sends the provided data to the specified connection.

EXEC aws.apigatewaymanagementapi.connections.post_to_connection
@connection_id='{{ connection_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"Data": "{{ Data }}"
}'
;