![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.bedrock.kotlin.inputs.GuardrailRegexConfigArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.bedrock.kotlin.inputs
import com.pulumi.awsnative.bedrock.inputs.GuardrailRegexConfigArgs.builder
import com.pulumi.awsnative.bedrock.kotlin.enums.GuardrailSensitiveInformationAction
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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A regex configuration.
* @property action The guardrail action to configure when matching regular expression is detected.
* @property description The regex description.
* @property name The regex name.
* @property pattern The regex pattern.
*/
public data class GuardrailRegexConfigArgs(
public val action: Output,
public val description: Output? = null,
public val name: Output,
public val pattern: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.bedrock.inputs.GuardrailRegexConfigArgs =
com.pulumi.awsnative.bedrock.inputs.GuardrailRegexConfigArgs.builder()
.action(action.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.description(description?.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.pattern(pattern.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [GuardrailRegexConfigArgs].
*/
@PulumiTagMarker
public class GuardrailRegexConfigArgsBuilder internal constructor() {
private var action: Output? = null
private var description: Output? = null
private var name: Output? = null
private var pattern: Output? = null
/**
* @param value The guardrail action to configure when matching regular expression is detected.
*/
@JvmName("iwoeubotalrblgnk")
public suspend fun action(`value`: Output) {
this.action = value
}
/**
* @param value The regex description.
*/
@JvmName("wbvkkwpivrhuvdhn")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The regex name.
*/
@JvmName("lcevkxomnbisrgto")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The regex pattern.
*/
@JvmName("gqyfeefxayfqdqdd")
public suspend fun pattern(`value`: Output) {
this.pattern = value
}
/**
* @param value The guardrail action to configure when matching regular expression is detected.
*/
@JvmName("ftncyubnayqgroxw")
public suspend fun action(`value`: GuardrailSensitiveInformationAction) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.action = mapped
}
/**
* @param value The regex description.
*/
@JvmName("incjsjvxapigftvq")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value The regex name.
*/
@JvmName("lgcjglkqrogqdwut")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The regex pattern.
*/
@JvmName("fohdryhtjxqnjfsn")
public suspend fun pattern(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.pattern = mapped
}
internal fun build(): GuardrailRegexConfigArgs = GuardrailRegexConfigArgs(
action = action ?: throw PulumiNullFieldException("action"),
description = description,
name = name ?: throw PulumiNullFieldException("name"),
pattern = pattern ?: throw PulumiNullFieldException("pattern"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy