session_endpoints
Creates, updates, deletes, gets or lists a session_endpoints resource.
Overview
| Name | session_endpoints |
| Type | Resource |
| Id | aws.emr_serverless.session_endpoints |
Fields
The following fields are returned by SELECT queries:
- get_session_endpoint
| Name | Datatype | Description |
|---|---|---|
application_id | string | The output contains the ID of the application. (pattern: <code>[0-9a-z]+</code>) |
auth_token | string | The authentication token for connecting to the session endpoint. Call GetSessionEndpoint again to obtain a new token before it expires. |
auth_token_expires_at | string (date-time) | The expiration time of the authentication token. |
endpoint | string | The endpoint URL for connecting to the session. |
session_id | string | The output contains the ID of the session. (pattern: <code>[0-9a-z]+</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_session_endpoint | select | application_id, session_id, region | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
application_id | string | The ID of the application that the session belongs to. |
region | string | AWS region (default: us-east-1) |
session_id | string | The ID of the session. |
SELECT examples
- get_session_endpoint
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
;