com.pulumi.gcp.runtimeconfig.kotlin.ConfigIamPolicyArgs.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.runtimeconfig.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.runtimeconfig.ConfigIamPolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* ## Import
* For all import syntaxes, the "resource in question" can take any of the following forms:
* * projects/{{project}}/configs/{{config}}
* * {{project}}/{{config}}
* * {{config}}
* Any variables not passed in the import command will be taken from the provider configuration.
* Runtime Configurator config IAM resources can be imported using the resource identifiers, role, and member.
* IAM member imports use space-delimited identifiers: the resource in question, the role, and the member identity, e.g.
* ```sh
* $ pulumi import gcp:runtimeconfig/configIamPolicy:ConfigIamPolicy editor "projects/{{project}}/configs/{{config}} roles/viewer user:[email protected]"
* ```
* IAM binding imports use space-delimited identifiers: the resource in question and the role, e.g.
* ```sh
* $ pulumi import gcp:runtimeconfig/configIamPolicy:ConfigIamPolicy editor "projects/{{project}}/configs/{{config}} roles/viewer"
* ```
* IAM policy imports use the identifier of the resource in question, e.g.
* ```sh
* $ pulumi import gcp:runtimeconfig/configIamPolicy:ConfigIamPolicy editor projects/{{project}}/configs/{{config}}
* ```
* -> **Custom Roles**: If you're importing a IAM resource with a custom role, make sure to use the
* full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
* @property config Used to find the parent resource to bind the IAM policy to
* @property policyData The policy data generated by
* a `gcp.organizations.getIAMPolicy` data source.
* @property 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.
*/
public data class ConfigIamPolicyArgs(
public val config: Output? = null,
public val policyData: Output? = null,
public val project: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.runtimeconfig.ConfigIamPolicyArgs =
com.pulumi.gcp.runtimeconfig.ConfigIamPolicyArgs.builder()
.config(config?.applyValue({ args0 -> args0 }))
.policyData(policyData?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ConfigIamPolicyArgs].
*/
@PulumiTagMarker
public class ConfigIamPolicyArgsBuilder internal constructor() {
private var config: Output? = null
private var policyData: Output? = null
private var project: Output? = null
/**
* @param value Used to find the parent resource to bind the IAM policy to
*/
@JvmName("btucqaugivlxownq")
public suspend fun config(`value`: Output) {
this.config = value
}
/**
* @param value The policy data generated by
* a `gcp.organizations.getIAMPolicy` data source.
*/
@JvmName("xtbwvuhwyuxquypr")
public suspend fun policyData(`value`: Output) {
this.policyData = value
}
/**
* @param value 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.
*/
@JvmName("ofjwwvqpayfgrpeu")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value Used to find the parent resource to bind the IAM policy to
*/
@JvmName("sisdvbpkxncmdigr")
public suspend fun config(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.config = mapped
}
/**
* @param value The policy data generated by
* a `gcp.organizations.getIAMPolicy` data source.
*/
@JvmName("sjfkhebqvulxassv")
public suspend fun policyData(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.policyData = mapped
}
/**
* @param value 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.
*/
@JvmName("nmwnoigxnpffarwr")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
internal fun build(): ConfigIamPolicyArgs = ConfigIamPolicyArgs(
config = config,
policyData = policyData,
project = project,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy