| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.GameLift.Types.ResourceCreationLimitPolicy
Description
Synopsis
- data ResourceCreationLimitPolicy = ResourceCreationLimitPolicy' {}
- newResourceCreationLimitPolicy :: ResourceCreationLimitPolicy
- resourceCreationLimitPolicy_newGameSessionsPerCreator :: Lens' ResourceCreationLimitPolicy (Maybe Natural)
- resourceCreationLimitPolicy_policyPeriodInMinutes :: Lens' ResourceCreationLimitPolicy (Maybe Natural)
Documentation
data ResourceCreationLimitPolicy Source #
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, GameLift checks
that the player (identified by CreatorId) has created fewer than game
session limit in the specified time period.
See: newResourceCreationLimitPolicy smart constructor.
Constructors
| ResourceCreationLimitPolicy' | |
Fields
| |
Instances
newResourceCreationLimitPolicy :: ResourceCreationLimitPolicy Source #
Create a value of ResourceCreationLimitPolicy with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:newGameSessionsPerCreator':ResourceCreationLimitPolicy', resourceCreationLimitPolicy_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 CreateGameSession request, GameLift checks
that the player (identified by CreatorId) has created fewer than game
session limit in the specified time period.
$sel:policyPeriodInMinutes:ResourceCreationLimitPolicy', resourceCreationLimitPolicy_policyPeriodInMinutes - The time span used in evaluating the resource creation limit policy.
resourceCreationLimitPolicy_newGameSessionsPerCreator :: Lens' ResourceCreationLimitPolicy (Maybe Natural) Source #
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, GameLift checks
that the player (identified by CreatorId) has created fewer than game
session limit in the specified time period.
resourceCreationLimitPolicy_policyPeriodInMinutes :: Lens' ResourceCreationLimitPolicy (Maybe Natural) Source #
The time span used in evaluating the resource creation limit policy.