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.
When you delete all INACTIVE
task definition revisions, the task definition name is not displayed in the console and not returned in the API. If a task definition revisions are in the DELETE_IN_PROGRESS
state, the task definition name is displayed in the console and returned in the API. The task definition name is retained by Amazon ECS and the revision is incremented the next time you create a task definition with that name.
Implementations§
source§impl DeleteTaskDefinitionsFluentBuilder
impl DeleteTaskDefinitionsFluentBuilder
sourcepub fn as_input(&self) -> &DeleteTaskDefinitionsInputBuilder
pub fn as_input(&self) -> &DeleteTaskDefinitionsInputBuilder
Access the DeleteTaskDefinitions as a reference.
sourcepub async fn send(
self
) -> Result<DeleteTaskDefinitionsOutput, SdkError<DeleteTaskDefinitionsError, HttpResponse>>
pub async fn send( self ) -> Result<DeleteTaskDefinitionsOutput, SdkError<DeleteTaskDefinitionsError, 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<DeleteTaskDefinitionsOutput, DeleteTaskDefinitionsError>, SdkError<DeleteTaskDefinitionsError>>
pub async fn customize( self ) -> Result<CustomizableOperation<DeleteTaskDefinitionsOutput, DeleteTaskDefinitionsError>, SdkError<DeleteTaskDefinitionsError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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.
sourcepub fn get_task_definitions(&self) -> &Option<Vec<String>>
pub fn get_task_definitions(&self) -> &Option<Vec<String>>
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