Enum amadeus_aws::AwsRegion [−]
pub enum AwsRegion {}Show variants
ApEast1, ApNortheast1, ApNortheast2, ApNortheast3, ApSouth1, ApSoutheast1, ApSoutheast2, CaCentral1, EuCentral1, EuWest1, EuWest2, EuWest3, EuNorth1, EuSouth1, MeSouth1, SaEast1, UsEast1, UsEast2, UsWest1, UsWest2, UsGovEast1, UsGovWest1, CnNorth1, CnNorthwest1, AfSouth1, Custom { name: String, endpoint: String, },
Expand description
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
Show fields
Implementations
impl Region
impl Region
Trait Implementations
impl<'de> Deserialize<'de> for Region
impl<'de> Deserialize<'de> for Region
pub fn deserialize<D>(
deserializer: D
) -> Result<Region, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
pub fn deserialize<D>(
deserializer: D
) -> Result<Region, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for Region
impl Serialize for Region
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Region
impl StructuralEq for Region
impl StructuralPartialEq for Region
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<A, B> Downcast<A> for B where
A: DowncastFrom<B>,
[src]
impl<A, B> Downcast<A> for B where
A: DowncastFrom<B>,
[src]pub fn downcast(self) -> Result<A, DowncastError>
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> ProcessSend for T where
T: Send + Serialize + for<'de> Deserialize<'de> + ?Sized,
[src]
T: Send + Serialize + for<'de> Deserialize<'de> + ?Sized,