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

com.pulumi.gcp.dataloss.kotlin.inputs.PreventionDiscoveryConfigActionPubSubNotificationArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.dataloss.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataloss.inputs.PreventionDiscoveryConfigActionPubSubNotificationArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @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 PreventionDiscoveryConfigActionPubSubNotificationArgs(
    public val detailOfMessage: Output? = null,
    public val event: Output? = null,
    public val pubsubCondition: Output? = null,
    public val topic: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionDiscoveryConfigActionPubSubNotificationArgs =
        com.pulumi.gcp.dataloss.inputs.PreventionDiscoveryConfigActionPubSubNotificationArgs.builder()
            .detailOfMessage(detailOfMessage?.applyValue({ args0 -> args0 }))
            .event(event?.applyValue({ args0 -> args0 }))
            .pubsubCondition(pubsubCondition?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .topic(topic?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PreventionDiscoveryConfigActionPubSubNotificationArgs].
 */
@PulumiTagMarker
public class PreventionDiscoveryConfigActionPubSubNotificationArgsBuilder internal constructor() {
    private var detailOfMessage: Output? = null

    private var event: Output? = null

    private var pubsubCondition:
        Output? = null

    private var topic: Output? = null

    /**
     * @param value How much data to include in the pub/sub message.
     * Possible values are: `TABLE_PROFILE`, `RESOURCE_NAME`.
     */
    @JvmName("oqdbgbavqjddbmit")
    public suspend fun detailOfMessage(`value`: Output) {
        this.detailOfMessage = value
    }

    /**
     * @param value 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`.
     */
    @JvmName("cvsgtaowsytitsrl")
    public suspend fun event(`value`: Output) {
        this.event = value
    }

    /**
     * @param value Conditions for triggering pubsub
     * Structure is documented below.
     */
    @JvmName("hnachiukacjufrsb")
    public suspend fun pubsubCondition(`value`: Output) {
        this.pubsubCondition = value
    }

    /**
     * @param value Cloud Pub/Sub topic to send notifications to. Format is projects/{project}/topics/{topic}.
     */
    @JvmName("novvmuworfsvwgot")
    public suspend fun topic(`value`: Output) {
        this.topic = value
    }

    /**
     * @param value How much data to include in the pub/sub message.
     * Possible values are: `TABLE_PROFILE`, `RESOURCE_NAME`.
     */
    @JvmName("exelfgifeajgclvp")
    public suspend fun detailOfMessage(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.detailOfMessage = mapped
    }

    /**
     * @param value 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`.
     */
    @JvmName("cxukdyvsewuqease")
    public suspend fun event(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.event = mapped
    }

    /**
     * @param value Conditions for triggering pubsub
     * Structure is documented below.
     */
    @JvmName("iaoeflxvrkixxfly")
    public suspend fun pubsubCondition(`value`: PreventionDiscoveryConfigActionPubSubNotificationPubsubConditionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pubsubCondition = mapped
    }

    /**
     * @param argument Conditions for triggering pubsub
     * Structure is documented below.
     */
    @JvmName("cfmmkqslomxapaks")
    public suspend fun pubsubCondition(argument: suspend PreventionDiscoveryConfigActionPubSubNotificationPubsubConditionArgsBuilder.() -> Unit) {
        val toBeMapped =
            PreventionDiscoveryConfigActionPubSubNotificationPubsubConditionArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.pubsubCondition = mapped
    }

    /**
     * @param value Cloud Pub/Sub topic to send notifications to. Format is projects/{project}/topics/{topic}.
     */
    @JvmName("pmhcmgciditiwpwi")
    public suspend fun topic(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.topic = mapped
    }

    internal fun build(): PreventionDiscoveryConfigActionPubSubNotificationArgs =
        PreventionDiscoveryConfigActionPubSubNotificationArgs(
            detailOfMessage = detailOfMessage,
            event = event,
            pubsubCondition = pubsubCondition,
            topic = topic,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy