Skip to content

Terminates an active session

Description

Terminates an active session. After you call this operation, the session enters the TERMINATING state and then transitions to TERMINATED.

Usage

emr_terminate_session(ClusterId, SessionId)

Arguments

  • ClusterId

[required] The ID of the cluster that the session belongs to.

  • SessionId

[required] The ID of the session to terminate.

Value

A list with the following syntax:

list(
  ClusterId = "string",
  SessionId = "string",
  State = "SUBMITTED"|"STARTING"|"STARTED"|"IDLE"|"BUSY"|"TERMINATING"|"TERMINATED"|"FAILED"
)

Request syntax

svc$terminate_session(
  ClusterId = "string",
  SessionId = "string"
)