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 |
Returns attributes for one or more collections, including the collection endpoint and the OpenSearch Dashboards endpoint. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
Synopsis
- data BatchGetCollection = BatchGetCollection' {}
- newBatchGetCollection :: BatchGetCollection
- batchGetCollection_ids :: Lens' BatchGetCollection (Maybe (NonEmpty Text))
- batchGetCollection_names :: Lens' BatchGetCollection (Maybe (NonEmpty Text))
- data BatchGetCollectionResponse = BatchGetCollectionResponse' {}
- newBatchGetCollectionResponse :: Int -> BatchGetCollectionResponse
- batchGetCollectionResponse_collectionDetails :: Lens' BatchGetCollectionResponse (Maybe [CollectionDetail])
- batchGetCollectionResponse_collectionErrorDetails :: Lens' BatchGetCollectionResponse (Maybe [CollectionErrorDetail])
- batchGetCollectionResponse_httpStatus :: Lens' BatchGetCollectionResponse Int
Creating a Request
data BatchGetCollection Source #
See: newBatchGetCollection
smart constructor.
BatchGetCollection' | |
|
Instances
newBatchGetCollection :: BatchGetCollection Source #
Create a value of BatchGetCollection
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:ids:BatchGetCollection'
, batchGetCollection_ids
- A list of collection IDs. You can't provide names and IDs in the same
request. The ID is part of the collection endpoint. You can also
retrieve it using the
ListCollections
API.
$sel:names:BatchGetCollection'
, batchGetCollection_names
- A list of collection names. You can't provide names and IDs in the same
request.
Request Lenses
batchGetCollection_ids :: Lens' BatchGetCollection (Maybe (NonEmpty Text)) Source #
A list of collection IDs. You can't provide names and IDs in the same request. The ID is part of the collection endpoint. You can also retrieve it using the ListCollections API.
batchGetCollection_names :: Lens' BatchGetCollection (Maybe (NonEmpty Text)) Source #
A list of collection names. You can't provide names and IDs in the same request.
Destructuring the Response
data BatchGetCollectionResponse Source #
See: newBatchGetCollectionResponse
smart constructor.
BatchGetCollectionResponse' | |
|
Instances
newBatchGetCollectionResponse Source #
Create a value of BatchGetCollectionResponse
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:collectionDetails:BatchGetCollectionResponse'
, batchGetCollectionResponse_collectionDetails
- Details about each collection.
$sel:collectionErrorDetails:BatchGetCollectionResponse'
, batchGetCollectionResponse_collectionErrorDetails
- Error information for the request.
$sel:httpStatus:BatchGetCollectionResponse'
, batchGetCollectionResponse_httpStatus
- The response's http status code.
Response Lenses
batchGetCollectionResponse_collectionDetails :: Lens' BatchGetCollectionResponse (Maybe [CollectionDetail]) Source #
Details about each collection.
batchGetCollectionResponse_collectionErrorDetails :: Lens' BatchGetCollectionResponse (Maybe [CollectionErrorDetail]) Source #
Error information for the request.
batchGetCollectionResponse_httpStatus :: Lens' BatchGetCollectionResponse Int Source #
The response's http status code.