Enum rusoto_signature::region::Region
source · [−]pub enum Region {
Show 27 variants
ApEast1,
ApNortheast1,
ApNortheast2,
ApNortheast3,
ApSouth1,
ApSoutheast1,
ApSoutheast2,
ApSoutheast3,
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
ApEast1
Region that covers the Eastern part of Asia Pacific
ApNortheast1
Region that covers the North-Eastern part of Asia Pacific
ApNortheast2
Region that covers the North-Eastern part of Asia Pacific
ApNortheast3
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
ApSoutheast3
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
EuNorth1
Region that covers Northern Europe
EuSouth1
Region that covers Southern Europe
MeSouth1
Bahrain, Middle East South
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
UsGovEast1
Region that covers the Eastern part of the United States for the US Government
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
AfSouth1
Region that covers southern part Africa
Custom
Fields
name: String
Name of the endpoint (e.g. "eu-east-2"
).
endpoint: String
Endpoint to be used. For instance, "https://s3.my-provider.net"
or just
"s3.my-provider.net"
(default scheme is https).
Specifies a custom region, such as a local Ceph target
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Region
impl<'de> Deserialize<'de> for Region
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl FromStr for Region
impl FromStr for Region
type Err = ParseRegionError
type Err = ParseRegionError
The associated error which can be returned from parsing.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more