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.PlayerLatencyPolicy

Description

 
Synopsis

Documentation

data PlayerLatencyPolicy Source #

Sets a latency cap for individual players when placing a game session. With a latency policy in force, a game session cannot be placed in a fleet location where a player reports latency higher than the cap. Latency policies are used only with placement request that provide player latency information. Player latency policies can be stacked to gradually relax latency requirements over time.

Latency policies are part of a GameSessionQueue.

See: newPlayerLatencyPolicy smart constructor.

Constructors

PlayerLatencyPolicy' 

Fields

Instances

Instances details
Eq PlayerLatencyPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.PlayerLatencyPolicy

Read PlayerLatencyPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.PlayerLatencyPolicy

Show PlayerLatencyPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.PlayerLatencyPolicy

Generic PlayerLatencyPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.PlayerLatencyPolicy

Associated Types

type Rep PlayerLatencyPolicy :: Type -> Type #

NFData PlayerLatencyPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.PlayerLatencyPolicy

Methods

rnf :: PlayerLatencyPolicy -> () #

Hashable PlayerLatencyPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.PlayerLatencyPolicy

ToJSON PlayerLatencyPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.PlayerLatencyPolicy

FromJSON PlayerLatencyPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.PlayerLatencyPolicy

type Rep PlayerLatencyPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.PlayerLatencyPolicy

type Rep PlayerLatencyPolicy = D1 ('MetaData "PlayerLatencyPolicy" "Amazonka.GameLift.Types.PlayerLatencyPolicy" "libZSservicesZSamazonka-gameliftZSamazonka-gamelift" 'False) (C1 ('MetaCons "PlayerLatencyPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policyDurationSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "maximumIndividualPlayerLatencyMilliseconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))

newPlayerLatencyPolicy :: PlayerLatencyPolicy Source #

Create a value of PlayerLatencyPolicy 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:policyDurationSeconds:PlayerLatencyPolicy', playerLatencyPolicy_policyDurationSeconds - The length of time, in seconds, that the policy is enforced while placing a new game session. A null value for this property means that the policy is enforced until the queue times out.

$sel:maximumIndividualPlayerLatencyMilliseconds:PlayerLatencyPolicy', playerLatencyPolicy_maximumIndividualPlayerLatencyMilliseconds - The maximum latency value that is allowed for any player, in milliseconds. All policies must have a value set for this property.

playerLatencyPolicy_policyDurationSeconds :: Lens' PlayerLatencyPolicy (Maybe Natural) Source #

The length of time, in seconds, that the policy is enforced while placing a new game session. A null value for this property means that the policy is enforced until the queue times out.

playerLatencyPolicy_maximumIndividualPlayerLatencyMilliseconds :: Lens' PlayerLatencyPolicy (Maybe Natural) Source #

The maximum latency value that is allowed for any player, in milliseconds. All policies must have a value set for this property.