Function mz_aws_util::kinesis::list_shards
source · [−]pub async fn list_shards(
client: &Client,
stream_name: &str
) -> Result<Vec<Shard>, SdkError<ListShardsError>>
This is supported on crate feature
kinesis
only.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.