File Coverage

blib/lib/Net/Amazon/S3/Operation/Buckets/List/Request.pm
Criterion Covered Total %
statement 8 8 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod 1 1 100.0
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Net::Amazon::S3::Operation::Buckets::List::Request;
2             $Net::Amazon::S3::Operation::Buckets::List::Request::VERSION = '0.99';
3 99     99   834 use Moose 0.85;
  99         2484  
  99         742  
4 99     99   670675 use MooseX::StrictConstructor 0.16;
  99         2302  
  99         787  
5             extends 'Net::Amazon::S3::Request::Service';
6              
7             # ABSTRACT: An internal class to list all buckets
8              
9             with 'Net::Amazon::S3::Request::Role::HTTP::Method::GET';
10              
11             __PACKAGE__->meta->make_immutable;
12              
13             # AWS routes request without specific region to us-east-1
14             #
15             # https://docs.aws.amazon.com/general/latest/gr/rande.html
16              
17             sub http_request {
18 12     12 1 36 my $self = shift;
19 12         399 return $self->_build_http_request (
20             use_virtual_host => 0,
21             region => $self->s3->vendor->default_region,
22             );
23             }
24              
25             1;
26              
27             __END__
28              
29             =pod
30              
31             =encoding UTF-8
32              
33             =head1 NAME
34              
35             Net::Amazon::S3::Operation::Buckets::List::Request - An internal class to list all buckets
36              
37             =head1 VERSION
38              
39             version 0.99
40              
41             =head1 SYNOPSIS
42              
43             my $request = Net::Amazon::S3::Operation::Buckets::List::Request->new (
44             s3 => $s3,
45             );
46              
47             =head1 DESCRIPTION
48              
49             This module lists all buckets.
50              
51             Implements operation L<< ListBuckets|https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html >>
52              
53             =for test_synopsis no strict 'vars'
54              
55             =head1 METHODS
56              
57             =head2 http_request
58              
59             This method returns a HTTP::Request object.
60              
61             =head1 AUTHOR
62              
63             Branislav Zahradník <barney@cpan.org>
64              
65             =head1 COPYRIGHT AND LICENSE
66              
67             This software is copyright (c) 2021 by Amazon Digital Services, Leon Brocard, Brad Fitzpatrick, Pedro Figueiredo, Rusty Conover, Branislav Zahradník.
68              
69             This is free software; you can redistribute it and/or modify it under
70             the same terms as the Perl 5 programming language system itself.
71              
72             =cut