Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
The resource creation limit policy is included in FleetAttributes.
See: newResourceCreationLimitPolicy
smart constructor.
ResourceCreationLimitPolicy' | |
|
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
- The maximum number of game sessions that an individual can create during
the policy period.
$sel:policyPeriodInMinutes:ResourceCreationLimitPolicy'
, resourceCreationLimitPolicy_policyPeriodInMinutes
- The time span used in evaluating the resource creation limit policy.
resourceCreationLimitPolicy_newGameSessionsPerCreator :: Lens' ResourceCreationLimitPolicy (Maybe Natural) Source #
The maximum number of game sessions that an individual can create during the policy period.
resourceCreationLimitPolicy_policyPeriodInMinutes :: Lens' ResourceCreationLimitPolicy (Maybe Natural) Source #
The time span used in evaluating the resource creation limit policy.