public class S3SNSSourceSerializer extends java.lang.Object implements SourceSerializer
S3SnsSourceSerializer
extracts CloudTrail log file information from notifications that Amazon S3 sends
to an SNS topic. Use SourceSerializerFactory.createS3SNSSourceSerializer()
for initialization.Constructor and Description |
---|
S3SNSSourceSerializer(SNSMessageBodyExtractor messageExtractor,
S3SourceSerializer s3Serializer) |
Modifier and Type | Method and Description |
---|---|
CloudTrailSource |
getSource(Message sqsMessage)
Get CloudTrail log file information by parsing single SQS message.
|
public S3SNSSourceSerializer(SNSMessageBodyExtractor messageExtractor, S3SourceSerializer s3Serializer)
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.