public class S3ConnectorUtils extends Object
Modifier and Type | Method and Description |
---|---|
protected static com.amazonaws.services.s3.model.Bucket |
createBucketIfNotExists(String bucketName,
com.amazonaws.services.s3.AmazonS3 s3)
Creates an S3 bucket if it does not exist and returns its name.
|
protected static com.amazonaws.services.s3.model.Bucket |
getBucket(String bucketName,
com.amazonaws.services.s3.AmazonS3 s3)
Check if an S3 bucket exists and returns its name if it does exist or null otherwise.
|
protected static com.amazonaws.services.s3.AmazonS3 |
getS3Client(String accessKey,
String secretKey,
String... args)
Get or initialize the S3 client.
|
protected static com.amazonaws.services.s3.AmazonS3 getS3Client(String accessKey, String secretKey, String... args)
protected static com.amazonaws.services.s3.model.Bucket getBucket(String bucketName, com.amazonaws.services.s3.AmazonS3 s3)
bucketName
- s3
- protected static com.amazonaws.services.s3.model.Bucket createBucketIfNotExists(String bucketName, com.amazonaws.services.s3.AmazonS3 s3)
bucketName
- s3
-