amazonka-gamelift-2.0: Amazon GameLift SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.GameLift.Types.ResourceCreationLimitPolicy

Description

 
Synopsis

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

  • newGameSessionsPerCreator' :: Maybe Natural

    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.

  • policyPeriodInMinutes :: Maybe Natural

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

Instances

Instances details
FromJSON ResourceCreationLimitPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.ResourceCreationLimitPolicy

ToJSON ResourceCreationLimitPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.ResourceCreationLimitPolicy

Generic ResourceCreationLimitPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.ResourceCreationLimitPolicy

Associated Types

type Rep ResourceCreationLimitPolicy :: Type -> Type #

Read ResourceCreationLimitPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.ResourceCreationLimitPolicy

Show ResourceCreationLimitPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.ResourceCreationLimitPolicy

NFData ResourceCreationLimitPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.ResourceCreationLimitPolicy

Eq ResourceCreationLimitPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.ResourceCreationLimitPolicy

Hashable ResourceCreationLimitPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.ResourceCreationLimitPolicy

type Rep ResourceCreationLimitPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.ResourceCreationLimitPolicy

type Rep ResourceCreationLimitPolicy = D1 ('MetaData "ResourceCreationLimitPolicy" "Amazonka.GameLift.Types.ResourceCreationLimitPolicy" "amazonka-gamelift-2.0-IjhNQby9jLV6gj30IrgsyK" 'False) (C1 ('MetaCons "ResourceCreationLimitPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "newGameSessionsPerCreator'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "policyPeriodInMinutes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))

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.