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.15.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("tjnvxfvfaipgsglh")
    public suspend fun allowedCallerIpAddressRanges(`value`: Output>) {
        this.allowedCallerIpAddressRanges = value
    }

    @JvmName("xosrfnfwmhsyfdki")
    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("jirafeffjfgprrxs")
    public suspend fun allowedCallerIpAddressRanges(values: List>) {
        this.allowedCallerIpAddressRanges = Output.all(values)
    }

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

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

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

    /**
     * @param value A list of the allowed caller IP address ranges.
     */
    @JvmName("kmdxopjbgcnualvy")
    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("chcvxhtshhnxcsia")
    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("peecbgdsllfewaia")
    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("nklxqqqjuuuvtosa")
    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("xvqkdkfitfmtphpk")
    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("qqcywwebccgkshlo")
    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("npynfokrggrfwscs")
    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