NAME
Paws::Credential::File
SYNOPSIS
use Paws::Credential::File;
my $paws = Paws->new(config => {
credentials => Paws::Credential::File->new(
profile => 'profile1',
credentials_file => '/etc/aws_system_credentials',
)
});
# will open /etc/aws_system_credentials
my $paws = Paws->new(config => {
credentials => Paws::Credential::File->new(
profile => 'profile1',
file_name => 'my_creds',
)
});
# will open $HOME/.aws/my_creds
my $paws = Paws->new(config => {
credentials => Paws::Credential::File->new(
profile => 'profile1',
dir => '/etc/',
)
});
# will open /etc/credentials
DESCRIPTION
The File credential provider is to read credentials from AWS SDK config files
profile: Str
The section in the ini file where credentials will be looked up:
Defaults to the environment variable AWS_DEFAULT_PROFILE
, and if that is not defined, to "default"
credentials_file: Str
The path of the ini file to open
Defaults to the path + file_name ($HOME/.aws/credentials
by default) if the environment variable AWS_CONFIG_FILE doesn't exist
path: Str
Path to the ini file
Defaults to $HOME/.aws
file_name: Str
Name of the ini file
Defaults to credentials