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

com.pulumi.awsnative.osis.kotlin.OsisFunctions.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.osis.kotlin

import com.pulumi.awsnative.osis.OsisFunctions.getPipelinePlain
import com.pulumi.awsnative.osis.kotlin.inputs.GetPipelinePlainArgs
import com.pulumi.awsnative.osis.kotlin.inputs.GetPipelinePlainArgsBuilder
import com.pulumi.awsnative.osis.kotlin.outputs.GetPipelineResult
import com.pulumi.awsnative.osis.kotlin.outputs.GetPipelineResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit

public object OsisFunctions {
    /**
     * An OpenSearch Ingestion Service Data Prepper pipeline running Data Prepper.
     * @param argument null
     * @return null
     */
    public suspend fun getPipeline(argument: GetPipelinePlainArgs): GetPipelineResult =
        toKotlin(getPipelinePlain(argument.toJava()).await())

    /**
     * @see [getPipeline].
     * @param pipelineArn The Amazon Resource Name (ARN) of the pipeline.
     * @return null
     */
    public suspend fun getPipeline(pipelineArn: String): GetPipelineResult {
        val argument = GetPipelinePlainArgs(
            pipelineArn = pipelineArn,
        )
        return toKotlin(getPipelinePlain(argument.toJava()).await())
    }

    /**
     * @see [getPipeline].
     * @param argument Builder for [com.pulumi.awsnative.osis.kotlin.inputs.GetPipelinePlainArgs].
     * @return null
     */
    public suspend fun getPipeline(argument: suspend GetPipelinePlainArgsBuilder.() -> Unit): GetPipelineResult {
        val builder = GetPipelinePlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return toKotlin(getPipelinePlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy