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

com.pulumi.azure.monitoring.kotlin.inputs.MetricAlertActionArgs.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.monitoring.kotlin.inputs

import com.pulumi.azure.monitoring.inputs.MetricAlertActionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property actionGroupId The ID of the Action Group can be sourced from the `azure.monitoring.ActionGroup` resource
 * @property webhookProperties The map of custom string properties to include with the post operation. These data are appended to the webhook payload.
 */
public data class MetricAlertActionArgs(
    public val actionGroupId: Output,
    public val webhookProperties: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.MetricAlertActionArgs =
        com.pulumi.azure.monitoring.inputs.MetricAlertActionArgs.builder()
            .actionGroupId(actionGroupId.applyValue({ args0 -> args0 }))
            .webhookProperties(
                webhookProperties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [MetricAlertActionArgs].
 */
@PulumiTagMarker
public class MetricAlertActionArgsBuilder internal constructor() {
    private var actionGroupId: Output? = null

    private var webhookProperties: Output>? = null

    /**
     * @param value The ID of the Action Group can be sourced from the `azure.monitoring.ActionGroup` resource
     */
    @JvmName("cusnwtqdaunvqagl")
    public suspend fun actionGroupId(`value`: Output) {
        this.actionGroupId = value
    }

    /**
     * @param value The map of custom string properties to include with the post operation. These data are appended to the webhook payload.
     */
    @JvmName("nmcfmgdndttapbxm")
    public suspend fun webhookProperties(`value`: Output>) {
        this.webhookProperties = value
    }

    /**
     * @param value The ID of the Action Group can be sourced from the `azure.monitoring.ActionGroup` resource
     */
    @JvmName("aefjcmhtkamrmdao")
    public suspend fun actionGroupId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actionGroupId = mapped
    }

    /**
     * @param value The map of custom string properties to include with the post operation. These data are appended to the webhook payload.
     */
    @JvmName("aaronaqcmrglgfev")
    public suspend fun webhookProperties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.webhookProperties = mapped
    }

    /**
     * @param values The map of custom string properties to include with the post operation. These data are appended to the webhook payload.
     */
    @JvmName("piyahweeuqwdelpt")
    public fun webhookProperties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.webhookProperties = mapped
    }

    internal fun build(): MetricAlertActionArgs = MetricAlertActionArgs(
        actionGroupId = actionGroupId ?: throw PulumiNullFieldException("actionGroupId"),
        webhookProperties = webhookProperties,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy