aws_sdk_lightsail/client/
delete_container_image.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`DeleteContainerImage`](crate::operation::delete_container_image::builders::DeleteContainerImageFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`service_name(impl Into<String>)`](crate::operation::delete_container_image::builders::DeleteContainerImageFluentBuilder::service_name) / [`set_service_name(Option<String>)`](crate::operation::delete_container_image::builders::DeleteContainerImageFluentBuilder::set_service_name):<br>required: **true**<br><p>The name of the container service for which to delete a registered container image.</p><br>
7    ///   - [`image(impl Into<String>)`](crate::operation::delete_container_image::builders::DeleteContainerImageFluentBuilder::image) / [`set_image(Option<String>)`](crate::operation::delete_container_image::builders::DeleteContainerImageFluentBuilder::set_image):<br>required: **true**<br><p>The name of the container image to delete from the container service.</p> <p>Use the <code>GetContainerImages</code> action to get the name of the container images that are registered to a container service.</p><note>  <p>Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (<code>:</code>). For example, <code>:container-service-1.mystaticwebsite.1</code>. Container images sourced from a public registry like Docker Hub don't start with a colon. For example, <code>nginx:latest</code> or <code>nginx</code>.</p> </note><br>
8    /// - On success, responds with [`DeleteContainerImageOutput`](crate::operation::delete_container_image::DeleteContainerImageOutput)
9    /// - On failure, responds with [`SdkError<DeleteContainerImageError>`](crate::operation::delete_container_image::DeleteContainerImageError)
10    pub fn delete_container_image(&self) -> crate::operation::delete_container_image::builders::DeleteContainerImageFluentBuilder {
11        crate::operation::delete_container_image::builders::DeleteContainerImageFluentBuilder::new(self.handle.clone())
12    }
13}