Class RegionValidationUtil
java.lang.Object
software.amazon.awssdk.codegen.lite.regions.RegionValidationUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
validEndpoint
(String region, Endpoint endpoint) static boolean
validRegion
(String region, String regex) Determines if a given region string is a "valid" AWS region.
-
Method Details
-
validRegion
Determines if a given region string is a "valid" AWS region. The region string must either match the partition regex, end with fips and match the partition regex with that included, or include the word "global".- Parameters:
region
- - Region string being checked.regex
- - Regex for regions in a given partition.- Returns:
- true if the region string should be included as a region.
-
validEndpoint
-