All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.servicedirectory.kotlin.ServicedirectoryFunctions.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.servicedirectory.kotlin

import com.pulumi.gcp.servicedirectory.ServicedirectoryFunctions.getNamespaceIamPolicyPlain
import com.pulumi.gcp.servicedirectory.ServicedirectoryFunctions.getServiceIamPolicyPlain
import com.pulumi.gcp.servicedirectory.kotlin.inputs.GetNamespaceIamPolicyPlainArgs
import com.pulumi.gcp.servicedirectory.kotlin.inputs.GetNamespaceIamPolicyPlainArgsBuilder
import com.pulumi.gcp.servicedirectory.kotlin.inputs.GetServiceIamPolicyPlainArgs
import com.pulumi.gcp.servicedirectory.kotlin.inputs.GetServiceIamPolicyPlainArgsBuilder
import com.pulumi.gcp.servicedirectory.kotlin.outputs.GetNamespaceIamPolicyResult
import com.pulumi.gcp.servicedirectory.kotlin.outputs.GetServiceIamPolicyResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.gcp.servicedirectory.kotlin.outputs.GetNamespaceIamPolicyResult.Companion.toKotlin as getNamespaceIamPolicyResultToKotlin
import com.pulumi.gcp.servicedirectory.kotlin.outputs.GetServiceIamPolicyResult.Companion.toKotlin as getServiceIamPolicyResultToKotlin

public object ServicedirectoryFunctions {
    /**
     *
     * @param argument A collection of arguments for invoking getNamespaceIamPolicy.
     * @return A collection of values returned by getNamespaceIamPolicy.
     */
    public suspend fun getNamespaceIamPolicy(argument: GetNamespaceIamPolicyPlainArgs): GetNamespaceIamPolicyResult =
        getNamespaceIamPolicyResultToKotlin(getNamespaceIamPolicyPlain(argument.toJava()).await())

    /**
     * @see [getNamespaceIamPolicy].
     * @param name Used to find the parent resource to bind the IAM policy to
     * @return A collection of values returned by getNamespaceIamPolicy.
     */
    public suspend fun getNamespaceIamPolicy(name: String): GetNamespaceIamPolicyResult {
        val argument = GetNamespaceIamPolicyPlainArgs(
            name = name,
        )
        return getNamespaceIamPolicyResultToKotlin(getNamespaceIamPolicyPlain(argument.toJava()).await())
    }

    /**
     * @see [getNamespaceIamPolicy].
     * @param argument Builder for [com.pulumi.gcp.servicedirectory.kotlin.inputs.GetNamespaceIamPolicyPlainArgs].
     * @return A collection of values returned by getNamespaceIamPolicy.
     */
    public suspend fun getNamespaceIamPolicy(argument: suspend GetNamespaceIamPolicyPlainArgsBuilder.() -> Unit): GetNamespaceIamPolicyResult {
        val builder = GetNamespaceIamPolicyPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getNamespaceIamPolicyResultToKotlin(getNamespaceIamPolicyPlain(builtArgument.toJava()).await())
    }

    /**
     *
     * @param argument A collection of arguments for invoking getServiceIamPolicy.
     * @return A collection of values returned by getServiceIamPolicy.
     */
    public suspend fun getServiceIamPolicy(argument: GetServiceIamPolicyPlainArgs): GetServiceIamPolicyResult =
        getServiceIamPolicyResultToKotlin(getServiceIamPolicyPlain(argument.toJava()).await())

    /**
     * @see [getServiceIamPolicy].
     * @param name Used to find the parent resource to bind the IAM policy to
     * @return A collection of values returned by getServiceIamPolicy.
     */
    public suspend fun getServiceIamPolicy(name: String): GetServiceIamPolicyResult {
        val argument = GetServiceIamPolicyPlainArgs(
            name = name,
        )
        return getServiceIamPolicyResultToKotlin(getServiceIamPolicyPlain(argument.toJava()).await())
    }

    /**
     * @see [getServiceIamPolicy].
     * @param argument Builder for [com.pulumi.gcp.servicedirectory.kotlin.inputs.GetServiceIamPolicyPlainArgs].
     * @return A collection of values returned by getServiceIamPolicy.
     */
    public suspend fun getServiceIamPolicy(argument: suspend GetServiceIamPolicyPlainArgsBuilder.() -> Unit): GetServiceIamPolicyResult {
        val builder = GetServiceIamPolicyPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getServiceIamPolicyResultToKotlin(getServiceIamPolicyPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy