[][src]Struct rusoto_credential::StaticProvider

pub struct StaticProvider { /* fields omitted */ }

Provides AWS credentials from statically/programmatically provided strings.

Methods

impl StaticProvider[src]

pub fn new(
    access_key: String,
    secret_access_key: String,
    token: Option<String>,
    valid_for: Option<i64>
) -> StaticProvider
[src]

Creates a new Static Provider. This should be used when you want to statically, or programmatically provide access to AWS.

valid_for is the number of seconds for which issued tokens are valid.

pub fn new_minimal(
    access_key: String,
    secret_access_key: String
) -> StaticProvider
[src]

Creates a new minimal Static Provider. This will set the token as optional none.

pub fn get_aws_access_key_id(&self) -> &str[src]

Gets the AWS Access Key ID for this Static Provider.

pub fn get_aws_secret_access_key(&self) -> &str[src]

Gets the AWS Secret Access Key for this Static Provider.

pub fn has_token(&self) -> bool[src]

Determines if this Static Provider was given a Token.

pub fn get_token(&self) -> &Option<String>[src]

Gets The Token this Static Provider was given.

pub fn is_valid_for(&self) -> &Option<i64>[src]

Returns the length in seconds this Static Provider will be valid for.

Trait Implementations

impl ProvideAwsCredentials for StaticProvider[src]

type Future = FutureResult<AwsCredentials, CredentialsError>

The future response value.

impl Clone for StaticProvider[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for StaticProvider[src]

Auto Trait Implementations

impl Send for StaticProvider

impl Sync for StaticProvider

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = !

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

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

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

impl<T> Erased for T