Cfn/Resource/AWS/Lambda/Function.pm

filter: Statementstmt 82.1% 129 / 157 Branchbran 5.5% 1 / 18 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 62.5% 20 / 32 Podpod 0.0% 0 / 2 totaltotal 71.7% 150 / 209 CC 10 SCAR 11.3
CC
10
Cov
74%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.1
« Cfn/Resource/AWS/ApiGatewayV2/Integration.pm ↑ Summary Cfn/Resource/AWS/RDS/DBCluster.pm »
1 # AWS::Lambda::Function generated from spec 22.0.0
2 3 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::Lambda::Function',
5 from 'HashRef',
6 6 ▶ via { Cfn::Resource::Properties::AWS::Lambda::Function->new( %$_ ) };
Subroutine __ANON__: called CC=1 SCAR=0.0
7  
8 3 package Cfn::Resource::AWS::Lambda::Function {
9 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 extends 'Cfn::Resource';
11 3 has Properties => (isa => 'Cfn::Resource::Properties::AWS::Lambda::Function', is => 'rw', coerce => 1);
12
13 0 ▶ sub AttributeList {
Subroutine AttributeList: not called CC=1 SCAR=6.9
Pod undocumented
14 0 [ 'Arn' ]
15 }
16 0 ▶ sub supported_regions {
Subroutine supported_regions: not called CC=1 SCAR=6.9
Pod undocumented
17 0 [ 'af-south-1','ap-east-1','ap-northeast-1','ap-northeast-2','ap-northeast-3','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-north-1','cn-northwest-1','eu-central-1','eu-north-1','eu-south-1','eu-west-1','eu-west-2','eu-west-3','me-south-1','sa-east-1','us-east-1','us-east-2','us-gov-east-1','us-gov-west-1','us-west-1','us-west-2' ]
18 }
19 }
20  
21  
22  
23 3 subtype 'Cfn::Resource::Properties::AWS::Lambda::Function::VpcConfig',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::Lambda::Function::VpcConfig',
27 from 'HashRef',
28 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
29 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
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::Lambda::Function::VpcConfig->new( %$_ );
33 }
34 3 };
35  
36 3 package Cfn::Resource::Properties::Object::AWS::Lambda::Function::VpcConfig {
37 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 3 extends 'Cfn::Value::TypedValue';
40
41 3 has SecurityGroupIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 3 has SubnetIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 }
44  
45 3 subtype 'Cfn::Resource::Properties::AWS::Lambda::Function::TracingConfig',
46 as 'Cfn::Value';
47  
48 coerce 'Cfn::Resource::Properties::AWS::Lambda::Function::TracingConfig',
49 from 'HashRef',
50 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
51 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
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::Lambda::Function::TracingConfig->new( %$_ );
55 }
56 3 };
57  
58 3 package Cfn::Resource::Properties::Object::AWS::Lambda::Function::TracingConfig {
59 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
60 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
61 3 extends 'Cfn::Value::TypedValue';
62
63 3 has Mode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64 }
65  
66 3 subtype 'Cfn::Resource::Properties::AWS::Lambda::Function::ImageConfig',
67 as 'Cfn::Value';
68  
69 coerce 'Cfn::Resource::Properties::AWS::Lambda::Function::ImageConfig',
70 from 'HashRef',
71 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
72 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
73 0 return $f
74 } else {
75 0 return Cfn::Resource::Properties::Object::AWS::Lambda::Function::ImageConfig->new( %$_ );
76 }
77 3 };
78  
79 3 package Cfn::Resource::Properties::Object::AWS::Lambda::Function::ImageConfig {
80 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
81 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
82 3 extends 'Cfn::Value::TypedValue';
83
84 3 has Command => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85 3 has EntryPoint => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86 3 has WorkingDirectory => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87 }
88 subtype 'ArrayOfCfn::Resource::Properties::AWS::Lambda::Function::FileSystemConfig',
89 as 'Cfn::Value',
90 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
91 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
92  
93 coerce 'ArrayOfCfn::Resource::Properties::AWS::Lambda::Function::FileSystemConfig',
94 from 'HashRef',
95 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
96 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
97 0 return $f
98 } else {
99 0 die 'Only accepts functions';
100 }
101 },
102 from 'ArrayRef',
103 0 ▶ via {
Subroutine __ANON__: not called CC=1 SCAR=6.9
104 Cfn::Value::Array->new(Value => [
105 map {
106 0 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Lambda::Function::FileSystemConfig')->coerce($_)
107 } @$_
108 ]);
109 3 };
110  
111 3 subtype 'Cfn::Resource::Properties::AWS::Lambda::Function::FileSystemConfig',
112 as 'Cfn::Value';
113  
114 coerce 'Cfn::Resource::Properties::AWS::Lambda::Function::FileSystemConfig',
115 from 'HashRef',
116 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
117 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
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::Lambda::Function::FileSystemConfig->new( %$_ );
121 }
122 3 };
123  
124 3 package Cfn::Resource::Properties::Object::AWS::Lambda::Function::FileSystemConfig {
125 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
126 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
127 3 extends 'Cfn::Value::TypedValue';
128
129 3 has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
130 3 has LocalMountPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
131 }
132  
133 3 subtype 'Cfn::Resource::Properties::AWS::Lambda::Function::Environment',
134 as 'Cfn::Value';
135  
136 coerce 'Cfn::Resource::Properties::AWS::Lambda::Function::Environment',
137 from 'HashRef',
138 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
139 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
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::Lambda::Function::Environment->new( %$_ );
143 }
144 3 };
145  
146 3 package Cfn::Resource::Properties::Object::AWS::Lambda::Function::Environment {
147 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
148 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
149 3 extends 'Cfn::Value::TypedValue';
150
151 3 has Variables => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
152 }
153  
154 3 subtype 'Cfn::Resource::Properties::AWS::Lambda::Function::DeadLetterConfig',
155 as 'Cfn::Value';
156  
157 coerce 'Cfn::Resource::Properties::AWS::Lambda::Function::DeadLetterConfig',
158 from 'HashRef',
159 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
160 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
161 0 return $f
162 } else {
163 0 return Cfn::Resource::Properties::Object::AWS::Lambda::Function::DeadLetterConfig->new( %$_ );
164 }
165 3 };
166  
167 3 package Cfn::Resource::Properties::Object::AWS::Lambda::Function::DeadLetterConfig {
168 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
169 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
170 3 extends 'Cfn::Value::TypedValue';
171
172 3 has TargetArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
173 }
174  
175 3 subtype 'Cfn::Resource::Properties::AWS::Lambda::Function::Code',
176 as 'Cfn::Value';
177  
178 coerce 'Cfn::Resource::Properties::AWS::Lambda::Function::Code',
179 from 'HashRef',
180 6 ▶ via {
Subroutine __ANON__: called CC=2 SCAR=8.1
181 6 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 6 6
182 0 return $f
183 } else {
184 6 return Cfn::Resource::Properties::Object::AWS::Lambda::Function::Code->new( %$_ );
185 }
186 3 };
187  
188 3 package Cfn::Resource::Properties::Object::AWS::Lambda::Function::Code {
189 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
190 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
191 3 extends 'Cfn::Value::TypedValue';
192
193 3 has ImageUri => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
194 3 has S3Bucket => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
195 3 has S3Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
196 3 has S3ObjectVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
197 3 has ZipFile => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
198 }
199  
200 3 package Cfn::Resource::Properties::AWS::Lambda::Function {
201 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
202 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
203 3 extends 'Cfn::Resource::Properties';
204
205 3 has Code => (isa => 'Cfn::Resource::Properties::AWS::Lambda::Function::Code', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
206 3 has CodeSigningConfigArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
207 3 has DeadLetterConfig => (isa => 'Cfn::Resource::Properties::AWS::Lambda::Function::DeadLetterConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
208 3 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
209 3 has Environment => (isa => 'Cfn::Resource::Properties::AWS::Lambda::Function::Environment', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
210 3 has FileSystemConfigs => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Lambda::Function::FileSystemConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
211 3 has FunctionName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
212 3 has Handler => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
213 3 has ImageConfig => (isa => 'Cfn::Resource::Properties::AWS::Lambda::Function::ImageConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
214 3 has KmsKeyArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
215 3 has Layers => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
216 3 has MemorySize => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
217 3 has PackageType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
218 3 has ReservedConcurrentExecutions => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
219 3 has Role => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
220 3 has Runtime => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
221 3 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
222 3 has Timeout => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
223 3 has TracingConfig => (isa => 'Cfn::Resource::Properties::AWS::Lambda::Function::TracingConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
224 3 has VpcConfig => (isa => 'Cfn::Resource::Properties::AWS::Lambda::Function::VpcConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
225 }
226  
227 3 1;
228 ### main pod documentation begin ###
229  
230 =encoding UTF-8
231  
232 =head1 NAME
233  
234 Cfn::Resource::AWS::Lambda::Function - Cfn resource for AWS::Lambda::Function
235  
236 =head1 DESCRIPTION
237  
238 This module implements a Perl module that represents the CloudFormation object AWS::Lambda::Function.
239  
240 See L<Cfn> for more information on how to use it.
241  
242 =head1 AUTHOR
243  
244 Jose Luis Martinez
245 CAPSiDE
246 jlmartinez@capside.com
247  
248 =head1 COPYRIGHT and LICENSE
249  
250 Copyright (c) 2013 by CAPSiDE
251 This code is distributed under the Apache 2 License. The full text of the
252 license can be found in the LICENSE file included with this module.
253  
254 =cut
« Cfn/Resource/AWS/ApiGatewayV2/Integration.pm ↑ Summary Cfn/Resource/AWS/RDS/DBCluster.pm »