File Coverage

blib/lib/Paws/GameLift/CreateGameSession.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::CreateGameSession;
3 1     1   337 use Moose;
  1         4  
  1         6  
4             has AliasId => (is => 'ro', isa => 'Str');
5             has CreatorId => (is => 'ro', isa => 'Str');
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 IdempotencyToken => (is => 'ro', isa => 'Str');
11             has MaximumPlayerSessionCount => (is => 'ro', isa => 'Int', required => 1);
12             has Name => (is => 'ro', isa => 'Str');
13              
14 1     1   5558 use MooseX::ClassAttribute;
  1         2  
  1         7  
15              
16             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateGameSession');
17             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::GameLift::CreateGameSessionOutput');
18             class_has _result_key => (isa => 'Str', is => 'ro');
19             1;
20              
21             ### main pod documentation begin ###
22              
23             =head1 NAME
24              
25             Paws::GameLift::CreateGameSession - Arguments for method CreateGameSession on Paws::GameLift
26              
27             =head1 DESCRIPTION
28              
29             This class represents the parameters used for calling the method CreateGameSession on the
30             Amazon GameLift service. Use the attributes of this class
31             as arguments to method CreateGameSession.
32              
33             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateGameSession.
34              
35             As an example:
36              
37             $service_obj->CreateGameSession(Att1 => $value1, Att2 => $value2, ...);
38              
39             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.
40              
41             =head1 ATTRIBUTES
42              
43              
44             =head2 AliasId => Str
45              
46             Unique identifier for an alias associated with the fleet to create a
47             game session in. Each request must reference either a fleet ID or alias
48             ID, but not both.
49              
50              
51              
52             =head2 CreatorId => Str
53              
54             Unique identifier for a player or entity creating the game session.
55             This ID is used to enforce a resource protection policy (if one exists)
56             that limits the number of concurrent active game sessions one player
57             can have.
58              
59              
60              
61             =head2 FleetId => Str
62              
63             Unique identifier for a fleet to create a game session in. Each request
64             must reference either a fleet ID or alias ID, but not both.
65              
66              
67              
68             =head2 GameProperties => ArrayRef[L<Paws::GameLift::GameProperty>]
69              
70             Set of developer-defined properties for a game session, formatted as a
71             set of type:value pairs. These properties are included in the
72             GameSession object, which is passed to the game server with a request
73             to start a new game session (see Start a Game Session).
74              
75              
76              
77             =head2 GameSessionData => Str
78              
79             Set of developer-defined game session properties, formatted as a single
80             string value. This data is included in the GameSession object, which is
81             passed to the game server with a request to start a new game session
82             (see Start a Game Session).
83              
84              
85              
86             =head2 GameSessionId => Str
87              
88             I<This parameter is no longer preferred. Please use C<IdempotencyToken>
89             instead.> Custom string that uniquely identifies a request for a new
90             game session. Maximum token length is 48 characters. If provided, this
91             string is included in the new game session's ID. (A game session ARN
92             has the following format:
93             C<arn:aws:gamelift:E<lt>regionE<gt>::gamesession/E<lt>fleet
94             IDE<gt>/E<lt>custom ID string or idempotency tokenE<gt>>.)
95              
96              
97              
98             =head2 IdempotencyToken => Str
99              
100             Custom string that uniquely identifies a request for a new game
101             session. Maximum token length is 48 characters. If provided, this
102             string is included in the new game session's ID. (A game session ARN
103             has the following format:
104             C<arn:aws:gamelift:E<lt>regionE<gt>::gamesession/E<lt>fleet
105             IDE<gt>/E<lt>custom ID string or idempotency tokenE<gt>>.) Idempotency
106             tokens remain in use for 30 days after a game session has ended; game
107             session objects are retained for this time period and then deleted.
108              
109              
110              
111             =head2 B<REQUIRED> MaximumPlayerSessionCount => Int
112              
113             Maximum number of players that can be connected simultaneously to the
114             game session.
115              
116              
117              
118             =head2 Name => Str
119              
120             Descriptive label that is associated with a game session. Session names
121             do not need to be unique.
122              
123              
124              
125              
126             =head1 SEE ALSO
127              
128             This class forms part of L<Paws>, documenting arguments for method CreateGameSession in L<Paws::GameLift>
129              
130             =head1 BUGS and CONTRIBUTIONS
131              
132             The source code is located here: https://github.com/pplu/aws-sdk-perl
133              
134             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
135              
136             =cut
137