public class S3SourceSerializer extends java.lang.Object implements SourceSerializer
S3SourceSerializer
extracts CloudTrail log file information from notifications sent directly
by Amazon S3. Use SourceSerializerFactory.createS3SourceSerializer()
for initialization.Constructor and Description |
---|
S3SourceSerializer(ObjectMapper mapper,
SourceIdentifier sourceIdentifier) |
Modifier and Type | Method and Description |
---|---|
CloudTrailSource |
getCloudTrailSource(Message sqsMessage,
JsonNode s3MessageNode) |
CloudTrailSource |
getSource(Message sqsMessage)
Get CloudTrail log file information by parsing single SQS message.
|
public S3SourceSerializer(ObjectMapper mapper, SourceIdentifier sourceIdentifier)
public CloudTrailSource getSource(Message sqsMessage) throws java.io.IOException
SourceSerializer
getSource
in interface SourceSerializer
sqsMessage
- The message polled from SQS queue.CloudTrailSource
that contains log file information.java.io.IOException
- If sqsMessage
is unrecognized.public CloudTrailSource getCloudTrailSource(Message sqsMessage, JsonNode s3MessageNode) throws java.io.IOException
java.io.IOException