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.ListCollections

Description

Lists all OpenSearch Serverless collections. For more information, see Creating and managing Amazon OpenSearch Serverless collections.

Make sure to include an empty request body {} if you don't include any collection filters in the request.

Synopsis

Creating a Request

data ListCollections Source #

See: newListCollections smart constructor.

Constructors

ListCollections' 

Fields

  • collectionFilters :: Maybe CollectionFilters

    List of filter names and values that you can use for requests.

  • maxResults :: Maybe Natural

    The maximum number of results to return. Default is 20. You can use nextToken to get the next page of results.

  • nextToken :: Maybe Text

    If your initial ListCollections operation returns a nextToken, you can include the returned nextToken in subsequent ListCollections operations, which returns results in the next page.

Instances

Instances details
ToJSON ListCollections Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.ListCollections

ToHeaders ListCollections Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.ListCollections

ToPath ListCollections Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.ListCollections

ToQuery ListCollections Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.ListCollections

AWSRequest ListCollections Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.ListCollections

Associated Types

type AWSResponse ListCollections #

Generic ListCollections Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.ListCollections

Associated Types

type Rep ListCollections :: Type -> Type #

Read ListCollections Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.ListCollections

Show ListCollections Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.ListCollections

NFData ListCollections Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.ListCollections

Methods

rnf :: ListCollections -> () #

Eq ListCollections Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.ListCollections

Hashable ListCollections Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.ListCollections

type AWSResponse ListCollections Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.ListCollections

type Rep ListCollections Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.ListCollections

type Rep ListCollections = D1 ('MetaData "ListCollections" "Amazonka.OpenSearchServerless.ListCollections" "amazonka-opensearchserverless-2.0-HnbMYszmsxrAMKjbvSoFws" 'False) (C1 ('MetaCons "ListCollections'" 'PrefixI 'True) (S1 ('MetaSel ('Just "collectionFilters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CollectionFilters)) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newListCollections :: ListCollections Source #

Create a value of ListCollections 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:collectionFilters:ListCollections', listCollections_collectionFilters - List of filter names and values that you can use for requests.

$sel:maxResults:ListCollections', listCollections_maxResults - The maximum number of results to return. Default is 20. You can use nextToken to get the next page of results.

ListCollections, listCollections_nextToken - If your initial ListCollections operation returns a nextToken, you can include the returned nextToken in subsequent ListCollections operations, which returns results in the next page.

Request Lenses

listCollections_collectionFilters :: Lens' ListCollections (Maybe CollectionFilters) Source #

List of filter names and values that you can use for requests.

listCollections_maxResults :: Lens' ListCollections (Maybe Natural) Source #

The maximum number of results to return. Default is 20. You can use nextToken to get the next page of results.

listCollections_nextToken :: Lens' ListCollections (Maybe Text) Source #

If your initial ListCollections operation returns a nextToken, you can include the returned nextToken in subsequent ListCollections operations, which returns results in the next page.

Destructuring the Response

data ListCollectionsResponse Source #

See: newListCollectionsResponse smart constructor.

Constructors

ListCollectionsResponse' 

Fields

Instances

Instances details
Generic ListCollectionsResponse Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.ListCollections

Associated Types

type Rep ListCollectionsResponse :: Type -> Type #

Read ListCollectionsResponse Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.ListCollections

Show ListCollectionsResponse Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.ListCollections

NFData ListCollectionsResponse Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.ListCollections

Methods

rnf :: ListCollectionsResponse -> () #

Eq ListCollectionsResponse Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.ListCollections

type Rep ListCollectionsResponse Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.ListCollections

type Rep ListCollectionsResponse = D1 ('MetaData "ListCollectionsResponse" "Amazonka.OpenSearchServerless.ListCollections" "amazonka-opensearchserverless-2.0-HnbMYszmsxrAMKjbvSoFws" 'False) (C1 ('MetaCons "ListCollectionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "collectionSummaries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [CollectionSummary])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListCollectionsResponse Source #

Create a value of ListCollectionsResponse 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:collectionSummaries:ListCollectionsResponse', listCollectionsResponse_collectionSummaries - Details about each collection.

ListCollections, listCollectionsResponse_nextToken - When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

$sel:httpStatus:ListCollectionsResponse', listCollectionsResponse_httpStatus - The response's http status code.

Response Lenses

listCollectionsResponse_nextToken :: Lens' ListCollectionsResponse (Maybe Text) Source #

When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.