File Coverage

blib/lib/Cfn/Resource/AWS/StepFunctions/StateMachine.pm
Criterion Covered Total %
statement 56 56 100.0
branch n/a
condition n/a
subroutine 20 20 100.0
pod 0 2 0.0
total 76 78 97.4


line stmt bran cond sub pod time code
1             # AWS::StepFunctions::StateMachine generated from spec 20.1.0
2 2     2   1505 use Moose::Util::TypeConstraints;
  2         6  
  2         22  
3              
4             coerce 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::StepFunctions::StateMachine->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::StepFunctions::StateMachine {
9 2     2   4434 use Moose;
  2         4  
  2         16  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 6 [ 'Arn','Name' ]
15             }
16             sub supported_regions {
17 1     1 0 1128 [ '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             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::CloudWatchLogsLogGroup->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::CloudWatchLogsLogGroup {
37 2     2   15250 use Moose;
  2         8  
  2         13  
38 2     2   13365 use MooseX::StrictConstructor;
  2         6  
  2         22  
39             extends 'Cfn::Value::TypedValue';
40            
41             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             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
46             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
47              
48             coerce 'ArrayOfCfn::Resource::Properties::AWS::StepFunctions::StateMachine::LogDestination',
49             from 'HashRef',
50             via {
51             if (my $f = Cfn::TypeLibrary::try_function($_)) {
52             return $f
53             } else {
54             die 'Only accepts functions';
55             }
56             },
57             from 'ArrayRef',
58             via {
59             Cfn::Value::Array->new(Value => [
60             map {
61             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::LogDestination')->coerce($_)
62             } @$_
63             ]);
64             };
65              
66             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
73             return $f
74             } else {
75             return Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::LogDestination->new( %$_ );
76             }
77             };
78              
79             package Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::LogDestination {
80 2     2   7688 use Moose;
  2         6  
  2         11  
81 2     2   13533 use MooseX::StrictConstructor;
  2         5  
  2         14  
82             extends 'Cfn::Value::TypedValue';
83            
84             has CloudWatchLogsLogGroup => (isa => 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::CloudWatchLogsLogGroup', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85             }
86              
87             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
94             return $f
95             } else {
96             return Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::TracingConfiguration->new( %$_ );
97             }
98             };
99              
100             package Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::TracingConfiguration {
101 2     2   6923 use Moose;
  2         9  
  2         10  
102 2     2   13231 use MooseX::StrictConstructor;
  2         7  
  2         12  
103             extends 'Cfn::Value::TypedValue';
104            
105             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             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
110             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
111              
112             coerce 'ArrayOfCfn::Resource::Properties::AWS::StepFunctions::StateMachine::TagsEntry',
113             from 'HashRef',
114             via {
115             if (my $f = Cfn::TypeLibrary::try_function($_)) {
116             return $f
117             } else {
118             die 'Only accepts functions';
119             }
120             },
121             from 'ArrayRef',
122             via {
123             Cfn::Value::Array->new(Value => [
124             map {
125             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::TagsEntry')->coerce($_)
126             } @$_
127             ]);
128             };
129              
130             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
137             return $f
138             } else {
139             return Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::TagsEntry->new( %$_ );
140             }
141             };
142              
143             package Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::TagsEntry {
144 2     2   7551 use Moose;
  2         6  
  2         11  
145 2     2   13719 use MooseX::StrictConstructor;
  2         6  
  2         13  
146             extends 'Cfn::Value::TypedValue';
147            
148             has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
149             has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
150             }
151              
152             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
159             return $f
160             } else {
161             return Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::S3Location->new( %$_ );
162             }
163             };
164              
165             package Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::S3Location {
166 2     2   7130 use Moose;
  2         5  
  2         22  
167 2     2   13601 use MooseX::StrictConstructor;
  2         7  
  2         14  
168             extends 'Cfn::Value::TypedValue';
169            
170             has Bucket => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
171             has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
172             has Version => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
173             }
174              
175             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
182             return $f
183             } else {
184             return Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::LoggingConfiguration->new( %$_ );
185             }
186             };
187              
188             package Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::LoggingConfiguration {
189 2     2   6865 use Moose;
  2         6  
  2         12  
190 2     2   13737 use MooseX::StrictConstructor;
  2         6  
  2         10  
191             extends 'Cfn::Value::TypedValue';
192            
193             has Destinations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::StepFunctions::StateMachine::LogDestination', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
194             has IncludeExecutionData => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
195             has Level => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
196             }
197              
198             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
205             return $f
206             } else {
207             return Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::DefinitionSubstitutions->new( %$_ );
208             }
209             };
210              
211             package Cfn::Resource::Properties::Object::AWS::StepFunctions::StateMachine::DefinitionSubstitutions {
212 2     2   7094 use Moose;
  2         6  
  2         11  
213 2     2   13194 use MooseX::StrictConstructor;
  2         5  
  2         10  
214             extends 'Cfn::Value::TypedValue';
215            
216             }
217              
218             package Cfn::Resource::Properties::AWS::StepFunctions::StateMachine {
219 2     2   6677 use Moose;
  2         8  
  2         12  
220 2     2   13387 use MooseX::StrictConstructor;
  2         7  
  2         14  
221             extends 'Cfn::Resource::Properties';
222            
223             has DefinitionS3Location => (isa => 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::S3Location', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
224             has DefinitionString => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
225             has DefinitionSubstitutions => (isa => 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::DefinitionSubstitutions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
226             has LoggingConfiguration => (isa => 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::LoggingConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
227             has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
228             has StateMachineName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
229             has StateMachineType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
230             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::AWS::StepFunctions::StateMachine::TagsEntry', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
231             has TracingConfiguration => (isa => 'Cfn::Resource::Properties::AWS::StepFunctions::StateMachine::TracingConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
232             }
233              
234             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