/AWS1/CL_GMLRESRCCREATIONLMT00¶
A policy that puts limits on the number of game sessions that a player can create within a specified span of time. With this policy, you can control players' ability to consume available resources.
The policy is evaluated when a player tries to create a new game session. On receiving
a CreateGameSession request, Amazon GameLift Servers checks that the player (identified by
CreatorId) has created fewer than game session limit in the specified
time period.
The purpose of this policy is to prevent a single player from consuming a large share of
available hosting resources. For example, setting NewGameSessionsPerCreator to
4 and PolicyPeriodInMinutes to 10 limits each player
to creating 4 game sessions every 10 minutes. Setting these values too high (for example,
200 game sessions every 1000 minutes) still allows a single player to rapidly consume
resources. We recommend keeping these values small.
CONSTRUCTOR¶
IMPORTING¶
Optional arguments:¶
iv_newgamesessionspercreator TYPE /AWS1/GMLWHOLENUMBER /AWS1/GMLWHOLENUMBER¶
A policy that puts limits on the number of game sessions that a player can create within a specified span of time. With this policy, you can control players' ability to consume available resources.
The policy is evaluated when a player tries to create a new game session. On receiving a
CreateGameSessionrequest, Amazon GameLift Servers checks that the player (identified byCreatorId) has created fewer than game session limit in the specified time period.
iv_policyperiodinminutes TYPE /AWS1/GMLWHOLENUMBER /AWS1/GMLWHOLENUMBER¶
The time span used in evaluating the resource creation limit policy.
Queryable Attributes¶
NewGameSessionsPerCreator¶
A policy that puts limits on the number of game sessions that a player can create within a specified span of time. With this policy, you can control players' ability to consume available resources.
The policy is evaluated when a player tries to create a new game session. On receiving a
CreateGameSessionrequest, Amazon GameLift Servers checks that the player (identified byCreatorId) has created fewer than game session limit in the specified time period.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_NEWGAMESESSSPERCREATOR() |
Getter for NEWGAMESESSIONSPERCREATOR, with configurable defa |
ASK_NEWGAMESESSSPERCREATOR() |
Getter for NEWGAMESESSIONSPERCREATOR w/ exceptions if field |
HAS_NEWGAMESESSSPERCREATOR() |
Determine if NEWGAMESESSIONSPERCREATOR has a value |
PolicyPeriodInMinutes¶
The time span used in evaluating the resource creation limit policy.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_POLICYPERIODINMINUTES() |
Getter for POLICYPERIODINMINUTES, with configurable default |
ASK_POLICYPERIODINMINUTES() |
Getter for POLICYPERIODINMINUTES w/ exceptions if field has |
HAS_POLICYPERIODINMINUTES() |
Determine if POLICYPERIODINMINUTES has a value |