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

com.pulumi.awsnative.comprehend.kotlin.ComprehendFunctions.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.comprehend.kotlin

import com.pulumi.awsnative.comprehend.ComprehendFunctions.getDocumentClassifierPlain
import com.pulumi.awsnative.comprehend.ComprehendFunctions.getFlywheelPlain
import com.pulumi.awsnative.comprehend.kotlin.inputs.GetDocumentClassifierPlainArgs
import com.pulumi.awsnative.comprehend.kotlin.inputs.GetDocumentClassifierPlainArgsBuilder
import com.pulumi.awsnative.comprehend.kotlin.inputs.GetFlywheelPlainArgs
import com.pulumi.awsnative.comprehend.kotlin.inputs.GetFlywheelPlainArgsBuilder
import com.pulumi.awsnative.comprehend.kotlin.outputs.GetDocumentClassifierResult
import com.pulumi.awsnative.comprehend.kotlin.outputs.GetFlywheelResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.comprehend.kotlin.outputs.GetDocumentClassifierResult.Companion.toKotlin as getDocumentClassifierResultToKotlin
import com.pulumi.awsnative.comprehend.kotlin.outputs.GetFlywheelResult.Companion.toKotlin as getFlywheelResultToKotlin

public object ComprehendFunctions {
    /**
     * Document Classifier enables training document classifier models.
     * @param argument null
     * @return null
     */
    public suspend fun getDocumentClassifier(argument: GetDocumentClassifierPlainArgs): GetDocumentClassifierResult =
        getDocumentClassifierResultToKotlin(getDocumentClassifierPlain(argument.toJava()).await())

    /**
     * @see [getDocumentClassifier].
     * @param arn The Amazon Resource Name (ARN) of the document classifier.
     * @return null
     */
    public suspend fun getDocumentClassifier(arn: String): GetDocumentClassifierResult {
        val argument = GetDocumentClassifierPlainArgs(
            arn = arn,
        )
        return getDocumentClassifierResultToKotlin(getDocumentClassifierPlain(argument.toJava()).await())
    }

    /**
     * @see [getDocumentClassifier].
     * @param argument Builder for [com.pulumi.awsnative.comprehend.kotlin.inputs.GetDocumentClassifierPlainArgs].
     * @return null
     */
    public suspend fun getDocumentClassifier(argument: suspend GetDocumentClassifierPlainArgsBuilder.() -> Unit): GetDocumentClassifierResult {
        val builder = GetDocumentClassifierPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getDocumentClassifierResultToKotlin(getDocumentClassifierPlain(builtArgument.toJava()).await())
    }

    /**
     * The AWS::Comprehend::Flywheel resource creates an Amazon Comprehend Flywheel that enables customer to train their model.
     * @param argument null
     * @return null
     */
    public suspend fun getFlywheel(argument: GetFlywheelPlainArgs): GetFlywheelResult =
        getFlywheelResultToKotlin(getFlywheelPlain(argument.toJava()).await())

    /**
     * @see [getFlywheel].
     * @param arn The Amazon Resource Name (ARN) of the flywheel.
     * @return null
     */
    public suspend fun getFlywheel(arn: String): GetFlywheelResult {
        val argument = GetFlywheelPlainArgs(
            arn = arn,
        )
        return getFlywheelResultToKotlin(getFlywheelPlain(argument.toJava()).await())
    }

    /**
     * @see [getFlywheel].
     * @param argument Builder for [com.pulumi.awsnative.comprehend.kotlin.inputs.GetFlywheelPlainArgs].
     * @return null
     */
    public suspend fun getFlywheel(argument: suspend GetFlywheelPlainArgsBuilder.() -> Unit): GetFlywheelResult {
        val builder = GetFlywheelPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getFlywheelResultToKotlin(getFlywheelPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy