All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.pim.kotlin.inputs.RoleManagementPolicyActiveAssignmentRulesArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.pim.kotlin.inputs

import com.pulumi.azure.pim.inputs.RoleManagementPolicyActiveAssignmentRulesArgs.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`.
 * @property requireJustification Is a justification required to create new assignments.
 * @property requireMultifactorAuthentication Is multi-factor authentication required to create new assignments.
 * @property requireTicketInfo Is ticket information required to create new assignments.
 * One of `expiration_required` or `expire_after` must be provided.
 */
public data class RoleManagementPolicyActiveAssignmentRulesArgs(
    public val expirationRequired: Output? = null,
    public val expireAfter: Output? = null,
    public val requireJustification: Output? = null,
    public val requireMultifactorAuthentication: Output? = null,
    public val requireTicketInfo: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.pim.inputs.RoleManagementPolicyActiveAssignmentRulesArgs =
        com.pulumi.azure.pim.inputs.RoleManagementPolicyActiveAssignmentRulesArgs.builder()
            .expirationRequired(expirationRequired?.applyValue({ args0 -> args0 }))
            .expireAfter(expireAfter?.applyValue({ args0 -> args0 }))
            .requireJustification(requireJustification?.applyValue({ args0 -> args0 }))
            .requireMultifactorAuthentication(requireMultifactorAuthentication?.applyValue({ args0 -> args0 }))
            .requireTicketInfo(requireTicketInfo?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RoleManagementPolicyActiveAssignmentRulesArgs].
 */
@PulumiTagMarker
public class RoleManagementPolicyActiveAssignmentRulesArgsBuilder internal constructor() {
    private var expirationRequired: Output? = null

    private var expireAfter: Output? = null

    private var requireJustification: Output? = null

    private var requireMultifactorAuthentication: Output? = null

    private var requireTicketInfo: Output? = null

    /**
     * @param value Must an assignment have an expiry date. `false` allows permanent assignment.
     */
    @JvmName("tujpabgwtqbdvopw")
    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`.
     */
    @JvmName("xexclfoaoliqamho")
    public suspend fun expireAfter(`value`: Output) {
        this.expireAfter = value
    }

    /**
     * @param value Is a justification required to create new assignments.
     */
    @JvmName("etjccaorxtybalpc")
    public suspend fun requireJustification(`value`: Output) {
        this.requireJustification = value
    }

    /**
     * @param value Is multi-factor authentication required to create new assignments.
     */
    @JvmName("shvuoxrnkoshskok")
    public suspend fun requireMultifactorAuthentication(`value`: Output) {
        this.requireMultifactorAuthentication = value
    }

    /**
     * @param value Is ticket information required to create new assignments.
     * One of `expiration_required` or `expire_after` must be provided.
     */
    @JvmName("matydeysssirxcnn")
    public suspend fun requireTicketInfo(`value`: Output) {
        this.requireTicketInfo = value
    }

    /**
     * @param value Must an assignment have an expiry date. `false` allows permanent assignment.
     */
    @JvmName("sgcdqdhaievkcqtv")
    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`.
     */
    @JvmName("crpvogvmoleqbnch")
    public suspend fun expireAfter(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.expireAfter = mapped
    }

    /**
     * @param value Is a justification required to create new assignments.
     */
    @JvmName("pbsvcmrpblrfuavc")
    public suspend fun requireJustification(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requireJustification = mapped
    }

    /**
     * @param value Is multi-factor authentication required to create new assignments.
     */
    @JvmName("rxeypoxkbvecddie")
    public suspend fun requireMultifactorAuthentication(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requireMultifactorAuthentication = mapped
    }

    /**
     * @param value Is ticket information required to create new assignments.
     * One of `expiration_required` or `expire_after` must be provided.
     */
    @JvmName("hwaucpjplixvhhul")
    public suspend fun requireTicketInfo(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requireTicketInfo = mapped
    }

    internal fun build(): RoleManagementPolicyActiveAssignmentRulesArgs =
        RoleManagementPolicyActiveAssignmentRulesArgs(
            expirationRequired = expirationRequired,
            expireAfter = expireAfter,
            requireJustification = requireJustification,
            requireMultifactorAuthentication = requireMultifactorAuthentication,
            requireTicketInfo = requireTicketInfo,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy