Function mz_kinesis_util::list_shards
source · pub async fn list_shards(
client: &Client,
stream_name: &str
) -> Result<Vec<Shard>, SdkError<ListShardsError>>
Expand description
Lists the shards of the named Kinesis stream.
This function wraps the ListShards
API call. It returns all shards in a
given Kinesis stream, automatically handling pagination if required.
Errors
Any errors from the underlying GetShardIterator
API call are surfaced
directly.