Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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_registryId :: Lens' BatchGetImage (Maybe Text)
- batchGetImage_acceptedMediaTypes :: Lens' BatchGetImage (Maybe (NonEmpty Text))
- batchGetImage_repositoryName :: Lens' BatchGetImage Text
- batchGetImage_imageIds :: Lens' BatchGetImage [ImageIdentifier]
- data BatchGetImageResponse = BatchGetImageResponse' {
- images :: Maybe [Image]
- failures :: Maybe [ImageFailure]
- httpStatus :: Int
- newBatchGetImageResponse :: Int -> BatchGetImageResponse
- batchGetImageResponse_images :: Lens' BatchGetImageResponse (Maybe [Image])
- batchGetImageResponse_failures :: Lens' BatchGetImageResponse (Maybe [ImageFailure])
- batchGetImageResponse_httpStatus :: Lens' BatchGetImageResponse Int
Creating a Request
data BatchGetImage Source #
See: newBatchGetImage
smart constructor.
BatchGetImage' | |
|
Instances
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:registryId: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.
$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
$sel:repositoryName: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_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_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_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.
BatchGetImageResponse' | |
|
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:images:BatchGetImageResponse'
, batchGetImageResponse_images
- A list of image objects corresponding to the image references in the
request.
$sel:failures:BatchGetImageResponse'
, batchGetImageResponse_failures
- Any failures associated with the call.
$sel:httpStatus:BatchGetImageResponse'
, batchGetImageResponse_httpStatus
- The response's http status code.
Response Lenses
batchGetImageResponse_images :: Lens' BatchGetImageResponse (Maybe [Image]) Source #
A list of image objects corresponding to the image references in the request.
batchGetImageResponse_failures :: Lens' BatchGetImageResponse (Maybe [ImageFailure]) Source #
Any failures associated with the call.
batchGetImageResponse_httpStatus :: Lens' BatchGetImageResponse Int Source #
The response's http status code.