io.aws.lambda.events.kinesis.KinesisAnalyticsFirehoseInputPreprocessingEvent Maven / Gradle / Ivy
package io.aws.lambda.events.kinesis;
import lombok.Data;
import lombok.experimental.Accessors;
import org.jetbrains.annotations.NotNull;
import java.io.Serializable;
import java.util.Collections;
import java.util.List;
/**
* Event model for pre-processing Kinesis Firehose records through Kinesis
* Analytics Lambda pre-processing function.
*/
@Data
@Accessors(chain = true)
public class KinesisAnalyticsFirehoseInputPreprocessingEvent implements Serializable {
private String invocationId;
private String applicationArn;
private String streamArn;
private List records;
public @NotNull List getRecords() {
return records == null ? Collections.emptyList() : records;
}
@Data
@Accessors(chain = true)
public static class Record implements Serializable {
private String recordId;
private KinesisFirehoseRecordMetadata kinesisFirehoseRecordMetadata;
private byte[] data;
@Data
@Accessors(chain = true)
public static class KinesisFirehoseRecordMetadata implements Serializable {
private Long approximateArrivalTimestamp;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy