
com.pulumi.awsnative.cleanrooms.kotlin.inputs.ConfiguredTableAnalysisRuleArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.cleanrooms.kotlin.inputs
import com.pulumi.awsnative.cleanrooms.inputs.ConfiguredTableAnalysisRuleArgs.builder
import com.pulumi.awsnative.cleanrooms.kotlin.enums.ConfiguredTableAnalysisRuleType
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property policy A policy that describes the associated data usage limitations.
* @property type The type of analysis rule.
*/
public data class ConfiguredTableAnalysisRuleArgs(
public val policy: Output,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.cleanrooms.inputs.ConfiguredTableAnalysisRuleArgs =
com.pulumi.awsnative.cleanrooms.inputs.ConfiguredTableAnalysisRuleArgs.builder()
.policy(policy.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.type(type.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ConfiguredTableAnalysisRuleArgs].
*/
@PulumiTagMarker
public class ConfiguredTableAnalysisRuleArgsBuilder internal constructor() {
private var policy: Output? = null
private var type: Output? = null
/**
* @param value A policy that describes the associated data usage limitations.
*/
@JvmName("xjqlouwwexmbqsnl")
public suspend fun policy(`value`: Output) {
this.policy = value
}
/**
* @param value The type of analysis rule.
*/
@JvmName("bnwcswbaskdomvrj")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value A policy that describes the associated data usage limitations.
*/
@JvmName("eeplxftwnsmdacwo")
public suspend fun policy(`value`: ConfiguredTableAnalysisRulePolicyArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.policy = mapped
}
/**
* @param argument A policy that describes the associated data usage limitations.
*/
@JvmName("xpkohjibyllcvxua")
public suspend fun policy(argument: suspend ConfiguredTableAnalysisRulePolicyArgsBuilder.() -> Unit) {
val toBeMapped = ConfiguredTableAnalysisRulePolicyArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.policy = mapped
}
/**
* @param value The type of analysis rule.
*/
@JvmName("jqgmwxkmcatuylkl")
public suspend fun type(`value`: ConfiguredTableAnalysisRuleType) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): ConfiguredTableAnalysisRuleArgs = ConfiguredTableAnalysisRuleArgs(
policy = policy ?: throw PulumiNullFieldException("policy"),
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy