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

com.pulumi.awsnative.amplifyuibuilder.kotlin.AmplifyuibuilderFunctions.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.amplifyuibuilder.kotlin

import com.pulumi.awsnative.amplifyuibuilder.AmplifyuibuilderFunctions.getComponentPlain
import com.pulumi.awsnative.amplifyuibuilder.AmplifyuibuilderFunctions.getFormPlain
import com.pulumi.awsnative.amplifyuibuilder.AmplifyuibuilderFunctions.getThemePlain
import com.pulumi.awsnative.amplifyuibuilder.kotlin.inputs.GetComponentPlainArgs
import com.pulumi.awsnative.amplifyuibuilder.kotlin.inputs.GetComponentPlainArgsBuilder
import com.pulumi.awsnative.amplifyuibuilder.kotlin.inputs.GetFormPlainArgs
import com.pulumi.awsnative.amplifyuibuilder.kotlin.inputs.GetFormPlainArgsBuilder
import com.pulumi.awsnative.amplifyuibuilder.kotlin.inputs.GetThemePlainArgs
import com.pulumi.awsnative.amplifyuibuilder.kotlin.inputs.GetThemePlainArgsBuilder
import com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.GetComponentResult
import com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.GetFormResult
import com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.GetThemeResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.GetComponentResult.Companion.toKotlin as getComponentResultToKotlin
import com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.GetFormResult.Companion.toKotlin as getFormResultToKotlin
import com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.GetThemeResult.Companion.toKotlin as getThemeResultToKotlin

public object AmplifyuibuilderFunctions {
    /**
     * Definition of AWS::AmplifyUIBuilder::Component Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getComponent(argument: GetComponentPlainArgs): GetComponentResult =
        getComponentResultToKotlin(getComponentPlain(argument.toJava()).await())

    /**
     * @see [getComponent].
     * @param appId The unique ID of the Amplify app associated with the component.
     * @param environmentName The name of the backend environment that is a part of the Amplify app.
     * @param id The unique ID of the component.
     * @return null
     */
    public suspend fun getComponent(
        appId: String,
        environmentName: String,
        id: String,
    ): GetComponentResult {
        val argument = GetComponentPlainArgs(
            appId = appId,
            environmentName = environmentName,
            id = id,
        )
        return getComponentResultToKotlin(getComponentPlain(argument.toJava()).await())
    }

    /**
     * @see [getComponent].
     * @param argument Builder for [com.pulumi.awsnative.amplifyuibuilder.kotlin.inputs.GetComponentPlainArgs].
     * @return null
     */
    public suspend fun getComponent(argument: suspend GetComponentPlainArgsBuilder.() -> Unit): GetComponentResult {
        val builder = GetComponentPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getComponentResultToKotlin(getComponentPlain(builtArgument.toJava()).await())
    }

    /**
     * Definition of AWS::AmplifyUIBuilder::Form Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getForm(argument: GetFormPlainArgs): GetFormResult =
        getFormResultToKotlin(getFormPlain(argument.toJava()).await())

    /**
     * @see [getForm].
     * @param appId The unique ID of the Amplify app associated with the form.
     * @param environmentName The name of the backend environment that is a part of the Amplify app.
     * @param id The ID for the form.
     * @return null
     */
    public suspend fun getForm(
        appId: String,
        environmentName: String,
        id: String,
    ): GetFormResult {
        val argument = GetFormPlainArgs(
            appId = appId,
            environmentName = environmentName,
            id = id,
        )
        return getFormResultToKotlin(getFormPlain(argument.toJava()).await())
    }

    /**
     * @see [getForm].
     * @param argument Builder for [com.pulumi.awsnative.amplifyuibuilder.kotlin.inputs.GetFormPlainArgs].
     * @return null
     */
    public suspend fun getForm(argument: suspend GetFormPlainArgsBuilder.() -> Unit): GetFormResult {
        val builder = GetFormPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getFormResultToKotlin(getFormPlain(builtArgument.toJava()).await())
    }

    /**
     * Definition of AWS::AmplifyUIBuilder::Theme Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getTheme(argument: GetThemePlainArgs): GetThemeResult =
        getThemeResultToKotlin(getThemePlain(argument.toJava()).await())

    /**
     * @see [getTheme].
     * @param appId The unique ID for the Amplify app associated with the theme.
     * @param environmentName The name of the backend environment that is a part of the Amplify app.
     * @param id The ID for the theme.
     * @return null
     */
    public suspend fun getTheme(
        appId: String,
        environmentName: String,
        id: String,
    ): GetThemeResult {
        val argument = GetThemePlainArgs(
            appId = appId,
            environmentName = environmentName,
            id = id,
        )
        return getThemeResultToKotlin(getThemePlain(argument.toJava()).await())
    }

    /**
     * @see [getTheme].
     * @param argument Builder for [com.pulumi.awsnative.amplifyuibuilder.kotlin.inputs.GetThemePlainArgs].
     * @return null
     */
    public suspend fun getTheme(argument: suspend GetThemePlainArgsBuilder.() -> Unit): GetThemeResult {
        val builder = GetThemePlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getThemeResultToKotlin(getThemePlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy