File Coverage

blib/lib/Net/Amazon/S3/Constraint/ACL/Canned.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Net::Amazon::S3::Constraint::ACL::Canned;
2             # ABSTRACT: Moose constraint - valid Canned ACL constants
3             $Net::Amazon::S3::Constraint::ACL::Canned::VERSION = '0.99';
4 100     100   1303 use Moose::Util::TypeConstraints;
  100         259  
  100         878  
5              
6             # Current list at https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
7             enum __PACKAGE__, [
8             'private',
9             'public-read',
10             'public-read-write',
11             'aws-exec-read',
12             'authenticated-read',
13             'bucket-owner-read',
14             'bucket-owner-full-control',
15             'log-delivery-write',
16             ];
17              
18             # Backward compatibility - create alias
19             subtype 'AclShort', as __PACKAGE__;
20              
21             1;
22              
23             __END__
24              
25             =pod
26              
27             =encoding UTF-8
28              
29             =head1 NAME
30              
31             Net::Amazon::S3::Constraint::ACL::Canned - Moose constraint - valid Canned ACL constants
32              
33             =head1 VERSION
34              
35             version 0.99
36              
37             =head1 AUTHOR
38              
39             Branislav Zahradník <barney@cpan.org>
40              
41             =head1 COPYRIGHT AND LICENSE
42              
43             This software is copyright (c) 2021 by Amazon Digital Services, Leon Brocard, Brad Fitzpatrick, Pedro Figueiredo, Rusty Conover, Branislav Zahradník.
44              
45             This is free software; you can redistribute it and/or modify it under
46             the same terms as the Perl 5 programming language system itself.
47              
48             =cut