Cfn/Resource/AWS/StepFunctions/StateMachine.pm

filter: Statementstmt 75.2% 79 / 105 Branchbran 0.0% 0 / 16 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 55.5% 15 / 27 Podpod 0.0% 0 / 2 totaltotal 62.6% 94 / 150 SCAR 25.2
CC
9
Cov
65%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 12.4
« Cfn/Resource/AWS/Backup/BackupPlan.pm ↑ Summary Cfn/Resource/AWS/OpsWorks/Stack.pm »
1 # AWS::StepFunctions::StateMachine generated from spec 10.0.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 ▶ [ 'Name' ]
Subroutine AttributeList: called CC=1 SCAR=0.0
Pod undocumented
15 }
16 sub supported_regions {
17 1 ▶ [ 'ap-northeast-1','eu-central-1','eu-west-1','us-east-1','us-east-2','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::AWS::StepFunctions::StateMachine::CloudWatchLogsLogGroupValue->new( %$_ );
33 }
34 2 };
35  
36 2 package Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::CloudWatchLogsLogGroupValue {
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, required => 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::AWS::StepFunctions::StateMachine::LogDestinationValue->new( %$_ );
76 }
77 2 };
78  
79 2 package Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::LogDestinationValue {
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 subtype 'ArrayOfCfn::Resource::Properties::AWS::StepFunctions::StateMachine::TagsEntry',
87 as 'Cfn::Value',
88 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
89 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
90  
91 coerce 'ArrayOfCfn::Resource::Properties::AWS::StepFunctions::StateMachine::TagsEntry',
92 from 'HashRef',
93 via {
94 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
95 0 return $f
96 } else {
97 0 die 'Only accepts functions';
98 }
99 },
100 from 'ArrayRef',
101 via {
102 Cfn::Value::Array->new(Value => [
103 map {
104 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::TagsEntry')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
105 } @$_
106 ]);
107 2 };
108  
109 2 subtype 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::TagsEntry',
110 as 'Cfn::Value';
111  
112 coerce 'Cfn::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 return Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::TagsEntryValue->new( %$_ );
119 }
120 2 };
121  
122 2 package Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::TagsEntryValue {
123 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
124 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
125 2 extends 'Cfn::Value::TypedValue';
126
127 2 has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
128 2 has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
129 }
130  
131 2 subtype 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::LoggingConfiguration',
132 as 'Cfn::Value';
133  
134 coerce 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::LoggingConfiguration',
135 from 'HashRef',
136 via {
137 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
138 0 return $f
139 } else {
140 0 return Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::LoggingConfigurationValue->new( %$_ );
141 }
142 2 };
143  
144 2 package Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::LoggingConfigurationValue {
145 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
146 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
147 2 extends 'Cfn::Value::TypedValue';
148
149 2 has Destinations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::StepFunctions::StateMachine::LogDestination', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
150 2 has IncludeExecutionData => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
151 2 has Level => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
152 }
153  
154 2 package Cfn::Resource::Properties::AWS::StepFunctions::StateMachine {
155 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
156 2 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
157 2 extends 'Cfn::Resource::Properties';
158
159 2 has DefinitionString => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
160 2 has LoggingConfiguration => (isa => 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::LoggingConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
161 2 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
162 2 has StateMachineName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
163 2 has StateMachineType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
164 2 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::AWS::StepFunctions::StateMachine::TagsEntry', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
165 }
166  
167 2 1;
« Cfn/Resource/AWS/Backup/BackupPlan.pm ↑ Summary Cfn/Resource/AWS/OpsWorks/Stack.pm »