All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.gamelift.kotlin.GameSessionQueueArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.gamelift.kotlin

import com.pulumi.awsnative.gamelift.GameSessionQueueArgs.builder
import com.pulumi.awsnative.gamelift.kotlin.inputs.GameSessionQueueDestinationArgs
import com.pulumi.awsnative.gamelift.kotlin.inputs.GameSessionQueueDestinationArgsBuilder
import com.pulumi.awsnative.gamelift.kotlin.inputs.GameSessionQueueFilterConfigurationArgs
import com.pulumi.awsnative.gamelift.kotlin.inputs.GameSessionQueueFilterConfigurationArgsBuilder
import com.pulumi.awsnative.gamelift.kotlin.inputs.GameSessionQueuePlayerLatencyPolicyArgs
import com.pulumi.awsnative.gamelift.kotlin.inputs.GameSessionQueuePlayerLatencyPolicyArgsBuilder
import com.pulumi.awsnative.gamelift.kotlin.inputs.GameSessionQueuePriorityConfigurationArgs
import com.pulumi.awsnative.gamelift.kotlin.inputs.GameSessionQueuePriorityConfigurationArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The AWS::GameLift::GameSessionQueue resource creates an Amazon GameLift (GameLift) game session queue.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property customEventData Information that is added to all events that are related to this game session queue.
 * @property destinations A list of fleets and/or fleet aliases that can be used to fulfill game session placement requests in the queue.
 * @property filterConfiguration A list of locations where a queue is allowed to place new game sessions.
 * @property name A descriptive label that is associated with game session queue. Queue names must be unique within each Region.
 * @property notificationTarget An SNS topic ARN that is set up to receive game session placement notifications.
 * @property playerLatencyPolicies A set of policies that act as a sliding cap on player latency.
 * @property priorityConfiguration Custom settings to use when prioritizing destinations and locations for game session placements.
 * @property tags An array of key-value pairs to apply to this resource.
 * @property timeoutInSeconds The maximum time, in seconds, that a new game session placement request remains in the queue.
 */
public data class GameSessionQueueArgs(
    public val customEventData: Output? = null,
    public val destinations: Output>? = null,
    public val filterConfiguration: Output? = null,
    public val name: Output? = null,
    public val notificationTarget: Output? = null,
    public val playerLatencyPolicies: Output>? = null,
    public val priorityConfiguration: Output? = null,
    public val tags: Output>? = null,
    public val timeoutInSeconds: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.gamelift.GameSessionQueueArgs =
        com.pulumi.awsnative.gamelift.GameSessionQueueArgs.builder()
            .customEventData(customEventData?.applyValue({ args0 -> args0 }))
            .destinations(
                destinations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .filterConfiguration(
                filterConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .notificationTarget(notificationTarget?.applyValue({ args0 -> args0 }))
            .playerLatencyPolicies(
                playerLatencyPolicies?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .priorityConfiguration(
                priorityConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .timeoutInSeconds(timeoutInSeconds?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GameSessionQueueArgs].
 */
@PulumiTagMarker
public class GameSessionQueueArgsBuilder internal constructor() {
    private var customEventData: Output? = null

    private var destinations: Output>? = null

    private var filterConfiguration: Output? = null

    private var name: Output? = null

    private var notificationTarget: Output? = null

    private var playerLatencyPolicies: Output>? = null

    private var priorityConfiguration: Output? = null

    private var tags: Output>? = null

    private var timeoutInSeconds: Output? = null

    /**
     * @param value Information that is added to all events that are related to this game session queue.
     */
    @JvmName("ucbryvvthkjhhooq")
    public suspend fun customEventData(`value`: Output) {
        this.customEventData = value
    }

    /**
     * @param value A list of fleets and/or fleet aliases that can be used to fulfill game session placement requests in the queue.
     */
    @JvmName("wlpmkaiioktwhlqr")
    public suspend fun destinations(`value`: Output>) {
        this.destinations = value
    }

    @JvmName("jequfyduvvjolsyv")
    public suspend fun destinations(vararg values: Output) {
        this.destinations = Output.all(values.asList())
    }

    /**
     * @param values A list of fleets and/or fleet aliases that can be used to fulfill game session placement requests in the queue.
     */
    @JvmName("slkkpqrrrbvxlwsw")
    public suspend fun destinations(values: List>) {
        this.destinations = Output.all(values)
    }

    /**
     * @param value A list of locations where a queue is allowed to place new game sessions.
     */
    @JvmName("bngorsfefkgteeob")
    public suspend fun filterConfiguration(`value`: Output) {
        this.filterConfiguration = value
    }

    /**
     * @param value A descriptive label that is associated with game session queue. Queue names must be unique within each Region.
     */
    @JvmName("olvtwgkcbcqmdqri")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value An SNS topic ARN that is set up to receive game session placement notifications.
     */
    @JvmName("momymvijvcnbhacq")
    public suspend fun notificationTarget(`value`: Output) {
        this.notificationTarget = value
    }

    /**
     * @param value A set of policies that act as a sliding cap on player latency.
     */
    @JvmName("hntnogmkoyurdcgo")
    public suspend fun playerLatencyPolicies(`value`: Output>) {
        this.playerLatencyPolicies = value
    }

    @JvmName("ttxwgvweubybtxxp")
    public suspend fun playerLatencyPolicies(vararg values: Output) {
        this.playerLatencyPolicies = Output.all(values.asList())
    }

    /**
     * @param values A set of policies that act as a sliding cap on player latency.
     */
    @JvmName("reqiuwajfdfvstio")
    public suspend fun playerLatencyPolicies(values: List>) {
        this.playerLatencyPolicies = Output.all(values)
    }

    /**
     * @param value Custom settings to use when prioritizing destinations and locations for game session placements.
     */
    @JvmName("egfcpbirfyixiuut")
    public suspend fun priorityConfiguration(`value`: Output) {
        this.priorityConfiguration = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("isyapcvvcdvexsjp")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("rfcfusuastqlbysi")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("megputxsypeqmpic")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The maximum time, in seconds, that a new game session placement request remains in the queue.
     */
    @JvmName("pdpvfiajgwgjmdkh")
    public suspend fun timeoutInSeconds(`value`: Output) {
        this.timeoutInSeconds = value
    }

    /**
     * @param value Information that is added to all events that are related to this game session queue.
     */
    @JvmName("nhtigtkcwwonaxuk")
    public suspend fun customEventData(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customEventData = mapped
    }

    /**
     * @param value A list of fleets and/or fleet aliases that can be used to fulfill game session placement requests in the queue.
     */
    @JvmName("vdbjrfklnkvulbnk")
    public suspend fun destinations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.destinations = mapped
    }

    /**
     * @param argument A list of fleets and/or fleet aliases that can be used to fulfill game session placement requests in the queue.
     */
    @JvmName("jowysbhyayuifngb")
    public suspend fun destinations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GameSessionQueueDestinationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.destinations = mapped
    }

    /**
     * @param argument A list of fleets and/or fleet aliases that can be used to fulfill game session placement requests in the queue.
     */
    @JvmName("blifrpadjwtyiuek")
    public suspend fun destinations(vararg argument: suspend GameSessionQueueDestinationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GameSessionQueueDestinationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.destinations = mapped
    }

    /**
     * @param argument A list of fleets and/or fleet aliases that can be used to fulfill game session placement requests in the queue.
     */
    @JvmName("bwkupkowkomwdmha")
    public suspend fun destinations(argument: suspend GameSessionQueueDestinationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            GameSessionQueueDestinationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.destinations = mapped
    }

    /**
     * @param values A list of fleets and/or fleet aliases that can be used to fulfill game session placement requests in the queue.
     */
    @JvmName("rgxxyxgpaymhgvmh")
    public suspend fun destinations(vararg values: GameSessionQueueDestinationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.destinations = mapped
    }

    /**
     * @param value A list of locations where a queue is allowed to place new game sessions.
     */
    @JvmName("sqnxyetnelubvdtb")
    public suspend fun filterConfiguration(`value`: GameSessionQueueFilterConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filterConfiguration = mapped
    }

    /**
     * @param argument A list of locations where a queue is allowed to place new game sessions.
     */
    @JvmName("tbnddwavaglqsvrq")
    public suspend fun filterConfiguration(argument: suspend GameSessionQueueFilterConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = GameSessionQueueFilterConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.filterConfiguration = mapped
    }

    /**
     * @param value A descriptive label that is associated with game session queue. Queue names must be unique within each Region.
     */
    @JvmName("ukiayjrehxfqsunn")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value An SNS topic ARN that is set up to receive game session placement notifications.
     */
    @JvmName("xofkgkidsiulssyq")
    public suspend fun notificationTarget(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notificationTarget = mapped
    }

    /**
     * @param value A set of policies that act as a sliding cap on player latency.
     */
    @JvmName("xdwxnewhtpgryxru")
    public suspend fun playerLatencyPolicies(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.playerLatencyPolicies = mapped
    }

    /**
     * @param argument A set of policies that act as a sliding cap on player latency.
     */
    @JvmName("npqylcsormimavrq")
    public suspend fun playerLatencyPolicies(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GameSessionQueuePlayerLatencyPolicyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.playerLatencyPolicies = mapped
    }

    /**
     * @param argument A set of policies that act as a sliding cap on player latency.
     */
    @JvmName("huojrcjrmkxwiiam")
    public suspend fun playerLatencyPolicies(vararg argument: suspend GameSessionQueuePlayerLatencyPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GameSessionQueuePlayerLatencyPolicyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.playerLatencyPolicies = mapped
    }

    /**
     * @param argument A set of policies that act as a sliding cap on player latency.
     */
    @JvmName("ixhpwfrauyxmbywg")
    public suspend fun playerLatencyPolicies(argument: suspend GameSessionQueuePlayerLatencyPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            GameSessionQueuePlayerLatencyPolicyArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.playerLatencyPolicies = mapped
    }

    /**
     * @param values A set of policies that act as a sliding cap on player latency.
     */
    @JvmName("pcvpttyhainpkmrp")
    public suspend fun playerLatencyPolicies(vararg values: GameSessionQueuePlayerLatencyPolicyArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.playerLatencyPolicies = mapped
    }

    /**
     * @param value Custom settings to use when prioritizing destinations and locations for game session placements.
     */
    @JvmName("yelqqhjfbtmyosej")
    public suspend fun priorityConfiguration(`value`: GameSessionQueuePriorityConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.priorityConfiguration = mapped
    }

    /**
     * @param argument Custom settings to use when prioritizing destinations and locations for game session placements.
     */
    @JvmName("pcqyjasvryqhwvde")
    public suspend fun priorityConfiguration(argument: suspend GameSessionQueuePriorityConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = GameSessionQueuePriorityConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.priorityConfiguration = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("asdheehweubpymsu")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("xqoeqaydpqipkpil")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("hycfwxxcqgyctebe")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("lnpuvvopentraiao")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("ivgnyffntlcbgaay")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The maximum time, in seconds, that a new game session placement request remains in the queue.
     */
    @JvmName("lteplkafblddocpi")
    public suspend fun timeoutInSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeoutInSeconds = mapped
    }

    internal fun build(): GameSessionQueueArgs = GameSessionQueueArgs(
        customEventData = customEventData,
        destinations = destinations,
        filterConfiguration = filterConfiguration,
        name = name,
        notificationTarget = notificationTarget,
        playerLatencyPolicies = playerLatencyPolicies,
        priorityConfiguration = priorityConfiguration,
        tags = tags,
        timeoutInSeconds = timeoutInSeconds,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy