pub fn region_from_profile(&self) -> Result<Option<String>, CredentialsError> {
        Ok(
            parse_config_file(&self.file_path).and_then(|config| {
                config
                    .get(&self.profile)
                    .and_then(|props| props.get(REGION))
                    .map(std::borrow::ToOwned::to_owned)
            }))
    }
Attempts to resolve the region value associated with the current `ProfileProvider`s
config file path (`ProfileProvider.file_path`) and profile (`ProfileProvider.profile`).
As these fields do not require a region field to be defined, an `Option` type is returned
rusoto/credential/src/profile.rs