
com.pulumi.azure.attestation.kotlin.AttestationFunctions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.attestation.kotlin
import com.pulumi.azure.attestation.AttestationFunctions.getProviderPlain
import com.pulumi.azure.attestation.kotlin.inputs.GetProviderPlainArgs
import com.pulumi.azure.attestation.kotlin.inputs.GetProviderPlainArgsBuilder
import com.pulumi.azure.attestation.kotlin.outputs.GetProviderResult
import com.pulumi.azure.attestation.kotlin.outputs.GetProviderResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
public object AttestationFunctions {
/**
* Use this data source to access information about an existing Attestation Provider.
* @param argument A collection of arguments for invoking getProvider.
* @return A collection of values returned by getProvider.
*/
public suspend fun getProvider(argument: GetProviderPlainArgs): GetProviderResult =
toKotlin(getProviderPlain(argument.toJava()).await())
/**
* @see [getProvider].
* @param name The name of this Attestation Provider.
* @param resourceGroupName The name of the Resource Group where the Attestation Provider exists.
* @return A collection of values returned by getProvider.
*/
public suspend fun getProvider(name: String, resourceGroupName: String): GetProviderResult {
val argument = GetProviderPlainArgs(
name = name,
resourceGroupName = resourceGroupName,
)
return toKotlin(getProviderPlain(argument.toJava()).await())
}
/**
* @see [getProvider].
* @param argument Builder for [com.pulumi.azure.attestation.kotlin.inputs.GetProviderPlainArgs].
* @return A collection of values returned by getProvider.
*/
public suspend fun getProvider(argument: suspend GetProviderPlainArgsBuilder.() -> Unit):
GetProviderResult {
val builder = GetProviderPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return toKotlin(getProviderPlain(builtArgument.toJava()).await())
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy