File Coverage

blib/lib/Cfn/Resource/AWS/SSM/PatchBaseline.pm
Criterion Covered Total %
statement 50 50 100.0
branch n/a
condition n/a
subroutine 18 18 100.0
pod 0 2 0.0
total 68 70 97.1


line stmt bran cond sub pod time code
1             # AWS::SSM::PatchBaseline generated from spec 20.1.0
2 1     1   717 use Moose::Util::TypeConstraints;
  1         4  
  1         11  
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   2268 use Moose;
  1         4  
  1         9  
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 4 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1166 [ 'ap-northeast-1','ap-northeast-2','ap-northeast-3','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::Object::AWS::SSM::PatchBaseline::PatchFilter->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::Object::AWS::SSM::PatchBaseline::PatchFilter {
59 1     1   7492 use Moose;
  1         3  
  1         6  
60 1     1   6769 use MooseX::StrictConstructor;
  1         4  
  1         14  
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::PatchStringDate',
68             as 'Cfn::Value';
69              
70             coerce 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchStringDate',
71             from 'HashRef',
72             via {
73             if (my $f = Cfn::TypeLibrary::try_function($_)) {
74             return $f
75             } else {
76             return Cfn::Resource::Properties::Object::AWS::SSM::PatchBaseline::PatchStringDate->new( %$_ );
77             }
78             };
79              
80             package Cfn::Resource::Properties::Object::AWS::SSM::PatchBaseline::PatchStringDate {
81 1     1   3662 use Moose;
  1         4  
  1         6  
82 1     1   6804 use MooseX::StrictConstructor;
  1         5  
  1         6  
83             extends 'Cfn::Value::TypedValue';
84            
85             }
86              
87             subtype 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilterGroup',
88             as 'Cfn::Value';
89              
90             coerce 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilterGroup',
91             from 'HashRef',
92             via {
93             if (my $f = Cfn::TypeLibrary::try_function($_)) {
94             return $f
95             } else {
96             return Cfn::Resource::Properties::Object::AWS::SSM::PatchBaseline::PatchFilterGroup->new( %$_ );
97             }
98             };
99              
100             package Cfn::Resource::Properties::Object::AWS::SSM::PatchBaseline::PatchFilterGroup {
101 1     1   3444 use Moose;
  1         3  
  1         6  
102 1     1   6661 use MooseX::StrictConstructor;
  1         3  
  1         7  
103             extends 'Cfn::Value::TypedValue';
104            
105             has PatchFilters => (isa => 'ArrayOfCfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilter', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
106             }
107             subtype 'ArrayOfCfn::Resource::Properties::AWS::SSM::PatchBaseline::Rule',
108             as 'Cfn::Value',
109             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
110             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
111              
112             coerce 'ArrayOfCfn::Resource::Properties::AWS::SSM::PatchBaseline::Rule',
113             from 'HashRef',
114             via {
115             if (my $f = Cfn::TypeLibrary::try_function($_)) {
116             return $f
117             } else {
118             die 'Only accepts functions';
119             }
120             },
121             from 'ArrayRef',
122             via {
123             Cfn::Value::Array->new(Value => [
124             map {
125             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::SSM::PatchBaseline::Rule')->coerce($_)
126             } @$_
127             ]);
128             };
129              
130             subtype 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::Rule',
131             as 'Cfn::Value';
132              
133             coerce 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::Rule',
134             from 'HashRef',
135             via {
136             if (my $f = Cfn::TypeLibrary::try_function($_)) {
137             return $f
138             } else {
139             return Cfn::Resource::Properties::Object::AWS::SSM::PatchBaseline::Rule->new( %$_ );
140             }
141             };
142              
143             package Cfn::Resource::Properties::Object::AWS::SSM::PatchBaseline::Rule {
144 1     1   3676 use Moose;
  1         5  
  1         7  
145 1     1   6832 use MooseX::StrictConstructor;
  1         3  
  1         6  
146             extends 'Cfn::Value::TypedValue';
147            
148             has ApproveAfterDays => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
149             has ApproveUntilDate => (isa => 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchStringDate', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
150             has ComplianceLevel => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
151             has EnableNonSecurity => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
152             has PatchFilterGroup => (isa => 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilterGroup', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
153             }
154              
155             subtype 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::RuleGroup',
156             as 'Cfn::Value';
157              
158             coerce 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::RuleGroup',
159             from 'HashRef',
160             via {
161             if (my $f = Cfn::TypeLibrary::try_function($_)) {
162             return $f
163             } else {
164             return Cfn::Resource::Properties::Object::AWS::SSM::PatchBaseline::RuleGroup->new( %$_ );
165             }
166             };
167              
168             package Cfn::Resource::Properties::Object::AWS::SSM::PatchBaseline::RuleGroup {
169 1     1   3540 use Moose;
  1         3  
  1         7  
170 1     1   6614 use MooseX::StrictConstructor;
  1         3  
  1         8  
171             extends 'Cfn::Value::TypedValue';
172            
173             has PatchRules => (isa => 'ArrayOfCfn::Resource::Properties::AWS::SSM::PatchBaseline::Rule', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
174             }
175             subtype 'ArrayOfCfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchSource',
176             as 'Cfn::Value',
177             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
178             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
179              
180             coerce 'ArrayOfCfn::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             die 'Only accepts functions';
187             }
188             },
189             from 'ArrayRef',
190             via {
191             Cfn::Value::Array->new(Value => [
192             map {
193             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchSource')->coerce($_)
194             } @$_
195             ]);
196             };
197              
198             subtype 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchSource',
199             as 'Cfn::Value';
200              
201             coerce 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchSource',
202             from 'HashRef',
203             via {
204             if (my $f = Cfn::TypeLibrary::try_function($_)) {
205             return $f
206             } else {
207             return Cfn::Resource::Properties::Object::AWS::SSM::PatchBaseline::PatchSource->new( %$_ );
208             }
209             };
210              
211             package Cfn::Resource::Properties::Object::AWS::SSM::PatchBaseline::PatchSource {
212 1     1   3629 use Moose;
  1         4  
  1         5  
213 1     1   6757 use MooseX::StrictConstructor;
  1         3  
  1         7  
214             extends 'Cfn::Value::TypedValue';
215            
216             has Configuration => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
217             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
218             has Products => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
219             }
220              
221             package Cfn::Resource::Properties::AWS::SSM::PatchBaseline {
222 1     1   3599 use Moose;
  1         5  
  1         7  
223 1     1   6687 use MooseX::StrictConstructor;
  1         3  
  1         7  
224             extends 'Cfn::Resource::Properties';
225            
226             has ApprovalRules => (isa => 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::RuleGroup', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
227             has ApprovedPatches => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
228             has ApprovedPatchesComplianceLevel => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
229             has ApprovedPatchesEnableNonSecurity => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
230             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
231             has GlobalFilters => (isa => 'Cfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchFilterGroup', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
232             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
233             has OperatingSystem => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
234             has PatchGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
235             has RejectedPatches => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
236             has RejectedPatchesAction => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
237             has Sources => (isa => 'ArrayOfCfn::Resource::Properties::AWS::SSM::PatchBaseline::PatchSource', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
238             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
239             }
240              
241             1;
242             ### main pod documentation begin ###
243              
244             =encoding UTF-8
245              
246             =head1 NAME
247              
248             Cfn::Resource::AWS::SSM::PatchBaseline - Cfn resource for AWS::SSM::PatchBaseline
249              
250             =head1 DESCRIPTION
251              
252             This module implements a Perl module that represents the CloudFormation object AWS::SSM::PatchBaseline.
253              
254             See L<Cfn> for more information on how to use it.
255              
256             =head1 AUTHOR
257              
258             Jose Luis Martinez
259             CAPSiDE
260             jlmartinez@capside.com
261              
262             =head1 COPYRIGHT and LICENSE
263              
264             Copyright (c) 2013 by CAPSiDE
265             This code is distributed under the Apache 2 License. The full text of the
266             license can be found in the LICENSE file included with this module.
267              
268             =cut