class Aws::Credentials::SharedCredentialFileProvider
- Aws::Credentials::SharedCredentialFileProvider
- Reference
- Object
Overview
Resolving credential from shared credential file.
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html
Included Modules
Defined in:
aws-credentials/provider/shared_credential_file_provider.crConstructors
Instance Method Summary
-
#credentials : Credentials
Resolving
AWS::Credentials::Credentials
. -
#refresh : Nil
Clear cache and reload credential from source.
Instance methods inherited from module Aws::Credentials::Provider
credentials : Credentials
credentials,
credentials? : Credentials | Nil
credentials?,
refresh : Nil
refresh
Constructor Detail
def self.new(file_path : String = File.expand_path(ENV.fetch("AWS_SHARED_CREDENTIALS_FILE", "~/.aws/credentials"), home: true), profile : String = "default")
#
Instance Method Detail
def credentials : Credentials
#
Description copied from module Aws::Credentials::Provider
Resolving AWS::Credentials::Credentials
.
Credential not resolvable then raise Aws::Credentials||MissingCredentials
error.
def refresh : Nil
#
Description copied from module Aws::Credentials::Provider
Clear cache and reload credential from source.