@Generated(value="software.amazon.awssdk:codegen") public final class Session extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Session.Builder,Session>
The period in which a remote Spark runtime environment is running.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Session.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Session.Builder |
builder() |
SessionCommand |
command()
The command object.See SessionCommand.
|
Instant |
completedOn()
The date and time that this session is completed.
|
ConnectionsList |
connections()
The number of connections used for the session.
|
Instant |
createdOn()
The time and date when the session was created.
|
Map<String,String> |
defaultArguments()
A map array of key-value pairs.
|
String |
description()
The description of the session.
|
Double |
dpuSeconds()
The DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
errorMessage()
The error message displayed during the session.
|
Double |
executionTime()
The total time the session ran for.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
String |
glueVersion()
The Glue version determines the versions of Apache Spark and Python that Glue supports.
|
boolean |
hasDefaultArguments()
For responses, this returns true if the service returned a value for the DefaultArguments property.
|
int |
hashCode() |
String |
id()
The ID of the session.
|
Integer |
idleTimeout()
The number of minutes when idle before the session times out.
|
Double |
maxCapacity()
The number of Glue data processing units (DPUs) that can be allocated when the job runs.
|
Integer |
numberOfWorkers()
The number of workers of a defined
WorkerType to use for the session. |
Double |
progress()
The code execution progress of the session.
|
String |
role()
The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.
|
List<SdkField<?>> |
sdkFields() |
String |
securityConfiguration()
The name of the SecurityConfiguration structure to be used with the session.
|
static Class<? extends Session.Builder> |
serializableBuilderClass() |
SessionStatus |
status()
The session status.
|
String |
statusAsString()
The session status.
|
Session.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
WorkerType |
workerType()
The type of predefined worker that is allocated when a session runs.
|
String |
workerTypeAsString()
The type of predefined worker that is allocated when a session runs.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String id()
The ID of the session.
public final Instant createdOn()
The time and date when the session was created.
public final SessionStatus status()
The session status.
If the service returns an enum value that is not available in the current SDK version, status will
return SessionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
SessionStatuspublic final String statusAsString()
The session status.
If the service returns an enum value that is not available in the current SDK version, status will
return SessionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
SessionStatuspublic final String errorMessage()
The error message displayed during the session.
public final String description()
The description of the session.
public final String role()
The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.
public final SessionCommand command()
The command object.See SessionCommand.
public final boolean hasDefaultArguments()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final Map<String,String> defaultArguments()
A map array of key-value pairs. Max is 75 pairs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasDefaultArguments() method.
public final ConnectionsList connections()
The number of connections used for the session.
public final Double progress()
The code execution progress of the session.
public final Double maxCapacity()
The number of Glue data processing units (DPUs) that can be allocated when the job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB memory.
public final String securityConfiguration()
The name of the SecurityConfiguration structure to be used with the session.
public final String glueVersion()
The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion must be greater than 2.0.
public final Integer numberOfWorkers()
The number of workers of a defined WorkerType to use for the session.
WorkerType to use for the session.public final WorkerType workerType()
The type of predefined worker that is allocated when a session runs. Accepts a value of G.1X,
G.2X, G.4X, or G.8X for Spark sessions. Accepts the value
Z.2X for Ray sessions.
If the service returns an enum value that is not available in the current SDK version, workerType will
return WorkerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
workerTypeAsString().
G.1X
, G.2X, G.4X, or G.8X for Spark sessions. Accepts the value
Z.2X for Ray sessions.WorkerTypepublic final String workerTypeAsString()
The type of predefined worker that is allocated when a session runs. Accepts a value of G.1X,
G.2X, G.4X, or G.8X for Spark sessions. Accepts the value
Z.2X for Ray sessions.
If the service returns an enum value that is not available in the current SDK version, workerType will
return WorkerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
workerTypeAsString().
G.1X
, G.2X, G.4X, or G.8X for Spark sessions. Accepts the value
Z.2X for Ray sessions.WorkerTypepublic final Instant completedOn()
The date and time that this session is completed.
public final Double executionTime()
The total time the session ran for.
public final Double dpuSeconds()
The DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).
public final Integer idleTimeout()
The number of minutes when idle before the session times out.
public Session.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Session.Builder,Session>public static Session.Builder builder()
public static Class<? extends Session.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.