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

com.pulumi.alicloud.arms.kotlin.EnvironmentArgs.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: 3.62.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.alicloud.arms.kotlin

import com.pulumi.alicloud.arms.EnvironmentArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Provides a ARMS Environment resource. The arms environment.
 * For information about ARMS Environment and how to use it, see [What is Environment](https://www.alibabacloud.com/help/en/arms/developer-reference/api-arms-2019-08-08-createenvironment).
 * > **NOTE:** Available since v1.212.0.
 * ## Import
 * ARMS Environment can be imported using the id, e.g.
 * ```sh
 * $ pulumi import alicloud:arms/environment:Environment example 
 * ```
 * @property aliyunLang The locale. The default is Chinese zh | en.
 * @property bindResourceId The id or vpcId of the bound container instance.
 * @property dropMetrics List of abandoned indicators.
 * @property environmentName The name of the resource.
 * @property environmentSubType Subtype of environment:
 * - Type of CS: ACK is currently supported.
 * - Type of ECS: currently supports ECS.
 * - Type of Cloud: currently supports Cloud.
 * @property environmentType Type of environment.
 * @property managedType Hosting type:
 * - none: unmanaged. The default value of the ACK cluster.
 * - agent: Managed agent (including ksm). Default values of ASK, ACS, and Acone clusters.
 * - agent-exproter: Managed agent and exporter. The default value of the cloud service type.
 * @property resourceGroupId The ID of the resource group.
 * @property tags The tag of the resource.
 */
public data class EnvironmentArgs(
    public val aliyunLang: Output? = null,
    public val bindResourceId: Output? = null,
    public val dropMetrics: Output? = null,
    public val environmentName: Output? = null,
    public val environmentSubType: Output? = null,
    public val environmentType: Output? = null,
    public val managedType: Output? = null,
    public val resourceGroupId: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.alicloud.arms.EnvironmentArgs =
        com.pulumi.alicloud.arms.EnvironmentArgs.builder()
            .aliyunLang(aliyunLang?.applyValue({ args0 -> args0 }))
            .bindResourceId(bindResourceId?.applyValue({ args0 -> args0 }))
            .dropMetrics(dropMetrics?.applyValue({ args0 -> args0 }))
            .environmentName(environmentName?.applyValue({ args0 -> args0 }))
            .environmentSubType(environmentSubType?.applyValue({ args0 -> args0 }))
            .environmentType(environmentType?.applyValue({ args0 -> args0 }))
            .managedType(managedType?.applyValue({ args0 -> args0 }))
            .resourceGroupId(resourceGroupId?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [EnvironmentArgs].
 */
@PulumiTagMarker
public class EnvironmentArgsBuilder internal constructor() {
    private var aliyunLang: Output? = null

    private var bindResourceId: Output? = null

    private var dropMetrics: Output? = null

    private var environmentName: Output? = null

    private var environmentSubType: Output? = null

    private var environmentType: Output? = null

    private var managedType: Output? = null

    private var resourceGroupId: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The locale. The default is Chinese zh | en.
     */
    @JvmName("fchbmpdgsvqqayre")
    public suspend fun aliyunLang(`value`: Output) {
        this.aliyunLang = value
    }

    /**
     * @param value The id or vpcId of the bound container instance.
     */
    @JvmName("thhvshmcmvivelbw")
    public suspend fun bindResourceId(`value`: Output) {
        this.bindResourceId = value
    }

    /**
     * @param value List of abandoned indicators.
     */
    @JvmName("woeoeiocpvynbhmq")
    public suspend fun dropMetrics(`value`: Output) {
        this.dropMetrics = value
    }

    /**
     * @param value The name of the resource.
     */
    @JvmName("ilcologwhxdfhstq")
    public suspend fun environmentName(`value`: Output) {
        this.environmentName = value
    }

    /**
     * @param value Subtype of environment:
     * - Type of CS: ACK is currently supported.
     * - Type of ECS: currently supports ECS.
     * - Type of Cloud: currently supports Cloud.
     */
    @JvmName("frveimgnflwfsgsw")
    public suspend fun environmentSubType(`value`: Output) {
        this.environmentSubType = value
    }

    /**
     * @param value Type of environment.
     */
    @JvmName("kaslatcoyqjnojho")
    public suspend fun environmentType(`value`: Output) {
        this.environmentType = value
    }

    /**
     * @param value Hosting type:
     * - none: unmanaged. The default value of the ACK cluster.
     * - agent: Managed agent (including ksm). Default values of ASK, ACS, and Acone clusters.
     * - agent-exproter: Managed agent and exporter. The default value of the cloud service type.
     */
    @JvmName("dctojnjvsxeswtkb")
    public suspend fun managedType(`value`: Output) {
        this.managedType = value
    }

    /**
     * @param value The ID of the resource group.
     */
    @JvmName("mmlldeaxfdkogtff")
    public suspend fun resourceGroupId(`value`: Output) {
        this.resourceGroupId = value
    }

    /**
     * @param value The tag of the resource.
     */
    @JvmName("roscuspfphrhljpq")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The locale. The default is Chinese zh | en.
     */
    @JvmName("rbdxbnldaeodiknf")
    public suspend fun aliyunLang(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.aliyunLang = mapped
    }

    /**
     * @param value The id or vpcId of the bound container instance.
     */
    @JvmName("nmpflgtfxjtsvgwq")
    public suspend fun bindResourceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bindResourceId = mapped
    }

    /**
     * @param value List of abandoned indicators.
     */
    @JvmName("mntmnnvqnpghlbki")
    public suspend fun dropMetrics(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dropMetrics = mapped
    }

    /**
     * @param value The name of the resource.
     */
    @JvmName("suniokxkynwlakeh")
    public suspend fun environmentName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environmentName = mapped
    }

    /**
     * @param value Subtype of environment:
     * - Type of CS: ACK is currently supported.
     * - Type of ECS: currently supports ECS.
     * - Type of Cloud: currently supports Cloud.
     */
    @JvmName("asbjgcqlmsgxwcsg")
    public suspend fun environmentSubType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environmentSubType = mapped
    }

    /**
     * @param value Type of environment.
     */
    @JvmName("vlgohbllorlwluss")
    public suspend fun environmentType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environmentType = mapped
    }

    /**
     * @param value Hosting type:
     * - none: unmanaged. The default value of the ACK cluster.
     * - agent: Managed agent (including ksm). Default values of ASK, ACS, and Acone clusters.
     * - agent-exproter: Managed agent and exporter. The default value of the cloud service type.
     */
    @JvmName("omjsmdcfuueoynke")
    public suspend fun managedType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managedType = mapped
    }

    /**
     * @param value The ID of the resource group.
     */
    @JvmName("mutwhohykerklpkp")
    public suspend fun resourceGroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupId = mapped
    }

    /**
     * @param value The tag of the resource.
     */
    @JvmName("jobmpdgboisandss")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values The tag of the resource.
     */
    @JvmName("taejxupnqwqevafy")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): EnvironmentArgs = EnvironmentArgs(
        aliyunLang = aliyunLang,
        bindResourceId = bindResourceId,
        dropMetrics = dropMetrics,
        environmentName = environmentName,
        environmentSubType = environmentSubType,
        environmentType = environmentType,
        managedType = managedType,
        resourceGroupId = resourceGroupId,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy