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

com.pulumi.alicloud.cms.kotlin.SlsGroupArgs.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.cms.kotlin

import com.pulumi.alicloud.cms.SlsGroupArgs.builder
import com.pulumi.alicloud.cms.kotlin.inputs.SlsGroupSlsGroupConfigArgs
import com.pulumi.alicloud.cms.kotlin.inputs.SlsGroupSlsGroupConfigArgsBuilder
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.collections.List
import kotlin.jvm.JvmName

/**
 * Provides a Cloud Monitor Service Sls Group resource.
 * For information about Cloud Monitor Service Sls Group and how to use it, see [What is Sls Group](https://www.alibabacloud.com/help/doc-detail/28608.htm).
 * > **NOTE:** Available since v1.171.0.
 * ## Import
 * Cloud Monitor Service Sls Group can be imported using the id, e.g.
 * ```sh
 * $ pulumi import alicloud:cms/slsGroup:SlsGroup example 
 * ```
 * @property slsGroupConfigs The Config of the Sls Group. You can specify up to 25 Config. See `sls_group_config` below.
 * @property slsGroupDescription The Description of the Sls Group.
 * @property slsGroupName The name of the resource. The name must be `2` to `32` characters in length, and can contain letters, digits and underscores (_). It must start with a letter.
 */
public data class SlsGroupArgs(
    public val slsGroupConfigs: Output>? = null,
    public val slsGroupDescription: Output? = null,
    public val slsGroupName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.alicloud.cms.SlsGroupArgs =
        com.pulumi.alicloud.cms.SlsGroupArgs.builder()
            .slsGroupConfigs(
                slsGroupConfigs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .slsGroupDescription(slsGroupDescription?.applyValue({ args0 -> args0 }))
            .slsGroupName(slsGroupName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SlsGroupArgs].
 */
@PulumiTagMarker
public class SlsGroupArgsBuilder internal constructor() {
    private var slsGroupConfigs: Output>? = null

    private var slsGroupDescription: Output? = null

    private var slsGroupName: Output? = null

    /**
     * @param value The Config of the Sls Group. You can specify up to 25 Config. See `sls_group_config` below.
     */
    @JvmName("vyrgprsyukvnsjee")
    public suspend fun slsGroupConfigs(`value`: Output>) {
        this.slsGroupConfigs = value
    }

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

    /**
     * @param values The Config of the Sls Group. You can specify up to 25 Config. See `sls_group_config` below.
     */
    @JvmName("mhuxjfjndskrunjk")
    public suspend fun slsGroupConfigs(values: List>) {
        this.slsGroupConfigs = Output.all(values)
    }

    /**
     * @param value The Description of the Sls Group.
     */
    @JvmName("afkvcpsbtftemqis")
    public suspend fun slsGroupDescription(`value`: Output) {
        this.slsGroupDescription = value
    }

    /**
     * @param value The name of the resource. The name must be `2` to `32` characters in length, and can contain letters, digits and underscores (_). It must start with a letter.
     */
    @JvmName("vxiickkfjkmrqlhx")
    public suspend fun slsGroupName(`value`: Output) {
        this.slsGroupName = value
    }

    /**
     * @param value The Config of the Sls Group. You can specify up to 25 Config. See `sls_group_config` below.
     */
    @JvmName("hcxeayntumjqcxue")
    public suspend fun slsGroupConfigs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.slsGroupConfigs = mapped
    }

    /**
     * @param argument The Config of the Sls Group. You can specify up to 25 Config. See `sls_group_config` below.
     */
    @JvmName("guiipuibsaxgujtv")
    public suspend fun slsGroupConfigs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SlsGroupSlsGroupConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.slsGroupConfigs = mapped
    }

    /**
     * @param argument The Config of the Sls Group. You can specify up to 25 Config. See `sls_group_config` below.
     */
    @JvmName("lrjwwfsobrrqepmy")
    public suspend fun slsGroupConfigs(vararg argument: suspend SlsGroupSlsGroupConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            SlsGroupSlsGroupConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.slsGroupConfigs = mapped
    }

    /**
     * @param argument The Config of the Sls Group. You can specify up to 25 Config. See `sls_group_config` below.
     */
    @JvmName("iojunfudnwvqplix")
    public suspend fun slsGroupConfigs(argument: suspend SlsGroupSlsGroupConfigArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(SlsGroupSlsGroupConfigArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.slsGroupConfigs = mapped
    }

    /**
     * @param values The Config of the Sls Group. You can specify up to 25 Config. See `sls_group_config` below.
     */
    @JvmName("kmukedyuyclnokvc")
    public suspend fun slsGroupConfigs(vararg values: SlsGroupSlsGroupConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.slsGroupConfigs = mapped
    }

    /**
     * @param value The Description of the Sls Group.
     */
    @JvmName("kghxhuuvctbtbmtg")
    public suspend fun slsGroupDescription(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.slsGroupDescription = mapped
    }

    /**
     * @param value The name of the resource. The name must be `2` to `32` characters in length, and can contain letters, digits and underscores (_). It must start with a letter.
     */
    @JvmName("mighpyotkorcxpey")
    public suspend fun slsGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.slsGroupName = mapped
    }

    internal fun build(): SlsGroupArgs = SlsGroupArgs(
        slsGroupConfigs = slsGroupConfigs,
        slsGroupDescription = slsGroupDescription,
        slsGroupName = slsGroupName,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy