import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListCollectionsRequest, ListCollectionsResponse } from "../models/models_0"; import type { OpenSearchServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchServerlessClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListCollectionsCommand}. */ export interface ListCollectionsCommandInput extends ListCollectionsRequest { } /** * @public * * The output of {@link ListCollectionsCommand}. */ export interface ListCollectionsCommandOutput extends ListCollectionsResponse, __MetadataBearer { } declare const ListCollectionsCommand_base: { new (input: ListCollectionsCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [ListCollectionsCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

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.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { OpenSearchServerlessClient, ListCollectionsCommand } from "@aws-sdk/client-opensearchserverless"; // ES Modules import * // const { OpenSearchServerlessClient, ListCollectionsCommand } = require("@aws-sdk/client-opensearchserverless"); // CommonJS import * // import type { OpenSearchServerlessClientConfig } from "@aws-sdk/client-opensearchserverless"; * const config = {}; // type is OpenSearchServerlessClientConfig * const client = new OpenSearchServerlessClient(config); * const input = { // ListCollectionsRequest * collectionFilters: { // CollectionFilters * name: "STRING_VALUE", * status: "STRING_VALUE", * collectionGroupName: "STRING_VALUE", * }, * nextToken: "STRING_VALUE", * maxResults: Number("int"), * }; * const command = new ListCollectionsCommand(input); * const response = await client.send(command); * // { // ListCollectionsResponse * // collectionSummaries: [ // CollectionSummaries * // { // CollectionSummary * // id: "STRING_VALUE", * // name: "STRING_VALUE", * // status: "STRING_VALUE", * // arn: "STRING_VALUE", * // kmsKeyArn: "STRING_VALUE", * // collectionGroupName: "STRING_VALUE", * // }, * // ], * // nextToken: "STRING_VALUE", * // }; * * ``` * * @param ListCollectionsCommandInput - {@link ListCollectionsCommandInput} * @returns {@link ListCollectionsCommandOutput} * @see {@link ListCollectionsCommandInput} for command's `input` shape. * @see {@link ListCollectionsCommandOutput} for command's `response` shape. * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape. * * @throws {@link InternalServerException} (server fault) *

Thrown when an error internal to the service occurs while processing a request.

* * @throws {@link ValidationException} (client fault) *

Thrown when the HTTP request contains invalid input or is missing required input.

* * @throws {@link OpenSearchServerlessServiceException} *

Base exception class for all service exceptions from OpenSearchServerless service.

* * * @public */ export declare class ListCollectionsCommand extends ListCollectionsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListCollectionsRequest; output: ListCollectionsResponse; }; sdk: { input: ListCollectionsCommandInput; output: ListCollectionsCommandOutput; }; }; }