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

com.pulumi.awsnative.bedrock.kotlin.inputs.GuardrailTopicConfigArgs.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: 0.122.0.0
Show newest version
@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>) {
        this.examples = Output.all(values)
    }

    /**
     * @param value Name of topic in topic policy
     */
    @JvmName("cfovljwcukdjjilf")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Specifies to deny the topic.
     */
    @JvmName("prwglhxuococepjn")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Definition of topic in topic policy
     */
    @JvmName("hfcrxqpwjgirtbuw")
    public suspend fun definition(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.definition = mapped
    }

    /**
     * @param value List of text examples
     */
    @JvmName("gwseeurbwitjrdwe")
    public suspend fun examples(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.examples = mapped
    }

    /**
     * @param values List of text examples
     */
    @JvmName("kinhahqaksicppqp")
    public suspend fun examples(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.examples = mapped
    }

    /**
     * @param value Name of topic in topic policy
     */
    @JvmName("turlqctpbupwfrdm")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Specifies to deny the topic.
     */
    @JvmName("dfcnnqfjltyukqgk")
    public suspend fun type(`value`: GuardrailTopicType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): GuardrailTopicConfigArgs = GuardrailTopicConfigArgs(
        definition = definition ?: throw PulumiNullFieldException("definition"),
        examples = examples,
        name = name ?: throw PulumiNullFieldException("name"),
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy