pub struct DeleteImageFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DeleteImage
.
Deletes an Image Builder image resource. This does not delete any EC2 AMIs or ECR container images that are created during the image build process. You must clean those up separately, using the appropriate Amazon EC2 or Amazon ECR console actions, or API or CLI commands.
-
To deregister an EC2 Linux AMI, see Deregister your Linux AMI in the Amazon EC2 User Guide .
-
To deregister an EC2 Windows AMI, see Deregister your Windows AMI in the Amazon EC2 Windows Guide .
-
To delete a container image from Amazon ECR, see Deleting an image in the Amazon ECR User Guide.
Implementations§
source§impl DeleteImageFluentBuilder
impl DeleteImageFluentBuilder
sourcepub fn as_input(&self) -> &DeleteImageInputBuilder
pub fn as_input(&self) -> &DeleteImageInputBuilder
Access the DeleteImage as a reference.
sourcepub async fn send(
self
) -> Result<DeleteImageOutput, SdkError<DeleteImageError, HttpResponse>>
pub async fn send( self ) -> Result<DeleteImageOutput, SdkError<DeleteImageError, 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<DeleteImageOutput, DeleteImageError, Self>
pub fn customize( self ) -> CustomizableOperation<DeleteImageOutput, DeleteImageError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn image_build_version_arn(self, input: impl Into<String>) -> Self
pub fn image_build_version_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the Image Builder image resource to delete.
sourcepub fn set_image_build_version_arn(self, input: Option<String>) -> Self
pub fn set_image_build_version_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the Image Builder image resource to delete.
sourcepub fn get_image_build_version_arn(&self) -> &Option<String>
pub fn get_image_build_version_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the Image Builder image resource to delete.
Trait Implementations§
source§impl Clone for DeleteImageFluentBuilder
impl Clone for DeleteImageFluentBuilder
source§fn clone(&self) -> DeleteImageFluentBuilder
fn clone(&self) -> DeleteImageFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more