File Coverage

blib/lib/Cfn/Resource/AWS/Greengrass/FunctionDefinitionVersion.pm
Criterion Covered Total %
statement 56 56 100.0
branch n/a
condition n/a
subroutine 20 20 100.0
pod 0 2 0.0
total 76 78 97.4


line stmt bran cond sub pod time code
1             # AWS::Greengrass::FunctionDefinitionVersion generated from spec 18.4.0
2 1     1   663 use Moose::Util::TypeConstraints;
  1         2  
  1         10  
3              
4             coerce 'Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::Greengrass::FunctionDefinitionVersion {
9 1     1   2509 use Moose;
  1         2  
  1         9  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1173 [ '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-west-1','us-west-2' ]
18             }
19             }
20              
21              
22              
23             subtype 'Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::RunAs',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::RunAs',
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::Greengrass::FunctionDefinitionVersion::RunAs->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::Greengrass::FunctionDefinitionVersion::RunAs {
37 1     1   7251 use Moose;
  1         3  
  1         15  
38 1     1   6647 use MooseX::StrictConstructor;
  1         4  
  1         13  
39             extends 'Cfn::Value::TypedValue';
40            
41             has Gid => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
42             has Uid => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
43             }
44             subtype 'ArrayOfCfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::ResourceAccessPolicy',
45             as 'Cfn::Value',
46             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
47             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
48              
49             coerce 'ArrayOfCfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::ResourceAccessPolicy',
50             from 'HashRef',
51             via {
52             if (my $f = Cfn::TypeLibrary::try_function($_)) {
53             return $f
54             } else {
55             die 'Only accepts functions';
56             }
57             },
58             from 'ArrayRef',
59             via {
60             Cfn::Value::Array->new(Value => [
61             map {
62             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::ResourceAccessPolicy')->coerce($_)
63             } @$_
64             ]);
65             };
66              
67             subtype 'Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::ResourceAccessPolicy',
68             as 'Cfn::Value';
69              
70             coerce 'Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::ResourceAccessPolicy',
71             from 'HashRef',
72             via {
73             if (my $f = Cfn::TypeLibrary::try_function($_)) {
74             return $f
75             } else {
76             return Cfn::Resource::Properties::Object::AWS::Greengrass::FunctionDefinitionVersion::ResourceAccessPolicy->new( %$_ );
77             }
78             };
79              
80             package Cfn::Resource::Properties::Object::AWS::Greengrass::FunctionDefinitionVersion::ResourceAccessPolicy {
81 1     1   3894 use Moose;
  1         5  
  1         7  
82 1     1   6595 use MooseX::StrictConstructor;
  1         3  
  1         6  
83             extends 'Cfn::Value::TypedValue';
84            
85             has Permission => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
86             has ResourceId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
87             }
88              
89             subtype 'Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::Execution',
90             as 'Cfn::Value';
91              
92             coerce 'Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::Execution',
93             from 'HashRef',
94             via {
95             if (my $f = Cfn::TypeLibrary::try_function($_)) {
96             return $f
97             } else {
98             return Cfn::Resource::Properties::Object::AWS::Greengrass::FunctionDefinitionVersion::Execution->new( %$_ );
99             }
100             };
101              
102             package Cfn::Resource::Properties::Object::AWS::Greengrass::FunctionDefinitionVersion::Execution {
103 1     1   3369 use Moose;
  1         2  
  1         7  
104 1     1   6712 use MooseX::StrictConstructor;
  1         3  
  1         5  
105             extends 'Cfn::Value::TypedValue';
106            
107             has IsolationMode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
108             has RunAs => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::RunAs', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
109             }
110              
111             subtype 'Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::Environment',
112             as 'Cfn::Value';
113              
114             coerce 'Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::Environment',
115             from 'HashRef',
116             via {
117             if (my $f = Cfn::TypeLibrary::try_function($_)) {
118             return $f
119             } else {
120             return Cfn::Resource::Properties::Object::AWS::Greengrass::FunctionDefinitionVersion::Environment->new( %$_ );
121             }
122             };
123              
124             package Cfn::Resource::Properties::Object::AWS::Greengrass::FunctionDefinitionVersion::Environment {
125 1     1   3452 use Moose;
  1         5  
  1         6  
126 1     1   6610 use MooseX::StrictConstructor;
  1         3  
  1         7  
127             extends 'Cfn::Value::TypedValue';
128            
129             has AccessSysfs => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
130             has Execution => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::Execution', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
131             has ResourceAccessPolicies => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::ResourceAccessPolicy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
132             has Variables => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
133             }
134              
135             subtype 'Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::FunctionConfiguration',
136             as 'Cfn::Value';
137              
138             coerce 'Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::FunctionConfiguration',
139             from 'HashRef',
140             via {
141             if (my $f = Cfn::TypeLibrary::try_function($_)) {
142             return $f
143             } else {
144             return Cfn::Resource::Properties::Object::AWS::Greengrass::FunctionDefinitionVersion::FunctionConfiguration->new( %$_ );
145             }
146             };
147              
148             package Cfn::Resource::Properties::Object::AWS::Greengrass::FunctionDefinitionVersion::FunctionConfiguration {
149 1     1   3472 use Moose;
  1         4  
  1         6  
150 1     1   6805 use MooseX::StrictConstructor;
  1         5  
  1         6  
151             extends 'Cfn::Value::TypedValue';
152            
153             has EncodingType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
154             has Environment => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::Environment', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
155             has ExecArgs => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
156             has Executable => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
157             has MemorySize => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
158             has Pinned => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
159             has Timeout => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
160             }
161             subtype 'ArrayOfCfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::Function',
162             as 'Cfn::Value',
163             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
164             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
165              
166             coerce 'ArrayOfCfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::Function',
167             from 'HashRef',
168             via {
169             if (my $f = Cfn::TypeLibrary::try_function($_)) {
170             return $f
171             } else {
172             die 'Only accepts functions';
173             }
174             },
175             from 'ArrayRef',
176             via {
177             Cfn::Value::Array->new(Value => [
178             map {
179             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::Function')->coerce($_)
180             } @$_
181             ]);
182             };
183              
184             subtype 'Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::Function',
185             as 'Cfn::Value';
186              
187             coerce 'Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::Function',
188             from 'HashRef',
189             via {
190             if (my $f = Cfn::TypeLibrary::try_function($_)) {
191             return $f
192             } else {
193             return Cfn::Resource::Properties::Object::AWS::Greengrass::FunctionDefinitionVersion::Function->new( %$_ );
194             }
195             };
196              
197             package Cfn::Resource::Properties::Object::AWS::Greengrass::FunctionDefinitionVersion::Function {
198 1     1   3773 use Moose;
  1         4  
  1         6  
199 1     1   7142 use MooseX::StrictConstructor;
  1         4  
  1         6  
200             extends 'Cfn::Value::TypedValue';
201            
202             has FunctionArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
203             has FunctionConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::FunctionConfiguration', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
204             has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
205             }
206              
207             subtype 'Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::DefaultConfig',
208             as 'Cfn::Value';
209              
210             coerce 'Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::DefaultConfig',
211             from 'HashRef',
212             via {
213             if (my $f = Cfn::TypeLibrary::try_function($_)) {
214             return $f
215             } else {
216             return Cfn::Resource::Properties::Object::AWS::Greengrass::FunctionDefinitionVersion::DefaultConfig->new( %$_ );
217             }
218             };
219              
220             package Cfn::Resource::Properties::Object::AWS::Greengrass::FunctionDefinitionVersion::DefaultConfig {
221 1     1   3662 use Moose;
  1         4  
  1         7  
222 1     1   6789 use MooseX::StrictConstructor;
  1         3  
  1         7  
223             extends 'Cfn::Value::TypedValue';
224            
225             has Execution => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::Execution', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
226             }
227              
228             package Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion {
229 1     1   3345 use Moose;
  1         2  
  1         7  
230 1     1   6673 use MooseX::StrictConstructor;
  1         3  
  1         5  
231             extends 'Cfn::Resource::Properties';
232            
233             has DefaultConfig => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::DefaultConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
234             has FunctionDefinitionId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
235             has Functions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::Function', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
236             }
237              
238             1;
239             ### main pod documentation begin ###
240              
241             =encoding UTF-8
242              
243             =head1 NAME
244              
245             Cfn::Resource::AWS::Greengrass::FunctionDefinitionVersion - Cfn resource for AWS::Greengrass::FunctionDefinitionVersion
246              
247             =head1 DESCRIPTION
248              
249             This module implements a Perl module that represents the CloudFormation object AWS::Greengrass::FunctionDefinitionVersion.
250              
251             See L<Cfn> for more information on how to use it.
252              
253             =head1 AUTHOR
254              
255             Jose Luis Martinez
256             CAPSiDE
257             jlmartinez@capside.com
258              
259             =head1 COPYRIGHT and LICENSE
260              
261             Copyright (c) 2013 by CAPSiDE
262             This code is distributed under the Apache 2 License. The full text of the
263             license can be found in the LICENSE file included with this module.
264              
265             =cut