com.pulumi.awsnative.quicksight.kotlin.inputs.AnalysisValidationStrategyArgs.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.quicksight.kotlin.inputs
import com.pulumi.awsnative.quicksight.inputs.AnalysisValidationStrategyArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.AnalysisValidationStrategyMode
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 kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The option to relax the validation that is required to create and update analyses, dashboards, and templates with definition objects. When you set this value to LENIENT
, validation is skipped for specific errors.
* @property mode The mode of validation for the asset to be created or updated. When you set this value to `STRICT` , strict validation for every error is enforced. When you set this value to `LENIENT` , validation is skipped for specific UI errors.
*/
public data class AnalysisValidationStrategyArgs(
public val mode: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.quicksight.inputs.AnalysisValidationStrategyArgs =
com.pulumi.awsnative.quicksight.inputs.AnalysisValidationStrategyArgs.builder()
.mode(mode.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [AnalysisValidationStrategyArgs].
*/
@PulumiTagMarker
public class AnalysisValidationStrategyArgsBuilder internal constructor() {
private var mode: Output? = null
/**
* @param value The mode of validation for the asset to be created or updated. When you set this value to `STRICT` , strict validation for every error is enforced. When you set this value to `LENIENT` , validation is skipped for specific UI errors.
*/
@JvmName("uentchhesmccydyu")
public suspend fun mode(`value`: Output) {
this.mode = value
}
/**
* @param value The mode of validation for the asset to be created or updated. When you set this value to `STRICT` , strict validation for every error is enforced. When you set this value to `LENIENT` , validation is skipped for specific UI errors.
*/
@JvmName("ltmtetsguhtnkxto")
public suspend fun mode(`value`: AnalysisValidationStrategyMode) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.mode = mapped
}
internal fun build(): AnalysisValidationStrategyArgs = AnalysisValidationStrategyArgs(
mode = mode ?: throw PulumiNullFieldException("mode"),
)
}