Cfn/Resource/AWS/S3/StorageLens.pm

filter: Statementstmt 82.3% 172 / 209 Branchbran 0.0% 0 / 24 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 69.7% 30 / 43 Podpod 0.0% 0 / 2 totaltotal 72.6% 202 / 278 CC 13 SCAR 11.6
CC
13
Cov
74%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.2
« Cfn/Resource/AWS/Glue/MLTransform.pm ↑ Summary Cfn/Resource/AWS/OpsWorks/Layer.pm »
1 # AWS::S3::StorageLens generated from spec 21.0.0
2 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::S3::StorageLens',
5 from 'HashRef',
6 0 ▶ via { Cfn::Resource::Properties::AWS::S3::StorageLens->new( %$_ ) };
Subroutine __ANON__: not called CC=1 SCAR=1.2
7  
8 1 package Cfn::Resource::AWS::S3::StorageLens {
9 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 extends 'Cfn::Resource';
11 1 has Properties => (isa => 'Cfn::Resource::Properties::AWS::S3::StorageLens', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ 'StorageLensArn' ]
Subroutine AttributeList: called CC=1 SCAR=0.0
Pod undocumented
15 }
16 sub supported_regions {
17 1 ▶ [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','eu-central-1','eu-north-1','eu-west-1','eu-west-2','eu-west-3','sa-east-1','us-east-1','us-east-2','us-west-1','us-west-2' ]
Subroutine supported_regions: called CC=1 SCAR=0.0
Pod undocumented
18 }
19 }
20  
21  
22  
23 1 subtype 'Cfn::Resource::Properties::AWS::S3::StorageLens::SelectionCriteria',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::S3::StorageLens::SelectionCriteria',
27 from 'HashRef',
28 via {
29 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
30 0 return $f
31 } else {
32 0 return Cfn::Resource::Properties::Object::AWS::S3::StorageLens::SelectionCriteria->new( %$_ );
33 }
34 1 };
35  
36 1 package Cfn::Resource::Properties::Object::AWS::S3::StorageLens::SelectionCriteria {
37 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 1 extends 'Cfn::Value::TypedValue';
40
41 1 has Delimiter => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 1 has MaxDepth => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 1 has MinStorageBytesPercentage => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44 }
45  
46 1 subtype 'Cfn::Resource::Properties::AWS::S3::StorageLens::PrefixLevelStorageMetrics',
47 as 'Cfn::Value';
48  
49 coerce 'Cfn::Resource::Properties::AWS::S3::StorageLens::PrefixLevelStorageMetrics',
50 from 'HashRef',
51 via {
52 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
53 0 return $f
54 } else {
55 0 return Cfn::Resource::Properties::Object::AWS::S3::StorageLens::PrefixLevelStorageMetrics->new( %$_ );
56 }
57 1 };
58  
59 1 package Cfn::Resource::Properties::Object::AWS::S3::StorageLens::PrefixLevelStorageMetrics {
60 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
61 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
62 1 extends 'Cfn::Value::TypedValue';
63
64 1 has IsEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65 1 has SelectionCriteria => (isa => 'Cfn::Resource::Properties::AWS::S3::StorageLens::SelectionCriteria', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66 }
67  
68 1 subtype 'Cfn::Resource::Properties::AWS::S3::StorageLens::PrefixLevel',
69 as 'Cfn::Value';
70  
71 coerce 'Cfn::Resource::Properties::AWS::S3::StorageLens::PrefixLevel',
72 from 'HashRef',
73 via {
74 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
75 0 return $f
76 } else {
77 0 return Cfn::Resource::Properties::Object::AWS::S3::StorageLens::PrefixLevel->new( %$_ );
78 }
79 1 };
80  
81 1 package Cfn::Resource::Properties::Object::AWS::S3::StorageLens::PrefixLevel {
82 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
83 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
84 1 extends 'Cfn::Value::TypedValue';
85
86 1 has StorageMetrics => (isa => 'Cfn::Resource::Properties::AWS::S3::StorageLens::PrefixLevelStorageMetrics', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87 }
88  
89 1 subtype 'Cfn::Resource::Properties::AWS::S3::StorageLens::Encryption',
90 as 'Cfn::Value';
91  
92 coerce 'Cfn::Resource::Properties::AWS::S3::StorageLens::Encryption',
93 from 'HashRef',
94 via {
95 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
96 0 return $f
97 } else {
98 0 return Cfn::Resource::Properties::Object::AWS::S3::StorageLens::Encryption->new( %$_ );
99 }
100 1 };
101  
102 1 package Cfn::Resource::Properties::Object::AWS::S3::StorageLens::Encryption {
103 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
104 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
105 1 extends 'Cfn::Value::TypedValue';
106
107 }
108  
109 1 subtype 'Cfn::Resource::Properties::AWS::S3::StorageLens::ActivityMetrics',
110 as 'Cfn::Value';
111  
112 coerce 'Cfn::Resource::Properties::AWS::S3::StorageLens::ActivityMetrics',
113 from 'HashRef',
114 via {
115 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
116 0 return $f
117 } else {
118 0 return Cfn::Resource::Properties::Object::AWS::S3::StorageLens::ActivityMetrics->new( %$_ );
119 }
120 1 };
121  
122 1 package Cfn::Resource::Properties::Object::AWS::S3::StorageLens::ActivityMetrics {
123 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
124 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
125 1 extends 'Cfn::Value::TypedValue';
126
127 1 has IsEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
128 }
129  
130 1 subtype 'Cfn::Resource::Properties::AWS::S3::StorageLens::S3BucketDestination',
131 as 'Cfn::Value';
132  
133 coerce 'Cfn::Resource::Properties::AWS::S3::StorageLens::S3BucketDestination',
134 from 'HashRef',
135 via {
136 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
137 0 return $f
138 } else {
139 0 return Cfn::Resource::Properties::Object::AWS::S3::StorageLens::S3BucketDestination->new( %$_ );
140 }
141 1 };
142  
143 1 package Cfn::Resource::Properties::Object::AWS::S3::StorageLens::S3BucketDestination {
144 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
145 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
146 1 extends 'Cfn::Value::TypedValue';
147
148 1 has AccountId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
149 1 has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
150 1 has Encryption => (isa => 'Cfn::Resource::Properties::AWS::S3::StorageLens::Encryption', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
151 1 has Format => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
152 1 has OutputSchemaVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
153 1 has Prefix => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
154 }
155  
156 1 subtype 'Cfn::Resource::Properties::AWS::S3::StorageLens::BucketLevel',
157 as 'Cfn::Value';
158  
159 coerce 'Cfn::Resource::Properties::AWS::S3::StorageLens::BucketLevel',
160 from 'HashRef',
161 via {
162 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
163 0 return $f
164 } else {
165 0 return Cfn::Resource::Properties::Object::AWS::S3::StorageLens::BucketLevel->new( %$_ );
166 }
167 1 };
168  
169 1 package Cfn::Resource::Properties::Object::AWS::S3::StorageLens::BucketLevel {
170 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
171 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
172 1 extends 'Cfn::Value::TypedValue';
173
174 1 has ActivityMetrics => (isa => 'Cfn::Resource::Properties::AWS::S3::StorageLens::ActivityMetrics', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
175 1 has PrefixLevel => (isa => 'Cfn::Resource::Properties::AWS::S3::StorageLens::PrefixLevel', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
176 }
177  
178 1 subtype 'Cfn::Resource::Properties::AWS::S3::StorageLens::DataExport',
179 as 'Cfn::Value';
180  
181 coerce 'Cfn::Resource::Properties::AWS::S3::StorageLens::DataExport',
182 from 'HashRef',
183 via {
184 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
185 0 return $f
186 } else {
187 0 return Cfn::Resource::Properties::Object::AWS::S3::StorageLens::DataExport->new( %$_ );
188 }
189 1 };
190  
191 1 package Cfn::Resource::Properties::Object::AWS::S3::StorageLens::DataExport {
192 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
193 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
194 1 extends 'Cfn::Value::TypedValue';
195
196 1 has S3BucketDestination => (isa => 'Cfn::Resource::Properties::AWS::S3::StorageLens::S3BucketDestination', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
197 }
198  
199 1 subtype 'Cfn::Resource::Properties::AWS::S3::StorageLens::BucketsAndRegions',
200 as 'Cfn::Value';
201  
202 coerce 'Cfn::Resource::Properties::AWS::S3::StorageLens::BucketsAndRegions',
203 from 'HashRef',
204 via {
205 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
206 0 return $f
207 } else {
208 0 return Cfn::Resource::Properties::Object::AWS::S3::StorageLens::BucketsAndRegions->new( %$_ );
209 }
210 1 };
211  
212 1 package Cfn::Resource::Properties::Object::AWS::S3::StorageLens::BucketsAndRegions {
213 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
214 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
215 1 extends 'Cfn::Value::TypedValue';
216
217 1 has Buckets => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
218 1 has Regions => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
219 }
220  
221 1 subtype 'Cfn::Resource::Properties::AWS::S3::StorageLens::AwsOrg',
222 as 'Cfn::Value';
223  
224 coerce 'Cfn::Resource::Properties::AWS::S3::StorageLens::AwsOrg',
225 from 'HashRef',
226 via {
227 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
228 0 return $f
229 } else {
230 0 return Cfn::Resource::Properties::Object::AWS::S3::StorageLens::AwsOrg->new( %$_ );
231 }
232 1 };
233  
234 1 package Cfn::Resource::Properties::Object::AWS::S3::StorageLens::AwsOrg {
235 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
236 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
237 1 extends 'Cfn::Value::TypedValue';
238
239 1 has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
240 }
241  
242 1 subtype 'Cfn::Resource::Properties::AWS::S3::StorageLens::AccountLevel',
243 as 'Cfn::Value';
244  
245 coerce 'Cfn::Resource::Properties::AWS::S3::StorageLens::AccountLevel',
246 from 'HashRef',
247 via {
248 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
249 0 return $f
250 } else {
251 0 return Cfn::Resource::Properties::Object::AWS::S3::StorageLens::AccountLevel->new( %$_ );
252 }
253 1 };
254  
255 1 package Cfn::Resource::Properties::Object::AWS::S3::StorageLens::AccountLevel {
256 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
257 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
258 1 extends 'Cfn::Value::TypedValue';
259
260 1 has ActivityMetrics => (isa => 'Cfn::Resource::Properties::AWS::S3::StorageLens::ActivityMetrics', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
261 1 has BucketLevel => (isa => 'Cfn::Resource::Properties::AWS::S3::StorageLens::BucketLevel', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
262 }
263  
264 1 subtype 'Cfn::Resource::Properties::AWS::S3::StorageLens::StorageLensConfiguration',
265 as 'Cfn::Value';
266  
267 coerce 'Cfn::Resource::Properties::AWS::S3::StorageLens::StorageLensConfiguration',
268 from 'HashRef',
269 via {
270 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
271 0 return $f
272 } else {
273 0 return Cfn::Resource::Properties::Object::AWS::S3::StorageLens::StorageLensConfiguration->new( %$_ );
274 }
275 1 };
276  
277 1 package Cfn::Resource::Properties::Object::AWS::S3::StorageLens::StorageLensConfiguration {
278 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
279 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
280 1 extends 'Cfn::Value::TypedValue';
281
282 1 has AccountLevel => (isa => 'Cfn::Resource::Properties::AWS::S3::StorageLens::AccountLevel', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
283 1 has AwsOrg => (isa => 'Cfn::Resource::Properties::AWS::S3::StorageLens::AwsOrg', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
284 1 has DataExport => (isa => 'Cfn::Resource::Properties::AWS::S3::StorageLens::DataExport', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
285 1 has Exclude => (isa => 'Cfn::Resource::Properties::AWS::S3::StorageLens::BucketsAndRegions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
286 1 has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
287 1 has Include => (isa => 'Cfn::Resource::Properties::AWS::S3::StorageLens::BucketsAndRegions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
288 1 has IsEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
289 1 has StorageLensArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
290 }
291  
292 1 package Cfn::Resource::Properties::AWS::S3::StorageLens {
293 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
294 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
295 1 extends 'Cfn::Resource::Properties';
296
297 1 has StorageLensConfiguration => (isa => 'Cfn::Resource::Properties::AWS::S3::StorageLens::StorageLensConfiguration', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
298 1 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
299 }
300  
301 1 1;
302 ### main pod documentation begin ###
303  
304 =encoding UTF-8
305  
306 =head1 NAME
307  
308 Cfn::Resource::AWS::S3::StorageLens - Cfn resource for AWS::S3::StorageLens
309  
310 =head1 DESCRIPTION
311  
312 This module implements a Perl module that represents the CloudFormation object AWS::S3::StorageLens.
313  
314 See L<Cfn> for more information on how to use it.
315  
316 =head1 AUTHOR
317  
318 Jose Luis Martinez
319 CAPSiDE
320 jlmartinez@capside.com
321  
322 =head1 COPYRIGHT and LICENSE
323  
324 Copyright (c) 2013 by CAPSiDE
325 This code is distributed under the Apache 2 License. The full text of the
326 license can be found in the LICENSE file included with this module.
327  
328 =cut
« Cfn/Resource/AWS/Glue/MLTransform.pm ↑ Summary Cfn/Resource/AWS/OpsWorks/Layer.pm »