aws.internal.resolve_region

Resolves the AWS region: `region` when set, else `AWS_REGION`, `AWS_DEFAULT_REGION`, or the active profile's `region` key. `null` means "not discoverable" — the caller decides how to report it (endpoint construction usually needs it before signing does).

Reference version

Signature

function aws.internal.resolve_region(region: string | null, profile: string | null) -> string | null

Resolves the AWS region: region when set, else AWS_REGION, AWS_DEFAULT_REGION, or the active profile's region key. null means "not discoverable" — the caller decides how to report it (endpoint construction usually needs it before signing does).

Source:<builtin>/aws/ns_internal/auth.bamlbytes 26412767