Struct aws_sdk_ecs::operation::delete_task_definitions::builders::DeleteTaskDefinitionsFluentBuilder
source · pub struct DeleteTaskDefinitionsFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to DeleteTaskDefinitions.
Deletes one or more task definitions.
You must deregister a task definition revision before you delete it. For more information, see DeregisterTaskDefinition.
When you delete a task definition revision, it is immediately transitions from the INACTIVE to DELETE_IN_PROGRESS. Existing tasks and services that reference a DELETE_IN_PROGRESS task definition revision continue to run without disruption. Existing services that reference a DELETE_IN_PROGRESS task definition revision can still scale up or down by modifying the service's desired count.
You can't use a DELETE_IN_PROGRESS task definition revision to run new tasks or create new services. You also can't update an existing service to reference a DELETE_IN_PROGRESS task definition revision.
A task definition revision will stay in DELETE_IN_PROGRESS status until all the associated tasks and services have been terminated.
Implementations§
source§impl DeleteTaskDefinitionsFluentBuilder
impl DeleteTaskDefinitionsFluentBuilder
sourcepub async fn send(
self
) -> Result<DeleteTaskDefinitionsOutput, SdkError<DeleteTaskDefinitionsError>>
pub async fn send( self ) -> Result<DeleteTaskDefinitionsOutput, SdkError<DeleteTaskDefinitionsError>>
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<DeleteTaskDefinitions, AwsResponseRetryClassifier>, SdkError<DeleteTaskDefinitionsError>>
pub async fn customize( self ) -> Result<CustomizableOperation<DeleteTaskDefinitions, AwsResponseRetryClassifier>, SdkError<DeleteTaskDefinitionsError>>
Consumes 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 fn task_definitions(self, input: impl Into<String>) -> Self
pub fn task_definitions(self, input: impl Into<String>) -> Self
Appends an item to taskDefinitions.
To override the contents of this collection use set_task_definitions.
The family and revision (family:revision) or full Amazon Resource Name (ARN) of the task definition to delete. You must specify a revision.
You can specify up to 10 task definitions as a comma separated list.
sourcepub fn set_task_definitions(self, input: Option<Vec<String>>) -> Self
pub fn set_task_definitions(self, input: Option<Vec<String>>) -> Self
The family and revision (family:revision) or full Amazon Resource Name (ARN) of the task definition to delete. You must specify a revision.
You can specify up to 10 task definitions as a comma separated list.
Trait Implementations§
source§impl Clone for DeleteTaskDefinitionsFluentBuilder
impl Clone for DeleteTaskDefinitionsFluentBuilder
source§fn clone(&self) -> DeleteTaskDefinitionsFluentBuilder
fn clone(&self) -> DeleteTaskDefinitionsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more