Struct aws_sdk_rust::aws::common::credentials::EnvironmentProvider
[−]
[src]
pub struct EnvironmentProvider;
Provides AWS credentials from environment variables. If you decide to use environment variables then the first two listed below are required. The third is used for temporary AWS access and not normally used by third party applications.
- AWS_ACCESS_KEY_ID - (required - if using environment variables)
- AWS_SECRET_ACCESS_KEY - (required - if using environment variables)
- AWS_SESSION_TOKEN - (optional - if using environment variables)
Methods
impl EnvironmentProvider
[src]
fn new() -> Result<EnvironmentProvider, CredentialsError>
Trait Implementations
impl Clone for EnvironmentProvider
[src]
fn clone(&self) -> EnvironmentProvider
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
impl Debug for EnvironmentProvider
[src]
impl AwsCredentialsProvider for EnvironmentProvider
[src]
fn credentials(&self) -> Result<AwsCredentials, CredentialsError>
Produce a new AwsCredentials
.