Cfn/Resource/AWS/SSM/PatchBaseline.pm

filter: Statementstmt 73.1% 101 / 138 Branchbran 0.0% 0 / 22 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 47.0% 16 / 34 Podpod 0.0% 0 / 2 totaltotal 59.6% 117 / 196 SCAR 29.6
CC
12
Cov
63%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 19.2
« Cfn/Resource/AWS/ElasticLoadBalancingV2/Listener.pm ↑ Summary Cfn/Resource/AWS/Greengrass/FunctionDefinition.pm »
1 # AWS::SSM::PatchBaseline generated from spec 2.28.0
2 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline',
5 from 'HashRef',
6 0 ▶ via { Cfn::Resource::Properties::AWS::SSM::PatchBaseline->new( %$_ ) };
Subroutine __ANON__: not called CC=1 SCAR=1.2
7  
8 1 package Cfn::Resource::AWS::SSM::PatchBaseline {
9 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 extends 'Cfn::Resource';
11 1 has Properties => (isa => 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ ]
Subroutine AttributeList: called CC=1 SCAR=0.0
Pod undocumented
15 }
16 sub supported_regions {
17 1 ▶ [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','eu-central-1','eu-west-1','eu-west-2','sa-east-1','us-east-1','us-east-2','us-west-1','us-west-2' ]
Subroutine supported_regions: called CC=1 SCAR=0.0
Pod undocumented
18 }
19 }
20  
21  
22 subtype 'ArrayOfCfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilter',
23 as 'Cfn::Value',
24 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
25 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
26  
27 coerce 'ArrayOfCfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilter',
28 from 'HashRef',
29 via {
30 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
31 0 return $f
32 } else {
33 0 die 'Only accepts functions';
34 }
35 },
36 from 'ArrayRef',
37 via {
38 Cfn::Value::Array->new(Value => [
39 map {
40 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilter')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
41 } @$_
42 ]);
43 1 };
44  
45 1 subtype 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilter',
46 as 'Cfn::Value';
47  
48 coerce 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilter',
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::SSM::PatchBaseline::PatchFilterValue->new( %$_ );
55 }
56 1 };
57  
58 1 package Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilterValue {
59 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
60 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
61 1 extends 'Cfn::Value::TypedValue';
62
63 1 has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64 1 has Values => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65 }
66  
67 1 subtype 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilterGroup',
68 as 'Cfn::Value';
69  
70 coerce 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilterGroup',
71 from 'HashRef',
72 via {
73 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
74 0 return $f
75 } else {
76 0 return Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilterGroupValue->new( %$_ );
77 }
78 1 };
79  
80 1 package Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilterGroupValue {
81 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
82 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
83 1 extends 'Cfn::Value::TypedValue';
84
85 1 has PatchFilters => (isa => 'ArrayOfCfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilter', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86 }
87 subtype 'ArrayOfCfn::Resource::Properties::AWS::SSM::PatchBaseline::Rule',
88 as 'Cfn::Value',
89 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
90 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
91  
92 coerce 'ArrayOfCfn::Resource::Properties::AWS::SSM::PatchBaseline::Rule',
93 from 'HashRef',
94 via {
95 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
96 0 return $f
97 } else {
98 0 die 'Only accepts functions';
99 }
100 },
101 from 'ArrayRef',
102 via {
103 Cfn::Value::Array->new(Value => [
104 map {
105 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::SSM::PatchBaseline::Rule')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
106 } @$_
107 ]);
108 1 };
109  
110 1 subtype 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::Rule',
111 as 'Cfn::Value';
112  
113 coerce 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::Rule',
114 from 'HashRef',
115 via {
116 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
117 0 return $f
118 } else {
119 0 return Cfn::Resource::Properties::AWS::SSM::PatchBaseline::RuleValue->new( %$_ );
120 }
121 1 };
122  
123 1 package Cfn::Resource::Properties::AWS::SSM::PatchBaseline::RuleValue {
124 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
125 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
126 1 extends 'Cfn::Value::TypedValue';
127
128 1 has ApproveAfterDays => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
129 1 has ComplianceLevel => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
130 1 has EnableNonSecurity => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
131 1 has PatchFilterGroup => (isa => 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilterGroup', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
132 }
133  
134 1 subtype 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::RuleGroup',
135 as 'Cfn::Value';
136  
137 coerce 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::RuleGroup',
138 from 'HashRef',
139 via {
140 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
141 0 return $f
142 } else {
143 0 return Cfn::Resource::Properties::AWS::SSM::PatchBaseline::RuleGroupValue->new( %$_ );
144 }
145 1 };
146  
147 1 package Cfn::Resource::Properties::AWS::SSM::PatchBaseline::RuleGroupValue {
148 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
149 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
150 1 extends 'Cfn::Value::TypedValue';
151
152 1 has PatchRules => (isa => 'ArrayOfCfn::Resource::Properties::AWS::SSM::PatchBaseline::Rule', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
153 }
154 subtype 'ArrayOfCfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchSource',
155 as 'Cfn::Value',
156 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
157 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
158  
159 coerce 'ArrayOfCfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchSource',
160 from 'HashRef',
161 via {
162 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
163 0 return $f
164 } else {
165 0 die 'Only accepts functions';
166 }
167 },
168 from 'ArrayRef',
169 via {
170 Cfn::Value::Array->new(Value => [
171 map {
172 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchSource')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
173 } @$_
174 ]);
175 1 };
176  
177 1 subtype 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchSource',
178 as 'Cfn::Value';
179  
180 coerce 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchSource',
181 from 'HashRef',
182 via {
183 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
184 0 return $f
185 } else {
186 0 return Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchSourceValue->new( %$_ );
187 }
188 1 };
189  
190 1 package Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchSourceValue {
191 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
192 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
193 1 extends 'Cfn::Value::TypedValue';
194
195 1 has Configuration => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
196 1 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
197 1 has Products => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
198 }
199  
200 1 package Cfn::Resource::Properties::AWS::SSM::PatchBaseline {
201 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
202 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
203 1 extends 'Cfn::Resource::Properties';
204
205 1 has ApprovalRules => (isa => 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::RuleGroup', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
206 1 has ApprovedPatches => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
207 1 has ApprovedPatchesComplianceLevel => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
208 1 has ApprovedPatchesEnableNonSecurity => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
209 1 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
210 1 has GlobalFilters => (isa => 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilterGroup', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
211 1 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
212 1 has OperatingSystem => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
213 1 has PatchGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
214 1 has RejectedPatches => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
215 1 has RejectedPatchesAction => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
216 1 has Sources => (isa => 'ArrayOfCfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchSource', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
217 1 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
218 }
219  
220 1 1;
« Cfn/Resource/AWS/ElasticLoadBalancingV2/Listener.pm ↑ Summary Cfn/Resource/AWS/Greengrass/FunctionDefinition.pm »