class Aws::SharedConfig
def credentials(opts = {})
-
(Aws::Credentials)
- credentials sourced from configuration values,
Options Hash:
(**options)
-
:profile
(String
) -- the name of the configuration file from
Parameters:
-
opts
(Hash
) --
def credentials(opts = {}) p = opts[:profile] || @profile_name validate_profile_exists(p) if credentials_present? if (credentials = credentials_from_shared(p, opts)) credentials elsif (credentials = credentials_from_config(p, opts)) credentials end end