File Coverage

blib/lib/Paws/S3/CreateBucket.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::S3::CreateBucket;
3 1     1   409 use Moose;
  1     1   4  
  1         8  
  1         404  
  1         2  
  1         8  
4             has ACL => (is => 'ro', isa => 'Str', header_name => 'x-amz-acl', traits => ['ParamInHeader']);
5             has Bucket => (is => 'ro', isa => 'Str', uri_name => 'Bucket', traits => ['ParamInURI'], required => 1);
6             has CreateBucketConfiguration => (is => 'ro', isa => 'Paws::S3::CreateBucketConfiguration');
7             has GrantFullControl => (is => 'ro', isa => 'Str', header_name => 'x-amz-grant-full-control', traits => ['ParamInHeader']);
8             has GrantRead => (is => 'ro', isa => 'Str', header_name => 'x-amz-grant-read', traits => ['ParamInHeader']);
9             has GrantReadACP => (is => 'ro', isa => 'Str', header_name => 'x-amz-grant-read-acp', traits => ['ParamInHeader']);
10             has GrantWrite => (is => 'ro', isa => 'Str', header_name => 'x-amz-grant-write', traits => ['ParamInHeader']);
11             has GrantWriteACP => (is => 'ro', isa => 'Str', header_name => 'x-amz-grant-write-acp', traits => ['ParamInHeader']);
12              
13 1     1   6054 use MooseX::ClassAttribute;
  1     1   2  
  1         9  
  1         6158  
  1         2  
  1         6  
14              
15             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateBucket');
16             class_has _api_uri => (isa => 'Str', is => 'ro', default => '/{Bucket}');
17             class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
18             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::S3::CreateBucketOutput');
19             class_has _result_key => (isa => 'Str', is => 'ro');
20            
21             1;
22              
23             ### main pod documentation begin ###
24              
25             =head1 NAME
26              
27             Paws::S3::CreateBucket - Arguments for method CreateBucket on Paws::S3
28              
29             =head1 DESCRIPTION
30              
31             This class represents the parameters used for calling the method CreateBucket on the
32             Amazon Simple Storage Service service. Use the attributes of this class
33             as arguments to method CreateBucket.
34              
35             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateBucket.
36              
37             As an example:
38              
39             $service_obj->CreateBucket(Att1 => $value1, Att2 => $value2, ...);
40              
41             Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
42              
43             =head1 ATTRIBUTES
44              
45              
46             =head2 ACL => Str
47              
48             The canned ACL to apply to the bucket.
49              
50             Valid values are: C<"private">, C<"public-read">, C<"public-read-write">, C<"authenticated-read">
51              
52             =head2 B<REQUIRED> Bucket => Str
53              
54              
55              
56              
57              
58             =head2 CreateBucketConfiguration => L<Paws::S3::CreateBucketConfiguration>
59              
60              
61              
62              
63              
64             =head2 GrantFullControl => Str
65              
66             Allows grantee the read, write, read ACP, and write ACP permissions on
67             the bucket.
68              
69              
70              
71             =head2 GrantRead => Str
72              
73             Allows grantee to list the objects in the bucket.
74              
75              
76              
77             =head2 GrantReadACP => Str
78              
79             Allows grantee to read the bucket ACL.
80              
81              
82              
83             =head2 GrantWrite => Str
84              
85             Allows grantee to create, overwrite, and delete any object in the
86             bucket.
87              
88              
89              
90             =head2 GrantWriteACP => Str
91              
92             Allows grantee to write the ACL for the applicable bucket.
93              
94              
95              
96              
97             =head1 SEE ALSO
98              
99             This class forms part of L<Paws>, documenting arguments for method CreateBucket in L<Paws::S3>
100              
101             =head1 BUGS and CONTRIBUTIONS
102              
103             The source code is located here: https://github.com/pplu/aws-sdk-perl
104              
105             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
106              
107             =cut
108