Cfn/Resource/AWS/OpsWorks/App.pm

filter: Statementstmt 78.1% 93 / 119 Branchbran 6.2% 1 / 16 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 51.8% 14 / 27 Podpod 0.0% 0 / 2 totaltotal 65.8% 108 / 164 CC 9 SCAR 11.6
CC
9
Cov
70%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.2
« Cfn/Resource/AWS/ApiGateway/Deployment.pm ↑ Summary Cfn/Resource/AWS/ApiGateway/Method.pm »
1 # AWS::OpsWorks::App generated from spec 18.4.0
2 3 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::OpsWorks::App',
5 from 'HashRef',
6 6 ▶ via { Cfn::Resource::Properties::AWS::OpsWorks::App->new( %$_ ) };
Subroutine __ANON__: called CC=1 SCAR=0.0
7  
8 3 package Cfn::Resource::AWS::OpsWorks::App {
9 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 extends 'Cfn::Resource';
11 3 has Properties => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::App', is => 'rw', coerce => 1);
12
13 0 ▶ sub AttributeList {
Subroutine AttributeList: not called CC=1 SCAR=6.9
Pod undocumented
14 0 [ ]
15 }
16 0 ▶ sub supported_regions {
Subroutine supported_regions: not called CC=1 SCAR=6.9
Pod undocumented
17 0 [ '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 3 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 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
29 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
30 0 return $f
31 } else {
32 0 return Cfn::Resource::Properties::Object::AWS::OpsWorks::App::SslConfiguration->new( %$_ );
33 }
34 3 };
35  
36 3 package Cfn::Resource::Properties::Object::AWS::OpsWorks::App::SslConfiguration {
37 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 3 extends 'Cfn::Value::TypedValue';
40
41 3 has Certificate => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 3 has Chain => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 3 has PrivateKey => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44 }
45  
46 3 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 6 ▶ via {
Subroutine __ANON__: called CC=2 SCAR=8.1
52 6 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 6 6
53 0 return $f
54 } else {
55 6 return Cfn::Resource::Properties::Object::AWS::OpsWorks::App::Source->new( %$_ );
56 }
57 3 };
58  
59 3 package Cfn::Resource::Properties::Object::AWS::OpsWorks::App::Source {
60 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
61 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
62 3 extends 'Cfn::Value::TypedValue';
63
64 3 has Password => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65 3 has Revision => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66 3 has SshKey => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
67 3 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
68 3 has Url => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
69 3 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 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
74 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
75  
76 coerce 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::App::EnvironmentVariable',
77 from 'HashRef',
78 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
79 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
80 0 return $f
81 } else {
82 0 die 'Only accepts functions';
83 }
84 },
85 from 'ArrayRef',
86 0 ▶ via {
Subroutine __ANON__: not called CC=1 SCAR=6.9
87 Cfn::Value::Array->new(Value => [
88 map {
89 0 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::OpsWorks::App::EnvironmentVariable')->coerce($_)
90 } @$_
91 ]);
92 3 };
93  
94 3 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 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
100 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
101 0 return $f
102 } else {
103 0 return Cfn::Resource::Properties::Object::AWS::OpsWorks::App::EnvironmentVariable->new( %$_ );
104 }
105 3 };
106  
107 3 package Cfn::Resource::Properties::Object::AWS::OpsWorks::App::EnvironmentVariable {
108 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
109 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
110 3 extends 'Cfn::Value::TypedValue';
111
112 3 has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
113 3 has Secure => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
114 3 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 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
119 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
120  
121 coerce 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::App::DataSource',
122 from 'HashRef',
123 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
124 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
125 0 return $f
126 } else {
127 0 die 'Only accepts functions';
128 }
129 },
130 from 'ArrayRef',
131 0 ▶ via {
Subroutine __ANON__: not called CC=1 SCAR=6.9
132 Cfn::Value::Array->new(Value => [
133 map {
134 0 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::OpsWorks::App::DataSource')->coerce($_)
135 } @$_
136 ]);
137 3 };
138  
139 3 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 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
145 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
146 0 return $f
147 } else {
148 0 return Cfn::Resource::Properties::Object::AWS::OpsWorks::App::DataSource->new( %$_ );
149 }
150 3 };
151  
152 3 package Cfn::Resource::Properties::Object::AWS::OpsWorks::App::DataSource {
153 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
154 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
155 3 extends 'Cfn::Value::TypedValue';
156
157 3 has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
158 3 has DatabaseName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
159 3 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
160 }
161  
162 3 package Cfn::Resource::Properties::AWS::OpsWorks::App {
163 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
164 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
165 3 extends 'Cfn::Resource::Properties';
166
167 3 has AppSource => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::App::Source', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
168 3 has Attributes => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
169 3 has DataSources => (isa => 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::App::DataSource', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
170 3 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
171 3 has Domains => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
172 3 has EnableSsl => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
173 3 has Environment => (isa => 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::App::EnvironmentVariable', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
174 3 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
175 3 has Shortname => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
176 3 has SslConfiguration => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::App::SslConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
177 3 has StackId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
178 3 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
179 }
180  
181 3 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
« Cfn/Resource/AWS/ApiGateway/Deployment.pm ↑ Summary Cfn/Resource/AWS/ApiGateway/Method.pm »