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

com.pulumi.awsnative.databrew.kotlin.RulesetArgs.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: 1.11.0.0
Show newest version
@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>) {
        this.rules = Output.all(values)
    }

    /**
     * @param value 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) .
     */
    @JvmName("yhhtxveujauuvcxe")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("fubfysxynrcafxxl")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values 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) .
     */
    @JvmName("bitylunddmjpprfi")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Arn of the target resource (dataset) to apply the ruleset to
     */
    @JvmName("pnnvqxjvgfcwygcy")
    public suspend fun targetArn(`value`: Output) {
        this.targetArn = value
    }

    /**
     * @param value Description of the Ruleset
     */
    @JvmName("ydfyhlkawqiifuqr")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Name of the Ruleset
     */
    @JvmName("nuyuiwjunhthingt")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value List of the data quality rules in the ruleset
     */
    @JvmName("uwnjyqvgpqcljfcq")
    public suspend fun rules(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rules = mapped
    }

    /**
     * @param argument List of the data quality rules in the ruleset
     */
    @JvmName("gqiadmshecmutonw")
    public suspend fun rules(argument: List Unit>) {
        val toBeMapped = argument.toList().map { RulesetRuleArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param argument List of the data quality rules in the ruleset
     */
    @JvmName("yfkkehpvvcurobjy")
    public suspend fun rules(vararg argument: suspend RulesetRuleArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { RulesetRuleArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param argument List of the data quality rules in the ruleset
     */
    @JvmName("ubuvaewkmvggkfot")
    public suspend fun rules(argument: suspend RulesetRuleArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(RulesetRuleArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param values List of the data quality rules in the ruleset
     */
    @JvmName("qiuiwsrlvkyymogh")
    public suspend fun rules(vararg values: RulesetRuleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rules = mapped
    }

    /**
     * @param value 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) .
     */
    @JvmName("nmtsctatoyftklym")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument 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) .
     */
    @JvmName("kxfvgxrwtolndbqv")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument 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) .
     */
    @JvmName("xwlvpxfhdlxhcdwo")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument 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) .
     */
    @JvmName("vmxabusexjsyppbe")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values 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) .
     */
    @JvmName("hcnyfyeueishvpbe")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Arn of the target resource (dataset) to apply the ruleset to
     */
    @JvmName("kfbtrtisaevnquww")
    public suspend fun targetArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetArn = mapped
    }

    internal fun build(): RulesetArgs = RulesetArgs(
        description = description,
        name = name,
        rules = rules,
        tags = tags,
        targetArn = targetArn,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy