com.pulumi.gcp.dataplex.kotlin.inputs.DatascanDataQualitySpecArgs.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.dataplex.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataplex.inputs.DatascanDataQualitySpecArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property postScanActions Actions to take upon job completion.
* Structure is documented below.
* @property rowFilter A filter applied to all rows in a single DataScan job. The filter needs to be a valid SQL expression for a WHERE clause in BigQuery standard SQL syntax. Example: col1 >= 0 AND col2 < 10
* @property rules The list of rules to evaluate against a data source. At least one rule is required.
* Structure is documented below.
* @property samplingPercent The percentage of the records to be selected from the dataset for DataScan.
* Value can range between 0.0 and 100.0 with up to 3 significant decimal digits.
* Sampling is not applied if `sampling_percent` is not specified, 0 or 100.
*/
public data class DatascanDataQualitySpecArgs(
public val postScanActions: Output? = null,
public val rowFilter: Output? = null,
public val rules: Output>? = null,
public val samplingPercent: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dataplex.inputs.DatascanDataQualitySpecArgs =
com.pulumi.gcp.dataplex.inputs.DatascanDataQualitySpecArgs.builder()
.postScanActions(postScanActions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.rowFilter(rowFilter?.applyValue({ args0 -> args0 }))
.rules(rules?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.samplingPercent(samplingPercent?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DatascanDataQualitySpecArgs].
*/
@PulumiTagMarker
public class DatascanDataQualitySpecArgsBuilder internal constructor() {
private var postScanActions: Output? = null
private var rowFilter: Output? = null
private var rules: Output>? = null
private var samplingPercent: Output? = null
/**
* @param value Actions to take upon job completion.
* Structure is documented below.
*/
@JvmName("gqhofyehypxbghul")
public suspend fun postScanActions(`value`: Output) {
this.postScanActions = value
}
/**
* @param value A filter applied to all rows in a single DataScan job. The filter needs to be a valid SQL expression for a WHERE clause in BigQuery standard SQL syntax. Example: col1 >= 0 AND col2 < 10
*/
@JvmName("kfbbtsutlsgyjxem")
public suspend fun rowFilter(`value`: Output) {
this.rowFilter = value
}
/**
* @param value The list of rules to evaluate against a data source. At least one rule is required.
* Structure is documented below.
*/
@JvmName("hmpuuppoxrqmedwn")
public suspend fun rules(`value`: Output>) {
this.rules = value
}
@JvmName("uxtkallnqavhbwit")
public suspend fun rules(vararg values: Output) {
this.rules = Output.all(values.asList())
}
/**
* @param values The list of rules to evaluate against a data source. At least one rule is required.
* Structure is documented below.
*/
@JvmName("oxsrqncbslijgksx")
public suspend fun rules(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy