Cfn/Resource/AWS/Lambda/Function.pm

filter: Statementstmt 88.3% 99 / 112 Branchbran 10.0% 1 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 81.8% 18 / 22 Podpod 0.0% 0 / 2 totaltotal 80.8% 118 / 146 SCAR 18.3
CC
6
Cov
82%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 6.2
« Cfn/Resource/AWS/DMS/Endpoint.pm ↑ Summary Cfn/Resource/AWS/ApiGateway/Stage.pm »
1 # AWS::Lambda::Function generated from spec 5.3.0
2 4 ▶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 4 package Cfn::Resource::AWS::Lambda::Function {
9 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 4 extends 'Cfn::Resource';
11 4 has Properties => (isa => 'Cfn::Resource::Properties::AWS::Lambda::Function', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ 'Arn' ]
Subroutine AttributeList: called CC=1 SCAR=0.0
Pod undocumented
15 }
16 sub supported_regions {
17 6 ▶ [ '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-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' ]
Subroutine supported_regions: called CC=1 SCAR=0.0
Pod undocumented
18 }
19 }
20  
21  
22  
23 4 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 via {
29 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
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::AWS::Lambda::Function::VpcConfigValue->new( %$_ );
33 }
34 4 };
35  
36 4 package Cfn::Resource::Properties::AWS::Lambda::Function::VpcConfigValue {
37 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 4 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 4 extends 'Cfn::Value::TypedValue';
40
41 4 has SecurityGroupIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 4 has SubnetIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 }
44  
45 4 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 via {
51 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
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::AWS::Lambda::Function::TracingConfigValue->new( %$_ );
55 }
56 4 };
57  
58 4 package Cfn::Resource::Properties::AWS::Lambda::Function::TracingConfigValue {
59 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
60 4 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
61 4 extends 'Cfn::Value::TypedValue';
62
63 4 has Mode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64 }
65  
66 4 subtype 'Cfn::Resource::Properties::AWS::Lambda::Function::Environment',
67 as 'Cfn::Value';
68  
69 coerce 'Cfn::Resource::Properties::AWS::Lambda::Function::Environment',
70 from 'HashRef',
71 via {
72 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
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::AWS::Lambda::Function::EnvironmentValue->new( %$_ );
76 }
77 4 };
78  
79 4 package Cfn::Resource::Properties::AWS::Lambda::Function::EnvironmentValue {
80 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
81 4 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
82 4 extends 'Cfn::Value::TypedValue';
83
84 4 has Variables => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85 }
86  
87 4 subtype 'Cfn::Resource::Properties::AWS::Lambda::Function::DeadLetterConfig',
88 as 'Cfn::Value';
89  
90 coerce 'Cfn::Resource::Properties::AWS::Lambda::Function::DeadLetterConfig',
91 from 'HashRef',
92 via {
93 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
94 0 return $f
95 } else {
96 0 return Cfn::Resource::Properties::AWS::Lambda::Function::DeadLetterConfigValue->new( %$_ );
97 }
98 4 };
99  
100 4 package Cfn::Resource::Properties::AWS::Lambda::Function::DeadLetterConfigValue {
101 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
102 4 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
103 4 extends 'Cfn::Value::TypedValue';
104
105 4 has TargetArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
106 }
107  
108 4 subtype 'Cfn::Resource::Properties::AWS::Lambda::Function::Code',
109 as 'Cfn::Value';
110  
111 coerce 'Cfn::Resource::Properties::AWS::Lambda::Function::Code',
112 from 'HashRef',
113 via {
114 6 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 6 6
115 0 return $f
116 } else {
117 6 return Cfn::Resource::Properties::AWS::Lambda::Function::CodeValue->new( %$_ );
118 }
119 4 };
120  
121 4 package Cfn::Resource::Properties::AWS::Lambda::Function::CodeValue {
122 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
123 4 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
124 4 extends 'Cfn::Value::TypedValue';
125
126 4 has S3Bucket => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
127 4 has S3Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
128 4 has S3ObjectVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
129 4 has ZipFile => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
130 }
131  
132 4 package Cfn::Resource::Properties::AWS::Lambda::Function {
133 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
134 4 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
135 4 extends 'Cfn::Resource::Properties';
136
137 4 has Code => (isa => 'Cfn::Resource::Properties::AWS::Lambda::Function::Code', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
138 4 has DeadLetterConfig => (isa => 'Cfn::Resource::Properties::AWS::Lambda::Function::DeadLetterConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
139 4 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
140 4 has Environment => (isa => 'Cfn::Resource::Properties::AWS::Lambda::Function::Environment', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
141 4 has FunctionName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
142 4 has Handler => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
143 4 has KmsKeyArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
144 4 has Layers => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
145 4 has MemorySize => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
146 4 has ReservedConcurrentExecutions => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
147 4 has Role => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
148 4 has Runtime => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
149 4 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
150 4 has Timeout => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
151 4 has TracingConfig => (isa => 'Cfn::Resource::Properties::AWS::Lambda::Function::TracingConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
152 4 has VpcConfig => (isa => 'Cfn::Resource::Properties::AWS::Lambda::Function::VpcConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
153 }
154  
155 4 1;
« Cfn/Resource/AWS/DMS/Endpoint.pm ↑ Summary Cfn/Resource/AWS/ApiGateway/Stage.pm »