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

com.pulumi.gcp.workstations.kotlin.WorkstationsFunctions.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.workstations.kotlin

import com.pulumi.gcp.workstations.WorkstationsFunctions.getWorkstationConfigIamPolicyPlain
import com.pulumi.gcp.workstations.WorkstationsFunctions.getWorkstationIamPolicyPlain
import com.pulumi.gcp.workstations.kotlin.inputs.GetWorkstationConfigIamPolicyPlainArgs
import com.pulumi.gcp.workstations.kotlin.inputs.GetWorkstationConfigIamPolicyPlainArgsBuilder
import com.pulumi.gcp.workstations.kotlin.inputs.GetWorkstationIamPolicyPlainArgs
import com.pulumi.gcp.workstations.kotlin.inputs.GetWorkstationIamPolicyPlainArgsBuilder
import com.pulumi.gcp.workstations.kotlin.outputs.GetWorkstationConfigIamPolicyResult
import com.pulumi.gcp.workstations.kotlin.outputs.GetWorkstationIamPolicyResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.gcp.workstations.kotlin.outputs.GetWorkstationConfigIamPolicyResult.Companion.toKotlin as getWorkstationConfigIamPolicyResultToKotlin
import com.pulumi.gcp.workstations.kotlin.outputs.GetWorkstationIamPolicyResult.Companion.toKotlin as getWorkstationIamPolicyResultToKotlin

public object WorkstationsFunctions {
    /**
     *
     * @param argument A collection of arguments for invoking getWorkstationConfigIamPolicy.
     * @return A collection of values returned by getWorkstationConfigIamPolicy.
     */
    public suspend fun getWorkstationConfigIamPolicy(argument: GetWorkstationConfigIamPolicyPlainArgs): GetWorkstationConfigIamPolicyResult =
        getWorkstationConfigIamPolicyResultToKotlin(getWorkstationConfigIamPolicyPlain(argument.toJava()).await())

    /**
     * @see [getWorkstationConfigIamPolicy].
     * @param location The location where the workstation cluster config should reside.
     * 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 location is provided in the parent identifier and no
     * location is specified, it is taken from the provider configuration.
     * @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 workstationClusterId
     * @param workstationConfigId
     * @return A collection of values returned by getWorkstationConfigIamPolicy.
     */
    public suspend fun getWorkstationConfigIamPolicy(
        location: String? = null,
        project: String? = null,
        workstationClusterId: String,
        workstationConfigId: String,
    ): GetWorkstationConfigIamPolicyResult {
        val argument = GetWorkstationConfigIamPolicyPlainArgs(
            location = location,
            project = project,
            workstationClusterId = workstationClusterId,
            workstationConfigId = workstationConfigId,
        )
        return getWorkstationConfigIamPolicyResultToKotlin(getWorkstationConfigIamPolicyPlain(argument.toJava()).await())
    }

    /**
     * @see [getWorkstationConfigIamPolicy].
     * @param argument Builder for [com.pulumi.gcp.workstations.kotlin.inputs.GetWorkstationConfigIamPolicyPlainArgs].
     * @return A collection of values returned by getWorkstationConfigIamPolicy.
     */
    public suspend fun getWorkstationConfigIamPolicy(argument: suspend GetWorkstationConfigIamPolicyPlainArgsBuilder.() -> Unit): GetWorkstationConfigIamPolicyResult {
        val builder = GetWorkstationConfigIamPolicyPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getWorkstationConfigIamPolicyResultToKotlin(getWorkstationConfigIamPolicyPlain(builtArgument.toJava()).await())
    }

    /**
     *
     * @param argument A collection of arguments for invoking getWorkstationIamPolicy.
     * @return A collection of values returned by getWorkstationIamPolicy.
     */
    public suspend fun getWorkstationIamPolicy(argument: GetWorkstationIamPolicyPlainArgs): GetWorkstationIamPolicyResult =
        getWorkstationIamPolicyResultToKotlin(getWorkstationIamPolicyPlain(argument.toJava()).await())

    /**
     * @see [getWorkstationIamPolicy].
     * @param location The location where the workstation parent resources reside.
     * 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 location is provided in the parent identifier and no
     * location is specified, it is taken from the provider configuration.
     * @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 workstationClusterId
     * @param workstationConfigId
     * @param workstationId
     * @return A collection of values returned by getWorkstationIamPolicy.
     */
    public suspend fun getWorkstationIamPolicy(
        location: String? = null,
        project: String? = null,
        workstationClusterId: String,
        workstationConfigId: String,
        workstationId: String,
    ): GetWorkstationIamPolicyResult {
        val argument = GetWorkstationIamPolicyPlainArgs(
            location = location,
            project = project,
            workstationClusterId = workstationClusterId,
            workstationConfigId = workstationConfigId,
            workstationId = workstationId,
        )
        return getWorkstationIamPolicyResultToKotlin(getWorkstationIamPolicyPlain(argument.toJava()).await())
    }

    /**
     * @see [getWorkstationIamPolicy].
     * @param argument Builder for [com.pulumi.gcp.workstations.kotlin.inputs.GetWorkstationIamPolicyPlainArgs].
     * @return A collection of values returned by getWorkstationIamPolicy.
     */
    public suspend fun getWorkstationIamPolicy(argument: suspend GetWorkstationIamPolicyPlainArgsBuilder.() -> Unit): GetWorkstationIamPolicyResult {
        val builder = GetWorkstationIamPolicyPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getWorkstationIamPolicyResultToKotlin(getWorkstationIamPolicyPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy