com.pulumi.awsnative.databrew.kotlin.RulesetArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.databrew.kotlin
import com.pulumi.awsnative.databrew.RulesetArgs.builder
import com.pulumi.awsnative.databrew.kotlin.inputs.RulesetRuleArgs
import com.pulumi.awsnative.databrew.kotlin.inputs.RulesetRuleArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Resource schema for AWS::DataBrew::Ruleset.
* @property description Description of the Ruleset
* @property name Name of the Ruleset
* @property rules List of the data quality rules in the ruleset
* @property tags An array of key-value pairs to apply to this resource.
* For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
* @property targetArn Arn of the target resource (dataset) to apply the ruleset to
*/
public data class RulesetArgs(
public val description: Output? = null,
public val name: Output? = null,
public val rules: Output>? = null,
public val tags: Output>? = null,
public val targetArn: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.databrew.RulesetArgs =
com.pulumi.awsnative.databrew.RulesetArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.rules(rules?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.targetArn(targetArn?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RulesetArgs].
*/
@PulumiTagMarker
public class RulesetArgsBuilder internal constructor() {
private var description: Output? = null
private var name: Output? = null
private var rules: Output>? = null
private var tags: Output>? = null
private var targetArn: Output? = null
/**
* @param value Description of the Ruleset
*/
@JvmName("feflxfeqktttpcxr")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Name of the Ruleset
*/
@JvmName("xawilospeemohykc")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value List of the data quality rules in the ruleset
*/
@JvmName("bgpecukjisjehdaf")
public suspend fun rules(`value`: Output>) {
this.rules = value
}
@JvmName("dvgqblpmdvrqpwxv")
public suspend fun rules(vararg values: Output) {
this.rules = Output.all(values.asList())
}
/**
* @param values List of the data quality rules in the ruleset
*/
@JvmName("rbyqidkstgihmhlf")
public suspend fun rules(values: List