Skip to content

GetSession

Source: src/AWS/EMRServerless/GetSession.ts

Runtime binding for emr-serverless:GetSession.

Reads an interactive session’s detail on the bound Application — state, execution role, idle time, resource utilization. Provide the implementation with Effect.provide(AWS.EMRServerless.GetSessionHttp).

// init
const getSession = yield* AWS.EMRServerless.GetSession(app);
// runtime
const { session } = yield* getSession({ sessionId });
yield* Effect.log(`${session.sessionId} is ${session.state}`);