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 |
Creates a new OpenSearch Serverless collection. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
Synopsis
- data CreateCollection = CreateCollection' {
- clientToken :: Maybe Text
- description :: Maybe Text
- tags :: Maybe [Tag]
- type' :: Maybe CollectionType
- name :: Text
- newCreateCollection :: Text -> CreateCollection
- createCollection_clientToken :: Lens' CreateCollection (Maybe Text)
- createCollection_description :: Lens' CreateCollection (Maybe Text)
- createCollection_tags :: Lens' CreateCollection (Maybe [Tag])
- createCollection_type :: Lens' CreateCollection (Maybe CollectionType)
- createCollection_name :: Lens' CreateCollection Text
- data CreateCollectionResponse = CreateCollectionResponse' {}
- newCreateCollectionResponse :: Int -> CreateCollectionResponse
- createCollectionResponse_createCollectionDetail :: Lens' CreateCollectionResponse (Maybe CreateCollectionDetail)
- createCollectionResponse_httpStatus :: Lens' CreateCollectionResponse Int
Creating a Request
data CreateCollection Source #
See: newCreateCollection
smart constructor.
CreateCollection' | |
|
Instances
Create a value of CreateCollection
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:CreateCollection'
, createCollection_clientToken
- Unique, case-sensitive identifier to ensure idempotency of the request.
CreateCollection
, createCollection_description
- Description of the collection.
$sel:tags:CreateCollection'
, createCollection_tags
- An arbitrary set of tags (key–value pairs) to associate with the
OpenSearch Serverless collection.
CreateCollection
, createCollection_type
- The type of collection.
CreateCollection
, createCollection_name
- Name of the collection.
Request Lenses
createCollection_clientToken :: Lens' CreateCollection (Maybe Text) Source #
Unique, case-sensitive identifier to ensure idempotency of the request.
createCollection_description :: Lens' CreateCollection (Maybe Text) Source #
Description of the collection.
createCollection_tags :: Lens' CreateCollection (Maybe [Tag]) Source #
An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.
createCollection_type :: Lens' CreateCollection (Maybe CollectionType) Source #
The type of collection.
createCollection_name :: Lens' CreateCollection Text Source #
Name of the collection.
Destructuring the Response
data CreateCollectionResponse Source #
See: newCreateCollectionResponse
smart constructor.
CreateCollectionResponse' | |
|
Instances
newCreateCollectionResponse Source #
Create a value of CreateCollectionResponse
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:createCollectionDetail:CreateCollectionResponse'
, createCollectionResponse_createCollectionDetail
- Details about the collection.
$sel:httpStatus:CreateCollectionResponse'
, createCollectionResponse_httpStatus
- The response's http status code.
Response Lenses
createCollectionResponse_createCollectionDetail :: Lens' CreateCollectionResponse (Maybe CreateCollectionDetail) Source #
Details about the collection.
createCollectionResponse_httpStatus :: Lens' CreateCollectionResponse Int Source #
The response's http status code.