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

com.pulumi.awsnative.docdbelastic.kotlin.DocdbelasticFunctions.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.docdbelastic.kotlin

import com.pulumi.awsnative.docdbelastic.DocdbelasticFunctions.getClusterPlain
import com.pulumi.awsnative.docdbelastic.kotlin.inputs.GetClusterPlainArgs
import com.pulumi.awsnative.docdbelastic.kotlin.inputs.GetClusterPlainArgsBuilder
import com.pulumi.awsnative.docdbelastic.kotlin.outputs.GetClusterResult
import com.pulumi.awsnative.docdbelastic.kotlin.outputs.GetClusterResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit

public object DocdbelasticFunctions {
    /**
     * The AWS::DocDBElastic::Cluster Amazon DocumentDB (with MongoDB compatibility) Elastic Scale resource describes a Cluster
     * @param argument null
     * @return null
     */
    public suspend fun getCluster(argument: GetClusterPlainArgs): GetClusterResult =
        toKotlin(getClusterPlain(argument.toJava()).await())

    /**
     * @see [getCluster].
     * @param clusterArn
     * @return null
     */
    public suspend fun getCluster(clusterArn: String): GetClusterResult {
        val argument = GetClusterPlainArgs(
            clusterArn = clusterArn,
        )
        return toKotlin(getClusterPlain(argument.toJava()).await())
    }

    /**
     * @see [getCluster].
     * @param argument Builder for [com.pulumi.awsnative.docdbelastic.kotlin.inputs.GetClusterPlainArgs].
     * @return null
     */
    public suspend fun getCluster(argument: suspend GetClusterPlainArgsBuilder.() -> Unit): GetClusterResult {
        val builder = GetClusterPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return toKotlin(getClusterPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy