Skip to content

Kinesis  >  Structures  >  Shard

Shard

Structure Class

Shard dataclass

Bases: _SerdeShape

A uniquely identified group of data records in a Kinesis data stream.

Attributes

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

The shard ID of the shard adjacent to the shard's parent.

hash_key_range instance-attribute
hash_key_range: HashKeyRange

The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.

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

The shard ID of the shard's parent.

sequence_number_range instance-attribute
sequence_number_range: SequenceNumberRange

The range of possible sequence numbers for the shard.

shard_id instance-attribute
shard_id: str

The unique identifier of the shard within the stream.