Struct rusoto_credential::StaticProvider
[−]
[src]
pub struct StaticProvider { /* fields omitted */ }
Provides AWS credentials from statically/programmatically provided strings.
Methods
impl StaticProvider
[src]
fn new(
access_key: String,
secret_access_key: String,
token: Option<String>,
valid_for: Option<i64>
) -> StaticProvider
[src]
access_key: String,
secret_access_key: String,
token: Option<String>,
valid_for: Option<i64>
) -> StaticProvider
Creates a new Static Provider. This should be used when you want to statically, or programmatically provide access to AWS.
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, and the wait for time as 10 minutes. Which are the defaults elsewhere.
fn get_aws_access_key_id(&self) -> &str
[src]
Gets the AWS Access Key ID for this Static Provider.
fn get_aws_secret_access_key(&self) -> &str
[src]
Gets the AWS Secret Access Key for this Static Provider.
fn has_token(&self) -> bool
[src]
Determines if this Static Provider was given a Token.
fn get_token(&self) -> &Option<String>
[src]
Gets The Token this Static Provider was given.
fn is_valid_for(&self) -> &i64
[src]
Returns the length in seconds this Static Provider will be valid for.
Trait Implementations
impl Clone for StaticProvider
[src]
fn clone(&self) -> StaticProvider
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for StaticProvider
[src]
impl ProvideAwsCredentials for StaticProvider
[src]
fn credentials(&self) -> Result<AwsCredentials, CredentialsError>
[src]
Produce a new AwsCredentials
.