listCollections

abstract suspend fun listCollections(input: ListCollectionsRequest = ListCollectionsRequest { }): ListCollectionsResponse

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.