Enum rusoto_core::region::Region [−][src]
pub enum Region { ApNortheast1, ApNortheast2, ApSouth1, ApSoutheast1, ApSoutheast2, CaCentral1, EuCentral1, EuWest1, EuWest2, EuWest3, SaEast1, UsEast1, UsEast2, UsWest1, UsWest2, UsGovWest1, CnNorth1, CnNorthwest1, Custom { name: String, endpoint: String, }, }
An AWS region.
Default
Region
implements the Default
trait. Calling Region::default()
will attempt to read the
AWS_DEFAULT_REGION
environment variable. If it is not set or malformed, it will fall back to Region::UsEast1
.
AWS-compatible services
Region::Custom
can be used to connect to AWS-compatible services such as DynamoDB Local or Ceph.
Region::Custom { name: "eu-east-3".to_owned(), endpoint: "http://localhost:8000".to_owned(), };
Caveats
CnNorth1
is currently untested due to Rusoto maintainers not having access to AWS China.
Variants
ApNortheast1
Region that covers the North-Eastern part of Asia Pacific
ApNortheast2
Region that covers the North-Eastern part of Asia Pacific
ApSouth1
Region that covers the Southern part of Asia Pacific
ApSoutheast1
Region that covers the South-Eastern part of Asia Pacific
ApSoutheast2
Region that covers the South-Eastern part of Asia Pacific
CaCentral1
Region that covers Canada
EuCentral1
Region that covers Central Europe
EuWest1
Region that covers Western Europe
EuWest2
Region that covers Western Europe
EuWest3
Region that covers Western Europe
SaEast1
Region that covers South America
UsEast1
Region that covers the Eastern part of the United States
UsEast2
Region that covers the Eastern part of the United States
UsWest1
Region that covers the Western part of the United States
UsWest2
Region that covers the Western part of the United States
UsGovWest1
Region that covers the Western part of the United States for the US Government
CnNorth1
Region that covers China
CnNorthwest1
Region that covers North-Western part of China
Custom
Specifies a custom region, such as a local Ceph target
Fields of Custom
name: String | Name of the endpoint (e.g. |
endpoint: String | Endpoint to be used. For instance, |
Methods
impl Region
[src]
impl Region
pub fn name(&self) -> &str
[src]
pub fn name(&self) -> &str
Name of the region
assert_eq!(Region::CaCentral1.name(), "ca-central-1"); assert_eq!( Region::Custom { name: "eu-east-3".to_owned(), endpoint: "s3.net".to_owned() }.name(), "eu-east-3" );
Trait Implementations
impl Clone for Region
[src]
impl Clone for Region
fn clone(&self) -> Region
[src]
fn clone(&self) -> Region
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Region
[src]
impl Debug for Region
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Region
[src]
impl PartialEq for Region
fn eq(&self, other: &Region) -> bool
[src]
fn eq(&self, other: &Region) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Region) -> bool
[src]
fn ne(&self, other: &Region) -> bool
This method tests for !=
.
impl Serialize for Region
[src]
impl Serialize for Region
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for Region
[src]
impl<'de> Deserialize<'de> for Region
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl FromStr for Region
[src]
impl FromStr for Region
type Err = ParseRegionError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Region, ParseRegionError>
[src]
fn from_str(s: &str) -> Result<Region, ParseRegionError>
Parses a string s
to return a value of this type. Read more
impl Default for Region
[src]
impl Default for Region