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 |
Informs Amazon ECR that the image layer upload has completed for a
specified public registry, repository name, and upload ID. You can
optionally provide a sha256
digest of the image layer for data
validation purposes.
When an image is pushed, the CompleteLayerUpload API is called once per each new image layer to verify that the upload has completed.
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 CompleteLayerUpload = CompleteLayerUpload' {}
- newCompleteLayerUpload :: Text -> Text -> NonEmpty Text -> CompleteLayerUpload
- completeLayerUpload_registryId :: Lens' CompleteLayerUpload (Maybe Text)
- completeLayerUpload_repositoryName :: Lens' CompleteLayerUpload Text
- completeLayerUpload_uploadId :: Lens' CompleteLayerUpload Text
- completeLayerUpload_layerDigests :: Lens' CompleteLayerUpload (NonEmpty Text)
- data CompleteLayerUploadResponse = CompleteLayerUploadResponse' {
- registryId :: Maybe Text
- layerDigest :: Maybe Text
- repositoryName :: Maybe Text
- uploadId :: Maybe Text
- httpStatus :: Int
- newCompleteLayerUploadResponse :: Int -> CompleteLayerUploadResponse
- completeLayerUploadResponse_registryId :: Lens' CompleteLayerUploadResponse (Maybe Text)
- completeLayerUploadResponse_layerDigest :: Lens' CompleteLayerUploadResponse (Maybe Text)
- completeLayerUploadResponse_repositoryName :: Lens' CompleteLayerUploadResponse (Maybe Text)
- completeLayerUploadResponse_uploadId :: Lens' CompleteLayerUploadResponse (Maybe Text)
- completeLayerUploadResponse_httpStatus :: Lens' CompleteLayerUploadResponse Int
Creating a Request
data CompleteLayerUpload Source #
See: newCompleteLayerUpload
smart constructor.
CompleteLayerUpload' | |
|
Instances
newCompleteLayerUpload Source #
:: Text | |
-> Text | |
-> NonEmpty Text | |
-> CompleteLayerUpload |
Create a value of CompleteLayerUpload
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:CompleteLayerUpload'
, completeLayerUpload_registryId
- The AWS account ID associated with the registry to which to upload
layers. If you do not specify a registry, the default public registry is
assumed.
$sel:repositoryName:CompleteLayerUpload'
, completeLayerUpload_repositoryName
- The name of the repository in a public registry to associate with the
image layer.
$sel:uploadId:CompleteLayerUpload'
, completeLayerUpload_uploadId
- The upload ID from a previous InitiateLayerUpload operation to associate
with the image layer.
$sel:layerDigests:CompleteLayerUpload'
, completeLayerUpload_layerDigests
- The sha256
digest of the image layer.
Request Lenses
completeLayerUpload_registryId :: Lens' CompleteLayerUpload (Maybe Text) Source #
The AWS account ID associated with the registry to which to upload layers. If you do not specify a registry, the default public registry is assumed.
completeLayerUpload_repositoryName :: Lens' CompleteLayerUpload Text Source #
The name of the repository in a public registry to associate with the image layer.
completeLayerUpload_uploadId :: Lens' CompleteLayerUpload Text Source #
The upload ID from a previous InitiateLayerUpload operation to associate with the image layer.
completeLayerUpload_layerDigests :: Lens' CompleteLayerUpload (NonEmpty Text) Source #
The sha256
digest of the image layer.
Destructuring the Response
data CompleteLayerUploadResponse Source #
See: newCompleteLayerUploadResponse
smart constructor.
CompleteLayerUploadResponse' | |
|
Instances
newCompleteLayerUploadResponse Source #
Create a value of CompleteLayerUploadResponse
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:CompleteLayerUpload'
, completeLayerUploadResponse_registryId
- The public registry ID associated with the request.
$sel:layerDigest:CompleteLayerUploadResponse'
, completeLayerUploadResponse_layerDigest
- The sha256
digest of the image layer.
$sel:repositoryName:CompleteLayerUpload'
, completeLayerUploadResponse_repositoryName
- The repository name associated with the request.
$sel:uploadId:CompleteLayerUpload'
, completeLayerUploadResponse_uploadId
- The upload ID associated with the layer.
$sel:httpStatus:CompleteLayerUploadResponse'
, completeLayerUploadResponse_httpStatus
- The response's http status code.
Response Lenses
completeLayerUploadResponse_registryId :: Lens' CompleteLayerUploadResponse (Maybe Text) Source #
The public registry ID associated with the request.
completeLayerUploadResponse_layerDigest :: Lens' CompleteLayerUploadResponse (Maybe Text) Source #
The sha256
digest of the image layer.
completeLayerUploadResponse_repositoryName :: Lens' CompleteLayerUploadResponse (Maybe Text) Source #
The repository name associated with the request.
completeLayerUploadResponse_uploadId :: Lens' CompleteLayerUploadResponse (Maybe Text) Source #
The upload ID associated with the layer.
completeLayerUploadResponse_httpStatus :: Lens' CompleteLayerUploadResponse Int Source #
The response's http status code.