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

com.pulumi.awsnative.bedrock.kotlin.outputs.AgentKnowledgeBase.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.outputs

import com.pulumi.awsnative.bedrock.kotlin.enums.AgentKnowledgeBaseState
import kotlin.String
import kotlin.Suppress

/**
 * Agent Knowledge Base
 * @property description Description of the Resource.
 * @property knowledgeBaseId Identifier for a resource.
 * @property knowledgeBaseState Specifies whether to use the knowledge base or not when sending an [InvokeAgent](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html) request.
 */
public data class AgentKnowledgeBase(
    public val description: String,
    public val knowledgeBaseId: String,
    public val knowledgeBaseState: AgentKnowledgeBaseState? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.bedrock.outputs.AgentKnowledgeBase): AgentKnowledgeBase = AgentKnowledgeBase(
            description = javaType.description(),
            knowledgeBaseId = javaType.knowledgeBaseId(),
            knowledgeBaseState = javaType.knowledgeBaseState().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.bedrock.kotlin.enums.AgentKnowledgeBaseState.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy