| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.Rekognition.DeleteCollection
Description
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
- deleteCollection :: Text -> DeleteCollection
- data DeleteCollection
- dcCollectionId :: Lens' DeleteCollection Text
- deleteCollectionResponse :: Int -> DeleteCollectionResponse
- data DeleteCollectionResponse
- dcrsStatusCode :: Lens' DeleteCollectionResponse (Maybe Natural)
- dcrsResponseStatus :: Lens' DeleteCollectionResponse Int
Creating a Request
Arguments
| :: Text | |
| -> DeleteCollection |
Creates a value of DeleteCollection with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dcCollectionId- ID of the collection to delete.
data DeleteCollection Source #
See: deleteCollection smart constructor.
Instances
Request Lenses
dcCollectionId :: Lens' DeleteCollection Text Source #
ID of the collection to delete.
Destructuring the Response
deleteCollectionResponse Source #
Arguments
| :: Int | |
| -> DeleteCollectionResponse |
Creates a value of DeleteCollectionResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dcrsStatusCode- HTTP status code that indicates the result of the operation.dcrsResponseStatus- -- | The response status code.
data DeleteCollectionResponse Source #
See: deleteCollectionResponse smart constructor.
Instances
Response Lenses
dcrsStatusCode :: Lens' DeleteCollectionResponse (Maybe Natural) Source #
HTTP status code that indicates the result of the operation.
dcrsResponseStatus :: Lens' DeleteCollectionResponse Int Source #
- - | The response status code.