How to find all regions given a country name in AWS Java SDK?

135 Views Asked by At

This class provides constants for all the regions AWS supports. However instead of manually creating a list in my app for all US regions, is there a way to get all supported regions from AWS SDK itself without hardcoding in the app? Currently i have a hacky way to filter those in the list that starts with US_.

Im not looking to get regions for any service. Just all the regions name strings that AWS has.

SDK Version in use: 2.21.1

0

There are 0 best solutions below