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

com.pulumi.gcp.eventarc.kotlin.inputs.TriggerTransportPubsubArgs.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.eventarc.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.eventarc.inputs.TriggerTransportPubsubArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property subscription Output only. The name of the Pub/Sub subscription created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`.
 * @property topic Optional. The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{PROJECT_ID}/topics/{TOPIC_NAME}. You may set an existing topic for triggers of the type google.cloud.pubsub.topic.v1.messagePublished` only. The topic you provide here will not be deleted by Eventarc at trigger deletion.
 */
public data class TriggerTransportPubsubArgs(
    public val subscription: Output? = null,
    public val topic: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.eventarc.inputs.TriggerTransportPubsubArgs =
        com.pulumi.gcp.eventarc.inputs.TriggerTransportPubsubArgs.builder()
            .subscription(subscription?.applyValue({ args0 -> args0 }))
            .topic(topic?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TriggerTransportPubsubArgs].
 */
@PulumiTagMarker
public class TriggerTransportPubsubArgsBuilder internal constructor() {
    private var subscription: Output? = null

    private var topic: Output? = null

    /**
     * @param value Output only. The name of the Pub/Sub subscription created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`.
     */
    @JvmName("oioriwjwgmykxpmv")
    public suspend fun subscription(`value`: Output) {
        this.subscription = value
    }

    /**
     * @param value Optional. The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{PROJECT_ID}/topics/{TOPIC_NAME}. You may set an existing topic for triggers of the type google.cloud.pubsub.topic.v1.messagePublished` only. The topic you provide here will not be deleted by Eventarc at trigger deletion.
     */
    @JvmName("ncimxcucfkpmnrrd")
    public suspend fun topic(`value`: Output) {
        this.topic = value
    }

    /**
     * @param value Output only. The name of the Pub/Sub subscription created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`.
     */
    @JvmName("axmkvcmobouwpxiv")
    public suspend fun subscription(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subscription = mapped
    }

    /**
     * @param value Optional. The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{PROJECT_ID}/topics/{TOPIC_NAME}. You may set an existing topic for triggers of the type google.cloud.pubsub.topic.v1.messagePublished` only. The topic you provide here will not be deleted by Eventarc at trigger deletion.
     */
    @JvmName("ptjdqtamtqmaruqx")
    public suspend fun topic(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.topic = mapped
    }

    internal fun build(): TriggerTransportPubsubArgs = TriggerTransportPubsubArgs(
        subscription = subscription,
        topic = topic,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy