Cfn/Resource/AWS/GameLift/GameServerGroup.pm

filter: Statementstmt 80.0% 116 / 145 Branchbran 0.0% 0 / 18 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 62.5% 20 / 32 Podpod 0.0% 0 / 2 totaltotal 69.0% 136 / 197 CC 10 SCAR 11.7
CC
10
Cov
71%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.2
« Cfn/Resource/AWS/SSM/MaintenanceWindowTask.pm ↑ Summary Cfn/Resource/AWS/ElasticLoadBalancingV2/ListenerRule.pm »
1 # AWS::GameLift::GameServerGroup generated from spec 20.1.0
2 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup',
5 from 'HashRef',
6 0 ▶ via { Cfn::Resource::Properties::AWS::GameLift::GameServerGroup->new( %$_ ) };
Subroutine __ANON__: not called CC=1 SCAR=1.2
7  
8 1 package Cfn::Resource::AWS::GameLift::GameServerGroup {
9 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 extends 'Cfn::Resource';
11 1 has Properties => (isa => 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ 'AutoScalingGroupArn','GameServerGroupArn' ]
Subroutine AttributeList: called CC=1 SCAR=0.0
Pod undocumented
15 }
16 sub supported_regions {
17 1 ▶ [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-north-1','eu-central-1','eu-west-1','eu-west-2','sa-east-1','us-east-1','us-east-2','us-west-1','us-west-2' ]
Subroutine supported_regions: called CC=1 SCAR=0.0
Pod undocumented
18 }
19 }
20  
21  
22  
23 1 subtype 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::TargetTrackingConfiguration',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::TargetTrackingConfiguration',
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::GameLift::GameServerGroup::TargetTrackingConfiguration->new( %$_ );
33 }
34 1 };
35  
36 1 package Cfn::Resource::Properties::Object::AWS::GameLift::GameServerGroup::TargetTrackingConfiguration {
37 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 1 extends 'Cfn::Value::TypedValue';
40
41 1 has TargetValue => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 }
43 subtype 'ArrayOfCfn::Resource::Properties::AWS::GameLift::GameServerGroup::InstanceDefinition',
44 as 'Cfn::Value',
45 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
46 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
47  
48 coerce 'ArrayOfCfn::Resource::Properties::AWS::GameLift::GameServerGroup::InstanceDefinition',
49 from 'HashRef',
50 via {
51 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
52 0 return $f
53 } else {
54 0 die 'Only accepts functions';
55 }
56 },
57 from 'ArrayRef',
58 via {
59 Cfn::Value::Array->new(Value => [
60 map {
61 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::InstanceDefinition')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
62 } @$_
63 ]);
64 1 };
65  
66 1 subtype 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::InstanceDefinition',
67 as 'Cfn::Value';
68  
69 coerce 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::InstanceDefinition',
70 from 'HashRef',
71 via {
72 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
73 0 return $f
74 } else {
75 0 return Cfn::Resource::Properties::Object::AWS::GameLift::GameServerGroup::InstanceDefinition->new( %$_ );
76 }
77 1 };
78  
79 1 package Cfn::Resource::Properties::Object::AWS::GameLift::GameServerGroup::InstanceDefinition {
80 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
81 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
82 1 extends 'Cfn::Value::TypedValue';
83
84 1 has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85 1 has WeightedCapacity => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86 }
87  
88 1 subtype 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::VpcSubnets',
89 as 'Cfn::Value';
90  
91 coerce 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::VpcSubnets',
92 from 'HashRef',
93 via {
94 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
95 0 return $f
96 } else {
97 0 return Cfn::Resource::Properties::Object::AWS::GameLift::GameServerGroup::VpcSubnets->new( %$_ );
98 }
99 1 };
100  
101 1 package Cfn::Resource::Properties::Object::AWS::GameLift::GameServerGroup::VpcSubnets {
102 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
103 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
104 1 extends 'Cfn::Value::TypedValue';
105
106 1 has VpcSubnets => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
107 }
108  
109 1 subtype 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::Tags',
110 as 'Cfn::Value';
111  
112 coerce 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::Tags',
113 from 'HashRef',
114 via {
115 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
116 0 return $f
117 } else {
118 0 return Cfn::Resource::Properties::Object::AWS::GameLift::GameServerGroup::Tags->new( %$_ );
119 }
120 1 };
121  
122 1 package Cfn::Resource::Properties::Object::AWS::GameLift::GameServerGroup::Tags {
123 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
124 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
125 1 extends 'Cfn::Value::TypedValue';
126
127 1 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
128 }
129  
130 1 subtype 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::LaunchTemplate',
131 as 'Cfn::Value';
132  
133 coerce 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::LaunchTemplate',
134 from 'HashRef',
135 via {
136 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
137 0 return $f
138 } else {
139 0 return Cfn::Resource::Properties::Object::AWS::GameLift::GameServerGroup::LaunchTemplate->new( %$_ );
140 }
141 1 };
142  
143 1 package Cfn::Resource::Properties::Object::AWS::GameLift::GameServerGroup::LaunchTemplate {
144 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
145 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
146 1 extends 'Cfn::Value::TypedValue';
147
148 1 has LaunchTemplateId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
149 1 has LaunchTemplateName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
150 1 has Version => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
151 }
152  
153 1 subtype 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::InstanceDefinitions',
154 as 'Cfn::Value';
155  
156 coerce 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::InstanceDefinitions',
157 from 'HashRef',
158 via {
159 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
160 0 return $f
161 } else {
162 0 return Cfn::Resource::Properties::Object::AWS::GameLift::GameServerGroup::InstanceDefinitions->new( %$_ );
163 }
164 1 };
165  
166 1 package Cfn::Resource::Properties::Object::AWS::GameLift::GameServerGroup::InstanceDefinitions {
167 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
168 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
169 1 extends 'Cfn::Value::TypedValue';
170
171 1 has InstanceDefinitions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::GameLift::GameServerGroup::InstanceDefinition', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
172 }
173  
174 1 subtype 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::AutoScalingPolicy',
175 as 'Cfn::Value';
176  
177 coerce 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::AutoScalingPolicy',
178 from 'HashRef',
179 via {
180 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
181 0 return $f
182 } else {
183 0 return Cfn::Resource::Properties::Object::AWS::GameLift::GameServerGroup::AutoScalingPolicy->new( %$_ );
184 }
185 1 };
186  
187 1 package Cfn::Resource::Properties::Object::AWS::GameLift::GameServerGroup::AutoScalingPolicy {
188 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
189 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
190 1 extends 'Cfn::Value::TypedValue';
191
192 1 has EstimatedInstanceWarmup => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
193 1 has TargetTrackingConfiguration => (isa => 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::TargetTrackingConfiguration', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
194 }
195  
196 1 package Cfn::Resource::Properties::AWS::GameLift::GameServerGroup {
197 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
198 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
199 1 extends 'Cfn::Resource::Properties';
200
201 1 has AutoScalingPolicy => (isa => 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::AutoScalingPolicy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
202 1 has BalancingStrategy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
203 1 has DeleteOption => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
204 1 has GameServerGroupName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
205 1 has GameServerProtectionPolicy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
206 1 has InstanceDefinitions => (isa => 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::InstanceDefinitions', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
207 1 has LaunchTemplate => (isa => 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::LaunchTemplate', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
208 1 has MaxSize => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
209 1 has MinSize => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
210 1 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
211 1 has Tags => (isa => 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::Tags', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
212 1 has VpcSubnets => (isa => 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::VpcSubnets', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
213 }
214  
215 1 1;
216 ### main pod documentation begin ###
217  
218 =encoding UTF-8
219  
220 =head1 NAME
221  
222 Cfn::Resource::AWS::GameLift::GameServerGroup - Cfn resource for AWS::GameLift::GameServerGroup
223  
224 =head1 DESCRIPTION
225  
226 This module implements a Perl module that represents the CloudFormation object AWS::GameLift::GameServerGroup.
227  
228 See L<Cfn> for more information on how to use it.
229  
230 =head1 AUTHOR
231  
232 Jose Luis Martinez
233 CAPSiDE
234 jlmartinez@capside.com
235  
236 =head1 COPYRIGHT and LICENSE
237  
238 Copyright (c) 2013 by CAPSiDE
239 This code is distributed under the Apache 2 License. The full text of the
240 license can be found in the LICENSE file included with this module.
241  
242 =cut
« Cfn/Resource/AWS/SSM/MaintenanceWindowTask.pm ↑ Summary Cfn/Resource/AWS/ElasticLoadBalancingV2/ListenerRule.pm »