Skip to main content

session_endpoints

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

Overview

Namesession_endpoints
TypeResource
Idaws.emr_serverless.session_endpoints

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_idstringThe output contains the ID of the application. (pattern: <code>[0-9a-z]+</code>)
auth_tokenstringThe authentication token for connecting to the session endpoint. Call GetSessionEndpoint again to obtain a new token before it expires.
auth_token_expires_atstring (date-time)The expiration time of the authentication token.
endpointstringThe endpoint URL for connecting to the session.
session_idstringThe output contains the ID of the session. (pattern: <code>[0-9a-z]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_session_endpointselectapplication_id, session_id, regionReturns the session endpoint URL and a time-limited authentication token for the specified session. Use the endpoint and token to connect a client to the session. Call this operation again when the authentication token expires to obtain a new token.

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
application_idstringThe ID of the application that the session belongs to.
regionstringAWS region (default: us-east-1)
session_idstringThe ID of the session.

SELECT examples

Returns the session endpoint URL and a time-limited authentication token for the specified session. Use the endpoint and token to connect a client to the session. Call this operation again when the authentication token expires to obtain a new token.

SELECT
application_id,
auth_token,
auth_token_expires_at,
endpoint,
session_id
FROM aws.emr_serverless.session_endpoints
WHERE application_id = '{{ application_id }}' -- required
AND session_id = '{{ session_id }}' -- required
AND region = '{{ region }}' -- required
;