Struct aws_sdk_glue::input::CreateSessionInput
source · #[non_exhaustive]pub struct CreateSessionInput { /* private fields */ }Expand description
Request to create a new session.
Implementations§
source§impl CreateSessionInput
impl CreateSessionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateSession, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateSession, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateSession>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateSessionInput.
source§impl CreateSessionInput
impl CreateSessionInput
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the session.
sourcepub fn command(&self) -> Option<&SessionCommand>
pub fn command(&self) -> Option<&SessionCommand>
The SessionCommand that runs the job.
sourcepub fn idle_timeout(&self) -> Option<i32>
pub fn idle_timeout(&self) -> Option<i32>
The number of seconds when idle before request times out.
sourcepub fn default_arguments(&self) -> Option<&HashMap<String, String>>
pub fn default_arguments(&self) -> Option<&HashMap<String, String>>
A map array of key-value pairs. Max is 75 pairs.
sourcepub fn connections(&self) -> Option<&ConnectionsList>
pub fn connections(&self) -> Option<&ConnectionsList>
The number of connections to use for the session.
sourcepub fn max_capacity(&self) -> Option<f64>
pub fn max_capacity(&self) -> Option<f64>
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.
sourcepub fn number_of_workers(&self) -> Option<i32>
pub fn number_of_workers(&self) -> Option<i32>
The number of workers of a defined WorkerType to use for the session.
sourcepub fn worker_type(&self) -> Option<&WorkerType>
pub fn worker_type(&self) -> Option<&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
Standardworker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker. -
For the
G.1Xworker 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.2Xworker 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.025Xworker 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.
sourcepub fn security_configuration(&self) -> Option<&str>
pub fn security_configuration(&self) -> Option<&str>
The name of the SecurityConfiguration structure to be used with the session
sourcepub fn glue_version(&self) -> Option<&str>
pub fn glue_version(&self) -> Option<&str>
The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion must be greater than 2.0.
The map of key value pairs (tags) belonging to the session.
sourcepub fn request_origin(&self) -> Option<&str>
pub fn request_origin(&self) -> Option<&str>
The origin of the request.
Trait Implementations§
source§impl Clone for CreateSessionInput
impl Clone for CreateSessionInput
source§fn clone(&self) -> CreateSessionInput
fn clone(&self) -> CreateSessionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateSessionInput
impl Debug for CreateSessionInput
source§impl PartialEq<CreateSessionInput> for CreateSessionInput
impl PartialEq<CreateSessionInput> for CreateSessionInput
source§fn eq(&self, other: &CreateSessionInput) -> bool
fn eq(&self, other: &CreateSessionInput) -> bool
self and other values to be equal, and is used
by ==.