Cfn/Resource/AWS/AuditManager/Assessment.pm untested

filter: Statementstmt 0.0% 0 / 192 Branchbran 0.0% 0 / 18 Conditioncond 0.0% 0 / 9 MC/DCmcdc 0.0% 0 / 6 Subroutinesub 0.0% 0 / 18 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 245 CC 1 SCAR 6.9
CC
1
Cov
0%
AttributeList
2.0
supported_regions
2.0
BEGIN
2.0
CRAP 2.0
1 # AWS::AuditManager::Assessment generated from spec 34.0.0
2 use Moose::Util::TypeConstraints;
3  
4 coerce 'Cfn::Resource::Properties::AWS::AuditManager::Assessment',
5 from 'HashRef',
6 via { Cfn::Resource::Properties::AWS::AuditManager::Assessment->new( %$_ ) };
7  
8 package Cfn::Resource::AWS::AuditManager::Assessment {
9 use Moose;
10 extends 'Cfn::Resource';
11 has Properties => (isa => 'Cfn::Resource::Properties::AWS::AuditManager::Assessment', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 [ 'Arn','AssessmentId','CreationTime','Delegations','FrameworkId' ]
15 }
16 sub supported_regions {
17 [ 'ap-northeast-1','ap-southeast-1','ap-southeast-2','eu-central-1','eu-west-1','eu-west-2','us-east-1','us-east-2','us-west-1','us-west-2' ]
18 }
19 }
20  
21  
22 subtype 'ArrayOfCfn::Resource::Properties::AWS::AuditManager::Assessment::AWSService',
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::AuditManager::Assessment::AWSService',
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::AuditManager::Assessment::AWSService')->coerce($_)
41 } @$_
42 ]);
43 };
44  
45 subtype 'Cfn::Resource::Properties::AWS::AuditManager::Assessment::AWSService',
46 as 'Cfn::Value';
47  
48 coerce 'Cfn::Resource::Properties::AWS::AuditManager::Assessment::AWSService',
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::AuditManager::Assessment::AWSService->new( %$_ );
55 }
56 };
57  
58 package Cfn::Resource::Properties::Object::AWS::AuditManager::Assessment::AWSService {
59 use Moose;
60 use MooseX::StrictConstructor;
61 extends 'Cfn::Value::TypedValue';
62
63 has ServiceName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64 }
65 subtype 'ArrayOfCfn::Resource::Properties::AWS::AuditManager::Assessment::AWSAccount',
66 as 'Cfn::Value',
67 where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
68 message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
69  
70 coerce 'ArrayOfCfn::Resource::Properties::AWS::AuditManager::Assessment::AWSAccount',
71 from 'HashRef',
72 via {
73 if (my $f = Cfn::TypeLibrary::try_function($_)) {
74 return $f
75 } else {
76 die 'Only accepts functions';
77 }
78 },
79 from 'ArrayRef',
80 via {
81 Cfn::Value::Array->new(Value => [
82 map {
83 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AuditManager::Assessment::AWSAccount')->coerce($_)
84 } @$_
85 ]);
86 };
87  
88 subtype 'Cfn::Resource::Properties::AWS::AuditManager::Assessment::AWSAccount',
89 as 'Cfn::Value';
90  
91 coerce 'Cfn::Resource::Properties::AWS::AuditManager::Assessment::AWSAccount',
92 from 'HashRef',
93 via {
94 if (my $f = Cfn::TypeLibrary::try_function($_)) {
95 return $f
96 } else {
97 return Cfn::Resource::Properties::Object::AWS::AuditManager::Assessment::AWSAccount->new( %$_ );
98 }
99 };
100  
101 package Cfn::Resource::Properties::Object::AWS::AuditManager::Assessment::AWSAccount {
102 use Moose;
103 use MooseX::StrictConstructor;
104 extends 'Cfn::Value::TypedValue';
105
106 has EmailAddress => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
107 has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
108 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
109 }
110  
111 subtype 'Cfn::Resource::Properties::AWS::AuditManager::Assessment::Scope',
112 as 'Cfn::Value';
113  
114 coerce 'Cfn::Resource::Properties::AWS::AuditManager::Assessment::Scope',
115 from 'HashRef',
116 via {
117 if (my $f = Cfn::TypeLibrary::try_function($_)) {
118 return $f
119 } else {
120 return Cfn::Resource::Properties::Object::AWS::AuditManager::Assessment::Scope->new( %$_ );
121 }
122 };
123  
124 package Cfn::Resource::Properties::Object::AWS::AuditManager::Assessment::Scope {
125 use Moose;
126 use MooseX::StrictConstructor;
127 extends 'Cfn::Value::TypedValue';
128
129 has AwsAccounts => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AuditManager::Assessment::AWSAccount', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
130 has AwsServices => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AuditManager::Assessment::AWSService', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
131 }
132 subtype 'ArrayOfCfn::Resource::Properties::AWS::AuditManager::Assessment::Role',
133 as 'Cfn::Value',
134 where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
135 message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
136  
137 coerce 'ArrayOfCfn::Resource::Properties::AWS::AuditManager::Assessment::Role',
138 from 'HashRef',
139 via {
140 if (my $f = Cfn::TypeLibrary::try_function($_)) {
141 return $f
142 } else {
143 die 'Only accepts functions';
144 }
145 },
146 from 'ArrayRef',
147 via {
148 Cfn::Value::Array->new(Value => [
149 map {
150 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AuditManager::Assessment::Role')->coerce($_)
151 } @$_
152 ]);
153 };
154  
155 subtype 'Cfn::Resource::Properties::AWS::AuditManager::Assessment::Role',
156 as 'Cfn::Value';
157  
158 coerce 'Cfn::Resource::Properties::AWS::AuditManager::Assessment::Role',
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::AuditManager::Assessment::Role->new( %$_ );
165 }
166 };
167  
168 package Cfn::Resource::Properties::Object::AWS::AuditManager::Assessment::Role {
169 use Moose;
170 use MooseX::StrictConstructor;
171 extends 'Cfn::Value::TypedValue';
172
173 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
174 has RoleType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
175 }
176  
177 subtype 'Cfn::Resource::Properties::AWS::AuditManager::Assessment::Delegation',
178 as 'Cfn::Value';
179  
180 coerce 'Cfn::Resource::Properties::AWS::AuditManager::Assessment::Delegation',
181 from 'HashRef',
182 via {
183 if (my $f = Cfn::TypeLibrary::try_function($_)) {
184 return $f
185 } else {
186 return Cfn::Resource::Properties::Object::AWS::AuditManager::Assessment::Delegation->new( %$_ );
187 }
188 };
189  
190 package Cfn::Resource::Properties::Object::AWS::AuditManager::Assessment::Delegation {
191 use Moose;
192 use MooseX::StrictConstructor;
193 extends 'Cfn::Value::TypedValue';
194
195 has AssessmentId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
196 has AssessmentName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
197 has Comment => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
198 has ControlSetId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
199 has CreatedBy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
200 has CreationTime => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
201 has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
202 has LastUpdated => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
203 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
204 has RoleType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
205 has Status => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
206 }
207  
208 subtype 'Cfn::Resource::Properties::AWS::AuditManager::Assessment::AssessmentReportsDestination',
209 as 'Cfn::Value';
210  
211 coerce 'Cfn::Resource::Properties::AWS::AuditManager::Assessment::AssessmentReportsDestination',
212 from 'HashRef',
213 via {
214 if (my $f = Cfn::TypeLibrary::try_function($_)) {
215 return $f
216 } else {
217 return Cfn::Resource::Properties::Object::AWS::AuditManager::Assessment::AssessmentReportsDestination->new( %$_ );
218 }
219 };
220  
221 package Cfn::Resource::Properties::Object::AWS::AuditManager::Assessment::AssessmentReportsDestination {
222 use Moose;
223 use MooseX::StrictConstructor;
224 extends 'Cfn::Value::TypedValue';
225
226 has Destination => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
227 has DestinationType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
228 }
229  
230 package Cfn::Resource::Properties::AWS::AuditManager::Assessment {
231 use Moose;
232 use MooseX::StrictConstructor;
233 extends 'Cfn::Resource::Properties';
234
235 has AssessmentReportsDestination => (isa => 'Cfn::Resource::Properties::AWS::AuditManager::Assessment::AssessmentReportsDestination', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
236 has AwsAccount => (isa => 'Cfn::Resource::Properties::AWS::AuditManager::Assessment::AWSAccount', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
237 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
238 has FrameworkId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
239 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
240 has Roles => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AuditManager::Assessment::Role', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
241 has Scope => (isa => 'Cfn::Resource::Properties::AWS::AuditManager::Assessment::Scope', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
242 has Status => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
243 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
244 }
245  
246 1;
247 ### main pod documentation begin ###
248  
249 =encoding UTF-8
250  
251 =head1 NAME
252  
253 Cfn::Resource::AWS::AuditManager::Assessment - Cfn resource for AWS::AuditManager::Assessment
254  
255 =head1 DESCRIPTION
256  
257 This module implements a Perl module that represents the CloudFormation object AWS::AuditManager::Assessment.
258  
259 See L<Cfn> for more information on how to use it.
260  
261 =head1 AUTHOR
262  
263 Jose Luis Martinez
264 CAPSiDE
265 jlmartinez@capside.com
266  
267 =head1 COPYRIGHT and LICENSE
268  
269 Copyright (c) 2013 by CAPSiDE
270 This code is distributed under the Apache 2 License. The full text of the
271 license can be found in the LICENSE file included with this module.
272  
273 =cut