com.pulumi.gcp.dataloss.kotlin.outputs.PreventionDiscoveryConfigActionPubSubNotification.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.dataloss.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property detailOfMessage How much data to include in the pub/sub message.
* Possible values are: `TABLE_PROFILE`, `RESOURCE_NAME`.
* @property event The type of event that triggers a Pub/Sub. At most one PubSubNotification per EventType is permitted.
* Possible values are: `NEW_PROFILE`, `CHANGED_PROFILE`, `SCORE_INCREASED`, `ERROR_CHANGED`.
* @property pubsubCondition Conditions for triggering pubsub
* Structure is documented below.
* @property topic Cloud Pub/Sub topic to send notifications to. Format is projects/{project}/topics/{topic}.
*/
public data class PreventionDiscoveryConfigActionPubSubNotification(
public val detailOfMessage: String? = null,
public val event: String? = null,
public val pubsubCondition: PreventionDiscoveryConfigActionPubSubNotificationPubsubCondition? =
null,
public val topic: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.dataloss.outputs.PreventionDiscoveryConfigActionPubSubNotification): PreventionDiscoveryConfigActionPubSubNotification =
PreventionDiscoveryConfigActionPubSubNotification(
detailOfMessage = javaType.detailOfMessage().map({ args0 -> args0 }).orElse(null),
event = javaType.event().map({ args0 -> args0 }).orElse(null),
pubsubCondition = javaType.pubsubCondition().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.dataloss.kotlin.outputs.PreventionDiscoveryConfigActionPubSubNotificationPubsubCondition.Companion.toKotlin(args0)
})
}).orElse(null),
topic = javaType.topic().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy