Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Deletes the specified collection. Note that this operation removes all faces in the collection. For an example, see delete-collection-procedure.
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.
DeleteCollection' | |
|
Instances
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:
$sel:collectionId: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.
DeleteCollectionResponse' | |
|
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.