Skip to content

ResourceCreationLimitPolicy

Source code in docs_src/capo_gamelift/types/resource_creation_limit_policy.py
class ResourceCreationLimitPolicy(TypedDict, closed=True):
    new_game_sessions_per_creator: NotRequired[
        "capo_gamelift.types.whole_number.WholeNumber"
    ]
    """<p>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.</p> <p>The policy is evaluated when a player tries to create a new game session. On receiving a <code>CreateGameSession</code> request, Amazon GameLift Servers checks that the player (identified by <code>CreatorId</code>) has created fewer than the game session limit in the specified time period.</p>"""
    policy_period_in_minutes: NotRequired[
        "capo_gamelift.types.whole_number.WholeNumber"
    ]
    """<p>The time span used in evaluating the resource creation limit policy. </p>"""

new_game_sessions_per_creator instance-attribute

new_game_sessions_per_creator: NotRequired[WholeNumber]

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 the game session limit in the specified time period.

policy_period_in_minutes instance-attribute

policy_period_in_minutes: NotRequired[WholeNumber]

The time span used in evaluating the resource creation limit policy.