Struct aws_sdk_glue::client::fluent_builders::CreateSession
source · [−]pub struct CreateSession { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateSession
.
Creates a new session.
Implementations
sourceimpl CreateSession
impl CreateSession
sourcepub async fn send(
self
) -> Result<CreateSessionOutput, SdkError<CreateSessionError>>
pub async fn send(
self
) -> Result<CreateSessionOutput, SdkError<CreateSessionError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the session.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the session.
sourcepub fn command(self, input: SessionCommand) -> Self
pub fn command(self, input: SessionCommand) -> Self
The SessionCommand
that runs the job.
sourcepub fn set_command(self, input: Option<SessionCommand>) -> Self
pub fn set_command(self, input: Option<SessionCommand>) -> Self
The SessionCommand
that runs the job.
sourcepub fn set_timeout(self, input: Option<i32>) -> Self
pub fn set_timeout(self, input: Option<i32>) -> Self
The number of seconds before request times out.
sourcepub fn idle_timeout(self, input: i32) -> Self
pub fn idle_timeout(self, input: i32) -> Self
The number of seconds when idle before request times out.
sourcepub fn set_idle_timeout(self, input: Option<i32>) -> Self
pub fn set_idle_timeout(self, input: Option<i32>) -> Self
The number of seconds when idle before request times out.
sourcepub fn default_arguments(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn default_arguments(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
Adds a key-value pair to DefaultArguments
.
To override the contents of this collection use set_default_arguments
.
A map array of key-value pairs. Max is 75 pairs.
sourcepub fn set_default_arguments(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_default_arguments(
self,
input: Option<HashMap<String, String>>
) -> Self
A map array of key-value pairs. Max is 75 pairs.
sourcepub fn connections(self, input: ConnectionsList) -> Self
pub fn connections(self, input: ConnectionsList) -> Self
The number of connections to use for the session.
sourcepub fn set_connections(self, input: Option<ConnectionsList>) -> Self
pub fn set_connections(self, input: Option<ConnectionsList>) -> Self
The number of connections to use for the session.
sourcepub fn max_capacity(self, input: f64) -> Self
pub fn max_capacity(self, input: f64) -> Self
The number of AWS 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 set_max_capacity(self, input: Option<f64>) -> Self
pub fn set_max_capacity(self, input: Option<f64>) -> Self
The number of AWS 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, input: i32) -> Self
pub fn number_of_workers(self, input: i32) -> Self
The number of workers to use for the session.
sourcepub fn set_number_of_workers(self, input: Option<i32>) -> Self
pub fn set_number_of_workers(self, input: Option<i32>) -> Self
The number of workers to use for the session.
sourcepub fn worker_type(self, input: WorkerType) -> Self
pub fn worker_type(self, input: WorkerType) -> Self
The Worker Type. Can be one of G.1X, G.2X, Standard
sourcepub fn set_worker_type(self, input: Option<WorkerType>) -> Self
pub fn set_worker_type(self, input: Option<WorkerType>) -> Self
The Worker Type. Can be one of G.1X, G.2X, Standard
sourcepub fn security_configuration(self, input: impl Into<String>) -> Self
pub fn security_configuration(self, input: impl Into<String>) -> Self
The name of the SecurityConfiguration structure to be used with the session
sourcepub fn set_security_configuration(self, input: Option<String>) -> Self
pub fn set_security_configuration(self, input: Option<String>) -> Self
The name of the SecurityConfiguration structure to be used with the session
sourcepub fn glue_version(self, input: impl Into<String>) -> Self
pub fn glue_version(self, input: impl Into<String>) -> Self
The Glue version determines the versions of Apache Spark and Python that AWS Glue supports. The GlueVersion must be greater than 2.0.
sourcepub fn set_glue_version(self, input: Option<String>) -> Self
pub fn set_glue_version(self, input: Option<String>) -> Self
The Glue version determines the versions of Apache Spark and Python that AWS Glue supports. The GlueVersion must be greater than 2.0.
Adds a key-value pair to Tags
.
To override the contents of this collection use set_tags
.
The map of key value pairs (tags) belonging to the session.
The map of key value pairs (tags) belonging to the session.
sourcepub fn request_origin(self, input: impl Into<String>) -> Self
pub fn request_origin(self, input: impl Into<String>) -> Self
The origin of the request.
sourcepub fn set_request_origin(self, input: Option<String>) -> Self
pub fn set_request_origin(self, input: Option<String>) -> Self
The origin of the request.
Trait Implementations
sourceimpl Clone for CreateSession
impl Clone for CreateSession
sourcefn clone(&self) -> CreateSession
fn clone(&self) -> CreateSession
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for CreateSession
impl Send for CreateSession
impl Sync for CreateSession
impl Unpin for CreateSession
impl !UnwindSafe for CreateSession
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more