com.pulumi.gcp.datastream.kotlin.inputs.StreamSourceConfigPostgresqlSourceConfigArgs.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.datastream.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.datastream.inputs.StreamSourceConfigPostgresqlSourceConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property excludeObjects PostgreSQL objects to exclude from the stream.
* Structure is documented below.
* @property includeObjects PostgreSQL objects to retrieve from the source.
* Structure is documented below.
* @property maxConcurrentBackfillTasks Maximum number of concurrent backfill tasks. The number should be non
* negative. If not set (or set to 0), the system's default value will be used.
* @property publication The name of the publication that includes the set of all tables
* that are defined in the stream's include_objects.
* @property replicationSlot The name of the logical replication slot that's configured with
* the pgoutput plugin.
*/
public data class StreamSourceConfigPostgresqlSourceConfigArgs(
public val excludeObjects: Output? =
null,
public val includeObjects: Output? =
null,
public val maxConcurrentBackfillTasks: Output? = null,
public val publication: Output,
public val replicationSlot: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.datastream.inputs.StreamSourceConfigPostgresqlSourceConfigArgs =
com.pulumi.gcp.datastream.inputs.StreamSourceConfigPostgresqlSourceConfigArgs.builder()
.excludeObjects(excludeObjects?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.includeObjects(includeObjects?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.maxConcurrentBackfillTasks(maxConcurrentBackfillTasks?.applyValue({ args0 -> args0 }))
.publication(publication.applyValue({ args0 -> args0 }))
.replicationSlot(replicationSlot.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [StreamSourceConfigPostgresqlSourceConfigArgs].
*/
@PulumiTagMarker
public class StreamSourceConfigPostgresqlSourceConfigArgsBuilder internal constructor() {
private var excludeObjects: Output? =
null
private var includeObjects: Output? =
null
private var maxConcurrentBackfillTasks: Output? = null
private var publication: Output? = null
private var replicationSlot: Output? = null
/**
* @param value PostgreSQL objects to exclude from the stream.
* Structure is documented below.
*/
@JvmName("ekgvnoswmtajrikj")
public suspend fun excludeObjects(`value`: Output) {
this.excludeObjects = value
}
/**
* @param value PostgreSQL objects to retrieve from the source.
* Structure is documented below.
*/
@JvmName("elynyldjmkqyucbh")
public suspend fun includeObjects(`value`: Output) {
this.includeObjects = value
}
/**
* @param value Maximum number of concurrent backfill tasks. The number should be non
* negative. If not set (or set to 0), the system's default value will be used.
*/
@JvmName("mdtgybqkdovnjkoc")
public suspend fun maxConcurrentBackfillTasks(`value`: Output) {
this.maxConcurrentBackfillTasks = value
}
/**
* @param value The name of the publication that includes the set of all tables
* that are defined in the stream's include_objects.
*/
@JvmName("ghxwrjxuvhxcmfbx")
public suspend fun publication(`value`: Output) {
this.publication = value
}
/**
* @param value The name of the logical replication slot that's configured with
* the pgoutput plugin.
*/
@JvmName("mklhemkndcoegvgx")
public suspend fun replicationSlot(`value`: Output) {
this.replicationSlot = value
}
/**
* @param value PostgreSQL objects to exclude from the stream.
* Structure is documented below.
*/
@JvmName("mtpaphbdixhonynm")
public suspend fun excludeObjects(`value`: StreamSourceConfigPostgresqlSourceConfigExcludeObjectsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.excludeObjects = mapped
}
/**
* @param argument PostgreSQL objects to exclude from the stream.
* Structure is documented below.
*/
@JvmName("iyvacgbreswbytyh")
public suspend fun excludeObjects(argument: suspend StreamSourceConfigPostgresqlSourceConfigExcludeObjectsArgsBuilder.() -> Unit) {
val toBeMapped =
StreamSourceConfigPostgresqlSourceConfigExcludeObjectsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.excludeObjects = mapped
}
/**
* @param value PostgreSQL objects to retrieve from the source.
* Structure is documented below.
*/
@JvmName("ympjlqlrcrgwryfk")
public suspend fun includeObjects(`value`: StreamSourceConfigPostgresqlSourceConfigIncludeObjectsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.includeObjects = mapped
}
/**
* @param argument PostgreSQL objects to retrieve from the source.
* Structure is documented below.
*/
@JvmName("lxhekglihmsuvvuc")
public suspend fun includeObjects(argument: suspend StreamSourceConfigPostgresqlSourceConfigIncludeObjectsArgsBuilder.() -> Unit) {
val toBeMapped =
StreamSourceConfigPostgresqlSourceConfigIncludeObjectsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.includeObjects = mapped
}
/**
* @param value Maximum number of concurrent backfill tasks. The number should be non
* negative. If not set (or set to 0), the system's default value will be used.
*/
@JvmName("vbyofvxcvfronbdf")
public suspend fun maxConcurrentBackfillTasks(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxConcurrentBackfillTasks = mapped
}
/**
* @param value The name of the publication that includes the set of all tables
* that are defined in the stream's include_objects.
*/
@JvmName("jbkmbmfxfebvnguf")
public suspend fun publication(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.publication = mapped
}
/**
* @param value The name of the logical replication slot that's configured with
* the pgoutput plugin.
*/
@JvmName("dyvqfgbtviirwubg")
public suspend fun replicationSlot(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.replicationSlot = mapped
}
internal fun build(): StreamSourceConfigPostgresqlSourceConfigArgs =
StreamSourceConfigPostgresqlSourceConfigArgs(
excludeObjects = excludeObjects,
includeObjects = includeObjects,
maxConcurrentBackfillTasks = maxConcurrentBackfillTasks,
publication = publication ?: throw PulumiNullFieldException("publication"),
replicationSlot = replicationSlot ?: throw PulumiNullFieldException("replicationSlot"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy