| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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
- data DeleteCollection = DeleteCollection' {
- collectionId :: Text
- newDeleteCollection :: Text -> DeleteCollection
- deleteCollection_collectionId :: Lens' DeleteCollection Text
- data DeleteCollectionResponse = DeleteCollectionResponse' {
- statusCode :: Maybe Natural
- httpStatus :: Int
- newDeleteCollectionResponse :: Int -> DeleteCollectionResponse
- deleteCollectionResponse_statusCode :: Lens' DeleteCollectionResponse (Maybe Natural)
- deleteCollectionResponse_httpStatus :: Lens' DeleteCollectionResponse Int
Creating a Request
data DeleteCollection Source #
See: newDeleteCollection smart constructor.
Constructors
| DeleteCollection' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DeleteCollection |
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
deleteCollection_collectionId :: Lens' DeleteCollection Text Source #
ID of the collection to delete.
Destructuring the Response
data DeleteCollectionResponse Source #
See: newDeleteCollectionResponse smart constructor.
Constructors
| DeleteCollectionResponse' | |
Fields
| |
Instances
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.
deleteCollectionResponse_httpStatus :: Lens' DeleteCollectionResponse Int Source #
The response's http status code.