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 |
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.
Synopsis
- data PutImage = PutImage' {}
- newPutImage :: Text -> Text -> PutImage
- putImage_registryId :: Lens' PutImage (Maybe Text)
- putImage_imageManifestMediaType :: Lens' PutImage (Maybe Text)
- putImage_imageDigest :: Lens' PutImage (Maybe Text)
- putImage_imageTag :: Lens' PutImage (Maybe Text)
- putImage_repositoryName :: Lens' PutImage Text
- putImage_imageManifest :: Lens' PutImage Text
- data PutImageResponse = PutImageResponse' {
- image :: Maybe Image
- httpStatus :: Int
- newPutImageResponse :: Int -> PutImageResponse
- putImageResponse_image :: Lens' PutImageResponse (Maybe Image)
- putImageResponse_httpStatus :: Lens' PutImageResponse Int
Creating a Request
See: newPutImage
smart constructor.
PutImage' | |
|
Instances
Create a value of PutImage
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:PutImage'
, putImage_registryId
- 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.
$sel:imageManifestMediaType:PutImage'
, putImage_imageManifestMediaType
- 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.
$sel:imageDigest:PutImage'
, putImage_imageDigest
- The image digest of the image manifest corresponding to the image.
$sel:imageTag:PutImage'
, putImage_imageTag
- 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.
$sel:repositoryName:PutImage'
, putImage_repositoryName
- The name of the repository in which to put the image.
$sel:imageManifest:PutImage'
, putImage_imageManifest
- The image manifest corresponding to the image to be uploaded.
Request Lenses
putImage_registryId :: Lens' PutImage (Maybe Text) Source #
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.
putImage_imageManifestMediaType :: Lens' PutImage (Maybe Text) Source #
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.
putImage_imageDigest :: Lens' PutImage (Maybe Text) Source #
The image digest of the image manifest corresponding to the image.
putImage_imageTag :: Lens' PutImage (Maybe Text) Source #
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.
putImage_repositoryName :: Lens' PutImage Text Source #
The name of the repository in which to put the image.
putImage_imageManifest :: Lens' PutImage Text Source #
The image manifest corresponding to the image to be uploaded.
Destructuring the Response
data PutImageResponse Source #
See: newPutImageResponse
smart constructor.
PutImageResponse' | |
|
Instances
Create a value of PutImageResponse
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:image:PutImageResponse'
, putImageResponse_image
- Details of the image uploaded.
$sel:httpStatus:PutImageResponse'
, putImageResponse_httpStatus
- The response's http status code.
Response Lenses
putImageResponse_image :: Lens' PutImageResponse (Maybe Image) Source #
Details of the image uploaded.
putImageResponse_httpStatus :: Lens' PutImageResponse Int Source #
The response's http status code.