Enum rusoto_core::Region [−][src]
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
Region that covers the Eastern part of Asia Pacific
Region that covers the North-Eastern part of Asia Pacific
Region that covers the North-Eastern part of Asia Pacific
Region that covers the North-Eastern part of Asia Pacific
Region that covers the Southern part of Asia Pacific
Region that covers the South-Eastern part of Asia Pacific
Region that covers the South-Eastern part of Asia Pacific
Region that covers Canada
Region that covers Central Europe
Region that covers Western Europe
Region that covers Western Europe
Region that covers Western Europe
Region that covers Northern Europe
Region that covers Southern Europe
Bahrain, Middle East South
Region that covers South America
Region that covers the Eastern part of the United States
Region that covers the Eastern part of the United States
Region that covers the Western part of the United States
Region that covers the Western part of the United States
Region that covers the Eastern part of the United States for the US Government
Region that covers the Western part of the United States for the US Government
Region that covers China
Region that covers North-Western part of China
Region that covers southern part Africa
Specifies a custom region, such as a local Ceph target
Fields of Custom
Implementations
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 Clone for Region
[src]
impl Debug for Region
[src]
impl Default for Region
[src]
impl<'de> Deserialize<'de> for Region
[src]
pub fn deserialize<D>(
deserializer: D
) -> Result<Region, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<Region, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl Eq for Region
[src]
impl FromStr for Region
[src]
type Err = ParseRegionError
The associated error which can be returned from parsing.
pub fn from_str(s: &str) -> Result<Region, ParseRegionError>
[src]
impl Hash for Region
[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Region> for Region
[src]
impl Serialize for Region
[src]
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl StructuralEq for Region
[src]
impl StructuralPartialEq for Region
[src]
Auto Trait Implementations
impl RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl UnwindSafe for Region
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,