public static interface Session.Builder extends SdkPojo, CopyableBuilder<Session.Builder,Session>
| Modifier and Type | Method and Description |
|---|---|
default Session.Builder |
command(Consumer<SessionCommand.Builder> command)
The command object.See SessionCommand.
|
Session.Builder |
command(SessionCommand command)
The command object.See SessionCommand.
|
Session.Builder |
completedOn(Instant completedOn)
The date and time that this session is completed.
|
Session.Builder |
connections(ConnectionsList connections)
The number of connections used for the session.
|
default Session.Builder |
connections(Consumer<ConnectionsList.Builder> connections)
The number of connections used for the session.
|
Session.Builder |
createdOn(Instant createdOn)
The time and date when the session was created.
|
Session.Builder |
defaultArguments(Map<String,String> defaultArguments)
A map array of key-value pairs.
|
Session.Builder |
description(String description)
The description of the session.
|
Session.Builder |
dpuSeconds(Double dpuSeconds)
The DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).
|
Session.Builder |
errorMessage(String errorMessage)
The error message displayed during the session.
|
Session.Builder |
executionTime(Double executionTime)
The total time the session ran for.
|
Session.Builder |
glueVersion(String glueVersion)
The Glue version determines the versions of Apache Spark and Python that Glue supports.
|
Session.Builder |
id(String id)
The ID of the session.
|
Session.Builder |
idleTimeout(Integer idleTimeout)
The number of minutes when idle before the session times out.
|
Session.Builder |
maxCapacity(Double maxCapacity)
The number of Glue data processing units (DPUs) that can be allocated when the job runs.
|
Session.Builder |
numberOfWorkers(Integer numberOfWorkers)
The number of workers of a defined
WorkerType to use for the session. |
Session.Builder |
progress(Double progress)
The code execution progress of the session.
|
Session.Builder |
role(String role)
The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.
|
Session.Builder |
securityConfiguration(String securityConfiguration)
The name of the SecurityConfiguration structure to be used with the session.
|
Session.Builder |
status(SessionStatus status)
The session status.
|
Session.Builder |
status(String status)
The session status.
|
Session.Builder |
workerType(String workerType)
The type of predefined worker that is allocated when a session runs.
|
Session.Builder |
workerType(WorkerType workerType)
The type of predefined worker that is allocated when a session runs.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildSession.Builder id(String id)
The ID of the session.
id - The ID of the session.Session.Builder createdOn(Instant createdOn)
The time and date when the session was created.
createdOn - The time and date when the session was created.Session.Builder status(String status)
The session status.
status - The session status.SessionStatus,
SessionStatusSession.Builder status(SessionStatus status)
The session status.
status - The session status.SessionStatus,
SessionStatusSession.Builder errorMessage(String errorMessage)
The error message displayed during the session.
errorMessage - The error message displayed during the session.Session.Builder description(String description)
The description of the session.
description - The description of the session.Session.Builder role(String role)
The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.
role - The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.Session.Builder command(SessionCommand command)
The command object.See SessionCommand.
command - The command object.See SessionCommand.default Session.Builder command(Consumer<SessionCommand.Builder> command)
The command object.See SessionCommand.
This is a convenience method that creates an instance of theSessionCommand.Builder avoiding the need
to create one manually via SessionCommand.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to command(SessionCommand).
command - a consumer that will call methods on SessionCommand.Buildercommand(SessionCommand)Session.Builder defaultArguments(Map<String,String> defaultArguments)
A map array of key-value pairs. Max is 75 pairs.
defaultArguments - A map array of key-value pairs. Max is 75 pairs.Session.Builder connections(ConnectionsList connections)
The number of connections used for the session.
connections - The number of connections used for the session.default Session.Builder connections(Consumer<ConnectionsList.Builder> connections)
The number of connections used for the session.
This is a convenience method that creates an instance of theConnectionsList.Builder avoiding the
need to create one manually via ConnectionsList.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to connections(ConnectionsList).
connections - a consumer that will call methods on ConnectionsList.Builderconnections(ConnectionsList)Session.Builder progress(Double progress)
The code execution progress of the session.
progress - The code execution progress of the session.Session.Builder maxCapacity(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.
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.Session.Builder securityConfiguration(String securityConfiguration)
The name of the SecurityConfiguration structure to be used with the session.
securityConfiguration - The name of the SecurityConfiguration structure to be used with the session.Session.Builder glueVersion(String glueVersion)
The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion must be greater than 2.0.
glueVersion - The Glue version determines the versions of Apache Spark and Python that Glue supports. The
GlueVersion must be greater than 2.0.Session.Builder numberOfWorkers(Integer numberOfWorkers)
The number of workers of a defined WorkerType to use for the session.
numberOfWorkers - The number of workers of a defined WorkerType to use for the session.Session.Builder workerType(String 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.
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.WorkerType,
WorkerTypeSession.Builder workerType(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.
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.WorkerType,
WorkerTypeSession.Builder completedOn(Instant completedOn)
The date and time that this session is completed.
completedOn - The date and time that this session is completed.Session.Builder executionTime(Double executionTime)
The total time the session ran for.
executionTime - The total time the session ran for.Session.Builder dpuSeconds(Double dpuSeconds)
The DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).
dpuSeconds - The DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).Session.Builder idleTimeout(Integer idleTimeout)
The number of minutes when idle before the session times out.
idleTimeout - The number of minutes when idle before the session times out.Copyright © 2023. All rights reserved.