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.
- 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:
ulpRegistryId
- 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
- The name of the repository that you are uploading layer parts to.ulpUploadId
- The upload ID from a previousInitiateLayerUpload
operation to associate with the layer part upload.ulpPartFirstByte
- The integer value of the first byte of the layer part.ulpPartLastByte
- The integer value of the last byte of the layer part.ulpLayerPartBlob
- The base64-encoded layer part payload.-- Note: ThisLens
automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. ThisLens
accepts and returns only raw unencoded data.
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. 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:
ulprsRegistryId
- The registry ID associated with the request.ulprsLastByteReceived
- The integer value of the last byte received in the request.ulprsRepositoryName
- The repository name associated with the request.ulprsUploadId
- The upload ID associated with the request.ulprsResponseStatus
- -- | The response status code.
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.