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

com.pulumi.azure.logicapps.kotlin.inputs.WorkflowAccessControlTriggerArgs.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.logicapps.kotlin.inputs

import com.pulumi.azure.logicapps.inputs.WorkflowAccessControlTriggerArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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 allowedCallerIpAddressRanges A list of the allowed caller IP address ranges.
 * @property openAuthenticationPolicies A `open_authentication_policy` block as defined below.
 */
public data class WorkflowAccessControlTriggerArgs(
    public val allowedCallerIpAddressRanges: Output>,
    public val openAuthenticationPolicies:
    Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.logicapps.inputs.WorkflowAccessControlTriggerArgs =
        com.pulumi.azure.logicapps.inputs.WorkflowAccessControlTriggerArgs.builder()
            .allowedCallerIpAddressRanges(
                allowedCallerIpAddressRanges.applyValue({ args0 ->
                    args0.map({ args0 -> args0 })
                }),
            )
            .openAuthenticationPolicies(
                openAuthenticationPolicies?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

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

    private var openAuthenticationPolicies:
        Output>? = null

    /**
     * @param value A list of the allowed caller IP address ranges.
     */
    @JvmName("ihxlaikjdbpsiflp")
    public suspend fun allowedCallerIpAddressRanges(`value`: Output>) {
        this.allowedCallerIpAddressRanges = value
    }

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

    /**
     * @param values A list of the allowed caller IP address ranges.
     */
    @JvmName("fhsdxaostctnkmyc")
    public suspend fun allowedCallerIpAddressRanges(values: List>) {
        this.allowedCallerIpAddressRanges = Output.all(values)
    }

    /**
     * @param value A `open_authentication_policy` block as defined below.
     */
    @JvmName("ajnstxlxpykpclet")
    public suspend
    fun openAuthenticationPolicies(`value`: Output>) {
        this.openAuthenticationPolicies = value
    }

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

    /**
     * @param values A `open_authentication_policy` block as defined below.
     */
    @JvmName("hxgdcwersjpaxtam")
    public suspend
    fun openAuthenticationPolicies(values: List>) {
        this.openAuthenticationPolicies = Output.all(values)
    }

    /**
     * @param value A list of the allowed caller IP address ranges.
     */
    @JvmName("lqthwpanpohuatcw")
    public suspend fun allowedCallerIpAddressRanges(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedCallerIpAddressRanges = mapped
    }

    /**
     * @param values A list of the allowed caller IP address ranges.
     */
    @JvmName("mfpkkgbcaipogmwi")
    public suspend fun allowedCallerIpAddressRanges(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedCallerIpAddressRanges = mapped
    }

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

    /**
     * @param argument A `open_authentication_policy` block as defined below.
     */
    @JvmName("uakkhsktqcxvqurl")
    public suspend
    fun openAuthenticationPolicies(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WorkflowAccessControlTriggerOpenAuthenticationPolicyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.openAuthenticationPolicies = mapped
    }

    /**
     * @param argument A `open_authentication_policy` block as defined below.
     */
    @JvmName("mdnyifyauktmmvxc")
    public suspend fun openAuthenticationPolicies(
        vararg
        argument: suspend WorkflowAccessControlTriggerOpenAuthenticationPolicyArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            WorkflowAccessControlTriggerOpenAuthenticationPolicyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.openAuthenticationPolicies = mapped
    }

    /**
     * @param argument A `open_authentication_policy` block as defined below.
     */
    @JvmName("nhunspmvnugxlimn")
    public suspend
    fun openAuthenticationPolicies(argument: suspend WorkflowAccessControlTriggerOpenAuthenticationPolicyArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                WorkflowAccessControlTriggerOpenAuthenticationPolicyArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.openAuthenticationPolicies = mapped
    }

    /**
     * @param values A `open_authentication_policy` block as defined below.
     */
    @JvmName("fnncdhgaspwkrkkh")
    public suspend fun openAuthenticationPolicies(
        vararg
        values: WorkflowAccessControlTriggerOpenAuthenticationPolicyArgs,
    ) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.openAuthenticationPolicies = mapped
    }

    internal fun build(): WorkflowAccessControlTriggerArgs = WorkflowAccessControlTriggerArgs(
        allowedCallerIpAddressRanges = allowedCallerIpAddressRanges ?: throw
            PulumiNullFieldException("allowedCallerIpAddressRanges"),
        openAuthenticationPolicies = openAuthenticationPolicies,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy