Constructor and Description |
---|
BasicS3Manager(AmazonS3 s3Client,
ProcessingConfiguration config,
ExceptionHandler exceptionHandler,
ProgressReporter progressReporter)
S3Manager constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
downloadLog(CloudTrailLog ctLog,
CloudTrailSource source)
Downloads an AWS CloudTrail log from the specified source.
|
S3Object |
getObject(java.lang.String bucketName,
java.lang.String objectKey)
Download an S3 object.
|
public BasicS3Manager(AmazonS3 s3Client, ProcessingConfiguration config, ExceptionHandler exceptionHandler, ProgressReporter progressReporter)
s3Client
- A AmazonS3
.config
- A ProcessingConfiguration
.exceptionHandler
- An implementation of ExceptionHandler
used to handle errors.progressReporter
- An implementation of ProgressReporter
used to report progress.public byte[] downloadLog(CloudTrailLog ctLog, CloudTrailSource source)
downloadLog
in interface S3Manager
ctLog
- The CloudTrailLog
to downloadsource
- The CloudTrailSource
to download the log from.public S3Object getObject(java.lang.String bucketName, java.lang.String objectKey)