Cfn/Resource/AWS/Pinpoint/Campaign.pm

filter: Statementstmt 82.5% 236 / 286 Branchbran 0.0% 0 / 32 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 64.1% 34 / 53 Podpod 0.0% 0 / 2 totaltotal 72.3% 270 / 373 CC 17 SCAR 12.1
CC
17
Cov
74%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.3
« Cfn/Resource/AWS/OpsWorks/Stack.pm ↑ Summary Cfn/Resource/AWS/AppFlow/ConnectorProfile.pm »
1 # AWS::Pinpoint::Campaign 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::Pinpoint::Campaign',
5 from 'HashRef',
6 0 ▶ via { Cfn::Resource::Properties::AWS::Pinpoint::Campaign->new( %$_ ) };
Subroutine __ANON__: not called CC=1 SCAR=1.2
7  
8 1 package Cfn::Resource::AWS::Pinpoint::Campaign {
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::Pinpoint::Campaign', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ 'Arn','CampaignId' ]
Subroutine AttributeList: called CC=1 SCAR=0.0
Pod undocumented
15 }
16 sub supported_regions {
17 1 ▶ [ 'ap-south-1','ap-southeast-2','eu-central-1','eu-west-1','us-east-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::Pinpoint::Campaign::SetDimension',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::SetDimension',
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::Pinpoint::Campaign::SetDimension->new( %$_ );
33 }
34 1 };
35  
36 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::SetDimension {
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 DimensionType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 1 has Values => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 }
44  
45 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::EventDimensions',
46 as 'Cfn::Value';
47  
48 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::EventDimensions',
49 from 'HashRef',
50 via {
51 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
52 0 return $f
53 } else {
54 0 return Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::EventDimensions->new( %$_ );
55 }
56 1 };
57  
58 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::EventDimensions {
59 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
60 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
61 1 extends 'Cfn::Value::TypedValue';
62
63 1 has Attributes => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64 1 has EventType => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::SetDimension', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65 1 has Metrics => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66 }
67  
68 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::QuietTime',
69 as 'Cfn::Value';
70  
71 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::QuietTime',
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::Pinpoint::Campaign::QuietTime->new( %$_ );
78 }
79 1 };
80  
81 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::QuietTime {
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 End => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87 1 has Start => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88 }
89  
90 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Message',
91 as 'Cfn::Value';
92  
93 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Message',
94 from 'HashRef',
95 via {
96 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
97 0 return $f
98 } else {
99 0 return Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::Message->new( %$_ );
100 }
101 1 };
102  
103 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::Message {
104 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
105 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
106 1 extends 'Cfn::Value::TypedValue';
107
108 1 has Action => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
109 1 has Body => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
110 1 has ImageIconUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111 1 has ImageSmallIconUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
112 1 has ImageUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
113 1 has JsonBody => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
114 1 has MediaUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
115 1 has RawContent => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
116 1 has SilentPush => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
117 1 has TimeToLive => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
118 1 has Title => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
119 1 has Url => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
120 }
121  
122 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignSmsMessage',
123 as 'Cfn::Value';
124  
125 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignSmsMessage',
126 from 'HashRef',
127 via {
128 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
129 0 return $f
130 } else {
131 0 return Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::CampaignSmsMessage->new( %$_ );
132 }
133 1 };
134  
135 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::CampaignSmsMessage {
136 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
137 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
138 1 extends 'Cfn::Value::TypedValue';
139
140 1 has Body => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
141 1 has MessageType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
142 1 has SenderId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
143 }
144  
145 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignEventFilter',
146 as 'Cfn::Value';
147  
148 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignEventFilter',
149 from 'HashRef',
150 via {
151 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
152 0 return $f
153 } else {
154 0 return Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::CampaignEventFilter->new( %$_ );
155 }
156 1 };
157  
158 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::CampaignEventFilter {
159 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
160 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
161 1 extends 'Cfn::Value::TypedValue';
162
163 1 has Dimensions => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::EventDimensions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
164 1 has FilterType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
165 }
166  
167 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignEmailMessage',
168 as 'Cfn::Value';
169  
170 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignEmailMessage',
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 return Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::CampaignEmailMessage->new( %$_ );
177 }
178 1 };
179  
180 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::CampaignEmailMessage {
181 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
182 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
183 1 extends 'Cfn::Value::TypedValue';
184
185 1 has Body => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
186 1 has FromAddress => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
187 1 has HtmlBody => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
188 1 has Title => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
189 }
190  
191 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Schedule',
192 as 'Cfn::Value';
193  
194 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Schedule',
195 from 'HashRef',
196 via {
197 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
198 0 return $f
199 } else {
200 0 return Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::Schedule->new( %$_ );
201 }
202 1 };
203  
204 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::Schedule {
205 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
206 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
207 1 extends 'Cfn::Value::TypedValue';
208
209 1 has EndTime => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
210 1 has EventFilter => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignEventFilter', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
211 1 has Frequency => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
212 1 has IsLocalTime => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
213 1 has QuietTime => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::QuietTime', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
214 1 has StartTime => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
215 1 has TimeZone => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
216 }
217  
218 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::MessageConfiguration',
219 as 'Cfn::Value';
220  
221 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::MessageConfiguration',
222 from 'HashRef',
223 via {
224 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
225 0 return $f
226 } else {
227 0 return Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::MessageConfiguration->new( %$_ );
228 }
229 1 };
230  
231 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::MessageConfiguration {
232 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
233 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
234 1 extends 'Cfn::Value::TypedValue';
235
236 1 has ADMMessage => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Message', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
237 1 has APNSMessage => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Message', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
238 1 has BaiduMessage => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Message', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
239 1 has DefaultMessage => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Message', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
240 1 has EmailMessage => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignEmailMessage', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
241 1 has GCMMessage => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Message', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
242 1 has SMSMessage => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignSmsMessage', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
243 }
244 subtype 'ArrayOfCfn::Resource::Properties::AWS::Pinpoint::Campaign::WriteTreatmentResource',
245 as 'Cfn::Value',
246 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
247 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
248  
249 coerce 'ArrayOfCfn::Resource::Properties::AWS::Pinpoint::Campaign::WriteTreatmentResource',
250 from 'HashRef',
251 via {
252 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
253 0 return $f
254 } else {
255 0 die 'Only accepts functions';
256 }
257 },
258 from 'ArrayRef',
259 via {
260 Cfn::Value::Array->new(Value => [
261 map {
262 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Pinpoint::Campaign::WriteTreatmentResource')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
263 } @$_
264 ]);
265 1 };
266  
267 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::WriteTreatmentResource',
268 as 'Cfn::Value';
269  
270 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::WriteTreatmentResource',
271 from 'HashRef',
272 via {
273 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
274 0 return $f
275 } else {
276 0 return Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::WriteTreatmentResource->new( %$_ );
277 }
278 1 };
279  
280 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::WriteTreatmentResource {
281 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
282 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
283 1 extends 'Cfn::Value::TypedValue';
284
285 1 has MessageConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::MessageConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
286 1 has Schedule => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Schedule', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
287 1 has SizePercent => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
288 1 has TreatmentDescription => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
289 1 has TreatmentName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
290 }
291  
292 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::MetricDimension',
293 as 'Cfn::Value';
294  
295 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::MetricDimension',
296 from 'HashRef',
297 via {
298 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
299 0 return $f
300 } else {
301 0 return Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::MetricDimension->new( %$_ );
302 }
303 1 };
304  
305 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::MetricDimension {
306 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
307 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
308 1 extends 'Cfn::Value::TypedValue';
309
310 1 has ComparisonOperator => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
311 1 has Value => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
312 }
313  
314 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Limits',
315 as 'Cfn::Value';
316  
317 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Limits',
318 from 'HashRef',
319 via {
320 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
321 0 return $f
322 } else {
323 0 return Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::Limits->new( %$_ );
324 }
325 1 };
326  
327 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::Limits {
328 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
329 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
330 1 extends 'Cfn::Value::TypedValue';
331
332 1 has Daily => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
333 1 has MaximumDuration => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
334 1 has MessagesPerSecond => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
335 1 has Total => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
336 }
337  
338 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignHook',
339 as 'Cfn::Value';
340  
341 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignHook',
342 from 'HashRef',
343 via {
344 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
345 0 return $f
346 } else {
347 0 return Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::CampaignHook->new( %$_ );
348 }
349 1 };
350  
351 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::CampaignHook {
352 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
353 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
354 1 extends 'Cfn::Value::TypedValue';
355
356 1 has LambdaFunctionName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
357 1 has Mode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
358 1 has WebUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
359 }
360  
361 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::AttributeDimension',
362 as 'Cfn::Value';
363  
364 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::AttributeDimension',
365 from 'HashRef',
366 via {
367 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
368 0 return $f
369 } else {
370 0 return Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::AttributeDimension->new( %$_ );
371 }
372 1 };
373  
374 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::AttributeDimension {
375 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
376 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
377 1 extends 'Cfn::Value::TypedValue';
378
379 1 has AttributeType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
380 1 has Values => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
381 }
382  
383 1 package Cfn::Resource::Properties::AWS::Pinpoint::Campaign {
384 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
385 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
386 1 extends 'Cfn::Resource::Properties';
387
388 1 has AdditionalTreatments => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Pinpoint::Campaign::WriteTreatmentResource', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
389 1 has ApplicationId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
390 1 has CampaignHook => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignHook', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
391 1 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
392 1 has HoldoutPercent => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
393 1 has IsPaused => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
394 1 has Limits => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Limits', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
395 1 has MessageConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::MessageConfiguration', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
396 1 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
397 1 has Schedule => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Schedule', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
398 1 has SegmentId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
399 1 has SegmentVersion => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
400 1 has Tags => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
401 1 has TreatmentDescription => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
402 1 has TreatmentName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
403 }
404  
405 1 1;
406 ### main pod documentation begin ###
407  
408 =encoding UTF-8
409  
410 =head1 NAME
411  
412 Cfn::Resource::AWS::Pinpoint::Campaign - Cfn resource for AWS::Pinpoint::Campaign
413  
414 =head1 DESCRIPTION
415  
416 This module implements a Perl module that represents the CloudFormation object AWS::Pinpoint::Campaign.
417  
418 See L<Cfn> for more information on how to use it.
419  
420 =head1 AUTHOR
421  
422 Jose Luis Martinez
423 CAPSiDE
424 jlmartinez@capside.com
425  
426 =head1 COPYRIGHT and LICENSE
427  
428 Copyright (c) 2013 by CAPSiDE
429 This code is distributed under the Apache 2 License. The full text of the
430 license can be found in the LICENSE file included with this module.
431  
432 =cut
« Cfn/Resource/AWS/OpsWorks/Stack.pm ↑ Summary Cfn/Resource/AWS/AppFlow/ConnectorProfile.pm »