File Coverage

blib/lib/Paws/GameLift/GameSession.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::GameLift::GameSession;
2 1     1   561 use Moose;
  1         5  
  1         11  
3             has CreationTime => (is => 'ro', isa => 'Str');
4             has CreatorId => (is => 'ro', isa => 'Str');
5             has CurrentPlayerSessionCount => (is => 'ro', isa => 'Int');
6             has FleetId => (is => 'ro', isa => 'Str');
7             has GameProperties => (is => 'ro', isa => 'ArrayRef[Paws::GameLift::GameProperty]');
8             has GameSessionData => (is => 'ro', isa => 'Str');
9             has GameSessionId => (is => 'ro', isa => 'Str');
10             has IpAddress => (is => 'ro', isa => 'Str');
11             has MaximumPlayerSessionCount => (is => 'ro', isa => 'Int');
12             has Name => (is => 'ro', isa => 'Str');
13             has PlayerSessionCreationPolicy => (is => 'ro', isa => 'Str');
14             has Port => (is => 'ro', isa => 'Int');
15             has Status => (is => 'ro', isa => 'Str');
16             has TerminationTime => (is => 'ro', isa => 'Str');
17             1;
18              
19             ### main pod documentation begin ###
20              
21             =head1 NAME
22              
23             Paws::GameLift::GameSession
24              
25             =head1 USAGE
26              
27             This class represents one of two things:
28              
29             =head3 Arguments in a call to a service
30              
31             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
32             Each attribute should be used as a named argument in the calls that expect this type of object.
33              
34             As an example, if Att1 is expected to be a Paws::GameLift::GameSession object:
35              
36             $service_obj->Method(Att1 => { CreationTime => $value, ..., TerminationTime => $value });
37              
38             =head3 Results returned from an API call
39              
40             Use accessors for each attribute. If Att1 is expected to be an Paws::GameLift::GameSession object:
41              
42             $result = $service_obj->Method(...);
43             $result->Att1->CreationTime
44              
45             =head1 DESCRIPTION
46              
47             Properties describing a game session.
48              
49             A game session in ACTIVE status can host players. When a game session
50             ends, its status is set to C<TERMINATED>.
51              
52             Once the session ends, the game session object is retained for 30 days.
53             This means you can reuse idempotency token values after this time. Game
54             session logs are retained for 14 days.
55              
56             Game-session-related operations include:
57              
58             =over
59              
60             =item *
61              
62             CreateGameSession
63              
64             =item *
65              
66             DescribeGameSessions
67              
68             =item *
69              
70             DescribeGameSessionDetails
71              
72             =item *
73              
74             SearchGameSessions
75              
76             =item *
77              
78             UpdateGameSession
79              
80             =item *
81              
82             GetGameSessionLogUrl
83              
84             =item *
85              
86             Game session placements
87              
88             =over
89              
90             =item *
91              
92             StartGameSessionPlacement
93              
94             =item *
95              
96             DescribeGameSessionPlacement
97              
98             =item *
99              
100             StopGameSessionPlacement
101              
102             =back
103              
104             =back
105              
106              
107             =head1 ATTRIBUTES
108              
109              
110             =head2 CreationTime => Str
111              
112             Time stamp indicating when this data object was created. Format is a
113             number expressed in Unix time as milliseconds (for example
114             "1469498468.057").
115              
116              
117             =head2 CreatorId => Str
118              
119             Unique identifier for a player. This ID is used to enforce a resource
120             protection policy (if one exists), that limits the number of game
121             sessions a player can create.
122              
123              
124             =head2 CurrentPlayerSessionCount => Int
125              
126             Number of players currently in the game session.
127              
128              
129             =head2 FleetId => Str
130              
131             Unique identifier for a fleet that the game session is running on.
132              
133              
134             =head2 GameProperties => ArrayRef[L<Paws::GameLift::GameProperty>]
135              
136             Set of developer-defined properties for a game session, formatted as a
137             set of type:value pairs. These properties are included in the
138             GameSession object, which is passed to the game server with a request
139             to start a new game session (see Start a Game Session).
140              
141              
142             =head2 GameSessionData => Str
143              
144             Set of developer-defined game session properties, formatted as a single
145             string value. This data is included in the GameSession object, which is
146             passed to the game server with a request to start a new game session
147             (see Start a Game Session).
148              
149              
150             =head2 GameSessionId => Str
151              
152             Unique identifier for the game session. A game session ARN has the
153             following format:
154             C<arn:aws:gamelift:E<lt>regionE<gt>::gamesession/E<lt>fleet
155             IDE<gt>/E<lt>custom ID string or idempotency tokenE<gt>>.
156              
157              
158             =head2 IpAddress => Str
159              
160             IP address of the game session. To connect to a Amazon GameLift game
161             server, an app needs both the IP address and port number.
162              
163              
164             =head2 MaximumPlayerSessionCount => Int
165              
166             Maximum number of players that can be connected simultaneously to the
167             game session.
168              
169              
170             =head2 Name => Str
171              
172             Descriptive label that is associated with a game session. Session names
173             do not need to be unique.
174              
175              
176             =head2 PlayerSessionCreationPolicy => Str
177              
178             Indicates whether or not the game session is accepting new players.
179              
180              
181             =head2 Port => Int
182              
183             Port number for the game session. To connect to a Amazon GameLift game
184             server, an app needs both the IP address and port number.
185              
186              
187             =head2 Status => Str
188              
189             Current status of the game session. A game session must have an
190             C<ACTIVE> status to have player sessions.
191              
192              
193             =head2 TerminationTime => Str
194              
195             Time stamp indicating when this data object was terminated. Format is a
196             number expressed in Unix time as milliseconds (for example
197             "1469498468.057").
198              
199              
200              
201             =head1 SEE ALSO
202              
203             This class forms part of L<Paws>, describing an object used in L<Paws::GameLift>
204              
205             =head1 BUGS and CONTRIBUTIONS
206              
207             The source code is located here: https://github.com/pplu/aws-sdk-perl
208              
209             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
210              
211             =cut
212