NAME

WebService::Amazon::IAM - basic Amazon IAM role functionality

VERSION

version 0.002

DESCRIPTION

Coming soon.

METHODS

active_roles

Retrieves a list of the active roles in this AWS instance.

Currently only one role is supported per server (!), so this will just resolve to a single string.

is($iam->active_roles->get, 'some_role_name');

credentials_for_role

Resolves to the credentials for the given role.

my $creds = $iam->credentials_for_role('some_role');
say "Access key: " . $creds->{access_key};
say "Secret key: " . $creds->{secret_key};
say "Token:      " . $creds->{token};
say "Will expire at " . strftime '%Y-%m-%d %H:%M:%S', localtime $creds->{expiry};

SEE ALSO

AUTHOR

Tom Molesworth <cpan@perlsite.co.uk>

LICENSE

Copyright Tom Molesworth 2014. Licensed under the same terms as Perl itself.