![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.mysql.kotlin.outputs.ServerThreatDetectionPolicy.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.mysql.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @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 ServerThreatDetectionPolicy(
public val disabledAlerts: List? = null,
public val emailAccountAdmins: Boolean? = null,
public val emailAddresses: List? = null,
public val enabled: Boolean? = null,
public val retentionDays: Int? = null,
public val storageAccountAccessKey: String? = null,
public val storageEndpoint: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.mysql.outputs.ServerThreatDetectionPolicy): ServerThreatDetectionPolicy = ServerThreatDetectionPolicy(
disabledAlerts = javaType.disabledAlerts().map({ args0 -> args0 }),
emailAccountAdmins = javaType.emailAccountAdmins().map({ args0 -> args0 }).orElse(null),
emailAddresses = javaType.emailAddresses().map({ args0 -> args0 }),
enabled = javaType.enabled().map({ args0 -> args0 }).orElse(null),
retentionDays = javaType.retentionDays().map({ args0 -> args0 }).orElse(null),
storageAccountAccessKey = javaType.storageAccountAccessKey().map({ args0 -> args0 }).orElse(null),
storageEndpoint = javaType.storageEndpoint().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy