amazonka-ecr-1.6.1: 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 # 
Instance details

Defined in Network.AWS.ECR.UploadLayerPart

Data UploadLayerPart # 
Instance details

Defined in Network.AWS.ECR.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 # 
Instance details

Defined in Network.AWS.ECR.UploadLayerPart

Show UploadLayerPart # 
Instance details

Defined in Network.AWS.ECR.UploadLayerPart

Generic UploadLayerPart # 
Instance details

Defined in Network.AWS.ECR.UploadLayerPart

Associated Types

type Rep UploadLayerPart :: Type -> Type #

Hashable UploadLayerPart # 
Instance details

Defined in Network.AWS.ECR.UploadLayerPart

ToJSON UploadLayerPart # 
Instance details

Defined in Network.AWS.ECR.UploadLayerPart

AWSRequest UploadLayerPart # 
Instance details

Defined in Network.AWS.ECR.UploadLayerPart

Associated Types

type Rs UploadLayerPart :: Type #

ToHeaders UploadLayerPart # 
Instance details

Defined in Network.AWS.ECR.UploadLayerPart

ToPath UploadLayerPart # 
Instance details

Defined in Network.AWS.ECR.UploadLayerPart

ToQuery UploadLayerPart # 
Instance details

Defined in Network.AWS.ECR.UploadLayerPart

NFData UploadLayerPart # 
Instance details

Defined in Network.AWS.ECR.UploadLayerPart

Methods

rnf :: UploadLayerPart -> () #

type Rep UploadLayerPart # 
Instance details

Defined in Network.AWS.ECR.UploadLayerPart

type Rep UploadLayerPart = D1 (MetaData "UploadLayerPart" "Network.AWS.ECR.UploadLayerPart" "amazonka-ecr-1.6.1-Bw2yh5mlUIwFGPb6ojtX2U" False) (C1 (MetaCons "UploadLayerPart'" PrefixI True) ((S1 (MetaSel (Just "_ulpRegistryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_ulpRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ulpUploadId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) :*: (S1 (MetaSel (Just "_ulpPartFirstByte") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Nat) :*: (S1 (MetaSel (Just "_ulpPartLastByte") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Nat) :*: S1 (MetaSel (Just "_ulpLayerPartBlob") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Base64)))))
type Rs UploadLayerPart # 
Instance details

Defined in Network.AWS.ECR.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 # 
Instance details

Defined in Network.AWS.ECR.UploadLayerPart

Data UploadLayerPartResponse # 
Instance details

Defined in Network.AWS.ECR.UploadLayerPart

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 # 
Instance details

Defined in Network.AWS.ECR.UploadLayerPart

Show UploadLayerPartResponse # 
Instance details

Defined in Network.AWS.ECR.UploadLayerPart

Generic UploadLayerPartResponse # 
Instance details

Defined in Network.AWS.ECR.UploadLayerPart

Associated Types

type Rep UploadLayerPartResponse :: Type -> Type #

NFData UploadLayerPartResponse # 
Instance details

Defined in Network.AWS.ECR.UploadLayerPart

Methods

rnf :: UploadLayerPartResponse -> () #

type Rep UploadLayerPartResponse # 
Instance details

Defined in Network.AWS.ECR.UploadLayerPart

type Rep UploadLayerPartResponse = D1 (MetaData "UploadLayerPartResponse" "Network.AWS.ECR.UploadLayerPart" "amazonka-ecr-1.6.1-Bw2yh5mlUIwFGPb6ojtX2U" False) (C1 (MetaCons "UploadLayerPartResponse'" PrefixI True) ((S1 (MetaSel (Just "_ulprsRegistryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ulprsLastByteReceived") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) :*: (S1 (MetaSel (Just "_ulprsRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_ulprsUploadId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_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.