| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.ECR.UploadLayerPart
Description
Uploads an image layer part to Amazon ECR.
Synopsis
- 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
Arguments
| :: 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 to which you are uploading layer parts. If you do not specify a registry, the default registry is assumed.ulpRepositoryName- The name of the repository to which you are uploading layer parts.ulpUploadId- The upload ID from a previousInitiateLayerUploadoperation 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: ThisLensautomatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. ThisLensaccepts and returns only raw unencoded data.
data UploadLayerPart Source #
See: uploadLayerPart smart constructor.
Instances
Request Lenses
ulpRegistryId :: 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 registry is assumed.
ulpRepositoryName :: Lens' UploadLayerPart Text Source #
The name of the repository to which you are uploading layer parts.
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 #
Arguments
| :: Int | |
| -> UploadLayerPartResponse |
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.
Instances
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.