com.pulumi.gcp.datastream.kotlin.outputs.StreamDestinationConfigBigqueryDestinationConfig.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.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property appendOnly AppendOnly mode defines that the stream of changes (INSERT, UPDATE-INSERT, UPDATE-DELETE and DELETE
* events) to a source table will be written to the destination Google BigQuery table, retaining the
* historical state of the data.
* @property dataFreshness The guaranteed data freshness (in seconds) when querying tables created by the stream.
* Editing this field will only affect new tables created in the future, but existing tables
* will not be impacted. Lower values mean that queries will return fresher data, but may result in higher cost.
* A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s". Defaults to 900s.
* @property merge Merge mode defines that all changes to a table will be merged at the destination Google BigQuery
* table. This is the default write mode. When selected, BigQuery reflects the way the data is stored
* in the source database. With Merge mode, no historical record of the change events is kept.
* @property singleTargetDataset A single target dataset to which all data will be streamed.
* Structure is documented below.
* @property sourceHierarchyDatasets Destination datasets are created so that hierarchy of the destination data objects matches the source hierarchy.
* Structure is documented below.
*/
public data class StreamDestinationConfigBigqueryDestinationConfig(
public val appendOnly: StreamDestinationConfigBigqueryDestinationConfigAppendOnly? = null,
public val dataFreshness: String? = null,
public val merge: StreamDestinationConfigBigqueryDestinationConfigMerge? = null,
public val singleTargetDataset: StreamDestinationConfigBigqueryDestinationConfigSingleTargetDataset? = null,
public val sourceHierarchyDatasets: StreamDestinationConfigBigqueryDestinationConfigSourceHierarchyDatasets? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.datastream.outputs.StreamDestinationConfigBigqueryDestinationConfig): StreamDestinationConfigBigqueryDestinationConfig =
StreamDestinationConfigBigqueryDestinationConfig(
appendOnly = javaType.appendOnly().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.datastream.kotlin.outputs.StreamDestinationConfigBigqueryDestinationConfigAppendOnly.Companion.toKotlin(args0)
})
}).orElse(null),
dataFreshness = javaType.dataFreshness().map({ args0 -> args0 }).orElse(null),
merge = javaType.merge().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.datastream.kotlin.outputs.StreamDestinationConfigBigqueryDestinationConfigMerge.Companion.toKotlin(args0)
})
}).orElse(null),
singleTargetDataset = javaType.singleTargetDataset().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.datastream.kotlin.outputs.StreamDestinationConfigBigqueryDestinationConfigSingleTargetDataset.Companion.toKotlin(args0)
})
}).orElse(null),
sourceHierarchyDatasets = javaType.sourceHierarchyDatasets().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.datastream.kotlin.outputs.StreamDestinationConfigBigqueryDestinationConfigSourceHierarchyDatasets.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy