libZSservicesZSamazonka-ecrZSamazonka-ecr
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.ECR.CompleteLayerUpload

Description

Informs Amazon ECR that the image layer upload has completed for a specified registry, repository name, and upload ID. You can optionally provide a sha256 digest of the image layer for data validation purposes.

When an image is pushed, the CompleteLayerUpload API is called once per each new image layer to verify that the upload has completed.

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 CompleteLayerUpload Source #

See: newCompleteLayerUpload smart constructor.

Constructors

CompleteLayerUpload' 

Fields

  • registryId :: Maybe Text

    The Amazon Web Services account ID associated with the registry to which to upload layers. If you do not specify a registry, the default registry is assumed.

  • repositoryName :: Text

    The name of the repository to associate with the image layer.

  • uploadId :: Text

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

  • layerDigests :: NonEmpty Text

    The sha256 digest of the image layer.

Instances

Instances details
Eq CompleteLayerUpload Source # 
Instance details

Defined in Amazonka.ECR.CompleteLayerUpload

Read CompleteLayerUpload Source # 
Instance details

Defined in Amazonka.ECR.CompleteLayerUpload

Show CompleteLayerUpload Source # 
Instance details

Defined in Amazonka.ECR.CompleteLayerUpload

Generic CompleteLayerUpload Source # 
Instance details

Defined in Amazonka.ECR.CompleteLayerUpload

Associated Types

type Rep CompleteLayerUpload :: Type -> Type #

NFData CompleteLayerUpload Source # 
Instance details

Defined in Amazonka.ECR.CompleteLayerUpload

Methods

rnf :: CompleteLayerUpload -> () #

Hashable CompleteLayerUpload Source # 
Instance details

Defined in Amazonka.ECR.CompleteLayerUpload

ToJSON CompleteLayerUpload Source # 
Instance details

Defined in Amazonka.ECR.CompleteLayerUpload

AWSRequest CompleteLayerUpload Source # 
Instance details

Defined in Amazonka.ECR.CompleteLayerUpload

Associated Types

type AWSResponse CompleteLayerUpload #

ToHeaders CompleteLayerUpload Source # 
Instance details

Defined in Amazonka.ECR.CompleteLayerUpload

ToPath CompleteLayerUpload Source # 
Instance details

Defined in Amazonka.ECR.CompleteLayerUpload

ToQuery CompleteLayerUpload Source # 
Instance details

Defined in Amazonka.ECR.CompleteLayerUpload

type Rep CompleteLayerUpload Source # 
Instance details

Defined in Amazonka.ECR.CompleteLayerUpload

type Rep CompleteLayerUpload = D1 ('MetaData "CompleteLayerUpload" "Amazonka.ECR.CompleteLayerUpload" "libZSservicesZSamazonka-ecrZSamazonka-ecr" 'False) (C1 ('MetaCons "CompleteLayerUpload'" '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 "layerDigests") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Text)))))
type AWSResponse CompleteLayerUpload Source # 
Instance details

Defined in Amazonka.ECR.CompleteLayerUpload

newCompleteLayerUpload Source #

Create a value of CompleteLayerUpload 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:CompleteLayerUpload', completeLayerUpload_registryId - The Amazon Web Services account ID associated with the registry to which to upload layers. If you do not specify a registry, the default registry is assumed.

$sel:repositoryName:CompleteLayerUpload', completeLayerUpload_repositoryName - The name of the repository to associate with the image layer.

$sel:uploadId:CompleteLayerUpload', completeLayerUpload_uploadId - The upload ID from a previous InitiateLayerUpload operation to associate with the image layer.

$sel:layerDigests:CompleteLayerUpload', completeLayerUpload_layerDigests - The sha256 digest of the image layer.

Request Lenses

completeLayerUpload_registryId :: Lens' CompleteLayerUpload (Maybe Text) Source #

The Amazon Web Services account ID associated with the registry to which to upload layers. If you do not specify a registry, the default registry is assumed.

completeLayerUpload_repositoryName :: Lens' CompleteLayerUpload Text Source #

The name of the repository to associate with the image layer.

completeLayerUpload_uploadId :: Lens' CompleteLayerUpload Text Source #

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

Destructuring the Response

data CompleteLayerUploadResponse Source #

See: newCompleteLayerUploadResponse smart constructor.

Constructors

CompleteLayerUploadResponse' 

Fields

Instances

Instances details
Eq CompleteLayerUploadResponse Source # 
Instance details

Defined in Amazonka.ECR.CompleteLayerUpload

Read CompleteLayerUploadResponse Source # 
Instance details

Defined in Amazonka.ECR.CompleteLayerUpload

Show CompleteLayerUploadResponse Source # 
Instance details

Defined in Amazonka.ECR.CompleteLayerUpload

Generic CompleteLayerUploadResponse Source # 
Instance details

Defined in Amazonka.ECR.CompleteLayerUpload

Associated Types

type Rep CompleteLayerUploadResponse :: Type -> Type #

NFData CompleteLayerUploadResponse Source # 
Instance details

Defined in Amazonka.ECR.CompleteLayerUpload

type Rep CompleteLayerUploadResponse Source # 
Instance details

Defined in Amazonka.ECR.CompleteLayerUpload

type Rep CompleteLayerUploadResponse = D1 ('MetaData "CompleteLayerUploadResponse" "Amazonka.ECR.CompleteLayerUpload" "libZSservicesZSamazonka-ecrZSamazonka-ecr" 'False) (C1 ('MetaCons "CompleteLayerUploadResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "registryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "layerDigest") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (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)))))

newCompleteLayerUploadResponse Source #

Create a value of CompleteLayerUploadResponse 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:CompleteLayerUpload', completeLayerUploadResponse_registryId - The registry ID associated with the request.

$sel:layerDigest:CompleteLayerUploadResponse', completeLayerUploadResponse_layerDigest - The sha256 digest of the image layer.

$sel:repositoryName:CompleteLayerUpload', completeLayerUploadResponse_repositoryName - The repository name associated with the request.

$sel:uploadId:CompleteLayerUpload', completeLayerUploadResponse_uploadId - The upload ID associated with the layer.

$sel:httpStatus:CompleteLayerUploadResponse', completeLayerUploadResponse_httpStatus - The response's http status code.

Response Lenses