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

com.pulumi.gcp.apigateway.kotlin.ApigatewayFunctions.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.apigateway.kotlin

import com.pulumi.gcp.apigateway.ApigatewayFunctions.getApiConfigIamPolicyPlain
import com.pulumi.gcp.apigateway.ApigatewayFunctions.getApiIamPolicyPlain
import com.pulumi.gcp.apigateway.ApigatewayFunctions.getGatewayIamPolicyPlain
import com.pulumi.gcp.apigateway.kotlin.inputs.GetApiConfigIamPolicyPlainArgs
import com.pulumi.gcp.apigateway.kotlin.inputs.GetApiConfigIamPolicyPlainArgsBuilder
import com.pulumi.gcp.apigateway.kotlin.inputs.GetApiIamPolicyPlainArgs
import com.pulumi.gcp.apigateway.kotlin.inputs.GetApiIamPolicyPlainArgsBuilder
import com.pulumi.gcp.apigateway.kotlin.inputs.GetGatewayIamPolicyPlainArgs
import com.pulumi.gcp.apigateway.kotlin.inputs.GetGatewayIamPolicyPlainArgsBuilder
import com.pulumi.gcp.apigateway.kotlin.outputs.GetApiConfigIamPolicyResult
import com.pulumi.gcp.apigateway.kotlin.outputs.GetApiIamPolicyResult
import com.pulumi.gcp.apigateway.kotlin.outputs.GetGatewayIamPolicyResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.gcp.apigateway.kotlin.outputs.GetApiConfigIamPolicyResult.Companion.toKotlin as getApiConfigIamPolicyResultToKotlin
import com.pulumi.gcp.apigateway.kotlin.outputs.GetApiIamPolicyResult.Companion.toKotlin as getApiIamPolicyResultToKotlin
import com.pulumi.gcp.apigateway.kotlin.outputs.GetGatewayIamPolicyResult.Companion.toKotlin as getGatewayIamPolicyResultToKotlin

public object ApigatewayFunctions {
    /**
     *
     * @param argument A collection of arguments for invoking getApiConfigIamPolicy.
     * @return A collection of values returned by getApiConfigIamPolicy.
     */
    public suspend fun getApiConfigIamPolicy(argument: GetApiConfigIamPolicyPlainArgs): GetApiConfigIamPolicyResult =
        getApiConfigIamPolicyResultToKotlin(getApiConfigIamPolicyPlain(argument.toJava()).await())

    /**
     * @see [getApiConfigIamPolicy].
     * @param api The API to attach the config to.
     * Used to find the parent resource to bind the IAM policy to
     * @param apiConfig
     * @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.
     * @return A collection of values returned by getApiConfigIamPolicy.
     */
    public suspend fun getApiConfigIamPolicy(
        api: String,
        apiConfig: String,
        project: String? = null,
    ): GetApiConfigIamPolicyResult {
        val argument = GetApiConfigIamPolicyPlainArgs(
            api = api,
            apiConfig = apiConfig,
            project = project,
        )
        return getApiConfigIamPolicyResultToKotlin(getApiConfigIamPolicyPlain(argument.toJava()).await())
    }

    /**
     * @see [getApiConfigIamPolicy].
     * @param argument Builder for [com.pulumi.gcp.apigateway.kotlin.inputs.GetApiConfigIamPolicyPlainArgs].
     * @return A collection of values returned by getApiConfigIamPolicy.
     */
    public suspend fun getApiConfigIamPolicy(argument: suspend GetApiConfigIamPolicyPlainArgsBuilder.() -> Unit): GetApiConfigIamPolicyResult {
        val builder = GetApiConfigIamPolicyPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getApiConfigIamPolicyResultToKotlin(getApiConfigIamPolicyPlain(builtArgument.toJava()).await())
    }

    /**
     *
     * @param argument A collection of arguments for invoking getApiIamPolicy.
     * @return A collection of values returned by getApiIamPolicy.
     */
    public suspend fun getApiIamPolicy(argument: GetApiIamPolicyPlainArgs): GetApiIamPolicyResult =
        getApiIamPolicyResultToKotlin(getApiIamPolicyPlain(argument.toJava()).await())

    /**
     * @see [getApiIamPolicy].
     * @param api
     * @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.
     * @return A collection of values returned by getApiIamPolicy.
     */
    public suspend fun getApiIamPolicy(api: String, project: String? = null): GetApiIamPolicyResult {
        val argument = GetApiIamPolicyPlainArgs(
            api = api,
            project = project,
        )
        return getApiIamPolicyResultToKotlin(getApiIamPolicyPlain(argument.toJava()).await())
    }

    /**
     * @see [getApiIamPolicy].
     * @param argument Builder for [com.pulumi.gcp.apigateway.kotlin.inputs.GetApiIamPolicyPlainArgs].
     * @return A collection of values returned by getApiIamPolicy.
     */
    public suspend fun getApiIamPolicy(argument: suspend GetApiIamPolicyPlainArgsBuilder.() -> Unit): GetApiIamPolicyResult {
        val builder = GetApiIamPolicyPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getApiIamPolicyResultToKotlin(getApiIamPolicyPlain(builtArgument.toJava()).await())
    }

    /**
     *
     * @param argument A collection of arguments for invoking getGatewayIamPolicy.
     * @return A collection of values returned by getGatewayIamPolicy.
     */
    public suspend fun getGatewayIamPolicy(argument: GetGatewayIamPolicyPlainArgs): GetGatewayIamPolicyResult =
        getGatewayIamPolicyResultToKotlin(getGatewayIamPolicyPlain(argument.toJava()).await())

    /**
     * @see [getGatewayIamPolicy].
     * @param gateway
     * @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 The region of the gateway for the API.
     * 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.
     * @return A collection of values returned by getGatewayIamPolicy.
     */
    public suspend fun getGatewayIamPolicy(
        gateway: String,
        project: String? = null,
        region: String? = null,
    ): GetGatewayIamPolicyResult {
        val argument = GetGatewayIamPolicyPlainArgs(
            gateway = gateway,
            project = project,
            region = region,
        )
        return getGatewayIamPolicyResultToKotlin(getGatewayIamPolicyPlain(argument.toJava()).await())
    }

    /**
     * @see [getGatewayIamPolicy].
     * @param argument Builder for [com.pulumi.gcp.apigateway.kotlin.inputs.GetGatewayIamPolicyPlainArgs].
     * @return A collection of values returned by getGatewayIamPolicy.
     */
    public suspend fun getGatewayIamPolicy(argument: suspend GetGatewayIamPolicyPlainArgsBuilder.() -> Unit): GetGatewayIamPolicyResult {
        val builder = GetGatewayIamPolicyPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getGatewayIamPolicyResultToKotlin(getGatewayIamPolicyPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy