| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.ECR.BatchGetImage
Description
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.
Synopsis
- data BatchGetImage = BatchGetImage' {}
- newBatchGetImage :: Text -> BatchGetImage
- batchGetImage_acceptedMediaTypes :: Lens' BatchGetImage (Maybe (NonEmpty Text))
- batchGetImage_registryId :: Lens' BatchGetImage (Maybe Text)
- batchGetImage_repositoryName :: Lens' BatchGetImage Text
- batchGetImage_imageIds :: Lens' BatchGetImage [ImageIdentifier]
- data BatchGetImageResponse = BatchGetImageResponse' {
- failures :: Maybe [ImageFailure]
- images :: Maybe [Image]
- httpStatus :: Int
- newBatchGetImageResponse :: Int -> BatchGetImageResponse
- batchGetImageResponse_failures :: Lens' BatchGetImageResponse (Maybe [ImageFailure])
- batchGetImageResponse_images :: Lens' BatchGetImageResponse (Maybe [Image])
- batchGetImageResponse_httpStatus :: Lens' BatchGetImageResponse Int
Creating a Request
data BatchGetImage Source #
See: newBatchGetImage smart constructor.
Constructors
| BatchGetImage' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> BatchGetImage |
Create a value of BatchGetImage with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:acceptedMediaTypes:BatchGetImage', batchGetImage_acceptedMediaTypes - 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
BatchGetImage, batchGetImage_registryId - 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.
BatchGetImage, batchGetImage_repositoryName - The repository that contains the images to describe.
$sel:imageIds:BatchGetImage', batchGetImage_imageIds - A list of image ID references that correspond to images to describe. The
format of the imageIds reference is imageTag=tag or
imageDigest=digest.
Request Lenses
batchGetImage_acceptedMediaTypes :: Lens' BatchGetImage (Maybe (NonEmpty Text)) Source #
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
batchGetImage_registryId :: Lens' BatchGetImage (Maybe Text) Source #
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.
batchGetImage_repositoryName :: Lens' BatchGetImage Text Source #
The repository that contains the images to describe.
batchGetImage_imageIds :: Lens' BatchGetImage [ImageIdentifier] Source #
A list of image ID references that correspond to images to describe. The
format of the imageIds reference is imageTag=tag or
imageDigest=digest.
Destructuring the Response
data BatchGetImageResponse Source #
See: newBatchGetImageResponse smart constructor.
Constructors
| BatchGetImageResponse' | |
Fields
| |
Instances
newBatchGetImageResponse Source #
Create a value of BatchGetImageResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:failures:BatchGetImageResponse', batchGetImageResponse_failures - Any failures associated with the call.
$sel:images:BatchGetImageResponse', batchGetImageResponse_images - A list of image objects corresponding to the image references in the
request.
$sel:httpStatus:BatchGetImageResponse', batchGetImageResponse_httpStatus - The response's http status code.
Response Lenses
batchGetImageResponse_failures :: Lens' BatchGetImageResponse (Maybe [ImageFailure]) Source #
Any failures associated with the call.
batchGetImageResponse_images :: Lens' BatchGetImageResponse (Maybe [Image]) Source #
A list of image objects corresponding to the image references in the request.
batchGetImageResponse_httpStatus :: Lens' BatchGetImageResponse Int Source #
The response's http status code.