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

com.pulumi.azure.mysql.kotlin.inputs.ServerThreatDetectionPolicyArgs.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.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.mysql.kotlin.inputs

import com.pulumi.azure.mysql.inputs.ServerThreatDetectionPolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property disabledAlerts Specifies a list of alerts which should be disabled. Possible values are `Sql_Injection`, `Sql_Injection_Vulnerability`, `Access_Anomaly`, `Data_Exfiltration` and `Unsafe_Action`.
 * @property emailAccountAdmins Should the account administrators be emailed when this alert is triggered?
 * @property emailAddresses A list of email addresses which alerts should be sent to.
 * @property enabled Is the policy enabled?
 * @property retentionDays Specifies the number of days to keep in the Threat Detection audit logs.
 * @property storageAccountAccessKey Specifies the identifier key of the Threat Detection audit storage account.
 * @property storageEndpoint Specifies the blob storage endpoint (e.g. ). This blob storage will hold all Threat Detection audit logs.
 */
public data class ServerThreatDetectionPolicyArgs(
    public val disabledAlerts: Output>? = null,
    public val emailAccountAdmins: Output? = null,
    public val emailAddresses: Output>? = null,
    public val enabled: Output? = null,
    public val retentionDays: Output? = null,
    public val storageAccountAccessKey: Output? = null,
    public val storageEndpoint: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.mysql.inputs.ServerThreatDetectionPolicyArgs =
        com.pulumi.azure.mysql.inputs.ServerThreatDetectionPolicyArgs.builder()
            .disabledAlerts(disabledAlerts?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .emailAccountAdmins(emailAccountAdmins?.applyValue({ args0 -> args0 }))
            .emailAddresses(emailAddresses?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .retentionDays(retentionDays?.applyValue({ args0 -> args0 }))
            .storageAccountAccessKey(storageAccountAccessKey?.applyValue({ args0 -> args0 }))
            .storageEndpoint(storageEndpoint?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServerThreatDetectionPolicyArgs].
 */
@PulumiTagMarker
public class ServerThreatDetectionPolicyArgsBuilder internal constructor() {
    private var disabledAlerts: Output>? = null

    private var emailAccountAdmins: Output? = null

    private var emailAddresses: Output>? = null

    private var enabled: Output? = null

    private var retentionDays: Output? = null

    private var storageAccountAccessKey: Output? = null

    private var storageEndpoint: Output? = null

    /**
     * @param value Specifies a list of alerts which should be disabled. Possible values are `Sql_Injection`, `Sql_Injection_Vulnerability`, `Access_Anomaly`, `Data_Exfiltration` and `Unsafe_Action`.
     */
    @JvmName("amvrmjhviorqyaqi")
    public suspend fun disabledAlerts(`value`: Output>) {
        this.disabledAlerts = value
    }

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

    /**
     * @param values Specifies a list of alerts which should be disabled. Possible values are `Sql_Injection`, `Sql_Injection_Vulnerability`, `Access_Anomaly`, `Data_Exfiltration` and `Unsafe_Action`.
     */
    @JvmName("wsfvdaogfmbfqgim")
    public suspend fun disabledAlerts(values: List>) {
        this.disabledAlerts = Output.all(values)
    }

    /**
     * @param value Should the account administrators be emailed when this alert is triggered?
     */
    @JvmName("puljiuegvhniesya")
    public suspend fun emailAccountAdmins(`value`: Output) {
        this.emailAccountAdmins = value
    }

    /**
     * @param value A list of email addresses which alerts should be sent to.
     */
    @JvmName("kedekocruajqjqnw")
    public suspend fun emailAddresses(`value`: Output>) {
        this.emailAddresses = value
    }

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

    /**
     * @param values A list of email addresses which alerts should be sent to.
     */
    @JvmName("vxfpfjusrhducvlw")
    public suspend fun emailAddresses(values: List>) {
        this.emailAddresses = Output.all(values)
    }

    /**
     * @param value Is the policy enabled?
     */
    @JvmName("mlnfansodoywifjt")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Specifies the number of days to keep in the Threat Detection audit logs.
     */
    @JvmName("mhbbktlvluklsybo")
    public suspend fun retentionDays(`value`: Output) {
        this.retentionDays = value
    }

    /**
     * @param value Specifies the identifier key of the Threat Detection audit storage account.
     */
    @JvmName("qhebjylnvyalskhl")
    public suspend fun storageAccountAccessKey(`value`: Output) {
        this.storageAccountAccessKey = value
    }

    /**
     * @param value Specifies the blob storage endpoint (e.g. ). This blob storage will hold all Threat Detection audit logs.
     */
    @JvmName("xkvdpemhremknjbj")
    public suspend fun storageEndpoint(`value`: Output) {
        this.storageEndpoint = value
    }

    /**
     * @param value Specifies a list of alerts which should be disabled. Possible values are `Sql_Injection`, `Sql_Injection_Vulnerability`, `Access_Anomaly`, `Data_Exfiltration` and `Unsafe_Action`.
     */
    @JvmName("gswqkphphvirjryf")
    public suspend fun disabledAlerts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.disabledAlerts = mapped
    }

    /**
     * @param values Specifies a list of alerts which should be disabled. Possible values are `Sql_Injection`, `Sql_Injection_Vulnerability`, `Access_Anomaly`, `Data_Exfiltration` and `Unsafe_Action`.
     */
    @JvmName("evmbtbgysdlpthuc")
    public suspend fun disabledAlerts(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.disabledAlerts = mapped
    }

    /**
     * @param value Should the account administrators be emailed when this alert is triggered?
     */
    @JvmName("dhtcgwbbtqimgugg")
    public suspend fun emailAccountAdmins(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.emailAccountAdmins = mapped
    }

    /**
     * @param value A list of email addresses which alerts should be sent to.
     */
    @JvmName("vhnwoigtdmorwmxr")
    public suspend fun emailAddresses(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.emailAddresses = mapped
    }

    /**
     * @param values A list of email addresses which alerts should be sent to.
     */
    @JvmName("jsxpbcsoxjyaxuun")
    public suspend fun emailAddresses(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.emailAddresses = mapped
    }

    /**
     * @param value Is the policy enabled?
     */
    @JvmName("hhinjpupwfyframo")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value Specifies the number of days to keep in the Threat Detection audit logs.
     */
    @JvmName("qwclsjjbdlauehsm")
    public suspend fun retentionDays(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retentionDays = mapped
    }

    /**
     * @param value Specifies the identifier key of the Threat Detection audit storage account.
     */
    @JvmName("pewtoofaeysbdbjg")
    public suspend fun storageAccountAccessKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageAccountAccessKey = mapped
    }

    /**
     * @param value Specifies the blob storage endpoint (e.g. ). This blob storage will hold all Threat Detection audit logs.
     */
    @JvmName("jpcmwhksaeqismee")
    public suspend fun storageEndpoint(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageEndpoint = mapped
    }

    internal fun build(): ServerThreatDetectionPolicyArgs = ServerThreatDetectionPolicyArgs(
        disabledAlerts = disabledAlerts,
        emailAccountAdmins = emailAccountAdmins,
        emailAddresses = emailAddresses,
        enabled = enabled,
        retentionDays = retentionDays,
        storageAccountAccessKey = storageAccountAccessKey,
        storageEndpoint = storageEndpoint,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy