Method ParseRegion
- Namespace
- LMKit.Integrations.AWS
- Assembly
- LM-Kit.NET.dll
ParseRegion(string)
Parses an AWS region identifier (e.g., "us-west-2") into its corresponding AWSRegion enum value.
public static AWSRegion ParseRegion(string regionIdentifier)
Parameters
regionIdentifier
stringThe AWS region string (for example, "eu-central-1", "ap-southeast-1"). This must be non-null, non-empty, and match one of the supported AWS region identifiers.
Returns
Exceptions
- ArgumentNullException
Thrown if
regionIdentifier
isnull
or whitespace.- ArgumentException
Thrown if
regionIdentifier
does not match any supported AWS region identifier.