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

com.pulumi.gcp.datastream.kotlin.outputs.StreamSourceConfigPostgresqlSourceConfig.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.datastream.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @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 StreamSourceConfigPostgresqlSourceConfig(
    public val excludeObjects: StreamSourceConfigPostgresqlSourceConfigExcludeObjects? = null,
    public val includeObjects: StreamSourceConfigPostgresqlSourceConfigIncludeObjects? = null,
    public val maxConcurrentBackfillTasks: Int? = null,
    public val publication: String,
    public val replicationSlot: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.datastream.outputs.StreamSourceConfigPostgresqlSourceConfig): StreamSourceConfigPostgresqlSourceConfig = StreamSourceConfigPostgresqlSourceConfig(
            excludeObjects = javaType.excludeObjects().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.datastream.kotlin.outputs.StreamSourceConfigPostgresqlSourceConfigExcludeObjects.Companion.toKotlin(args0)
                })
            }).orElse(null),
            includeObjects = javaType.includeObjects().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.datastream.kotlin.outputs.StreamSourceConfigPostgresqlSourceConfigIncludeObjects.Companion.toKotlin(args0)
                })
            }).orElse(null),
            maxConcurrentBackfillTasks = javaType.maxConcurrentBackfillTasks().map({ args0 ->
                args0
            }).orElse(null),
            publication = javaType.publication(),
            replicationSlot = javaType.replicationSlot(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy