Cfn/Resource/AWS/GameLift/GameServerGroup.pm untested

filter: Statementstmt 0.0% 0 / 124 Branchbran 0.0% 0 / 10 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 14 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 155 CC 1 SCAR 6.9
CC
1
Cov
0%
AttributeList
2.0
supported_regions
2.0
BEGIN
2.0
CRAP 2.0
1 # AWS::GameLift::GameServerGroup generated from spec 34.0.0
2 use Moose::Util::TypeConstraints;
3  
4 coerce 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup',
5 from 'HashRef',
6 via { Cfn::Resource::Properties::AWS::GameLift::GameServerGroup->new( %$_ ) };
7  
8 package Cfn::Resource::AWS::GameLift::GameServerGroup {
9 use Moose;
10 extends 'Cfn::Resource';
11 has Properties => (isa => 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 [ 'AutoScalingGroupArn','GameServerGroupArn' ]
15 }
16 sub supported_regions {
17 [ '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' ]
18 }
19 }
20  
21  
22  
23 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 if (my $f = Cfn::TypeLibrary::try_function($_)) {
30 return $f
31 } else {
32 return Cfn::Resource::Properties::Object::AWS::GameLift::GameServerGroup::TargetTrackingConfiguration->new( %$_ );
33 }
34 };
35  
36 package Cfn::Resource::Properties::Object::AWS::GameLift::GameServerGroup::TargetTrackingConfiguration {
37 use Moose;
38 use MooseX::StrictConstructor;
39 extends 'Cfn::Value::TypedValue';
40
41 has TargetValue => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 }
43  
44 subtype 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::LaunchTemplate',
45 as 'Cfn::Value';
46  
47 coerce 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::LaunchTemplate',
48 from 'HashRef',
49 via {
50 if (my $f = Cfn::TypeLibrary::try_function($_)) {
51 return $f
52 } else {
53 return Cfn::Resource::Properties::Object::AWS::GameLift::GameServerGroup::LaunchTemplate->new( %$_ );
54 }
55 };
56  
57 package Cfn::Resource::Properties::Object::AWS::GameLift::GameServerGroup::LaunchTemplate {
58 use Moose;
59 use MooseX::StrictConstructor;
60 extends 'Cfn::Value::TypedValue';
61
62 has LaunchTemplateId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
63 has LaunchTemplateName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64 has Version => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65 }
66 subtype 'ArrayOfCfn::Resource::Properties::AWS::GameLift::GameServerGroup::InstanceDefinition',
67 as 'Cfn::Value',
68 where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
69 message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
70  
71 coerce 'ArrayOfCfn::Resource::Properties::AWS::GameLift::GameServerGroup::InstanceDefinition',
72 from 'HashRef',
73 via {
74 if (my $f = Cfn::TypeLibrary::try_function($_)) {
75 return $f
76 } else {
77 die 'Only accepts functions';
78 }
79 },
80 from 'ArrayRef',
81 via {
82 Cfn::Value::Array->new(Value => [
83 map {
84 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::InstanceDefinition')->coerce($_)
85 } @$_
86 ]);
87 };
88  
89 subtype 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::InstanceDefinition',
90 as 'Cfn::Value';
91  
92 coerce 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::InstanceDefinition',
93 from 'HashRef',
94 via {
95 if (my $f = Cfn::TypeLibrary::try_function($_)) {
96 return $f
97 } else {
98 return Cfn::Resource::Properties::Object::AWS::GameLift::GameServerGroup::InstanceDefinition->new( %$_ );
99 }
100 };
101  
102 package Cfn::Resource::Properties::Object::AWS::GameLift::GameServerGroup::InstanceDefinition {
103 use Moose;
104 use MooseX::StrictConstructor;
105 extends 'Cfn::Value::TypedValue';
106
107 has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
108 has WeightedCapacity => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
109 }
110  
111 subtype 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::AutoScalingPolicy',
112 as 'Cfn::Value';
113  
114 coerce 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::AutoScalingPolicy',
115 from 'HashRef',
116 via {
117 if (my $f = Cfn::TypeLibrary::try_function($_)) {
118 return $f
119 } else {
120 return Cfn::Resource::Properties::Object::AWS::GameLift::GameServerGroup::AutoScalingPolicy->new( %$_ );
121 }
122 };
123  
124 package Cfn::Resource::Properties::Object::AWS::GameLift::GameServerGroup::AutoScalingPolicy {
125 use Moose;
126 use MooseX::StrictConstructor;
127 extends 'Cfn::Value::TypedValue';
128
129 has EstimatedInstanceWarmup => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
130 has TargetTrackingConfiguration => (isa => 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::TargetTrackingConfiguration', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
131 }
132  
133 package Cfn::Resource::Properties::AWS::GameLift::GameServerGroup {
134 use Moose;
135 use MooseX::StrictConstructor;
136 extends 'Cfn::Resource::Properties';
137
138 has AutoScalingPolicy => (isa => 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::AutoScalingPolicy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
139 has BalancingStrategy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
140 has DeleteOption => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
141 has GameServerGroupName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
142 has GameServerProtectionPolicy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
143 has InstanceDefinitions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::GameLift::GameServerGroup::InstanceDefinition', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
144 has LaunchTemplate => (isa => 'Cfn::Resource::Properties::AWS::GameLift::GameServerGroup::LaunchTemplate', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
145 has MaxSize => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
146 has MinSize => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
147 has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
148 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
149 has VpcSubnets => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
150 }
151  
152 1;
153 ### main pod documentation begin ###
154  
155 =encoding UTF-8
156  
157 =head1 NAME
158  
159 Cfn::Resource::AWS::GameLift::GameServerGroup - Cfn resource for AWS::GameLift::GameServerGroup
160  
161 =head1 DESCRIPTION
162  
163 This module implements a Perl module that represents the CloudFormation object AWS::GameLift::GameServerGroup.
164  
165 See L<Cfn> for more information on how to use it.
166  
167 =head1 AUTHOR
168  
169 Jose Luis Martinez
170 CAPSiDE
171 jlmartinez@capside.com
172  
173 =head1 COPYRIGHT and LICENSE
174  
175 Copyright (c) 2013 by CAPSiDE
176 This code is distributed under the Apache 2 License. The full text of the
177 license can be found in the LICENSE file included with this module.
178  
179 =cut