|
|
@@ -9,6 +9,7 @@ public class SwapStoreConfig {
|
|
|
"noop",
|
|
|
null,
|
|
|
null,
|
|
|
+ null,
|
|
|
null
|
|
|
);
|
|
|
|
|
|
@@ -16,19 +17,22 @@ public class SwapStoreConfig {
|
|
|
private String awsAccessKey;
|
|
|
private String awsSecret;
|
|
|
private String s3BucketName;
|
|
|
+ private String awsRegion;
|
|
|
|
|
|
public SwapStoreConfig() {}
|
|
|
|
|
|
public SwapStoreConfig(
|
|
|
String awsAccessKey,
|
|
|
String awsSecret,
|
|
|
- String s3BucketName
|
|
|
+ String s3BucketName,
|
|
|
+ String awsRegion
|
|
|
) {
|
|
|
this(
|
|
|
"s3",
|
|
|
awsAccessKey,
|
|
|
awsSecret,
|
|
|
- s3BucketName
|
|
|
+ s3BucketName,
|
|
|
+ awsRegion
|
|
|
);
|
|
|
}
|
|
|
|
|
|
@@ -36,12 +40,14 @@ public class SwapStoreConfig {
|
|
|
String type,
|
|
|
String awsAccessKey,
|
|
|
String awsSecret,
|
|
|
- String s3BucketName
|
|
|
+ String s3BucketName,
|
|
|
+ String awsRegion
|
|
|
) {
|
|
|
this.type = type;
|
|
|
this.awsAccessKey = awsAccessKey;
|
|
|
this.awsSecret = awsSecret;
|
|
|
this.s3BucketName = s3BucketName;
|
|
|
+ this.awsRegion = awsRegion;
|
|
|
}
|
|
|
|
|
|
public String getType() {
|
|
|
@@ -60,12 +66,15 @@ public class SwapStoreConfig {
|
|
|
return s3BucketName;
|
|
|
}
|
|
|
|
|
|
+ public String getAwsRegion() { return awsRegion; }
|
|
|
+
|
|
|
public SwapStoreConfig sanitisedCopy() {
|
|
|
return new SwapStoreConfig(
|
|
|
type,
|
|
|
awsAccessKey == null ? null : "<awsAccessKey>",
|
|
|
awsSecret == null ? null : "<awsSecret>",
|
|
|
- s3BucketName
|
|
|
+ s3BucketName,
|
|
|
+ awsRegion
|
|
|
);
|
|
|
}
|
|
|
|