Cfn/Resource/AWS/GreengrassV2/ComponentVersion.pm untested

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