Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Uploads an image layer part to Amazon ECR.
This operation is used by the Amazon ECR proxy, and it is not intended
for general use by customers. Use the docker
CLI to pull, tag, and
push images.
- uploadLayerPart :: Text -> Text -> Natural -> Natural -> ByteString -> UploadLayerPart
- data UploadLayerPart
- ulpRegistryId :: Lens' UploadLayerPart (Maybe Text)
- ulpRepositoryName :: Lens' UploadLayerPart Text
- ulpUploadId :: Lens' UploadLayerPart Text
- ulpPartFirstByte :: Lens' UploadLayerPart Natural
- ulpPartLastByte :: Lens' UploadLayerPart Natural
- ulpLayerPartBlob :: Lens' UploadLayerPart ByteString
- uploadLayerPartResponse :: Int -> UploadLayerPartResponse
- data UploadLayerPartResponse
- ulprsRegistryId :: Lens' UploadLayerPartResponse (Maybe Text)
- ulprsLastByteReceived :: Lens' UploadLayerPartResponse (Maybe Natural)
- ulprsRepositoryName :: Lens' UploadLayerPartResponse (Maybe Text)
- ulprsUploadId :: Lens' UploadLayerPartResponse (Maybe Text)
- ulprsResponseStatus :: Lens' UploadLayerPartResponse Int
Creating a Request
:: Text | |
-> Text | |
-> Natural | |
-> Natural | |
-> ByteString | |
-> UploadLayerPart |
Creates a value of UploadLayerPart
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UploadLayerPart Source
See: uploadLayerPart
smart constructor.
Request Lenses
ulpRegistryId :: Lens' UploadLayerPart (Maybe Text) Source
The AWS account ID associated with the registry that you are uploading layer parts to. If you do not specify a registry, the default registry is assumed.
ulpRepositoryName :: Lens' UploadLayerPart Text Source
The name of the repository that you are uploading layer parts to.
ulpUploadId :: Lens' UploadLayerPart Text Source
The upload ID from a previous InitiateLayerUpload operation to associate with the layer part upload.
ulpPartFirstByte :: Lens' UploadLayerPart Natural Source
The integer value of the first byte of the layer part.
ulpPartLastByte :: Lens' UploadLayerPart Natural Source
The integer value of the last byte of the layer part.
ulpLayerPartBlob :: Lens' UploadLayerPart ByteString Source
The base64-encoded layer part payload.
Note: This Lens
automatically encodes and decodes Base64 data,
despite what the AWS documentation might say.
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
uploadLayerPartResponse Source
Creates a value of UploadLayerPartResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UploadLayerPartResponse Source
See: uploadLayerPartResponse
smart constructor.
Response Lenses
ulprsRegistryId :: Lens' UploadLayerPartResponse (Maybe Text) Source
The registry ID associated with the request.
ulprsLastByteReceived :: Lens' UploadLayerPartResponse (Maybe Natural) Source
The integer value of the last byte received in the request.
ulprsRepositoryName :: Lens' UploadLayerPartResponse (Maybe Text) Source
The repository name associated with the request.
ulprsUploadId :: Lens' UploadLayerPartResponse (Maybe Text) Source
The upload ID associated with the request.
ulprsResponseStatus :: Lens' UploadLayerPartResponse Int Source
The response status code.