AWSKinesisRecord

@interface AWSKinesisRecord

The unit of data of the Kinesis data stream, which is composed of a sequence number, a partition key, and a data blob.

Required parameters: [SequenceNumber, Data, PartitionKey]

  • The approximate time that the record was inserted into the stream.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic)
        NSDate *_Nullable approximateArrivalTimestamp;

    Swift

    var approximateArrivalTimestamp: Date? { get set }
  • 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 MB).

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSData *_Nullable data;

    Swift

    var data: Data? { get set }
  • 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 AWS KMS key.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) AWSKinesisEncryptionType encryptionType;

    Swift

    var encryptionType: AWSKinesisEncryptionType { get set }
  • Identifies which shard in the stream the data record is assigned to.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSString *_Nullable partitionKey;

    Swift

    var partitionKey: String? { get set }
  • The unique identifier of the record within its shard.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSString *_Nullable sequenceNumber;

    Swift

    var sequenceNumber: String? { get set }