Table of Contents

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 string

The 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

AWSRegion

The matching AWSRegion enum member.

Exceptions

ArgumentNullException

Thrown if regionIdentifier is null or whitespace.

ArgumentException

Thrown if regionIdentifier does not match any supported AWS region identifier.