1Net::Amazon::S3::ACL::SUeste(r3)Contributed Perl DocumenNteatt:i:oAnmazon::S3::ACL::Set(3)
2
3
4
6 Net::Amazon::S3::ACL::Set - Representation of explicit ACL
7
9 version 0.991
10
12 use Net::Amazon::S3::ACL;
13
14 $acl = Net::Amazon::S3::ACL->new
15 ->grant_full_control (
16 id => 11112222333,
17 id => 444455556666,
18 uri => 'predefined group uri',
19 email => 'email-address',
20 )
21 ->grant_write (
22 ...
23 )
24 ;
25
27 Class representing explicit Amazon S3 ACL configuration.
28
30 new
31 Creates new instance.
32
33 grant_full_control (@grantees)
34 grant_read (@grantees)
35 grant_read_acp (@grantees)
36 grant_write (@grantees)
37 grant_write_acp (@grantees)
39 See also "Who Is a Grantee?"
40 <https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-
41 overview.html#specifying-grantee> in Amazon S3 documentation.
42
43 Each grant_* method accepts list of grantees either in key-value format
44 or as an instance of "Net::Amazon::S3::ACL::Grantee::*".
45
46 canonical user ID
47 ->grant_read (
48 id => 123,
49 Net::Amazon::S3::ACL::Grantee::User->new (123),
50 )
51
52 predefined group uri
53 ->grant_read (
54 uri => 'http://...',
55 Net::Amazon::S3::ACL::Grantee::Group->new ('http://...'),
56 Net::Amazon::S3::ACL::Grantee::Group->ALL_USERS,
57 )
58
59 email address
60 ->grant_read (
61 email => 'foo@bar.baz',
62 Net::Amazon::S3::ACL::Grantee::Email->new ('foo@bar.baz'),
63 );
64
66 Branislav Zahradník <barney@cpan.org>
67
69 This module is part of Net::Amazon::S3.
70
72 Branislav Zahradník <barney@cpan.org>
73
75 This software is copyright (c) 2022 by Amazon Digital Services, Leon
76 Brocard, Brad Fitzpatrick, Pedro Figueiredo, Rusty Conover, Branislav
77 Zahradník.
78
79 This is free software; you can redistribute it and/or modify it under
80 the same terms as the Perl 5 programming language system itself.
81
82
83
84perl v5.36.0 2023-03-22 Net::Amazon::S3::ACL::Set(3)