File Coverage

blib/lib/Paws/GameLift/CreateFleet.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::GameLift::CreateFleet;
3 1     1   510 use Moose;
  1         2  
  1         7  
4             has BuildId => (is => 'ro', isa => 'Str', required => 1);
5             has Description => (is => 'ro', isa => 'Str');
6             has EC2InboundPermissions => (is => 'ro', isa => 'ArrayRef[Paws::GameLift::IpPermission]');
7             has EC2InstanceType => (is => 'ro', isa => 'Str', required => 1);
8             has LogPaths => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
9             has MetricGroups => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
10             has Name => (is => 'ro', isa => 'Str', required => 1);
11             has NewGameSessionProtectionPolicy => (is => 'ro', isa => 'Str');
12             has ResourceCreationLimitPolicy => (is => 'ro', isa => 'Paws::GameLift::ResourceCreationLimitPolicy');
13             has RuntimeConfiguration => (is => 'ro', isa => 'Paws::GameLift::RuntimeConfiguration');
14             has ServerLaunchParameters => (is => 'ro', isa => 'Str');
15             has ServerLaunchPath => (is => 'ro', isa => 'Str');
16              
17 1     1   6330 use MooseX::ClassAttribute;
  1         2  
  1         10  
18              
19             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateFleet');
20             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::GameLift::CreateFleetOutput');
21             class_has _result_key => (isa => 'Str', is => 'ro');
22             1;
23              
24             ### main pod documentation begin ###
25              
26             =head1 NAME
27              
28             Paws::GameLift::CreateFleet - Arguments for method CreateFleet on Paws::GameLift
29              
30             =head1 DESCRIPTION
31              
32             This class represents the parameters used for calling the method CreateFleet on the
33             Amazon GameLift service. Use the attributes of this class
34             as arguments to method CreateFleet.
35              
36             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateFleet.
37              
38             As an example:
39              
40             $service_obj->CreateFleet(Att1 => $value1, Att2 => $value2, ...);
41              
42             Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
43              
44             =head1 ATTRIBUTES
45              
46              
47             =head2 B<REQUIRED> BuildId => Str
48              
49             Unique identifier for a build to be deployed on the new fleet. The
50             build must have been successfully uploaded to Amazon GameLift and be in
51             a C<READY> status. This fleet setting cannot be changed once the fleet
52             is created.
53              
54              
55              
56             =head2 Description => Str
57              
58             Human-readable description of a fleet.
59              
60              
61              
62             =head2 EC2InboundPermissions => ArrayRef[L<Paws::GameLift::IpPermission>]
63              
64             Range of IP addresses and port settings that permit inbound traffic to
65             access server processes running on the fleet. If no inbound permissions
66             are set, including both IP address range and port range, the server
67             processes in the fleet cannot accept connections. You can specify one
68             or more sets of permissions for a fleet.
69              
70              
71              
72             =head2 B<REQUIRED> EC2InstanceType => Str
73              
74             Name of an EC2 instance type that is supported in Amazon GameLift. A
75             fleet instance type determines the computing resources of each instance
76             in the fleet, including CPU, memory, storage, and networking capacity.
77             Amazon GameLift supports the following EC2 instance types. See Amazon
78             EC2 Instance Types for detailed descriptions.
79              
80             Valid values are: C<"t2.micro">, C<"t2.small">, C<"t2.medium">, C<"t2.large">, C<"c3.large">, C<"c3.xlarge">, C<"c3.2xlarge">, C<"c3.4xlarge">, C<"c3.8xlarge">, C<"c4.large">, C<"c4.xlarge">, C<"c4.2xlarge">, C<"c4.4xlarge">, C<"c4.8xlarge">, C<"r3.large">, C<"r3.xlarge">, C<"r3.2xlarge">, C<"r3.4xlarge">, C<"r3.8xlarge">, C<"m3.medium">, C<"m3.large">, C<"m3.xlarge">, C<"m3.2xlarge">, C<"m4.large">, C<"m4.xlarge">, C<"m4.2xlarge">, C<"m4.4xlarge">, C<"m4.10xlarge">
81              
82             =head2 LogPaths => ArrayRef[Str|Undef]
83              
84             This parameter is no longer used. Instead, to specify where Amazon
85             GameLift should store log files once a server process shuts down, use
86             the Amazon GameLift server API C<ProcessReady()> and specify one or
87             more directory paths in C<logParameters>. See more information in the
88             Server API Reference.
89              
90              
91              
92             =head2 MetricGroups => ArrayRef[Str|Undef]
93              
94             Names of metric groups to add this fleet to. Use an existing metric
95             group name to add this fleet to the group. Or use a new name to create
96             a new metric group. A fleet can only be included in one metric group at
97             a time.
98              
99              
100              
101             =head2 B<REQUIRED> Name => Str
102              
103             Descriptive label that is associated with a fleet. Fleet names do not
104             need to be unique.
105              
106              
107              
108             =head2 NewGameSessionProtectionPolicy => Str
109              
110             Game session protection policy to apply to all instances in this fleet.
111             If this parameter is not set, instances in this fleet default to no
112             protection. You can change a fleet's protection policy using
113             UpdateFleetAttributes, but this change will only affect sessions
114             created after the policy change. You can also set protection for
115             individual instances using UpdateGameSession.
116              
117             =over
118              
119             =item *
120              
121             B<NoProtection> E<ndash> The game session can be terminated during a
122             scale-down event.
123              
124             =item *
125              
126             B<FullProtection> E<ndash> If the game session is in an C<ACTIVE>
127             status, it cannot be terminated during a scale-down event.
128              
129             =back
130              
131              
132             Valid values are: C<"NoProtection">, C<"FullProtection">
133              
134             =head2 ResourceCreationLimitPolicy => L<Paws::GameLift::ResourceCreationLimitPolicy>
135              
136             Policy that limits the number of game sessions an individual player can
137             create over a span of time for this fleet.
138              
139              
140              
141             =head2 RuntimeConfiguration => L<Paws::GameLift::RuntimeConfiguration>
142              
143             Instructions for launching server processes on each instance in the
144             fleet. The run-time configuration for a fleet has a collection of
145             server process configurations, one for each type of server process to
146             run on an instance. A server process configuration specifies the
147             location of the server executable, launch parameters, and the number of
148             concurrent processes with that configuration to maintain on each
149             instance. A CreateFleet request must include a run-time configuration
150             with at least one server process configuration; otherwise the request
151             fails with an invalid request exception. (This parameter replaces the
152             parameters C<ServerLaunchPath> and C<ServerLaunchParameters>; requests
153             that contain values for these parameters instead of a run-time
154             configuration will continue to work.)
155              
156              
157              
158             =head2 ServerLaunchParameters => Str
159              
160             This parameter is no longer used. Instead, specify server launch
161             parameters in the C<RuntimeConfiguration> parameter. (Requests that
162             specify a server launch path and launch parameters instead of a
163             run-time configuration will continue to work.)
164              
165              
166              
167             =head2 ServerLaunchPath => Str
168              
169             This parameter is no longer used. Instead, specify a server launch path
170             using the C<RuntimeConfiguration> parameter. (Requests that specify a
171             server launch path and launch parameters instead of a run-time
172             configuration will continue to work.)
173              
174              
175              
176              
177             =head1 SEE ALSO
178              
179             This class forms part of L<Paws>, documenting arguments for method CreateFleet in L<Paws::GameLift>
180              
181             =head1 BUGS and CONTRIBUTIONS
182              
183             The source code is located here: https://github.com/pplu/aws-sdk-perl
184              
185             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
186              
187             =cut
188