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