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

com.pulumi.azure.dashboard.kotlin.GrafanaArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.dashboard.kotlin

import com.pulumi.azure.dashboard.GrafanaArgs.builder
import com.pulumi.azure.dashboard.kotlin.inputs.GrafanaAzureMonitorWorkspaceIntegrationArgs
import com.pulumi.azure.dashboard.kotlin.inputs.GrafanaAzureMonitorWorkspaceIntegrationArgsBuilder
import com.pulumi.azure.dashboard.kotlin.inputs.GrafanaIdentityArgs
import com.pulumi.azure.dashboard.kotlin.inputs.GrafanaIdentityArgsBuilder
import com.pulumi.azure.dashboard.kotlin.inputs.GrafanaSmtpArgs
import com.pulumi.azure.dashboard.kotlin.inputs.GrafanaSmtpArgsBuilder
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.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages a Dashboard Grafana.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleGrafana = new azure.dashboard.Grafana("example", {
 *     name: "example-dg",
 *     resourceGroupName: example.name,
 *     location: "West Europe",
 *     apiKeyEnabled: true,
 *     deterministicOutboundIpEnabled: true,
 *     publicNetworkAccessEnabled: false,
 *     identity: {
 *         type: "SystemAssigned",
 *     },
 *     tags: {
 *         key: "value",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_grafana = azure.dashboard.Grafana("example",
 *     name="example-dg",
 *     resource_group_name=example.name,
 *     location="West Europe",
 *     api_key_enabled=True,
 *     deterministic_outbound_ip_enabled=True,
 *     public_network_access_enabled=False,
 *     identity={
 *         "type": "SystemAssigned",
 *     },
 *     tags={
 *         "key": "value",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var exampleGrafana = new Azure.Dashboard.Grafana("example", new()
 *     {
 *         Name = "example-dg",
 *         ResourceGroupName = example.Name,
 *         Location = "West Europe",
 *         ApiKeyEnabled = true,
 *         DeterministicOutboundIpEnabled = true,
 *         PublicNetworkAccessEnabled = false,
 *         Identity = new Azure.Dashboard.Inputs.GrafanaIdentityArgs
 *         {
 *             Type = "SystemAssigned",
 *         },
 *         Tags =
 *         {
 *             { "key", "value" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dashboard"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = dashboard.NewGrafana(ctx, "example", &dashboard.GrafanaArgs{
 * 			Name:                           pulumi.String("example-dg"),
 * 			ResourceGroupName:              example.Name,
 * 			Location:                       pulumi.String("West Europe"),
 * 			ApiKeyEnabled:                  pulumi.Bool(true),
 * 			DeterministicOutboundIpEnabled: pulumi.Bool(true),
 * 			PublicNetworkAccessEnabled:     pulumi.Bool(false),
 * 			Identity: &dashboard.GrafanaIdentityArgs{
 * 				Type: pulumi.String("SystemAssigned"),
 * 			},
 * 			Tags: pulumi.StringMap{
 * 				"key": pulumi.String("value"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.dashboard.Grafana;
 * import com.pulumi.azure.dashboard.GrafanaArgs;
 * import com.pulumi.azure.dashboard.inputs.GrafanaIdentityArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var exampleGrafana = new Grafana("exampleGrafana", GrafanaArgs.builder()
 *             .name("example-dg")
 *             .resourceGroupName(example.name())
 *             .location("West Europe")
 *             .apiKeyEnabled(true)
 *             .deterministicOutboundIpEnabled(true)
 *             .publicNetworkAccessEnabled(false)
 *             .identity(GrafanaIdentityArgs.builder()
 *                 .type("SystemAssigned")
 *                 .build())
 *             .tags(Map.of("key", "value"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleGrafana:
 *     type: azure:dashboard:Grafana
 *     name: example
 *     properties:
 *       name: example-dg
 *       resourceGroupName: ${example.name}
 *       location: West Europe
 *       apiKeyEnabled: true
 *       deterministicOutboundIpEnabled: true
 *       publicNetworkAccessEnabled: false
 *       identity:
 *         type: SystemAssigned
 *       tags:
 *         key: value
 * ```
 * 
 * ## Import
 * Dashboard Grafana can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:dashboard/grafana:Grafana example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Dashboard/grafana/workspace1
 * ```
 * @property apiKeyEnabled Whether to enable the api key setting of the Grafana instance. Defaults to `false`.
 * @property autoGeneratedDomainNameLabelScope Scope for dns deterministic name hash calculation. The only possible value is `TenantReuse`. Defaults to `TenantReuse`.
 * @property azureMonitorWorkspaceIntegrations A `azure_monitor_workspace_integrations` block as defined below.
 * @property deterministicOutboundIpEnabled Whether to enable the Grafana instance to use deterministic outbound IPs. Defaults to `false`.
 * @property grafanaMajorVersion Which major version of Grafana to deploy. Defaults to `9`. Possible values are `9`, `10`. Changing this forces a new resource to be created.
 * @property identity An `identity` block as defined below. Changing this forces a new Dashboard Grafana to be created.
 * @property location Specifies the Azure Region where the Dashboard Grafana should exist. Changing this forces a new Dashboard Grafana to be created.
 * @property name Specifies the name which should be used for this Dashboard Grafana. Changing this forces a new Dashboard Grafana to be created.
 * @property publicNetworkAccessEnabled Whether to enable traffic over the public interface. Defaults to `true`.
 * @property resourceGroupName Specifies the name of the Resource Group where the Dashboard Grafana should exist. Changing this forces a new Dashboard Grafana to be created.
 * @property sku The name of the SKU used for the Grafana instance. Possible values are `Standard` and `Essential`. Defaults to `Standard`. Changing this forces a new Dashboard Grafana to be created.
 * @property smtp A `smtp` block as defined below.
 * @property tags A mapping of tags which should be assigned to the Dashboard Grafana.
 * @property zoneRedundancyEnabled Whether to enable the zone redundancy setting of the Grafana instance. Defaults to `false`. Changing this forces a new Dashboard Grafana to be created.
 */
public data class GrafanaArgs(
    public val apiKeyEnabled: Output? = null,
    public val autoGeneratedDomainNameLabelScope: Output? = null,
    public val azureMonitorWorkspaceIntegrations: Output>? = null,
    public val deterministicOutboundIpEnabled: Output? = null,
    public val grafanaMajorVersion: Output? = null,
    public val identity: Output? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val publicNetworkAccessEnabled: Output? = null,
    public val resourceGroupName: Output? = null,
    public val sku: Output? = null,
    public val smtp: Output? = null,
    public val tags: Output>? = null,
    public val zoneRedundancyEnabled: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.dashboard.GrafanaArgs =
        com.pulumi.azure.dashboard.GrafanaArgs.builder()
            .apiKeyEnabled(apiKeyEnabled?.applyValue({ args0 -> args0 }))
            .autoGeneratedDomainNameLabelScope(
                autoGeneratedDomainNameLabelScope?.applyValue({ args0 ->
                    args0
                }),
            )
            .azureMonitorWorkspaceIntegrations(
                azureMonitorWorkspaceIntegrations?.applyValue({ args0 ->
                    args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .deterministicOutboundIpEnabled(deterministicOutboundIpEnabled?.applyValue({ args0 -> args0 }))
            .grafanaMajorVersion(grafanaMajorVersion?.applyValue({ args0 -> args0 }))
            .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .publicNetworkAccessEnabled(publicNetworkAccessEnabled?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .sku(sku?.applyValue({ args0 -> args0 }))
            .smtp(smtp?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .zoneRedundancyEnabled(zoneRedundancyEnabled?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GrafanaArgs].
 */
@PulumiTagMarker
public class GrafanaArgsBuilder internal constructor() {
    private var apiKeyEnabled: Output? = null

    private var autoGeneratedDomainNameLabelScope: Output? = null

    private var azureMonitorWorkspaceIntegrations:
        Output>? = null

    private var deterministicOutboundIpEnabled: Output? = null

    private var grafanaMajorVersion: Output? = null

    private var identity: Output? = null

    private var location: Output? = null

    private var name: Output? = null

    private var publicNetworkAccessEnabled: Output? = null

    private var resourceGroupName: Output? = null

    private var sku: Output? = null

    private var smtp: Output? = null

    private var tags: Output>? = null

    private var zoneRedundancyEnabled: Output? = null

    /**
     * @param value Whether to enable the api key setting of the Grafana instance. Defaults to `false`.
     */
    @JvmName("kvqwmcjdlvvgreyf")
    public suspend fun apiKeyEnabled(`value`: Output) {
        this.apiKeyEnabled = value
    }

    /**
     * @param value Scope for dns deterministic name hash calculation. The only possible value is `TenantReuse`. Defaults to `TenantReuse`.
     */
    @JvmName("twklvurwymfguipr")
    public suspend fun autoGeneratedDomainNameLabelScope(`value`: Output) {
        this.autoGeneratedDomainNameLabelScope = value
    }

    /**
     * @param value A `azure_monitor_workspace_integrations` block as defined below.
     */
    @JvmName("xafegqplbfwahxgw")
    public suspend fun azureMonitorWorkspaceIntegrations(`value`: Output>) {
        this.azureMonitorWorkspaceIntegrations = value
    }

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

    /**
     * @param values A `azure_monitor_workspace_integrations` block as defined below.
     */
    @JvmName("ekynfohdkaetwgun")
    public suspend fun azureMonitorWorkspaceIntegrations(values: List>) {
        this.azureMonitorWorkspaceIntegrations = Output.all(values)
    }

    /**
     * @param value Whether to enable the Grafana instance to use deterministic outbound IPs. Defaults to `false`.
     */
    @JvmName("gpykqyvaygvvuudy")
    public suspend fun deterministicOutboundIpEnabled(`value`: Output) {
        this.deterministicOutboundIpEnabled = value
    }

    /**
     * @param value Which major version of Grafana to deploy. Defaults to `9`. Possible values are `9`, `10`. Changing this forces a new resource to be created.
     */
    @JvmName("gvgcxsanttbfbnop")
    public suspend fun grafanaMajorVersion(`value`: Output) {
        this.grafanaMajorVersion = value
    }

    /**
     * @param value An `identity` block as defined below. Changing this forces a new Dashboard Grafana to be created.
     */
    @JvmName("usajabsbyrssvsde")
    public suspend fun identity(`value`: Output) {
        this.identity = value
    }

    /**
     * @param value Specifies the Azure Region where the Dashboard Grafana should exist. Changing this forces a new Dashboard Grafana to be created.
     */
    @JvmName("rddtevykinqcdujn")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Specifies the name which should be used for this Dashboard Grafana. Changing this forces a new Dashboard Grafana to be created.
     */
    @JvmName("jsnfboefcraeejrx")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Whether to enable traffic over the public interface. Defaults to `true`.
     */
    @JvmName("klaupfyfocdlaopf")
    public suspend fun publicNetworkAccessEnabled(`value`: Output) {
        this.publicNetworkAccessEnabled = value
    }

    /**
     * @param value Specifies the name of the Resource Group where the Dashboard Grafana should exist. Changing this forces a new Dashboard Grafana to be created.
     */
    @JvmName("peajscmdojkvluvr")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The name of the SKU used for the Grafana instance. Possible values are `Standard` and `Essential`. Defaults to `Standard`. Changing this forces a new Dashboard Grafana to be created.
     */
    @JvmName("aumbchkcpetratmx")
    public suspend fun sku(`value`: Output) {
        this.sku = value
    }

    /**
     * @param value A `smtp` block as defined below.
     */
    @JvmName("hdlskpekjecbnjos")
    public suspend fun smtp(`value`: Output) {
        this.smtp = value
    }

    /**
     * @param value A mapping of tags which should be assigned to the Dashboard Grafana.
     */
    @JvmName("riauxwwkwcrpbvom")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Whether to enable the zone redundancy setting of the Grafana instance. Defaults to `false`. Changing this forces a new Dashboard Grafana to be created.
     */
    @JvmName("dymvebupsistibim")
    public suspend fun zoneRedundancyEnabled(`value`: Output) {
        this.zoneRedundancyEnabled = value
    }

    /**
     * @param value Whether to enable the api key setting of the Grafana instance. Defaults to `false`.
     */
    @JvmName("bmpvknpggayskdpp")
    public suspend fun apiKeyEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.apiKeyEnabled = mapped
    }

    /**
     * @param value Scope for dns deterministic name hash calculation. The only possible value is `TenantReuse`. Defaults to `TenantReuse`.
     */
    @JvmName("cktmkyuluknluosh")
    public suspend fun autoGeneratedDomainNameLabelScope(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoGeneratedDomainNameLabelScope = mapped
    }

    /**
     * @param value A `azure_monitor_workspace_integrations` block as defined below.
     */
    @JvmName("tdgmeulncpysnamk")
    public suspend fun azureMonitorWorkspaceIntegrations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.azureMonitorWorkspaceIntegrations = mapped
    }

    /**
     * @param argument A `azure_monitor_workspace_integrations` block as defined below.
     */
    @JvmName("gyqeqcfkqeughnii")
    public suspend fun azureMonitorWorkspaceIntegrations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GrafanaAzureMonitorWorkspaceIntegrationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.azureMonitorWorkspaceIntegrations = mapped
    }

    /**
     * @param argument A `azure_monitor_workspace_integrations` block as defined below.
     */
    @JvmName("xpetuxymesfojbsp")
    public suspend fun azureMonitorWorkspaceIntegrations(vararg argument: suspend GrafanaAzureMonitorWorkspaceIntegrationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GrafanaAzureMonitorWorkspaceIntegrationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.azureMonitorWorkspaceIntegrations = mapped
    }

    /**
     * @param argument A `azure_monitor_workspace_integrations` block as defined below.
     */
    @JvmName("xilmfnjitchtccxk")
    public suspend fun azureMonitorWorkspaceIntegrations(argument: suspend GrafanaAzureMonitorWorkspaceIntegrationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            GrafanaAzureMonitorWorkspaceIntegrationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.azureMonitorWorkspaceIntegrations = mapped
    }

    /**
     * @param values A `azure_monitor_workspace_integrations` block as defined below.
     */
    @JvmName("iyinfrbjcgrhylvj")
    public suspend fun azureMonitorWorkspaceIntegrations(vararg values: GrafanaAzureMonitorWorkspaceIntegrationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.azureMonitorWorkspaceIntegrations = mapped
    }

    /**
     * @param value Whether to enable the Grafana instance to use deterministic outbound IPs. Defaults to `false`.
     */
    @JvmName("ootgbwcgxythnswu")
    public suspend fun deterministicOutboundIpEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deterministicOutboundIpEnabled = mapped
    }

    /**
     * @param value Which major version of Grafana to deploy. Defaults to `9`. Possible values are `9`, `10`. Changing this forces a new resource to be created.
     */
    @JvmName("qilgprqgcwrfofdf")
    public suspend fun grafanaMajorVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.grafanaMajorVersion = mapped
    }

    /**
     * @param value An `identity` block as defined below. Changing this forces a new Dashboard Grafana to be created.
     */
    @JvmName("jkalojtiysvxvvme")
    public suspend fun identity(`value`: GrafanaIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identity = mapped
    }

    /**
     * @param argument An `identity` block as defined below. Changing this forces a new Dashboard Grafana to be created.
     */
    @JvmName("uwkgribevlejwcqp")
    public suspend fun identity(argument: suspend GrafanaIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = GrafanaIdentityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.identity = mapped
    }

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

    /**
     * @param value Specifies the name which should be used for this Dashboard Grafana. Changing this forces a new Dashboard Grafana to be created.
     */
    @JvmName("syqwmbhntrbwbhhp")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Whether to enable traffic over the public interface. Defaults to `true`.
     */
    @JvmName("qxepbvqmysvawtjt")
    public suspend fun publicNetworkAccessEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicNetworkAccessEnabled = mapped
    }

    /**
     * @param value Specifies the name of the Resource Group where the Dashboard Grafana should exist. Changing this forces a new Dashboard Grafana to be created.
     */
    @JvmName("sdoejuhxuqeiplrt")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value The name of the SKU used for the Grafana instance. Possible values are `Standard` and `Essential`. Defaults to `Standard`. Changing this forces a new Dashboard Grafana to be created.
     */
    @JvmName("sbryrdvcexikjkqd")
    public suspend fun sku(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sku = mapped
    }

    /**
     * @param value A `smtp` block as defined below.
     */
    @JvmName("aguosgklwwkbwmef")
    public suspend fun smtp(`value`: GrafanaSmtpArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.smtp = mapped
    }

    /**
     * @param argument A `smtp` block as defined below.
     */
    @JvmName("nqyabwwuufxpybav")
    public suspend fun smtp(argument: suspend GrafanaSmtpArgsBuilder.() -> Unit) {
        val toBeMapped = GrafanaSmtpArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.smtp = mapped
    }

    /**
     * @param value A mapping of tags which should be assigned to the Dashboard Grafana.
     */
    @JvmName("kqbofrpbxrdmjxvm")
    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 which should be assigned to the Dashboard Grafana.
     */
    @JvmName("ofypmoyetasagple")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Whether to enable the zone redundancy setting of the Grafana instance. Defaults to `false`. Changing this forces a new Dashboard Grafana to be created.
     */
    @JvmName("fgiqeistkfafqgrn")
    public suspend fun zoneRedundancyEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zoneRedundancyEnabled = mapped
    }

    internal fun build(): GrafanaArgs = GrafanaArgs(
        apiKeyEnabled = apiKeyEnabled,
        autoGeneratedDomainNameLabelScope = autoGeneratedDomainNameLabelScope,
        azureMonitorWorkspaceIntegrations = azureMonitorWorkspaceIntegrations,
        deterministicOutboundIpEnabled = deterministicOutboundIpEnabled,
        grafanaMajorVersion = grafanaMajorVersion,
        identity = identity,
        location = location,
        name = name,
        publicNetworkAccessEnabled = publicNetworkAccessEnabled,
        resourceGroupName = resourceGroupName,
        sku = sku,
        smtp = smtp,
        tags = tags,
        zoneRedundancyEnabled = zoneRedundancyEnabled,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy