AWS-S3
view release on metacpan or search on metacpan
0.025 2012-01-12
- $bucket->delete_multi( @keys ) actually works now.
0.024 2012-01-05
- Better integration with CloudFront.
- More CF-related updates are on the way.
0.023 2012-01-04
- Complete overhaul of the request-signing methodology. Amazon should not be
allowed to design any more public APIs until they learn about this little
thing we call "Uniformity"
0.022 2012-01-04
- was never actually released...we skipped from 0.021 to 0.023
0.021 2011-12-31
- File's S3 was a weak ref, which caused problems. No longer...
0.020 2011-12-21
- Updated to be compatible with VSO 0.21
lib/AWS/S3/Bucket.pm view on Meta::CPAN
clearer => '_clear_acl',
default => sub {
my $self = shift;
my $type = 'GetBucketAccessControl';
return $self->_get_property( $type )->response->decoded_content();
},
trigger => sub {
my ( $self, $new_val, $old_val ) = @_;
my %shorts = map { $_ => undef } qw(
private public-read public-read-write authenticated-read
);
my %acl = ();
if ( $new_val =~ m{<} ) {
$acl{acl_xml} = $new_val;
}
elsif ( exists $shorts{$new_val} ) {
$acl{acl_short} = $new_val;
}
else {
lib/AWS/S3/File.pm view on Meta::CPAN
$file->contents( sub {
return \$new_contents;
});
# Alternative update
$file->update(
contents => \'New contents', # optional
contenttype => 'text/plain' # optional
);
# Get signed URL for the file for public access
print $file->signed_url( $expiry_time );
# Delete the file:
$file->delete();
=head1 DESCRIPTION
AWS::S3::File provides a convenience wrapper for dealing with files stored in S3.
=head1 PUBLIC PROPERTIES
lib/AWS/S3/File.pm view on Meta::CPAN
=head2 delete()
Deletes the file from Amazon S3.
=head2 update()
Update contents and/or contenttype of the file.
=head2 signed_url( $expiry_time )
Will return a signed URL for public access to the file. $expiry_time should be a
Unix seconds since epoch, and will default to now + 1 hour is not passed.
Note that the Signature parameter value will be URI encoded to prevent reserved
characters (+, =, etc) causing a bad request.
=head1 SEE ALSO
L<The Amazon S3 API Documentation|http://docs.amazonwebservices.com/AmazonS3/latest/API/>
L<AWS::S3>
( run in 0.424 second using v1.01-cache-2.11-cpan-64827b87656 )