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

com.pulumi.awsnative.bedrock.kotlin.AgentAliasArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.bedrock.kotlin

import com.pulumi.awsnative.bedrock.AgentAliasArgs.builder
import com.pulumi.awsnative.bedrock.kotlin.inputs.AgentAliasRoutingConfigurationListItemArgs
import com.pulumi.awsnative.bedrock.kotlin.inputs.AgentAliasRoutingConfigurationListItemArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Definition of AWS::Bedrock::AgentAlias Resource Type
 * @property agentAliasName Name for a resource.
 * @property agentId Identifier for a resource.
 * @property description Description of the Resource.
 * @property routingConfiguration Routing configuration for an Agent alias.
 * @property tags Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
 * - [Tag naming limits and requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions)
 * - [Tagging best practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices)
 */
public data class AgentAliasArgs(
    public val agentAliasName: Output? = null,
    public val agentId: Output? = null,
    public val description: Output? = null,
    public val routingConfiguration: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.bedrock.AgentAliasArgs =
        com.pulumi.awsnative.bedrock.AgentAliasArgs.builder()
            .agentAliasName(agentAliasName?.applyValue({ args0 -> args0 }))
            .agentId(agentId?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .routingConfiguration(
                routingConfiguration?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [AgentAliasArgs].
 */
@PulumiTagMarker
public class AgentAliasArgsBuilder internal constructor() {
    private var agentAliasName: Output? = null

    private var agentId: Output? = null

    private var description: Output? = null

    private var routingConfiguration: Output>? = null

    private var tags: Output>? = null

    /**
     * @param value Name for a resource.
     */
    @JvmName("nycdxbxxakxqyhwi")
    public suspend fun agentAliasName(`value`: Output) {
        this.agentAliasName = value
    }

    /**
     * @param value Identifier for a resource.
     */
    @JvmName("uadappdtnektrchw")
    public suspend fun agentId(`value`: Output) {
        this.agentId = value
    }

    /**
     * @param value Description of the Resource.
     */
    @JvmName("gxkhqttcmeptulso")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Routing configuration for an Agent alias.
     */
    @JvmName("bdcmyqsnusfbqcfc")
    public suspend fun routingConfiguration(`value`: Output>) {
        this.routingConfiguration = value
    }

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

    /**
     * @param values Routing configuration for an Agent alias.
     */
    @JvmName("tepdgbdaogeyfxpb")
    public suspend fun routingConfiguration(values: List>) {
        this.routingConfiguration = Output.all(values)
    }

    /**
     * @param value Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
     * - [Tag naming limits and requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions)
     * - [Tagging best practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices)
     */
    @JvmName("yeisupeywpttvtxu")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Name for a resource.
     */
    @JvmName("ldoexhosjsegjsnv")
    public suspend fun agentAliasName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.agentAliasName = mapped
    }

    /**
     * @param value Identifier for a resource.
     */
    @JvmName("tirhbqumcbrkmobv")
    public suspend fun agentId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.agentId = mapped
    }

    /**
     * @param value Description of the Resource.
     */
    @JvmName("nnkikfejobxiwpsk")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Routing configuration for an Agent alias.
     */
    @JvmName("pfquhmafumiyqsvw")
    public suspend fun routingConfiguration(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.routingConfiguration = mapped
    }

    /**
     * @param argument Routing configuration for an Agent alias.
     */
    @JvmName("knlcmehjtflrbtia")
    public suspend fun routingConfiguration(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AgentAliasRoutingConfigurationListItemArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.routingConfiguration = mapped
    }

    /**
     * @param argument Routing configuration for an Agent alias.
     */
    @JvmName("dlgdflwxwjmtibnd")
    public suspend fun routingConfiguration(vararg argument: suspend AgentAliasRoutingConfigurationListItemArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AgentAliasRoutingConfigurationListItemArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.routingConfiguration = mapped
    }

    /**
     * @param argument Routing configuration for an Agent alias.
     */
    @JvmName("qhppdhdqoyyeiygu")
    public suspend fun routingConfiguration(argument: suspend AgentAliasRoutingConfigurationListItemArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AgentAliasRoutingConfigurationListItemArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.routingConfiguration = mapped
    }

    /**
     * @param values Routing configuration for an Agent alias.
     */
    @JvmName("fqeyvjddcjklsoal")
    public suspend fun routingConfiguration(vararg values: AgentAliasRoutingConfigurationListItemArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.routingConfiguration = mapped
    }

    /**
     * @param value Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
     * - [Tag naming limits and requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions)
     * - [Tagging best practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices)
     */
    @JvmName("eapvftyjplexivtw")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
     * - [Tag naming limits and requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions)
     * - [Tagging best practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices)
     */
    @JvmName("wuiwmgleflokxdfk")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): AgentAliasArgs = AgentAliasArgs(
        agentAliasName = agentAliasName,
        agentId = agentId,
        description = description,
        routingConfiguration = routingConfiguration,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy