File Coverage

blib/lib/Cfn/Resource/AWS/SSM/PatchBaseline.pm
Criterion Covered Total %
statement 44 44 100.0
branch n/a
condition n/a
subroutine 16 16 100.0
pod 0 2 0.0
total 60 62 96.7


line stmt bran cond sub pod time code
1             # AWS::SSM::PatchBaseline generated from spec 2.28.0
2 1     1   601 use Moose::Util::TypeConstraints;
  1         3  
  1         9  
3              
4             coerce 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::SSM::PatchBaseline->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::SSM::PatchBaseline {
9 1     1   1955 use Moose;
  1         2  
  1         8  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 5 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1576 [ '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' ]
18             }
19             }
20              
21              
22             subtype 'ArrayOfCfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilter',
23             as 'Cfn::Value',
24             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
25             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
26              
27             coerce 'ArrayOfCfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilter',
28             from 'HashRef',
29             via {
30             if (my $f = Cfn::TypeLibrary::try_function($_)) {
31             return $f
32             } else {
33             die 'Only accepts functions';
34             }
35             },
36             from 'ArrayRef',
37             via {
38             Cfn::Value::Array->new(Value => [
39             map {
40             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilter')->coerce($_)
41             } @$_
42             ]);
43             };
44              
45             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
52             return $f
53             } else {
54             return Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilterValue->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilterValue {
59 1     1   6981 use Moose;
  1         3  
  1         5  
60 1     1   6579 use MooseX::StrictConstructor;
  1         3  
  1         8  
61             extends 'Cfn::Value::TypedValue';
62            
63             has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64             has Values => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65             }
66              
67             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
74             return $f
75             } else {
76             return Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilterGroupValue->new( %$_ );
77             }
78             };
79              
80             package Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilterGroupValue {
81 1     1   3431 use Moose;
  1         2  
  1         7  
82 1     1   6463 use MooseX::StrictConstructor;
  1         3  
  1         5  
83             extends 'Cfn::Value::TypedValue';
84            
85             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             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
90             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
91              
92             coerce 'ArrayOfCfn::Resource::Properties::AWS::SSM::PatchBaseline::Rule',
93             from 'HashRef',
94             via {
95             if (my $f = Cfn::TypeLibrary::try_function($_)) {
96             return $f
97             } else {
98             die 'Only accepts functions';
99             }
100             },
101             from 'ArrayRef',
102             via {
103             Cfn::Value::Array->new(Value => [
104             map {
105             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::SSM::PatchBaseline::Rule')->coerce($_)
106             } @$_
107             ]);
108             };
109              
110             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
117             return $f
118             } else {
119             return Cfn::Resource::Properties::AWS::SSM::PatchBaseline::RuleValue->new( %$_ );
120             }
121             };
122              
123             package Cfn::Resource::Properties::AWS::SSM::PatchBaseline::RuleValue {
124 1     1   3551 use Moose;
  1         2  
  1         7  
125 1     1   6495 use MooseX::StrictConstructor;
  1         2  
  1         6  
126             extends 'Cfn::Value::TypedValue';
127            
128             has ApproveAfterDays => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
129             has ComplianceLevel => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
130             has EnableNonSecurity => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
131             has PatchFilterGroup => (isa => 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilterGroup', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
132             }
133              
134             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
141             return $f
142             } else {
143             return Cfn::Resource::Properties::AWS::SSM::PatchBaseline::RuleGroupValue->new( %$_ );
144             }
145             };
146              
147             package Cfn::Resource::Properties::AWS::SSM::PatchBaseline::RuleGroupValue {
148 1     1   3380 use Moose;
  1         2  
  1         8  
149 1     1   6491 use MooseX::StrictConstructor;
  1         2  
  1         5  
150             extends 'Cfn::Value::TypedValue';
151            
152             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             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
157             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
158              
159             coerce 'ArrayOfCfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchSource',
160             from 'HashRef',
161             via {
162             if (my $f = Cfn::TypeLibrary::try_function($_)) {
163             return $f
164             } else {
165             die 'Only accepts functions';
166             }
167             },
168             from 'ArrayRef',
169             via {
170             Cfn::Value::Array->new(Value => [
171             map {
172             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchSource')->coerce($_)
173             } @$_
174             ]);
175             };
176              
177             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
184             return $f
185             } else {
186             return Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchSourceValue->new( %$_ );
187             }
188             };
189              
190             package Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchSourceValue {
191 1     1   3509 use Moose;
  1         2  
  1         6  
192 1     1   6504 use MooseX::StrictConstructor;
  1         2  
  1         6  
193             extends 'Cfn::Value::TypedValue';
194            
195             has Configuration => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
196             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
197             has Products => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
198             }
199              
200             package Cfn::Resource::Properties::AWS::SSM::PatchBaseline {
201 1     1   3215 use Moose;
  1         2  
  1         9  
202 1     1   6840 use MooseX::StrictConstructor;
  1         2  
  1         5  
203             extends 'Cfn::Resource::Properties';
204            
205             has ApprovalRules => (isa => 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::RuleGroup', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
206             has ApprovedPatches => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
207             has ApprovedPatchesComplianceLevel => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
208             has ApprovedPatchesEnableNonSecurity => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
209             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
210             has GlobalFilters => (isa => 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilterGroup', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
211             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
212             has OperatingSystem => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
213             has PatchGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
214             has RejectedPatches => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
215             has RejectedPatchesAction => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
216             has Sources => (isa => 'ArrayOfCfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchSource', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
217             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
218             }
219              
220             1;