blib/lib/Paws/S3/PutBucketAnalyticsConfiguration.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::S3::PutBucketAnalyticsConfiguration;
3 use Moose;
4 has AnalyticsConfiguration => (is => 'ro', isa => 'Paws::S3::AnalyticsConfiguration', traits => ['ParamInBody'], required => 1);
5 has Bucket => (is => 'ro', isa => 'Str', uri_name => 'Bucket', traits => ['ParamInURI'], required => 1);
6 has ContentLength => (is => 'ro', isa => 'Int', header_name => 'Content-Length', traits => ['ParamInHeader']);
7 has ExpectedBucketOwner => (is => 'ro', isa => 'Str', header_name => 'x-amz-expected-bucket-owner', traits => ['ParamInHeader']);
8 has Id => (is => 'ro', isa => 'Str', query_name => 'id', traits => ['ParamInQuery'], required => 1);
9  
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutBucketAnalyticsConfiguration');
14 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/{Bucket}?analytics');
15 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
16 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
17 class_has _result_key => (isa => 'Str', is => 'ro');
18
19
20 1;
21  
22 ### main pod documentation begin ###
23  
24 =head1 NAME
25  
26 Paws::S3::PutBucketAnalyticsConfiguration - Arguments for method PutBucketAnalyticsConfiguration on L<Paws::S3>
27  
28 =head1 DESCRIPTION
29  
30 This class represents the parameters used for calling the method PutBucketAnalyticsConfiguration on the
31 L<Amazon Simple Storage Service|Paws::S3> service. Use the attributes of this class
32 as arguments to method PutBucketAnalyticsConfiguration.
33  
34 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutBucketAnalyticsConfiguration.
35  
36 =head1 SYNOPSIS
37  
38 my $s3 = Paws->service('S3');
39 $s3->PutBucketAnalyticsConfiguration(
40 AnalyticsConfiguration => {
41 Id => 'MyAnalyticsId',
42 StorageClassAnalysis => {
43 DataExport => {
44 Destination => {
45 S3BucketDestination => {
46 Bucket => 'MyBucketName',
47 Format => 'CSV', # values: CSV
48 BucketAccountId => 'MyAccountId', # OPTIONAL
49 Prefix => 'MyPrefix', # OPTIONAL
50 },
51  
52 },
53 OutputSchemaVersion => 'V_1', # values: V_1
54  
55 }, # OPTIONAL
56 },
57 Filter => {
58 And => {
59 Prefix => 'MyPrefix', # OPTIONAL
60 Tags => [
61 {
62 Key => 'MyObjectKey', # min: 1
63 Value => 'MyValue',
64  
65 },
66 ...
67 ], # OPTIONAL
68 }, # OPTIONAL
69 Prefix => 'MyPrefix', # OPTIONAL
70 Tag => {
71 Key => 'MyObjectKey', # min: 1
72 Value => 'MyValue',
73  
74 },
75 }, # OPTIONAL
76 },
77 Bucket => 'MyBucketName',
78 Id => 'MyAnalyticsId',
79 ContentLength => 1, # OPTIONAL
80 ExpectedBucketOwner => 'MyAccountId', # OPTIONAL
81 );
82  
83 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.
84 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/s3/PutBucketAnalyticsConfiguration>
85  
86 =head1 ATTRIBUTES
87  
88  
89 =head2 B<REQUIRED> AnalyticsConfiguration => L<Paws::S3::AnalyticsConfiguration>
90  
91 The configuration and any analyses for the analytics filter.
92  
93  
94  
95 =head2 B<REQUIRED> Bucket => Str
96  
97 The name of the bucket to which an analytics configuration is stored.
98  
99  
100  
101 =head2 ContentLength => Int
102  
103 Size of the body in bytes.
104  
105  
106  
107 =head2 ExpectedBucketOwner => Str
108  
109 The account ID of the expected bucket owner. If the bucket is owned by
110 a different account, the request will fail with an HTTP C<403 (Access
111 Denied)> error.
112  
113  
114  
115 =head2 B<REQUIRED> Id => Str
116  
117 The ID that identifies the analytics configuration.
118  
119  
120  
121  
122 =head1 SEE ALSO
123  
124 This class forms part of L<Paws>, documenting arguments for method PutBucketAnalyticsConfiguration in L<Paws::S3>
125  
126 =head1 BUGS and CONTRIBUTIONS
127  
128 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
129  
130 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
131  
132 =cut
133