Skip to main content

default_credentials

Function default_credentials 

Source
pub async fn default_credentials(
    env: &AwsEnv,
    profile: Option<&str>,
    region: Option<&str>,
    cancel: &CancellationToken,
) -> Result<Credentials, String>
Expand description

The default credential chain for profile (else AWS_PROFILE), with region for Security Token Service (STS) calls. Results are cached until five minutes before they expire.