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 |
Updates an OpenSearch Serverless collection.
Synopsis
- data UpdateCollection = UpdateCollection' {
- clientToken :: Maybe Text
- description :: Maybe Text
- id :: Text
- newUpdateCollection :: Text -> UpdateCollection
- updateCollection_clientToken :: Lens' UpdateCollection (Maybe Text)
- updateCollection_description :: Lens' UpdateCollection (Maybe Text)
- updateCollection_id :: Lens' UpdateCollection Text
- data UpdateCollectionResponse = UpdateCollectionResponse' {}
- newUpdateCollectionResponse :: Int -> UpdateCollectionResponse
- updateCollectionResponse_updateCollectionDetail :: Lens' UpdateCollectionResponse (Maybe UpdateCollectionDetail)
- updateCollectionResponse_httpStatus :: Lens' UpdateCollectionResponse Int
Creating a Request
data UpdateCollection Source #
See: newUpdateCollection
smart constructor.
UpdateCollection' | |
|
Instances
Create a value of UpdateCollection
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:UpdateCollection'
, updateCollection_clientToken
- Unique, case-sensitive identifier to ensure idempotency of the request.
UpdateCollection
, updateCollection_description
- A description of the collection.
UpdateCollection
, updateCollection_id
- The unique identifier of the collection.
Request Lenses
updateCollection_clientToken :: Lens' UpdateCollection (Maybe Text) Source #
Unique, case-sensitive identifier to ensure idempotency of the request.
updateCollection_description :: Lens' UpdateCollection (Maybe Text) Source #
A description of the collection.
updateCollection_id :: Lens' UpdateCollection Text Source #
The unique identifier of the collection.
Destructuring the Response
data UpdateCollectionResponse Source #
See: newUpdateCollectionResponse
smart constructor.
UpdateCollectionResponse' | |
|
Instances
newUpdateCollectionResponse Source #
Create a value of UpdateCollectionResponse
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:updateCollectionDetail:UpdateCollectionResponse'
, updateCollectionResponse_updateCollectionDetail
- Details about the updated collection.
$sel:httpStatus:UpdateCollectionResponse'
, updateCollectionResponse_httpStatus
- The response's http status code.
Response Lenses
updateCollectionResponse_updateCollectionDetail :: Lens' UpdateCollectionResponse (Maybe UpdateCollectionDetail) Source #
Details about the updated collection.
updateCollectionResponse_httpStatus :: Lens' UpdateCollectionResponse Int Source #
The response's http status code.