[−][src]Enum rusoto_core::region::Region
An AWS region.
Default
Region implements the Default trait. Calling Region::default() will attempt to read the
AWS_DEFAULT_REGION or AWS_REGION environment variable. If it is malformed, it will fall back to Region::UsEast1.
If it is not present it will fallback on the value associated with the current profile in ~/.aws/config or the file
specified by the AWS_CONFIG_FILE environment variable. If that is malformed of absent it will fall back on 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
ApEast1Region that covers the Eastern part of Asia Pacific
ApNortheast1Region that covers the North-Eastern part of Asia Pacific
ApNortheast2Region that covers the North-Eastern part of Asia Pacific
ApSouth1Region that covers the Southern part of Asia Pacific
ApSoutheast1Region that covers the South-Eastern part of Asia Pacific
ApSoutheast2Region that covers the South-Eastern part of Asia Pacific
CaCentral1Region that covers Canada
EuCentral1Region that covers Central Europe
EuWest1Region that covers Western Europe
EuWest2Region that covers Western Europe
EuWest3Region that covers Western Europe
EuNorth1Region that covers Northern Europe
SaEast1Region that covers South America
UsEast1Region that covers the Eastern part of the United States
UsEast2Region that covers the Eastern part of the United States
UsWest1Region that covers the Western part of the United States
UsWest2Region that covers the Western part of the United States
UsGovEast1Region that covers the Eastern part of the United States for the US Government
UsGovWest1Region that covers the Western part of the United States for the US Government
CnNorth1Region that covers China
CnNorthwest1Region that covers North-Western part of China
CustomSpecifies a custom region, such as a local Ceph target
Fields of Custom
Methods
impl Region[src]
pub fn name(&self) -> &str[src]
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 PartialEq<Region> for Region[src]
impl Default for Region[src]
impl Clone for Region[src]
fn clone(&self) -> Region[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for Region[src]
impl FromStr for Region[src]
type Err = ParseRegionError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Region, ParseRegionError>[src]
impl Serialize for Region[src]
impl<'de> Deserialize<'de> for Region[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>, [src]
T: From<U>,
type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId[src]
impl<T> Erased for T
impl<T> Same for T
type Output = T
Should always be Self
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,