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

com.pulumi.awsnative.databrew.kotlin.DatabrewFunctions.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.databrew.kotlin

import com.pulumi.awsnative.databrew.DatabrewFunctions.getDatasetPlain
import com.pulumi.awsnative.databrew.DatabrewFunctions.getJobPlain
import com.pulumi.awsnative.databrew.DatabrewFunctions.getProjectPlain
import com.pulumi.awsnative.databrew.DatabrewFunctions.getRecipePlain
import com.pulumi.awsnative.databrew.DatabrewFunctions.getRulesetPlain
import com.pulumi.awsnative.databrew.DatabrewFunctions.getSchedulePlain
import com.pulumi.awsnative.databrew.kotlin.inputs.GetDatasetPlainArgs
import com.pulumi.awsnative.databrew.kotlin.inputs.GetDatasetPlainArgsBuilder
import com.pulumi.awsnative.databrew.kotlin.inputs.GetJobPlainArgs
import com.pulumi.awsnative.databrew.kotlin.inputs.GetJobPlainArgsBuilder
import com.pulumi.awsnative.databrew.kotlin.inputs.GetProjectPlainArgs
import com.pulumi.awsnative.databrew.kotlin.inputs.GetProjectPlainArgsBuilder
import com.pulumi.awsnative.databrew.kotlin.inputs.GetRecipePlainArgs
import com.pulumi.awsnative.databrew.kotlin.inputs.GetRecipePlainArgsBuilder
import com.pulumi.awsnative.databrew.kotlin.inputs.GetRulesetPlainArgs
import com.pulumi.awsnative.databrew.kotlin.inputs.GetRulesetPlainArgsBuilder
import com.pulumi.awsnative.databrew.kotlin.inputs.GetSchedulePlainArgs
import com.pulumi.awsnative.databrew.kotlin.inputs.GetSchedulePlainArgsBuilder
import com.pulumi.awsnative.databrew.kotlin.outputs.GetDatasetResult
import com.pulumi.awsnative.databrew.kotlin.outputs.GetJobResult
import com.pulumi.awsnative.databrew.kotlin.outputs.GetProjectResult
import com.pulumi.awsnative.databrew.kotlin.outputs.GetRecipeResult
import com.pulumi.awsnative.databrew.kotlin.outputs.GetRulesetResult
import com.pulumi.awsnative.databrew.kotlin.outputs.GetScheduleResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.databrew.kotlin.outputs.GetDatasetResult.Companion.toKotlin as getDatasetResultToKotlin
import com.pulumi.awsnative.databrew.kotlin.outputs.GetJobResult.Companion.toKotlin as getJobResultToKotlin
import com.pulumi.awsnative.databrew.kotlin.outputs.GetProjectResult.Companion.toKotlin as getProjectResultToKotlin
import com.pulumi.awsnative.databrew.kotlin.outputs.GetRecipeResult.Companion.toKotlin as getRecipeResultToKotlin
import com.pulumi.awsnative.databrew.kotlin.outputs.GetRulesetResult.Companion.toKotlin as getRulesetResultToKotlin
import com.pulumi.awsnative.databrew.kotlin.outputs.GetScheduleResult.Companion.toKotlin as getScheduleResultToKotlin

public object DatabrewFunctions {
    /**
     * Resource schema for AWS::DataBrew::Dataset.
     * @param argument null
     * @return null
     */
    public suspend fun getDataset(argument: GetDatasetPlainArgs): GetDatasetResult =
        getDatasetResultToKotlin(getDatasetPlain(argument.toJava()).await())

    /**
     * @see [getDataset].
     * @param name Dataset name
     * @return null
     */
    public suspend fun getDataset(name: String): GetDatasetResult {
        val argument = GetDatasetPlainArgs(
            name = name,
        )
        return getDatasetResultToKotlin(getDatasetPlain(argument.toJava()).await())
    }

    /**
     * @see [getDataset].
     * @param argument Builder for [com.pulumi.awsnative.databrew.kotlin.inputs.GetDatasetPlainArgs].
     * @return null
     */
    public suspend fun getDataset(argument: suspend GetDatasetPlainArgsBuilder.() -> Unit): GetDatasetResult {
        val builder = GetDatasetPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getDatasetResultToKotlin(getDatasetPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource schema for AWS::DataBrew::Job.
     * @param argument null
     * @return null
     */
    public suspend fun getJob(argument: GetJobPlainArgs): GetJobResult =
        getJobResultToKotlin(getJobPlain(argument.toJava()).await())

    /**
     * @see [getJob].
     * @param name Job name
     * @return null
     */
    public suspend fun getJob(name: String): GetJobResult {
        val argument = GetJobPlainArgs(
            name = name,
        )
        return getJobResultToKotlin(getJobPlain(argument.toJava()).await())
    }

    /**
     * @see [getJob].
     * @param argument Builder for [com.pulumi.awsnative.databrew.kotlin.inputs.GetJobPlainArgs].
     * @return null
     */
    public suspend fun getJob(argument: suspend GetJobPlainArgsBuilder.() -> Unit): GetJobResult {
        val builder = GetJobPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getJobResultToKotlin(getJobPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource schema for AWS::DataBrew::Project.
     * @param argument null
     * @return null
     */
    public suspend fun getProject(argument: GetProjectPlainArgs): GetProjectResult =
        getProjectResultToKotlin(getProjectPlain(argument.toJava()).await())

    /**
     * @see [getProject].
     * @param name Project name
     * @return null
     */
    public suspend fun getProject(name: String): GetProjectResult {
        val argument = GetProjectPlainArgs(
            name = name,
        )
        return getProjectResultToKotlin(getProjectPlain(argument.toJava()).await())
    }

    /**
     * @see [getProject].
     * @param argument Builder for [com.pulumi.awsnative.databrew.kotlin.inputs.GetProjectPlainArgs].
     * @return null
     */
    public suspend fun getProject(argument: suspend GetProjectPlainArgsBuilder.() -> Unit): GetProjectResult {
        val builder = GetProjectPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getProjectResultToKotlin(getProjectPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource schema for AWS::DataBrew::Recipe.
     * @param argument null
     * @return null
     */
    public suspend fun getRecipe(argument: GetRecipePlainArgs): GetRecipeResult =
        getRecipeResultToKotlin(getRecipePlain(argument.toJava()).await())

    /**
     * @see [getRecipe].
     * @param name Recipe name
     * @return null
     */
    public suspend fun getRecipe(name: String): GetRecipeResult {
        val argument = GetRecipePlainArgs(
            name = name,
        )
        return getRecipeResultToKotlin(getRecipePlain(argument.toJava()).await())
    }

    /**
     * @see [getRecipe].
     * @param argument Builder for [com.pulumi.awsnative.databrew.kotlin.inputs.GetRecipePlainArgs].
     * @return null
     */
    public suspend fun getRecipe(argument: suspend GetRecipePlainArgsBuilder.() -> Unit): GetRecipeResult {
        val builder = GetRecipePlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getRecipeResultToKotlin(getRecipePlain(builtArgument.toJava()).await())
    }

    /**
     * Resource schema for AWS::DataBrew::Ruleset.
     * @param argument null
     * @return null
     */
    public suspend fun getRuleset(argument: GetRulesetPlainArgs): GetRulesetResult =
        getRulesetResultToKotlin(getRulesetPlain(argument.toJava()).await())

    /**
     * @see [getRuleset].
     * @param name Name of the Ruleset
     * @return null
     */
    public suspend fun getRuleset(name: String): GetRulesetResult {
        val argument = GetRulesetPlainArgs(
            name = name,
        )
        return getRulesetResultToKotlin(getRulesetPlain(argument.toJava()).await())
    }

    /**
     * @see [getRuleset].
     * @param argument Builder for [com.pulumi.awsnative.databrew.kotlin.inputs.GetRulesetPlainArgs].
     * @return null
     */
    public suspend fun getRuleset(argument: suspend GetRulesetPlainArgsBuilder.() -> Unit): GetRulesetResult {
        val builder = GetRulesetPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getRulesetResultToKotlin(getRulesetPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource schema for AWS::DataBrew::Schedule.
     * @param argument null
     * @return null
     */
    public suspend fun getSchedule(argument: GetSchedulePlainArgs): GetScheduleResult =
        getScheduleResultToKotlin(getSchedulePlain(argument.toJava()).await())

    /**
     * @see [getSchedule].
     * @param name Schedule Name
     * @return null
     */
    public suspend fun getSchedule(name: String): GetScheduleResult {
        val argument = GetSchedulePlainArgs(
            name = name,
        )
        return getScheduleResultToKotlin(getSchedulePlain(argument.toJava()).await())
    }

    /**
     * @see [getSchedule].
     * @param argument Builder for [com.pulumi.awsnative.databrew.kotlin.inputs.GetSchedulePlainArgs].
     * @return null
     */
    public suspend fun getSchedule(argument: suspend GetSchedulePlainArgsBuilder.() -> Unit): GetScheduleResult {
        val builder = GetSchedulePlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getScheduleResultToKotlin(getSchedulePlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy