Cfn/Resource/AWS/StepFunctions/StateMachine.pm

filter: Statementstmt 76.8% 116 / 151 Branchbran 0.0% 0 / 22 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 58.3% 21 / 36 Podpod 0.0% 0 / 2 totaltotal 64.9% 137 / 211 CC 12 SCAR 12.2
CC
12
Cov
67%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.4
« Cfn/Resource/AWS/Greengrass/FunctionDefinitionVersion.pm ↑ Summary Cfn/Resource/AWS/Greengrass/FunctionDefinition.pm »
1 # AWS::StepFunctions::StateMachine generated from spec 20.1.0
2 2 ▶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 2 package Cfn::Resource::AWS::StepFunctions::StateMachine {
9 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 2 extends 'Cfn::Resource';
11 2 has Properties => (isa => 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ 'Arn','Name' ]
Subroutine AttributeList: called CC=1 SCAR=0.0
Pod undocumented
15 }
16 sub supported_regions {
17 1 ▶ [ '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' ]
Subroutine supported_regions: called CC=1 SCAR=0.0
Pod undocumented
18 }
19 }
20  
21  
22  
23 2 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 via {
29 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
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 2 };
35  
36 2 package Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::CloudWatchLogsLogGroup {
37 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 2 extends 'Cfn::Value::TypedValue';
40
41 2 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 via {
51 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
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 via {
59 Cfn::Value::Array->new(Value => [
60 map {
61 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::LogDestination')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
62 } @$_
63 ]);
64 2 };
65  
66 2 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 via {
72 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
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 2 };
78  
79 2 package Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::LogDestination {
80 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
81 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
82 2 extends 'Cfn::Value::TypedValue';
83
84 2 has CloudWatchLogsLogGroup => (isa => 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::CloudWatchLogsLogGroup', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85 }
86  
87 2 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 via {
93 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
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 2 };
99  
100 2 package Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::TracingConfiguration {
101 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
102 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
103 2 extends 'Cfn::Value::TypedValue';
104
105 2 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 via {
115 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
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 via {
123 Cfn::Value::Array->new(Value => [
124 map {
125 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::TagsEntry')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
126 } @$_
127 ]);
128 2 };
129  
130 2 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 via {
136 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
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 2 };
142  
143 2 package Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::TagsEntry {
144 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
145 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
146 2 extends 'Cfn::Value::TypedValue';
147
148 2 has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
149 2 has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
150 }
151  
152 2 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 via {
158 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
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 2 };
164  
165 2 package Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::S3Location {
166 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
167 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
168 2 extends 'Cfn::Value::TypedValue';
169
170 2 has Bucket => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
171 2 has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
172 2 has Version => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
173 }
174  
175 2 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 via {
181 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
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 2 };
187  
188 2 package Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::LoggingConfiguration {
189 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
190 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
191 2 extends 'Cfn::Value::TypedValue';
192
193 2 has Destinations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::StepFunctions::StateMachine::LogDestination', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
194 2 has IncludeExecutionData => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
195 2 has Level => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
196 }
197  
198 2 subtype 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::DefinitionSubstitutions',
199 as 'Cfn::Value';
200  
201 coerce 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::DefinitionSubstitutions',
202 from 'HashRef',
203 via {
204 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
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::DefinitionSubstitutions->new( %$_ );
208 }
209 2 };
210  
211 2 package Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::DefinitionSubstitutions {
212 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
213 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
214 2 extends 'Cfn::Value::TypedValue';
215
216 }
217  
218 2 package Cfn::Resource::Properties::AWS::StepFunctions::StateMachine {
219 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
220 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
221 2 extends 'Cfn::Resource::Properties';
222
223 2 has DefinitionS3Location => (isa => 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::S3Location', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
224 2 has DefinitionString => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
225 2 has DefinitionSubstitutions => (isa => 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::DefinitionSubstitutions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
226 2 has LoggingConfiguration => (isa => 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::LoggingConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
227 2 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
228 2 has StateMachineName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
229 2 has StateMachineType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
230 2 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::AWS::StepFunctions::StateMachine::TagsEntry', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
231 2 has TracingConfiguration => (isa => 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::TracingConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
232 }
233  
234 2 1;
235 ### main pod documentation begin ###
236  
237 =encoding UTF-8
238  
239 =head1 NAME
240  
241 Cfn::Resource::AWS::StepFunctions::StateMachine - Cfn resource for AWS::StepFunctions::StateMachine
242  
243 =head1 DESCRIPTION
244  
245 This module implements a Perl module that represents the CloudFormation object AWS::StepFunctions::StateMachine.
246  
247 See L<Cfn> for more information on how to use it.
248  
249 =head1 AUTHOR
250  
251 Jose Luis Martinez
252 CAPSiDE
253 jlmartinez@capside.com
254  
255 =head1 COPYRIGHT and LICENSE
256  
257 Copyright (c) 2013 by CAPSiDE
258 This code is distributed under the Apache 2 License. The full text of the
259 license can be found in the LICENSE file included with this module.
260  
261 =cut
« Cfn/Resource/AWS/Greengrass/FunctionDefinitionVersion.pm ↑ Summary Cfn/Resource/AWS/Greengrass/FunctionDefinition.pm »