Cfn/Resource/AWS/StepFunctions/StateMachine.pm

filter: Statementstmt 75.6% 115 / 152 Branchbran 0.0% 0 / 22 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 52.7% 19 / 36 Podpod 0.0% 0 / 2 totaltotal 63.2% 134 / 212 CC 12 SCAR 12.3
CC
12
Cov
66%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.4
« Cfn/Resource/AWS/ECS/Cluster.pm ↑ Summary Cfn/Resource/AWS/AutoScaling/ScalingPolicy.pm »
1 # AWS::StepFunctions::StateMachine generated from spec 34.0.0
2 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine',
5 from 'HashRef',
6 2 ▶ via { Cfn::Resource::Properties::AWS::StepFunctions::StateMachine->new( %$_ ) };
Subroutine __ANON__: called CC=1 SCAR=0.0
7  
8 1 package Cfn::Resource::AWS::StepFunctions::StateMachine {
9 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 extends 'Cfn::Resource';
11 1 has Properties => (isa => 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine', is => 'rw', coerce => 1);
12
13 0 ▶ sub AttributeList {
Subroutine AttributeList: not called CC=1 SCAR=6.9
Pod undocumented
14 0 [ 'Arn','Name' ]
15 }
16 0 ▶ sub supported_regions {
Subroutine supported_regions: not called CC=1 SCAR=6.9
Pod undocumented
17 0 [ 'af-south-1','ap-east-1','ap-northeast-1','ap-northeast-2','ap-northeast-3','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-south-1','eu-west-1','eu-west-2','eu-west-3','me-south-1','sa-east-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 1 subtype 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::CloudWatchLogsLogGroup',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::CloudWatchLogsLogGroup',
27 from 'HashRef',
28 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
29 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
30 0 return $f
31 } else {
32 0 return Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::CloudWatchLogsLogGroup->new( %$_ );
33 }
34 1 };
35  
36 1 package Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::CloudWatchLogsLogGroup {
37 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 1 extends 'Cfn::Value::TypedValue';
40
41 1 has LogGroupArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 }
43 subtype 'ArrayOfCfn::Resource::Properties::AWS::StepFunctions::StateMachine::LogDestination',
44 as 'Cfn::Value',
45 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
46 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
47  
48 coerce 'ArrayOfCfn::Resource::Properties::AWS::StepFunctions::StateMachine::LogDestination',
49 from 'HashRef',
50 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
51 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
52 0 return $f
53 } else {
54 0 die 'Only accepts functions';
55 }
56 },
57 from 'ArrayRef',
58 0 ▶ via {
Subroutine __ANON__: not called CC=1 SCAR=6.9
59 Cfn::Value::Array->new(Value => [
60 map {
61 0 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::LogDestination')->coerce($_)
62 } @$_
63 ]);
64 1 };
65  
66 1 subtype 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::LogDestination',
67 as 'Cfn::Value';
68  
69 coerce 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::LogDestination',
70 from 'HashRef',
71 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
72 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
73 0 return $f
74 } else {
75 0 return Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::LogDestination->new( %$_ );
76 }
77 1 };
78  
79 1 package Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::LogDestination {
80 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
81 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
82 1 extends 'Cfn::Value::TypedValue';
83
84 1 has CloudWatchLogsLogGroup => (isa => 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::CloudWatchLogsLogGroup', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85 }
86  
87 1 subtype 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::TracingConfiguration',
88 as 'Cfn::Value';
89  
90 coerce 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::TracingConfiguration',
91 from 'HashRef',
92 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
93 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
94 0 return $f
95 } else {
96 0 return Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::TracingConfiguration->new( %$_ );
97 }
98 1 };
99  
100 1 package Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::TracingConfiguration {
101 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
102 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
103 1 extends 'Cfn::Value::TypedValue';
104
105 1 has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
106 }
107 subtype 'ArrayOfCfn::Resource::Properties::AWS::StepFunctions::StateMachine::TagsEntry',
108 as 'Cfn::Value',
109 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
110 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
111  
112 coerce 'ArrayOfCfn::Resource::Properties::AWS::StepFunctions::StateMachine::TagsEntry',
113 from 'HashRef',
114 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
115 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
116 0 return $f
117 } else {
118 0 die 'Only accepts functions';
119 }
120 },
121 from 'ArrayRef',
122 0 ▶ via {
Subroutine __ANON__: not called CC=1 SCAR=6.9
123 Cfn::Value::Array->new(Value => [
124 map {
125 0 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::TagsEntry')->coerce($_)
126 } @$_
127 ]);
128 1 };
129  
130 1 subtype 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::TagsEntry',
131 as 'Cfn::Value';
132  
133 coerce 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::TagsEntry',
134 from 'HashRef',
135 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
136 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
137 0 return $f
138 } else {
139 0 return Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::TagsEntry->new( %$_ );
140 }
141 1 };
142  
143 1 package Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::TagsEntry {
144 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
145 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
146 1 extends 'Cfn::Value::TypedValue';
147
148 1 has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
149 1 has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
150 }
151  
152 1 subtype 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::S3Location',
153 as 'Cfn::Value';
154  
155 coerce 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::S3Location',
156 from 'HashRef',
157 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
158 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
159 0 return $f
160 } else {
161 0 return Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::S3Location->new( %$_ );
162 }
163 1 };
164  
165 1 package Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::S3Location {
166 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
167 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
168 1 extends 'Cfn::Value::TypedValue';
169
170 1 has Bucket => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
171 1 has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
172 1 has Version => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
173 }
174  
175 1 subtype 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::LoggingConfiguration',
176 as 'Cfn::Value';
177  
178 coerce 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::LoggingConfiguration',
179 from 'HashRef',
180 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
181 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
182 0 return $f
183 } else {
184 0 return Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::LoggingConfiguration->new( %$_ );
185 }
186 1 };
187  
188 1 package Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::LoggingConfiguration {
189 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
190 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
191 1 extends 'Cfn::Value::TypedValue';
192
193 1 has Destinations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::StepFunctions::StateMachine::LogDestination', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
194 1 has IncludeExecutionData => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
195 1 has Level => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
196 }
197  
198 1 subtype 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::Definition',
199 as 'Cfn::Value';
200  
201 coerce 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::Definition',
202 from 'HashRef',
203 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
204 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
205 0 return $f
206 } else {
207 0 return Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::Definition->new( %$_ );
208 }
209 1 };
210  
211 1 package Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::Definition {
212 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
213 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
214 1 extends 'Cfn::Value::TypedValue';
215
216 }
217  
218 1 package Cfn::Resource::Properties::AWS::StepFunctions::StateMachine {
219 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
220 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
221 1 extends 'Cfn::Resource::Properties';
222
223 1 has Definition => (isa => 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::Definition', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
224 1 has DefinitionS3Location => (isa => 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::S3Location', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
225 1 has DefinitionString => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
226 1 has DefinitionSubstitutions => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
227 1 has LoggingConfiguration => (isa => 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::LoggingConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
228 1 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
229 1 has StateMachineName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
230 1 has StateMachineType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
231 1 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::AWS::StepFunctions::StateMachine::TagsEntry', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
232 1 has TracingConfiguration => (isa => 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::TracingConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
233 }
234  
235 1 1;
236 ### main pod documentation begin ###
237  
238 =encoding UTF-8
239  
240 =head1 NAME
241  
242 Cfn::Resource::AWS::StepFunctions::StateMachine - Cfn resource for AWS::StepFunctions::StateMachine
243  
244 =head1 DESCRIPTION
245  
246 This module implements a Perl module that represents the CloudFormation object AWS::StepFunctions::StateMachine.
247  
248 See L<Cfn> for more information on how to use it.
249  
250 =head1 AUTHOR
251  
252 Jose Luis Martinez
253 CAPSiDE
254 jlmartinez@capside.com
255  
256 =head1 COPYRIGHT and LICENSE
257  
258 Copyright (c) 2013 by CAPSiDE
259 This code is distributed under the Apache 2 License. The full text of the
260 license can be found in the LICENSE file included with this module.
261  
262 =cut
« Cfn/Resource/AWS/ECS/Cluster.pm ↑ Summary Cfn/Resource/AWS/AutoScaling/ScalingPolicy.pm »