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

com.pulumi.azure.monitoring.kotlin.outputs.ActionGroupWebhookReceiver.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.monitoring.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property aadAuth The `aad_auth` block as defined below.
 * > **NOTE:** Before adding a secure webhook receiver by setting `aad_auth`, please read [the configuration instruction of the AAD application](https://docs.microsoft.com/azure/azure-monitor/platform/action-groups#secure-webhook).
 * @property name The name of the webhook receiver. Names must be unique (case-insensitive) across all receivers within an action group.
 * @property serviceUri The URI where webhooks should be sent.
 * @property useCommonAlertSchema Enables or disables the common alert schema.
 */
public data class ActionGroupWebhookReceiver(
    public val aadAuth: ActionGroupWebhookReceiverAadAuth? = null,
    public val name: String,
    public val serviceUri: String,
    public val useCommonAlertSchema: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.monitoring.outputs.ActionGroupWebhookReceiver):
            ActionGroupWebhookReceiver = ActionGroupWebhookReceiver(
            aadAuth = javaType.aadAuth().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.ActionGroupWebhookReceiverAadAuth.Companion.toKotlin(args0)
                })
            }).orElse(null),
            name = javaType.name(),
            serviceUri = javaType.serviceUri(),
            useCommonAlertSchema = javaType.useCommonAlertSchema().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy