Cfn/Resource/AWS/IoT/SecurityProfile.pm untested

filter: Statementstmt 0.0% 0 / 224 Branchbran 0.0% 0 / 22 Conditioncond 0.0% 0 / 9 MC/DCmcdc 0.0% 0 / 6 Subroutinesub 0.0% 0 / 22 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 285 CC 1 SCAR 6.9
CC
1
Cov
0%
AttributeList
2.0
supported_regions
2.0
BEGIN
2.0
CRAP 2.0
1 # AWS::IoT::SecurityProfile generated from spec 34.0.0
2 use Moose::Util::TypeConstraints;
3  
4 coerce 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile',
5 from 'HashRef',
6 via { Cfn::Resource::Properties::AWS::IoT::SecurityProfile->new( %$_ ) };
7  
8 package Cfn::Resource::AWS::IoT::SecurityProfile {
9 use Moose;
10 extends 'Cfn::Resource';
11 has Properties => (isa => 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 [ 'SecurityProfileArn' ]
15 }
16 sub supported_regions {
17 [ 'ap-east-1','ap-northeast-1','ap-northeast-2','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','us-east-1','us-east-2','us-gov-east-1','us-gov-west-1','us-west-1','us-west-2' ]
18 }
19 }
20  
21  
22  
23 subtype 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile::StatisticalThreshold',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile::StatisticalThreshold',
27 from 'HashRef',
28 via {
29 if (my $f = Cfn::TypeLibrary::try_function($_)) {
30 return $f
31 } else {
32 return Cfn::Resource::Properties::Object::AWS::IoT::SecurityProfile::StatisticalThreshold->new( %$_ );
33 }
34 };
35  
36 package Cfn::Resource::Properties::Object::AWS::IoT::SecurityProfile::StatisticalThreshold {
37 use Moose;
38 use MooseX::StrictConstructor;
39 extends 'Cfn::Value::TypedValue';
40
41 has Statistic => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 }
43  
44 subtype 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile::MetricValue',
45 as 'Cfn::Value';
46  
47 coerce 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile::MetricValue',
48 from 'HashRef',
49 via {
50 if (my $f = Cfn::TypeLibrary::try_function($_)) {
51 return $f
52 } else {
53 return Cfn::Resource::Properties::Object::AWS::IoT::SecurityProfile::MetricValue->new( %$_ );
54 }
55 };
56  
57 package Cfn::Resource::Properties::Object::AWS::IoT::SecurityProfile::MetricValue {
58 use Moose;
59 use MooseX::StrictConstructor;
60 extends 'Cfn::Value::TypedValue';
61
62 has Cidrs => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
63 has Count => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64 has Number => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65 has Numbers => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66 has Ports => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
67 has Strings => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
68 }
69  
70 subtype 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile::MachineLearningDetectionConfig',
71 as 'Cfn::Value';
72  
73 coerce 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile::MachineLearningDetectionConfig',
74 from 'HashRef',
75 via {
76 if (my $f = Cfn::TypeLibrary::try_function($_)) {
77 return $f
78 } else {
79 return Cfn::Resource::Properties::Object::AWS::IoT::SecurityProfile::MachineLearningDetectionConfig->new( %$_ );
80 }
81 };
82  
83 package Cfn::Resource::Properties::Object::AWS::IoT::SecurityProfile::MachineLearningDetectionConfig {
84 use Moose;
85 use MooseX::StrictConstructor;
86 extends 'Cfn::Value::TypedValue';
87
88 has ConfidenceLevel => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89 }
90  
91 subtype 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile::MetricDimension',
92 as 'Cfn::Value';
93  
94 coerce 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile::MetricDimension',
95 from 'HashRef',
96 via {
97 if (my $f = Cfn::TypeLibrary::try_function($_)) {
98 return $f
99 } else {
100 return Cfn::Resource::Properties::Object::AWS::IoT::SecurityProfile::MetricDimension->new( %$_ );
101 }
102 };
103  
104 package Cfn::Resource::Properties::Object::AWS::IoT::SecurityProfile::MetricDimension {
105 use Moose;
106 use MooseX::StrictConstructor;
107 extends 'Cfn::Value::TypedValue';
108
109 has DimensionName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
110 has Operator => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111 }
112  
113 subtype 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile::BehaviorCriteria',
114 as 'Cfn::Value';
115  
116 coerce 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile::BehaviorCriteria',
117 from 'HashRef',
118 via {
119 if (my $f = Cfn::TypeLibrary::try_function($_)) {
120 return $f
121 } else {
122 return Cfn::Resource::Properties::Object::AWS::IoT::SecurityProfile::BehaviorCriteria->new( %$_ );
123 }
124 };
125  
126 package Cfn::Resource::Properties::Object::AWS::IoT::SecurityProfile::BehaviorCriteria {
127 use Moose;
128 use MooseX::StrictConstructor;
129 extends 'Cfn::Value::TypedValue';
130
131 has ComparisonOperator => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
132 has ConsecutiveDatapointsToAlarm => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
133 has ConsecutiveDatapointsToClear => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
134 has DurationSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
135 has MlDetectionConfig => (isa => 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile::MachineLearningDetectionConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
136 has StatisticalThreshold => (isa => 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile::StatisticalThreshold', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
137 has Value => (isa => 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile::MetricValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
138 }
139 subtype 'ArrayOfCfn::Resource::Properties::AWS::IoT::SecurityProfile::MetricToRetain',
140 as 'Cfn::Value',
141 where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
142 message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
143  
144 coerce 'ArrayOfCfn::Resource::Properties::AWS::IoT::SecurityProfile::MetricToRetain',
145 from 'HashRef',
146 via {
147 if (my $f = Cfn::TypeLibrary::try_function($_)) {
148 return $f
149 } else {
150 die 'Only accepts functions';
151 }
152 },
153 from 'ArrayRef',
154 via {
155 Cfn::Value::Array->new(Value => [
156 map {
157 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::IoT::SecurityProfile::MetricToRetain')->coerce($_)
158 } @$_
159 ]);
160 };
161  
162 subtype 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile::MetricToRetain',
163 as 'Cfn::Value';
164  
165 coerce 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile::MetricToRetain',
166 from 'HashRef',
167 via {
168 if (my $f = Cfn::TypeLibrary::try_function($_)) {
169 return $f
170 } else {
171 return Cfn::Resource::Properties::Object::AWS::IoT::SecurityProfile::MetricToRetain->new( %$_ );
172 }
173 };
174  
175 package Cfn::Resource::Properties::Object::AWS::IoT::SecurityProfile::MetricToRetain {
176 use Moose;
177 use MooseX::StrictConstructor;
178 extends 'Cfn::Value::TypedValue';
179
180 has Metric => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
181 has MetricDimension => (isa => 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile::MetricDimension', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
182 }
183 subtype 'ArrayOfCfn::Resource::Properties::AWS::IoT::SecurityProfile::Behavior',
184 as 'Cfn::Value',
185 where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
186 message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
187  
188 coerce 'ArrayOfCfn::Resource::Properties::AWS::IoT::SecurityProfile::Behavior',
189 from 'HashRef',
190 via {
191 if (my $f = Cfn::TypeLibrary::try_function($_)) {
192 return $f
193 } else {
194 die 'Only accepts functions';
195 }
196 },
197 from 'ArrayRef',
198 via {
199 Cfn::Value::Array->new(Value => [
200 map {
201 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::IoT::SecurityProfile::Behavior')->coerce($_)
202 } @$_
203 ]);
204 };
205  
206 subtype 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile::Behavior',
207 as 'Cfn::Value';
208  
209 coerce 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile::Behavior',
210 from 'HashRef',
211 via {
212 if (my $f = Cfn::TypeLibrary::try_function($_)) {
213 return $f
214 } else {
215 return Cfn::Resource::Properties::Object::AWS::IoT::SecurityProfile::Behavior->new( %$_ );
216 }
217 };
218  
219 package Cfn::Resource::Properties::Object::AWS::IoT::SecurityProfile::Behavior {
220 use Moose;
221 use MooseX::StrictConstructor;
222 extends 'Cfn::Value::TypedValue';
223
224 has Criteria => (isa => 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile::BehaviorCriteria', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
225 has Metric => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
226 has MetricDimension => (isa => 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile::MetricDimension', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
227 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
228 has SuppressAlerts => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
229 }
230  
231 subtype 'MapOfCfn::Resource::Properties::AWS::IoT::SecurityProfile::AlertTarget',
232 as 'Cfn::Value',
233 where { $_->isa('Cfn::Value::Hash') or $_->isa('Cfn::Value::Function') },
234 message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
235  
236 coerce 'MapOfCfn::Resource::Properties::AWS::IoT::SecurityProfile::AlertTarget',
237 from 'HashRef',
238 via {
239 my $arg = $_;
240 if (my $f = Cfn::TypeLibrary::try_function($arg)) {
241 return $f
242 } else {
243 Cfn::Value::Hash->new(Value => {
244 map { $_ => Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::IoT::SecurityProfile::AlertTarget')->coerce($arg->{$_}) } keys %$arg
245 });
246 }
247 };
248  
249 subtype 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile::AlertTarget',
250 as 'Cfn::Value';
251  
252 coerce 'Cfn::Resource::Properties::AWS::IoT::SecurityProfile::AlertTarget',
253 from 'HashRef',
254 via {
255 if (my $f = Cfn::TypeLibrary::try_function($_)) {
256 return $f
257 } else {
258 return Cfn::Resource::Properties::Object::AWS::IoT::SecurityProfile::AlertTarget->new( %$_ );
259 }
260 };
261  
262 package Cfn::Resource::Properties::Object::AWS::IoT::SecurityProfile::AlertTarget {
263 use Moose;
264 use MooseX::StrictConstructor;
265 extends 'Cfn::Value::TypedValue';
266
267 has AlertTargetArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
268 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
269 }
270  
271 package Cfn::Resource::Properties::AWS::IoT::SecurityProfile {
272 use Moose;
273 use MooseX::StrictConstructor;
274 extends 'Cfn::Resource::Properties';
275
276 has AdditionalMetricsToRetainV2 => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoT::SecurityProfile::MetricToRetain', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
277 has AlertTargets => (isa => 'MapOfCfn::Resource::Properties::AWS::IoT::SecurityProfile::AlertTarget', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
278 has Behaviors => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoT::SecurityProfile::Behavior', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
279 has SecurityProfileDescription => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
280 has SecurityProfileName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
281 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
282 has TargetArns => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
283 }
284  
285 1;
286 ### main pod documentation begin ###
287  
288 =encoding UTF-8
289  
290 =head1 NAME
291  
292 Cfn::Resource::AWS::IoT::SecurityProfile - Cfn resource for AWS::IoT::SecurityProfile
293  
294 =head1 DESCRIPTION
295  
296 This module implements a Perl module that represents the CloudFormation object AWS::IoT::SecurityProfile.
297  
298 See L<Cfn> for more information on how to use it.
299  
300 =head1 AUTHOR
301  
302 Jose Luis Martinez
303 CAPSiDE
304 jlmartinez@capside.com
305  
306 =head1 COPYRIGHT and LICENSE
307  
308 Copyright (c) 2013 by CAPSiDE
309 This code is distributed under the Apache 2 License. The full text of the
310 license can be found in the LICENSE file included with this module.
311  
312 =cut