
com.pulumi.awsnative.gamelift.kotlin.inputs.FleetResourceCreationLimitPolicyArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.gamelift.kotlin.inputs
import com.pulumi.awsnative.gamelift.inputs.FleetResourceCreationLimitPolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A policy that limits the number of game sessions a player can create on the same fleet. This optional policy gives game owners control over how players can consume available game server resources. A resource creation policy makes the following statement: "An individual player can create a maximum number of new game sessions within a specified time period".
* The policy is evaluated when a player tries to create a new game session. For example, assume you have a policy of 10 new game sessions and a time period of 60 minutes. On receiving a CreateGameSession request, Amazon GameLift checks that the player (identified by CreatorId) has created fewer than 10 game sessions in the past 60 minutes.
* @property newGameSessionsPerCreator The maximum number of game sessions that an individual can create during the policy period.
* @property policyPeriodInMinutes The time span used in evaluating the resource creation limit policy.
*/
public data class FleetResourceCreationLimitPolicyArgs(
public val newGameSessionsPerCreator: Output? = null,
public val policyPeriodInMinutes: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.gamelift.inputs.FleetResourceCreationLimitPolicyArgs =
com.pulumi.awsnative.gamelift.inputs.FleetResourceCreationLimitPolicyArgs.builder()
.newGameSessionsPerCreator(newGameSessionsPerCreator?.applyValue({ args0 -> args0 }))
.policyPeriodInMinutes(policyPeriodInMinutes?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FleetResourceCreationLimitPolicyArgs].
*/
@PulumiTagMarker
public class FleetResourceCreationLimitPolicyArgsBuilder internal constructor() {
private var newGameSessionsPerCreator: Output? = null
private var policyPeriodInMinutes: Output? = null
/**
* @param value The maximum number of game sessions that an individual can create during the policy period.
*/
@JvmName("vvoopfcyjhrcitti")
public suspend fun newGameSessionsPerCreator(`value`: Output) {
this.newGameSessionsPerCreator = value
}
/**
* @param value The time span used in evaluating the resource creation limit policy.
*/
@JvmName("mjhiayaxnsyiefan")
public suspend fun policyPeriodInMinutes(`value`: Output) {
this.policyPeriodInMinutes = value
}
/**
* @param value The maximum number of game sessions that an individual can create during the policy period.
*/
@JvmName("dcrytunwndarvgbm")
public suspend fun newGameSessionsPerCreator(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.newGameSessionsPerCreator = mapped
}
/**
* @param value The time span used in evaluating the resource creation limit policy.
*/
@JvmName("xjodtjsrdixwfpsn")
public suspend fun policyPeriodInMinutes(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.policyPeriodInMinutes = mapped
}
internal fun build(): FleetResourceCreationLimitPolicyArgs = FleetResourceCreationLimitPolicyArgs(
newGameSessionsPerCreator = newGameSessionsPerCreator,
policyPeriodInMinutes = policyPeriodInMinutes,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy