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

com.pulumi.azure.lighthouse.kotlin.inputs.DefinitionEligibleAuthorizationJustInTimeAccessPolicyArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.lighthouse.kotlin.inputs

import com.pulumi.azure.lighthouse.inputs.DefinitionEligibleAuthorizationJustInTimeAccessPolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property approvers An `approver` block as defined below.
 * @property maximumActivationDuration The maximum access duration in ISO 8601 format for just-in-time access requests. Defaults to `PT8H`.
 * @property multiFactorAuthProvider The multi-factor authorization provider to be used for just-in-time access requests. Possible value is `Azure`.
 * > **Note:** When this property isn't set, it would be set to `None`.
 */
public data class DefinitionEligibleAuthorizationJustInTimeAccessPolicyArgs(
    public val approvers:
    Output>? = null,
    public val maximumActivationDuration: Output? = null,
    public val multiFactorAuthProvider: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.lighthouse.inputs.DefinitionEligibleAuthorizationJustInTimeAccessPolicyArgs =
        com.pulumi.azure.lighthouse.inputs.DefinitionEligibleAuthorizationJustInTimeAccessPolicyArgs.builder()
            .approvers(
                approvers?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .maximumActivationDuration(maximumActivationDuration?.applyValue({ args0 -> args0 }))
            .multiFactorAuthProvider(multiFactorAuthProvider?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DefinitionEligibleAuthorizationJustInTimeAccessPolicyArgs].
 */
@PulumiTagMarker
public class DefinitionEligibleAuthorizationJustInTimeAccessPolicyArgsBuilder internal constructor() {
    private var approvers:
        Output>? = null

    private var maximumActivationDuration: Output? = null

    private var multiFactorAuthProvider: Output? = null

    /**
     * @param value An `approver` block as defined below.
     */
    @JvmName("kqxpjrjxsrpkkugl")
    public suspend
    fun approvers(`value`: Output>) {
        this.approvers = value
    }

    @JvmName("fqedgvajwtcsyqnx")
    public suspend fun approvers(
        vararg
        values: Output,
    ) {
        this.approvers = Output.all(values.asList())
    }

    /**
     * @param values An `approver` block as defined below.
     */
    @JvmName("uobafrmljticbhjk")
    public suspend
    fun approvers(values: List>) {
        this.approvers = Output.all(values)
    }

    /**
     * @param value The maximum access duration in ISO 8601 format for just-in-time access requests. Defaults to `PT8H`.
     */
    @JvmName("dybjsqpymlrqenmp")
    public suspend fun maximumActivationDuration(`value`: Output) {
        this.maximumActivationDuration = value
    }

    /**
     * @param value The multi-factor authorization provider to be used for just-in-time access requests. Possible value is `Azure`.
     * > **Note:** When this property isn't set, it would be set to `None`.
     */
    @JvmName("dxjxcxfmwhurnlfe")
    public suspend fun multiFactorAuthProvider(`value`: Output) {
        this.multiFactorAuthProvider = value
    }

    /**
     * @param value An `approver` block as defined below.
     */
    @JvmName("vvjrtkgupksrnxpx")
    public suspend
    fun approvers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.approvers = mapped
    }

    /**
     * @param argument An `approver` block as defined below.
     */
    @JvmName("mguqxgcmqunanacb")
    public suspend
    fun approvers(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DefinitionEligibleAuthorizationJustInTimeAccessPolicyApproverArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.approvers = mapped
    }

    /**
     * @param argument An `approver` block as defined below.
     */
    @JvmName("rsorjeoqgfxybthy")
    public suspend fun approvers(
        vararg
        argument: suspend DefinitionEligibleAuthorizationJustInTimeAccessPolicyApproverArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            DefinitionEligibleAuthorizationJustInTimeAccessPolicyApproverArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.approvers = mapped
    }

    /**
     * @param argument An `approver` block as defined below.
     */
    @JvmName("wvqoqdklydvpgimf")
    public suspend
    fun approvers(argument: suspend DefinitionEligibleAuthorizationJustInTimeAccessPolicyApproverArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                DefinitionEligibleAuthorizationJustInTimeAccessPolicyApproverArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.approvers = mapped
    }

    /**
     * @param values An `approver` block as defined below.
     */
    @JvmName("kilvaqnrdoevjqbg")
    public suspend fun approvers(
        vararg
        values: DefinitionEligibleAuthorizationJustInTimeAccessPolicyApproverArgs,
    ) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.approvers = mapped
    }

    /**
     * @param value The maximum access duration in ISO 8601 format for just-in-time access requests. Defaults to `PT8H`.
     */
    @JvmName("dguefdqxfhiregcf")
    public suspend fun maximumActivationDuration(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maximumActivationDuration = mapped
    }

    /**
     * @param value The multi-factor authorization provider to be used for just-in-time access requests. Possible value is `Azure`.
     * > **Note:** When this property isn't set, it would be set to `None`.
     */
    @JvmName("smrynjcljspdrrtm")
    public suspend fun multiFactorAuthProvider(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.multiFactorAuthProvider = mapped
    }

    internal fun build(): DefinitionEligibleAuthorizationJustInTimeAccessPolicyArgs =
        DefinitionEligibleAuthorizationJustInTimeAccessPolicyArgs(
            approvers = approvers,
            maximumActivationDuration = maximumActivationDuration,
            multiFactorAuthProvider = multiFactorAuthProvider,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy