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

com.pulumi.googlenative.memcache.v1.kotlin.Memcache_v1Functions.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.memcache.v1.kotlin

import com.pulumi.googlenative.memcache.v1.Memcache_v1Functions.getInstancePlain
import com.pulumi.googlenative.memcache.v1.kotlin.inputs.GetInstancePlainArgs
import com.pulumi.googlenative.memcache.v1.kotlin.inputs.GetInstancePlainArgsBuilder
import com.pulumi.googlenative.memcache.v1.kotlin.outputs.GetInstanceResult
import com.pulumi.googlenative.memcache.v1.kotlin.outputs.GetInstanceResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit

public object Memcache_v1Functions {
    /**
     * Gets details of a single Instance.
     * @param argument null
     * @return null
     */
    public suspend fun getInstance(argument: GetInstancePlainArgs): GetInstanceResult =
        toKotlin(getInstancePlain(argument.toJava()).await())

    /**
     * @see [getInstance].
     * @param instanceId
     * @param location
     * @param project
     * @return null
     */
    public suspend fun getInstance(
        instanceId: String,
        location: String,
        project: String? = null,
    ): GetInstanceResult {
        val argument = GetInstancePlainArgs(
            instanceId = instanceId,
            location = location,
            project = project,
        )
        return toKotlin(getInstancePlain(argument.toJava()).await())
    }

    /**
     * @see [getInstance].
     * @param argument Builder for [com.pulumi.googlenative.memcache.v1.kotlin.inputs.GetInstancePlainArgs].
     * @return null
     */
    public suspend fun getInstance(argument: suspend GetInstancePlainArgsBuilder.() -> Unit): GetInstanceResult {
        val builder = GetInstancePlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return toKotlin(getInstancePlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy