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

com.pulumi.awsnative.bedrock.kotlin.inputs.GuardrailTopicPolicyConfigArgs.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.GuardrailTopicPolicyConfigArgs.builder
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.collections.List
import kotlin.jvm.JvmName

/**
 * Topic policy config for a guardrail.
 * @property topicsConfig List of topic configs in topic policy.
 */
public data class GuardrailTopicPolicyConfigArgs(
    public val topicsConfig: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.bedrock.inputs.GuardrailTopicPolicyConfigArgs =
        com.pulumi.awsnative.bedrock.inputs.GuardrailTopicPolicyConfigArgs.builder()
            .topicsConfig(
                topicsConfig.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [GuardrailTopicPolicyConfigArgs].
 */
@PulumiTagMarker
public class GuardrailTopicPolicyConfigArgsBuilder internal constructor() {
    private var topicsConfig: Output>? = null

    /**
     * @param value List of topic configs in topic policy.
     */
    @JvmName("fpignbhnxavobhgp")
    public suspend fun topicsConfig(`value`: Output>) {
        this.topicsConfig = value
    }

    @JvmName("yaluhttwnumjherq")
    public suspend fun topicsConfig(vararg values: Output) {
        this.topicsConfig = Output.all(values.asList())
    }

    /**
     * @param values List of topic configs in topic policy.
     */
    @JvmName("pxmlyfycgnlmcdvn")
    public suspend fun topicsConfig(values: List>) {
        this.topicsConfig = Output.all(values)
    }

    /**
     * @param value List of topic configs in topic policy.
     */
    @JvmName("txxuyslyekrvflir")
    public suspend fun topicsConfig(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.topicsConfig = mapped
    }

    /**
     * @param argument List of topic configs in topic policy.
     */
    @JvmName("sphlfncplxtuwrpl")
    public suspend fun topicsConfig(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GuardrailTopicConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.topicsConfig = mapped
    }

    /**
     * @param argument List of topic configs in topic policy.
     */
    @JvmName("ibwclmlllswobsjq")
    public suspend fun topicsConfig(vararg argument: suspend GuardrailTopicConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GuardrailTopicConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.topicsConfig = mapped
    }

    /**
     * @param argument List of topic configs in topic policy.
     */
    @JvmName("rqcoeocskqufaaav")
    public suspend fun topicsConfig(argument: suspend GuardrailTopicConfigArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(GuardrailTopicConfigArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.topicsConfig = mapped
    }

    /**
     * @param values List of topic configs in topic policy.
     */
    @JvmName("hmhgiqklegtvsvoq")
    public suspend fun topicsConfig(vararg values: GuardrailTopicConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.topicsConfig = mapped
    }

    internal fun build(): GuardrailTopicPolicyConfigArgs = GuardrailTopicPolicyConfigArgs(
        topicsConfig = topicsConfig ?: throw PulumiNullFieldException("topicsConfig"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy