aws_sdk_ecr/client/
put_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 [`PutImage`](crate::operation::put_image::builders::PutImageFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`registry_id(impl Into<String>)`](crate::operation::put_image::builders::PutImageFluentBuilder::registry_id) / [`set_registry_id(Option<String>)`](crate::operation::put_image::builders::PutImageFluentBuilder::set_registry_id):<br>required: **false**<br><p>The Amazon Web Services account ID associated with the registry that contains the repository in which to put the image. If you do not specify a registry, the default registry is assumed.</p><br>
7    ///   - [`repository_name(impl Into<String>)`](crate::operation::put_image::builders::PutImageFluentBuilder::repository_name) / [`set_repository_name(Option<String>)`](crate::operation::put_image::builders::PutImageFluentBuilder::set_repository_name):<br>required: **true**<br><p>The name of the repository in which to put the image.</p><br>
8    ///   - [`image_manifest(impl Into<String>)`](crate::operation::put_image::builders::PutImageFluentBuilder::image_manifest) / [`set_image_manifest(Option<String>)`](crate::operation::put_image::builders::PutImageFluentBuilder::set_image_manifest):<br>required: **true**<br><p>The image manifest corresponding to the image to be uploaded.</p><br>
9    ///   - [`image_manifest_media_type(impl Into<String>)`](crate::operation::put_image::builders::PutImageFluentBuilder::image_manifest_media_type) / [`set_image_manifest_media_type(Option<String>)`](crate::operation::put_image::builders::PutImageFluentBuilder::set_image_manifest_media_type):<br>required: **false**<br><p>The media type of the image manifest. If you push an image manifest that does not contain the <code>mediaType</code> field, you must specify the <code>imageManifestMediaType</code> in the request.</p><br>
10    ///   - [`image_tag(impl Into<String>)`](crate::operation::put_image::builders::PutImageFluentBuilder::image_tag) / [`set_image_tag(Option<String>)`](crate::operation::put_image::builders::PutImageFluentBuilder::set_image_tag):<br>required: **false**<br><p>The tag to associate with the image. This parameter is required for images that use the Docker Image Manifest V2 Schema 2 or Open Container Initiative (OCI) formats.</p><br>
11    ///   - [`image_digest(impl Into<String>)`](crate::operation::put_image::builders::PutImageFluentBuilder::image_digest) / [`set_image_digest(Option<String>)`](crate::operation::put_image::builders::PutImageFluentBuilder::set_image_digest):<br>required: **false**<br><p>The image digest of the image manifest corresponding to the image.</p><br>
12    /// - On success, responds with [`PutImageOutput`](crate::operation::put_image::PutImageOutput) with field(s):
13    ///   - [`image(Option<Image>)`](crate::operation::put_image::PutImageOutput::image): <p>Details of the image uploaded.</p>
14    /// - On failure, responds with [`SdkError<PutImageError>`](crate::operation::put_image::PutImageError)
15    pub fn put_image(&self) -> crate::operation::put_image::builders::PutImageFluentBuilder {
16        crate::operation::put_image::builders::PutImageFluentBuilder::new(self.handle.clone())
17    }
18}