@Generated(value="software.amazon.awssdk:codegen") public final class CreateSessionRequest extends GlueRequest implements ToCopyableBuilder<CreateSessionRequest.Builder,CreateSessionRequest>
Request to create a new session.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateSessionRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateSessionRequest.Builder |
builder() |
SessionCommand |
command()
The
SessionCommand that runs the job. |
ConnectionsList |
connections()
The number of connections to use for the session.
|
Map<String,String> |
defaultArguments()
A map array of key-value pairs.
|
String |
description()
The description of the session.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<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() |
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
String |
id()
The ID of the session request.
|
Integer |
idleTimeout()
The number of seconds when idle before request 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. |
String |
requestOrigin()
The origin of the request.
|
String |
role()
The IAM Role ARN
|
List<SdkField<?>> |
sdkFields() |
String |
securityConfiguration()
The name of the SecurityConfiguration structure to be used with the session
|
static Class<? extends CreateSessionRequest.Builder> |
serializableBuilderClass() |
Map<String,String> |
tags()
The map of key value pairs (tags) belonging to the session.
|
Integer |
timeout()
The number of seconds before request times out.
|
CreateSessionRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
WorkerType |
workerType()
The type of predefined worker that is allocated to use for the session.
|
String |
workerTypeAsString()
The type of predefined worker that is allocated to use for the session.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String id()
The ID of the session request.
public final String description()
The description of the session.
public final String role()
The IAM Role ARN
public final SessionCommand command()
The SessionCommand that runs the job.
SessionCommand that runs the job.public final Integer timeout()
The number of seconds before request times out.
public final Integer idleTimeout()
The number of seconds when idle before request times out.
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 to use for 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 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 to use for the session. Accepts a value of Standard, G.1X, G.2X, or G.025X.
For the Standard worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2
executors per worker.
For the G.1X worker type, each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and
provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.2X worker type, each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and
provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.025X worker type, each worker maps to 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB disk), and
provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is
only available for Glue version 3.0 streaming jobs.
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().
For the Standard worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk,
and 2 executors per worker.
For the G.1X worker type, each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk),
and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.2X worker type, each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk),
and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.025X worker type, each worker maps to 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB
disk), and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs.
This worker type is only available for Glue version 3.0 streaming jobs.
WorkerTypepublic final String workerTypeAsString()
The type of predefined worker that is allocated to use for the session. Accepts a value of Standard, G.1X, G.2X, or G.025X.
For the Standard worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2
executors per worker.
For the G.1X worker type, each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and
provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.2X worker type, each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and
provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.025X worker type, each worker maps to 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB disk), and
provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is
only available for Glue version 3.0 streaming jobs.
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().
For the Standard worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk,
and 2 executors per worker.
For the G.1X worker type, each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk),
and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.2X worker type, each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk),
and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
For the G.025X worker type, each worker maps to 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB
disk), and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs.
This worker type is only available for Glue version 3.0 streaming jobs.
WorkerTypepublic 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 boolean hasTags()
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> tags()
The map of key value pairs (tags) belonging to the session.
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 hasTags() method.
public final String requestOrigin()
The origin of the request.
public CreateSessionRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateSessionRequest.Builder,CreateSessionRequest>toBuilder in class GlueRequestpublic static CreateSessionRequest.Builder builder()
public static Class<? extends CreateSessionRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2022. All rights reserved.