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

com.pulumi.awsnative.gamelift.kotlin.MatchmakingConfigurationArgs.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.MatchmakingConfigurationArgs.builder
import com.pulumi.awsnative.gamelift.kotlin.enums.MatchmakingConfigurationBackfillMode
import com.pulumi.awsnative.gamelift.kotlin.enums.MatchmakingConfigurationFlexMatchMode
import com.pulumi.awsnative.gamelift.kotlin.inputs.MatchmakingConfigurationGamePropertyArgs
import com.pulumi.awsnative.gamelift.kotlin.inputs.MatchmakingConfigurationGamePropertyArgsBuilder
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.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The AWS::GameLift::MatchmakingConfiguration resource creates an Amazon GameLift (GameLift) matchmaking configuration.
 * @property acceptanceRequired A flag that indicates whether a match that was created with this configuration must be accepted by the matched players
 * @property acceptanceTimeoutSeconds The length of time (in seconds) to wait for players to accept a proposed match, if acceptance is required.
 * @property additionalPlayerCount The number of player slots in a match to keep open for future players.
 * @property backfillMode The method used to backfill game sessions created with this matchmaking configuration.
 * @property creationTime A time stamp indicating when this data object was created.
 * @property customEventData Information to attach to all events related to the matchmaking configuration.
 * @property description A descriptive label that is associated with matchmaking configuration.
 * @property flexMatchMode Indicates whether this matchmaking configuration is being used with Amazon GameLift hosting or as a standalone matchmaking solution.
 * @property gameProperties A set of custom properties for a game session, formatted as key:value pairs.
 * @property gameSessionData A set of custom game session properties, formatted as a single string value.
 * @property gameSessionQueueArns The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift game session queue resource and uniquely identifies it.
 * @property name A unique identifier for the matchmaking configuration.
 * @property notificationTarget An SNS topic ARN that is set up to receive matchmaking notifications.
 * @property requestTimeoutSeconds The maximum duration, in seconds, that a matchmaking ticket can remain in process before timing out.
 * @property ruleSetArn The Amazon Resource Name (ARN) associated with the GameLift matchmaking rule set resource that this configuration uses.
 * @property ruleSetName A unique identifier for the matchmaking rule set to use with this configuration.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class MatchmakingConfigurationArgs(
    public val acceptanceRequired: Output? = null,
    public val acceptanceTimeoutSeconds: Output? = null,
    public val additionalPlayerCount: Output? = null,
    public val backfillMode: Output? = null,
    public val creationTime: Output? = null,
    public val customEventData: Output? = null,
    public val description: Output? = null,
    public val flexMatchMode: Output? = null,
    public val gameProperties: Output>? = null,
    public val gameSessionData: Output? = null,
    public val gameSessionQueueArns: Output>? = null,
    public val name: Output? = null,
    public val notificationTarget: Output? = null,
    public val requestTimeoutSeconds: Output? = null,
    public val ruleSetArn: Output? = null,
    public val ruleSetName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.gamelift.MatchmakingConfigurationArgs =
        com.pulumi.awsnative.gamelift.MatchmakingConfigurationArgs.builder()
            .acceptanceRequired(acceptanceRequired?.applyValue({ args0 -> args0 }))
            .acceptanceTimeoutSeconds(acceptanceTimeoutSeconds?.applyValue({ args0 -> args0 }))
            .additionalPlayerCount(additionalPlayerCount?.applyValue({ args0 -> args0 }))
            .backfillMode(backfillMode?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .creationTime(creationTime?.applyValue({ args0 -> args0 }))
            .customEventData(customEventData?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .flexMatchMode(flexMatchMode?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .gameProperties(
                gameProperties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .gameSessionData(gameSessionData?.applyValue({ args0 -> args0 }))
            .gameSessionQueueArns(gameSessionQueueArns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .notificationTarget(notificationTarget?.applyValue({ args0 -> args0 }))
            .requestTimeoutSeconds(requestTimeoutSeconds?.applyValue({ args0 -> args0 }))
            .ruleSetArn(ruleSetArn?.applyValue({ args0 -> args0 }))
            .ruleSetName(ruleSetName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [MatchmakingConfigurationArgs].
 */
@PulumiTagMarker
public class MatchmakingConfigurationArgsBuilder internal constructor() {
    private var acceptanceRequired: Output? = null

    private var acceptanceTimeoutSeconds: Output? = null

    private var additionalPlayerCount: Output? = null

    private var backfillMode: Output? = null

    private var creationTime: Output? = null

    private var customEventData: Output? = null

    private var description: Output? = null

    private var flexMatchMode: Output? = null

    private var gameProperties: Output>? = null

    private var gameSessionData: Output? = null

    private var gameSessionQueueArns: Output>? = null

    private var name: Output? = null

    private var notificationTarget: Output? = null

    private var requestTimeoutSeconds: Output? = null

    private var ruleSetArn: Output? = null

    private var ruleSetName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value A flag that indicates whether a match that was created with this configuration must be accepted by the matched players
     */
    @JvmName("bihdwchmoxvavgkj")
    public suspend fun acceptanceRequired(`value`: Output) {
        this.acceptanceRequired = value
    }

    /**
     * @param value The length of time (in seconds) to wait for players to accept a proposed match, if acceptance is required.
     */
    @JvmName("sggxticdophwwouh")
    public suspend fun acceptanceTimeoutSeconds(`value`: Output) {
        this.acceptanceTimeoutSeconds = value
    }

    /**
     * @param value The number of player slots in a match to keep open for future players.
     */
    @JvmName("xlqrclnaarfilspt")
    public suspend fun additionalPlayerCount(`value`: Output) {
        this.additionalPlayerCount = value
    }

    /**
     * @param value The method used to backfill game sessions created with this matchmaking configuration.
     */
    @JvmName("hhdgsyeyxwpltskt")
    public suspend fun backfillMode(`value`: Output) {
        this.backfillMode = value
    }

    /**
     * @param value A time stamp indicating when this data object was created.
     */
    @JvmName("nikepbnqaycyvxbu")
    public suspend fun creationTime(`value`: Output) {
        this.creationTime = value
    }

    /**
     * @param value Information to attach to all events related to the matchmaking configuration.
     */
    @JvmName("esekwnoarxcmqqaa")
    public suspend fun customEventData(`value`: Output) {
        this.customEventData = value
    }

    /**
     * @param value A descriptive label that is associated with matchmaking configuration.
     */
    @JvmName("dhatuiehypafroal")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Indicates whether this matchmaking configuration is being used with Amazon GameLift hosting or as a standalone matchmaking solution.
     */
    @JvmName("kvwqqsswfvbsrcli")
    public suspend fun flexMatchMode(`value`: Output) {
        this.flexMatchMode = value
    }

    /**
     * @param value A set of custom properties for a game session, formatted as key:value pairs.
     */
    @JvmName("jcuivoattoqhfyrm")
    public suspend fun gameProperties(`value`: Output>) {
        this.gameProperties = value
    }

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

    /**
     * @param values A set of custom properties for a game session, formatted as key:value pairs.
     */
    @JvmName("ukqswbafohvotlvr")
    public suspend fun gameProperties(values: List>) {
        this.gameProperties = Output.all(values)
    }

    /**
     * @param value A set of custom game session properties, formatted as a single string value.
     */
    @JvmName("dlddxmhgeqlhsvmy")
    public suspend fun gameSessionData(`value`: Output) {
        this.gameSessionData = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift game session queue resource and uniquely identifies it.
     */
    @JvmName("rifaglyqjtchreuv")
    public suspend fun gameSessionQueueArns(`value`: Output>) {
        this.gameSessionQueueArns = value
    }

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

    /**
     * @param values The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift game session queue resource and uniquely identifies it.
     */
    @JvmName("nwrfxwnpbdemhymo")
    public suspend fun gameSessionQueueArns(values: List>) {
        this.gameSessionQueueArns = Output.all(values)
    }

    /**
     * @param value A unique identifier for the matchmaking configuration.
     */
    @JvmName("fejjvusoiekfvhuu")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

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

    /**
     * @param value The maximum duration, in seconds, that a matchmaking ticket can remain in process before timing out.
     */
    @JvmName("cfjifsaqmtxkhqca")
    public suspend fun requestTimeoutSeconds(`value`: Output) {
        this.requestTimeoutSeconds = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) associated with the GameLift matchmaking rule set resource that this configuration uses.
     */
    @JvmName("regrmdyyelgagtcg")
    public suspend fun ruleSetArn(`value`: Output) {
        this.ruleSetArn = value
    }

    /**
     * @param value A unique identifier for the matchmaking rule set to use with this configuration.
     */
    @JvmName("nbhsvgeinfcamrxa")
    public suspend fun ruleSetName(`value`: Output) {
        this.ruleSetName = value
    }

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

    @JvmName("ipwcwjavryxomkvv")
    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("tptdyhaxwrgkkliw")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value A flag that indicates whether a match that was created with this configuration must be accepted by the matched players
     */
    @JvmName("ektialodwvmoqrqe")
    public suspend fun acceptanceRequired(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.acceptanceRequired = mapped
    }

    /**
     * @param value The length of time (in seconds) to wait for players to accept a proposed match, if acceptance is required.
     */
    @JvmName("aemkktnmgustyygv")
    public suspend fun acceptanceTimeoutSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.acceptanceTimeoutSeconds = mapped
    }

    /**
     * @param value The number of player slots in a match to keep open for future players.
     */
    @JvmName("njdwngqueuitcvvk")
    public suspend fun additionalPlayerCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.additionalPlayerCount = mapped
    }

    /**
     * @param value The method used to backfill game sessions created with this matchmaking configuration.
     */
    @JvmName("uflsgfqtohbixjgv")
    public suspend fun backfillMode(`value`: MatchmakingConfigurationBackfillMode?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.backfillMode = mapped
    }

    /**
     * @param value A time stamp indicating when this data object was created.
     */
    @JvmName("mwwidppjusyxdmaf")
    public suspend fun creationTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.creationTime = mapped
    }

    /**
     * @param value Information to attach to all events related to the matchmaking configuration.
     */
    @JvmName("xqrtexbygseuxdjh")
    public suspend fun customEventData(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customEventData = mapped
    }

    /**
     * @param value A descriptive label that is associated with matchmaking configuration.
     */
    @JvmName("njxsygsmqjmcexxd")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Indicates whether this matchmaking configuration is being used with Amazon GameLift hosting or as a standalone matchmaking solution.
     */
    @JvmName("taaoekcjllvnsqre")
    public suspend fun flexMatchMode(`value`: MatchmakingConfigurationFlexMatchMode?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.flexMatchMode = mapped
    }

    /**
     * @param value A set of custom properties for a game session, formatted as key:value pairs.
     */
    @JvmName("rabyqrbektsqoqub")
    public suspend fun gameProperties(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.gameProperties = mapped
    }

    /**
     * @param argument A set of custom properties for a game session, formatted as key:value pairs.
     */
    @JvmName("firvcbvrbgqbbmky")
    public suspend fun gameProperties(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            MatchmakingConfigurationGamePropertyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.gameProperties = mapped
    }

    /**
     * @param argument A set of custom properties for a game session, formatted as key:value pairs.
     */
    @JvmName("crdptjudcyqqokrv")
    public suspend fun gameProperties(vararg argument: suspend MatchmakingConfigurationGamePropertyArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            MatchmakingConfigurationGamePropertyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.gameProperties = mapped
    }

    /**
     * @param argument A set of custom properties for a game session, formatted as key:value pairs.
     */
    @JvmName("mgjngqifqnsqmhqx")
    public suspend fun gameProperties(argument: suspend MatchmakingConfigurationGamePropertyArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            MatchmakingConfigurationGamePropertyArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.gameProperties = mapped
    }

    /**
     * @param values A set of custom properties for a game session, formatted as key:value pairs.
     */
    @JvmName("pndfbpqxuxoaxbnx")
    public suspend fun gameProperties(vararg values: MatchmakingConfigurationGamePropertyArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.gameProperties = mapped
    }

    /**
     * @param value A set of custom game session properties, formatted as a single string value.
     */
    @JvmName("qknsurkdibnrpbtj")
    public suspend fun gameSessionData(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.gameSessionData = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift game session queue resource and uniquely identifies it.
     */
    @JvmName("scwwcvmjfdhtgipu")
    public suspend fun gameSessionQueueArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.gameSessionQueueArns = mapped
    }

    /**
     * @param values The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift game session queue resource and uniquely identifies it.
     */
    @JvmName("eduuugkmsjedfqcb")
    public suspend fun gameSessionQueueArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.gameSessionQueueArns = mapped
    }

    /**
     * @param value A unique identifier for the matchmaking configuration.
     */
    @JvmName("ceitstkxgeeqtocd")
    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 matchmaking notifications.
     */
    @JvmName("fvkvdyiqdanocaiy")
    public suspend fun notificationTarget(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notificationTarget = mapped
    }

    /**
     * @param value The maximum duration, in seconds, that a matchmaking ticket can remain in process before timing out.
     */
    @JvmName("qdreqvtbuhitaejb")
    public suspend fun requestTimeoutSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requestTimeoutSeconds = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) associated with the GameLift matchmaking rule set resource that this configuration uses.
     */
    @JvmName("arivowkfebmarlnn")
    public suspend fun ruleSetArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ruleSetArn = mapped
    }

    /**
     * @param value A unique identifier for the matchmaking rule set to use with this configuration.
     */
    @JvmName("licnsweyqooihnku")
    public suspend fun ruleSetName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ruleSetName = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("kkkibdmscxfiegkv")
    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("ihqcixdpqrnobgdi")
    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("qsvqpufrsokdhxov")
    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("vnmnvaysqlqekwmj")
    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("owetqwvtdjgsuyhm")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): MatchmakingConfigurationArgs = MatchmakingConfigurationArgs(
        acceptanceRequired = acceptanceRequired,
        acceptanceTimeoutSeconds = acceptanceTimeoutSeconds,
        additionalPlayerCount = additionalPlayerCount,
        backfillMode = backfillMode,
        creationTime = creationTime,
        customEventData = customEventData,
        description = description,
        flexMatchMode = flexMatchMode,
        gameProperties = gameProperties,
        gameSessionData = gameSessionData,
        gameSessionQueueArns = gameSessionQueueArns,
        name = name,
        notificationTarget = notificationTarget,
        requestTimeoutSeconds = requestTimeoutSeconds,
        ruleSetArn = ruleSetArn,
        ruleSetName = ruleSetName,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy