logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Net::Amazon::S3::Authorization::IAM - IAM authorization information

Author

       Branislav Zahradník <barney@cpan.org>

Description

       Authorization context using instance session credentials.

       Unless specified authorization context obtains credentials via VM::EC2::Security::CredentialCache.  It is
       not listed as a Net::Amazon::S3 dependency.

Incompatibility Warning

       This module with its dependencies will be moved out and distributed separately without dependency from
       Net::Amazon::S3.

       If you use IAM, please consider to add proper "use" statement into your code.

Name

       Net::Amazon::S3::Authorization::IAM - IAM authorization information

Synopsis

               use Net::Amazon::S3;
               use Net::Amazon::S3::Authorization::IAM;

               # obtain instance credentials
               use VM::EC2::Security::CredentialCache;
               my $s3 = Net::Amazon::S3->new (
                       authorization_context => Net::Amazon::S3::Authorization::IAM->new,
                       ...
               );

               # or just provide your values
               my $s3 = Net::Amazon::S3->new (
                       authorization_context => Net::Amazon::S3::Authorization::IAM->new (
                               aws_access_key_id     => ...,
                               aws_secret_access_key => ...,
                               aws_session_token     => ...,
                       ),
                       ...
               );

Version

       version 0.991

See Also