public class CloudTrailSourceSerializer extends java.lang.Object implements SourceSerializer
CloudTrailSourceSerializer
extracts CloudTrail log file information from notifications that CloudTrail
sends to an SNS topic. Use SourceSerializerFactory.createCloudTrailSourceSerializer()
for default initialization.Constructor and Description |
---|
CloudTrailSourceSerializer(SNSMessageBodyExtractor messageExtractor,
ObjectMapper mapper,
SourceIdentifier sourceIdentifier) |
Modifier and Type | Method and Description |
---|---|
CloudTrailSource |
getSource(Message sqsMessage)
Get CloudTrail log file information by parsing single SQS message.
|
public CloudTrailSourceSerializer(SNSMessageBodyExtractor messageExtractor, 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.