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 6.3.0
2 1     1   646 use Moose::Util::TypeConstraints;
  1         4  
  1         7  
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   1967 use Moose;
  1         4  
  1         7  
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 3 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1093 [ '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::AWS::Greengrass::FunctionDefinitionVersion::RunAsValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::RunAsValue {
37 1     1   6766 use Moose;
  1         2  
  1         5  
38 1     1   6452 use MooseX::StrictConstructor;
  1         3  
  1         7  
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::AWS::Greengrass::FunctionDefinitionVersion::ResourceAccessPolicyValue->new( %$_ );
77             }
78             };
79              
80             package Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::ResourceAccessPolicyValue {
81 1     1   3630 use Moose;
  1         3  
  1         6  
82 1     1   6473 use MooseX::StrictConstructor;
  1         2  
  1         5  
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::AWS::Greengrass::FunctionDefinitionVersion::ExecutionValue->new( %$_ );
99             }
100             };
101              
102             package Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::ExecutionValue {
103 1     1   3624 use Moose;
  1         15  
  1         7  
104 1     1   6426 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::AWS::Greengrass::FunctionDefinitionVersion::EnvironmentValue->new( %$_ );
121             }
122             };
123              
124             package Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::EnvironmentValue {
125 1     1   3294 use Moose;
  1         3  
  1         5  
126 1     1   6433 use MooseX::StrictConstructor;
  1         3  
  1         6  
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::AWS::Greengrass::FunctionDefinitionVersion::FunctionConfigurationValue->new( %$_ );
145             }
146             };
147              
148             package Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::FunctionConfigurationValue {
149 1     1   3342 use Moose;
  1         3  
  1         6  
150 1     1   6471 use MooseX::StrictConstructor;
  1         3  
  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::AWS::Greengrass::FunctionDefinitionVersion::FunctionValue->new( %$_ );
194             }
195             };
196              
197             package Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::FunctionValue {
198 1     1   3591 use Moose;
  1         4  
  1         5  
199 1     1   6394 use MooseX::StrictConstructor;
  1         3  
  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::AWS::Greengrass::FunctionDefinitionVersion::DefaultConfigValue->new( %$_ );
217             }
218             };
219              
220             package Cfn::Resource::Properties::AWS::Greengrass::FunctionDefinitionVersion::DefaultConfigValue {
221 1     1   3379 use Moose;
  1         3  
  1         6  
222 1     1   6465 use MooseX::StrictConstructor;
  1         6  
  1         9  
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   3115 use Moose;
  1         2  
  1         6  
230 1     1   6488 use MooseX::StrictConstructor;
  1         3  
  1         6  
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;