com.pulumi.gcp.certificatemanager.kotlin.CertificatemanagerFunctions.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.certificatemanager.kotlin
import com.pulumi.gcp.certificatemanager.CertificatemanagerFunctions.getCertificateMapPlain
import com.pulumi.gcp.certificatemanager.kotlin.inputs.GetCertificateMapPlainArgs
import com.pulumi.gcp.certificatemanager.kotlin.inputs.GetCertificateMapPlainArgsBuilder
import com.pulumi.gcp.certificatemanager.kotlin.outputs.GetCertificateMapResult
import com.pulumi.gcp.certificatemanager.kotlin.outputs.GetCertificateMapResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
public object CertificatemanagerFunctions {
/**
* Get info about a Google Certificate Manager Certificate Map resource.
* ## Example Usage
* ```tf
* data "google_certificate_manager_certificate_map" "default" {
* name = "cert-map"
* }
* ```
* @param argument A collection of arguments for invoking getCertificateMap.
* @return A collection of values returned by getCertificateMap.
*/
public suspend fun getCertificateMap(argument: GetCertificateMapPlainArgs): GetCertificateMapResult = toKotlin(getCertificateMapPlain(argument.toJava()).await())
/**
* @see [getCertificateMap].
* @param name The name of the certificate map.
* - - -
* @param project The ID of the project in which the resource belongs. If it
* is not provided, the provider project is used.
* @return A collection of values returned by getCertificateMap.
*/
public suspend fun getCertificateMap(name: String, project: String? = null): GetCertificateMapResult {
val argument = GetCertificateMapPlainArgs(
name = name,
project = project,
)
return toKotlin(getCertificateMapPlain(argument.toJava()).await())
}
/**
* @see [getCertificateMap].
* @param argument Builder for [com.pulumi.gcp.certificatemanager.kotlin.inputs.GetCertificateMapPlainArgs].
* @return A collection of values returned by getCertificateMap.
*/
public suspend fun getCertificateMap(argument: suspend GetCertificateMapPlainArgsBuilder.() -> Unit): GetCertificateMapResult {
val builder = GetCertificateMapPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return toKotlin(getCertificateMapPlain(builtArgument.toJava()).await())
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy