[][src]Enum rusoto_core::region::Region

pub enum Region {
    ApNortheast1,
    ApNortheast2,
    ApSouth1,
    ApSoutheast1,
    ApSoutheast2,
    CaCentral1,
    EuCentral1,
    EuWest1,
    EuWest2,
    EuWest3,
    EuNorth1,
    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 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 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 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 Western part of the United States for the US Government

Region that covers China

Region that covers North-Western part of China

Specifies a custom region, such as a local Ceph target

Fields of Custom

Name of the endpoint (e.g. "eu-east-2").

Endpoint to be used. For instance, "https://s3.my-provider.net" or just "s3.my-provider.net" (default scheme is https).

Methods

impl Region
[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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Region
[src]

Returns the "default value" for a type. Read more

impl PartialEq<Region> for Region
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Region
[src]

Formats the value using the given formatter. Read more

impl FromStr for Region
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl Serialize for Region
[src]

Serialize this value into the given Serde serializer. Read more

impl<'de> Deserialize<'de> for Region
[src]

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for Region

impl Sync for Region

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 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<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Erased for T

impl<T> Same for T

Should always be Self

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]