Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
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.sql.kotlin.inputs
import com.pulumi.azure.sql.inputs.SqlServerThreatDetectionPolicyArgs.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 include `Access_Anomaly`, `Data_Exfiltration`, `Sql_Injection`, `Sql_Injection_Vulnerability` 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 retentionDays Specifies the number of days to keep in the Threat Detection audit logs.
* @property state The State of the Policy. Possible values are `Disabled`, `Enabled` and `New`. 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 SqlServerThreatDetectionPolicyArgs(
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.sql.inputs.SqlServerThreatDetectionPolicyArgs =
com.pulumi.azure.sql.inputs.SqlServerThreatDetectionPolicyArgs.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 [SqlServerThreatDetectionPolicyArgs].
*/
@PulumiTagMarker
public class SqlServerThreatDetectionPolicyArgsBuilder 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`, `Data_Exfiltration`, `Sql_Injection`, `Sql_Injection_Vulnerability` and `Unsafe_Action"`,.
*/
@JvmName("ugjptcxssvrrdsjd")
public suspend fun disabledAlerts(`value`: Output>) {
this.disabledAlerts = value
}
@JvmName("uiippkmixeyvtilp")
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`, `Data_Exfiltration`, `Sql_Injection`, `Sql_Injection_Vulnerability` and `Unsafe_Action"`,.
*/
@JvmName("qehlevrpvmvqakje")
public suspend fun disabledAlerts(values: List