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

Description

Deletes the specified collection. Note that this operation removes all faces in the collection. For an example, see Deleting a collection.

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

Synopsis

Creating a Request

data DeleteCollection Source #

See: newDeleteCollection smart constructor.

Constructors

DeleteCollection' 

Fields

Instances

Instances details
ToJSON DeleteCollection Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteCollection

ToHeaders DeleteCollection Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteCollection

ToPath DeleteCollection Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteCollection

ToQuery DeleteCollection Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteCollection

AWSRequest DeleteCollection Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteCollection

Associated Types

type AWSResponse DeleteCollection #

Generic DeleteCollection Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteCollection

Associated Types

type Rep DeleteCollection :: Type -> Type #

Read DeleteCollection Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteCollection

Show DeleteCollection Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteCollection

NFData DeleteCollection Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteCollection

Methods

rnf :: DeleteCollection -> () #

Eq DeleteCollection Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteCollection

Hashable DeleteCollection Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteCollection

type AWSResponse DeleteCollection Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteCollection

type Rep DeleteCollection Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteCollection

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

newDeleteCollection Source #

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

DeleteCollection, deleteCollection_collectionId - ID of the collection to delete.

Request Lenses

Destructuring the Response

data DeleteCollectionResponse Source #

See: newDeleteCollectionResponse smart constructor.

Constructors

DeleteCollectionResponse' 

Fields

Instances

Instances details
Generic DeleteCollectionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteCollection

Associated Types

type Rep DeleteCollectionResponse :: Type -> Type #

Read DeleteCollectionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteCollection

Show DeleteCollectionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteCollection

NFData DeleteCollectionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteCollection

Eq DeleteCollectionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteCollection

type Rep DeleteCollectionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.DeleteCollection

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

newDeleteCollectionResponse Source #

Create a value of DeleteCollectionResponse 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:statusCode:DeleteCollectionResponse', deleteCollectionResponse_statusCode - HTTP status code that indicates the result of the operation.

$sel:httpStatus:DeleteCollectionResponse', deleteCollectionResponse_httpStatus - The response's http status code.

Response Lenses

deleteCollectionResponse_statusCode :: Lens' DeleteCollectionResponse (Maybe Natural) Source #

HTTP status code that indicates the result of the operation.