com.pulumi.awsnative.bedrock.kotlin.inputs.GuardrailTopicPolicyConfigArgs.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.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