Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.141.19.58
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : ACL.pm
package Net::Amazon::S3::Role::ACL;
# ABSTRACT: ACL specification
$Net::Amazon::S3::Role::ACL::VERSION = '0.991';
use Moose::Role;
use Moose::Util::TypeConstraints;

use Carp ();

use Net::Amazon::S3::ACL::Set;
use Net::Amazon::S3::ACL::Canned;
use Net::Amazon::S3::Constraint::ACL::Canned;

has acl => (
	is          => 'ro',
	isa         => union ([
		'Net::Amazon::S3::ACL::Set',
		'Net::Amazon::S3::ACL::Canned',
	]),
	required    => 0,
	coerce      => 1,
);

around BUILDARGS => sub {
	my ($orig, $class) = (shift, shift);
	my $args = $class->$orig (@_);

	if (exists $args->{acl_short}) {
		my $acl_short = delete $args->{acl_short};

		Carp::carp "'acl_short' parameter is ignored when 'acl' specified"
			if exists $args->{acl};

		$args->{acl} = $acl_short
			unless exists $args->{acl};
	}

	delete $args->{acl} unless defined $args->{acl};

	return $args;
};

1;

__END__

=pod

=encoding UTF-8

=head1 NAME

Net::Amazon::S3::Role::ACL - ACL specification

=head1 VERSION

version 0.991

=head1 AUTHOR

Branislav ZahradnĂ­k <barney@cpan.org>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2022 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.

=cut
© 2025 GrazzMean