-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some users need to log in to specific regions only. This PR exposes host constants that make this easier, like so: import tiledb.cloud from tiledb.cloud.region import AWS tiledb.cloud.login(host=AWS.US_EAST_1) As of today, we support five AWS regions.
- Loading branch information
1 parent
41adb97
commit b1ff828
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
class AWS: | ||
""" | ||
The AWS cloud regions that are currently supported. | ||
US_EAST_1 = North America, United States (Virginia) | ||
US_WEST_1 = North America, United States (California) | ||
EU_WEST_1 = Europe, Ireland | ||
EU_WEST_2 = Europe, London | ||
AP_SOUTHEAST_1 = Asia, Singapore | ||
""" | ||
|
||
US_EAST_1 = "https://us-east-1.aws.api.tiledb.com" | ||
US_WEST_1 = "https://us-west-1.aws.api.tiledb.com" | ||
EU_WEST_1 = "https://eu-west-1.aws.api.tiledb.com" | ||
EU_WEST_2 = "https://eu-west-2.aws.api.tiledb.com" | ||
AP_SOUTHEAST_1 = "https://ap-southeast-1.aws.api.tiledb.com" | ||
|
||
|
||
__all__ = ("AWS",) |