class
Amazonite::Kinesis::Record
- Amazonite::Kinesis::Record
- Reference
- Object
Overview
The unit of data of the Kinesis data stream, which is composed of a sequence number, a partition key, and a data blob.
Included Modules
- JSON::Serializable
Defined in:
kinesis/record.crConstructors
- .new(sequence_number : String, data : Bytes, partition_key : String, approximate_arrival_timestamp : Time | Nil = nil, encryption_type : EncryptionType | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#approximate_arrival_timestamp : Time | Nil
The approximate time that the record was inserted into the stream.
-
#approximate_arrival_timestamp=(approximate_arrival_timestamp : Time | Nil)
The approximate time that the record was inserted into the stream.
-
#data : Bytes
The data blob.
-
#data=(data : Bytes)
The data blob.
-
#encryption_type : EncryptionType | Nil
The encryption type used on the record.
-
#encryption_type=(encryption_type : EncryptionType | Nil)
The encryption type used on the record.
-
#hash(hasher)
See
Object#hash(hasher) -
#partition_key : String
Identifies which shard in the stream the data record is assigned to.
-
#partition_key=(partition_key : String)
Identifies which shard in the stream the data record is assigned to.
-
#sequence_number : String
The unique identifier of the record within its shard.
-
#sequence_number=(sequence_number : String)
The unique identifier of the record within its shard.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
The approximate time that the record was inserted into the stream.
The approximate time that the record was inserted into the stream.
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 (10 MiB).
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 (10 MiB).
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.
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.
Identifies which shard in the stream the data record is assigned to.
The unique identifier of the record within its shard.