com.pulumi.gcp.orgpolicy.kotlin.inputs.PolicySpecRuleValuesArgs.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.orgpolicy.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.orgpolicy.inputs.PolicySpecRuleValuesArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property allowedValues List of values allowed at this resource.
* @property deniedValues List of values denied at this resource.
*/
public data class PolicySpecRuleValuesArgs(
public val allowedValues: Output>? = null,
public val deniedValues: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.orgpolicy.inputs.PolicySpecRuleValuesArgs =
com.pulumi.gcp.orgpolicy.inputs.PolicySpecRuleValuesArgs.builder()
.allowedValues(allowedValues?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.deniedValues(deniedValues?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [PolicySpecRuleValuesArgs].
*/
@PulumiTagMarker
public class PolicySpecRuleValuesArgsBuilder internal constructor() {
private var allowedValues: Output>? = null
private var deniedValues: Output>? = null
/**
* @param value List of values allowed at this resource.
*/
@JvmName("yyjxivixflbjrfkn")
public suspend fun allowedValues(`value`: Output>) {
this.allowedValues = value
}
@JvmName("rwmakcphvcpaytxa")
public suspend fun allowedValues(vararg values: Output) {
this.allowedValues = Output.all(values.asList())
}
/**
* @param values List of values allowed at this resource.
*/
@JvmName("ycrfujubvykkilqi")
public suspend fun allowedValues(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy