File Coverage

blib/lib/Cfn/Resource/AWS/SSM/MaintenanceWindowTask.pm
Criterion Covered Total %
statement 62 62 100.0
branch n/a
condition n/a
subroutine 22 22 100.0
pod 0 2 0.0
total 84 86 97.6


line stmt bran cond sub pod time code
1             # AWS::SSM::MaintenanceWindowTask generated from spec 5.3.0
2 1     1   772 use Moose::Util::TypeConstraints;
  1         3  
  1         12  
3              
4             coerce 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::SSM::MaintenanceWindowTask {
9 1     1   2344 use Moose;
  1         4  
  1         10  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1159 [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-north-1','eu-central-1','eu-west-1','eu-west-2','eu-west-3','sa-east-1','us-east-1','us-east-2','us-west-1','us-west-2' ]
18             }
19             }
20              
21              
22              
23             subtype 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::NotificationConfig',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::NotificationConfig',
27             from 'HashRef',
28             via {
29             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::NotificationConfigValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::NotificationConfigValue {
37 1     1   7719 use Moose;
  1         3  
  1         14  
38 1     1   6776 use MooseX::StrictConstructor;
  1         3  
  1         12  
39             extends 'Cfn::Value::TypedValue';
40            
41             has NotificationArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             has NotificationEvents => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43             has NotificationType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44             }
45              
46             subtype 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowStepFunctionsParameters',
47             as 'Cfn::Value';
48              
49             coerce 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowStepFunctionsParameters',
50             from 'HashRef',
51             via {
52             if (my $f = Cfn::TypeLibrary::try_function($_)) {
53             return $f
54             } else {
55             return Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowStepFunctionsParametersValue->new( %$_ );
56             }
57             };
58              
59             package Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowStepFunctionsParametersValue {
60 1     1   3782 use Moose;
  1         5  
  1         7  
61 1     1   6923 use MooseX::StrictConstructor;
  1         3  
  1         9  
62             extends 'Cfn::Value::TypedValue';
63            
64             has Input => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66             }
67              
68             subtype 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowRunCommandParameters',
69             as 'Cfn::Value';
70              
71             coerce 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowRunCommandParameters',
72             from 'HashRef',
73             via {
74             if (my $f = Cfn::TypeLibrary::try_function($_)) {
75             return $f
76             } else {
77             return Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowRunCommandParametersValue->new( %$_ );
78             }
79             };
80              
81             package Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowRunCommandParametersValue {
82 1     1   3705 use Moose;
  1         3  
  1         7  
83 1     1   6992 use MooseX::StrictConstructor;
  1         2  
  1         6  
84             extends 'Cfn::Value::TypedValue';
85            
86             has Comment => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87             has DocumentHash => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88             has DocumentHashType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89             has NotificationConfig => (isa => 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::NotificationConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
90             has OutputS3BucketName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
91             has OutputS3KeyPrefix => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
92             has Parameters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
93             has ServiceRoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
94             has TimeoutSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
95             }
96              
97             subtype 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowLambdaParameters',
98             as 'Cfn::Value';
99              
100             coerce 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowLambdaParameters',
101             from 'HashRef',
102             via {
103             if (my $f = Cfn::TypeLibrary::try_function($_)) {
104             return $f
105             } else {
106             return Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowLambdaParametersValue->new( %$_ );
107             }
108             };
109              
110             package Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowLambdaParametersValue {
111 1     1   4098 use Moose;
  1         3  
  1         7  
112 1     1   7015 use MooseX::StrictConstructor;
  1         3  
  1         7  
113             extends 'Cfn::Value::TypedValue';
114            
115             has ClientContext => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
116             has Payload => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
117             has Qualifier => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
118             }
119              
120             subtype 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowAutomationParameters',
121             as 'Cfn::Value';
122              
123             coerce 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowAutomationParameters',
124             from 'HashRef',
125             via {
126             if (my $f = Cfn::TypeLibrary::try_function($_)) {
127             return $f
128             } else {
129             return Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowAutomationParametersValue->new( %$_ );
130             }
131             };
132              
133             package Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowAutomationParametersValue {
134 1     1   3676 use Moose;
  1         2  
  1         8  
135 1     1   7058 use MooseX::StrictConstructor;
  1         4  
  1         10  
136             extends 'Cfn::Value::TypedValue';
137            
138             has DocumentVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
139             has Parameters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
140             }
141              
142             subtype 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::TaskInvocationParameters',
143             as 'Cfn::Value';
144              
145             coerce 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::TaskInvocationParameters',
146             from 'HashRef',
147             via {
148             if (my $f = Cfn::TypeLibrary::try_function($_)) {
149             return $f
150             } else {
151             return Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::TaskInvocationParametersValue->new( %$_ );
152             }
153             };
154              
155             package Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::TaskInvocationParametersValue {
156 1     1   3623 use Moose;
  1         2  
  1         8  
157 1     1   7123 use MooseX::StrictConstructor;
  1         3  
  1         8  
158             extends 'Cfn::Value::TypedValue';
159            
160             has MaintenanceWindowAutomationParameters => (isa => 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowAutomationParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
161             has MaintenanceWindowLambdaParameters => (isa => 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowLambdaParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
162             has MaintenanceWindowRunCommandParameters => (isa => 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowRunCommandParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
163             has MaintenanceWindowStepFunctionsParameters => (isa => 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowStepFunctionsParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
164             }
165             subtype 'ArrayOfCfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::Target',
166             as 'Cfn::Value',
167             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
168             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
169              
170             coerce 'ArrayOfCfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::Target',
171             from 'HashRef',
172             via {
173             if (my $f = Cfn::TypeLibrary::try_function($_)) {
174             return $f
175             } else {
176             die 'Only accepts functions';
177             }
178             },
179             from 'ArrayRef',
180             via {
181             Cfn::Value::Array->new(Value => [
182             map {
183             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::Target')->coerce($_)
184             } @$_
185             ]);
186             };
187              
188             subtype 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::Target',
189             as 'Cfn::Value';
190              
191             coerce 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::Target',
192             from 'HashRef',
193             via {
194             if (my $f = Cfn::TypeLibrary::try_function($_)) {
195             return $f
196             } else {
197             return Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::TargetValue->new( %$_ );
198             }
199             };
200              
201             package Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::TargetValue {
202 1     1   3958 use Moose;
  1         2  
  1         9  
203 1     1   7308 use MooseX::StrictConstructor;
  1         3  
  1         10  
204             extends 'Cfn::Value::TypedValue';
205            
206             has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
207             has Values => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
208             }
209              
210             subtype 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::LoggingInfo',
211             as 'Cfn::Value';
212              
213             coerce 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::LoggingInfo',
214             from 'HashRef',
215             via {
216             if (my $f = Cfn::TypeLibrary::try_function($_)) {
217             return $f
218             } else {
219             return Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::LoggingInfoValue->new( %$_ );
220             }
221             };
222              
223             package Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::LoggingInfoValue {
224 1     1   3851 use Moose;
  1         3  
  1         7  
225 1     1   7224 use MooseX::StrictConstructor;
  1         3  
  1         8  
226             extends 'Cfn::Value::TypedValue';
227            
228             has Region => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
229             has S3Bucket => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
230             has S3Prefix => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
231             }
232              
233             package Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask {
234 1     1   3665 use Moose;
  1         3  
  1         7  
235 1     1   7133 use MooseX::StrictConstructor;
  1         3  
  1         10  
236             extends 'Cfn::Resource::Properties';
237            
238             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
239             has LoggingInfo => (isa => 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::LoggingInfo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
240             has MaxConcurrency => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
241             has MaxErrors => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
242             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
243             has Priority => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
244             has ServiceRoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
245             has Targets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::Target', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
246             has TaskArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
247             has TaskInvocationParameters => (isa => 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::TaskInvocationParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
248             has TaskParameters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
249             has TaskType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
250             has WindowId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
251             }
252              
253             1;