Class AwsTestHelper
java.lang.Object
com.atlassian.bamboo.testutils.aws.AwsTestHelper
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.amazonaws.services.s3.model.Bucket
createBucket
(@NotNull String bucketName) static void
deleteBucket
(@NotNull String bucketName) static com.amazonaws.auth.AWSCredentials
Get AWS credentials from environment/properties/profile/instance profilestatic com.amazonaws.regions.Regions
Get default AWS region for testsstatic @NotNull com.atlassian.aws.s3.BambooAmazonS3Client
Create S3 client using default credentials and regionstatic @NotNull com.atlassian.aws.s3.BambooAmazonS3Client
newS3Client
(@NotNull com.amazonaws.auth.AWSCredentials awsCredentials) Create S3 client using given credentials and default region
-
Field Details
-
AWS_S3_EMPTY_BUCKET_NAME
- See Also:
-
-
Constructor Details
-
AwsTestHelper
public AwsTestHelper()
-
-
Method Details
-
getAwsCredentials
public static com.amazonaws.auth.AWSCredentials getAwsCredentials()Get AWS credentials from environment/properties/profile/instance profile -
getDefaultRegion
public static com.amazonaws.regions.Regions getDefaultRegion()Get default AWS region for tests -
newS3Client
@NotNull public static @NotNull com.atlassian.aws.s3.BambooAmazonS3Client newS3Client()Create S3 client using default credentials and region -
newS3Client
@NotNull public static @NotNull com.atlassian.aws.s3.BambooAmazonS3Client newS3Client(@NotNull @NotNull com.amazonaws.auth.AWSCredentials awsCredentials) Create S3 client using given credentials and default region -
createBucket
public static com.amazonaws.services.s3.model.Bucket createBucket(@NotNull @NotNull String bucketName) -
deleteBucket
-