/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.glue.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* Request to create a new session. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateSessionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** The ID of the session request. *
*/ private String id; /** ** The description of the session. *
*/ private String description; /** ** The IAM Role ARN *
*/ private String role; /** *
* The SessionCommand
that runs the job.
*
* The number of minutes before session times out. Default for Spark ETL jobs is 48 hours (2880 minutes), the * maximum session lifetime for this job type. Consult the documentation for other job types. *
*/ private Integer timeout; /** ** The number of minutes when idle before session times out. Default for Spark ETL jobs is value of Timeout. Consult * the documentation for other job types. *
*/ private Integer idleTimeout; /** ** A map array of key-value pairs. Max is 75 pairs. *
*/ private java.util.Map* The number of connections to use for the session. *
*/ private ConnectionsList connections; /** ** 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. *
*/ private Double maxCapacity; /** *
* The number of workers of a defined WorkerType
to use for the session.
*
* The type of predefined worker that is allocated when a job runs. Accepts a value of G.1X, G.2X, G.4X, or G.8X for * Spark jobs. Accepts the value Z.2X for Ray notebooks. *
*
* For the G.1X
worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 84GB disk
* (approximately 34GB free), and provides 1 executor per worker. We recommend this worker type for workloads such
* as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.
*
* For the G.2X
worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 128GB disk
* (approximately 77GB free), and provides 1 executor per worker. We recommend this worker type for workloads such
* as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.
*
* For the G.4X
worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk
* (approximately 235GB free), and provides 1 executor per worker. We recommend this worker type for jobs whose
* workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available
* only for Glue version 3.0 or later Spark ETL jobs in the following Amazon Web Services Regions: US East (Ohio),
* US East (N. Virginia), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo),
* Canada (Central), Europe (Frankfurt), Europe (Ireland), and Europe (Stockholm).
*
* For the G.8X
worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk
* (approximately 487GB free), and provides 1 executor per worker. We recommend this worker type for jobs whose
* workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available
* only for Glue version 3.0 or later Spark ETL jobs, in the same Amazon Web Services Regions as supported for the
* G.4X
worker type.
*
* For the Z.2X
worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk
* (approximately 120GB free), and provides up to 8 Ray workers based on the autoscaler.
*
* The name of the SecurityConfiguration structure to be used with the session *
*/ private String securityConfiguration; /** ** The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion must be * greater than 2.0. *
*/ private String glueVersion; /** ** The map of key value pairs (tags) belonging to the session. *
*/ private java.util.Map* The origin of the request. *
*/ private String requestOrigin; /** ** The ID of the session request. *
* * @param id * The ID of the session request. */ public void setId(String id) { this.id = id; } /** ** The ID of the session request. *
* * @return The ID of the session request. */ public String getId() { return this.id; } /** ** The ID of the session request. *
* * @param id * The ID of the session request. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSessionRequest withId(String id) { setId(id); return this; } /** ** The description of the session. *
* * @param description * The description of the session. */ public void setDescription(String description) { this.description = description; } /** ** The description of the session. *
* * @return The description of the session. */ public String getDescription() { return this.description; } /** ** The description of the session. *
* * @param description * The description of the session. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSessionRequest withDescription(String description) { setDescription(description); return this; } /** ** The IAM Role ARN *
* * @param role * The IAM Role ARN */ public void setRole(String role) { this.role = role; } /** ** The IAM Role ARN *
* * @return The IAM Role ARN */ public String getRole() { return this.role; } /** ** The IAM Role ARN *
* * @param role * The IAM Role ARN * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSessionRequest withRole(String role) { setRole(role); return this; } /** *
* The SessionCommand
that runs the job.
*
SessionCommand
that runs the job.
*/
public void setCommand(SessionCommand command) {
this.command = command;
}
/**
*
* The SessionCommand
that runs the job.
*
SessionCommand
that runs the job.
*/
public SessionCommand getCommand() {
return this.command;
}
/**
*
* The SessionCommand
that runs the job.
*
SessionCommand
that runs the job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateSessionRequest withCommand(SessionCommand command) {
setCommand(command);
return this;
}
/**
* * The number of minutes before session times out. Default for Spark ETL jobs is 48 hours (2880 minutes), the * maximum session lifetime for this job type. Consult the documentation for other job types. *
* * @param timeout * The number of minutes before session times out. Default for Spark ETL jobs is 48 hours (2880 minutes), the * maximum session lifetime for this job type. Consult the documentation for other job types. */ public void setTimeout(Integer timeout) { this.timeout = timeout; } /** ** The number of minutes before session times out. Default for Spark ETL jobs is 48 hours (2880 minutes), the * maximum session lifetime for this job type. Consult the documentation for other job types. *
* * @return The number of minutes before session times out. Default for Spark ETL jobs is 48 hours (2880 minutes), * the maximum session lifetime for this job type. Consult the documentation for other job types. */ public Integer getTimeout() { return this.timeout; } /** ** The number of minutes before session times out. Default for Spark ETL jobs is 48 hours (2880 minutes), the * maximum session lifetime for this job type. Consult the documentation for other job types. *
* * @param timeout * The number of minutes before session times out. Default for Spark ETL jobs is 48 hours (2880 minutes), the * maximum session lifetime for this job type. Consult the documentation for other job types. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSessionRequest withTimeout(Integer timeout) { setTimeout(timeout); return this; } /** ** The number of minutes when idle before session times out. Default for Spark ETL jobs is value of Timeout. Consult * the documentation for other job types. *
* * @param idleTimeout * The number of minutes when idle before session times out. Default for Spark ETL jobs is value of Timeout. * Consult the documentation for other job types. */ public void setIdleTimeout(Integer idleTimeout) { this.idleTimeout = idleTimeout; } /** ** The number of minutes when idle before session times out. Default for Spark ETL jobs is value of Timeout. Consult * the documentation for other job types. *
* * @return The number of minutes when idle before session times out. Default for Spark ETL jobs is value of Timeout. * Consult the documentation for other job types. */ public Integer getIdleTimeout() { return this.idleTimeout; } /** ** The number of minutes when idle before session times out. Default for Spark ETL jobs is value of Timeout. Consult * the documentation for other job types. *
* * @param idleTimeout * The number of minutes when idle before session times out. Default for Spark ETL jobs is value of Timeout. * Consult the documentation for other job types. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSessionRequest withIdleTimeout(Integer idleTimeout) { setIdleTimeout(idleTimeout); return this; } /** ** A map array of key-value pairs. Max is 75 pairs. *
* * @return A map array of key-value pairs. Max is 75 pairs. */ public java.util.Map* A map array of key-value pairs. Max is 75 pairs. *
* * @param defaultArguments * A map array of key-value pairs. Max is 75 pairs. */ public void setDefaultArguments(java.util.Map* A map array of key-value pairs. Max is 75 pairs. *
* * @param defaultArguments * A map array of key-value pairs. Max is 75 pairs. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSessionRequest withDefaultArguments(java.util.Map* The number of connections to use for the session. *
* * @param connections * The number of connections to use for the session. */ public void setConnections(ConnectionsList connections) { this.connections = connections; } /** ** The number of connections to use for the session. *
* * @return The number of connections to use for the session. */ public ConnectionsList getConnections() { return this.connections; } /** ** The number of connections to use for the session. *
* * @param connections * The number of connections to use for the session. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSessionRequest withConnections(ConnectionsList connections) { setConnections(connections); return this; } /** ** 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. *
* * @param 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 void setMaxCapacity(Double maxCapacity) { this.maxCapacity = 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. *
* * @return 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 Double getMaxCapacity() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSessionRequest withMaxCapacity(Double maxCapacity) { setMaxCapacity(maxCapacity); return this; } /** *
* The number of workers of a defined WorkerType
to use for the session.
*
WorkerType
to use for the session.
*/
public void setNumberOfWorkers(Integer numberOfWorkers) {
this.numberOfWorkers = numberOfWorkers;
}
/**
*
* The number of workers of a defined WorkerType
to use for the session.
*
WorkerType
to use for the session.
*/
public Integer getNumberOfWorkers() {
return this.numberOfWorkers;
}
/**
*
* The number of workers of a defined WorkerType
to use for the session.
*
WorkerType
to use for the session.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateSessionRequest withNumberOfWorkers(Integer numberOfWorkers) {
setNumberOfWorkers(numberOfWorkers);
return this;
}
/**
* * The type of predefined worker that is allocated when a job runs. Accepts a value of G.1X, G.2X, G.4X, or G.8X for * Spark jobs. Accepts the value Z.2X for Ray notebooks. *
*
* For the G.1X
worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 84GB disk
* (approximately 34GB free), and provides 1 executor per worker. We recommend this worker type for workloads such
* as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.
*
* For the G.2X
worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 128GB disk
* (approximately 77GB free), and provides 1 executor per worker. We recommend this worker type for workloads such
* as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.
*
* For the G.4X
worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk
* (approximately 235GB free), and provides 1 executor per worker. We recommend this worker type for jobs whose
* workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available
* only for Glue version 3.0 or later Spark ETL jobs in the following Amazon Web Services Regions: US East (Ohio),
* US East (N. Virginia), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo),
* Canada (Central), Europe (Frankfurt), Europe (Ireland), and Europe (Stockholm).
*
* For the G.8X
worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk
* (approximately 487GB free), and provides 1 executor per worker. We recommend this worker type for jobs whose
* workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available
* only for Glue version 3.0 or later Spark ETL jobs, in the same Amazon Web Services Regions as supported for the
* G.4X
worker type.
*
* For the Z.2X
worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk
* (approximately 120GB free), and provides up to 8 Ray workers based on the autoscaler.
*
* For the G.1X
worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 84GB disk
* (approximately 34GB free), and provides 1 executor per worker. We recommend this worker type for workloads
* such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.
*
* For the G.2X
worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 128GB
* disk (approximately 77GB free), and provides 1 executor per worker. We recommend this worker type for
* workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run
* most jobs.
*
* For the G.4X
worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB
* disk (approximately 235GB free), and provides 1 executor per worker. We recommend this worker type for
* jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker
* type is available only for Glue version 3.0 or later Spark ETL jobs in the following Amazon Web Services
* Regions: US East (Ohio), US East (N. Virginia), US West (Oregon), Asia Pacific (Singapore), Asia Pacific
* (Sydney), Asia Pacific (Tokyo), Canada (Central), Europe (Frankfurt), Europe (Ireland), and Europe
* (Stockholm).
*
* For the G.8X
worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB
* disk (approximately 487GB free), and provides 1 executor per worker. We recommend this worker type for
* jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker
* type is available only for Glue version 3.0 or later Spark ETL jobs, in the same Amazon Web Services
* Regions as supported for the G.4X
worker type.
*
* For the Z.2X
worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB
* disk (approximately 120GB free), and provides up to 8 Ray workers based on the autoscaler.
*
* The type of predefined worker that is allocated when a job runs. Accepts a value of G.1X, G.2X, G.4X, or G.8X for * Spark jobs. Accepts the value Z.2X for Ray notebooks. *
*
* For the G.1X
worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 84GB disk
* (approximately 34GB free), and provides 1 executor per worker. We recommend this worker type for workloads such
* as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.
*
* For the G.2X
worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 128GB disk
* (approximately 77GB free), and provides 1 executor per worker. We recommend this worker type for workloads such
* as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.
*
* For the G.4X
worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk
* (approximately 235GB free), and provides 1 executor per worker. We recommend this worker type for jobs whose
* workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available
* only for Glue version 3.0 or later Spark ETL jobs in the following Amazon Web Services Regions: US East (Ohio),
* US East (N. Virginia), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo),
* Canada (Central), Europe (Frankfurt), Europe (Ireland), and Europe (Stockholm).
*
* For the G.8X
worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk
* (approximately 487GB free), and provides 1 executor per worker. We recommend this worker type for jobs whose
* workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available
* only for Glue version 3.0 or later Spark ETL jobs, in the same Amazon Web Services Regions as supported for the
* G.4X
worker type.
*
* For the Z.2X
worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk
* (approximately 120GB free), and provides up to 8 Ray workers based on the autoscaler.
*
* For the G.1X
worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 84GB
* disk (approximately 34GB free), and provides 1 executor per worker. We recommend this worker type for
* workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run
* most jobs.
*
* For the G.2X
worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 128GB
* disk (approximately 77GB free), and provides 1 executor per worker. We recommend this worker type for
* workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run
* most jobs.
*
* For the G.4X
worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB
* disk (approximately 235GB free), and provides 1 executor per worker. We recommend this worker type for
* jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This
* worker type is available only for Glue version 3.0 or later Spark ETL jobs in the following Amazon Web
* Services Regions: US East (Ohio), US East (N. Virginia), US West (Oregon), Asia Pacific (Singapore), Asia
* Pacific (Sydney), Asia Pacific (Tokyo), Canada (Central), Europe (Frankfurt), Europe (Ireland), and
* Europe (Stockholm).
*
* For the G.8X
worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB
* disk (approximately 487GB free), and provides 1 executor per worker. We recommend this worker type for
* jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This
* worker type is available only for Glue version 3.0 or later Spark ETL jobs, in the same Amazon Web
* Services Regions as supported for the G.4X
worker type.
*
* For the Z.2X
worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB
* disk (approximately 120GB free), and provides up to 8 Ray workers based on the autoscaler.
*
* The type of predefined worker that is allocated when a job runs. Accepts a value of G.1X, G.2X, G.4X, or G.8X for * Spark jobs. Accepts the value Z.2X for Ray notebooks. *
*
* For the G.1X
worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 84GB disk
* (approximately 34GB free), and provides 1 executor per worker. We recommend this worker type for workloads such
* as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.
*
* For the G.2X
worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 128GB disk
* (approximately 77GB free), and provides 1 executor per worker. We recommend this worker type for workloads such
* as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.
*
* For the G.4X
worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk
* (approximately 235GB free), and provides 1 executor per worker. We recommend this worker type for jobs whose
* workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available
* only for Glue version 3.0 or later Spark ETL jobs in the following Amazon Web Services Regions: US East (Ohio),
* US East (N. Virginia), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo),
* Canada (Central), Europe (Frankfurt), Europe (Ireland), and Europe (Stockholm).
*
* For the G.8X
worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk
* (approximately 487GB free), and provides 1 executor per worker. We recommend this worker type for jobs whose
* workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available
* only for Glue version 3.0 or later Spark ETL jobs, in the same Amazon Web Services Regions as supported for the
* G.4X
worker type.
*
* For the Z.2X
worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk
* (approximately 120GB free), and provides up to 8 Ray workers based on the autoscaler.
*
* For the G.1X
worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 84GB disk
* (approximately 34GB free), and provides 1 executor per worker. We recommend this worker type for workloads
* such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.
*
* For the G.2X
worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 128GB
* disk (approximately 77GB free), and provides 1 executor per worker. We recommend this worker type for
* workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run
* most jobs.
*
* For the G.4X
worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB
* disk (approximately 235GB free), and provides 1 executor per worker. We recommend this worker type for
* jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker
* type is available only for Glue version 3.0 or later Spark ETL jobs in the following Amazon Web Services
* Regions: US East (Ohio), US East (N. Virginia), US West (Oregon), Asia Pacific (Singapore), Asia Pacific
* (Sydney), Asia Pacific (Tokyo), Canada (Central), Europe (Frankfurt), Europe (Ireland), and Europe
* (Stockholm).
*
* For the G.8X
worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB
* disk (approximately 487GB free), and provides 1 executor per worker. We recommend this worker type for
* jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker
* type is available only for Glue version 3.0 or later Spark ETL jobs, in the same Amazon Web Services
* Regions as supported for the G.4X
worker type.
*
* For the Z.2X
worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB
* disk (approximately 120GB free), and provides up to 8 Ray workers based on the autoscaler.
*
* The type of predefined worker that is allocated when a job runs. Accepts a value of G.1X, G.2X, G.4X, or G.8X for * Spark jobs. Accepts the value Z.2X for Ray notebooks. *
*
* For the G.1X
worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 84GB disk
* (approximately 34GB free), and provides 1 executor per worker. We recommend this worker type for workloads such
* as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.
*
* For the G.2X
worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 128GB disk
* (approximately 77GB free), and provides 1 executor per worker. We recommend this worker type for workloads such
* as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.
*
* For the G.4X
worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk
* (approximately 235GB free), and provides 1 executor per worker. We recommend this worker type for jobs whose
* workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available
* only for Glue version 3.0 or later Spark ETL jobs in the following Amazon Web Services Regions: US East (Ohio),
* US East (N. Virginia), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo),
* Canada (Central), Europe (Frankfurt), Europe (Ireland), and Europe (Stockholm).
*
* For the G.8X
worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk
* (approximately 487GB free), and provides 1 executor per worker. We recommend this worker type for jobs whose
* workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available
* only for Glue version 3.0 or later Spark ETL jobs, in the same Amazon Web Services Regions as supported for the
* G.4X
worker type.
*
* For the Z.2X
worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk
* (approximately 120GB free), and provides up to 8 Ray workers based on the autoscaler.
*
* For the G.1X
worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 84GB disk
* (approximately 34GB free), and provides 1 executor per worker. We recommend this worker type for workloads
* such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.
*
* For the G.2X
worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 128GB
* disk (approximately 77GB free), and provides 1 executor per worker. We recommend this worker type for
* workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run
* most jobs.
*
* For the G.4X
worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB
* disk (approximately 235GB free), and provides 1 executor per worker. We recommend this worker type for
* jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker
* type is available only for Glue version 3.0 or later Spark ETL jobs in the following Amazon Web Services
* Regions: US East (Ohio), US East (N. Virginia), US West (Oregon), Asia Pacific (Singapore), Asia Pacific
* (Sydney), Asia Pacific (Tokyo), Canada (Central), Europe (Frankfurt), Europe (Ireland), and Europe
* (Stockholm).
*
* For the G.8X
worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB
* disk (approximately 487GB free), and provides 1 executor per worker. We recommend this worker type for
* jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker
* type is available only for Glue version 3.0 or later Spark ETL jobs, in the same Amazon Web Services
* Regions as supported for the G.4X
worker type.
*
* For the Z.2X
worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB
* disk (approximately 120GB free), and provides up to 8 Ray workers based on the autoscaler.
*
* The name of the SecurityConfiguration structure to be used with the session *
* * @param securityConfiguration * The name of the SecurityConfiguration structure to be used with the session */ public void setSecurityConfiguration(String securityConfiguration) { this.securityConfiguration = securityConfiguration; } /** ** The name of the SecurityConfiguration structure to be used with the session *
* * @return The name of the SecurityConfiguration structure to be used with the session */ public String getSecurityConfiguration() { return this.securityConfiguration; } /** ** The name of the SecurityConfiguration structure to be used with the session *
* * @param securityConfiguration * The name of the SecurityConfiguration structure to be used with the session * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSessionRequest withSecurityConfiguration(String securityConfiguration) { setSecurityConfiguration(securityConfiguration); return this; } /** ** The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion must be * greater than 2.0. *
* * @param glueVersion * The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion * must be greater than 2.0. */ public void setGlueVersion(String glueVersion) { this.glueVersion = glueVersion; } /** ** The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion must be * greater than 2.0. *
* * @return The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion * must be greater than 2.0. */ public String getGlueVersion() { return this.glueVersion; } /** ** The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion must be * greater than 2.0. *
* * @param glueVersion * The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion * must be greater than 2.0. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSessionRequest withGlueVersion(String glueVersion) { setGlueVersion(glueVersion); return this; } /** ** The map of key value pairs (tags) belonging to the session. *
* * @return The map of key value pairs (tags) belonging to the session. */ public java.util.Map* The map of key value pairs (tags) belonging to the session. *
* * @param tags * The map of key value pairs (tags) belonging to the session. */ public void setTags(java.util.Map* The map of key value pairs (tags) belonging to the session. *
* * @param tags * The map of key value pairs (tags) belonging to the session. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSessionRequest withTags(java.util.Map* The origin of the request. *
* * @param requestOrigin * The origin of the request. */ public void setRequestOrigin(String requestOrigin) { this.requestOrigin = requestOrigin; } /** ** The origin of the request. *
* * @return The origin of the request. */ public String getRequestOrigin() { return this.requestOrigin; } /** ** The origin of the request. *
* * @param requestOrigin * The origin of the request. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSessionRequest withRequestOrigin(String requestOrigin) { setRequestOrigin(requestOrigin); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getRole() != null) sb.append("Role: ").append(getRole()).append(","); if (getCommand() != null) sb.append("Command: ").append(getCommand()).append(","); if (getTimeout() != null) sb.append("Timeout: ").append(getTimeout()).append(","); if (getIdleTimeout() != null) sb.append("IdleTimeout: ").append(getIdleTimeout()).append(","); if (getDefaultArguments() != null) sb.append("DefaultArguments: ").append(getDefaultArguments()).append(","); if (getConnections() != null) sb.append("Connections: ").append(getConnections()).append(","); if (getMaxCapacity() != null) sb.append("MaxCapacity: ").append(getMaxCapacity()).append(","); if (getNumberOfWorkers() != null) sb.append("NumberOfWorkers: ").append(getNumberOfWorkers()).append(","); if (getWorkerType() != null) sb.append("WorkerType: ").append(getWorkerType()).append(","); if (getSecurityConfiguration() != null) sb.append("SecurityConfiguration: ").append(getSecurityConfiguration()).append(","); if (getGlueVersion() != null) sb.append("GlueVersion: ").append(getGlueVersion()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getRequestOrigin() != null) sb.append("RequestOrigin: ").append(getRequestOrigin()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateSessionRequest == false) return false; CreateSessionRequest other = (CreateSessionRequest) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getRole() == null ^ this.getRole() == null) return false; if (other.getRole() != null && other.getRole().equals(this.getRole()) == false) return false; if (other.getCommand() == null ^ this.getCommand() == null) return false; if (other.getCommand() != null && other.getCommand().equals(this.getCommand()) == false) return false; if (other.getTimeout() == null ^ this.getTimeout() == null) return false; if (other.getTimeout() != null && other.getTimeout().equals(this.getTimeout()) == false) return false; if (other.getIdleTimeout() == null ^ this.getIdleTimeout() == null) return false; if (other.getIdleTimeout() != null && other.getIdleTimeout().equals(this.getIdleTimeout()) == false) return false; if (other.getDefaultArguments() == null ^ this.getDefaultArguments() == null) return false; if (other.getDefaultArguments() != null && other.getDefaultArguments().equals(this.getDefaultArguments()) == false) return false; if (other.getConnections() == null ^ this.getConnections() == null) return false; if (other.getConnections() != null && other.getConnections().equals(this.getConnections()) == false) return false; if (other.getMaxCapacity() == null ^ this.getMaxCapacity() == null) return false; if (other.getMaxCapacity() != null && other.getMaxCapacity().equals(this.getMaxCapacity()) == false) return false; if (other.getNumberOfWorkers() == null ^ this.getNumberOfWorkers() == null) return false; if (other.getNumberOfWorkers() != null && other.getNumberOfWorkers().equals(this.getNumberOfWorkers()) == false) return false; if (other.getWorkerType() == null ^ this.getWorkerType() == null) return false; if (other.getWorkerType() != null && other.getWorkerType().equals(this.getWorkerType()) == false) return false; if (other.getSecurityConfiguration() == null ^ this.getSecurityConfiguration() == null) return false; if (other.getSecurityConfiguration() != null && other.getSecurityConfiguration().equals(this.getSecurityConfiguration()) == false) return false; if (other.getGlueVersion() == null ^ this.getGlueVersion() == null) return false; if (other.getGlueVersion() != null && other.getGlueVersion().equals(this.getGlueVersion()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getRequestOrigin() == null ^ this.getRequestOrigin() == null) return false; if (other.getRequestOrigin() != null && other.getRequestOrigin().equals(this.getRequestOrigin()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getRole() == null) ? 0 : getRole().hashCode()); hashCode = prime * hashCode + ((getCommand() == null) ? 0 : getCommand().hashCode()); hashCode = prime * hashCode + ((getTimeout() == null) ? 0 : getTimeout().hashCode()); hashCode = prime * hashCode + ((getIdleTimeout() == null) ? 0 : getIdleTimeout().hashCode()); hashCode = prime * hashCode + ((getDefaultArguments() == null) ? 0 : getDefaultArguments().hashCode()); hashCode = prime * hashCode + ((getConnections() == null) ? 0 : getConnections().hashCode()); hashCode = prime * hashCode + ((getMaxCapacity() == null) ? 0 : getMaxCapacity().hashCode()); hashCode = prime * hashCode + ((getNumberOfWorkers() == null) ? 0 : getNumberOfWorkers().hashCode()); hashCode = prime * hashCode + ((getWorkerType() == null) ? 0 : getWorkerType().hashCode()); hashCode = prime * hashCode + ((getSecurityConfiguration() == null) ? 0 : getSecurityConfiguration().hashCode()); hashCode = prime * hashCode + ((getGlueVersion() == null) ? 0 : getGlueVersion().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getRequestOrigin() == null) ? 0 : getRequestOrigin().hashCode()); return hashCode; } @Override public CreateSessionRequest clone() { return (CreateSessionRequest) super.clone(); } }