Skip to content

Commit 62bd471

Browse files
authored
update to latest version: v1.4.1 (#30)
1 parent 2620040 commit 62bd471

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
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.1 - 2025-03-03
4+
5+
* Support new region me-central-1
6+
37
## 1.4.0 - 2024-08-21
48

59
* Update README.md

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ Creates a new instance of the grpc Channel, and provisions essential settings, i
197197

198198
| Parameter | Description |
199199
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
200-
| 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. |
200+
| 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. |
201201
| api_key | Your own Vision One API Key. |
202202
| enable_tls | Enable or disable TLS. TLS should always be enabled when connecting to the AMaaS server. For more information, see the 'Ensuring Secure Communication with TLS' section. |
203203
| ca_cert | `Optional` CA certificate used to connect to self hosted AMaaS server. |
@@ -213,7 +213,7 @@ Creates a new instance of the grpc aio Channel, and provisions essential setting
213213

214214
| Parameter | Description |
215215
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
216-
| 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. |
216+
| 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. |
217217
| api_key | Your own Vision One API Key. |
218218
| enable_tls | Enable or disable TLS. TLS should always be enabled when connecting to the AMaaS server. For more information, see the 'Ensuring Secure Communication with TLS' section. |
219219
| ca_cert | `Optional` CA certificate used to connect to self hosted AMaaS server. |

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.0
1+
1.4.1

amaas/grpc/util.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
AWS_CA_REGION = "ca-central-1"
2020
AWS_TREND_REGION = "us-east-2"
2121
AWS_GB_REGION = "eu-west-2"
22+
AWS_AE_REGION = "me-central-1"
2223
C1_JP_REGION = "jp-1"
2324
C1_SG_REGION = "sg-1"
2425
C1_AU_REGION = "au-1"
@@ -28,10 +29,11 @@
2829
C1_CA_REGION = "ca-1"
2930
C1_TREND_REGION = "trend-us-1"
3031
C1_GB_REGION = "gb-1"
32+
C1_AE_REGION = "ae-1"
3133

3234
C1Regions = [C1_AU_REGION, C1_CA_REGION, C1_DE_REGION, C1_GB_REGION, C1_IN_REGION, C1_JP_REGION, C1_SG_REGION,
3335
C1_US_REGION, C1_TREND_REGION]
34-
V1Regions = [AWS_AU_REGION, AWS_DE_REGION, AWS_IN_REGION, AWS_JP_REGION, AWS_SG_REGION, AWS_US_REGION]
36+
V1Regions = [AWS_AU_REGION, AWS_DE_REGION, AWS_IN_REGION, AWS_JP_REGION, AWS_SG_REGION, AWS_US_REGION, AWS_AE_REGION]
3537
SupportedV1Regions = V1Regions
3638
SupportedC1Regions = [C1_AU_REGION, C1_CA_REGION, C1_DE_REGION, C1_GB_REGION, C1_IN_REGION, C1_JP_REGION, C1_SG_REGION,
3739
C1_US_REGION]
@@ -45,6 +47,7 @@
4547
AWS_JP_REGION: C1_JP_REGION,
4648
AWS_SG_REGION: C1_SG_REGION,
4749
AWS_US_REGION: C1_US_REGION,
50+
AWS_AE_REGION: C1_AE_REGION,
4851
}
4952

5053

@@ -94,6 +97,7 @@ def _init_by_region_util(region, api_key, enable_tls=True, ca_cert=None, is_aio_
9497
C1_JP_REGION: 'antimalware.jp-1.cloudone.trendmicro.com:443',
9598
C1_GB_REGION: 'antimalware.gb-1.cloudone.trendmicro.com:443',
9699
C1_CA_REGION: 'antimalware.ca-1.cloudone.trendmicro.com:443',
100+
C1_AE_REGION: 'antimalware.ae-1.cloudone.trendmicro.com:443',
97101
}
98102

99103
# make sure it is valid V1 or C1 region

0 commit comments

Comments
 (0)