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