Skip to content

GetSessionEndpoint

Source: src/AWS/EMR/GetSessionEndpoint.ts

Runtime binding for elasticmapreduce:GetSessionEndpoint — resolves the Spark Connect endpoint URL and a time-limited auth token for an interactive session on the bound cluster. The returned AuthToken is Redacted — unwrap with Redacted.value.

const getEndpoint = yield* AWS.EMR.GetSessionEndpoint(cluster);
const { Endpoint, AuthToken } = yield* getEndpoint({
SessionId: sessionId,
});