libZSservicesZSamazonka-gameliftZSamazonka-gamelift
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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.

The resource creation limit policy is included in FleetAttributes.

See: newResourceCreationLimitPolicy smart constructor.

Constructors

ResourceCreationLimitPolicy' 

Fields

Instances

Instances details
Eq ResourceCreationLimitPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.ResourceCreationLimitPolicy

Read ResourceCreationLimitPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.ResourceCreationLimitPolicy

Show 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 #

NFData ResourceCreationLimitPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.ResourceCreationLimitPolicy

Hashable ResourceCreationLimitPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.ResourceCreationLimitPolicy

ToJSON ResourceCreationLimitPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.ResourceCreationLimitPolicy

FromJSON 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" "libZSservicesZSamazonka-gameliftZSamazonka-gamelift" '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 - 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.