public class AwsTestHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AWS_S3_EMPTY_BUCKET_NAME |
Constructor and Description |
---|
AwsTestHelper() |
Modifier and Type | Method and Description |
---|---|
static com.amazonaws.services.s3.model.Bucket |
createBucket(String bucketName) |
static void |
deleteBucket(String bucketName) |
static com.amazonaws.auth.AWSCredentials |
getAwsCredentials()
Get AWS credentials from environment/properties/profile/instance profile
|
static com.amazonaws.regions.Regions |
getDefaultRegion()
Get default AWS region for tests
|
static com.atlassian.aws.s3.BambooAmazonS3Client |
newS3Client()
Create S3 client using default credentials and region
|
static com.atlassian.aws.s3.BambooAmazonS3Client |
newS3Client(com.amazonaws.auth.AWSCredentials awsCredentials)
Create S3 client using given credentials and default region
|
public static final String AWS_S3_EMPTY_BUCKET_NAME
public static com.amazonaws.auth.AWSCredentials getAwsCredentials()
public static com.amazonaws.regions.Regions getDefaultRegion()
@NotNull public static com.atlassian.aws.s3.BambooAmazonS3Client newS3Client()
@NotNull public static com.atlassian.aws.s3.BambooAmazonS3Client newS3Client(@NotNull com.amazonaws.auth.AWSCredentials awsCredentials)
public static com.amazonaws.services.s3.model.Bucket createBucket(@NotNull String bucketName)
public static void deleteBucket(@NotNull String bucketName)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.