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 18.4.0
2 4     4   3103 use Moose::Util::TypeConstraints;
  4         15  
  4         49  
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   9378 use Moose;
  4         11  
  4         35  
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 5 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1143 [ '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::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::Object::AWS::ElasticBeanstalk::Application::MaxCountRule->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::ElasticBeanstalk::Application::MaxCountRule {
37 4     4   30713 use Moose;
  4         12  
  4         30  
38 4     4   27280 use MooseX::StrictConstructor;
  4         12  
  4         48  
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::Object::AWS::ElasticBeanstalk::Application::MaxAgeRule->new( %$_ );
56             }
57             };
58              
59             package Cfn::Resource::Properties::Object::AWS::ElasticBeanstalk::Application::MaxAgeRule {
60 4     4   14989 use Moose;
  4         16  
  4         23  
61 4     4   28262 use MooseX::StrictConstructor;
  4         14  
  4         21  
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::Object::AWS::ElasticBeanstalk::Application::ApplicationVersionLifecycleConfig->new( %$_ );
79             }
80             };
81              
82             package Cfn::Resource::Properties::Object::AWS::ElasticBeanstalk::Application::ApplicationVersionLifecycleConfig {
83 4     4   13919 use Moose;
  4         12  
  4         51  
84 4     4   27197 use MooseX::StrictConstructor;
  4         13  
  4         27  
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::Object::AWS::ElasticBeanstalk::Application::ApplicationResourceLifecycleConfig->new( %$_ );
101             }
102             };
103              
104             package Cfn::Resource::Properties::Object::AWS::ElasticBeanstalk::Application::ApplicationResourceLifecycleConfig {
105 4     4   14519 use Moose;
  4         14  
  4         29  
106 4     4   28008 use MooseX::StrictConstructor;
  4         14  
  4         28  
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   13534 use Moose;
  4         12  
  4         27  
115 4     4   27069 use MooseX::StrictConstructor;
  4         15  
  4         27  
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;
124             ### main pod documentation begin ###
125              
126             =encoding UTF-8
127              
128             =head1 NAME
129              
130             Cfn::Resource::AWS::ElasticBeanstalk::Application - Cfn resource for AWS::ElasticBeanstalk::Application
131              
132             =head1 DESCRIPTION
133              
134             This module implements a Perl module that represents the CloudFormation object AWS::ElasticBeanstalk::Application.
135              
136             See L<Cfn> for more information on how to use it.
137              
138             =head1 AUTHOR
139              
140             Jose Luis Martinez
141             CAPSiDE
142             jlmartinez@capside.com
143              
144             =head1 COPYRIGHT and LICENSE
145              
146             Copyright (c) 2013 by CAPSiDE
147             This code is distributed under the Apache 2 License. The full text of the
148             license can be found in the LICENSE file included with this module.
149              
150             =cut