![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.pim.kotlin.inputs.RoleManagementPolicyEligibleAssignmentRulesArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.pim.kotlin.inputs
import com.pulumi.azure.pim.inputs.RoleManagementPolicyEligibleAssignmentRulesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property expirationRequired Must an assignment have an expiry date. `false` allows permanent assignment.
* @property expireAfter The maximum length of time an assignment can be valid, as an ISO8601 duration. Permitted values: `P15D`, `P30D`, `P90D`, `P180D`, or `P365D`.
* One of `expiration_required` or `expire_after` must be provided.
*/
public data class RoleManagementPolicyEligibleAssignmentRulesArgs(
public val expirationRequired: Output? = null,
public val expireAfter: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.pim.inputs.RoleManagementPolicyEligibleAssignmentRulesArgs = com.pulumi.azure.pim.inputs.RoleManagementPolicyEligibleAssignmentRulesArgs.builder()
.expirationRequired(expirationRequired?.applyValue({ args0 -> args0 }))
.expireAfter(expireAfter?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RoleManagementPolicyEligibleAssignmentRulesArgs].
*/
@PulumiTagMarker
public class RoleManagementPolicyEligibleAssignmentRulesArgsBuilder internal constructor() {
private var expirationRequired: Output? = null
private var expireAfter: Output? = null
/**
* @param value Must an assignment have an expiry date. `false` allows permanent assignment.
*/
@JvmName("lufotfiwibkxpmiq")
public suspend fun expirationRequired(`value`: Output) {
this.expirationRequired = value
}
/**
* @param value The maximum length of time an assignment can be valid, as an ISO8601 duration. Permitted values: `P15D`, `P30D`, `P90D`, `P180D`, or `P365D`.
* One of `expiration_required` or `expire_after` must be provided.
*/
@JvmName("kqytahyjmtfjwsbe")
public suspend fun expireAfter(`value`: Output) {
this.expireAfter = value
}
/**
* @param value Must an assignment have an expiry date. `false` allows permanent assignment.
*/
@JvmName("oydlkjrtjoqqnoua")
public suspend fun expirationRequired(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.expirationRequired = mapped
}
/**
* @param value The maximum length of time an assignment can be valid, as an ISO8601 duration. Permitted values: `P15D`, `P30D`, `P90D`, `P180D`, or `P365D`.
* One of `expiration_required` or `expire_after` must be provided.
*/
@JvmName("xwnvdtdptmfmdojo")
public suspend fun expireAfter(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.expireAfter = mapped
}
internal fun build(): RoleManagementPolicyEligibleAssignmentRulesArgs =
RoleManagementPolicyEligibleAssignmentRulesArgs(
expirationRequired = expirationRequired,
expireAfter = expireAfter,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy