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

Description

Deletes a repository. If the repository contains images, you must either delete all images in the repository or use the force option to delete 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 Amazon Web Services account ID associated with the registry that contains the repository to delete. If you do not specify a registry, the default registry is assumed.

  • repositoryName :: Text

    The name of the repository to delete.

Instances

Instances details
Eq DeleteRepository Source # 
Instance details

Defined in Amazonka.ECR.DeleteRepository

Read DeleteRepository Source # 
Instance details

Defined in Amazonka.ECR.DeleteRepository

Show DeleteRepository Source # 
Instance details

Defined in Amazonka.ECR.DeleteRepository

Generic DeleteRepository Source # 
Instance details

Defined in Amazonka.ECR.DeleteRepository

Associated Types

type Rep DeleteRepository :: Type -> Type #

NFData DeleteRepository Source # 
Instance details

Defined in Amazonka.ECR.DeleteRepository

Methods

rnf :: DeleteRepository -> () #

Hashable DeleteRepository Source # 
Instance details

Defined in Amazonka.ECR.DeleteRepository

ToJSON DeleteRepository Source # 
Instance details

Defined in Amazonka.ECR.DeleteRepository

AWSRequest DeleteRepository Source # 
Instance details

Defined in Amazonka.ECR.DeleteRepository

Associated Types

type AWSResponse DeleteRepository #

ToHeaders DeleteRepository Source # 
Instance details

Defined in Amazonka.ECR.DeleteRepository

ToPath DeleteRepository Source # 
Instance details

Defined in Amazonka.ECR.DeleteRepository

ToQuery DeleteRepository Source # 
Instance details

Defined in Amazonka.ECR.DeleteRepository

type Rep DeleteRepository Source # 
Instance details

Defined in Amazonka.ECR.DeleteRepository

type Rep DeleteRepository = D1 ('MetaData "DeleteRepository" "Amazonka.ECR.DeleteRepository" "libZSservicesZSamazonka-ecrZSamazonka-ecr" '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.ECR.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 Amazon Web Services account ID associated with the registry that contains the repository to delete. If you do not specify a registry, the default 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 Amazon Web Services account ID associated with the registry that contains the repository to delete. If you do not specify a registry, the default 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.ECR.DeleteRepository

Read DeleteRepositoryResponse Source # 
Instance details

Defined in Amazonka.ECR.DeleteRepository

Show DeleteRepositoryResponse Source # 
Instance details

Defined in Amazonka.ECR.DeleteRepository

Generic DeleteRepositoryResponse Source # 
Instance details

Defined in Amazonka.ECR.DeleteRepository

Associated Types

type Rep DeleteRepositoryResponse :: Type -> Type #

NFData DeleteRepositoryResponse Source # 
Instance details

Defined in Amazonka.ECR.DeleteRepository

type Rep DeleteRepositoryResponse Source # 
Instance details

Defined in Amazonka.ECR.DeleteRepository

type Rep DeleteRepositoryResponse = D1 ('MetaData "DeleteRepositoryResponse" "Amazonka.ECR.DeleteRepository" "libZSservicesZSamazonka-ecrZSamazonka-ecr" '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