Struct aws_sdk_rust::aws::common::credentials::AwsCredentials [] [src]

pub struct AwsCredentials {
    // some fields omitted
}

AwsCredentials - Base struct for AWS

access_key_id - Can be &str or String. Represents AWS Access Key. secret_key - Can be &str or String. Represents AWS Secret Key. token - None or String. Represents AWS Token for IAM credentials. expires_at - Default to 10 minutes.

Methods

impl AwsCredentials
[src]

fn new<K, S>(access_key_id: K, secret_access_key: S, token: Option<String>, expires_at: DateTime<UTC>) -> AwsCredentials where K: Into<String>, S: Into<String>

First method to be called. Creates the AWS credentials.

fn aws_access_key_id(&self) -> &str

Get a reference to the access key ID.

fn aws_secret_access_key(&self) -> &str

Get a reference to the secret key.

fn expires_at(&self) -> &DateTime<UTC>

Get a reference to the expiration time.

fn token(&self) -> &Option<String>

Get a reference to the access token.

Trait Implementations

impl Debug for AwsCredentials
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for AwsCredentials
[src]

fn clone(&self) -> AwsCredentials

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more