com.pulumi.awsnative.bedrock.kotlin.inputs.GuardrailTopicConfigArgs.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.bedrock.kotlin.inputs
import com.pulumi.awsnative.bedrock.inputs.GuardrailTopicConfigArgs.builder
import com.pulumi.awsnative.bedrock.kotlin.enums.GuardrailTopicType
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.collections.List
import kotlin.jvm.JvmName
/**
* Topic config in topic policy.
* @property definition Definition of topic in topic policy
* @property examples List of text examples
* @property name Name of topic in topic policy
* @property type Specifies to deny the topic.
*/
public data class GuardrailTopicConfigArgs(
public val definition: Output,
public val examples: Output>? = null,
public val name: Output,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.bedrock.inputs.GuardrailTopicConfigArgs =
com.pulumi.awsnative.bedrock.inputs.GuardrailTopicConfigArgs.builder()
.definition(definition.applyValue({ args0 -> args0 }))
.examples(examples?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.name(name.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [GuardrailTopicConfigArgs].
*/
@PulumiTagMarker
public class GuardrailTopicConfigArgsBuilder internal constructor() {
private var definition: Output? = null
private var examples: Output>? = null
private var name: Output? = null
private var type: Output? = null
/**
* @param value Definition of topic in topic policy
*/
@JvmName("cfvtsrngrtcmkjfd")
public suspend fun definition(`value`: Output) {
this.definition = value
}
/**
* @param value List of text examples
*/
@JvmName("ajwncnncitvlikjb")
public suspend fun examples(`value`: Output>) {
this.examples = value
}
@JvmName("kcteksxjobudsben")
public suspend fun examples(vararg values: Output) {
this.examples = Output.all(values.asList())
}
/**
* @param values List of text examples
*/
@JvmName("ggdvcvniutpibrgn")
public suspend fun examples(values: List