Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Net::Amazon::S3::ACL::Grant 0.1.0

    Download button

    No screenshots available
    Downloads: 357  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Flavio Poletti | More programs
    Perl Artistic License / FREE
    December 15th, 2008, 12:22 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Net::Amazon::S3::ACL::Grant description

    Represent a grant in a S3 ACL

    Net::Amazon::S3::ACL::Grant is a Perl module to represent a grant in a S3 ACL.

    SYNOPSIS

     # if you have some XPathContext and node...
     my $grant = Net::Amazon::S3::ACL::Grant->create({
     xpc => $xpc,
     node => $node,
     });

     # otherwise
     $grant = Net::Amazon::S3::ACL::Grant->create({
     target => 'foo@example.com',
     permissions => [qw( READ WRITE )],
     });

     # or also
     $grant = Net::Amazon::S3::ACL::Grant->canonical(
     'foo@example.com' => [qw( READ WRITE )],
     );

     # given a $grant...
     my $key = $grant->key();
     my $permissions = $grant->permissions();
     print "permissions for '$key': [@$permissions]
    ";

     $grant->add_permissions(qw( READ_ACP WRITE_ACP ));
     $grant->delete_permissions('WRITE');

     die 'invalid!' unless $grant->is_valid();

     $grant->parse($xpc, $node);
     print $grant->stringify();


    This class represents a single grant in the grants hash of Net::Amazon::S3::ACL. This is actually a base class that has been specialised into three implementations, representing the three different ways to specify a grantee in AWS as of writing this.


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    S3 ACL | Amazon S3 | Perl module | Amazon | S3 | ACL

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM