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

com.pulumi.awsnative.bedrock.kotlin.outputs.GetKnowledgeBaseResult.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.bedrock.kotlin.outputs

import com.pulumi.awsnative.bedrock.kotlin.enums.KnowledgeBaseStatus
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 *
 * @property createdAt The time at which the knowledge base was created.
 * @property description Description of the Resource.
 * @property failureReasons A list of reasons that the API operation on the knowledge base failed.
 * @property knowledgeBaseArn The ARN of the knowledge base.
 * @property knowledgeBaseId The unique identifier of the knowledge base.
 * @property name The name of the knowledge base.
 * @property roleArn The ARN of the IAM role with permissions to invoke API operations on the knowledge base. The ARN must begin with AmazonBedrockExecutionRoleForKnowledgeBase_
 * @property status The status of the knowledge base.
 * @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)
 * @property updatedAt The time at which the knowledge base was last updated.
 */
public data class GetKnowledgeBaseResult(
    public val createdAt: String? = null,
    public val description: String? = null,
    public val failureReasons: List? = null,
    public val knowledgeBaseArn: String? = null,
    public val knowledgeBaseId: String? = null,
    public val name: String? = null,
    public val roleArn: String? = null,
    public val status: KnowledgeBaseStatus? = null,
    public val tags: Map? = null,
    public val updatedAt: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.bedrock.outputs.GetKnowledgeBaseResult): GetKnowledgeBaseResult = GetKnowledgeBaseResult(
            createdAt = javaType.createdAt().map({ args0 -> args0 }).orElse(null),
            description = javaType.description().map({ args0 -> args0 }).orElse(null),
            failureReasons = javaType.failureReasons().map({ args0 -> args0 }),
            knowledgeBaseArn = javaType.knowledgeBaseArn().map({ args0 -> args0 }).orElse(null),
            knowledgeBaseId = javaType.knowledgeBaseId().map({ args0 -> args0 }).orElse(null),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            roleArn = javaType.roleArn().map({ args0 -> args0 }).orElse(null),
            status = javaType.status().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.bedrock.kotlin.enums.KnowledgeBaseStatus.Companion.toKotlin(args0)
                })
            }).orElse(null),
            tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            updatedAt = javaType.updatedAt().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy