Net::Amazon::S3::Request::GetBucketAccessControl - An internal class to get a bucket's access control


Net-Amazon-S3 documentation Contained in the Net-Amazon-S3 distribution.

Index


Code Index:

NAME

Top

Net::Amazon::S3::Request::GetBucketAccessControl - An internal class to get a bucket's access control

SYNOPSIS

Top

  my $http_request = Net::Amazon::S3::Request::GetBucketAccessControl->new(
    s3     => $s3,
    bucket => $bucket,
  )->http_request;

DESCRIPTION

Top

This module gets a bucket's access control.

METHODS

Top

http_request

This method returns a HTTP::Request object.


Net-Amazon-S3 documentation Contained in the Net-Amazon-S3 distribution.

package Net::Amazon::S3::Request::GetBucketAccessControl;
use Moose;
use MooseX::StrictConstructor;
extends 'Net::Amazon::S3::Request';

has 'bucket' => ( is => 'ro', isa => 'BucketName', required => 1 );

__PACKAGE__->meta->make_immutable;

sub http_request {
    my $self = shift;

    return Net::Amazon::S3::HTTPRequest->new(
        s3     => $self->s3,
        method => 'GET',
        path   => $self->_uri('') . '?acl',
    )->http_request;
}

1;

__END__