Struct aws_sdk_batch::operation::delete_compute_environment::builders::DeleteComputeEnvironmentFluentBuilder
source · pub struct DeleteComputeEnvironmentFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DeleteComputeEnvironment
.
Deletes an Batch compute environment.
Before you can delete a compute environment, you must set its state to DISABLED
with the UpdateComputeEnvironment
API operation and disassociate it from any job queues with the UpdateJobQueue
API operation. Compute environments that use Fargate resources must terminate all active jobs on that compute environment before deleting the compute environment. If this isn't done, the compute environment enters an invalid state.
Implementations§
source§impl DeleteComputeEnvironmentFluentBuilder
impl DeleteComputeEnvironmentFluentBuilder
sourcepub fn as_input(&self) -> &DeleteComputeEnvironmentInputBuilder
pub fn as_input(&self) -> &DeleteComputeEnvironmentInputBuilder
Access the DeleteComputeEnvironment as a reference.
sourcepub async fn send(
self
) -> Result<DeleteComputeEnvironmentOutput, SdkError<DeleteComputeEnvironmentError, HttpResponse>>
pub async fn send( self ) -> Result<DeleteComputeEnvironmentOutput, SdkError<DeleteComputeEnvironmentError, 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<DeleteComputeEnvironmentOutput, DeleteComputeEnvironmentError>, SdkError<DeleteComputeEnvironmentError>>
pub async fn customize( self ) -> Result<CustomizableOperation<DeleteComputeEnvironmentOutput, DeleteComputeEnvironmentError>, SdkError<DeleteComputeEnvironmentError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn compute_environment(self, input: impl Into<String>) -> Self
pub fn compute_environment(self, input: impl Into<String>) -> Self
The name or Amazon Resource Name (ARN) of the compute environment to delete.
sourcepub fn set_compute_environment(self, input: Option<String>) -> Self
pub fn set_compute_environment(self, input: Option<String>) -> Self
The name or Amazon Resource Name (ARN) of the compute environment to delete.
sourcepub fn get_compute_environment(&self) -> &Option<String>
pub fn get_compute_environment(&self) -> &Option<String>
The name or Amazon Resource Name (ARN) of the compute environment to delete.
Trait Implementations§
source§impl Clone for DeleteComputeEnvironmentFluentBuilder
impl Clone for DeleteComputeEnvironmentFluentBuilder
source§fn clone(&self) -> DeleteComputeEnvironmentFluentBuilder
fn clone(&self) -> DeleteComputeEnvironmentFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more