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

com.pulumi.azurenative.logic.kotlin.inputs.OpenAuthenticationAccessPoliciesArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.logic.kotlin.inputs

import com.pulumi.azurenative.logic.inputs.OpenAuthenticationAccessPoliciesArgs.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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * AuthenticationPolicy of type Open.
 * @property policies Open authentication policies.
 */
public data class OpenAuthenticationAccessPoliciesArgs(
    public val policies: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.logic.inputs.OpenAuthenticationAccessPoliciesArgs =
        com.pulumi.azurenative.logic.inputs.OpenAuthenticationAccessPoliciesArgs.builder()
            .policies(
                policies?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
                    }).toMap()
                }),
            ).build()
}

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

    /**
     * @param value Open authentication policies.
     */
    @JvmName("bovqwjwfwteaqltx")
    public suspend fun policies(`value`: Output>) {
        this.policies = value
    }

    /**
     * @param value Open authentication policies.
     */
    @JvmName("xeskiiycthrsaini")
    public suspend fun policies(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policies = mapped
    }

    /**
     * @param argument Open authentication policies.
     */
    @JvmName("mwimuosscociiayj")
    public suspend fun policies(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                OpenAuthenticationAccessPolicyArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.policies = mapped
    }

    /**
     * @param values Open authentication policies.
     */
    @JvmName("nyoneqkqyvlgixqh")
    public fun policies(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.policies = mapped
    }

    internal fun build(): OpenAuthenticationAccessPoliciesArgs = OpenAuthenticationAccessPoliciesArgs(
        policies = policies,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy