amazonka-opensearchserverless-2.0: Amazon OpenSearch Service Serverless SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.OpenSearchServerless.BatchGetCollection

Description

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

Creating a Request

data BatchGetCollection Source #

See: newBatchGetCollection smart constructor.

Constructors

BatchGetCollection' 

Fields

  • ids :: Maybe (NonEmpty Text)

    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.

  • names :: Maybe (NonEmpty Text)

    A list of collection names. You can't provide names and IDs in the same request.

Instances

Instances details
ToJSON BatchGetCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.BatchGetCollection

ToHeaders BatchGetCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.BatchGetCollection

ToPath BatchGetCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.BatchGetCollection

ToQuery BatchGetCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.BatchGetCollection

AWSRequest BatchGetCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.BatchGetCollection

Associated Types

type AWSResponse BatchGetCollection #

Generic BatchGetCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.BatchGetCollection

Associated Types

type Rep BatchGetCollection :: Type -> Type #

Read BatchGetCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.BatchGetCollection

Show BatchGetCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.BatchGetCollection

NFData BatchGetCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.BatchGetCollection

Methods

rnf :: BatchGetCollection -> () #

Eq BatchGetCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.BatchGetCollection

Hashable BatchGetCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.BatchGetCollection

type AWSResponse BatchGetCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.BatchGetCollection

type Rep BatchGetCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.BatchGetCollection

type Rep BatchGetCollection = D1 ('MetaData "BatchGetCollection" "Amazonka.OpenSearchServerless.BatchGetCollection" "amazonka-opensearchserverless-2.0-HnbMYszmsxrAMKjbvSoFws" 'False) (C1 ('MetaCons "BatchGetCollection'" 'PrefixI 'True) (S1 ('MetaSel ('Just "ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "names") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text)))))

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.

Constructors

BatchGetCollectionResponse' 

Fields

Instances

Instances details
Generic BatchGetCollectionResponse Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.BatchGetCollection

Associated Types

type Rep BatchGetCollectionResponse :: Type -> Type #

Read BatchGetCollectionResponse Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.BatchGetCollection

Show BatchGetCollectionResponse Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.BatchGetCollection

NFData BatchGetCollectionResponse Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.BatchGetCollection

Eq BatchGetCollectionResponse Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.BatchGetCollection

type Rep BatchGetCollectionResponse Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.BatchGetCollection

type Rep BatchGetCollectionResponse = D1 ('MetaData "BatchGetCollectionResponse" "Amazonka.OpenSearchServerless.BatchGetCollection" "amazonka-opensearchserverless-2.0-HnbMYszmsxrAMKjbvSoFws" 'False) (C1 ('MetaCons "BatchGetCollectionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "collectionDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [CollectionDetail])) :*: (S1 ('MetaSel ('Just "collectionErrorDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [CollectionErrorDetail])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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