Cfn/Resource/AWS/Pinpoint/Segment.pm

filter: Statementstmt 76.1% 185 / 243 Branchbran 0.0% 0 / 36 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 54.5% 30 / 55 Podpod 0.0% 0 / 2 totaltotal 63.9% 215 / 336 CC 19 SCAR 12.6
CC
19
Cov
66%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.5
« Cfn/Resource/AWS/IoTSiteWise/AssetModel.pm ↑ Summary Cfn/Resource/AWS/EC2/EC2Fleet.pm »
1 # AWS::Pinpoint::Segment 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::Segment',
5 from 'HashRef',
6 0 ▶ via { Cfn::Resource::Properties::AWS::Pinpoint::Segment->new( %$_ ) };
Subroutine __ANON__: not called CC=1 SCAR=1.2
7  
8 1 package Cfn::Resource::AWS::Pinpoint::Segment {
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::Segment', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ 'Arn','SegmentId' ]
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::Segment::Coordinates',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::Coordinates',
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::Segment::Coordinates->new( %$_ );
33 }
34 1 };
35  
36 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Segment::Coordinates {
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 Latitude => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 1 has Longitude => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 }
44  
45 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::SetDimension',
46 as 'Cfn::Value';
47  
48 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::SetDimension',
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::Segment::SetDimension->new( %$_ );
55 }
56 1 };
57  
58 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Segment::SetDimension {
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 DimensionType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64 1 has Values => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65 }
66  
67 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::Recency',
68 as 'Cfn::Value';
69  
70 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::Recency',
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::Pinpoint::Segment::Recency->new( %$_ );
77 }
78 1 };
79  
80 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Segment::Recency {
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 Duration => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86 1 has RecencyType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87 }
88  
89 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::GPSPoint',
90 as 'Cfn::Value';
91  
92 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::GPSPoint',
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::Pinpoint::Segment::GPSPoint->new( %$_ );
99 }
100 1 };
101  
102 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Segment::GPSPoint {
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 Coordinates => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::Coordinates', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
108 1 has RangeInKilometers => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
109 }
110  
111 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::Location',
112 as 'Cfn::Value';
113  
114 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::Location',
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::Pinpoint::Segment::Location->new( %$_ );
121 }
122 1 };
123  
124 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Segment::Location {
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 Country => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::SetDimension', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
130 1 has GPSPoint => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::GPSPoint', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
131 }
132  
133 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::Demographic',
134 as 'Cfn::Value';
135  
136 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::Demographic',
137 from 'HashRef',
138 via {
139 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
140 0 return $f
141 } else {
142 0 return Cfn::Resource::Properties::Object::AWS::Pinpoint::Segment::Demographic->new( %$_ );
143 }
144 1 };
145  
146 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Segment::Demographic {
147 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
148 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
149 1 extends 'Cfn::Value::TypedValue';
150
151 1 has AppVersion => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::SetDimension', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
152 1 has Channel => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::SetDimension', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
153 1 has DeviceType => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::SetDimension', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
154 1 has Make => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::SetDimension', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
155 1 has Model => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::SetDimension', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
156 1 has Platform => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::SetDimension', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
157 }
158  
159 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::Behavior',
160 as 'Cfn::Value';
161  
162 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::Behavior',
163 from 'HashRef',
164 via {
165 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
166 0 return $f
167 } else {
168 0 return Cfn::Resource::Properties::Object::AWS::Pinpoint::Segment::Behavior->new( %$_ );
169 }
170 1 };
171  
172 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Segment::Behavior {
173 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
174 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
175 1 extends 'Cfn::Value::TypedValue';
176
177 1 has Recency => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::Recency', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
178 }
179 subtype 'ArrayOfCfn::Resource::Properties::AWS::Pinpoint::Segment::SourceSegments',
180 as 'Cfn::Value',
181 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
182 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
183  
184 coerce 'ArrayOfCfn::Resource::Properties::AWS::Pinpoint::Segment::SourceSegments',
185 from 'HashRef',
186 via {
187 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
188 0 return $f
189 } else {
190 0 die 'Only accepts functions';
191 }
192 },
193 from 'ArrayRef',
194 via {
195 Cfn::Value::Array->new(Value => [
196 map {
197 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Pinpoint::Segment::SourceSegments')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
198 } @$_
199 ]);
200 1 };
201  
202 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::SourceSegments',
203 as 'Cfn::Value';
204  
205 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::SourceSegments',
206 from 'HashRef',
207 via {
208 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
209 0 return $f
210 } else {
211 0 return Cfn::Resource::Properties::Object::AWS::Pinpoint::Segment::SourceSegments->new( %$_ );
212 }
213 1 };
214  
215 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Segment::SourceSegments {
216 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
217 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
218 1 extends 'Cfn::Value::TypedValue';
219
220 1 has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
221 1 has Version => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
222 }
223 subtype 'ArrayOfCfn::Resource::Properties::AWS::Pinpoint::Segment::SegmentDimensions',
224 as 'Cfn::Value',
225 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
226 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
227  
228 coerce 'ArrayOfCfn::Resource::Properties::AWS::Pinpoint::Segment::SegmentDimensions',
229 from 'HashRef',
230 via {
231 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
232 0 return $f
233 } else {
234 0 die 'Only accepts functions';
235 }
236 },
237 from 'ArrayRef',
238 via {
239 Cfn::Value::Array->new(Value => [
240 map {
241 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Pinpoint::Segment::SegmentDimensions')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
242 } @$_
243 ]);
244 1 };
245  
246 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::SegmentDimensions',
247 as 'Cfn::Value';
248  
249 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::SegmentDimensions',
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 return Cfn::Resource::Properties::Object::AWS::Pinpoint::Segment::SegmentDimensions->new( %$_ );
256 }
257 1 };
258  
259 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Segment::SegmentDimensions {
260 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
261 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
262 1 extends 'Cfn::Value::TypedValue';
263
264 1 has Attributes => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
265 1 has Behavior => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::Behavior', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
266 1 has Demographic => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::Demographic', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
267 1 has Location => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::Location', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
268 1 has Metrics => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
269 1 has UserAttributes => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
270 }
271 subtype 'ArrayOfCfn::Resource::Properties::AWS::Pinpoint::Segment::Groups',
272 as 'Cfn::Value',
273 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
274 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
275  
276 coerce 'ArrayOfCfn::Resource::Properties::AWS::Pinpoint::Segment::Groups',
277 from 'HashRef',
278 via {
279 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
280 0 return $f
281 } else {
282 0 die 'Only accepts functions';
283 }
284 },
285 from 'ArrayRef',
286 via {
287 Cfn::Value::Array->new(Value => [
288 map {
289 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Pinpoint::Segment::Groups')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
290 } @$_
291 ]);
292 1 };
293  
294 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::Groups',
295 as 'Cfn::Value';
296  
297 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::Groups',
298 from 'HashRef',
299 via {
300 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
301 0 return $f
302 } else {
303 0 return Cfn::Resource::Properties::Object::AWS::Pinpoint::Segment::Groups->new( %$_ );
304 }
305 1 };
306  
307 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Segment::Groups {
308 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
309 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
310 1 extends 'Cfn::Value::TypedValue';
311
312 1 has Dimensions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Pinpoint::Segment::SegmentDimensions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
313 1 has SourceSegments => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Pinpoint::Segment::SourceSegments', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
314 1 has SourceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
315 1 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
316 }
317  
318 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::SegmentGroups',
319 as 'Cfn::Value';
320  
321 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::SegmentGroups',
322 from 'HashRef',
323 via {
324 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
325 0 return $f
326 } else {
327 0 return Cfn::Resource::Properties::Object::AWS::Pinpoint::Segment::SegmentGroups->new( %$_ );
328 }
329 1 };
330  
331 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Segment::SegmentGroups {
332 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
333 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
334 1 extends 'Cfn::Value::TypedValue';
335
336 1 has Groups => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Pinpoint::Segment::Groups', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
337 1 has Include => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
338 }
339  
340 1 subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::AttributeDimension',
341 as 'Cfn::Value';
342  
343 coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::AttributeDimension',
344 from 'HashRef',
345 via {
346 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
347 0 return $f
348 } else {
349 0 return Cfn::Resource::Properties::Object::AWS::Pinpoint::Segment::AttributeDimension->new( %$_ );
350 }
351 1 };
352  
353 1 package Cfn::Resource::Properties::Object::AWS::Pinpoint::Segment::AttributeDimension {
354 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
355 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
356 1 extends 'Cfn::Value::TypedValue';
357
358 1 has AttributeType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
359 1 has Values => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
360 }
361  
362 1 package Cfn::Resource::Properties::AWS::Pinpoint::Segment {
363 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
364 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
365 1 extends 'Cfn::Resource::Properties';
366
367 1 has ApplicationId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
368 1 has Dimensions => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::SegmentDimensions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
369 1 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
370 1 has SegmentGroups => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Segment::SegmentGroups', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
371 1 has Tags => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
372 }
373  
374 1 1;
375 ### main pod documentation begin ###
376  
377 =encoding UTF-8
378  
379 =head1 NAME
380  
381 Cfn::Resource::AWS::Pinpoint::Segment - Cfn resource for AWS::Pinpoint::Segment
382  
383 =head1 DESCRIPTION
384  
385 This module implements a Perl module that represents the CloudFormation object AWS::Pinpoint::Segment.
386  
387 See L<Cfn> for more information on how to use it.
388  
389 =head1 AUTHOR
390  
391 Jose Luis Martinez
392 CAPSiDE
393 jlmartinez@capside.com
394  
395 =head1 COPYRIGHT and LICENSE
396  
397 Copyright (c) 2013 by CAPSiDE
398 This code is distributed under the Apache 2 License. The full text of the
399 license can be found in the LICENSE file included with this module.
400  
401 =cut
« Cfn/Resource/AWS/IoTSiteWise/AssetModel.pm ↑ Summary Cfn/Resource/AWS/EC2/EC2Fleet.pm »