com.pulumi.gcp.networksecurity.kotlin.NetworksecurityFunctions.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.networksecurity.kotlin
import com.pulumi.gcp.networksecurity.NetworksecurityFunctions.getAddressGroupIamPolicyPlain
import com.pulumi.gcp.networksecurity.kotlin.inputs.GetAddressGroupIamPolicyPlainArgs
import com.pulumi.gcp.networksecurity.kotlin.inputs.GetAddressGroupIamPolicyPlainArgsBuilder
import com.pulumi.gcp.networksecurity.kotlin.outputs.GetAddressGroupIamPolicyResult
import com.pulumi.gcp.networksecurity.kotlin.outputs.GetAddressGroupIamPolicyResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
public object NetworksecurityFunctions {
/**
* Retrieves the current IAM policy data for projectaddressgroup
* @param argument A collection of arguments for invoking getAddressGroupIamPolicy.
* @return A collection of values returned by getAddressGroupIamPolicy.
*/
public suspend fun getAddressGroupIamPolicy(argument: GetAddressGroupIamPolicyPlainArgs): GetAddressGroupIamPolicyResult =
toKotlin(getAddressGroupIamPolicyPlain(argument.toJava()).await())
/**
* @see [getAddressGroupIamPolicy].
* @param location The location of the gateway security policy.
* Used to find the parent resource to bind the IAM policy to
* @param name Used to find the parent resource to bind the IAM policy to
* @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 getAddressGroupIamPolicy.
*/
public suspend fun getAddressGroupIamPolicy(
location: String? = null,
name: String,
project: String? = null,
): GetAddressGroupIamPolicyResult {
val argument = GetAddressGroupIamPolicyPlainArgs(
location = location,
name = name,
project = project,
)
return toKotlin(getAddressGroupIamPolicyPlain(argument.toJava()).await())
}
/**
* @see [getAddressGroupIamPolicy].
* @param argument Builder for [com.pulumi.gcp.networksecurity.kotlin.inputs.GetAddressGroupIamPolicyPlainArgs].
* @return A collection of values returned by getAddressGroupIamPolicy.
*/
public suspend fun getAddressGroupIamPolicy(argument: suspend GetAddressGroupIamPolicyPlainArgsBuilder.() -> Unit): GetAddressGroupIamPolicyResult {
val builder = GetAddressGroupIamPolicyPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return toKotlin(getAddressGroupIamPolicyPlain(builtArgument.toJava()).await())
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy