File Coverage

blib/lib/Cfn/Resource/AWS/GameLift/Fleet.pm
Criterion Covered Total %
statement 44 44 100.0
branch n/a
condition n/a
subroutine 16 16 100.0
pod 0 2 0.0
total 60 62 96.7


line stmt bran cond sub pod time code
1             # AWS::GameLift::Fleet generated from spec 18.4.0
2 2     2   1426 use Moose::Util::TypeConstraints;
  2         7  
  2         20  
3              
4             coerce 'Cfn::Resource::Properties::AWS::GameLift::Fleet',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::GameLift::Fleet->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::GameLift::Fleet {
9 2     2   4565 use Moose;
  2         6  
  2         19  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::GameLift::Fleet', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1206 [ '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             subtype 'ArrayOfCfn::Resource::Properties::AWS::GameLift::Fleet::ServerProcess',
23             as 'Cfn::Value',
24             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
25             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
26              
27             coerce 'ArrayOfCfn::Resource::Properties::AWS::GameLift::Fleet::ServerProcess',
28             from 'HashRef',
29             via {
30             if (my $f = Cfn::TypeLibrary::try_function($_)) {
31             return $f
32             } else {
33             die 'Only accepts functions';
34             }
35             },
36             from 'ArrayRef',
37             via {
38             Cfn::Value::Array->new(Value => [
39             map {
40             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::GameLift::Fleet::ServerProcess')->coerce($_)
41             } @$_
42             ]);
43             };
44              
45             subtype 'Cfn::Resource::Properties::AWS::GameLift::Fleet::ServerProcess',
46             as 'Cfn::Value';
47              
48             coerce 'Cfn::Resource::Properties::AWS::GameLift::Fleet::ServerProcess',
49             from 'HashRef',
50             via {
51             if (my $f = Cfn::TypeLibrary::try_function($_)) {
52             return $f
53             } else {
54             return Cfn::Resource::Properties::Object::AWS::GameLift::Fleet::ServerProcess->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::Object::AWS::GameLift::Fleet::ServerProcess {
59 2     2   16269 use Moose;
  2         7  
  2         9  
60 2     2   13549 use MooseX::StrictConstructor;
  2         9  
  2         22  
61             extends 'Cfn::Value::TypedValue';
62            
63             has ConcurrentExecutions => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64             has LaunchPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65             has Parameters => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66             }
67              
68             subtype 'Cfn::Resource::Properties::AWS::GameLift::Fleet::RuntimeConfiguration',
69             as 'Cfn::Value';
70              
71             coerce 'Cfn::Resource::Properties::AWS::GameLift::Fleet::RuntimeConfiguration',
72             from 'HashRef',
73             via {
74             if (my $f = Cfn::TypeLibrary::try_function($_)) {
75             return $f
76             } else {
77             return Cfn::Resource::Properties::Object::AWS::GameLift::Fleet::RuntimeConfiguration->new( %$_ );
78             }
79             };
80              
81             package Cfn::Resource::Properties::Object::AWS::GameLift::Fleet::RuntimeConfiguration {
82 2     2   7353 use Moose;
  2         7  
  2         13  
83 2     2   14021 use MooseX::StrictConstructor;
  2         5  
  2         13  
84             extends 'Cfn::Value::TypedValue';
85            
86             has GameSessionActivationTimeoutSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87             has MaxConcurrentGameSessionActivations => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88             has ServerProcesses => (isa => 'ArrayOfCfn::Resource::Properties::AWS::GameLift::Fleet::ServerProcess', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89             }
90              
91             subtype 'Cfn::Resource::Properties::AWS::GameLift::Fleet::ResourceCreationLimitPolicy',
92             as 'Cfn::Value';
93              
94             coerce 'Cfn::Resource::Properties::AWS::GameLift::Fleet::ResourceCreationLimitPolicy',
95             from 'HashRef',
96             via {
97             if (my $f = Cfn::TypeLibrary::try_function($_)) {
98             return $f
99             } else {
100             return Cfn::Resource::Properties::Object::AWS::GameLift::Fleet::ResourceCreationLimitPolicy->new( %$_ );
101             }
102             };
103              
104             package Cfn::Resource::Properties::Object::AWS::GameLift::Fleet::ResourceCreationLimitPolicy {
105 2     2   7158 use Moose;
  2         6  
  2         24  
106 2     2   13767 use MooseX::StrictConstructor;
  2         5  
  2         14  
107             extends 'Cfn::Value::TypedValue';
108            
109             has NewGameSessionsPerCreator => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
110             has PolicyPeriodInMinutes => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111             }
112             subtype 'ArrayOfCfn::Resource::Properties::AWS::GameLift::Fleet::IpPermission',
113             as 'Cfn::Value',
114             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
115             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
116              
117             coerce 'ArrayOfCfn::Resource::Properties::AWS::GameLift::Fleet::IpPermission',
118             from 'HashRef',
119             via {
120             if (my $f = Cfn::TypeLibrary::try_function($_)) {
121             return $f
122             } else {
123             die 'Only accepts functions';
124             }
125             },
126             from 'ArrayRef',
127             via {
128             Cfn::Value::Array->new(Value => [
129             map {
130             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::GameLift::Fleet::IpPermission')->coerce($_)
131             } @$_
132             ]);
133             };
134              
135             subtype 'Cfn::Resource::Properties::AWS::GameLift::Fleet::IpPermission',
136             as 'Cfn::Value';
137              
138             coerce 'Cfn::Resource::Properties::AWS::GameLift::Fleet::IpPermission',
139             from 'HashRef',
140             via {
141             if (my $f = Cfn::TypeLibrary::try_function($_)) {
142             return $f
143             } else {
144             return Cfn::Resource::Properties::Object::AWS::GameLift::Fleet::IpPermission->new( %$_ );
145             }
146             };
147              
148             package Cfn::Resource::Properties::Object::AWS::GameLift::Fleet::IpPermission {
149 2     2   7402 use Moose;
  2         10  
  2         13  
150 2     2   13489 use MooseX::StrictConstructor;
  2         6  
  2         12  
151             extends 'Cfn::Value::TypedValue';
152            
153             has FromPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
154             has IpRange => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
155             has Protocol => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
156             has ToPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
157             }
158              
159             subtype 'Cfn::Resource::Properties::AWS::GameLift::Fleet::CertificateConfiguration',
160             as 'Cfn::Value';
161              
162             coerce 'Cfn::Resource::Properties::AWS::GameLift::Fleet::CertificateConfiguration',
163             from 'HashRef',
164             via {
165             if (my $f = Cfn::TypeLibrary::try_function($_)) {
166             return $f
167             } else {
168             return Cfn::Resource::Properties::Object::AWS::GameLift::Fleet::CertificateConfiguration->new( %$_ );
169             }
170             };
171              
172             package Cfn::Resource::Properties::Object::AWS::GameLift::Fleet::CertificateConfiguration {
173 2     2   6953 use Moose;
  2         6  
  2         12  
174 2     2   14175 use MooseX::StrictConstructor;
  2         7  
  2         13  
175             extends 'Cfn::Value::TypedValue';
176            
177             has CertificateType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
178             }
179              
180             package Cfn::Resource::Properties::AWS::GameLift::Fleet {
181 2     2   6827 use Moose;
  2         6  
  2         12  
182 2     2   13307 use MooseX::StrictConstructor;
  2         6  
  2         14  
183             extends 'Cfn::Resource::Properties';
184            
185             has BuildId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
186             has CertificateConfiguration => (isa => 'Cfn::Resource::Properties::AWS::GameLift::Fleet::CertificateConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
187             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
188             has DesiredEC2Instances => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
189             has EC2InboundPermissions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::GameLift::Fleet::IpPermission', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
190             has EC2InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
191             has FleetType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
192             has InstanceRoleARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
193             has LogPaths => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
194             has MaxSize => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
195             has MetricGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
196             has MinSize => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
197             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
198             has NewGameSessionProtectionPolicy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
199             has PeerVpcAwsAccountId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
200             has PeerVpcId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
201             has ResourceCreationLimitPolicy => (isa => 'Cfn::Resource::Properties::AWS::GameLift::Fleet::ResourceCreationLimitPolicy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
202             has RuntimeConfiguration => (isa => 'Cfn::Resource::Properties::AWS::GameLift::Fleet::RuntimeConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
203             has ScriptId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
204             has ServerLaunchParameters => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
205             has ServerLaunchPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
206             }
207              
208             1;
209             ### main pod documentation begin ###
210              
211             =encoding UTF-8
212              
213             =head1 NAME
214              
215             Cfn::Resource::AWS::GameLift::Fleet - Cfn resource for AWS::GameLift::Fleet
216              
217             =head1 DESCRIPTION
218              
219             This module implements a Perl module that represents the CloudFormation object AWS::GameLift::Fleet.
220              
221             See L<Cfn> for more information on how to use it.
222              
223             =head1 AUTHOR
224              
225             Jose Luis Martinez
226             CAPSiDE
227             jlmartinez@capside.com
228              
229             =head1 COPYRIGHT and LICENSE
230              
231             Copyright (c) 2013 by CAPSiDE
232             This code is distributed under the Apache 2 License. The full text of the
233             license can be found in the LICENSE file included with this module.
234              
235             =cut