pub struct DeleteComputeEnvironment { /* 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 DeleteComputeEnvironment
impl DeleteComputeEnvironment
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<DeleteComputeEnvironment, AwsResponseRetryClassifier>, SdkError<DeleteComputeEnvironmentError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<DeleteComputeEnvironment, AwsResponseRetryClassifier>, SdkError<DeleteComputeEnvironmentError>>
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<DeleteComputeEnvironmentOutput, SdkError<DeleteComputeEnvironmentError>>
pub async fn send(
self
) -> Result<DeleteComputeEnvironmentOutput, SdkError<DeleteComputeEnvironmentError>>
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 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.
Trait Implementations§
source§impl Clone for DeleteComputeEnvironment
impl Clone for DeleteComputeEnvironment
source§fn clone(&self) -> DeleteComputeEnvironment
fn clone(&self) -> DeleteComputeEnvironment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more