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

com.pulumi.azurenative.logic.kotlin.inputs.FlowAccessControlConfigurationPolicyArgs.kt Maven / Gradle / Ivy

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

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

import com.pulumi.azurenative.logic.inputs.FlowAccessControlConfigurationPolicyArgs.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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The access control configuration policy.
 * @property allowedCallerIpAddresses The allowed caller IP address ranges.
 * @property openAuthenticationPolicies The authentication policies for workflow.
 */
public data class FlowAccessControlConfigurationPolicyArgs(
    public val allowedCallerIpAddresses: Output>? = null,
    public val openAuthenticationPolicies: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.logic.inputs.FlowAccessControlConfigurationPolicyArgs =
        com.pulumi.azurenative.logic.inputs.FlowAccessControlConfigurationPolicyArgs.builder()
            .allowedCallerIpAddresses(
                allowedCallerIpAddresses?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .openAuthenticationPolicies(
                openAuthenticationPolicies?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

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

    private var openAuthenticationPolicies: Output? = null

    /**
     * @param value The allowed caller IP address ranges.
     */
    @JvmName("pdbxrcamgrbvscsu")
    public suspend fun allowedCallerIpAddresses(`value`: Output>) {
        this.allowedCallerIpAddresses = value
    }

    @JvmName("puaocmwnalowpexh")
    public suspend fun allowedCallerIpAddresses(vararg values: Output) {
        this.allowedCallerIpAddresses = Output.all(values.asList())
    }

    /**
     * @param values The allowed caller IP address ranges.
     */
    @JvmName("bhpodvktqeouovsp")
    public suspend fun allowedCallerIpAddresses(values: List>) {
        this.allowedCallerIpAddresses = Output.all(values)
    }

    /**
     * @param value The authentication policies for workflow.
     */
    @JvmName("adsavcvlwohlwxcp")
    public suspend fun openAuthenticationPolicies(`value`: Output) {
        this.openAuthenticationPolicies = value
    }

    /**
     * @param value The allowed caller IP address ranges.
     */
    @JvmName("lgnwqqbbvkyiuose")
    public suspend fun allowedCallerIpAddresses(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedCallerIpAddresses = mapped
    }

    /**
     * @param argument The allowed caller IP address ranges.
     */
    @JvmName("tqhfvykgxarucioj")
    public suspend fun allowedCallerIpAddresses(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            IpAddressRangeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.allowedCallerIpAddresses = mapped
    }

    /**
     * @param argument The allowed caller IP address ranges.
     */
    @JvmName("lisvwccjxjfbbtgr")
    public suspend fun allowedCallerIpAddresses(vararg argument: suspend IpAddressRangeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            IpAddressRangeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.allowedCallerIpAddresses = mapped
    }

    /**
     * @param argument The allowed caller IP address ranges.
     */
    @JvmName("pmmreuiobooksonk")
    public suspend fun allowedCallerIpAddresses(argument: suspend IpAddressRangeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(IpAddressRangeArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.allowedCallerIpAddresses = mapped
    }

    /**
     * @param values The allowed caller IP address ranges.
     */
    @JvmName("dugmkgwiptiljihd")
    public suspend fun allowedCallerIpAddresses(vararg values: IpAddressRangeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedCallerIpAddresses = mapped
    }

    /**
     * @param value The authentication policies for workflow.
     */
    @JvmName("ddnlcxeembxlgjtp")
    public suspend fun openAuthenticationPolicies(`value`: OpenAuthenticationAccessPoliciesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.openAuthenticationPolicies = mapped
    }

    /**
     * @param argument The authentication policies for workflow.
     */
    @JvmName("fguvswcdgtvhaqva")
    public suspend fun openAuthenticationPolicies(argument: suspend OpenAuthenticationAccessPoliciesArgsBuilder.() -> Unit) {
        val toBeMapped = OpenAuthenticationAccessPoliciesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.openAuthenticationPolicies = mapped
    }

    internal fun build(): FlowAccessControlConfigurationPolicyArgs =
        FlowAccessControlConfigurationPolicyArgs(
            allowedCallerIpAddresses = allowedCallerIpAddresses,
            openAuthenticationPolicies = openAuthenticationPolicies,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy