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 5.3.0
2 4     4   2711 use Moose::Util::TypeConstraints;
  4         12  
  4         41  
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   8336 use Moose;
  4         11  
  4         31  
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 1594 [ '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::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::AWS::OpsWorks::App::SslConfigurationValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::OpsWorks::App::SslConfigurationValue {
37 4     4   27209 use Moose;
  4         12  
  4         20  
38 4     4   24201 use MooseX::StrictConstructor;
  4         11  
  4         55  
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::AWS::OpsWorks::App::SourceValue->new( %$_ );
56             }
57             };
58              
59             package Cfn::Resource::Properties::AWS::OpsWorks::App::SourceValue {
60 4     4   13110 use Moose;
  4         12  
  4         21  
61 4     4   24341 use MooseX::StrictConstructor;
  4         8  
  4         25  
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::AWS::OpsWorks::App::EnvironmentVariableValue->new( %$_ );
104             }
105             };
106              
107             package Cfn::Resource::Properties::AWS::OpsWorks::App::EnvironmentVariableValue {
108 4     4   13443 use Moose;
  4         10  
  4         22  
109 4     4   24059 use MooseX::StrictConstructor;
  4         11  
  4         22  
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::AWS::OpsWorks::App::DataSourceValue->new( %$_ );
149             }
150             };
151              
152             package Cfn::Resource::Properties::AWS::OpsWorks::App::DataSourceValue {
153 4     4   13077 use Moose;
  4         11  
  4         23  
154 4     4   25012 use MooseX::StrictConstructor;
  4         7  
  4         23  
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   12417 use Moose;
  4         11  
  4         21  
164 4     4   24335 use MooseX::StrictConstructor;
  4         11  
  4         22  
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;