public class RegionUtils
extends java.lang.Object
| Constructor and Description |
|---|
RegionUtils() |
| Modifier and Type | Method and Description |
|---|---|
@Nullable software.amazon.awssdk.regions.Region |
getRegion(java.util.Properties props,
java.lang.String propKey)
Determines the AWS region from the given properties.
|
@Nullable software.amazon.awssdk.regions.Region |
getRegion(java.lang.String host,
java.util.Properties props,
java.lang.String propKey)
Determines the AWS region from the given parameters.
|
software.amazon.awssdk.regions.Region |
getRegionFromHost(java.lang.String host)
Determines the AWS region from the given host string.
|
software.amazon.awssdk.regions.Region |
getRegionFromRegionString(java.lang.String regionString)
Determines the AWS region from the given region string.
|
protected static final RdsUtils rdsUtils
public @Nullable software.amazon.awssdk.regions.Region getRegion(java.lang.String host,
java.util.Properties props,
java.lang.String propKey)
host - The host from which to extract the region if it is not defined in the properties.props - The connection properties for the connection being established.propKey - The key name of the region property.host.public @Nullable software.amazon.awssdk.regions.Region getRegion(java.util.Properties props,
java.lang.String propKey)
props - The connection properties for the connection being established.propKey - The key name of the region property.public software.amazon.awssdk.regions.Region getRegionFromRegionString(java.lang.String regionString)
regionString - The connection properties for the connection being established.public software.amazon.awssdk.regions.Region getRegionFromHost(java.lang.String host)
host - The host from which to extract the region.