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

com.pulumi.azure.portal.kotlin.PortalDashboardArgs.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: 6.21.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.portal.kotlin

import com.pulumi.azure.portal.PortalDashboardArgs.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

/**
 *
 * ## Import
 * Dashboards can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:portal/portalDashboard:PortalDashboard my-board /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Portal/dashboards/00000000-0000-0000-0000-000000000000
 * ```
 * Note the URI in the above sample can be found using the Resource Explorer tool in the Azure Portal.
 * @property dashboardProperties JSON data representing dashboard body. See above for details on how to obtain this from the Portal.
 * @property location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
 * @property name Specifies the name of the Shared Dashboard. Changing this forces a new resource to be created.
 * > **Note**: You can specify a tag with the key `hidden-title` to set a more user-friendly title for this Dashboard.
 * @property resourceGroupName The name of the resource group in which to create the dashboard. Changing this forces a new resource to be created.
 * @property tags A mapping of tags to assign to the resource.
 */
public data class PortalDashboardArgs(
    public val dashboardProperties: Output? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val resourceGroupName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.portal.PortalDashboardArgs =
        com.pulumi.azure.portal.PortalDashboardArgs.builder()
            .dashboardProperties(dashboardProperties?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [PortalDashboardArgs].
 */
@PulumiTagMarker
public class PortalDashboardArgsBuilder internal constructor() {
    private var dashboardProperties: Output? = null

    private var location: Output? = null

    private var name: Output? = null

    private var resourceGroupName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value JSON data representing dashboard body. See above for details on how to obtain this from the Portal.
     */
    @JvmName("fsctmkgwqrqtmpnc")
    public suspend fun dashboardProperties(`value`: Output) {
        this.dashboardProperties = value
    }

    /**
     * @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    @JvmName("axbssecmacuvypcu")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Specifies the name of the Shared Dashboard. Changing this forces a new resource to be created.
     * > **Note**: You can specify a tag with the key `hidden-title` to set a more user-friendly title for this Dashboard.
     */
    @JvmName("wfcnreuyxbsaoqpk")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The name of the resource group in which to create the dashboard. Changing this forces a new resource to be created.
     */
    @JvmName("qgqussqefyrmcxcp")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

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

    /**
     * @param value JSON data representing dashboard body. See above for details on how to obtain this from the Portal.
     */
    @JvmName("mjyrqtccxseeklfb")
    public suspend fun dashboardProperties(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dashboardProperties = mapped
    }

    /**
     * @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    @JvmName("tqntfadgwkxcttcj")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Specifies the name of the Shared Dashboard. Changing this forces a new resource to be created.
     * > **Note**: You can specify a tag with the key `hidden-title` to set a more user-friendly title for this Dashboard.
     */
    @JvmName("cucvqopwfwisobwi")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The name of the resource group in which to create the dashboard. Changing this forces a new resource to be created.
     */
    @JvmName("yhjlfncvmiftvebo")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("hgervilhyrdjxhrs")
    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("vbqpkxdlhpghdiev")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): PortalDashboardArgs = PortalDashboardArgs(
        dashboardProperties = dashboardProperties,
        location = location,
        name = name,
        resourceGroupName = resourceGroupName,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy