File Coverage

blib/lib/Cfn/Resource/AWS/OpsWorks/App.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::OpsWorks::App generated from spec 18.4.0
2 4     4   3141 use Moose::Util::TypeConstraints;
  4         9  
  4         50  
3              
4             coerce 'Cfn::Resource::Properties::AWS::OpsWorks::App',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::OpsWorks::App->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::OpsWorks::App {
9 4     4   9728 use Moose;
  4         10  
  4         36  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::App', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1145 [ '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::OpsWorks::App::SslConfiguration',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::OpsWorks::App::SslConfiguration',
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::OpsWorks::App::SslConfiguration->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::OpsWorks::App::SslConfiguration {
37 4     4   31308 use Moose;
  4         25  
  4         22  
38 4     4   27149 use MooseX::StrictConstructor;
  4         12  
  4         41  
39             extends 'Cfn::Value::TypedValue';
40            
41             has Certificate => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             has Chain => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43             has PrivateKey => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44             }
45              
46             subtype 'Cfn::Resource::Properties::AWS::OpsWorks::App::Source',
47             as 'Cfn::Value';
48              
49             coerce 'Cfn::Resource::Properties::AWS::OpsWorks::App::Source',
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::OpsWorks::App::Source->new( %$_ );
56             }
57             };
58              
59             package Cfn::Resource::Properties::Object::AWS::OpsWorks::App::Source {
60 4     4   14880 use Moose;
  4         12  
  4         22  
61 4     4   27439 use MooseX::StrictConstructor;
  4         12  
  4         21  
62             extends 'Cfn::Value::TypedValue';
63            
64             has Password => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65             has Revision => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66             has SshKey => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
67             has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
68             has Url => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
69             has Username => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
70             }
71             subtype 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::App::EnvironmentVariable',
72             as 'Cfn::Value',
73             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
74             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
75              
76             coerce 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::App::EnvironmentVariable',
77             from 'HashRef',
78             via {
79             if (my $f = Cfn::TypeLibrary::try_function($_)) {
80             return $f
81             } else {
82             die 'Only accepts functions';
83             }
84             },
85             from 'ArrayRef',
86             via {
87             Cfn::Value::Array->new(Value => [
88             map {
89             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::OpsWorks::App::EnvironmentVariable')->coerce($_)
90             } @$_
91             ]);
92             };
93              
94             subtype 'Cfn::Resource::Properties::AWS::OpsWorks::App::EnvironmentVariable',
95             as 'Cfn::Value';
96              
97             coerce 'Cfn::Resource::Properties::AWS::OpsWorks::App::EnvironmentVariable',
98             from 'HashRef',
99             via {
100             if (my $f = Cfn::TypeLibrary::try_function($_)) {
101             return $f
102             } else {
103             return Cfn::Resource::Properties::Object::AWS::OpsWorks::App::EnvironmentVariable->new( %$_ );
104             }
105             };
106              
107             package Cfn::Resource::Properties::Object::AWS::OpsWorks::App::EnvironmentVariable {
108 4     4   14761 use Moose;
  4         10  
  4         23  
109 4     4   27294 use MooseX::StrictConstructor;
  4         20  
  4         25  
110             extends 'Cfn::Value::TypedValue';
111            
112             has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
113             has Secure => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
114             has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
115             }
116             subtype 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::App::DataSource',
117             as 'Cfn::Value',
118             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
119             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
120              
121             coerce 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::App::DataSource',
122             from 'HashRef',
123             via {
124             if (my $f = Cfn::TypeLibrary::try_function($_)) {
125             return $f
126             } else {
127             die 'Only accepts functions';
128             }
129             },
130             from 'ArrayRef',
131             via {
132             Cfn::Value::Array->new(Value => [
133             map {
134             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::OpsWorks::App::DataSource')->coerce($_)
135             } @$_
136             ]);
137             };
138              
139             subtype 'Cfn::Resource::Properties::AWS::OpsWorks::App::DataSource',
140             as 'Cfn::Value';
141              
142             coerce 'Cfn::Resource::Properties::AWS::OpsWorks::App::DataSource',
143             from 'HashRef',
144             via {
145             if (my $f = Cfn::TypeLibrary::try_function($_)) {
146             return $f
147             } else {
148             return Cfn::Resource::Properties::Object::AWS::OpsWorks::App::DataSource->new( %$_ );
149             }
150             };
151              
152             package Cfn::Resource::Properties::Object::AWS::OpsWorks::App::DataSource {
153 4     4   14663 use Moose;
  4         13  
  4         24  
154 4     4   27018 use MooseX::StrictConstructor;
  4         12  
  4         31  
155             extends 'Cfn::Value::TypedValue';
156            
157             has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
158             has DatabaseName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
159             has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
160             }
161              
162             package Cfn::Resource::Properties::AWS::OpsWorks::App {
163 4     4   13561 use Moose;
  4         18  
  4         27  
164 4     4   26852 use MooseX::StrictConstructor;
  4         12  
  4         24  
165             extends 'Cfn::Resource::Properties';
166            
167             has AppSource => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::App::Source', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
168             has Attributes => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
169             has DataSources => (isa => 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::App::DataSource', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
170             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
171             has Domains => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
172             has EnableSsl => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
173             has Environment => (isa => 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::App::EnvironmentVariable', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
174             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
175             has Shortname => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
176             has SslConfiguration => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::App::SslConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
177             has StackId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
178             has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
179             }
180              
181             1;
182             ### main pod documentation begin ###
183              
184             =encoding UTF-8
185              
186             =head1 NAME
187              
188             Cfn::Resource::AWS::OpsWorks::App - Cfn resource for AWS::OpsWorks::App
189              
190             =head1 DESCRIPTION
191              
192             This module implements a Perl module that represents the CloudFormation object AWS::OpsWorks::App.
193              
194             See L<Cfn> for more information on how to use it.
195              
196             =head1 AUTHOR
197              
198             Jose Luis Martinez
199             CAPSiDE
200             jlmartinez@capside.com
201              
202             =head1 COPYRIGHT and LICENSE
203              
204             Copyright (c) 2013 by CAPSiDE
205             This code is distributed under the Apache 2 License. The full text of the
206             license can be found in the LICENSE file included with this module.
207              
208             =cut