Skip to content

Kinesis  >  Structures  >  PutRecordsResultEntry

PutRecordsResultEntry

Structure Class

PutRecordsResultEntry dataclass

Bases: _SerdeShape

Represents the result of an individual record from a PutRecords request. A record that is successfully added to a stream includes SequenceNumber and ShardId in the result. A record that fails to be added to the stream includes ErrorCode and ErrorMessage in the result.

Attributes

error_code class-attribute instance-attribute
error_code: str | None = ...

The error code for an individual record result. ErrorCodes can be either ProvisionedThroughputExceededException or InternalFailure.

error_message class-attribute instance-attribute
error_message: str | None = ...

The error message for an individual record result. An ErrorCode value of ProvisionedThroughputExceededException has an error message that includes the account ID, stream name, and shard ID. An ErrorCode value of InternalFailure has the error message "Internal Service Failure".

sequence_number class-attribute instance-attribute
sequence_number: str | None = ...

The sequence number for an individual record result.

shard_id class-attribute instance-attribute
shard_id: str | None = ...

The shard ID for an individual record result.