com.pulumi.azure.mssql.kotlin.inputs.DatabaseThreatDetectionPolicyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.mssql.kotlin.inputs
import com.pulumi.azure.mssql.inputs.DatabaseThreatDetectionPolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
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 include `Access_Anomaly`, `Sql_Injection` and `Sql_Injection_Vulnerability`.
* @property emailAccountAdmins Should the account administrators be emailed when this alert is triggered? Possible values are `Enabled` or `Disabled`. Defaults to `Disabled`.
* @property emailAddresses A list of email addresses which alerts should be sent to.
* @property retentionDays Specifies the number of days to keep in the Threat Detection audit logs.
* @property state The State of the Policy. Possible values are `Enabled` or `Disabled`. Defaults to `Disabled`.
* @property storageAccountAccessKey Specifies the identifier key of the Threat Detection audit storage account. Required if `state` is `Enabled`.
* @property storageEndpoint Specifies the blob storage endpoint (e.g. ). This blob storage will hold all Threat Detection audit logs. Required if `state` is `Enabled`.
*/
public data class DatabaseThreatDetectionPolicyArgs(
public val disabledAlerts: Output>? = null,
public val emailAccountAdmins: Output? = null,
public val emailAddresses: Output>? = null,
public val retentionDays: Output? = null,
public val state: Output? = null,
public val storageAccountAccessKey: Output? = null,
public val storageEndpoint: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.mssql.inputs.DatabaseThreatDetectionPolicyArgs =
com.pulumi.azure.mssql.inputs.DatabaseThreatDetectionPolicyArgs.builder()
.disabledAlerts(disabledAlerts?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.emailAccountAdmins(emailAccountAdmins?.applyValue({ args0 -> args0 }))
.emailAddresses(emailAddresses?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.retentionDays(retentionDays?.applyValue({ args0 -> args0 }))
.state(state?.applyValue({ args0 -> args0 }))
.storageAccountAccessKey(storageAccountAccessKey?.applyValue({ args0 -> args0 }))
.storageEndpoint(storageEndpoint?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DatabaseThreatDetectionPolicyArgs].
*/
@PulumiTagMarker
public class DatabaseThreatDetectionPolicyArgsBuilder internal constructor() {
private var disabledAlerts: Output>? = null
private var emailAccountAdmins: Output? = null
private var emailAddresses: Output>? = null
private var retentionDays: Output? = null
private var state: 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 include `Access_Anomaly`, `Sql_Injection` and `Sql_Injection_Vulnerability`.
*/
@JvmName("pinxxumskalljyma")
public suspend fun disabledAlerts(`value`: Output>) {
this.disabledAlerts = value
}
@JvmName("wrmnqrodoseavcvh")
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 include `Access_Anomaly`, `Sql_Injection` and `Sql_Injection_Vulnerability`.
*/
@JvmName("oprjbykeemcbdtxo")
public suspend fun disabledAlerts(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy