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.DeleteRepository

Description

Deletes a repository in a public registry. If the repository contains images, you must either delete all images in the repository or use the force option which deletes all images on your behalf before deleting the repository.

Synopsis

Creating a Request

data DeleteRepository Source #

See: newDeleteRepository smart constructor.

Constructors

DeleteRepository' 

Fields

  • force :: Maybe Bool

    If a repository contains images, forces the deletion.

  • registryId :: Maybe Text

    The AWS account ID associated with the public registry that contains the repository to delete. If you do not specify a registry, the default public registry is assumed.

  • repositoryName :: Text

    The name of the repository to delete.

Instances

Instances details
Eq DeleteRepository Source # 
Instance details

Defined in Amazonka.ECRPublic.DeleteRepository

Read DeleteRepository Source # 
Instance details

Defined in Amazonka.ECRPublic.DeleteRepository

Show DeleteRepository Source # 
Instance details

Defined in Amazonka.ECRPublic.DeleteRepository

Generic DeleteRepository Source # 
Instance details

Defined in Amazonka.ECRPublic.DeleteRepository

Associated Types

type Rep DeleteRepository :: Type -> Type #

NFData DeleteRepository Source # 
Instance details

Defined in Amazonka.ECRPublic.DeleteRepository

Methods

rnf :: DeleteRepository -> () #

Hashable DeleteRepository Source # 
Instance details

Defined in Amazonka.ECRPublic.DeleteRepository

ToJSON DeleteRepository Source # 
Instance details

Defined in Amazonka.ECRPublic.DeleteRepository

AWSRequest DeleteRepository Source # 
Instance details

Defined in Amazonka.ECRPublic.DeleteRepository

Associated Types

type AWSResponse DeleteRepository #

ToHeaders DeleteRepository Source # 
Instance details

Defined in Amazonka.ECRPublic.DeleteRepository

ToPath DeleteRepository Source # 
Instance details

Defined in Amazonka.ECRPublic.DeleteRepository

ToQuery DeleteRepository Source # 
Instance details

Defined in Amazonka.ECRPublic.DeleteRepository

type Rep DeleteRepository Source # 
Instance details

Defined in Amazonka.ECRPublic.DeleteRepository

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

Defined in Amazonka.ECRPublic.DeleteRepository

newDeleteRepository Source #

Create a value of DeleteRepository 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:force:DeleteRepository', deleteRepository_force - If a repository contains images, forces the deletion.

$sel:registryId:DeleteRepository', deleteRepository_registryId - The AWS account ID associated with the public registry that contains the repository to delete. If you do not specify a registry, the default public registry is assumed.

$sel:repositoryName:DeleteRepository', deleteRepository_repositoryName - The name of the repository to delete.

Request Lenses

deleteRepository_force :: Lens' DeleteRepository (Maybe Bool) Source #

If a repository contains images, forces the deletion.

deleteRepository_registryId :: Lens' DeleteRepository (Maybe Text) Source #

The AWS account ID associated with the public registry that contains the repository to delete. If you do not specify a registry, the default public registry is assumed.

deleteRepository_repositoryName :: Lens' DeleteRepository Text Source #

The name of the repository to delete.

Destructuring the Response

data DeleteRepositoryResponse Source #

See: newDeleteRepositoryResponse smart constructor.

Constructors

DeleteRepositoryResponse' 

Fields

Instances

Instances details
Eq DeleteRepositoryResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.DeleteRepository

Read DeleteRepositoryResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.DeleteRepository

Show DeleteRepositoryResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.DeleteRepository

Generic DeleteRepositoryResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.DeleteRepository

Associated Types

type Rep DeleteRepositoryResponse :: Type -> Type #

NFData DeleteRepositoryResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.DeleteRepository

type Rep DeleteRepositoryResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.DeleteRepository

type Rep DeleteRepositoryResponse = D1 ('MetaData "DeleteRepositoryResponse" "Amazonka.ECRPublic.DeleteRepository" "libZSservicesZSamazonka-ecr-publicZSamazonka-ecr-public" 'False) (C1 ('MetaCons "DeleteRepositoryResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "repository") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Repository)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteRepositoryResponse Source #

Create a value of DeleteRepositoryResponse 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:repository:DeleteRepositoryResponse', deleteRepositoryResponse_repository - The repository that was deleted.

$sel:httpStatus:DeleteRepositoryResponse', deleteRepositoryResponse_httpStatus - The response's http status code.

Response Lenses