blib/lib/Paws/S3/PutBucketAccelerateConfiguration.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 18 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/S3/ProgressEvent.pm ↑ Summary blib/lib/Paws/S3/PutBucketAcl.pm »
1  
2 package Paws::S3::PutBucketAccelerateConfiguration;
3 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 has AccelerateConfiguration => (is => 'ro', isa => 'Paws::S3::AccelerateConfiguration', traits => ['ParamInBody'], required => 1);
5 1 has Bucket => (is => 'ro', isa => 'Str', uri_name => 'Bucket', traits => ['ParamInURI'], required => 1);
6 1 has ContentLength => (is => 'ro', isa => 'Int', header_name => 'Content-Length', traits => ['ParamInHeader']);
7 1 has ExpectedBucketOwner => (is => 'ro', isa => 'Str', header_name => 'x-amz-expected-bucket-owner', traits => ['ParamInHeader']);
8  
9  
10 1 ▶ use MooseX::ClassAttribute;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutBucketAccelerateConfiguration');
13 1 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/{Bucket}?accelerate');
14 1 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
15 1 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
16 1 class_has _result_key => (isa => 'Str', is => 'ro');
17
18
19 1 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::S3::PutBucketAccelerateConfiguration - Arguments for method PutBucketAccelerateConfiguration on L<Paws::S3>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method PutBucketAccelerateConfiguration on the
30 L<Amazon Simple Storage Service|Paws::S3> service. Use the attributes of this class
31 as arguments to method PutBucketAccelerateConfiguration.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutBucketAccelerateConfiguration.
34  
35 =head1 SYNOPSIS
36  
37 my $s3 = Paws->service('S3');
38 $s3->PutBucketAccelerateConfiguration(
39 AccelerateConfiguration => {
40 Status => 'Enabled', # values: Enabled, Suspended; OPTIONAL
41 },
42 Bucket => 'MyBucketName',
43 ContentLength => 1, # OPTIONAL
44 ExpectedBucketOwner => 'MyAccountId', # OPTIONAL
45 );
46  
47 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.
48 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/s3/PutBucketAccelerateConfiguration>
49  
50 =head1 ATTRIBUTES
51  
52  
53 =head2 B<REQUIRED> AccelerateConfiguration => L<Paws::S3::AccelerateConfiguration>
54  
55 Container for setting the transfer acceleration state.
56  
57  
58  
59 =head2 B<REQUIRED> Bucket => Str
60  
61 The name of the bucket for which the accelerate configuration is set.
62  
63  
64  
65 =head2 ContentLength => Int
66  
67 Size of the body in bytes.
68  
69  
70  
71 =head2 ExpectedBucketOwner => Str
72  
73 The account ID of the expected bucket owner. If the bucket is owned by
74 a different account, the request will fail with an HTTP C<403 (Access
75 Denied)> error.
76  
77  
78  
79  
80 =head1 SEE ALSO
81  
82 This class forms part of L<Paws>, documenting arguments for method PutBucketAccelerateConfiguration in L<Paws::S3>
83  
84 =head1 BUGS and CONTRIBUTIONS
85  
86 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
87  
88 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
89  
90 =cut
91  
« blib/lib/Paws/S3/ProgressEvent.pm ↑ Summary blib/lib/Paws/S3/PutBucketAcl.pm »