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

com.pulumi.awsnative.gamelift.kotlin.AliasArgs.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.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.gamelift.kotlin

import com.pulumi.awsnative.gamelift.AliasArgs.builder
import com.pulumi.awsnative.gamelift.kotlin.inputs.AliasRoutingStrategyArgs
import com.pulumi.awsnative.gamelift.kotlin.inputs.AliasRoutingStrategyArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The AWS::GameLift::Alias resource creates an alias for an Amazon GameLift (GameLift) fleet destination.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property description A human-readable description of the alias.
 * @property name A descriptive label that is associated with an alias. Alias names do not need to be unique.
 * @property routingStrategy A routing configuration that specifies where traffic is directed for this alias, such as to a fleet or to a message.
 */
public data class AliasArgs(
    public val description: Output? = null,
    public val name: Output? = null,
    public val routingStrategy: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.gamelift.AliasArgs =
        com.pulumi.awsnative.gamelift.AliasArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .routingStrategy(
                routingStrategy?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [AliasArgs].
 */
@PulumiTagMarker
public class AliasArgsBuilder internal constructor() {
    private var description: Output? = null

    private var name: Output? = null

    private var routingStrategy: Output? = null

    /**
     * @param value A human-readable description of the alias.
     */
    @JvmName("wcmdkpoddihprhvb")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value A descriptive label that is associated with an alias. Alias names do not need to be unique.
     */
    @JvmName("luqdwghmxohdyeao")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A routing configuration that specifies where traffic is directed for this alias, such as to a fleet or to a message.
     */
    @JvmName("ndevngtnfmgddvps")
    public suspend fun routingStrategy(`value`: Output) {
        this.routingStrategy = value
    }

    /**
     * @param value A human-readable description of the alias.
     */
    @JvmName("thdnhqifpmxyvrmy")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value A descriptive label that is associated with an alias. Alias names do not need to be unique.
     */
    @JvmName("xbsoukixenmwphkb")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A routing configuration that specifies where traffic is directed for this alias, such as to a fleet or to a message.
     */
    @JvmName("mlrvekqrioyklyfl")
    public suspend fun routingStrategy(`value`: AliasRoutingStrategyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.routingStrategy = mapped
    }

    /**
     * @param argument A routing configuration that specifies where traffic is directed for this alias, such as to a fleet or to a message.
     */
    @JvmName("ifbcefcxppffjkyf")
    public suspend fun routingStrategy(argument: suspend AliasRoutingStrategyArgsBuilder.() -> Unit) {
        val toBeMapped = AliasRoutingStrategyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.routingStrategy = mapped
    }

    internal fun build(): AliasArgs = AliasArgs(
        description = description,
        name = name,
        routingStrategy = routingStrategy,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy