|
NAMEPaws::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',
path => '/etc/',
)
});
# will open /etc/credentials
DESCRIPTIONThe File credential provider is to read credentials from AWS SDK config files profile: StrThe 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: StrThe 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: StrPath to the ini file Defaults to "$HOME/.aws" file_name: StrName of the ini file Defaults to "credentials"
|