Skip to content

QueueStartingPosition

Source code in docs_src/capo_kinesis/types/queue_starting_position.py
class QueueStartingPosition(TypedDict, closed=True):
    type: "capo_kinesis.types.queue_starting_position_type.QueueStartingPositionType"
    """<p>You can set the starting position to one of the following values:</p> <p> <code>LATEST</code>: Delivers records that arrive after you create the queue. This is the default.</p> <p> <code>TRIM_HORIZON</code>: Start delivering at the last untrimmed record in the stream, which is the oldest record the stream still retains.</p> <p> <code>AT_TIMESTAMP</code>: Delivers records that arrive at or after a time stamp that you provide.</p>"""
    timestamp: NotRequired["capo_kinesis.types.timestamp.Timestamp"]
    """<p>The approximate time from which the queue begins delivering records. Records that arrive at approximately this time or later are delivered.</p> <p>In a request, specify this value only when <code>Type</code> is <code>AT_TIMESTAMP</code>. It is required in that case, and specifying it for any other type returns a <code>ValidationException</code>.</p> <p>In a response, this value is approximate and reflects the queue's effective starting position. While the queue is <code>CREATING</code>, the response echoes what you configured: for <code>AT_TIMESTAMP</code>, the timestamp you provided, and for <code>TRIM_HORIZON</code> and <code>LATEST</code>, this member is absent because the effective position is not yet determined. Once the queue is <code>ACTIVE</code>, the response always includes this member. For <code>AT_TIMESTAMP</code>, it is the timestamp you provided or the earliest time the stream can be read from, whichever is later.</p>"""

timestamp instance-attribute

timestamp: NotRequired[Timestamp]

The approximate time from which the queue begins delivering records. Records that arrive at approximately this time or later are delivered.

In a request, specify this value only when Type is AT_TIMESTAMP. It is required in that case, and specifying it for any other type returns a ValidationException.

In a response, this value is approximate and reflects the queue's effective starting position. While the queue is CREATING, the response echoes what you configured: for AT_TIMESTAMP, the timestamp you provided, and for TRIM_HORIZON and LATEST, this member is absent because the effective position is not yet determined. Once the queue is ACTIVE, the response always includes this member. For AT_TIMESTAMP, it is the timestamp you provided or the earliest time the stream can be read from, whichever is later.

type instance-attribute

You can set the starting position to one of the following values:

LATEST: Delivers records that arrive after you create the queue. This is the default.

TRIM_HORIZON: Start delivering at the last untrimmed record in the stream, which is the oldest record the stream still retains.

AT_TIMESTAMP: Delivers records that arrive at or after a time stamp that you provide.