com.pulumi.gcp.dataform.kotlin.DataformFunctions.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.dataform.kotlin
import com.pulumi.gcp.dataform.DataformFunctions.getRepositoryIamPolicyPlain
import com.pulumi.gcp.dataform.kotlin.inputs.GetRepositoryIamPolicyPlainArgs
import com.pulumi.gcp.dataform.kotlin.inputs.GetRepositoryIamPolicyPlainArgsBuilder
import com.pulumi.gcp.dataform.kotlin.outputs.GetRepositoryIamPolicyResult
import com.pulumi.gcp.dataform.kotlin.outputs.GetRepositoryIamPolicyResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
public object DataformFunctions {
/**
*
* @param argument A collection of arguments for invoking getRepositoryIamPolicy.
* @return A collection of values returned by getRepositoryIamPolicy.
*/
public suspend fun getRepositoryIamPolicy(argument: GetRepositoryIamPolicyPlainArgs): GetRepositoryIamPolicyResult =
toKotlin(getRepositoryIamPolicyPlain(argument.toJava()).await())
/**
* @see [getRepositoryIamPolicy].
* @param project The ID of the project in which the resource belongs.
* If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
* @param region A reference to the region Used to find the parent resource to bind the IAM policy to. If not specified,
* the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
* region is specified, it is taken from the provider configuration.
* @param repository Used to find the parent resource to bind the IAM policy to
* @return A collection of values returned by getRepositoryIamPolicy.
*/
public suspend fun getRepositoryIamPolicy(
project: String? = null,
region: String? = null,
repository: String,
): GetRepositoryIamPolicyResult {
val argument = GetRepositoryIamPolicyPlainArgs(
project = project,
region = region,
repository = repository,
)
return toKotlin(getRepositoryIamPolicyPlain(argument.toJava()).await())
}
/**
* @see [getRepositoryIamPolicy].
* @param argument Builder for [com.pulumi.gcp.dataform.kotlin.inputs.GetRepositoryIamPolicyPlainArgs].
* @return A collection of values returned by getRepositoryIamPolicy.
*/
public suspend fun getRepositoryIamPolicy(argument: suspend GetRepositoryIamPolicyPlainArgsBuilder.() -> Unit): GetRepositoryIamPolicyResult {
val builder = GetRepositoryIamPolicyPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return toKotlin(getRepositoryIamPolicyPlain(builtArgument.toJava()).await())
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy