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 fn customize(
self,
) -> CustomizableOperation<DeleteTaskDefinitionsOutput, DeleteTaskDefinitionsError, Self>
pub fn customize( self, ) -> CustomizableOperation<DeleteTaskDefinitionsOutput, DeleteTaskDefinitionsError, Self>
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 moreAuto Trait Implementations§
impl Freeze for DeleteTaskDefinitionsFluentBuilder
impl !RefUnwindSafe for DeleteTaskDefinitionsFluentBuilder
impl Send for DeleteTaskDefinitionsFluentBuilder
impl Sync for DeleteTaskDefinitionsFluentBuilder
impl Unpin for DeleteTaskDefinitionsFluentBuilder
impl !UnwindSafe for DeleteTaskDefinitionsFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more