Struct aws_sdk_dynamodbstreams::client::fluent_builders::GetShardIterator [−][src]
pub struct GetShardIterator<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to GetShardIterator
.
Returns a shard iterator. A shard iterator provides information
about how to retrieve the stream records from within a shard. Use
the shard iterator in a subsequent
GetRecords
request to read the stream records
from the shard.
A shard iterator expires 15 minutes after it is returned to the requester.
Implementations
impl<C, M, R> GetShardIterator<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> GetShardIterator<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<GetShardIteratorOutput, SdkError<GetShardIteratorError>> where
R::Policy: SmithyRetryPolicy<GetShardIteratorInputOperationOutputAlias, GetShardIteratorOutput, GetShardIteratorError, GetShardIteratorInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<GetShardIteratorOutput, SdkError<GetShardIteratorError>> where
R::Policy: SmithyRetryPolicy<GetShardIteratorInputOperationOutputAlias, GetShardIteratorOutput, GetShardIteratorError, GetShardIteratorInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The Amazon Resource Name (ARN) for the stream.
The Amazon Resource Name (ARN) for the stream.
The identifier of the shard. The iterator will be returned for this shard ID.
The identifier of the shard. The iterator will be returned for this shard ID.
Determines how the shard iterator is used to start reading stream records from the shard:
-
AT_SEQUENCE_NUMBER
- Start reading exactly from the position denoted by a specific sequence number. -
AFTER_SEQUENCE_NUMBER
- Start reading right after the position denoted by a specific sequence number. -
TRIM_HORIZON
- Start reading at the last (untrimmed) stream record, which is the oldest record in the shard. In DynamoDB Streams, there is a 24 hour limit on data retention. Stream records whose age exceeds this limit are subject to removal (trimming) from the stream. -
LATEST
- Start reading just after the most recent stream record in the shard, so that you always read the most recent data in the shard.
Determines how the shard iterator is used to start reading stream records from the shard:
-
AT_SEQUENCE_NUMBER
- Start reading exactly from the position denoted by a specific sequence number. -
AFTER_SEQUENCE_NUMBER
- Start reading right after the position denoted by a specific sequence number. -
TRIM_HORIZON
- Start reading at the last (untrimmed) stream record, which is the oldest record in the shard. In DynamoDB Streams, there is a 24 hour limit on data retention. Stream records whose age exceeds this limit are subject to removal (trimming) from the stream. -
LATEST
- Start reading just after the most recent stream record in the shard, so that you always read the most recent data in the shard.
The sequence number of a stream record in the shard from which to start reading.
The sequence number of a stream record in the shard from which to start reading.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for GetShardIterator<C, M, R>
impl<C, M, R> Send for GetShardIterator<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for GetShardIterator<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for GetShardIterator<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for GetShardIterator<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more