GetSession - Amazon EMR
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

GetSession

Returns detailed information about a session.

Request Syntax

{ "ClusterId": "string", "SessionId": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

ClusterId

The ID of the cluster that the session belongs to.

Type: String

Length Constraints: Maximum length of 256.

Required: Yes

SessionId

The ID of the session.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 256.

Required: Yes

Response Syntax

{ "Session": { "AccountId": "string", "Arn": "string", "ClusterId": "string", "CreatedAt": number, "EndedAt": number, "EngineConfigurations": [ { "Classification": "string", "Configurations": [ "Configuration" ], "Properties": { "string" : "string" } } ], "ExecutionRoleArn": "string", "Id": "string", "IdleSince": number, "MonitoringConfiguration": { "CloudWatchLoggingConfiguration": { "Enabled": boolean, "EncryptionKeyArn": "string", "LogGroup": "string", "LogStreamNamePrefix": "string", "LogTypes": { "string" : [ "string" ] } }, "ManagedLoggingConfiguration": { "Enabled": boolean, "EncryptionKeyArn": "string" }, "S3LoggingConfiguration": { "Enabled": boolean, "EncryptionKeyArn": "string", "LogTypes": { "string" : [ "string" ] }, "LogUri": "string" } }, "Name": "string", "ReleaseLabel": "string", "ServerUrl": "string", "SessionIdleTimeoutInMinutes": number, "StartedAt": number, "State": "string", "StateChangeReason": "string", "Tags": [ { "Key": "string", "Value": "string" } ], "UpdatedAt": number } }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

Session

The output displays information about the session.

Type: Session object

Errors

For information about the errors that are common to all actions, see Common Error Types.

InternalServerException

This exception occurs when there is an internal failure in the Amazon EMR service.

Message

The message associated with the exception.

HTTP Status Code: 500

InvalidRequestException

This exception occurs when there is something wrong with user input.

ErrorCode

The error code associated with the exception.

Message

The message associated with the exception.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: