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

com.pulumi.aws.bedrock.kotlin.inputs.GuardrailContextualGroundingPolicyConfigArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.bedrock.kotlin.inputs

import com.pulumi.aws.bedrock.inputs.GuardrailContextualGroundingPolicyConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property filtersConfigs List of contextual grounding filter configs. See Contextual Grounding Filters Config for more information.
 */
public data class GuardrailContextualGroundingPolicyConfigArgs(
    public val filtersConfigs: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.bedrock.inputs.GuardrailContextualGroundingPolicyConfigArgs = com.pulumi.aws.bedrock.inputs.GuardrailContextualGroundingPolicyConfigArgs.builder()
        .filtersConfigs(
            filtersConfigs?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        ).build()
}

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

    /**
     * @param value List of contextual grounding filter configs. See Contextual Grounding Filters Config for more information.
     */
    @JvmName("ynfkcygsiufnsjhp")
    public suspend fun filtersConfigs(`value`: Output>) {
        this.filtersConfigs = value
    }

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

    /**
     * @param values List of contextual grounding filter configs. See Contextual Grounding Filters Config for more information.
     */
    @JvmName("onvajugovfupusky")
    public suspend fun filtersConfigs(values: List>) {
        this.filtersConfigs = Output.all(values)
    }

    /**
     * @param value List of contextual grounding filter configs. See Contextual Grounding Filters Config for more information.
     */
    @JvmName("sqvxnvrocrhlmjov")
    public suspend fun filtersConfigs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filtersConfigs = mapped
    }

    /**
     * @param argument List of contextual grounding filter configs. See Contextual Grounding Filters Config for more information.
     */
    @JvmName("fyayhdgrwtdgjxer")
    public suspend fun filtersConfigs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GuardrailContextualGroundingPolicyConfigFiltersConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.filtersConfigs = mapped
    }

    /**
     * @param argument List of contextual grounding filter configs. See Contextual Grounding Filters Config for more information.
     */
    @JvmName("twnwawgrjplvwiko")
    public suspend fun filtersConfigs(vararg argument: suspend GuardrailContextualGroundingPolicyConfigFiltersConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GuardrailContextualGroundingPolicyConfigFiltersConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.filtersConfigs = mapped
    }

    /**
     * @param argument List of contextual grounding filter configs. See Contextual Grounding Filters Config for more information.
     */
    @JvmName("kwxscaxbxspbnoff")
    public suspend fun filtersConfigs(argument: suspend GuardrailContextualGroundingPolicyConfigFiltersConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                GuardrailContextualGroundingPolicyConfigFiltersConfigArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.filtersConfigs = mapped
    }

    /**
     * @param values List of contextual grounding filter configs. See Contextual Grounding Filters Config for more information.
     */
    @JvmName("ptweryaturxchcib")
    public suspend fun filtersConfigs(vararg values: GuardrailContextualGroundingPolicyConfigFiltersConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.filtersConfigs = mapped
    }

    internal fun build(): GuardrailContextualGroundingPolicyConfigArgs =
        GuardrailContextualGroundingPolicyConfigArgs(
            filtersConfigs = filtersConfigs,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy