« Cfn/Resource/AWS/Serverless/SimpleTable.pm
↑ Summary
Cfn/Resource/AWS/ServiceCatalog/AcceptedPortfolioShare.pm »
| 1 | use Moose::Util::TypeConstraints; | ||
| 2 | |||
| 3 | coerce 'Cfn::Resource::Properties::AWS::Serverless::StateMachine', | ||
| 4 | from 'HashRef', | ||
| 5 | via { Cfn::Resource::Properties::AWS::Serverless::StateMachine->new(%$_) }; | ||
| 6 | |||
| 7 | package Cfn::Resource::AWS::Serverless::StateMachine { | ||
| 8 | use Moose; | ||
| 9 | extends 'Cfn::Resource'; | ||
| 10 | has Properties => ( isa => 'Cfn::Resource::Properties::AWS::Serverless::StateMachine', is => 'rw', coerce => 1 ); | ||
| 11 | |||
| 12 | sub supported_regions { | ||
| 13 | require Cfn::Resource::AWS::Lambda::Function; | ||
| 14 | Cfn::Resource::AWS::Lambda::Function->supported_regions; | ||
| 15 | } | ||
| 16 | |||
| 17 | sub AttributeList { | ||
| 18 | ['Name'] | ||
| 19 | } | ||
| 20 | } | ||
| 21 | |||
| 22 | package Cfn::Resource::Properties::AWS::Serverless::StateMachine { | ||
| 23 | use Moose; | ||
| 24 | use MooseX::StrictConstructor; | ||
| 25 | extends 'Cfn::Resource::Properties'; | ||
| 26 | |||
| 27 | has Definition => ( isa => 'Cfn::Value', is => 'rw', coerce => 1); | ||
| 28 | has DefinitionSubstitutions => ( isa => 'Cfn::Value', is => 'rw', coerce => 1 ); | ||
| 29 | has DefinitionUri => ( isa => 'Cfn::Value', is => 'rw', coerce => 1 ); | ||
| 30 | has Events => ( isa => 'Cfn::Value', is => 'rw', coerce => 1 ); | ||
| 31 | has Logging => ( isa => 'Cfn::Value', is => 'rw', coerce => 1 ); | ||
| 32 | has Domain => ( isa => 'Cfn::Value', is => 'rw', coerce => 1 ); | ||
| 33 | has Logging => ( isa => 'Cfn::Value', is => 'rw', coerce => 1 ); | ||
| 34 | has Name => ( isa => 'Cfn::Value::String', is => 'rw', coerce => 1 ); | ||
| 35 | has Policies => ( isa => 'Cfn::Value', is => 'rw', coerce => 1 ); | ||
| 36 | has Role => ( isa => 'Cfn::Value::String', is => 'rw', coerce => 1 ); | ||
| 37 | has Tags => ( isa => 'Cfn::Value', is => 'rw', coerce => 1 ); | ||
| 38 | has Type => ( isa => 'Cfn::Value::String', is => 'rw', coerce => 1); | ||
| 39 | } | ||
| 40 | |||
| 41 | 1; |