Interface CfnContainerFleet.IGameSessionCreationLimitPolicyProperty
A policy that puts limits on the number of game sessions that a player can create within a specified span of time.
Namespace: Amazon.CDK.AWS.GameLift
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnContainerFleet.IGameSessionCreationLimitPolicyProperty
Syntax (vb)
Public Interface CfnContainerFleet.IGameSessionCreationLimitPolicyProperty
Remarks
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 game session limit in the specified time period.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.GameLift;
var gameSessionCreationLimitPolicyProperty = new GameSessionCreationLimitPolicyProperty {
NewGameSessionsPerCreator = 123,
PolicyPeriodInMinutes = 123
};
Synopsis
Properties
| NewGameSessionsPerCreator | A policy that puts limits on the number of game sessions that a player can create within a specified span of time. |
| PolicyPeriodInMinutes | The time span used in evaluating the resource creation limit policy. |
Properties
NewGameSessionsPerCreator
A policy that puts limits on the number of game sessions that a player can create within a specified span of time.
double? NewGameSessionsPerCreator { get; }
Property Value
Remarks
With this policy, you can control players' ability to consume available resources.
The policy evaluates 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 game session limit in the specified time period.
PolicyPeriodInMinutes
The time span used in evaluating the resource creation limit policy.
double? PolicyPeriodInMinutes { get; }