File Coverage

blib/lib/Cfn/Resource/AWS/ElasticBeanstalk/Application.pm
Criterion Covered Total %
statement 38 38 100.0
branch n/a
condition n/a
subroutine 14 14 100.0
pod 0 2 0.0
total 52 54 96.3


line stmt bran cond sub pod time code
1             # AWS::ElasticBeanstalk::Application generated from spec 5.3.0
2 4     4   2865 use Moose::Util::TypeConstraints;
  4         13  
  4         42  
3              
4             coerce 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Application',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::ElasticBeanstalk::Application->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::ElasticBeanstalk::Application {
9 4     4   8925 use Moose;
  4         10  
  4         31  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Application', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 3 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1109 [ '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-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::ElasticBeanstalk::Application::MaxCountRule',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Application::MaxCountRule',
27             from 'HashRef',
28             via {
29             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::AWS::ElasticBeanstalk::Application::MaxCountRuleValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::ElasticBeanstalk::Application::MaxCountRuleValue {
37 4     4   29682 use Moose;
  4         12  
  4         24  
38 4     4   26213 use MooseX::StrictConstructor;
  4         13  
  4         41  
39             extends 'Cfn::Value::TypedValue';
40            
41             has DeleteSourceFromS3 => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43             has MaxCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44             }
45              
46             subtype 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Application::MaxAgeRule',
47             as 'Cfn::Value';
48              
49             coerce 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Application::MaxAgeRule',
50             from 'HashRef',
51             via {
52             if (my $f = Cfn::TypeLibrary::try_function($_)) {
53             return $f
54             } else {
55             return Cfn::Resource::Properties::AWS::ElasticBeanstalk::Application::MaxAgeRuleValue->new( %$_ );
56             }
57             };
58              
59             package Cfn::Resource::Properties::AWS::ElasticBeanstalk::Application::MaxAgeRuleValue {
60 4     4   14249 use Moose;
  4         13  
  4         21  
61 4     4   26492 use MooseX::StrictConstructor;
  4         13  
  4         23  
62             extends 'Cfn::Value::TypedValue';
63            
64             has DeleteSourceFromS3 => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65             has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66             has MaxAgeInDays => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
67             }
68              
69             subtype 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Application::ApplicationVersionLifecycleConfig',
70             as 'Cfn::Value';
71              
72             coerce 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Application::ApplicationVersionLifecycleConfig',
73             from 'HashRef',
74             via {
75             if (my $f = Cfn::TypeLibrary::try_function($_)) {
76             return $f
77             } else {
78             return Cfn::Resource::Properties::AWS::ElasticBeanstalk::Application::ApplicationVersionLifecycleConfigValue->new( %$_ );
79             }
80             };
81              
82             package Cfn::Resource::Properties::AWS::ElasticBeanstalk::Application::ApplicationVersionLifecycleConfigValue {
83 4     4   13811 use Moose;
  4         15  
  4         22  
84 4     4   26476 use MooseX::StrictConstructor;
  4         11  
  4         28  
85             extends 'Cfn::Value::TypedValue';
86            
87             has MaxAgeRule => (isa => 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Application::MaxAgeRule', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88             has MaxCountRule => (isa => 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Application::MaxCountRule', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89             }
90              
91             subtype 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Application::ApplicationResourceLifecycleConfig',
92             as 'Cfn::Value';
93              
94             coerce 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Application::ApplicationResourceLifecycleConfig',
95             from 'HashRef',
96             via {
97             if (my $f = Cfn::TypeLibrary::try_function($_)) {
98             return $f
99             } else {
100             return Cfn::Resource::Properties::AWS::ElasticBeanstalk::Application::ApplicationResourceLifecycleConfigValue->new( %$_ );
101             }
102             };
103              
104             package Cfn::Resource::Properties::AWS::ElasticBeanstalk::Application::ApplicationResourceLifecycleConfigValue {
105 4     4   13349 use Moose;
  4         13  
  4         21  
106 4     4   26633 use MooseX::StrictConstructor;
  4         10  
  4         24  
107             extends 'Cfn::Value::TypedValue';
108            
109             has ServiceRole => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
110             has VersionLifecycleConfig => (isa => 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Application::ApplicationVersionLifecycleConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111             }
112              
113             package Cfn::Resource::Properties::AWS::ElasticBeanstalk::Application {
114 4     4   13132 use Moose;
  4         17  
  4         22  
115 4     4   26899 use MooseX::StrictConstructor;
  4         12  
  4         22  
116             extends 'Cfn::Resource::Properties';
117            
118             has ApplicationName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
119             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
120             has ResourceLifecycleConfig => (isa => 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Application::ApplicationResourceLifecycleConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
121             }
122              
123             1;