Struct aws_sdk_rust::aws::common::credentials::AwsCredentials
[−]
[src]
pub struct AwsCredentials { /* fields omitted */ }
Primarily intended for client applications but also used for internal library documentation.
AwsCredentials - Base struct for AWS
This struct is very important! Without valid credentials then access to AWS S3 will be allowed.
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>,
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 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