com.pulumi.nomad.kotlin.AclBindingRuleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-nomad-kotlin Show documentation
Show all versions of pulumi-nomad-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.nomad.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.nomad.AclBindingRuleArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property authMethod `(string: )` - Name of the auth method for which this
* rule applies to.
* @property bindName `(string: )` - Target of the binding. If `bind_type` is
* `role` or `policy` then `bind_name` is required. If `bind_type` is
* `management` than `bind_name` must not be defined.
* @property bindType `(string: )` - Adjusts how this binding rule is applied
* at login time. Valid values are `role`, `policy`, and `management`.
* @property description `(string: "")` - Description for this ACL binding rule.
* @property selector `(string: "")` - A boolean expression that matches against verified
* identity attributes returned from the auth method during login.
*/
public data class AclBindingRuleArgs(
public val authMethod: Output? = null,
public val bindName: Output? = null,
public val bindType: Output? = null,
public val description: Output? = null,
public val selector: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.nomad.AclBindingRuleArgs =
com.pulumi.nomad.AclBindingRuleArgs.builder()
.authMethod(authMethod?.applyValue({ args0 -> args0 }))
.bindName(bindName?.applyValue({ args0 -> args0 }))
.bindType(bindType?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.selector(selector?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AclBindingRuleArgs].
*/
@PulumiTagMarker
public class AclBindingRuleArgsBuilder internal constructor() {
private var authMethod: Output? = null
private var bindName: Output? = null
private var bindType: Output? = null
private var description: Output? = null
private var selector: Output? = null
/**
* @param value `(string: )` - Name of the auth method for which this
* rule applies to.
*/
@JvmName("xomxryeqtenaknnt")
public suspend fun authMethod(`value`: Output) {
this.authMethod = value
}
/**
* @param value `(string: )` - Target of the binding. If `bind_type` is
* `role` or `policy` then `bind_name` is required. If `bind_type` is
* `management` than `bind_name` must not be defined.
*/
@JvmName("byevbntwpekthkcs")
public suspend fun bindName(`value`: Output) {
this.bindName = value
}
/**
* @param value `(string: )` - Adjusts how this binding rule is applied
* at login time. Valid values are `role`, `policy`, and `management`.
*/
@JvmName("qptwjiwovnsavnsj")
public suspend fun bindType(`value`: Output) {
this.bindType = value
}
/**
* @param value `(string: "")` - Description for this ACL binding rule.
*/
@JvmName("cgunwtudtlpvojgp")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value `(string: "")` - A boolean expression that matches against verified
* identity attributes returned from the auth method during login.
*/
@JvmName("myxicuqjqhgqhrje")
public suspend fun selector(`value`: Output) {
this.selector = value
}
/**
* @param value `(string: )` - Name of the auth method for which this
* rule applies to.
*/
@JvmName("wtsxxktbcvlerije")
public suspend fun authMethod(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.authMethod = mapped
}
/**
* @param value `(string: )` - Target of the binding. If `bind_type` is
* `role` or `policy` then `bind_name` is required. If `bind_type` is
* `management` than `bind_name` must not be defined.
*/
@JvmName("cyhxeligqmjodeoq")
public suspend fun bindName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.bindName = mapped
}
/**
* @param value `(string: )` - Adjusts how this binding rule is applied
* at login time. Valid values are `role`, `policy`, and `management`.
*/
@JvmName("fxsotgebcwrkdmla")
public suspend fun bindType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.bindType = mapped
}
/**
* @param value `(string: "")` - Description for this ACL binding rule.
*/
@JvmName("hnvkybkxycrjdmii")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value `(string: "")` - A boolean expression that matches against verified
* identity attributes returned from the auth method during login.
*/
@JvmName("rkovoelcmnafhttx")
public suspend fun selector(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.selector = mapped
}
internal fun build(): AclBindingRuleArgs = AclBindingRuleArgs(
authMethod = authMethod,
bindName = bindName,
bindType = bindType,
description = description,
selector = selector,
)
}