| 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.OpenSearchServerless.DeleteCollection
Description
Deletes an OpenSearch Serverless collection. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
Synopsis
- data DeleteCollection = DeleteCollection' {
- clientToken :: Maybe Text
- id :: Text
- newDeleteCollection :: Text -> DeleteCollection
- deleteCollection_clientToken :: Lens' DeleteCollection (Maybe Text)
- deleteCollection_id :: Lens' DeleteCollection Text
- data DeleteCollectionResponse = DeleteCollectionResponse' {}
- newDeleteCollectionResponse :: Int -> DeleteCollectionResponse
- deleteCollectionResponse_deleteCollectionDetail :: Lens' DeleteCollectionResponse (Maybe DeleteCollectionDetail)
- 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:
$sel:clientToken:DeleteCollection', deleteCollection_clientToken - A unique, case-sensitive identifier to ensure idempotency of the
request.
DeleteCollection, deleteCollection_id - The unique identifier of the collection. For example, 1iu5usc406kd.
The ID is part of the collection endpoint. You can also retrieve it
using the
ListCollections
API.
Request Lenses
deleteCollection_clientToken :: Lens' DeleteCollection (Maybe Text) Source #
A unique, case-sensitive identifier to ensure idempotency of the request.
deleteCollection_id :: Lens' DeleteCollection Text Source #
The unique identifier of the collection. For example, 1iu5usc406kd.
The ID is part of the collection endpoint. You can also retrieve it
using the
ListCollections
API.
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:deleteCollectionDetail:DeleteCollectionResponse', deleteCollectionResponse_deleteCollectionDetail - Details of the deleted collection.
$sel:httpStatus:DeleteCollectionResponse', deleteCollectionResponse_httpStatus - The response's http status code.
Response Lenses
deleteCollectionResponse_deleteCollectionDetail :: Lens' DeleteCollectionResponse (Maybe DeleteCollectionDetail) Source #
Details of the deleted collection.
deleteCollectionResponse_httpStatus :: Lens' DeleteCollectionResponse Int Source #
The response's http status code.