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 |
Uploads an image layer part to Amazon ECR.
When an image is pushed, each new image layer is uploaded in parts. The maximum size of each image layer part can be 20971520 bytes (or about 20MB). The UploadLayerPart API is called once per each new image layer part.
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 UploadLayerPart = UploadLayerPart' {}
- newUploadLayerPart :: Text -> Text -> Natural -> Natural -> ByteString -> UploadLayerPart
- uploadLayerPart_registryId :: Lens' UploadLayerPart (Maybe Text)
- uploadLayerPart_repositoryName :: Lens' UploadLayerPart Text
- uploadLayerPart_uploadId :: Lens' UploadLayerPart Text
- uploadLayerPart_partFirstByte :: Lens' UploadLayerPart Natural
- uploadLayerPart_partLastByte :: Lens' UploadLayerPart Natural
- uploadLayerPart_layerPartBlob :: Lens' UploadLayerPart ByteString
- data UploadLayerPartResponse = UploadLayerPartResponse' {}
- newUploadLayerPartResponse :: Int -> UploadLayerPartResponse
- uploadLayerPartResponse_registryId :: Lens' UploadLayerPartResponse (Maybe Text)
- uploadLayerPartResponse_lastByteReceived :: Lens' UploadLayerPartResponse (Maybe Natural)
- uploadLayerPartResponse_repositoryName :: Lens' UploadLayerPartResponse (Maybe Text)
- uploadLayerPartResponse_uploadId :: Lens' UploadLayerPartResponse (Maybe Text)
- uploadLayerPartResponse_httpStatus :: Lens' UploadLayerPartResponse Int
Creating a Request
data UploadLayerPart Source #
See: newUploadLayerPart
smart constructor.
UploadLayerPart' | |
|
Instances
:: Text | |
-> Text | |
-> Natural | |
-> Natural | |
-> ByteString | |
-> UploadLayerPart |
Create a value of UploadLayerPart
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:UploadLayerPart'
, uploadLayerPart_registryId
- The AWS account ID associated with the registry to which you are
uploading layer parts. If you do not specify a registry, the default
public registry is assumed.
$sel:repositoryName:UploadLayerPart'
, uploadLayerPart_repositoryName
- The name of the repository to which you are uploading layer parts.
$sel:uploadId:UploadLayerPart'
, uploadLayerPart_uploadId
- The upload ID from a previous InitiateLayerUpload operation to associate
with the layer part upload.
$sel:partFirstByte:UploadLayerPart'
, uploadLayerPart_partFirstByte
- The position of the first byte of the layer part witin the overall image
layer.
$sel:partLastByte:UploadLayerPart'
, uploadLayerPart_partLastByte
- The position of the last byte of the layer part within the overall image
layer.
$sel:layerPartBlob:UploadLayerPart'
, uploadLayerPart_layerPartBlob
- The base64-encoded layer part payload.--
-- Note: This Lens
automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens
accepts and returns only raw unencoded data.
Request Lenses
uploadLayerPart_registryId :: Lens' UploadLayerPart (Maybe Text) Source #
The AWS account ID associated with the registry to which you are uploading layer parts. If you do not specify a registry, the default public registry is assumed.
uploadLayerPart_repositoryName :: Lens' UploadLayerPart Text Source #
The name of the repository to which you are uploading layer parts.
uploadLayerPart_uploadId :: Lens' UploadLayerPart Text Source #
The upload ID from a previous InitiateLayerUpload operation to associate with the layer part upload.
uploadLayerPart_partFirstByte :: Lens' UploadLayerPart Natural Source #
The position of the first byte of the layer part witin the overall image layer.
uploadLayerPart_partLastByte :: Lens' UploadLayerPart Natural Source #
The position of the last byte of the layer part within the overall image layer.
uploadLayerPart_layerPartBlob :: Lens' UploadLayerPart ByteString Source #
The base64-encoded layer part payload.--
-- Note: This Lens
automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens
accepts and returns only raw unencoded data.
Destructuring the Response
data UploadLayerPartResponse Source #
See: newUploadLayerPartResponse
smart constructor.
UploadLayerPartResponse' | |
|
Instances
newUploadLayerPartResponse Source #
Create a value of UploadLayerPartResponse
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:UploadLayerPart'
, uploadLayerPartResponse_registryId
- The registry ID associated with the request.
$sel:lastByteReceived:UploadLayerPartResponse'
, uploadLayerPartResponse_lastByteReceived
- The integer value of the last byte received in the request.
$sel:repositoryName:UploadLayerPart'
, uploadLayerPartResponse_repositoryName
- The repository name associated with the request.
$sel:uploadId:UploadLayerPart'
, uploadLayerPartResponse_uploadId
- The upload ID associated with the request.
$sel:httpStatus:UploadLayerPartResponse'
, uploadLayerPartResponse_httpStatus
- The response's http status code.
Response Lenses
uploadLayerPartResponse_registryId :: Lens' UploadLayerPartResponse (Maybe Text) Source #
The registry ID associated with the request.
uploadLayerPartResponse_lastByteReceived :: Lens' UploadLayerPartResponse (Maybe Natural) Source #
The integer value of the last byte received in the request.
uploadLayerPartResponse_repositoryName :: Lens' UploadLayerPartResponse (Maybe Text) Source #
The repository name associated with the request.
uploadLayerPartResponse_uploadId :: Lens' UploadLayerPartResponse (Maybe Text) Source #
The upload ID associated with the request.
uploadLayerPartResponse_httpStatus :: Lens' UploadLayerPartResponse Int Source #
The response's http status code.