Struct aws_sdk_kinesis::model::Record
source · #[non_exhaustive]pub struct Record { /* private fields */ }
Expand description
The unit of data of the Kinesis data stream, which is composed of a sequence number, a partition key, and a data blob.
Implementations§
source§impl Record
impl Record
sourcepub fn sequence_number(&self) -> Option<&str>
pub fn sequence_number(&self) -> Option<&str>
The unique identifier of the record within its shard.
sourcepub fn approximate_arrival_timestamp(&self) -> Option<&DateTime>
pub fn approximate_arrival_timestamp(&self) -> Option<&DateTime>
The approximate time that the record was inserted into the stream.
sourcepub fn data(&self) -> Option<&Blob>
pub fn data(&self) -> Option<&Blob>
The data blob. The data in the blob is both opaque and immutable to Kinesis Data Streams, which does not inspect, interpret, or change the data in the blob in any way. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MiB).
sourcepub fn partition_key(&self) -> Option<&str>
pub fn partition_key(&self) -> Option<&str>
Identifies which shard in the stream the data record is assigned to.
sourcepub fn encryption_type(&self) -> Option<&EncryptionType>
pub fn encryption_type(&self) -> Option<&EncryptionType>
The encryption type used on the record. This parameter can be one of the following values:
-
NONE
: Do not encrypt the records in the stream. -
KMS
: Use server-side encryption on the records in the stream using a customer-managed Amazon Web Services KMS key.