startSession

inline suspend fun EmrClient.startSession(crossinline block: StartSessionRequest.Builder.() -> Unit): StartSessionResponse

Creates and starts a new Spark Connect session on the specified cluster. The cluster must be in the RUNNING or WAITING state and have sessions enabled. This operation is supported in Amazon EMR Spark 8.0.0 and later.