pub struct BatchDeleteImageFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to BatchDeleteImage
.
Deletes a list of specified images within a repository. Images are specified with either an imageTag
or imageDigest
.
You can remove a tag from an image by specifying the image's tag in your request. When you remove the last tag from an image, the image is deleted from your repository.
You can completely delete an image (and all of its tags) by specifying the image's digest in your request.
Implementations§
source§impl BatchDeleteImageFluentBuilder
impl BatchDeleteImageFluentBuilder
sourcepub fn as_input(&self) -> &BatchDeleteImageInputBuilder
pub fn as_input(&self) -> &BatchDeleteImageInputBuilder
Access the BatchDeleteImage as a reference.
sourcepub async fn send(
self
) -> Result<BatchDeleteImageOutput, SdkError<BatchDeleteImageError, HttpResponse>>
pub async fn send( self ) -> Result<BatchDeleteImageOutput, SdkError<BatchDeleteImageError, 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<BatchDeleteImageOutput, BatchDeleteImageError, Self>
pub fn customize( self ) -> CustomizableOperation<BatchDeleteImageOutput, BatchDeleteImageError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn registry_id(self, input: impl Into<String>) -> Self
pub fn registry_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID associated with the registry that contains the image to delete. If you do not specify a registry, the default registry is assumed.
sourcepub fn set_registry_id(self, input: Option<String>) -> Self
pub fn set_registry_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID associated with the registry that contains the image to delete. If you do not specify a registry, the default registry is assumed.
sourcepub fn get_registry_id(&self) -> &Option<String>
pub fn get_registry_id(&self) -> &Option<String>
The Amazon Web Services account ID associated with the registry that contains the image to delete. If you do not specify a registry, the default registry is assumed.
sourcepub fn repository_name(self, input: impl Into<String>) -> Self
pub fn repository_name(self, input: impl Into<String>) -> Self
The repository that contains the image to delete.
sourcepub fn set_repository_name(self, input: Option<String>) -> Self
pub fn set_repository_name(self, input: Option<String>) -> Self
The repository that contains the image to delete.
sourcepub fn get_repository_name(&self) -> &Option<String>
pub fn get_repository_name(&self) -> &Option<String>
The repository that contains the image to delete.
sourcepub fn image_ids(self, input: ImageIdentifier) -> Self
pub fn image_ids(self, input: ImageIdentifier) -> Self
Appends an item to imageIds
.
To override the contents of this collection use set_image_ids
.
A list of image ID references that correspond to images to delete. The format of the imageIds
reference is imageTag=tag
or imageDigest=digest
.
sourcepub fn set_image_ids(self, input: Option<Vec<ImageIdentifier>>) -> Self
pub fn set_image_ids(self, input: Option<Vec<ImageIdentifier>>) -> Self
A list of image ID references that correspond to images to delete. The format of the imageIds
reference is imageTag=tag
or imageDigest=digest
.
sourcepub fn get_image_ids(&self) -> &Option<Vec<ImageIdentifier>>
pub fn get_image_ids(&self) -> &Option<Vec<ImageIdentifier>>
A list of image ID references that correspond to images to delete. The format of the imageIds
reference is imageTag=tag
or imageDigest=digest
.
Trait Implementations§
source§impl Clone for BatchDeleteImageFluentBuilder
impl Clone for BatchDeleteImageFluentBuilder
source§fn clone(&self) -> BatchDeleteImageFluentBuilder
fn clone(&self) -> BatchDeleteImageFluentBuilder
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 BatchDeleteImageFluentBuilder
impl !RefUnwindSafe for BatchDeleteImageFluentBuilder
impl Send for BatchDeleteImageFluentBuilder
impl Sync for BatchDeleteImageFluentBuilder
impl Unpin for BatchDeleteImageFluentBuilder
impl !UnwindSafe for BatchDeleteImageFluentBuilder
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> 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