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

com.pulumi.alicloud.yundun.kotlin.DBAuditInstanceArgs.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.yundun.kotlin

import com.pulumi.alicloud.yundun.DBAuditInstanceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * ## Import
 * Yundun_dbaudit instance can be imported using the id, e.g.
 * ```sh
 * $ pulumi import alicloud:yundun/dBAuditInstance:DBAuditInstance example dbaudit-exampe123456
 * ```
 * @property description Description of the instance. This name can have a string of 1 to 63 characters.
 * @property period Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. At present, the provider does not support modify "period".
 * > **NOTE:** The attribute `period` is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running `pulumi up` will not effect the resource.
 * @property planCode Plan code of the Cloud DBAudit to produce. (alpha.professional, alpha.basic, alpha.premium)
 * @property resourceGroupId The Id of resource group which the DBaudit Instance belongs. If not set, the resource is created in the default resource group.
 * @property tags A mapping of tags to assign to the resource.
 * @property vswitchId vSwtich ID configured to audit
 */
public data class DBAuditInstanceArgs(
    public val description: Output? = null,
    public val period: Output? = null,
    public val planCode: Output? = null,
    public val resourceGroupId: Output? = null,
    public val tags: Output>? = null,
    public val vswitchId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.alicloud.yundun.DBAuditInstanceArgs =
        com.pulumi.alicloud.yundun.DBAuditInstanceArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .period(period?.applyValue({ args0 -> args0 }))
            .planCode(planCode?.applyValue({ args0 -> args0 }))
            .resourceGroupId(resourceGroupId?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .vswitchId(vswitchId?.applyValue({ args0 -> args0 })).build()
}

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

    private var period: Output? = null

    private var planCode: Output? = null

    private var resourceGroupId: Output? = null

    private var tags: Output>? = null

    private var vswitchId: Output? = null

    /**
     * @param value Description of the instance. This name can have a string of 1 to 63 characters.
     */
    @JvmName("rpdwaqgkwbtutvky")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. At present, the provider does not support modify "period".
     * > **NOTE:** The attribute `period` is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running `pulumi up` will not effect the resource.
     */
    @JvmName("mulfdbcenvseqtky")
    public suspend fun period(`value`: Output) {
        this.period = value
    }

    /**
     * @param value Plan code of the Cloud DBAudit to produce. (alpha.professional, alpha.basic, alpha.premium)
     */
    @JvmName("xnblqyxapqvbvdmf")
    public suspend fun planCode(`value`: Output) {
        this.planCode = value
    }

    /**
     * @param value The Id of resource group which the DBaudit Instance belongs. If not set, the resource is created in the default resource group.
     */
    @JvmName("xiracpquhjqchwbt")
    public suspend fun resourceGroupId(`value`: Output) {
        this.resourceGroupId = value
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("hkjmmpllkonjjtfv")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value vSwtich ID configured to audit
     */
    @JvmName("vtomypowscwyxmkp")
    public suspend fun vswitchId(`value`: Output) {
        this.vswitchId = value
    }

    /**
     * @param value Description of the instance. This name can have a string of 1 to 63 characters.
     */
    @JvmName("hcwqchejffsllbhi")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. At present, the provider does not support modify "period".
     * > **NOTE:** The attribute `period` is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running `pulumi up` will not effect the resource.
     */
    @JvmName("ywsvorodieqkoadp")
    public suspend fun period(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.period = mapped
    }

    /**
     * @param value Plan code of the Cloud DBAudit to produce. (alpha.professional, alpha.basic, alpha.premium)
     */
    @JvmName("vadqxsfgqhqiohkw")
    public suspend fun planCode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.planCode = mapped
    }

    /**
     * @param value The Id of resource group which the DBaudit Instance belongs. If not set, the resource is created in the default resource group.
     */
    @JvmName("qijmivsitovibiws")
    public suspend fun resourceGroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupId = mapped
    }

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

    /**
     * @param values A mapping of tags to assign to the resource.
     */
    @JvmName("scacpvygftvgdplg")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value vSwtich ID configured to audit
     */
    @JvmName("lgtwtjxpcqcbjnoo")
    public suspend fun vswitchId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vswitchId = mapped
    }

    internal fun build(): DBAuditInstanceArgs = DBAuditInstanceArgs(
        description = description,
        period = period,
        planCode = planCode,
        resourceGroupId = resourceGroupId,
        tags = tags,
        vswitchId = vswitchId,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy