Struct aws_sdk_kinesis::operation::list_shards::ListShardsOutput
source · #[non_exhaustive]pub struct ListShardsOutput {
pub shards: Option<Vec<Shard>>,
pub next_token: Option<String>,
/* private fields */
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.shards: Option<Vec<Shard>>An array of JSON objects. Each object represents one shard and specifies the IDs of the shard, the shard's parent, and the shard that's adjacent to the shard's parent. Each object also contains the starting and ending hash keys and the starting and ending sequence numbers for the shard.
next_token: Option<String>When the number of shards in the data stream is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of shards in the data stream, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListShards to list the next set of shards. For more information about the use of this pagination token when calling the ListShards operation, see ListShardsInput$NextToken.
Tokens expire after 300 seconds. When you obtain a value for NextToken in the response to a call to ListShards, you have 300 seconds to use that value. If you specify an expired token in a call to ListShards, you get ExpiredNextTokenException.
Implementations§
source§impl ListShardsOutput
impl ListShardsOutput
sourcepub fn shards(&self) -> &[Shard]
pub fn shards(&self) -> &[Shard]
An array of JSON objects. Each object represents one shard and specifies the IDs of the shard, the shard's parent, and the shard that's adjacent to the shard's parent. Each object also contains the starting and ending hash keys and the starting and ending sequence numbers for the shard.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .shards.is_none().
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
When the number of shards in the data stream is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of shards in the data stream, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListShards to list the next set of shards. For more information about the use of this pagination token when calling the ListShards operation, see ListShardsInput$NextToken.
Tokens expire after 300 seconds. When you obtain a value for NextToken in the response to a call to ListShards, you have 300 seconds to use that value. If you specify an expired token in a call to ListShards, you get ExpiredNextTokenException.
source§impl ListShardsOutput
impl ListShardsOutput
sourcepub fn builder() -> ListShardsOutputBuilder
pub fn builder() -> ListShardsOutputBuilder
Creates a new builder-style object to manufacture ListShardsOutput.
Trait Implementations§
source§impl Clone for ListShardsOutput
impl Clone for ListShardsOutput
source§fn clone(&self) -> ListShardsOutput
fn clone(&self) -> ListShardsOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ListShardsOutput
impl Debug for ListShardsOutput
source§impl PartialEq for ListShardsOutput
impl PartialEq for ListShardsOutput
source§fn eq(&self, other: &ListShardsOutput) -> bool
fn eq(&self, other: &ListShardsOutput) -> bool
self and other values to be equal, and is used
by ==.source§impl RequestId for ListShardsOutput
impl RequestId for ListShardsOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.