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

Copyright(c) 2013-2018 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 #

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 #

See: uploadLayerPart smart constructor.

Instances

Eq UploadLayerPart # 
Data UploadLayerPart # 

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 # 
Show UploadLayerPart # 
Generic UploadLayerPart # 
Hashable UploadLayerPart # 
ToJSON UploadLayerPart # 
NFData UploadLayerPart # 

Methods

rnf :: UploadLayerPart -> () #

AWSRequest UploadLayerPart # 
ToHeaders UploadLayerPart # 
ToPath UploadLayerPart # 
ToQuery UploadLayerPart # 
type Rep UploadLayerPart # 
type Rep UploadLayerPart = D1 * (MetaData "UploadLayerPart" "Network.AWS.ECR.UploadLayerPart" "amazonka-ecr-1.6.0-964uJhj0eFs4nfpWm7TvpC" 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 # 

Request Lenses

ulpRegistryId :: Lens' UploadLayerPart (Maybe Text) #

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 #

The name of the repository to which you are uploading layer parts.

ulpUploadId :: Lens' UploadLayerPart Text #

The upload ID from a previous InitiateLayerUpload operation to associate with the layer part upload.

ulpPartFirstByte :: Lens' UploadLayerPart Natural #

The integer value of the first byte of the layer part.

ulpPartLastByte :: Lens' UploadLayerPart Natural #

The integer value of the last byte of the layer part.

ulpLayerPartBlob :: Lens' UploadLayerPart ByteString #

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 #

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 #

See: uploadLayerPartResponse smart constructor.

Instances

Eq UploadLayerPartResponse # 
Data UploadLayerPartResponse # 

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 # 
Show UploadLayerPartResponse # 
Generic UploadLayerPartResponse # 
NFData UploadLayerPartResponse # 

Methods

rnf :: UploadLayerPartResponse -> () #

type Rep UploadLayerPartResponse # 
type Rep UploadLayerPartResponse = D1 * (MetaData "UploadLayerPartResponse" "Network.AWS.ECR.UploadLayerPart" "amazonka-ecr-1.6.0-964uJhj0eFs4nfpWm7TvpC" 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) #

The registry ID associated with the request.

ulprsLastByteReceived :: Lens' UploadLayerPartResponse (Maybe Natural) #

The integer value of the last byte received in the request.

ulprsRepositoryName :: Lens' UploadLayerPartResponse (Maybe Text) #

The repository name associated with the request.

ulprsUploadId :: Lens' UploadLayerPartResponse (Maybe Text) #

The upload ID associated with the request.

ulprsResponseStatus :: Lens' UploadLayerPartResponse Int #

  • - | The response status code.