Skip to content

GetSessionEndpoint

Source: src/AWS/EMRServerless/GetSessionEndpoint.ts

Runtime binding for emr-serverless:GetSessionEndpoint.

Resolves the connection endpoint and short-lived auth token for an interactive session on the bound Application. The authToken in the response is Redacted — unwrap it with Redacted.value only at the point of use. Provide the implementation with Effect.provide(AWS.EMRServerless.GetSessionEndpointHttp).

// init
const getSessionEndpoint = yield* AWS.EMRServerless.GetSessionEndpoint(app);
// runtime
const { endpoint, authToken } = yield* getSessionEndpoint({ sessionId });