Cfn/Resource/AWS/QuickSight/Theme.pm untested

filter: Statementstmt 0.0% 0 / 285 Branchbran 0.0% 0 / 28 Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 0.0% 0 / 30 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 355 CC 1 SCAR 6.9
CC
1
Cov
0%
AttributeList
2.0
supported_regions
2.0
BEGIN
2.0
CRAP 2.0
1 # AWS::QuickSight::Theme generated from spec 34.0.0
2 use Moose::Util::TypeConstraints;
3  
4 coerce 'Cfn::Resource::Properties::AWS::QuickSight::Theme',
5 from 'HashRef',
6 via { Cfn::Resource::Properties::AWS::QuickSight::Theme->new( %$_ ) };
7  
8 package Cfn::Resource::AWS::QuickSight::Theme {
9 use Moose;
10 extends 'Cfn::Resource';
11 has Properties => (isa => 'Cfn::Resource::Properties::AWS::QuickSight::Theme', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 [ 'Arn','CreatedTime','LastUpdatedTime','Type' ]
15 }
16 sub supported_regions {
17 [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','eu-central-1','eu-west-1','eu-west-2','sa-east-1','us-east-1','us-east-2','us-gov-west-1','us-west-2' ]
18 }
19 }
20  
21  
22  
23 subtype 'Cfn::Resource::Properties::AWS::QuickSight::Theme::MarginStyle',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::QuickSight::Theme::MarginStyle',
27 from 'HashRef',
28 via {
29 if (my $f = Cfn::TypeLibrary::try_function($_)) {
30 return $f
31 } else {
32 return Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::MarginStyle->new( %$_ );
33 }
34 };
35  
36 package Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::MarginStyle {
37 use Moose;
38 use MooseX::StrictConstructor;
39 extends 'Cfn::Value::TypedValue';
40
41 has Show => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 }
43  
44 subtype 'Cfn::Resource::Properties::AWS::QuickSight::Theme::GutterStyle',
45 as 'Cfn::Value';
46  
47 coerce 'Cfn::Resource::Properties::AWS::QuickSight::Theme::GutterStyle',
48 from 'HashRef',
49 via {
50 if (my $f = Cfn::TypeLibrary::try_function($_)) {
51 return $f
52 } else {
53 return Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::GutterStyle->new( %$_ );
54 }
55 };
56  
57 package Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::GutterStyle {
58 use Moose;
59 use MooseX::StrictConstructor;
60 extends 'Cfn::Value::TypedValue';
61
62 has Show => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
63 }
64  
65 subtype 'Cfn::Resource::Properties::AWS::QuickSight::Theme::BorderStyle',
66 as 'Cfn::Value';
67  
68 coerce 'Cfn::Resource::Properties::AWS::QuickSight::Theme::BorderStyle',
69 from 'HashRef',
70 via {
71 if (my $f = Cfn::TypeLibrary::try_function($_)) {
72 return $f
73 } else {
74 return Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::BorderStyle->new( %$_ );
75 }
76 };
77  
78 package Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::BorderStyle {
79 use Moose;
80 use MooseX::StrictConstructor;
81 extends 'Cfn::Value::TypedValue';
82
83 has Show => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
84 }
85  
86 subtype 'Cfn::Resource::Properties::AWS::QuickSight::Theme::TileStyle',
87 as 'Cfn::Value';
88  
89 coerce 'Cfn::Resource::Properties::AWS::QuickSight::Theme::TileStyle',
90 from 'HashRef',
91 via {
92 if (my $f = Cfn::TypeLibrary::try_function($_)) {
93 return $f
94 } else {
95 return Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::TileStyle->new( %$_ );
96 }
97 };
98  
99 package Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::TileStyle {
100 use Moose;
101 use MooseX::StrictConstructor;
102 extends 'Cfn::Value::TypedValue';
103
104 has Border => (isa => 'Cfn::Resource::Properties::AWS::QuickSight::Theme::BorderStyle', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
105 }
106  
107 subtype 'Cfn::Resource::Properties::AWS::QuickSight::Theme::TileLayoutStyle',
108 as 'Cfn::Value';
109  
110 coerce 'Cfn::Resource::Properties::AWS::QuickSight::Theme::TileLayoutStyle',
111 from 'HashRef',
112 via {
113 if (my $f = Cfn::TypeLibrary::try_function($_)) {
114 return $f
115 } else {
116 return Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::TileLayoutStyle->new( %$_ );
117 }
118 };
119  
120 package Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::TileLayoutStyle {
121 use Moose;
122 use MooseX::StrictConstructor;
123 extends 'Cfn::Value::TypedValue';
124
125 has Gutter => (isa => 'Cfn::Resource::Properties::AWS::QuickSight::Theme::GutterStyle', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
126 has Margin => (isa => 'Cfn::Resource::Properties::AWS::QuickSight::Theme::MarginStyle', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
127 }
128 subtype 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Theme::Font',
129 as 'Cfn::Value',
130 where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
131 message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
132  
133 coerce 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Theme::Font',
134 from 'HashRef',
135 via {
136 if (my $f = Cfn::TypeLibrary::try_function($_)) {
137 return $f
138 } else {
139 die 'Only accepts functions';
140 }
141 },
142 from 'ArrayRef',
143 via {
144 Cfn::Value::Array->new(Value => [
145 map {
146 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::QuickSight::Theme::Font')->coerce($_)
147 } @$_
148 ]);
149 };
150  
151 subtype 'Cfn::Resource::Properties::AWS::QuickSight::Theme::Font',
152 as 'Cfn::Value';
153  
154 coerce 'Cfn::Resource::Properties::AWS::QuickSight::Theme::Font',
155 from 'HashRef',
156 via {
157 if (my $f = Cfn::TypeLibrary::try_function($_)) {
158 return $f
159 } else {
160 return Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::Font->new( %$_ );
161 }
162 };
163  
164 package Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::Font {
165 use Moose;
166 use MooseX::StrictConstructor;
167 extends 'Cfn::Value::TypedValue';
168
169 has FontFamily => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
170 }
171  
172 subtype 'Cfn::Resource::Properties::AWS::QuickSight::Theme::UIColorPalette',
173 as 'Cfn::Value';
174  
175 coerce 'Cfn::Resource::Properties::AWS::QuickSight::Theme::UIColorPalette',
176 from 'HashRef',
177 via {
178 if (my $f = Cfn::TypeLibrary::try_function($_)) {
179 return $f
180 } else {
181 return Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::UIColorPalette->new( %$_ );
182 }
183 };
184  
185 package Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::UIColorPalette {
186 use Moose;
187 use MooseX::StrictConstructor;
188 extends 'Cfn::Value::TypedValue';
189
190 has Accent => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
191 has AccentForeground => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
192 has Danger => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
193 has DangerForeground => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
194 has Dimension => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
195 has DimensionForeground => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
196 has Measure => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
197 has MeasureForeground => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
198 has PrimaryBackground => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
199 has PrimaryForeground => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
200 has SecondaryBackground => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
201 has SecondaryForeground => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
202 has Success => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
203 has SuccessForeground => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
204 has Warning => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
205 has WarningForeground => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
206 }
207  
208 subtype 'Cfn::Resource::Properties::AWS::QuickSight::Theme::Typography',
209 as 'Cfn::Value';
210  
211 coerce 'Cfn::Resource::Properties::AWS::QuickSight::Theme::Typography',
212 from 'HashRef',
213 via {
214 if (my $f = Cfn::TypeLibrary::try_function($_)) {
215 return $f
216 } else {
217 return Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::Typography->new( %$_ );
218 }
219 };
220  
221 package Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::Typography {
222 use Moose;
223 use MooseX::StrictConstructor;
224 extends 'Cfn::Value::TypedValue';
225
226 has FontFamilies => (isa => 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Theme::Font', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
227 }
228  
229 subtype 'Cfn::Resource::Properties::AWS::QuickSight::Theme::SheetStyle',
230 as 'Cfn::Value';
231  
232 coerce 'Cfn::Resource::Properties::AWS::QuickSight::Theme::SheetStyle',
233 from 'HashRef',
234 via {
235 if (my $f = Cfn::TypeLibrary::try_function($_)) {
236 return $f
237 } else {
238 return Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::SheetStyle->new( %$_ );
239 }
240 };
241  
242 package Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::SheetStyle {
243 use Moose;
244 use MooseX::StrictConstructor;
245 extends 'Cfn::Value::TypedValue';
246
247 has Tile => (isa => 'Cfn::Resource::Properties::AWS::QuickSight::Theme::TileStyle', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
248 has TileLayout => (isa => 'Cfn::Resource::Properties::AWS::QuickSight::Theme::TileLayoutStyle', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
249 }
250  
251 subtype 'Cfn::Resource::Properties::AWS::QuickSight::Theme::DataColorPalette',
252 as 'Cfn::Value';
253  
254 coerce 'Cfn::Resource::Properties::AWS::QuickSight::Theme::DataColorPalette',
255 from 'HashRef',
256 via {
257 if (my $f = Cfn::TypeLibrary::try_function($_)) {
258 return $f
259 } else {
260 return Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::DataColorPalette->new( %$_ );
261 }
262 };
263  
264 package Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::DataColorPalette {
265 use Moose;
266 use MooseX::StrictConstructor;
267 extends 'Cfn::Value::TypedValue';
268
269 has Colors => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
270 has EmptyFillColor => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
271 has MinMaxGradient => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
272 }
273  
274 subtype 'Cfn::Resource::Properties::AWS::QuickSight::Theme::ThemeConfiguration',
275 as 'Cfn::Value';
276  
277 coerce 'Cfn::Resource::Properties::AWS::QuickSight::Theme::ThemeConfiguration',
278 from 'HashRef',
279 via {
280 if (my $f = Cfn::TypeLibrary::try_function($_)) {
281 return $f
282 } else {
283 return Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::ThemeConfiguration->new( %$_ );
284 }
285 };
286  
287 package Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::ThemeConfiguration {
288 use Moose;
289 use MooseX::StrictConstructor;
290 extends 'Cfn::Value::TypedValue';
291
292 has DataColorPalette => (isa => 'Cfn::Resource::Properties::AWS::QuickSight::Theme::DataColorPalette', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
293 has Sheet => (isa => 'Cfn::Resource::Properties::AWS::QuickSight::Theme::SheetStyle', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
294 has Typography => (isa => 'Cfn::Resource::Properties::AWS::QuickSight::Theme::Typography', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
295 has UIColorPalette => (isa => 'Cfn::Resource::Properties::AWS::QuickSight::Theme::UIColorPalette', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
296 }
297 subtype 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Theme::ResourcePermission',
298 as 'Cfn::Value',
299 where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
300 message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
301  
302 coerce 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Theme::ResourcePermission',
303 from 'HashRef',
304 via {
305 if (my $f = Cfn::TypeLibrary::try_function($_)) {
306 return $f
307 } else {
308 die 'Only accepts functions';
309 }
310 },
311 from 'ArrayRef',
312 via {
313 Cfn::Value::Array->new(Value => [
314 map {
315 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::QuickSight::Theme::ResourcePermission')->coerce($_)
316 } @$_
317 ]);
318 };
319  
320 subtype 'Cfn::Resource::Properties::AWS::QuickSight::Theme::ResourcePermission',
321 as 'Cfn::Value';
322  
323 coerce 'Cfn::Resource::Properties::AWS::QuickSight::Theme::ResourcePermission',
324 from 'HashRef',
325 via {
326 if (my $f = Cfn::TypeLibrary::try_function($_)) {
327 return $f
328 } else {
329 return Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::ResourcePermission->new( %$_ );
330 }
331 };
332  
333 package Cfn::Resource::Properties::Object::AWS::QuickSight::Theme::ResourcePermission {
334 use Moose;
335 use MooseX::StrictConstructor;
336 extends 'Cfn::Value::TypedValue';
337
338 has Actions => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
339 has Principal => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
340 }
341  
342 package Cfn::Resource::Properties::AWS::QuickSight::Theme {
343 use Moose;
344 use MooseX::StrictConstructor;
345 extends 'Cfn::Resource::Properties';
346
347 has AwsAccountId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
348 has BaseThemeId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
349 has Configuration => (isa => 'Cfn::Resource::Properties::AWS::QuickSight::Theme::ThemeConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
350 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
351 has Permissions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Theme::ResourcePermission', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
352 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
353 has ThemeId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
354 has VersionDescription => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
355 }
356  
357 1;
358 ### main pod documentation begin ###
359  
360 =encoding UTF-8
361  
362 =head1 NAME
363  
364 Cfn::Resource::AWS::QuickSight::Theme - Cfn resource for AWS::QuickSight::Theme
365  
366 =head1 DESCRIPTION
367  
368 This module implements a Perl module that represents the CloudFormation object AWS::QuickSight::Theme.
369  
370 See L<Cfn> for more information on how to use it.
371  
372 =head1 AUTHOR
373  
374 Jose Luis Martinez
375 CAPSiDE
376 jlmartinez@capside.com
377  
378 =head1 COPYRIGHT and LICENSE
379  
380 Copyright (c) 2013 by CAPSiDE
381 This code is distributed under the Apache 2 License. The full text of the
382 license can be found in the LICENSE file included with this module.
383  
384 =cut