
com.pulumi.awsnative.gamelift.kotlin.MatchmakingConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.gamelift.kotlin
import com.pulumi.awsnative.gamelift.kotlin.enums.MatchmakingConfigurationBackfillMode
import com.pulumi.awsnative.gamelift.kotlin.enums.MatchmakingConfigurationFlexMatchMode
import com.pulumi.awsnative.gamelift.kotlin.outputs.MatchmakingConfigurationGameProperty
import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import com.pulumi.awsnative.gamelift.kotlin.enums.MatchmakingConfigurationBackfillMode.Companion.toKotlin as matchmakingConfigurationBackfillModeToKotlin
import com.pulumi.awsnative.gamelift.kotlin.enums.MatchmakingConfigurationFlexMatchMode.Companion.toKotlin as matchmakingConfigurationFlexMatchModeToKotlin
import com.pulumi.awsnative.gamelift.kotlin.outputs.MatchmakingConfigurationGameProperty.Companion.toKotlin as matchmakingConfigurationGamePropertyToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
/**
* Builder for [MatchmakingConfiguration].
*/
@PulumiTagMarker
public class MatchmakingConfigurationResourceBuilder internal constructor() {
public var name: String? = null
public var args: MatchmakingConfigurationArgs = MatchmakingConfigurationArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend MatchmakingConfigurationArgsBuilder.() -> Unit) {
val builder = MatchmakingConfigurationArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): MatchmakingConfiguration {
val builtJavaResource =
com.pulumi.awsnative.gamelift.MatchmakingConfiguration(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return MatchmakingConfiguration(builtJavaResource)
}
}
/**
* The AWS::GameLift::MatchmakingConfiguration resource creates an Amazon GameLift (GameLift) matchmaking configuration.
*/
public class MatchmakingConfiguration internal constructor(
override val javaResource: com.pulumi.awsnative.gamelift.MatchmakingConfiguration,
) : KotlinCustomResource(javaResource, MatchmakingConfigurationMapper) {
/**
* A flag that indicates whether a match that was created with this configuration must be accepted by the matched players
*/
public val acceptanceRequired: Output
get() = javaResource.acceptanceRequired().applyValue({ args0 -> args0 })
/**
* The length of time (in seconds) to wait for players to accept a proposed match, if acceptance is required.
*/
public val acceptanceTimeoutSeconds: Output?
get() = javaResource.acceptanceTimeoutSeconds().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The number of player slots in a match to keep open for future players.
*/
public val additionalPlayerCount: Output?
get() = javaResource.additionalPlayerCount().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift matchmaking configuration resource and uniquely identifies it.
*/
public val arn: Output
get() = javaResource.arn().applyValue({ args0 -> args0 })
/**
* The method used to backfill game sessions created with this matchmaking configuration.
*/
public val backfillMode: Output?
get() = javaResource.backfillMode().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
matchmakingConfigurationBackfillModeToKotlin(args0)
})
}).orElse(null)
})
/**
* A time stamp indicating when this data object was created.
*/
public val creationTime: Output?
get() = javaResource.creationTime().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Information to attach to all events related to the matchmaking configuration.
*/
public val customEventData: Output?
get() = javaResource.customEventData().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* A descriptive label that is associated with matchmaking configuration.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Indicates whether this matchmaking configuration is being used with Amazon GameLift hosting or as a standalone matchmaking solution.
*/
public val flexMatchMode: Output?
get() = javaResource.flexMatchMode().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> matchmakingConfigurationFlexMatchModeToKotlin(args0) })
}).orElse(null)
})
/**
* A set of custom properties for a game session, formatted as key:value pairs.
*/
public val gameProperties: Output>?
get() = javaResource.gameProperties().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
matchmakingConfigurationGamePropertyToKotlin(args0)
})
})
}).orElse(null)
})
/**
* A set of custom game session properties, formatted as a single string value.
*/
public val gameSessionData: Output?
get() = javaResource.gameSessionData().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift game session queue resource and uniquely identifies it.
*/
public val gameSessionQueueArns: Output>?
get() = javaResource.gameSessionQueueArns().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 -> args0 })
}).orElse(null)
})
/**
* A unique identifier for the matchmaking configuration.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* An SNS topic ARN that is set up to receive matchmaking notifications.
*/
public val notificationTarget: Output?
get() = javaResource.notificationTarget().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The maximum duration, in seconds, that a matchmaking ticket can remain in process before timing out.
*/
public val requestTimeoutSeconds: Output
get() = javaResource.requestTimeoutSeconds().applyValue({ args0 -> args0 })
/**
* The Amazon Resource Name (ARN) associated with the GameLift matchmaking rule set resource that this configuration uses.
*/
public val ruleSetArn: Output?
get() = javaResource.ruleSetArn().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* A unique identifier for the matchmaking rule set to use with this configuration.
*/
public val ruleSetName: Output
get() = javaResource.ruleSetName().applyValue({ args0 -> args0 })
/**
* An array of key-value pairs to apply to this resource.
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> tagToKotlin(args0) })
})
}).orElse(null)
})
}
public object MatchmakingConfigurationMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.gamelift.MatchmakingConfiguration::class == javaResource::class
override fun map(javaResource: Resource): MatchmakingConfiguration =
MatchmakingConfiguration(
javaResource as
com.pulumi.awsnative.gamelift.MatchmakingConfiguration,
)
}
/**
* @see [MatchmakingConfiguration].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [MatchmakingConfiguration].
*/
public suspend fun matchmakingConfiguration(
name: String,
block: suspend MatchmakingConfigurationResourceBuilder.() -> Unit,
): MatchmakingConfiguration {
val builder = MatchmakingConfigurationResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [MatchmakingConfiguration].
* @param name The _unique_ name of the resulting resource.
*/
public fun matchmakingConfiguration(name: String): MatchmakingConfiguration {
val builder = MatchmakingConfigurationResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy