| 1 | package Net::Amazon::S3::Operation::Buckets::List::Request; | ||
| 2 | 99 | $Net::Amazon::S3::Operation::Buckets::List::Request::VERSION = '0.991'; | |
| 3 | 99 | ▶ | use Moose 0.85; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 99 | ▶ | use MooseX::StrictConstructor 0.16; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 99 | extends 'Net::Amazon::S3::Request::Service'; | |
| 6 | |||
| 7 | # ABSTRACT: An internal class to list all buckets | ||
| 8 | |||
| 9 | 99 | with 'Net::Amazon::S3::Request::Role::HTTP::Method::GET'; | |
| 10 | |||
| 11 | 99 | __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 | ▶ | my $self = shift; |
|
Subroutine
http_request: called CC=1 SCAR=0.0
Pod
documented
| |||
| 19 | 12 | return $self->_build_http_request ( | |
| 20 | use_virtual_host => 0, | ||
| 21 | region => $self->s3->vendor->default_region, | ||
| 22 | ); | ||
| 23 | } | ||
| 24 | |||
| 25 | 99 | 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.991 | ||
| 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) 2022 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 | ||