Skip to content

StartSession

Source: src/AWS/EMR/StartSession.ts

Runtime binding for elasticmapreduce:StartSession — starts an interactive Spark Connect session on the bound cluster (EMR 7.8+ with sessions enabled).

const startSession = yield* AWS.EMR.StartSession(cluster);
const { Id } = yield* startSession({
Name: "adhoc-analysis",
ExecutionRoleArn: runtimeRoleArn,
});