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 9.1.0
2 2     2   1387 use Moose::Util::TypeConstraints;
  2         6  
  2         23  
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   4515 use Moose;
  2         4  
  2         17  
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 1125 [ '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-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::AWS::GameLift::Fleet::ServerProcessValue->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::AWS::GameLift::Fleet::ServerProcessValue {
59 2     2   15187 use Moose;
  2         7  
  2         12  
60 2     2   13022 use MooseX::StrictConstructor;
  2         4  
  2         21  
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::AWS::GameLift::Fleet::RuntimeConfigurationValue->new( %$_ );
78             }
79             };
80              
81             package Cfn::Resource::Properties::AWS::GameLift::Fleet::RuntimeConfigurationValue {
82 2     2   7282 use Moose;
  2         6  
  2         11  
83 2     2   13192 use MooseX::StrictConstructor;
  2         5  
  2         12  
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::AWS::GameLift::Fleet::ResourceCreationLimitPolicyValue->new( %$_ );
101             }
102             };
103              
104             package Cfn::Resource::Properties::AWS::GameLift::Fleet::ResourceCreationLimitPolicyValue {
105 2     2   6803 use Moose;
  2         6  
  2         12  
106 2     2   13039 use MooseX::StrictConstructor;
  2         7  
  2         12  
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::AWS::GameLift::Fleet::IpPermissionValue->new( %$_ );
145             }
146             };
147              
148             package Cfn::Resource::Properties::AWS::GameLift::Fleet::IpPermissionValue {
149 2     2   7260 use Moose;
  2         8  
  2         11  
150 2     2   13257 use MooseX::StrictConstructor;
  2         5  
  2         11  
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::AWS::GameLift::Fleet::CertificateConfigurationValue->new( %$_ );
169             }
170             };
171              
172             package Cfn::Resource::Properties::AWS::GameLift::Fleet::CertificateConfigurationValue {
173 2     2   6919 use Moose;
  2         16  
  2         14  
174 2     2   13053 use MooseX::StrictConstructor;
  2         7  
  2         12  
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   6610 use Moose;
  2         6  
  2         12  
182 2     2   14438 use MooseX::StrictConstructor;
  2         5  
  2         15  
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;