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

com.pulumi.awsnative.opsworkscm.kotlin.OpsworkscmFunctions.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.opsworkscm.kotlin

import com.pulumi.awsnative.opsworkscm.OpsworkscmFunctions.getServerPlain
import com.pulumi.awsnative.opsworkscm.kotlin.inputs.GetServerPlainArgs
import com.pulumi.awsnative.opsworkscm.kotlin.inputs.GetServerPlainArgsBuilder
import com.pulumi.awsnative.opsworkscm.kotlin.outputs.GetServerResult
import com.pulumi.awsnative.opsworkscm.kotlin.outputs.GetServerResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit

public object OpsworkscmFunctions {
    /**
     * Resource Type definition for AWS::OpsWorksCM::Server
     * @param argument null
     * @return null
     */
    public suspend fun getServer(argument: GetServerPlainArgs): GetServerResult =
        toKotlin(getServerPlain(argument.toJava()).await())

    /**
     * @see [getServer].
     * @param serverName The name of the server. The server name must be unique within your AWS account, within each region. Server names must start with a letter; then letters, numbers, or hyphens (-) are allowed, up to a maximum of 40 characters.
     * @return null
     */
    public suspend fun getServer(serverName: String): GetServerResult {
        val argument = GetServerPlainArgs(
            serverName = serverName,
        )
        return toKotlin(getServerPlain(argument.toJava()).await())
    }

    /**
     * @see [getServer].
     * @param argument Builder for [com.pulumi.awsnative.opsworkscm.kotlin.inputs.GetServerPlainArgs].
     * @return null
     */
    public suspend fun getServer(argument: suspend GetServerPlainArgsBuilder.() -> Unit): GetServerResult {
        val builder = GetServerPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return toKotlin(getServerPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy