Skip to content

Commit 9938a9c

Browse files
Merge pull request #22 from trendmicro/update_to_latest_version_v1.4.5
update to latest version: v1.4.5
2 parents b032bf3 + 0009d5d commit 9938a9c

File tree

6 files changed

+17
-6
lines changed

6 files changed

+17
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 1.4.5 - 2025-03-03
4+
5+
* Support new region me-central-1
6+
37
## 1.4.4 - 2024-10-11
48

59
* Update deoendencies

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Creates a new instance of the `AmaasClient` class, and provisions essential sett
162162

163163
| Parameter | Description |
164164
| ------------- | ---------------------------------------------------------------------------------------- |
165-
| region | The region you obtained your api key. Value provided must be one of the Vision One regions, e.g. `us-east-1`, `eu-central-1`, `ap-northeast-1`, `ap-southeast-2`, `ap-southeast-1`, `ap-south-1`, etc. If host is given, region will be ignored. |
165+
| region | The region you obtained your api key. Value provided must be one of the Vision One regions, e.g. `us-east-1`, `eu-central-1`, `ap-northeast-1`, `ap-southeast-2`, `ap-southeast-1`, `ap-south-1`, `me-central-1`, etc. If host is given, region will be ignored. |
166166
| host | The host ip address of self hosted AMaaS scanner. Ignore if to use Trend AMaaS service |
167167
| apikey | Your own Vision One API Key. |
168168
| timeoutInSecs | Timeout to cancel the connection to server in seconds. Valid value is 0, 1, 2, ... ; default to 300 seconds. |
@@ -180,7 +180,7 @@ Creates a new instance of the `AmaasClient` class, and provisions essential sett
180180

181181
| Parameter | Description |
182182
| ------------- | ---------------------------------------------------------------------------------------- |
183-
| region | The region you obtained your api key. Value provided must be one of the Vision One regions, e.g. `us-east-1`, `eu-central-1`, `ap-northeast-1`, `ap-southeast-2`, `ap-southeast-1`, `ap-south-1`, etc. |
183+
| region | The region you obtained your api key. Value provided must be one of the Vision One regions, e.g. `us-east-1`, `eu-central-1`, `ap-northeast-1`, `ap-southeast-2`, `ap-southeast-1`, `ap-south-1`, `me-central-1`, etc. |
184184
| apikey | Your own Vision One API Key. |
185185
| timeoutInSecs | Timeout to cancel the connection to server in seconds. Valid value is 0, 1, 2, ... ; default to 300 seconds. |
186186

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.4
1+
1.4.5

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.trend</groupId>
77
<artifactId>file-security-java-sdk</artifactId>
8-
<version>1.4.4</version>
8+
<version>1.4.5</version>
99

1010
<name>file-security-java-sdk</name>
1111
<url>https://github.com/trendmicro/tm-v1-fs-java-sdk</url>

src/main/java/com/trend/cloudone/amaas/AMaasRegion.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ final class AMaasRegion {
2424
static final String AWS_CA_REGION = "ca-central-1";
2525
static final String AWS_TREND_REGION = "us-east-2";
2626
static final String AWS_GB_REGION = "eu-west-2";
27+
static final String AWS_AE_REGION = "me-central-1";
2728
static final String C1_JP_REGION = "jp-1";
2829
static final String C1_SG_REGION = "sg-1";
2930
static final String C1_AU_REGION = "au-1";
@@ -33,10 +34,11 @@ final class AMaasRegion {
3334
static final String C1_CA_REGION = "ca-1";
3435
static final String C1_TREND_REGION = "trend-us-1";
3536
static final String C1_GB_REGION = "gb-1";
37+
static final String C1_AE_REGION = "ae-1";
3638

3739
static final List<String> C1_REGIONS = Arrays.asList(new String[]{C1_AU_REGION, C1_CA_REGION, C1_DE_REGION, C1_GB_REGION, C1_IN_REGION, C1_JP_REGION, C1_SG_REGION, C1_US_REGION, C1_TREND_REGION});
38-
static final List<String> V1_REGIONS = Arrays.asList(new String[]{AWS_AU_REGION, AWS_CA_REGION, AWS_DE_REGION, AWS_GB_REGION, AWS_IN_REGION, AWS_JP_REGION, AWS_SG_REGION, AWS_US_REGION});
39-
static final List<String> SUPPORTED_V1_REGIONS = Arrays.asList(new String[]{AWS_AU_REGION, AWS_DE_REGION, AWS_JP_REGION, AWS_SG_REGION, AWS_US_REGION, AWS_IN_REGION});
40+
static final List<String> V1_REGIONS = Arrays.asList(new String[]{AWS_AU_REGION, AWS_CA_REGION, AWS_DE_REGION, AWS_GB_REGION, AWS_IN_REGION, AWS_JP_REGION, AWS_SG_REGION, AWS_US_REGION, AWS_AE_REGION});
41+
static final List<String> SUPPORTED_V1_REGIONS = Arrays.asList(new String[]{AWS_AU_REGION, AWS_DE_REGION, AWS_JP_REGION, AWS_SG_REGION, AWS_US_REGION, AWS_IN_REGION, AWS_AE_REGION});
4042
static final List<String> SUPPORTED_C1_REGIONS = Arrays.asList(new String[]{C1_AU_REGION, C1_CA_REGION, C1_DE_REGION, C1_GB_REGION, C1_IN_REGION, C1_JP_REGION, C1_SG_REGION, C1_US_REGION});
4143

4244
static final Map<String, String> V1_TO_C1_REGION_MAPPING = new HashMap<String, String>() {
@@ -47,6 +49,7 @@ final class AMaasRegion {
4749
put(AWS_JP_REGION, C1_JP_REGION);
4850
put(AWS_SG_REGION, C1_SG_REGION);
4951
put(AWS_US_REGION, C1_US_REGION);
52+
put(AWS_AE_REGION, C1_AE_REGION);
5053
}
5154
};
5255

@@ -61,6 +64,7 @@ final class AMaasRegion {
6164
put(C1_GB_REGION, "antimalware.gb-1.cloudone.trendmicro.com");
6265
put(C1_CA_REGION, "antimalware.ca-1.cloudone.trendmicro.com");
6366
put(C1_TREND_REGION, "antimalware.trend-us-1.cloudone.trendmicro.com");
67+
put(C1_AE_REGION, "antimalware.ae-1.cloudone.trendmicro.com");
6468
}
6569
};
6670

src/test/java/com/trend/cloudone/amaas/AMaasRegionTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ public void testGetHostForRegion() {
1313

1414
region = AMaasRegion.getServiceFqdn("eu-central-1");
1515
assertEquals("antimalware.de-1.cloudone.trendmicro.com", region);
16+
17+
region = AMaasRegion.getServiceFqdn("me-central-1");
18+
assertEquals("antimalware.ae-1.cloudone.trendmicro.com", region);
1619
}
1720

1821

0 commit comments

Comments
 (0)