Struct aws_sdk_sagemaker::operation::delete_workforce::builders::DeleteWorkforceFluentBuilder
source · pub struct DeleteWorkforceFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DeleteWorkforce
.
Use this operation to delete a workforce.
If you want to create a new workforce in an Amazon Web Services Region where a workforce already exists, use this operation to delete the existing workforce and then use CreateWorkforce to create a new workforce.
If a private workforce contains one or more work teams, you must use the DeleteWorkteam operation to delete all work teams before you delete the workforce. If you try to delete a workforce that contains one or more work teams, you will recieve a ResourceInUse
error.
Implementations§
source§impl DeleteWorkforceFluentBuilder
impl DeleteWorkforceFluentBuilder
sourcepub fn as_input(&self) -> &DeleteWorkforceInputBuilder
pub fn as_input(&self) -> &DeleteWorkforceInputBuilder
Access the DeleteWorkforce as a reference.
sourcepub async fn send(
self
) -> Result<DeleteWorkforceOutput, SdkError<DeleteWorkforceError, HttpResponse>>
pub async fn send( self ) -> Result<DeleteWorkforceOutput, SdkError<DeleteWorkforceError, 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 async fn customize(
self
) -> Result<CustomizableOperation<DeleteWorkforceOutput, DeleteWorkforceError>, SdkError<DeleteWorkforceError>>
pub async fn customize( self ) -> Result<CustomizableOperation<DeleteWorkforceOutput, DeleteWorkforceError>, SdkError<DeleteWorkforceError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn workforce_name(self, input: impl Into<String>) -> Self
pub fn workforce_name(self, input: impl Into<String>) -> Self
The name of the workforce.
sourcepub fn set_workforce_name(self, input: Option<String>) -> Self
pub fn set_workforce_name(self, input: Option<String>) -> Self
The name of the workforce.
sourcepub fn get_workforce_name(&self) -> &Option<String>
pub fn get_workforce_name(&self) -> &Option<String>
The name of the workforce.
Trait Implementations§
source§impl Clone for DeleteWorkforceFluentBuilder
impl Clone for DeleteWorkforceFluentBuilder
source§fn clone(&self) -> DeleteWorkforceFluentBuilder
fn clone(&self) -> DeleteWorkforceFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more