| 1 | package Net::Amazon::S3::Vendor::Amazon; | ||
| 2 | 99 | $Net::Amazon::S3::Vendor::Amazon::VERSION = '0.991'; | |
| 3 | 99 | ▶ | use Moose 0.85; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | # ABSTRACT: Amazon AWS specific behaviour | ||
| 6 | |||
| 7 | 99 | extends 'Net::Amazon::S3::Vendor'; | |
| 8 | |||
| 9 | 99 | ▶ | use Net::Amazon::S3::Signature::V4; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 99 | has '+host' => ( | |
| 12 | default => 's3.amazonaws.com', | ||
| 13 | ); | ||
| 14 | |||
| 15 | has '+authorization_method' => ( | ||
| 16 | 2 | ▶ | default => sub { 'Net::Amazon::S3::Signature::V4' }, |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 17 | 99 | ); | |
| 18 | |||
| 19 | sub guess_bucket_region { | ||
| 20 | 1 | ▶ | my ($self, $bucket) = @_; |
|
Subroutine
guess_bucket_region: called CC=1 SCAR=0.0
Pod
documented
| |||
| 21 | |||
| 22 | 1 | $bucket->_head_region; | |
| 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::Vendor::Amazon - Amazon AWS specific behaviour | ||
| 36 | |||
| 37 | =head1 VERSION | ||
| 38 | |||
| 39 | version 0.991 | ||
| 40 | |||
| 41 | =head1 SYNOPSIS | ||
| 42 | |||
| 43 | my $s3 = Net::Amazon::S3->new ( | ||
| 44 | vendor => Net::Amazon::S3::Vendor::Amazon->new, | ||
| 45 | ... | ||
| 46 | ); | ||
| 47 | |||
| 48 | =head1 DESCRIPTION | ||
| 49 | |||
| 50 | Amazon AWS vendor specification. | ||
| 51 | |||
| 52 | Supports all L<< Net::Amazon::S3::Vendor >> constructor parameters although | ||
| 53 | usually there is no reason to change it :-) | ||
| 54 | |||
| 55 | Guess bucket region implementation uses bucket's HEAD region request. | ||
| 56 | |||
| 57 | =head1 AUTHOR | ||
| 58 | |||
| 59 | Branislav Zahradník <barney@cpan.org> | ||
| 60 | |||
| 61 | =head1 COPYRIGHT AND LICENSE | ||
| 62 | |||
| 63 | This software is copyright (c) 2022 by Amazon Digital Services, Leon Brocard, Brad Fitzpatrick, Pedro Figueiredo, Rusty Conover, Branislav Zahradník. | ||
| 64 | |||
| 65 | This is free software; you can redistribute it and/or modify it under | ||
| 66 | the same terms as the Perl 5 programming language system itself. | ||
| 67 | |||
| 68 | =cut | ||