v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1465378349.0 KB

Returns the Spark Connect endpoint URL and a time-limited authentication token for the specified session. Use the endpoint and token to connect a PySpark client to the session. Call this operation again when the token expires to obtain a new one.

post/#X-Amz-Target=ElasticMapReduce.GetSessionEndpoint

Headers

X-Amz-Target'ElasticMapReduce.GetSessionEndpoint' required

Request body

ClusterIdstring required

The ID of the cluster that the session belongs to.

SessionIdstring required

The ID of the session.

Response

Success

Endpointstring required

The Spark Connect endpoint URL to use in the PySpark client.

AuthTokenstring password

A time-limited authentication token used to connect to the Spark Connect endpoint.

AuthTokenExpirationTimestring date-time

The time at which the authentication token expires. After this time, call <code>GetSessionEndpoint</code> again to obtain a new token.