Struct aws_sdk_sagemaker::client::fluent_builders::DeleteWorkforce
source · pub struct DeleteWorkforce { /* 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 to create a new workforce.
If a private workforce contains one or more work teams, you must use the 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 DeleteWorkforce
impl DeleteWorkforce
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<DeleteWorkforce, AwsResponseRetryClassifier>, SdkError<DeleteWorkforceError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<DeleteWorkforce, AwsResponseRetryClassifier>, SdkError<DeleteWorkforceError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<DeleteWorkforceOutput, SdkError<DeleteWorkforceError>>
pub async fn send(
self
) -> Result<DeleteWorkforceOutput, SdkError<DeleteWorkforceError>>
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 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.
Trait Implementations§
source§impl Clone for DeleteWorkforce
impl Clone for DeleteWorkforce
source§fn clone(&self) -> DeleteWorkforce
fn clone(&self) -> DeleteWorkforce
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more