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

com.pulumi.awsnative.gamelift.kotlin.inputs.FleetLocationConfigurationArgs.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.inputs

import com.pulumi.awsnative.gamelift.inputs.FleetLocationConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * A remote location where a multi-location fleet can deploy EC2 instances for game hosting.
 * @property location An AWS Region code, such as `us-west-2` .
 * @property locationCapacity Current resource capacity settings for managed EC2 fleets and container fleets. For multi-location fleets, location values might refer to a fleet's remote location or its home Region.
 * *Returned by:* [DescribeFleetCapacity](https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetCapacity.html) , [DescribeFleetLocationCapacity](https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetLocationCapacity.html) , [UpdateFleetCapacity](https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateFleetCapacity.html)
 */
public data class FleetLocationConfigurationArgs(
    public val location: Output,
    public val locationCapacity: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.gamelift.inputs.FleetLocationConfigurationArgs =
        com.pulumi.awsnative.gamelift.inputs.FleetLocationConfigurationArgs.builder()
            .location(location.applyValue({ args0 -> args0 }))
            .locationCapacity(
                locationCapacity?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [FleetLocationConfigurationArgs].
 */
@PulumiTagMarker
public class FleetLocationConfigurationArgsBuilder internal constructor() {
    private var location: Output? = null

    private var locationCapacity: Output? = null

    /**
     * @param value An AWS Region code, such as `us-west-2` .
     */
    @JvmName("mmsufkssmkwxktiu")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Current resource capacity settings for managed EC2 fleets and container fleets. For multi-location fleets, location values might refer to a fleet's remote location or its home Region.
     * *Returned by:* [DescribeFleetCapacity](https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetCapacity.html) , [DescribeFleetLocationCapacity](https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetLocationCapacity.html) , [UpdateFleetCapacity](https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateFleetCapacity.html)
     */
    @JvmName("knbhmngsgbufkvqr")
    public suspend fun locationCapacity(`value`: Output) {
        this.locationCapacity = value
    }

    /**
     * @param value An AWS Region code, such as `us-west-2` .
     */
    @JvmName("fyiefsropultbakg")
    public suspend fun location(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Current resource capacity settings for managed EC2 fleets and container fleets. For multi-location fleets, location values might refer to a fleet's remote location or its home Region.
     * *Returned by:* [DescribeFleetCapacity](https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetCapacity.html) , [DescribeFleetLocationCapacity](https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetLocationCapacity.html) , [UpdateFleetCapacity](https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateFleetCapacity.html)
     */
    @JvmName("fmsybejcvpblwyth")
    public suspend fun locationCapacity(`value`: FleetLocationCapacityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.locationCapacity = mapped
    }

    /**
     * @param argument Current resource capacity settings for managed EC2 fleets and container fleets. For multi-location fleets, location values might refer to a fleet's remote location or its home Region.
     * *Returned by:* [DescribeFleetCapacity](https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetCapacity.html) , [DescribeFleetLocationCapacity](https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetLocationCapacity.html) , [UpdateFleetCapacity](https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateFleetCapacity.html)
     */
    @JvmName("qlmmajafghtatkqr")
    public suspend fun locationCapacity(argument: suspend FleetLocationCapacityArgsBuilder.() -> Unit) {
        val toBeMapped = FleetLocationCapacityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.locationCapacity = mapped
    }

    internal fun build(): FleetLocationConfigurationArgs = FleetLocationConfigurationArgs(
        location = location ?: throw PulumiNullFieldException("location"),
        locationCapacity = locationCapacity,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy