com.pulumi.gcp.servicenetworking.kotlin.ServicenetworkingFunctions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.servicenetworking.kotlin
import com.pulumi.gcp.servicenetworking.ServicenetworkingFunctions.getPeeredDnsDomainPlain
import com.pulumi.gcp.servicenetworking.kotlin.inputs.GetPeeredDnsDomainPlainArgs
import com.pulumi.gcp.servicenetworking.kotlin.inputs.GetPeeredDnsDomainPlainArgsBuilder
import com.pulumi.gcp.servicenetworking.kotlin.outputs.GetPeeredDnsDomainResult
import com.pulumi.gcp.servicenetworking.kotlin.outputs.GetPeeredDnsDomainResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
public object ServicenetworkingFunctions {
/**
*
* @param argument A collection of arguments for invoking getPeeredDnsDomain.
* @return A collection of values returned by getPeeredDnsDomain.
*/
public suspend fun getPeeredDnsDomain(argument: GetPeeredDnsDomainPlainArgs): GetPeeredDnsDomainResult = toKotlin(getPeeredDnsDomainPlain(argument.toJava()).await())
/**
* @see [getPeeredDnsDomain].
* @param name
* @param network
* @param project
* @param service
* @return A collection of values returned by getPeeredDnsDomain.
*/
public suspend fun getPeeredDnsDomain(
name: String,
network: String,
project: String,
service: String,
): GetPeeredDnsDomainResult {
val argument = GetPeeredDnsDomainPlainArgs(
name = name,
network = network,
project = project,
service = service,
)
return toKotlin(getPeeredDnsDomainPlain(argument.toJava()).await())
}
/**
* @see [getPeeredDnsDomain].
* @param argument Builder for [com.pulumi.gcp.servicenetworking.kotlin.inputs.GetPeeredDnsDomainPlainArgs].
* @return A collection of values returned by getPeeredDnsDomain.
*/
public suspend fun getPeeredDnsDomain(argument: suspend GetPeeredDnsDomainPlainArgsBuilder.() -> Unit): GetPeeredDnsDomainResult {
val builder = GetPeeredDnsDomainPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return toKotlin(getPeeredDnsDomainPlain(builtArgument.toJava()).await())
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy