Cfn/Resource/AWS/OpsWorks/App.pm

filter: Statementstmt 79.8% 95 / 119 Branchbran 6.2% 1 / 16 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 59.2% 16 / 27 Podpod 0.0% 0 / 2 totaltotal 68.2% 112 / 164 CC 9 SCAR 11.4
CC
9
Cov
71%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.1
« Cfn/Resource/AWS/EFS/AccessPoint.pm ↑ Summary Cfn/Resource/AWS/RoboMaker/SimulationApplication.pm »
1 # AWS::OpsWorks::App generated from spec 18.4.0
2 4 ▶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 4 package Cfn::Resource::AWS::OpsWorks::App {
9 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 4 extends 'Cfn::Resource';
11 4 has Properties => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::App', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ ]
Subroutine AttributeList: called CC=1 SCAR=0.0
Pod undocumented
15 }
16 sub supported_regions {
17 1 ▶ [ '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' ]
Subroutine supported_regions: called CC=1 SCAR=0.0
Pod undocumented
18 }
19 }
20  
21  
22  
23 4 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 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
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 4 };
35  
36 4 package Cfn::Resource::Properties::Object::AWS::OpsWorks::App::SslConfiguration {
37 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 4 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 4 extends 'Cfn::Value::TypedValue';
40
41 4 has Certificate => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 4 has Chain => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 4 has PrivateKey => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44 }
45  
46 4 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 6 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: called CC=2 SCAR=8.1
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 4 };
58  
59 4 package Cfn::Resource::Properties::Object::AWS::OpsWorks::App::Source {
60 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
61 4 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
62 4 extends 'Cfn::Value::TypedValue';
63
64 4 has Password => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65 4 has Revision => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66 4 has SshKey => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
67 4 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
68 4 has Url => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
69 4 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 via {
79 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
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 via {
87 Cfn::Value::Array->new(Value => [
88 map {
89 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::OpsWorks::App::EnvironmentVariable')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
90 } @$_
91 ]);
92 4 };
93  
94 4 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 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
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 4 };
106  
107 4 package Cfn::Resource::Properties::Object::AWS::OpsWorks::App::EnvironmentVariable {
108 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
109 4 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
110 4 extends 'Cfn::Value::TypedValue';
111
112 4 has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
113 4 has Secure => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
114 4 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 via {
124 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
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 via {
132 Cfn::Value::Array->new(Value => [
133 map {
134 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::OpsWorks::App::DataSource')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
135 } @$_
136 ]);
137 4 };
138  
139 4 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 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
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 4 };
151  
152 4 package Cfn::Resource::Properties::Object::AWS::OpsWorks::App::DataSource {
153 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
154 4 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
155 4 extends 'Cfn::Value::TypedValue';
156
157 4 has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
158 4 has DatabaseName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
159 4 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
160 }
161  
162 4 package Cfn::Resource::Properties::AWS::OpsWorks::App {
163 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
164 4 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
165 4 extends 'Cfn::Resource::Properties';
166
167 4 has AppSource => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::App::Source', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
168 4 has Attributes => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
169 4 has DataSources => (isa => 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::App::DataSource', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
170 4 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
171 4 has Domains => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
172 4 has EnableSsl => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
173 4 has Environment => (isa => 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::App::EnvironmentVariable', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
174 4 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
175 4 has Shortname => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
176 4 has SslConfiguration => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::App::SslConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
177 4 has StackId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
178 4 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
179 }
180  
181 4 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/EFS/AccessPoint.pm ↑ Summary Cfn/Resource/AWS/RoboMaker/SimulationApplication.pm »