![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.contoso.kotlin.ContosoFunctions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.contoso.kotlin
import com.pulumi.azurenative.contoso.ContosoFunctions.getEmployeePlain
import com.pulumi.azurenative.contoso.kotlin.inputs.GetEmployeePlainArgs
import com.pulumi.azurenative.contoso.kotlin.inputs.GetEmployeePlainArgsBuilder
import com.pulumi.azurenative.contoso.kotlin.outputs.GetEmployeeResult
import com.pulumi.azurenative.contoso.kotlin.outputs.GetEmployeeResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
public object ContosoFunctions {
/**
* Get a Employee
* Azure REST API version: 2021-10-01-preview.
* @param argument null
* @return Employee resource
*/
public suspend fun getEmployee(argument: GetEmployeePlainArgs): GetEmployeeResult =
toKotlin(getEmployeePlain(argument.toJava()).await())
/**
* @see [getEmployee].
* @param employeeName The name of the Employee
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @return Employee resource
*/
public suspend fun getEmployee(employeeName: String, resourceGroupName: String): GetEmployeeResult {
val argument = GetEmployeePlainArgs(
employeeName = employeeName,
resourceGroupName = resourceGroupName,
)
return toKotlin(getEmployeePlain(argument.toJava()).await())
}
/**
* @see [getEmployee].
* @param argument Builder for [com.pulumi.azurenative.contoso.kotlin.inputs.GetEmployeePlainArgs].
* @return Employee resource
*/
public suspend fun getEmployee(argument: suspend GetEmployeePlainArgsBuilder.() -> Unit): GetEmployeeResult {
val builder = GetEmployeePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return toKotlin(getEmployeePlain(builtArgument.toJava()).await())
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy