Struct aws_sdk_ecr::client::fluent_builders::BatchGetImage
source · pub struct BatchGetImage { /* private fields */ }
Expand description
Fluent builder constructing a request to BatchGetImage
.
Gets detailed information for an image. Images are specified with either an imageTag
or imageDigest
.
When an image is pulled, the BatchGetImage API is called once to retrieve the image manifest.
Implementations§
source§impl BatchGetImage
impl BatchGetImage
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<BatchGetImage, AwsResponseRetryClassifier>, SdkError<BatchGetImageError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<BatchGetImage, AwsResponseRetryClassifier>, SdkError<BatchGetImageError>>
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<BatchGetImageOutput, SdkError<BatchGetImageError>>
pub async fn send(
self
) -> Result<BatchGetImageOutput, SdkError<BatchGetImageError>>
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 images to describe. 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 images to describe. 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 images to describe.
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 images to describe.
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 describe. 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 describe. The format of the imageIds
reference is imageTag=tag
or imageDigest=digest
.
sourcepub fn accepted_media_types(self, input: impl Into<String>) -> Self
pub fn accepted_media_types(self, input: impl Into<String>) -> Self
Appends an item to acceptedMediaTypes
.
To override the contents of this collection use set_accepted_media_types
.
The accepted media types for the request.
Valid values: application/vnd.docker.distribution.manifest.v1+json
| application/vnd.docker.distribution.manifest.v2+json
| application/vnd.oci.image.manifest.v1+json
sourcepub fn set_accepted_media_types(self, input: Option<Vec<String>>) -> Self
pub fn set_accepted_media_types(self, input: Option<Vec<String>>) -> Self
The accepted media types for the request.
Valid values: application/vnd.docker.distribution.manifest.v1+json
| application/vnd.docker.distribution.manifest.v2+json
| application/vnd.oci.image.manifest.v1+json
Trait Implementations§
source§impl Clone for BatchGetImage
impl Clone for BatchGetImage
source§fn clone(&self) -> BatchGetImage
fn clone(&self) -> BatchGetImage
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more