Module rusoto_core::region [] [src]

AWS Regions and helper functions.

Mostly used for translating the Region enum to a string AWS accepts.

For example: UsEast1 to "us-east-1"

Structs

ParseRegionError

An error produced when attempting to convert a str into a Region fails.

Enums

Region

An AWS region. Custom can be used to use a local or otherwise non-AWS endpoint. This may be used for API-compatible services, such as DynamoDB Local or Ceph. Example: Region::Custom("http://localhost:8000".to_owned()) instead of Region::UsEast1. CnNorth1 is currently untested due to Rusoto maintainers not having access to AWS China.

Functions

default_region

Get the region from AWS_DEFAULT_REGION environment variable. Uses us-east-1 if not set or value is malformed.