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

Amazonka.ECRPublic.UploadLayerPart

Description

Uploads an image layer part to Amazon ECR.

When an image is pushed, each new image layer is uploaded in parts. The maximum size of each image layer part can be 20971520 bytes (or about 20MB). The UploadLayerPart API is called once per each new image layer part.

This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

Synopsis

Creating a Request

data UploadLayerPart Source #

See: newUploadLayerPart smart constructor.

Constructors

UploadLayerPart' 

Fields

  • registryId :: 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 public registry is assumed.

  • repositoryName :: Text

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

  • uploadId :: Text

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

  • partFirstByte :: Natural

    The position of the first byte of the layer part witin the overall image layer.

  • partLastByte :: Natural

    The position of the last byte of the layer part within the overall image layer.

  • layerPartBlob :: Base64

    The base64-encoded layer part payload.

Instances

Instances details
Eq UploadLayerPart Source # 
Instance details

Defined in Amazonka.ECRPublic.UploadLayerPart

Read UploadLayerPart Source # 
Instance details

Defined in Amazonka.ECRPublic.UploadLayerPart

Show UploadLayerPart Source # 
Instance details

Defined in Amazonka.ECRPublic.UploadLayerPart

Generic UploadLayerPart Source # 
Instance details

Defined in Amazonka.ECRPublic.UploadLayerPart

Associated Types

type Rep UploadLayerPart :: Type -> Type #

NFData UploadLayerPart Source # 
Instance details

Defined in Amazonka.ECRPublic.UploadLayerPart

Methods

rnf :: UploadLayerPart -> () #

Hashable UploadLayerPart Source # 
Instance details

Defined in Amazonka.ECRPublic.UploadLayerPart

ToJSON UploadLayerPart Source # 
Instance details

Defined in Amazonka.ECRPublic.UploadLayerPart

AWSRequest UploadLayerPart Source # 
Instance details

Defined in Amazonka.ECRPublic.UploadLayerPart

Associated Types

type AWSResponse UploadLayerPart #

ToHeaders UploadLayerPart Source # 
Instance details

Defined in Amazonka.ECRPublic.UploadLayerPart

ToPath UploadLayerPart Source # 
Instance details

Defined in Amazonka.ECRPublic.UploadLayerPart

ToQuery UploadLayerPart Source # 
Instance details

Defined in Amazonka.ECRPublic.UploadLayerPart

type Rep UploadLayerPart Source # 
Instance details

Defined in Amazonka.ECRPublic.UploadLayerPart

type Rep UploadLayerPart = D1 ('MetaData "UploadLayerPart" "Amazonka.ECRPublic.UploadLayerPart" "libZSservicesZSamazonka-ecr-publicZSamazonka-ecr-public" 'False) (C1 ('MetaCons "UploadLayerPart'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "registryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "uploadId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "partFirstByte") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "partLastByte") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural) :*: S1 ('MetaSel ('Just "layerPartBlob") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Base64)))))
type AWSResponse UploadLayerPart Source # 
Instance details

Defined in Amazonka.ECRPublic.UploadLayerPart

newUploadLayerPart Source #

Create a value of UploadLayerPart with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:registryId:UploadLayerPart', uploadLayerPart_registryId - The AWS account ID associated with the registry to which you are uploading layer parts. If you do not specify a registry, the default public registry is assumed.

$sel:repositoryName:UploadLayerPart', uploadLayerPart_repositoryName - The name of the repository to which you are uploading layer parts.

$sel:uploadId:UploadLayerPart', uploadLayerPart_uploadId - The upload ID from a previous InitiateLayerUpload operation to associate with the layer part upload.

$sel:partFirstByte:UploadLayerPart', uploadLayerPart_partFirstByte - The position of the first byte of the layer part witin the overall image layer.

$sel:partLastByte:UploadLayerPart', uploadLayerPart_partLastByte - The position of the last byte of the layer part within the overall image layer.

$sel:layerPartBlob:UploadLayerPart', uploadLayerPart_layerPartBlob - 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.

Request Lenses

uploadLayerPart_registryId :: 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 public registry is assumed.

uploadLayerPart_repositoryName :: Lens' UploadLayerPart Text Source #

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

uploadLayerPart_uploadId :: Lens' UploadLayerPart Text Source #

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

uploadLayerPart_partFirstByte :: Lens' UploadLayerPart Natural Source #

The position of the first byte of the layer part witin the overall image layer.

uploadLayerPart_partLastByte :: Lens' UploadLayerPart Natural Source #

The position of the last byte of the layer part within the overall image layer.

uploadLayerPart_layerPartBlob :: 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

data UploadLayerPartResponse Source #

See: newUploadLayerPartResponse smart constructor.

Constructors

UploadLayerPartResponse' 

Fields

Instances

Instances details
Eq UploadLayerPartResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.UploadLayerPart

Read UploadLayerPartResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.UploadLayerPart

Show UploadLayerPartResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.UploadLayerPart

Generic UploadLayerPartResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.UploadLayerPart

Associated Types

type Rep UploadLayerPartResponse :: Type -> Type #

NFData UploadLayerPartResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.UploadLayerPart

Methods

rnf :: UploadLayerPartResponse -> () #

type Rep UploadLayerPartResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.UploadLayerPart

type Rep UploadLayerPartResponse = D1 ('MetaData "UploadLayerPartResponse" "Amazonka.ECRPublic.UploadLayerPart" "libZSservicesZSamazonka-ecr-publicZSamazonka-ecr-public" 'False) (C1 ('MetaCons "UploadLayerPartResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "registryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lastByteReceived") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "uploadId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newUploadLayerPartResponse Source #

Create a value of UploadLayerPartResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:registryId:UploadLayerPart', uploadLayerPartResponse_registryId - The registry ID associated with the request.

$sel:lastByteReceived:UploadLayerPartResponse', uploadLayerPartResponse_lastByteReceived - The integer value of the last byte received in the request.

$sel:repositoryName:UploadLayerPart', uploadLayerPartResponse_repositoryName - The repository name associated with the request.

$sel:uploadId:UploadLayerPart', uploadLayerPartResponse_uploadId - The upload ID associated with the request.

$sel:httpStatus:UploadLayerPartResponse', uploadLayerPartResponse_httpStatus - The response's http status code.

Response Lenses

uploadLayerPartResponse_registryId :: Lens' UploadLayerPartResponse (Maybe Text) Source #

The registry ID associated with the request.

uploadLayerPartResponse_lastByteReceived :: Lens' UploadLayerPartResponse (Maybe Natural) Source #

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

uploadLayerPartResponse_repositoryName :: Lens' UploadLayerPartResponse (Maybe Text) Source #

The repository name associated with the request.

uploadLayerPartResponse_uploadId :: Lens' UploadLayerPartResponse (Maybe Text) Source #

The upload ID associated with the request.