Enum Class AwsRegion
- All Implemented Interfaces:
Serializable, Comparable<AwsRegion>, Constable
AWS Regions enumeration with metadata for disaster recovery and compliance.
Each region includes:
- Region code (e.g., "us-east-1")
- Display name (e.g., "US East (N. Virginia)")
- Geographic area for data residency
- Paired DR region for cross-region replication
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumGeographic areas for data residency requirements.Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptioncode()Gets the region code (e.g., "us-east-1").Gets the display name (e.g., "US East (N.drRegion()Gets the disaster recovery region enum.Gets the disaster recovery region code.Finds a region by its code.geoArea()Gets the geographic area for data residency.getSecondaryRegion(String regionCode) Gets the secondary (DR) region for a given region code.static booleanisValidRegion(String code) Checks if a region code is valid.static booleansameGeoArea(String region1, String region2) Checks if two regions are in the same geographic area.static AwsRegionReturns the enum constant of this class with the specified name.static AwsRegion[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
US_EAST_1
-
US_EAST_2
-
US_WEST_1
-
US_WEST_2
-
US_GOV_EAST_1
-
US_GOV_WEST_1
-
CA_CENTRAL_1
-
CA_WEST_1
-
EU_WEST_1
-
EU_WEST_2
-
EU_WEST_3
-
EU_CENTRAL_1
-
EU_CENTRAL_2
-
EU_NORTH_1
-
EU_SOUTH_1
-
EU_SOUTH_2
-
AP_EAST_1
-
AP_SOUTH_1
-
AP_SOUTH_2
-
AP_SOUTHEAST_1
-
AP_SOUTHEAST_2
-
AP_SOUTHEAST_3
-
AP_SOUTHEAST_4
-
AP_NORTHEAST_1
-
AP_NORTHEAST_2
-
AP_NORTHEAST_3
-
SA_EAST_1
-
ME_SOUTH_1
-
ME_CENTRAL_1
-
IL_CENTRAL_1
-
AF_SOUTH_1
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
code
Gets the region code (e.g., "us-east-1"). -
displayName
Gets the display name (e.g., "US East (N. Virginia)"). -
geoArea
Gets the geographic area for data residency. -
drRegionCode
Gets the disaster recovery region code. -
drRegion
-
fromCode
-
getSecondaryRegion
-
isValidRegion
Checks if a region code is valid.- Parameters:
code- The region code to validate- Returns:
- true if the region code is valid
-
sameGeoArea
-