Skip to main content

detect

Function detect 

Source
pub fn detect(
    env: &dyn Fn(&str) -> Option<String>,
    home: &Path,
) -> Option<Source>
Expand description

The first source the chain will use, or None: an API key, keys in the environment, web identity, a container role, then the profile (AWS_PROFILE, else default). env answers a variable’s value when it is set and not empty; home holds .aws/.