blib/lib/Paws/S3/CompleteMultipartUpload.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 20 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/S3/CommonPrefix.pm ↑ Summary blib/lib/Paws/S3/CompleteMultipartUploadOutput.pm »
1  
2 package Paws::S3::CompleteMultipartUpload;
3 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 has Bucket => (is => 'ro', isa => 'Str', uri_name => 'Bucket', traits => ['ParamInURI'], required => 1);
5 2 has ExpectedBucketOwner => (is => 'ro', isa => 'Str', header_name => 'x-amz-expected-bucket-owner', traits => ['ParamInHeader']);
6 2 has Key => (is => 'ro', isa => 'Str', uri_name => 'Key', traits => ['ParamInURI'], required => 1);
7 2 has MultipartUpload => (is => 'ro', isa => 'Paws::S3::CompletedMultipartUpload', request_name => 'CompleteMultipartUpload', traits => ['NameInRequest','ParamInBody']);
8 2 has RequestPayer => (is => 'ro', isa => 'Str', header_name => 'x-amz-request-payer', traits => ['ParamInHeader']);
9 2 has UploadId => (is => 'ro', isa => 'Str', query_name => 'uploadId', traits => ['ParamInQuery'], required => 1);
10  
11  
12 2 ▶ use MooseX::ClassAttribute;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 2 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CompleteMultipartUpload');
15 2 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/{Bucket}/{Key+}');
16 2 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
17 2 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::S3::CompleteMultipartUploadOutput');
18 2 class_has _result_key => (isa => 'Str', is => 'ro');
19
20
21 2 1;
22  
23 ### main pod documentation begin ###
24  
25 =head1 NAME
26  
27 Paws::S3::CompleteMultipartUpload - Arguments for method CompleteMultipartUpload on L<Paws::S3>
28  
29 =head1 DESCRIPTION
30  
31 This class represents the parameters used for calling the method CompleteMultipartUpload on the
32 L<Amazon Simple Storage Service|Paws::S3> service. Use the attributes of this class
33 as arguments to method CompleteMultipartUpload.
34  
35 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CompleteMultipartUpload.
36  
37 =head1 SYNOPSIS
38  
39 my $s3 = Paws->service('S3');
40 # To complete multipart upload
41 # The following example completes a multipart upload.
42 my $CompleteMultipartUploadOutput = $s3->CompleteMultipartUpload(
43 'Bucket' => 'examplebucket',
44 'Key' => 'bigobject',
45 'MultipartUpload' => {
46 'Parts' => [
47  
48 {
49 'ETag' => '"d8c2eafd90c266e19ab9dcacc479f8af"',
50 'PartNumber' => 1
51 },
52  
53 {
54 'ETag' => '"d8c2eafd90c266e19ab9dcacc479f8af"',
55 'PartNumber' => 2
56 }
57 ]
58 },
59 'UploadId' =>
60 '7YPBOJuoFiQ9cz4P3Pe6FIZwO4f7wN93uHsNBEw97pl5eNwzExg0LAT2dUN91cOmrEQHDsP3WA60CEg--'
61 );
62  
63 # Results:
64 my $Bucket = $CompleteMultipartUploadOutput->Bucket;
65 my $ETag = $CompleteMultipartUploadOutput->ETag;
66 my $Key = $CompleteMultipartUploadOutput->Key;
67 my $Location = $CompleteMultipartUploadOutput->Location;
68  
69 # Returns a L<Paws::S3::CompleteMultipartUploadOutput> object.
70  
71 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.
72 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/s3/CompleteMultipartUpload>
73  
74 =head1 ATTRIBUTES
75  
76  
77 =head2 B<REQUIRED> Bucket => Str
78  
79 Name of the bucket to which the multipart upload was initiated.
80  
81  
82  
83 =head2 ExpectedBucketOwner => Str
84  
85 The account ID of the expected bucket owner. If the bucket is owned by
86 a different account, the request will fail with an HTTP C<403 (Access
87 Denied)> error.
88  
89  
90  
91 =head2 B<REQUIRED> Key => Str
92  
93 Object key for which the multipart upload was initiated.
94  
95  
96  
97 =head2 MultipartUpload => L<Paws::S3::CompletedMultipartUpload>
98  
99 The container for the multipart upload request information.
100  
101  
102  
103 =head2 RequestPayer => Str
104  
105  
106  
107 Valid values are: C<"requester">
108  
109 =head2 B<REQUIRED> UploadId => Str
110  
111 ID for the initiated multipart upload.
112  
113  
114  
115  
116 =head1 SEE ALSO
117  
118 This class forms part of L<Paws>, documenting arguments for method CompleteMultipartUpload in L<Paws::S3>
119  
120 =head1 BUGS and CONTRIBUTIONS
121  
122 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
123  
124 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
125  
126 =cut
127  
« blib/lib/Paws/S3/CommonPrefix.pm ↑ Summary blib/lib/Paws/S3/CompleteMultipartUploadOutput.pm »