[][src]Struct sts_profile_auth::StsInstance

pub struct StsInstance { /* fields omitted */ }

StsInstance contains an StsClient instance, and metadata used to create it (region, keys, role arn)

Implementations

impl StsInstance[src]

pub fn new(profile: Option<&str>) -> Result<Self, StsClientError>[src]

Create a new StsInstance, either specifying a profile name, using the AWS_PROFILE environment variable, or using default

pub fn get_provider(
    &self
) -> Result<Option<AutoRefreshingProvider<StsAssumeRoleSessionCredentialsProvider>>, StsClientError>
[src]

Get an auto-refreshing credential provider

pub fn get_client(&self) -> Result<Client, StsClientError>[src]

Get an instance of rusoto_core::Client which can be used to instantiate any other rusoto client type.

pub fn get_region(&self) -> Region[src]

Trait Implementations

impl Clone for StsInstance[src]

impl Default for StsInstance[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.