Paws::Credential::AssumeRole
use Paws::Credential::AssumeRole; my $paws = Paws->new(config => { credentials => Paws::Credential::AssumeRole->new( DurationSeconds => 60, RoleArn => 'arn:....', RoleSessionName => 'MySession', ) });
The AssumeRole provider is used to obtain temporary credentials with the AssumeRole STS call. These credentials can further be limited by a Policy document.
Credentials are refreshed with a re-call to STS when they have expired
The number of seconds for which the credentials will be valid
A string with an IAM policy that gets merged with the roles capabilities
A string with the external id of the role
The arn of the role to be assumed
The name of the session (will appear in CloudTrail logs, for example)
To install Paws::SDK::Config, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Paws::SDK::Config
CPAN shell
perl -MCPAN -e shell install Paws::SDK::Config
For more information on module installation, please visit the detailed CPAN module installation guide.