pub struct CreateDevEndpointFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateDevEndpoint
.
Creates a new development endpoint.
Implementations§
Source§impl CreateDevEndpointFluentBuilder
impl CreateDevEndpointFluentBuilder
Sourcepub fn as_input(&self) -> &CreateDevEndpointInputBuilder
pub fn as_input(&self) -> &CreateDevEndpointInputBuilder
Access the CreateDevEndpoint as a reference.
Sourcepub async fn send(
self,
) -> Result<CreateDevEndpointOutput, SdkError<CreateDevEndpointError, HttpResponse>>
pub async fn send( self, ) -> Result<CreateDevEndpointOutput, SdkError<CreateDevEndpointError, HttpResponse>>
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 customize(
self,
) -> CustomizableOperation<CreateDevEndpointOutput, CreateDevEndpointError, Self>
pub fn customize( self, ) -> CustomizableOperation<CreateDevEndpointOutput, CreateDevEndpointError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
Sourcepub fn endpoint_name(self, input: impl Into<String>) -> Self
pub fn endpoint_name(self, input: impl Into<String>) -> Self
The name to be assigned to the new DevEndpoint
.
Sourcepub fn set_endpoint_name(self, input: Option<String>) -> Self
pub fn set_endpoint_name(self, input: Option<String>) -> Self
The name to be assigned to the new DevEndpoint
.
Sourcepub fn get_endpoint_name(&self) -> &Option<String>
pub fn get_endpoint_name(&self) -> &Option<String>
The name to be assigned to the new DevEndpoint
.
Sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The IAM role for the DevEndpoint
.
Sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
The IAM role for the DevEndpoint
.
Sourcepub fn security_group_ids(self, input: impl Into<String>) -> Self
pub fn security_group_ids(self, input: impl Into<String>) -> Self
Appends an item to SecurityGroupIds
.
To override the contents of this collection use set_security_group_ids
.
Security group IDs for the security groups to be used by the new DevEndpoint
.
Sourcepub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
Security group IDs for the security groups to be used by the new DevEndpoint
.
Sourcepub fn get_security_group_ids(&self) -> &Option<Vec<String>>
pub fn get_security_group_ids(&self) -> &Option<Vec<String>>
Security group IDs for the security groups to be used by the new DevEndpoint
.
Sourcepub fn subnet_id(self, input: impl Into<String>) -> Self
pub fn subnet_id(self, input: impl Into<String>) -> Self
The subnet ID for the new DevEndpoint
to use.
Sourcepub fn set_subnet_id(self, input: Option<String>) -> Self
pub fn set_subnet_id(self, input: Option<String>) -> Self
The subnet ID for the new DevEndpoint
to use.
Sourcepub fn get_subnet_id(&self) -> &Option<String>
pub fn get_subnet_id(&self) -> &Option<String>
The subnet ID for the new DevEndpoint
to use.
Sourcepub fn public_key(self, input: impl Into<String>) -> Self
pub fn public_key(self, input: impl Into<String>) -> Self
The public key to be used by this DevEndpoint
for authentication. This attribute is provided for backward compatibility because the recommended attribute to use is public keys.
Sourcepub fn set_public_key(self, input: Option<String>) -> Self
pub fn set_public_key(self, input: Option<String>) -> Self
The public key to be used by this DevEndpoint
for authentication. This attribute is provided for backward compatibility because the recommended attribute to use is public keys.
Sourcepub fn get_public_key(&self) -> &Option<String>
pub fn get_public_key(&self) -> &Option<String>
The public key to be used by this DevEndpoint
for authentication. This attribute is provided for backward compatibility because the recommended attribute to use is public keys.
Sourcepub fn public_keys(self, input: impl Into<String>) -> Self
pub fn public_keys(self, input: impl Into<String>) -> Self
Appends an item to PublicKeys
.
To override the contents of this collection use set_public_keys
.
A list of public keys to be used by the development endpoints for authentication. The use of this attribute is preferred over a single public key because the public keys allow you to have a different private key per client.
If you previously created an endpoint with a public key, you must remove that key to be able to set a list of public keys. Call the UpdateDevEndpoint
API with the public key content in the deletePublicKeys
attribute, and the list of new keys in the addPublicKeys
attribute.
Sourcepub fn set_public_keys(self, input: Option<Vec<String>>) -> Self
pub fn set_public_keys(self, input: Option<Vec<String>>) -> Self
A list of public keys to be used by the development endpoints for authentication. The use of this attribute is preferred over a single public key because the public keys allow you to have a different private key per client.
If you previously created an endpoint with a public key, you must remove that key to be able to set a list of public keys. Call the UpdateDevEndpoint
API with the public key content in the deletePublicKeys
attribute, and the list of new keys in the addPublicKeys
attribute.
Sourcepub fn get_public_keys(&self) -> &Option<Vec<String>>
pub fn get_public_keys(&self) -> &Option<Vec<String>>
A list of public keys to be used by the development endpoints for authentication. The use of this attribute is preferred over a single public key because the public keys allow you to have a different private key per client.
If you previously created an endpoint with a public key, you must remove that key to be able to set a list of public keys. Call the UpdateDevEndpoint
API with the public key content in the deletePublicKeys
attribute, and the list of new keys in the addPublicKeys
attribute.
Sourcepub fn number_of_nodes(self, input: i32) -> Self
pub fn number_of_nodes(self, input: i32) -> Self
The number of Glue Data Processing Units (DPUs) to allocate to this DevEndpoint
.
Sourcepub fn set_number_of_nodes(self, input: Option<i32>) -> Self
pub fn set_number_of_nodes(self, input: Option<i32>) -> Self
The number of Glue Data Processing Units (DPUs) to allocate to this DevEndpoint
.
Sourcepub fn get_number_of_nodes(&self) -> &Option<i32>
pub fn get_number_of_nodes(&self) -> &Option<i32>
The number of Glue Data Processing Units (DPUs) to allocate to this DevEndpoint
.
Sourcepub fn worker_type(self, input: WorkerType) -> Self
pub fn worker_type(self, input: WorkerType) -> Self
The type of predefined worker that is allocated to the development endpoint. Accepts a value of Standard, G.1X, or G.2X.
-
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.
Known issue: when a development endpoint is created with the G.2X
WorkerType
configuration, the Spark drivers for the development endpoint will run on 4 vCPU, 16 GB of memory, and a 64 GB disk.
Sourcepub fn set_worker_type(self, input: Option<WorkerType>) -> Self
pub fn set_worker_type(self, input: Option<WorkerType>) -> Self
The type of predefined worker that is allocated to the development endpoint. Accepts a value of Standard, G.1X, or G.2X.
-
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.
Known issue: when a development endpoint is created with the G.2X
WorkerType
configuration, the Spark drivers for the development endpoint will run on 4 vCPU, 16 GB of memory, and a 64 GB disk.
Sourcepub fn get_worker_type(&self) -> &Option<WorkerType>
pub fn get_worker_type(&self) -> &Option<WorkerType>
The type of predefined worker that is allocated to the development endpoint. Accepts a value of Standard, G.1X, or G.2X.
-
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.
Known issue: when a development endpoint is created with the G.2X
WorkerType
configuration, the Spark drivers for the development endpoint will run on 4 vCPU, 16 GB of memory, and a 64 GB disk.
Sourcepub fn glue_version(self, input: impl Into<String>) -> Self
pub fn glue_version(self, input: impl Into<String>) -> Self
Glue version determines the versions of Apache Spark and Python that Glue supports. The Python version indicates the version supported for running your ETL scripts on development endpoints.
For more information about the available Glue versions and corresponding Spark and Python versions, see Glue version in the developer guide.
Development endpoints that are created without specifying a Glue version default to Glue 0.9.
You can specify a version of Python support for development endpoints by using the Arguments
parameter in the CreateDevEndpoint
or UpdateDevEndpoint
APIs. If no arguments are provided, the version defaults to Python 2.
Sourcepub fn set_glue_version(self, input: Option<String>) -> Self
pub fn set_glue_version(self, input: Option<String>) -> Self
Glue version determines the versions of Apache Spark and Python that Glue supports. The Python version indicates the version supported for running your ETL scripts on development endpoints.
For more information about the available Glue versions and corresponding Spark and Python versions, see Glue version in the developer guide.
Development endpoints that are created without specifying a Glue version default to Glue 0.9.
You can specify a version of Python support for development endpoints by using the Arguments
parameter in the CreateDevEndpoint
or UpdateDevEndpoint
APIs. If no arguments are provided, the version defaults to Python 2.
Sourcepub fn get_glue_version(&self) -> &Option<String>
pub fn get_glue_version(&self) -> &Option<String>
Glue version determines the versions of Apache Spark and Python that Glue supports. The Python version indicates the version supported for running your ETL scripts on development endpoints.
For more information about the available Glue versions and corresponding Spark and Python versions, see Glue version in the developer guide.
Development endpoints that are created without specifying a Glue version default to Glue 0.9.
You can specify a version of Python support for development endpoints by using the Arguments
parameter in the CreateDevEndpoint
or UpdateDevEndpoint
APIs. If no arguments are provided, the version defaults to Python 2.
Sourcepub fn number_of_workers(self, input: i32) -> Self
pub fn number_of_workers(self, input: i32) -> Self
The number of workers of a defined workerType
that are allocated to the development endpoint.
The maximum number of workers you can define are 299 for G.1X
, and 149 for G.2X
.
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 of a defined workerType
that are allocated to the development endpoint.
The maximum number of workers you can define are 299 for G.1X
, and 149 for G.2X
.
Sourcepub fn get_number_of_workers(&self) -> &Option<i32>
pub fn get_number_of_workers(&self) -> &Option<i32>
The number of workers of a defined workerType
that are allocated to the development endpoint.
The maximum number of workers you can define are 299 for G.1X
, and 149 for G.2X
.
Sourcepub fn extra_python_libs_s3_path(self, input: impl Into<String>) -> Self
pub fn extra_python_libs_s3_path(self, input: impl Into<String>) -> Self
The paths to one or more Python libraries in an Amazon S3 bucket that should be loaded in your DevEndpoint
. Multiple values must be complete paths separated by a comma.
You can only use pure Python libraries with a DevEndpoint
. Libraries that rely on C extensions, such as the pandas Python data analysis library, are not yet supported.
Sourcepub fn set_extra_python_libs_s3_path(self, input: Option<String>) -> Self
pub fn set_extra_python_libs_s3_path(self, input: Option<String>) -> Self
The paths to one or more Python libraries in an Amazon S3 bucket that should be loaded in your DevEndpoint
. Multiple values must be complete paths separated by a comma.
You can only use pure Python libraries with a DevEndpoint
. Libraries that rely on C extensions, such as the pandas Python data analysis library, are not yet supported.
Sourcepub fn get_extra_python_libs_s3_path(&self) -> &Option<String>
pub fn get_extra_python_libs_s3_path(&self) -> &Option<String>
The paths to one or more Python libraries in an Amazon S3 bucket that should be loaded in your DevEndpoint
. Multiple values must be complete paths separated by a comma.
You can only use pure Python libraries with a DevEndpoint
. Libraries that rely on C extensions, such as the pandas Python data analysis library, are not yet supported.
Sourcepub fn extra_jars_s3_path(self, input: impl Into<String>) -> Self
pub fn extra_jars_s3_path(self, input: impl Into<String>) -> Self
The path to one or more Java .jar
files in an S3 bucket that should be loaded in your DevEndpoint
.
Sourcepub fn set_extra_jars_s3_path(self, input: Option<String>) -> Self
pub fn set_extra_jars_s3_path(self, input: Option<String>) -> Self
The path to one or more Java .jar
files in an S3 bucket that should be loaded in your DevEndpoint
.
Sourcepub fn get_extra_jars_s3_path(&self) -> &Option<String>
pub fn get_extra_jars_s3_path(&self) -> &Option<String>
The path to one or more Java .jar
files in an S3 bucket that should be loaded in your DevEndpoint
.
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 this DevEndpoint
.
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 this DevEndpoint
.
Sourcepub fn get_security_configuration(&self) -> &Option<String>
pub fn get_security_configuration(&self) -> &Option<String>
The name of the SecurityConfiguration
structure to be used with this DevEndpoint
.
Adds a key-value pair to Tags
.
To override the contents of this collection use set_tags
.
The tags to use with this DevEndpoint. You may use tags to limit access to the DevEndpoint. For more information about tags in Glue, see Amazon Web Services Tags in Glue in the developer guide.
The tags to use with this DevEndpoint. You may use tags to limit access to the DevEndpoint. For more information about tags in Glue, see Amazon Web Services Tags in Glue in the developer guide.
The tags to use with this DevEndpoint. You may use tags to limit access to the DevEndpoint. For more information about tags in Glue, see Amazon Web Services Tags in Glue in the developer guide.
Sourcepub fn arguments(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn arguments(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to Arguments
.
To override the contents of this collection use set_arguments
.
A map of arguments used to configure the DevEndpoint
.
Trait Implementations§
Source§impl Clone for CreateDevEndpointFluentBuilder
impl Clone for CreateDevEndpointFluentBuilder
Source§fn clone(&self) -> CreateDevEndpointFluentBuilder
fn clone(&self) -> CreateDevEndpointFluentBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateDevEndpointFluentBuilder
impl !RefUnwindSafe for CreateDevEndpointFluentBuilder
impl Send for CreateDevEndpointFluentBuilder
impl Sync for CreateDevEndpointFluentBuilder
impl Unpin for CreateDevEndpointFluentBuilder
impl !UnwindSafe for CreateDevEndpointFluentBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);