File Coverage

blib/lib/Paws/S3/PutBucketAcl.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::S3::PutBucketAcl;
3 1     1   280 use Moose;
  1         4  
  1         6  
4             has AccessControlPolicy => (is => 'ro', isa => 'Paws::S3::AccessControlPolicy');
5             has ACL => (is => 'ro', isa => 'Str', header_name => 'x-amz-acl', traits => ['ParamInHeader']);
6             has Bucket => (is => 'ro', isa => 'Str', uri_name => 'Bucket', traits => ['ParamInURI'], required => 1);
7             has ContentMD5 => (is => 'ro', isa => 'Str', header_name => 'Content-MD5', auto => 'MD5', traits => ['AutoInHeader']);
8             has GrantFullControl => (is => 'ro', isa => 'Str', header_name => 'x-amz-grant-full-control', traits => ['ParamInHeader']);
9             has GrantRead => (is => 'ro', isa => 'Str', header_name => 'x-amz-grant-read', traits => ['ParamInHeader']);
10             has GrantReadACP => (is => 'ro', isa => 'Str', header_name => 'x-amz-grant-read-acp', traits => ['ParamInHeader']);
11             has GrantWrite => (is => 'ro', isa => 'Str', header_name => 'x-amz-grant-write', traits => ['ParamInHeader']);
12             has GrantWriteACP => (is => 'ro', isa => 'Str', header_name => 'x-amz-grant-write-acp', traits => ['ParamInHeader']);
13              
14 1     1   5459 use MooseX::ClassAttribute;
  1         2  
  1         6  
15              
16             class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutBucketAcl');
17             class_has _api_uri => (isa => 'Str', is => 'ro', default => '/{Bucket}?acl');
18             class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
19             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
20             class_has _result_key => (isa => 'Str', is => 'ro');
21            
22             1;
23              
24             ### main pod documentation begin ###
25              
26             =head1 NAME
27              
28             Paws::S3::PutBucketAcl - Arguments for method PutBucketAcl on Paws::S3
29              
30             =head1 DESCRIPTION
31              
32             This class represents the parameters used for calling the method PutBucketAcl on the
33             Amazon Simple Storage Service service. Use the attributes of this class
34             as arguments to method PutBucketAcl.
35              
36             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutBucketAcl.
37              
38             As an example:
39              
40             $service_obj->PutBucketAcl(Att1 => $value1, Att2 => $value2, ...);
41              
42             Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
43              
44             =head1 ATTRIBUTES
45              
46              
47             =head2 AccessControlPolicy => L<Paws::S3::AccessControlPolicy>
48              
49              
50              
51              
52              
53             =head2 ACL => Str
54              
55             The canned ACL to apply to the bucket.
56              
57             Valid values are: C<"private">, C<"public-read">, C<"public-read-write">, C<"authenticated-read">
58              
59             =head2 B<REQUIRED> Bucket => Str
60              
61              
62              
63              
64              
65             =head2 ContentMD5 => Str
66              
67              
68              
69              
70              
71             =head2 GrantFullControl => Str
72              
73             Allows grantee the read, write, read ACP, and write ACP permissions on
74             the bucket.
75              
76              
77              
78             =head2 GrantRead => Str
79              
80             Allows grantee to list the objects in the bucket.
81              
82              
83              
84             =head2 GrantReadACP => Str
85              
86             Allows grantee to read the bucket ACL.
87              
88              
89              
90             =head2 GrantWrite => Str
91              
92             Allows grantee to create, overwrite, and delete any object in the
93             bucket.
94              
95              
96              
97             =head2 GrantWriteACP => Str
98              
99             Allows grantee to write the ACL for the applicable bucket.
100              
101              
102              
103              
104             =head1 SEE ALSO
105              
106             This class forms part of L<Paws>, documenting arguments for method PutBucketAcl in L<Paws::S3>
107              
108             =head1 BUGS and CONTRIBUTIONS
109              
110             The source code is located here: https://github.com/pplu/aws-sdk-perl
111              
112             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
113              
114             =cut
115