Cfn/Resource/AWS/Budgets/Budget.pm

filter: Statementstmt 78.0% 128 / 164 Branchbran 0.0% 0 / 22 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 55.5% 20 / 36 Podpod 0.0% 0 / 2 totaltotal 66.0% 148 / 224 CC 12 SCAR 12.2
CC
12
Cov
69%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.4
« Cfn/Resource/AWS/Glue/Partition.pm ↑ Summary Cfn/Resource/AWS/Glue/Table.pm »
1 # AWS::Budgets::Budget generated from spec 18.4.0
2 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::Budgets::Budget',
5 from 'HashRef',
6 0 ▶ via { Cfn::Resource::Properties::AWS::Budgets::Budget->new( %$_ ) };
Subroutine __ANON__: not called CC=1 SCAR=1.2
7  
8 1 package Cfn::Resource::AWS::Budgets::Budget {
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::Budgets::Budget', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ ]
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','cn-north-1','cn-northwest-1','eu-central-1','eu-west-1','eu-west-2','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::Budgets::Budget::TimePeriod',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::Budgets::Budget::TimePeriod',
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::Budgets::Budget::TimePeriod->new( %$_ );
33 }
34 1 };
35  
36 1 package Cfn::Resource::Properties::Object::AWS::Budgets::Budget::TimePeriod {
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 End => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 1 has Start => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 }
44 subtype 'ArrayOfCfn::Resource::Properties::AWS::Budgets::Budget::Subscriber',
45 as 'Cfn::Value',
46 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
47 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
48  
49 coerce 'ArrayOfCfn::Resource::Properties::AWS::Budgets::Budget::Subscriber',
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 die 'Only accepts functions';
56 }
57 },
58 from 'ArrayRef',
59 via {
60 Cfn::Value::Array->new(Value => [
61 map {
62 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Budgets::Budget::Subscriber')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
63 } @$_
64 ]);
65 1 };
66  
67 1 subtype 'Cfn::Resource::Properties::AWS::Budgets::Budget::Subscriber',
68 as 'Cfn::Value';
69  
70 coerce 'Cfn::Resource::Properties::AWS::Budgets::Budget::Subscriber',
71 from 'HashRef',
72 via {
73 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
74 0 return $f
75 } else {
76 0 return Cfn::Resource::Properties::Object::AWS::Budgets::Budget::Subscriber->new( %$_ );
77 }
78 1 };
79  
80 1 package Cfn::Resource::Properties::Object::AWS::Budgets::Budget::Subscriber {
81 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
82 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
83 1 extends 'Cfn::Value::TypedValue';
84
85 1 has Address => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86 1 has SubscriptionType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87 }
88  
89 1 subtype 'Cfn::Resource::Properties::AWS::Budgets::Budget::Spend',
90 as 'Cfn::Value';
91  
92 coerce 'Cfn::Resource::Properties::AWS::Budgets::Budget::Spend',
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::Budgets::Budget::Spend->new( %$_ );
99 }
100 1 };
101  
102 1 package Cfn::Resource::Properties::Object::AWS::Budgets::Budget::Spend {
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 1 has Amount => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
108 1 has Unit => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
109 }
110  
111 1 subtype 'Cfn::Resource::Properties::AWS::Budgets::Budget::Notification',
112 as 'Cfn::Value';
113  
114 coerce 'Cfn::Resource::Properties::AWS::Budgets::Budget::Notification',
115 from 'HashRef',
116 via {
117 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
118 0 return $f
119 } else {
120 0 return Cfn::Resource::Properties::Object::AWS::Budgets::Budget::Notification->new( %$_ );
121 }
122 1 };
123  
124 1 package Cfn::Resource::Properties::Object::AWS::Budgets::Budget::Notification {
125 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
126 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
127 1 extends 'Cfn::Value::TypedValue';
128
129 1 has ComparisonOperator => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
130 1 has NotificationType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
131 1 has Threshold => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
132 1 has ThresholdType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
133 }
134  
135 1 subtype 'Cfn::Resource::Properties::AWS::Budgets::Budget::CostTypes',
136 as 'Cfn::Value';
137  
138 coerce 'Cfn::Resource::Properties::AWS::Budgets::Budget::CostTypes',
139 from 'HashRef',
140 via {
141 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
142 0 return $f
143 } else {
144 0 return Cfn::Resource::Properties::Object::AWS::Budgets::Budget::CostTypes->new( %$_ );
145 }
146 1 };
147  
148 1 package Cfn::Resource::Properties::Object::AWS::Budgets::Budget::CostTypes {
149 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
150 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
151 1 extends 'Cfn::Value::TypedValue';
152
153 1 has IncludeCredit => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
154 1 has IncludeDiscount => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
155 1 has IncludeOtherSubscription => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
156 1 has IncludeRecurring => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
157 1 has IncludeRefund => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
158 1 has IncludeSubscription => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
159 1 has IncludeSupport => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
160 1 has IncludeTax => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
161 1 has IncludeUpfront => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
162 1 has UseAmortized => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
163 1 has UseBlended => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
164 }
165 subtype 'ArrayOfCfn::Resource::Properties::AWS::Budgets::Budget::NotificationWithSubscribers',
166 as 'Cfn::Value',
167 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
168 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
169  
170 coerce 'ArrayOfCfn::Resource::Properties::AWS::Budgets::Budget::NotificationWithSubscribers',
171 from 'HashRef',
172 via {
173 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
174 0 return $f
175 } else {
176 0 die 'Only accepts functions';
177 }
178 },
179 from 'ArrayRef',
180 via {
181 Cfn::Value::Array->new(Value => [
182 map {
183 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Budgets::Budget::NotificationWithSubscribers')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
184 } @$_
185 ]);
186 1 };
187  
188 1 subtype 'Cfn::Resource::Properties::AWS::Budgets::Budget::NotificationWithSubscribers',
189 as 'Cfn::Value';
190  
191 coerce 'Cfn::Resource::Properties::AWS::Budgets::Budget::NotificationWithSubscribers',
192 from 'HashRef',
193 via {
194 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
195 0 return $f
196 } else {
197 0 return Cfn::Resource::Properties::Object::AWS::Budgets::Budget::NotificationWithSubscribers->new( %$_ );
198 }
199 1 };
200  
201 1 package Cfn::Resource::Properties::Object::AWS::Budgets::Budget::NotificationWithSubscribers {
202 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
203 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
204 1 extends 'Cfn::Value::TypedValue';
205
206 1 has Notification => (isa => 'Cfn::Resource::Properties::AWS::Budgets::Budget::Notification', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
207 1 has Subscribers => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Budgets::Budget::Subscriber', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
208 }
209  
210 1 subtype 'Cfn::Resource::Properties::AWS::Budgets::Budget::BudgetData',
211 as 'Cfn::Value';
212  
213 coerce 'Cfn::Resource::Properties::AWS::Budgets::Budget::BudgetData',
214 from 'HashRef',
215 via {
216 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
217 0 return $f
218 } else {
219 0 return Cfn::Resource::Properties::Object::AWS::Budgets::Budget::BudgetData->new( %$_ );
220 }
221 1 };
222  
223 1 package Cfn::Resource::Properties::Object::AWS::Budgets::Budget::BudgetData {
224 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
225 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
226 1 extends 'Cfn::Value::TypedValue';
227
228 1 has BudgetLimit => (isa => 'Cfn::Resource::Properties::AWS::Budgets::Budget::Spend', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
229 1 has BudgetName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
230 1 has BudgetType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
231 1 has CostFilters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
232 1 has CostTypes => (isa => 'Cfn::Resource::Properties::AWS::Budgets::Budget::CostTypes', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
233 1 has PlannedBudgetLimits => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
234 1 has TimePeriod => (isa => 'Cfn::Resource::Properties::AWS::Budgets::Budget::TimePeriod', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
235 1 has TimeUnit => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
236 }
237  
238 1 package Cfn::Resource::Properties::AWS::Budgets::Budget {
239 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
240 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
241 1 extends 'Cfn::Resource::Properties';
242
243 1 has Budget => (isa => 'Cfn::Resource::Properties::AWS::Budgets::Budget::BudgetData', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
244 1 has NotificationsWithSubscribers => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Budgets::Budget::NotificationWithSubscribers', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
245 }
246  
247 1 1;
248 ### main pod documentation begin ###
249  
250 =encoding UTF-8
251  
252 =head1 NAME
253  
254 Cfn::Resource::AWS::Budgets::Budget - Cfn resource for AWS::Budgets::Budget
255  
256 =head1 DESCRIPTION
257  
258 This module implements a Perl module that represents the CloudFormation object AWS::Budgets::Budget.
259  
260 See L<Cfn> for more information on how to use it.
261  
262 =head1 AUTHOR
263  
264 Jose Luis Martinez
265 CAPSiDE
266 jlmartinez@capside.com
267  
268 =head1 COPYRIGHT and LICENSE
269  
270 Copyright (c) 2013 by CAPSiDE
271 This code is distributed under the Apache 2 License. The full text of the
272 license can be found in the LICENSE file included with this module.
273  
274 =cut
« Cfn/Resource/AWS/Glue/Partition.pm ↑ Summary Cfn/Resource/AWS/Glue/Table.pm »