Skip to content

StartSession

Source: src/AWS/EMRServerless/StartSession.ts

Runtime binding for emr-serverless:StartSession.

Starts an interactive session on the bound Application (the application must enable interactiveConfiguration). The session assumes the given execution role; grants iam:PassRole (conditioned to emr-serverless.amazonaws.com) accordingly. Provide the implementation with Effect.provide(AWS.EMRServerless.StartSessionHttp).

// init
const startSession = yield* AWS.EMRServerless.StartSession(app);
// runtime
const session = yield* startSession({ executionRoleArn: sessionRoleArn });
yield* Effect.log(`started ${session.sessionId}`);