use of software.amazon.awssdk.services.kinesis.model.EncryptionType in project flink by apache.
the class FanOutRecordPublisher method toSdkV1Record.
private com.amazonaws.services.kinesis.model.Record toSdkV1Record(@Nonnull final Record record) {
final com.amazonaws.services.kinesis.model.Record recordV1 = new com.amazonaws.services.kinesis.model.Record().withData(record.data().asByteBuffer()).withSequenceNumber(record.sequenceNumber()).withPartitionKey(record.partitionKey()).withApproximateArrivalTimestamp(new Date(record.approximateArrivalTimestamp().toEpochMilli()));
EncryptionType encryptionType = record.encryptionType();
if (encryptionType != null) {
recordV1.withEncryptionType(encryptionType.name());
}
return recordV1;
}
Aggregations