import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { KinesisClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KinesisClient"; import type { ListStreamsInput, ListStreamsOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListStreamsCommand}. */ export interface ListStreamsCommandInput extends ListStreamsInput { } /** * @public * * The output of {@link ListStreamsCommand}. */ export interface ListStreamsCommandOutput extends ListStreamsOutput, __MetadataBearer { } declare const ListStreamsCommand_base: { new (input: ListStreamsCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [ListStreamsCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Lists your Kinesis data streams.

*

The number of streams may be too large to return from a single call to * ListStreams. You can limit the number of returned streams using the * Limit parameter. If you do not specify a value for the * Limit parameter, Kinesis Data Streams uses the default limit, which is * currently 100.

*

You can detect if there are more streams available to list by using the * HasMoreStreams flag from the returned output. If there are more streams * available, you can request more streams by using the name of the last stream returned by * the ListStreams request in the ExclusiveStartStreamName * parameter in a subsequent request to ListStreams. The group of stream names * returned by the subsequent request is then added to the list. You can continue this * process until all the stream names have been collected in the list.

*

* ListStreams has a limit of five transactions per second per * account.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { KinesisClient, ListStreamsCommand } from "@aws-sdk/client-kinesis"; // ES Modules import * // const { KinesisClient, ListStreamsCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import * // import type { KinesisClientConfig } from "@aws-sdk/client-kinesis"; * const config = {}; // type is KinesisClientConfig * const client = new KinesisClient(config); * const input = { // ListStreamsInput * Limit: Number("int"), * ExclusiveStartStreamName: "STRING_VALUE", * NextToken: "STRING_VALUE", * }; * const command = new ListStreamsCommand(input); * const response = await client.send(command); * // { // ListStreamsOutput * // StreamNames: [ // StreamNameList // required * // "STRING_VALUE", * // ], * // HasMoreStreams: true || false, // required * // NextToken: "STRING_VALUE", * // StreamSummaries: [ // StreamSummaryList * // { // StreamSummary * // StreamName: "STRING_VALUE", // required * // StreamARN: "STRING_VALUE", // required * // StreamStatus: "CREATING" || "DELETING" || "ACTIVE" || "UPDATING", // required * // StreamModeDetails: { // StreamModeDetails * // StreamMode: "PROVISIONED" || "ON_DEMAND", // required * // }, * // StreamCreationTimestamp: new Date("TIMESTAMP"), * // }, * // ], * // }; * * ``` * * @param ListStreamsCommandInput - {@link ListStreamsCommandInput} * @returns {@link ListStreamsCommandOutput} * @see {@link ListStreamsCommandInput} for command's `input` shape. * @see {@link ListStreamsCommandOutput} for command's `response` shape. * @see {@link KinesisClientResolvedConfig | config} for KinesisClient's `config` shape. * * @throws {@link ExpiredNextTokenException} (client fault) *

The pagination token passed to the operation is expired.

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

A specified parameter exceeds its restrictions, is not supported, or can't be used. * For more information, see the returned message.

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

The requested resource exceeds the maximum number allowed, or the number of concurrent * stream requests exceeds the maximum number allowed.

* * @throws {@link KinesisServiceException} *

Base exception class for all service exceptions from Kinesis service.

* * * @public */ export declare class ListStreamsCommand extends ListStreamsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListStreamsInput; output: ListStreamsOutput; }; sdk: { input: ListStreamsCommandInput; output: ListStreamsCommandOutput; }; }; }