Skip to content

List Streams

kinesis_list_streams R Documentation

Lists your Kinesis data streams

Description

Lists your Kinesis data streams.

The number of streams may be too large to return from a single call to list_streams. 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 list_streams request in the ExclusiveStartStreamName parameter in a subsequent request to list_streams. 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.

list_streams has a limit of five transactions per second per account.

Usage

kinesis_list_streams(Limit, ExclusiveStartStreamName, NextToken)

Arguments

Limit

The maximum number of streams to list. The default value is 100. If you specify a value greater than 100, at most 100 results are returned.

ExclusiveStartStreamName

The name of the stream to start the list with.

NextToken

Value

A list with the following syntax:

list(
  StreamNames = list(
    "string"
  ),
  HasMoreStreams = TRUE|FALSE,
  NextToken = "string",
  StreamSummaries = list(
    list(
      StreamName = "string",
      StreamARN = "string",
      StreamStatus = "CREATING"|"DELETING"|"ACTIVE"|"UPDATING",
      StreamModeDetails = list(
        StreamMode = "PROVISIONED"|"ON_DEMAND"
      ),
      StreamCreationTimestamp = as.POSIXct(
        "2015-01-01"
      )
    )
  )
)

Request syntax

svc$list_streams(
  Limit = 123,
  ExclusiveStartStreamName = "string",
  NextToken = "string"
)