- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
ListDeliveryStreamsCommand
Lists your Firehose streams in alphabetical order of their names.
The number of Firehose streams might be too large to return using a single call to ListDeliveryStreams
. You can limit the number of Firehose streams returned, using the Limit
parameter. To determine whether there are more delivery streams to list, check the value of HasMoreDeliveryStreams
in the output. If there are more Firehose streams to list, you can request them by calling this operation again and setting the ExclusiveStartDeliveryStreamName
parameter to the name of the last Firehose stream returned in the last call.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { FirehoseClient, ListDeliveryStreamsCommand } from "@aws-sdk/client-firehose"; // ES Modules import
// const { FirehoseClient, ListDeliveryStreamsCommand } = require("@aws-sdk/client-firehose"); // CommonJS import
const client = new FirehoseClient(config);
const input = { // ListDeliveryStreamsInput
Limit: Number("int"),
DeliveryStreamType: "DirectPut" || "KinesisStreamAsSource" || "MSKAsSource" || "DatabaseAsSource",
ExclusiveStartDeliveryStreamName: "STRING_VALUE",
};
const command = new ListDeliveryStreamsCommand(input);
const response = await client.send(command);
// { // ListDeliveryStreamsOutput
// DeliveryStreamNames: [ // DeliveryStreamNameList // required
// "STRING_VALUE",
// ],
// HasMoreDeliveryStreams: true || false, // required
// };
ListDeliveryStreamsCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
DeliveryStreamType | DeliveryStreamType | undefined | The Firehose stream type. This can be one of the following values:
This parameter is optional. If this parameter is omitted, Firehose streams of all types are returned. |
ExclusiveStartDeliveryStreamName | string | undefined | The list of Firehose streams returned by this call to |
Limit | number | undefined | The maximum number of Firehose streams to list. The default value is 10. |
ListDeliveryStreamsCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
DeliveryStreamNames Required | string[] | undefined | The names of the Firehose streams. |
HasMoreDeliveryStreams Required | boolean | undefined | Indicates whether there are more Firehose streams available to list. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
FirehoseServiceException | Base exception class for all service exceptions from Firehose service. |