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

See: newPlayerLatencyPolicy smart constructor.

Constructors

PlayerLatencyPolicy' 

Fields

Instances

Instances details
FromJSON PlayerLatencyPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.PlayerLatencyPolicy

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

Read PlayerLatencyPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.PlayerLatencyPolicy

Show PlayerLatencyPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.PlayerLatencyPolicy

NFData PlayerLatencyPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.PlayerLatencyPolicy

Methods

rnf :: PlayerLatencyPolicy -> () #

Eq PlayerLatencyPolicy Source # 
Instance details

Defined in Amazonka.GameLift.Types.PlayerLatencyPolicy

Hashable 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" "amazonka-gamelift-2.0-IjhNQby9jLV6gj30IrgsyK" 'False) (C1 ('MetaCons "PlayerLatencyPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maximumIndividualPlayerLatencyMilliseconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "policyDurationSeconds") '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: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.

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

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.

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.