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