#[non_exhaustive]pub struct ResourceCreationLimitPolicy {
pub new_game_sessions_per_creator: Option<i32>,
pub policy_period_in_minutes: Option<i32>,
}Expand description
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, Amazon GameLift checks that the player (identified by CreatorId) has created fewer than game session limit in the specified time period.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.new_game_sessions_per_creator: Option<i32>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, Amazon GameLift checks that the player (identified by CreatorId) has created fewer than game session limit in the specified time period.
policy_period_in_minutes: Option<i32>The time span used in evaluating the resource creation limit policy.
Implementations§
source§impl ResourceCreationLimitPolicy
impl ResourceCreationLimitPolicy
sourcepub fn new_game_sessions_per_creator(&self) -> Option<i32>
pub fn new_game_sessions_per_creator(&self) -> Option<i32>
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, Amazon GameLift checks that the player (identified by CreatorId) has created fewer than game session limit in the specified time period.
sourcepub fn policy_period_in_minutes(&self) -> Option<i32>
pub fn policy_period_in_minutes(&self) -> Option<i32>
The time span used in evaluating the resource creation limit policy.
source§impl ResourceCreationLimitPolicy
impl ResourceCreationLimitPolicy
sourcepub fn builder() -> ResourceCreationLimitPolicyBuilder
pub fn builder() -> ResourceCreationLimitPolicyBuilder
Creates a new builder-style object to manufacture ResourceCreationLimitPolicy.
Trait Implementations§
source§impl Clone for ResourceCreationLimitPolicy
impl Clone for ResourceCreationLimitPolicy
source§fn clone(&self) -> ResourceCreationLimitPolicy
fn clone(&self) -> ResourceCreationLimitPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ResourceCreationLimitPolicy
impl Debug for ResourceCreationLimitPolicy
source§impl PartialEq<ResourceCreationLimitPolicy> for ResourceCreationLimitPolicy
impl PartialEq<ResourceCreationLimitPolicy> for ResourceCreationLimitPolicy
source§fn eq(&self, other: &ResourceCreationLimitPolicy) -> bool
fn eq(&self, other: &ResourceCreationLimitPolicy) -> bool
self and other values to be equal, and is used
by ==.