Struct aws_sdk_ecr::client::fluent_builders::PutImage
source · [−]pub struct PutImage { /* private fields */ }
Expand description
Fluent builder constructing a request to PutImage
.
Creates or updates the image manifest and tags associated with an image.
When an image is pushed and all new image layers have been uploaded, the PutImage API is called once to create or update the image manifest and the tags associated with the image.
This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the docker
CLI to pull, tag, and push images.
Implementations
sourceimpl PutImage
impl PutImage
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<PutImage, AwsResponseRetryClassifier>, SdkError<PutImageError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<PutImage, AwsResponseRetryClassifier>, SdkError<PutImageError>>
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<PutImageOutput, SdkError<PutImageError>>
pub async fn send(self) -> Result<PutImageOutput, SdkError<PutImageError>>
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 repository in which to put the image. 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 repository in which to put the image. 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 name of the repository in which to put the image.
sourcepub fn set_repository_name(self, input: Option<String>) -> Self
pub fn set_repository_name(self, input: Option<String>) -> Self
The name of the repository in which to put the image.
sourcepub fn image_manifest(self, input: impl Into<String>) -> Self
pub fn image_manifest(self, input: impl Into<String>) -> Self
The image manifest corresponding to the image to be uploaded.
sourcepub fn set_image_manifest(self, input: Option<String>) -> Self
pub fn set_image_manifest(self, input: Option<String>) -> Self
The image manifest corresponding to the image to be uploaded.
sourcepub fn image_manifest_media_type(self, input: impl Into<String>) -> Self
pub fn image_manifest_media_type(self, input: impl Into<String>) -> Self
The media type of the image manifest. If you push an image manifest that does not contain the mediaType
field, you must specify the imageManifestMediaType
in the request.
sourcepub fn set_image_manifest_media_type(self, input: Option<String>) -> Self
pub fn set_image_manifest_media_type(self, input: Option<String>) -> Self
The media type of the image manifest. If you push an image manifest that does not contain the mediaType
field, you must specify the imageManifestMediaType
in the request.
sourcepub fn image_tag(self, input: impl Into<String>) -> Self
pub fn image_tag(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_image_tag(self, input: Option<String>) -> Self
pub fn set_image_tag(self, input: Option<String>) -> Self
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.
sourcepub fn image_digest(self, input: impl Into<String>) -> Self
pub fn image_digest(self, input: impl Into<String>) -> Self
The image digest of the image manifest corresponding to the image.
sourcepub fn set_image_digest(self, input: Option<String>) -> Self
pub fn set_image_digest(self, input: Option<String>) -> Self
The image digest of the image manifest corresponding to the image.