amazonka-ecr-1.5.0: Amazon EC2 Container Registry SDK.

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.ECR.UploadLayerPart

Contents

Description

Uploads an image layer part to Amazon ECR.

Synopsis

Creating a Request

uploadLayerPart Source #

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 previous InitiateLayerUpload 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: 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.

data UploadLayerPart Source #

See: uploadLayerPart smart constructor.

Instances

Eq UploadLayerPart Source # 
Data UploadLayerPart Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UploadLayerPart -> c UploadLayerPart #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UploadLayerPart #

toConstr :: UploadLayerPart -> Constr #

dataTypeOf :: UploadLayerPart -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UploadLayerPart) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UploadLayerPart) #

gmapT :: (forall b. Data b => b -> b) -> UploadLayerPart -> UploadLayerPart #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UploadLayerPart -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UploadLayerPart -> r #

gmapQ :: (forall d. Data d => d -> u) -> UploadLayerPart -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UploadLayerPart -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UploadLayerPart -> m UploadLayerPart #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UploadLayerPart -> m UploadLayerPart #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UploadLayerPart -> m UploadLayerPart #

Read UploadLayerPart Source # 
Show UploadLayerPart Source # 
Generic UploadLayerPart Source # 
Hashable UploadLayerPart Source # 
ToJSON UploadLayerPart Source # 
NFData UploadLayerPart Source # 

Methods

rnf :: UploadLayerPart -> () #

AWSRequest UploadLayerPart Source # 
ToQuery UploadLayerPart Source # 
ToPath UploadLayerPart Source # 
ToHeaders UploadLayerPart Source # 
type Rep UploadLayerPart Source # 
type Rep UploadLayerPart = D1 (MetaData "UploadLayerPart" "Network.AWS.ECR.UploadLayerPart" "amazonka-ecr-1.5.0-1vFH5BbiUOBDG4NzPySvaV" False) (C1 (MetaCons "UploadLayerPart'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ulpRegistryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ulpRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_ulpUploadId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_ulpPartFirstByte") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Nat)) ((:*:) (S1 (MetaSel (Just Symbol "_ulpPartLastByte") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Nat)) (S1 (MetaSel (Just Symbol "_ulpLayerPartBlob") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Base64))))))
type Rs UploadLayerPart Source # 

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 #

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.

Instances

Eq UploadLayerPartResponse Source # 
Data UploadLayerPartResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UploadLayerPartResponse -> c UploadLayerPartResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UploadLayerPartResponse #

toConstr :: UploadLayerPartResponse -> Constr #

dataTypeOf :: UploadLayerPartResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UploadLayerPartResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UploadLayerPartResponse) #

gmapT :: (forall b. Data b => b -> b) -> UploadLayerPartResponse -> UploadLayerPartResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UploadLayerPartResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UploadLayerPartResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> UploadLayerPartResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UploadLayerPartResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UploadLayerPartResponse -> m UploadLayerPartResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UploadLayerPartResponse -> m UploadLayerPartResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UploadLayerPartResponse -> m UploadLayerPartResponse #

Read UploadLayerPartResponse Source # 
Show UploadLayerPartResponse Source # 
Generic UploadLayerPartResponse Source # 
NFData UploadLayerPartResponse Source # 

Methods

rnf :: UploadLayerPartResponse -> () #

type Rep UploadLayerPartResponse Source # 
type Rep UploadLayerPartResponse = D1 (MetaData "UploadLayerPartResponse" "Network.AWS.ECR.UploadLayerPart" "amazonka-ecr-1.5.0-1vFH5BbiUOBDG4NzPySvaV" False) (C1 (MetaCons "UploadLayerPartResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ulprsRegistryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ulprsLastByteReceived") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)))) ((:*:) (S1 (MetaSel (Just Symbol "_ulprsRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ulprsUploadId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ulprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))))

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.