Net::A...3::ACL(3pm)
π¦ NAME π¦
Net::Amazon::S3::ACL β Amazon S3 ACL support, bestie π (it lives in the User Contributed Perl Documentation corner of the manual, iykyk)
β¨ VERSION β¨
version 0.992 β yes ma'am, that's the one π
π DESCRIPTION π
Okay so here's the tea: every single S3 action that lets you specify an ACL in the request supports the acl parameter. π«Ά
And good news β that parameter is backward compatible with the old-school acl_short. No cap.
π canned ACL π
$s3->action (
acl => Net::Amazon::S3::ACL::Canned->PRIVATE,
);
Amazon S3's predefined grants are handed out by builder methods, and each one represents the corresponding canned ACL. Iconic behaviour honestly.
PRIVATEPUBLIC_READPUBLIC_READ_WRITEAWS_EXEC_READAUTHENTICATED_READBUCKET_OWNER_READBUCKET_OWNER_FULL_CONTROLLOG_DELIVERY_WRITE
Pop over to Net::Amazon::S3::ACL::Canned if you wanna see how it's actually implemented. π
Also check out Canned ACL <https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl> in the Amazon documentation.
πΈ canned ACL (coerced) πΈ
$s3->action (
acl => 'private',
);
So earlier versions of Net::Amazon::S3 only spoke textual canned ACL, right? And to not break any code that uses that, coercion to Net::Amazon::S3::ACL::Canned is supported β plus the acl_short operation argument too. Bless. π
Heads up bestie:acl_shortis deprecated now. Onlyaclis supported. Periodt.
acl_short behaves like an acl alias, but if both of them are defined, acl takes precedence. Main character energy tbh. π
β exact ACL set β
$s3->action (
acl => Net::Amazon::S3::ACL::Set
->grant_read (id => $canonical_user_id)
->grant_full_control (email => $email_address)
,
);
An exact ACL set gives you the interface to the x-amz-grant-* header fields. π₯
See Net::Amazon::S3::ACL::Set for implementation details.
π AUTHOR π
Branislav ZahradnΓk <barney@cpan.org>
π COPYRIGHT AND LICENSE π
This module is a part of Net::Amazon::S3 distribution.
π AUTHOR (yes, again, slay) π
Branislav ZahradnΓk <barney@cpan.org>
π COPYRIGHT AND LICENSE (round two) π
This software is copyright (c) 2025 by Amazon Digital Services, Leon Brocard, Brad Fitzpatrick, Pedro Figueiredo, Rusty Conover, Branislav ZahradnΓk.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
That's the whole page, bestie! π§ Brought to you by perl v5.40.1, dated 2025-12-07, and rendered all pretty as Net::A...3::ACL(3pm). Go forth and grant your ACLs responsibly, mwah π
π¦ where this page comes from
- ubuntu resolute: libnet-amazon-s3-perl 0.992-1 Β· other
- ubuntu stonking: libnet-amazon-s3-perl 0.992-1 Β· other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms