com.pulumi.gcp.organizations.kotlin.inputs.GetIAMPolicyPlainArgs.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.organizations.kotlin.inputs
import com.pulumi.gcp.organizations.inputs.GetIAMPolicyPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getIAMPolicy.
* @property auditConfigs A nested configuration block that defines logging additional configuration for your project. This field is only supported on `gcp.projects.IAMPolicy`, `gcp.folder.IAMPolicy` and `gcp.organizations.IAMPolicy`.
* @property bindings A nested configuration block (described below)
* defining a binding to be included in the policy document. Multiple
* `binding` arguments are supported.
* Each document configuration must have one or more `binding` blocks, which
* each accept the following arguments:
*/
public data class GetIAMPolicyPlainArgs(
public val auditConfigs: List? = null,
public val bindings: List? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.organizations.inputs.GetIAMPolicyPlainArgs =
com.pulumi.gcp.organizations.inputs.GetIAMPolicyPlainArgs.builder()
.auditConfigs(
auditConfigs?.let({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.bindings(
bindings?.let({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [GetIAMPolicyPlainArgs].
*/
@PulumiTagMarker
public class GetIAMPolicyPlainArgsBuilder internal constructor() {
private var auditConfigs: List? = null
private var bindings: List? = null
/**
* @param value A nested configuration block that defines logging additional configuration for your project. This field is only supported on `gcp.projects.IAMPolicy`, `gcp.folder.IAMPolicy` and `gcp.organizations.IAMPolicy`.
*/
@JvmName("puaawjyvhuefpgpo")
public suspend fun auditConfigs(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.auditConfigs = mapped
}
/**
* @param argument A nested configuration block that defines logging additional configuration for your project. This field is only supported on `gcp.projects.IAMPolicy`, `gcp.folder.IAMPolicy` and `gcp.organizations.IAMPolicy`.
*/
@JvmName("iijoqfhqlvnpmgeo")
public suspend fun auditConfigs(argument: List Unit>) {
val toBeMapped = argument.toList().map {
GetIAMPolicyAuditConfigBuilder().applySuspend {
it()
}.build()
}
val mapped = toBeMapped
this.auditConfigs = mapped
}
/**
* @param argument A nested configuration block that defines logging additional configuration for your project. This field is only supported on `gcp.projects.IAMPolicy`, `gcp.folder.IAMPolicy` and `gcp.organizations.IAMPolicy`.
*/
@JvmName("kevityuufvhsdjjq")
public suspend fun auditConfigs(vararg argument: suspend GetIAMPolicyAuditConfigBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
GetIAMPolicyAuditConfigBuilder().applySuspend {
it()
}.build()
}
val mapped = toBeMapped
this.auditConfigs = mapped
}
/**
* @param argument A nested configuration block that defines logging additional configuration for your project. This field is only supported on `gcp.projects.IAMPolicy`, `gcp.folder.IAMPolicy` and `gcp.organizations.IAMPolicy`.
*/
@JvmName("bqnasfcbtxtjadbp")
public suspend fun auditConfigs(argument: suspend GetIAMPolicyAuditConfigBuilder.() -> Unit) {
val toBeMapped = listOf(GetIAMPolicyAuditConfigBuilder().applySuspend { argument() }.build())
val mapped = toBeMapped
this.auditConfigs = mapped
}
/**
* @param values A nested configuration block that defines logging additional configuration for your project. This field is only supported on `gcp.projects.IAMPolicy`, `gcp.folder.IAMPolicy` and `gcp.organizations.IAMPolicy`.
*/
@JvmName("owqigquismhokxwe")
public suspend fun auditConfigs(vararg values: GetIAMPolicyAuditConfig) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.auditConfigs = mapped
}
/**
* @param value A nested configuration block (described below)
* defining a binding to be included in the policy document. Multiple
* `binding` arguments are supported.
* Each document configuration must have one or more `binding` blocks, which
* each accept the following arguments:
*/
@JvmName("tulsufwfifkubilb")
public suspend fun bindings(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.bindings = mapped
}
/**
* @param argument A nested configuration block (described below)
* defining a binding to be included in the policy document. Multiple
* `binding` arguments are supported.
* Each document configuration must have one or more `binding` blocks, which
* each accept the following arguments:
*/
@JvmName("iwhbaflioxeypbeb")
public suspend fun bindings(argument: List Unit>) {
val toBeMapped = argument.toList().map {
GetIAMPolicyBindingBuilder().applySuspend {
it()
}.build()
}
val mapped = toBeMapped
this.bindings = mapped
}
/**
* @param argument A nested configuration block (described below)
* defining a binding to be included in the policy document. Multiple
* `binding` arguments are supported.
* Each document configuration must have one or more `binding` blocks, which
* each accept the following arguments:
*/
@JvmName("fdkcungefkomkuno")
public suspend fun bindings(vararg argument: suspend GetIAMPolicyBindingBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
GetIAMPolicyBindingBuilder().applySuspend {
it()
}.build()
}
val mapped = toBeMapped
this.bindings = mapped
}
/**
* @param argument A nested configuration block (described below)
* defining a binding to be included in the policy document. Multiple
* `binding` arguments are supported.
* Each document configuration must have one or more `binding` blocks, which
* each accept the following arguments:
*/
@JvmName("upalqshnowmskkgh")
public suspend fun bindings(argument: suspend GetIAMPolicyBindingBuilder.() -> Unit) {
val toBeMapped = listOf(GetIAMPolicyBindingBuilder().applySuspend { argument() }.build())
val mapped = toBeMapped
this.bindings = mapped
}
/**
* @param values A nested configuration block (described below)
* defining a binding to be included in the policy document. Multiple
* `binding` arguments are supported.
* Each document configuration must have one or more `binding` blocks, which
* each accept the following arguments:
*/
@JvmName("dqdxlfrbrferaekr")
public suspend fun bindings(vararg values: GetIAMPolicyBinding) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.bindings = mapped
}
internal fun build(): GetIAMPolicyPlainArgs = GetIAMPolicyPlainArgs(
auditConfigs = auditConfigs,
bindings = bindings,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy