File Coverage

blib/lib/Paws/S3/CreateMultipartUpload.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::CreateMultipartUpload;
3 1     1   618 use Moose;
  1     1   3  
  1         7  
  1         350  
  1         3  
  1         6  
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 CacheControl => (is => 'ro', isa => 'Str', header_name => 'Cache-Control', traits => ['ParamInHeader']);
7             has ContentDisposition => (is => 'ro', isa => 'Str', header_name => 'Content-Disposition', traits => ['ParamInHeader']);
8             has ContentEncoding => (is => 'ro', isa => 'Str', header_name => 'Content-Encoding', traits => ['ParamInHeader']);
9             has ContentLanguage => (is => 'ro', isa => 'Str', header_name => 'Content-Language', traits => ['ParamInHeader']);
10             has ContentType => (is => 'ro', isa => 'Str', header_name => 'Content-Type', traits => ['ParamInHeader']);
11             has Expires => (is => 'ro', isa => 'Str', header_name => 'Expires', traits => ['ParamInHeader']);
12             has GrantFullControl => (is => 'ro', isa => 'Str', header_name => 'x-amz-grant-full-control', traits => ['ParamInHeader']);
13             has GrantRead => (is => 'ro', isa => 'Str', header_name => 'x-amz-grant-read', traits => ['ParamInHeader']);
14             has GrantReadACP => (is => 'ro', isa => 'Str', header_name => 'x-amz-grant-read-acp', traits => ['ParamInHeader']);
15             has GrantWriteACP => (is => 'ro', isa => 'Str', header_name => 'x-amz-grant-write-acp', traits => ['ParamInHeader']);
16             has Key => (is => 'ro', isa => 'Str', uri_name => 'Key', traits => ['ParamInURI'], required => 1);
17             has Metadata => (is => 'ro', isa => 'Paws::S3::Metadata', header_prefix => 'x-amz-meta-', traits => ['ParamInHeaders']);
18             has RequestPayer => (is => 'ro', isa => 'Str', header_name => 'x-amz-request-payer', traits => ['ParamInHeader']);
19             has ServerSideEncryption => (is => 'ro', isa => 'Str', header_name => 'x-amz-server-side-encryption', traits => ['ParamInHeader']);
20             has SSECustomerAlgorithm => (is => 'ro', isa => 'Str', header_name => 'x-amz-server-side-encryption-customer-algorithm', traits => ['ParamInHeader']);
21             has SSECustomerKey => (is => 'ro', isa => 'Str', header_name => 'x-amz-server-side-encryption-customer-key', traits => ['ParamInHeader']);
22             has SSECustomerKeyMD5 => (is => 'ro', isa => 'Str', header_name => 'x-amz-server-side-encryption-customer-key-MD5', traits => ['ParamInHeader']);
23             has SSEKMSKeyId => (is => 'ro', isa => 'Str', header_name => 'x-amz-server-side-encryption-aws-kms-key-id', traits => ['ParamInHeader']);
24             has StorageClass => (is => 'ro', isa => 'Str', header_name => 'x-amz-storage-class', traits => ['ParamInHeader']);
25             has Tagging => (is => 'ro', isa => 'Str', header_name => 'x-amz-tagging', traits => ['ParamInHeader']);
26             has WebsiteRedirectLocation => (is => 'ro', isa => 'Str', header_name => 'x-amz-website-redirect-location', traits => ['ParamInHeader']);
27              
28 1     1   5587 use MooseX::ClassAttribute;
  1     1   3  
  1         6  
  1         5822  
  1         2  
  1         6  
29              
30             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateMultipartUpload');
31             class_has _api_uri => (isa => 'Str', is => 'ro', default => '/{Bucket}/{Key+}?uploads');
32             class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
33             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::S3::CreateMultipartUploadOutput');
34             class_has _result_key => (isa => 'Str', is => 'ro');
35            
36             1;
37              
38             ### main pod documentation begin ###
39              
40             =head1 NAME
41              
42             Paws::S3::CreateMultipartUpload - Arguments for method CreateMultipartUpload on Paws::S3
43              
44             =head1 DESCRIPTION
45              
46             This class represents the parameters used for calling the method CreateMultipartUpload on the
47             Amazon Simple Storage Service service. Use the attributes of this class
48             as arguments to method CreateMultipartUpload.
49              
50             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateMultipartUpload.
51              
52             As an example:
53              
54             $service_obj->CreateMultipartUpload(Att1 => $value1, Att2 => $value2, ...);
55              
56             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.
57              
58             =head1 ATTRIBUTES
59              
60              
61             =head2 ACL => Str
62              
63             The canned ACL to apply to the object.
64              
65             Valid values are: C<"private">, C<"public-read">, C<"public-read-write">, C<"authenticated-read">, C<"aws-exec-read">, C<"bucket-owner-read">, C<"bucket-owner-full-control">
66              
67             =head2 B<REQUIRED> Bucket => Str
68              
69              
70              
71              
72              
73             =head2 CacheControl => Str
74              
75             Specifies caching behavior along the request/reply chain.
76              
77              
78              
79             =head2 ContentDisposition => Str
80              
81             Specifies presentational information for the object.
82              
83              
84              
85             =head2 ContentEncoding => Str
86              
87             Specifies what content encodings have been applied to the object and
88             thus what decoding mechanisms must be applied to obtain the media-type
89             referenced by the Content-Type header field.
90              
91              
92              
93             =head2 ContentLanguage => Str
94              
95             The language the content is in.
96              
97              
98              
99             =head2 ContentType => Str
100              
101             A standard MIME type describing the format of the object data.
102              
103              
104              
105             =head2 Expires => Str
106              
107             The date and time at which the object is no longer cacheable.
108              
109              
110              
111             =head2 GrantFullControl => Str
112              
113             Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the
114             object.
115              
116              
117              
118             =head2 GrantRead => Str
119              
120             Allows grantee to read the object data and its metadata.
121              
122              
123              
124             =head2 GrantReadACP => Str
125              
126             Allows grantee to read the object ACL.
127              
128              
129              
130             =head2 GrantWriteACP => Str
131              
132             Allows grantee to write the ACL for the applicable object.
133              
134              
135              
136             =head2 B<REQUIRED> Key => Str
137              
138              
139              
140              
141              
142             =head2 Metadata => L<Paws::S3::Metadata>
143              
144             A map of metadata to store with the object in S3.
145              
146              
147              
148             =head2 RequestPayer => Str
149              
150              
151              
152             Valid values are: C<"requester">
153              
154             =head2 ServerSideEncryption => Str
155              
156             The Server-side encryption algorithm used when storing this object in
157             S3 (e.g., AES256, aws:kms).
158              
159             Valid values are: C<"AES256">, C<"aws:kms">
160              
161             =head2 SSECustomerAlgorithm => Str
162              
163             Specifies the algorithm to use to when encrypting the object (e.g.,
164             AES256).
165              
166              
167              
168             =head2 SSECustomerKey => Str
169              
170             Specifies the customer-provided encryption key for Amazon S3 to use in
171             encrypting data. This value is used to store the object and then it is
172             discarded; Amazon does not store the encryption key. The key must be
173             appropriate for use with the algorithm specified in the
174             x-amz-server-side-encryption-customer-algorithm header.
175              
176              
177              
178             =head2 SSECustomerKeyMD5 => Str
179              
180             Specifies the 128-bit MD5 digest of the encryption key according to RFC
181             1321. Amazon S3 uses this header for a message integrity check to
182             ensure the encryption key was transmitted without error.
183              
184              
185              
186             =head2 SSEKMSKeyId => Str
187              
188             Specifies the AWS KMS key ID to use for object encryption. All GET and
189             PUT requests for an object protected by AWS KMS will fail if not made
190             via SSL or using SigV4. Documentation on configuring any of the
191             officially supported AWS SDKs and CLI can be found at
192             http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version
193              
194              
195              
196             =head2 StorageClass => Str
197              
198             The type of storage to use for the object. Defaults to 'STANDARD'.
199              
200             Valid values are: C<"STANDARD">, C<"REDUCED_REDUNDANCY">, C<"STANDARD_IA">
201              
202             =head2 Tagging => Str
203              
204             The tag-set for the object. The tag-set must be encoded as URL Query
205             parameters
206              
207              
208              
209             =head2 WebsiteRedirectLocation => Str
210              
211             If the bucket is configured as a website, redirects requests for this
212             object to another object in the same bucket or to an external URL.
213             Amazon S3 stores the value of this header in the object metadata.
214              
215              
216              
217              
218             =head1 SEE ALSO
219              
220             This class forms part of L<Paws>, documenting arguments for method CreateMultipartUpload in L<Paws::S3>
221              
222             =head1 BUGS and CONTRIBUTIONS
223              
224             The source code is located here: https://github.com/pplu/aws-sdk-perl
225              
226             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
227              
228             =cut
229