com.pulumi.gcp.sourcerepo.kotlin.inputs.RepositoryPubsubConfigArgs.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.sourcerepo.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.sourcerepo.inputs.RepositoryPubsubConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property messageFormat The format of the Cloud Pub/Sub messages.
* - PROTOBUF: The message payload is a serialized protocol buffer of SourceRepoEvent.
* - JSON: The message payload is a JSON string of SourceRepoEvent.
* Possible values are: `PROTOBUF`, `JSON`.
* @property serviceAccountEmail Email address of the service account used for publishing Cloud Pub/Sub messages.
* This service account needs to be in the same project as the PubsubConfig. When added,
* the caller needs to have iam.serviceAccounts.actAs permission on this service account.
* If unspecified, it defaults to the compute engine default service account.
* @property topic The identifier for this object. Format specified above.
*/
public data class RepositoryPubsubConfigArgs(
public val messageFormat: Output,
public val serviceAccountEmail: Output? = null,
public val topic: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.sourcerepo.inputs.RepositoryPubsubConfigArgs =
com.pulumi.gcp.sourcerepo.inputs.RepositoryPubsubConfigArgs.builder()
.messageFormat(messageFormat.applyValue({ args0 -> args0 }))
.serviceAccountEmail(serviceAccountEmail?.applyValue({ args0 -> args0 }))
.topic(topic.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RepositoryPubsubConfigArgs].
*/
@PulumiTagMarker
public class RepositoryPubsubConfigArgsBuilder internal constructor() {
private var messageFormat: Output? = null
private var serviceAccountEmail: Output? = null
private var topic: Output? = null
/**
* @param value The format of the Cloud Pub/Sub messages.
* - PROTOBUF: The message payload is a serialized protocol buffer of SourceRepoEvent.
* - JSON: The message payload is a JSON string of SourceRepoEvent.
* Possible values are: `PROTOBUF`, `JSON`.
*/
@JvmName("hbddtlaaubdquhjh")
public suspend fun messageFormat(`value`: Output) {
this.messageFormat = value
}
/**
* @param value Email address of the service account used for publishing Cloud Pub/Sub messages.
* This service account needs to be in the same project as the PubsubConfig. When added,
* the caller needs to have iam.serviceAccounts.actAs permission on this service account.
* If unspecified, it defaults to the compute engine default service account.
*/
@JvmName("bymcamatgrugvuja")
public suspend fun serviceAccountEmail(`value`: Output) {
this.serviceAccountEmail = value
}
/**
* @param value The identifier for this object. Format specified above.
*/
@JvmName("xsdwsogdrywnlavg")
public suspend fun topic(`value`: Output) {
this.topic = value
}
/**
* @param value The format of the Cloud Pub/Sub messages.
* - PROTOBUF: The message payload is a serialized protocol buffer of SourceRepoEvent.
* - JSON: The message payload is a JSON string of SourceRepoEvent.
* Possible values are: `PROTOBUF`, `JSON`.
*/
@JvmName("hcinskcavaagttbn")
public suspend fun messageFormat(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.messageFormat = mapped
}
/**
* @param value Email address of the service account used for publishing Cloud Pub/Sub messages.
* This service account needs to be in the same project as the PubsubConfig. When added,
* the caller needs to have iam.serviceAccounts.actAs permission on this service account.
* If unspecified, it defaults to the compute engine default service account.
*/
@JvmName("nijdaoaqflkreycm")
public suspend fun serviceAccountEmail(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serviceAccountEmail = mapped
}
/**
* @param value The identifier for this object. Format specified above.
*/
@JvmName("kgwhumjtqoxgiufa")
public suspend fun topic(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.topic = mapped
}
internal fun build(): RepositoryPubsubConfigArgs = RepositoryPubsubConfigArgs(
messageFormat = messageFormat ?: throw PulumiNullFieldException("messageFormat"),
serviceAccountEmail = serviceAccountEmail,
topic = topic ?: throw PulumiNullFieldException("topic"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy