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

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

package com.pulumi.awsnative.bedrock.kotlin

import com.pulumi.awsnative.bedrock.BedrockFunctions.getAgentAliasPlain
import com.pulumi.awsnative.bedrock.BedrockFunctions.getAgentPlain
import com.pulumi.awsnative.bedrock.BedrockFunctions.getDataSourcePlain
import com.pulumi.awsnative.bedrock.BedrockFunctions.getFlowAliasPlain
import com.pulumi.awsnative.bedrock.BedrockFunctions.getFlowPlain
import com.pulumi.awsnative.bedrock.BedrockFunctions.getFlowVersionPlain
import com.pulumi.awsnative.bedrock.BedrockFunctions.getGuardrailPlain
import com.pulumi.awsnative.bedrock.BedrockFunctions.getGuardrailVersionPlain
import com.pulumi.awsnative.bedrock.BedrockFunctions.getKnowledgeBasePlain
import com.pulumi.awsnative.bedrock.BedrockFunctions.getPromptPlain
import com.pulumi.awsnative.bedrock.BedrockFunctions.getPromptVersionPlain
import com.pulumi.awsnative.bedrock.kotlin.inputs.GetAgentAliasPlainArgs
import com.pulumi.awsnative.bedrock.kotlin.inputs.GetAgentAliasPlainArgsBuilder
import com.pulumi.awsnative.bedrock.kotlin.inputs.GetAgentPlainArgs
import com.pulumi.awsnative.bedrock.kotlin.inputs.GetAgentPlainArgsBuilder
import com.pulumi.awsnative.bedrock.kotlin.inputs.GetDataSourcePlainArgs
import com.pulumi.awsnative.bedrock.kotlin.inputs.GetDataSourcePlainArgsBuilder
import com.pulumi.awsnative.bedrock.kotlin.inputs.GetFlowAliasPlainArgs
import com.pulumi.awsnative.bedrock.kotlin.inputs.GetFlowAliasPlainArgsBuilder
import com.pulumi.awsnative.bedrock.kotlin.inputs.GetFlowPlainArgs
import com.pulumi.awsnative.bedrock.kotlin.inputs.GetFlowPlainArgsBuilder
import com.pulumi.awsnative.bedrock.kotlin.inputs.GetFlowVersionPlainArgs
import com.pulumi.awsnative.bedrock.kotlin.inputs.GetFlowVersionPlainArgsBuilder
import com.pulumi.awsnative.bedrock.kotlin.inputs.GetGuardrailPlainArgs
import com.pulumi.awsnative.bedrock.kotlin.inputs.GetGuardrailPlainArgsBuilder
import com.pulumi.awsnative.bedrock.kotlin.inputs.GetGuardrailVersionPlainArgs
import com.pulumi.awsnative.bedrock.kotlin.inputs.GetGuardrailVersionPlainArgsBuilder
import com.pulumi.awsnative.bedrock.kotlin.inputs.GetKnowledgeBasePlainArgs
import com.pulumi.awsnative.bedrock.kotlin.inputs.GetKnowledgeBasePlainArgsBuilder
import com.pulumi.awsnative.bedrock.kotlin.inputs.GetPromptPlainArgs
import com.pulumi.awsnative.bedrock.kotlin.inputs.GetPromptPlainArgsBuilder
import com.pulumi.awsnative.bedrock.kotlin.inputs.GetPromptVersionPlainArgs
import com.pulumi.awsnative.bedrock.kotlin.inputs.GetPromptVersionPlainArgsBuilder
import com.pulumi.awsnative.bedrock.kotlin.outputs.GetAgentAliasResult
import com.pulumi.awsnative.bedrock.kotlin.outputs.GetAgentResult
import com.pulumi.awsnative.bedrock.kotlin.outputs.GetDataSourceResult
import com.pulumi.awsnative.bedrock.kotlin.outputs.GetFlowAliasResult
import com.pulumi.awsnative.bedrock.kotlin.outputs.GetFlowResult
import com.pulumi.awsnative.bedrock.kotlin.outputs.GetFlowVersionResult
import com.pulumi.awsnative.bedrock.kotlin.outputs.GetGuardrailResult
import com.pulumi.awsnative.bedrock.kotlin.outputs.GetGuardrailVersionResult
import com.pulumi.awsnative.bedrock.kotlin.outputs.GetKnowledgeBaseResult
import com.pulumi.awsnative.bedrock.kotlin.outputs.GetPromptResult
import com.pulumi.awsnative.bedrock.kotlin.outputs.GetPromptVersionResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.bedrock.kotlin.outputs.GetAgentAliasResult.Companion.toKotlin as getAgentAliasResultToKotlin
import com.pulumi.awsnative.bedrock.kotlin.outputs.GetAgentResult.Companion.toKotlin as getAgentResultToKotlin
import com.pulumi.awsnative.bedrock.kotlin.outputs.GetDataSourceResult.Companion.toKotlin as getDataSourceResultToKotlin
import com.pulumi.awsnative.bedrock.kotlin.outputs.GetFlowAliasResult.Companion.toKotlin as getFlowAliasResultToKotlin
import com.pulumi.awsnative.bedrock.kotlin.outputs.GetFlowResult.Companion.toKotlin as getFlowResultToKotlin
import com.pulumi.awsnative.bedrock.kotlin.outputs.GetFlowVersionResult.Companion.toKotlin as getFlowVersionResultToKotlin
import com.pulumi.awsnative.bedrock.kotlin.outputs.GetGuardrailResult.Companion.toKotlin as getGuardrailResultToKotlin
import com.pulumi.awsnative.bedrock.kotlin.outputs.GetGuardrailVersionResult.Companion.toKotlin as getGuardrailVersionResultToKotlin
import com.pulumi.awsnative.bedrock.kotlin.outputs.GetKnowledgeBaseResult.Companion.toKotlin as getKnowledgeBaseResultToKotlin
import com.pulumi.awsnative.bedrock.kotlin.outputs.GetPromptResult.Companion.toKotlin as getPromptResultToKotlin
import com.pulumi.awsnative.bedrock.kotlin.outputs.GetPromptVersionResult.Companion.toKotlin as getPromptVersionResultToKotlin

public object BedrockFunctions {
    /**
     * Definition of AWS::Bedrock::Agent Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getAgent(argument: GetAgentPlainArgs): GetAgentResult =
        getAgentResultToKotlin(getAgentPlain(argument.toJava()).await())

    /**
     * @see [getAgent].
     * @param agentId Identifier for a resource.
     * @return null
     */
    public suspend fun getAgent(agentId: String): GetAgentResult {
        val argument = GetAgentPlainArgs(
            agentId = agentId,
        )
        return getAgentResultToKotlin(getAgentPlain(argument.toJava()).await())
    }

    /**
     * @see [getAgent].
     * @param argument Builder for [com.pulumi.awsnative.bedrock.kotlin.inputs.GetAgentPlainArgs].
     * @return null
     */
    public suspend fun getAgent(argument: suspend GetAgentPlainArgsBuilder.() -> Unit): GetAgentResult {
        val builder = GetAgentPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getAgentResultToKotlin(getAgentPlain(builtArgument.toJava()).await())
    }

    /**
     * Definition of AWS::Bedrock::AgentAlias Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getAgentAlias(argument: GetAgentAliasPlainArgs): GetAgentAliasResult =
        getAgentAliasResultToKotlin(getAgentAliasPlain(argument.toJava()).await())

    /**
     * @see [getAgentAlias].
     * @param agentAliasId Id for an Agent Alias generated at the server side.
     * @param agentId Identifier for a resource.
     * @return null
     */
    public suspend fun getAgentAlias(agentAliasId: String, agentId: String): GetAgentAliasResult {
        val argument = GetAgentAliasPlainArgs(
            agentAliasId = agentAliasId,
            agentId = agentId,
        )
        return getAgentAliasResultToKotlin(getAgentAliasPlain(argument.toJava()).await())
    }

    /**
     * @see [getAgentAlias].
     * @param argument Builder for [com.pulumi.awsnative.bedrock.kotlin.inputs.GetAgentAliasPlainArgs].
     * @return null
     */
    public suspend fun getAgentAlias(argument: suspend GetAgentAliasPlainArgsBuilder.() -> Unit): GetAgentAliasResult {
        val builder = GetAgentAliasPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getAgentAliasResultToKotlin(getAgentAliasPlain(builtArgument.toJava()).await())
    }

    /**
     * Definition of AWS::Bedrock::DataSource Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getDataSource(argument: GetDataSourcePlainArgs): GetDataSourceResult =
        getDataSourceResultToKotlin(getDataSourcePlain(argument.toJava()).await())

    /**
     * @see [getDataSource].
     * @param dataSourceId Identifier for a resource.
     * @param knowledgeBaseId The unique identifier of the knowledge base to which to add the data source.
     * @return null
     */
    public suspend fun getDataSource(dataSourceId: String, knowledgeBaseId: String): GetDataSourceResult {
        val argument = GetDataSourcePlainArgs(
            dataSourceId = dataSourceId,
            knowledgeBaseId = knowledgeBaseId,
        )
        return getDataSourceResultToKotlin(getDataSourcePlain(argument.toJava()).await())
    }

    /**
     * @see [getDataSource].
     * @param argument Builder for [com.pulumi.awsnative.bedrock.kotlin.inputs.GetDataSourcePlainArgs].
     * @return null
     */
    public suspend fun getDataSource(argument: suspend GetDataSourcePlainArgsBuilder.() -> Unit): GetDataSourceResult {
        val builder = GetDataSourcePlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getDataSourceResultToKotlin(getDataSourcePlain(builtArgument.toJava()).await())
    }

    /**
     * Definition of AWS::Bedrock::Flow Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getFlow(argument: GetFlowPlainArgs): GetFlowResult =
        getFlowResultToKotlin(getFlowPlain(argument.toJava()).await())

    /**
     * @see [getFlow].
     * @param arn Arn representation of the Flow
     * @return null
     */
    public suspend fun getFlow(arn: String): GetFlowResult {
        val argument = GetFlowPlainArgs(
            arn = arn,
        )
        return getFlowResultToKotlin(getFlowPlain(argument.toJava()).await())
    }

    /**
     * @see [getFlow].
     * @param argument Builder for [com.pulumi.awsnative.bedrock.kotlin.inputs.GetFlowPlainArgs].
     * @return null
     */
    public suspend fun getFlow(argument: suspend GetFlowPlainArgsBuilder.() -> Unit): GetFlowResult {
        val builder = GetFlowPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getFlowResultToKotlin(getFlowPlain(builtArgument.toJava()).await())
    }

    /**
     * Definition of AWS::Bedrock::FlowAlias Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getFlowAlias(argument: GetFlowAliasPlainArgs): GetFlowAliasResult =
        getFlowAliasResultToKotlin(getFlowAliasPlain(argument.toJava()).await())

    /**
     * @see [getFlowAlias].
     * @param arn Arn of the Flow Alias
     * @param flowArn Arn representation of the Flow
     * @return null
     */
    public suspend fun getFlowAlias(arn: String, flowArn: String): GetFlowAliasResult {
        val argument = GetFlowAliasPlainArgs(
            arn = arn,
            flowArn = flowArn,
        )
        return getFlowAliasResultToKotlin(getFlowAliasPlain(argument.toJava()).await())
    }

    /**
     * @see [getFlowAlias].
     * @param argument Builder for [com.pulumi.awsnative.bedrock.kotlin.inputs.GetFlowAliasPlainArgs].
     * @return null
     */
    public suspend fun getFlowAlias(argument: suspend GetFlowAliasPlainArgsBuilder.() -> Unit): GetFlowAliasResult {
        val builder = GetFlowAliasPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getFlowAliasResultToKotlin(getFlowAliasPlain(builtArgument.toJava()).await())
    }

    /**
     * Definition of AWS::Bedrock::FlowVersion Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getFlowVersion(argument: GetFlowVersionPlainArgs): GetFlowVersionResult =
        getFlowVersionResultToKotlin(getFlowVersionPlain(argument.toJava()).await())

    /**
     * @see [getFlowVersion].
     * @param flowArn Arn representation of the Flow
     * @param version Numerical Version.
     * @return null
     */
    public suspend fun getFlowVersion(flowArn: String, version: String): GetFlowVersionResult {
        val argument = GetFlowVersionPlainArgs(
            flowArn = flowArn,
            version = version,
        )
        return getFlowVersionResultToKotlin(getFlowVersionPlain(argument.toJava()).await())
    }

    /**
     * @see [getFlowVersion].
     * @param argument Builder for [com.pulumi.awsnative.bedrock.kotlin.inputs.GetFlowVersionPlainArgs].
     * @return null
     */
    public suspend fun getFlowVersion(argument: suspend GetFlowVersionPlainArgsBuilder.() -> Unit): GetFlowVersionResult {
        val builder = GetFlowVersionPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getFlowVersionResultToKotlin(getFlowVersionPlain(builtArgument.toJava()).await())
    }

    /**
     * Definition of AWS::Bedrock::Guardrail Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getGuardrail(argument: GetGuardrailPlainArgs): GetGuardrailResult =
        getGuardrailResultToKotlin(getGuardrailPlain(argument.toJava()).await())

    /**
     * @see [getGuardrail].
     * @param guardrailArn Arn representation for the guardrail
     * @return null
     */
    public suspend fun getGuardrail(guardrailArn: String): GetGuardrailResult {
        val argument = GetGuardrailPlainArgs(
            guardrailArn = guardrailArn,
        )
        return getGuardrailResultToKotlin(getGuardrailPlain(argument.toJava()).await())
    }

    /**
     * @see [getGuardrail].
     * @param argument Builder for [com.pulumi.awsnative.bedrock.kotlin.inputs.GetGuardrailPlainArgs].
     * @return null
     */
    public suspend fun getGuardrail(argument: suspend GetGuardrailPlainArgsBuilder.() -> Unit): GetGuardrailResult {
        val builder = GetGuardrailPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getGuardrailResultToKotlin(getGuardrailPlain(builtArgument.toJava()).await())
    }

    /**
     * Definition of AWS::Bedrock::GuardrailVersion Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getGuardrailVersion(argument: GetGuardrailVersionPlainArgs): GetGuardrailVersionResult =
        getGuardrailVersionResultToKotlin(getGuardrailVersionPlain(argument.toJava()).await())

    /**
     * @see [getGuardrailVersion].
     * @param guardrailId Unique id for the guardrail
     * @param version Guardrail version
     * @return null
     */
    public suspend fun getGuardrailVersion(guardrailId: String, version: String): GetGuardrailVersionResult {
        val argument = GetGuardrailVersionPlainArgs(
            guardrailId = guardrailId,
            version = version,
        )
        return getGuardrailVersionResultToKotlin(getGuardrailVersionPlain(argument.toJava()).await())
    }

    /**
     * @see [getGuardrailVersion].
     * @param argument Builder for [com.pulumi.awsnative.bedrock.kotlin.inputs.GetGuardrailVersionPlainArgs].
     * @return null
     */
    public suspend fun getGuardrailVersion(argument: suspend GetGuardrailVersionPlainArgsBuilder.() -> Unit): GetGuardrailVersionResult {
        val builder = GetGuardrailVersionPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getGuardrailVersionResultToKotlin(getGuardrailVersionPlain(builtArgument.toJava()).await())
    }

    /**
     * Definition of AWS::Bedrock::KnowledgeBase Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getKnowledgeBase(argument: GetKnowledgeBasePlainArgs): GetKnowledgeBaseResult =
        getKnowledgeBaseResultToKotlin(getKnowledgeBasePlain(argument.toJava()).await())

    /**
     * @see [getKnowledgeBase].
     * @param knowledgeBaseId The unique identifier of the knowledge base.
     * @return null
     */
    public suspend fun getKnowledgeBase(knowledgeBaseId: String): GetKnowledgeBaseResult {
        val argument = GetKnowledgeBasePlainArgs(
            knowledgeBaseId = knowledgeBaseId,
        )
        return getKnowledgeBaseResultToKotlin(getKnowledgeBasePlain(argument.toJava()).await())
    }

    /**
     * @see [getKnowledgeBase].
     * @param argument Builder for [com.pulumi.awsnative.bedrock.kotlin.inputs.GetKnowledgeBasePlainArgs].
     * @return null
     */
    public suspend fun getKnowledgeBase(argument: suspend GetKnowledgeBasePlainArgsBuilder.() -> Unit): GetKnowledgeBaseResult {
        val builder = GetKnowledgeBasePlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getKnowledgeBaseResultToKotlin(getKnowledgeBasePlain(builtArgument.toJava()).await())
    }

    /**
     * Definition of AWS::Bedrock::Prompt Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getPrompt(argument: GetPromptPlainArgs): GetPromptResult =
        getPromptResultToKotlin(getPromptPlain(argument.toJava()).await())

    /**
     * @see [getPrompt].
     * @param arn ARN of a prompt resource possibly with a version
     * @return null
     */
    public suspend fun getPrompt(arn: String): GetPromptResult {
        val argument = GetPromptPlainArgs(
            arn = arn,
        )
        return getPromptResultToKotlin(getPromptPlain(argument.toJava()).await())
    }

    /**
     * @see [getPrompt].
     * @param argument Builder for [com.pulumi.awsnative.bedrock.kotlin.inputs.GetPromptPlainArgs].
     * @return null
     */
    public suspend fun getPrompt(argument: suspend GetPromptPlainArgsBuilder.() -> Unit): GetPromptResult {
        val builder = GetPromptPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getPromptResultToKotlin(getPromptPlain(builtArgument.toJava()).await())
    }

    /**
     * Definition of AWS::Bedrock::PromptVersion Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getPromptVersion(argument: GetPromptVersionPlainArgs): GetPromptVersionResult =
        getPromptVersionResultToKotlin(getPromptVersionPlain(argument.toJava()).await())

    /**
     * @see [getPromptVersion].
     * @param arn ARN of a prompt version resource
     * @return null
     */
    public suspend fun getPromptVersion(arn: String): GetPromptVersionResult {
        val argument = GetPromptVersionPlainArgs(
            arn = arn,
        )
        return getPromptVersionResultToKotlin(getPromptVersionPlain(argument.toJava()).await())
    }

    /**
     * @see [getPromptVersion].
     * @param argument Builder for [com.pulumi.awsnative.bedrock.kotlin.inputs.GetPromptVersionPlainArgs].
     * @return null
     */
    public suspend fun getPromptVersion(argument: suspend GetPromptVersionPlainArgsBuilder.() -> Unit): GetPromptVersionResult {
        val builder = GetPromptVersionPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getPromptVersionResultToKotlin(getPromptVersionPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy