
com.pulumi.awsnative.gamelift.kotlin.outputs.GameSessionQueuePlayerLatencyPolicy.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.gamelift.kotlin.outputs
import kotlin.Int
import kotlin.Suppress
/**
* Sets a latency cap for individual players when placing a game session.
* @property maximumIndividualPlayerLatencyMilliseconds The maximum latency value that is allowed for any player, in milliseconds. All policies must have a value set for this property.
* @property policyDurationSeconds The length of time, in seconds, that the policy is enforced while placing a new game session.
*/
public data class GameSessionQueuePlayerLatencyPolicy(
public val maximumIndividualPlayerLatencyMilliseconds: Int? = null,
public val policyDurationSeconds: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.gamelift.outputs.GameSessionQueuePlayerLatencyPolicy): GameSessionQueuePlayerLatencyPolicy = GameSessionQueuePlayerLatencyPolicy(
maximumIndividualPlayerLatencyMilliseconds = javaType.maximumIndividualPlayerLatencyMilliseconds().map({ args0 ->
args0
}).orElse(null),
policyDurationSeconds = javaType.policyDurationSeconds().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy