Skip to content

RejectedRecord

Source code in docs_src/capo_timestream_write/types/rejected_record.py
class RejectedRecord(TypedDict, closed=True):
    record_index: "capo_timestream_write.types.record_index.RecordIndex"
    """<p> The index of the record in the input request for WriteRecords. Indexes begin with 0. </p>"""
    reason: NotRequired["capo_timestream_write.types.error_message.ErrorMessage"]
    """<p> The reason why a record was not successfully inserted into Timestream. Possible causes of failure include: </p> <ul> <li> <p>Records with duplicate data where there are multiple records with the same dimensions, timestamps, and measure names but: </p> <ul> <li> <p>Measure values are different</p> </li> <li> <p>Version is not present in the request, <i>or</i> the value of version in the new record is equal to or lower than the existing value</p> </li> </ul> <p>If Timestream rejects data for this case, the <code>ExistingVersion</code> field in the <code>RejectedRecords</code> response will indicate the current record’s version. To force an update, you can resend the request with a version for the record set to a value greater than the <code>ExistingVersion</code>.</p> </li> <li> <p> Records with timestamps that lie outside the retention duration of the memory store. </p> <note> <p>When the retention window is updated, you will receive a <code>RejectedRecords</code> exception if you immediately try to ingest data within the new window. To avoid a <code>RejectedRecords</code> exception, wait until the duration of the new window to ingest new data. For further information, see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/best-practices.html#configuration"> Best Practices for Configuring Timestream</a> and <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/storage.html">the explanation of how storage works in Timestream</a>.</p> </note> </li> <li> <p> Records with dimensions or measures that exceed the Timestream defined limits. </p> </li> </ul> <p> For more information, see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Access Management</a> in the Timestream Developer Guide. </p>"""
    existing_version: NotRequired[
        "capo_timestream_write.types.record_version.RecordVersion"
    ]
    """<p>The existing version of the record. This value is populated in scenarios where an identical record exists with a higher version than the version in the write request.</p>"""

existing_version instance-attribute

existing_version: NotRequired[RecordVersion]

The existing version of the record. This value is populated in scenarios where an identical record exists with a higher version than the version in the write request.

reason instance-attribute

reason: NotRequired[ErrorMessage]

The reason why a record was not successfully inserted into Timestream. Possible causes of failure include:

  • Records with duplicate data where there are multiple records with the same dimensions, timestamps, and measure names but:

    • Measure values are different

    • Version is not present in the request, or the value of version in the new record is equal to or lower than the existing value

    If Timestream rejects data for this case, the ExistingVersion field in the RejectedRecords response will indicate the current record’s version. To force an update, you can resend the request with a version for the record set to a value greater than the ExistingVersion.

  • Records with timestamps that lie outside the retention duration of the memory store.

    When the retention window is updated, you will receive a RejectedRecords exception if you immediately try to ingest data within the new window. To avoid a RejectedRecords exception, wait until the duration of the new window to ingest new data. For further information, see Best Practices for Configuring Timestream and the explanation of how storage works in Timestream.

  • Records with dimensions or measures that exceed the Timestream defined limits.

For more information, see Access Management in the Timestream Developer Guide.

record_index instance-attribute

record_index: RecordIndex

The index of the record in the input request for WriteRecords. Indexes begin with 0.