| 1 | package Net::Amazon::S3::Constraint::ACL::Canned; | ||
| 2 | # ABSTRACT: Moose constraint - valid Canned ACL constants | ||
| 3 | 100 | $Net::Amazon::S3::Constraint::ACL::Canned::VERSION = '0.992'; | |
| 4 | 100 | ▶ | use Moose::Util::TypeConstraints; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | # Current list at https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl | ||
| 7 | 100 | 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 | 100 | subtype 'AclShort', as __PACKAGE__; | |
| 20 | |||
| 21 | 100 | 1; | |
| 22 | |||
| 23 | __END__ | ||