amazonka-rekognition-2.0: Amazon Rekognition SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Rekognition.DeleteProject

Description

Deletes an Amazon Rekognition Custom Labels project. To delete a project you must first delete all models associated with the project. To delete a model, see DeleteProjectVersion.

DeleteProject is an asynchronous operation. To check if the project is deleted, call DescribeProjects. The project is deleted when the project no longer appears in the response. Be aware that deleting a given project will also delete any ProjectPolicies associated with that project.

This operation requires permissions to perform the rekognition:DeleteProject action.

Synopsis

Creating a Request

data DeleteProject Source #

See: newDeleteProject smart constructor.

Constructors

DeleteProject' 

Fields

  • projectArn :: Text

    The Amazon Resource Name (ARN) of the project that you want to delete.

Instances

Instances details
ToJSON DeleteProject Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteProject

ToHeaders DeleteProject Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteProject

ToPath DeleteProject Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteProject

ToQuery DeleteProject Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteProject

AWSRequest DeleteProject Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteProject

Associated Types

type AWSResponse DeleteProject #

Generic DeleteProject Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteProject

Associated Types

type Rep DeleteProject :: Type -> Type #

Read DeleteProject Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteProject

Show DeleteProject Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteProject

NFData DeleteProject Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteProject

Methods

rnf :: DeleteProject -> () #

Eq DeleteProject Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteProject

Hashable DeleteProject Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteProject

type AWSResponse DeleteProject Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteProject

type Rep DeleteProject Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteProject

type Rep DeleteProject = D1 ('MetaData "DeleteProject" "Amazonka.Rekognition.DeleteProject" "amazonka-rekognition-2.0-EaCrS9R3rWADqefEZvOx5B" 'False) (C1 ('MetaCons "DeleteProject'" 'PrefixI 'True) (S1 ('MetaSel ('Just "projectArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDeleteProject Source #

Create a value of DeleteProject 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:

DeleteProject, deleteProject_projectArn - The Amazon Resource Name (ARN) of the project that you want to delete.

Request Lenses

deleteProject_projectArn :: Lens' DeleteProject Text Source #

The Amazon Resource Name (ARN) of the project that you want to delete.

Destructuring the Response

data DeleteProjectResponse Source #

See: newDeleteProjectResponse smart constructor.

Constructors

DeleteProjectResponse' 

Fields

Instances

Instances details
Generic DeleteProjectResponse Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteProject

Associated Types

type Rep DeleteProjectResponse :: Type -> Type #

Read DeleteProjectResponse Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteProject

Show DeleteProjectResponse Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteProject

NFData DeleteProjectResponse Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteProject

Methods

rnf :: DeleteProjectResponse -> () #

Eq DeleteProjectResponse Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteProject

type Rep DeleteProjectResponse Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteProject

type Rep DeleteProjectResponse = D1 ('MetaData "DeleteProjectResponse" "Amazonka.Rekognition.DeleteProject" "amazonka-rekognition-2.0-EaCrS9R3rWADqefEZvOx5B" 'False) (C1 ('MetaCons "DeleteProjectResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ProjectStatus)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteProjectResponse Source #

Create a value of DeleteProjectResponse 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:

DeleteProjectResponse, deleteProjectResponse_status - The current status of the delete project operation.

$sel:httpStatus:DeleteProjectResponse', deleteProjectResponse_httpStatus - The response's http status code.

Response Lenses

deleteProjectResponse_status :: Lens' DeleteProjectResponse (Maybe ProjectStatus) Source #

The current status of the delete project operation.