com.pulumi.gcp.eventarc.kotlin.outputs.TriggerTransportPubsub.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.eventarc.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @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 TriggerTransportPubsub(
public val subscription: String? = null,
public val topic: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.eventarc.outputs.TriggerTransportPubsub): TriggerTransportPubsub = TriggerTransportPubsub(
subscription = javaType.subscription().map({ args0 -> args0 }).orElse(null),
topic = javaType.topic().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy