Skip to content

TerminateSession

Source: src/AWS/EMRServerless/TerminateSession.ts

Runtime binding for emr-serverless:TerminateSession.

Terminates an interactive session on the bound Application, releasing its workers — e.g. a cost-control function reaping sessions left idle past a policy window. Provide the implementation with Effect.provide(AWS.EMRServerless.TerminateSessionHttp).

// init
const terminateSession = yield* AWS.EMRServerless.TerminateSession(app);
// runtime
yield* terminateSession({ sessionId });