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

com.pulumi.cloudflare.kotlin.RiskBehaviorArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin

import com.pulumi.cloudflare.RiskBehaviorArgs.builder
import com.pulumi.cloudflare.kotlin.inputs.RiskBehaviorBehaviorArgs
import com.pulumi.cloudflare.kotlin.inputs.RiskBehaviorBehaviorArgsBuilder
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

/**
 * The [Risk Behavior](https://developers.cloudflare.com/cloudflare-one/insights/risk-score/) resource allows you to configure Cloudflare Risk Behaviors for an account.
 * @property accountId The account identifier to target for the resource.
 * @property behaviors Zero Trust risk behaviors configured on this account
 */
public data class RiskBehaviorArgs(
    public val accountId: Output? = null,
    public val behaviors: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.RiskBehaviorArgs =
        com.pulumi.cloudflare.RiskBehaviorArgs.builder()
            .accountId(accountId?.applyValue({ args0 -> args0 }))
            .behaviors(
                behaviors?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [RiskBehaviorArgs].
 */
@PulumiTagMarker
public class RiskBehaviorArgsBuilder internal constructor() {
    private var accountId: Output? = null

    private var behaviors: Output>? = null

    /**
     * @param value The account identifier to target for the resource.
     */
    @JvmName("ddjciqwxxclipwlh")
    public suspend fun accountId(`value`: Output) {
        this.accountId = value
    }

    /**
     * @param value Zero Trust risk behaviors configured on this account
     */
    @JvmName("djvpiqxsgkytkqxd")
    public suspend fun behaviors(`value`: Output>) {
        this.behaviors = value
    }

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

    /**
     * @param values Zero Trust risk behaviors configured on this account
     */
    @JvmName("mifxegnjqnatdffp")
    public suspend fun behaviors(values: List>) {
        this.behaviors = Output.all(values)
    }

    /**
     * @param value The account identifier to target for the resource.
     */
    @JvmName("gbwpvpgpgnvggtey")
    public suspend fun accountId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountId = mapped
    }

    /**
     * @param value Zero Trust risk behaviors configured on this account
     */
    @JvmName("qydqrikyhnyunvky")
    public suspend fun behaviors(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.behaviors = mapped
    }

    /**
     * @param argument Zero Trust risk behaviors configured on this account
     */
    @JvmName("rqwknnfktlgboewu")
    public suspend fun behaviors(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            RiskBehaviorBehaviorArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.behaviors = mapped
    }

    /**
     * @param argument Zero Trust risk behaviors configured on this account
     */
    @JvmName("raagyeedfnqvtgyx")
    public suspend fun behaviors(vararg argument: suspend RiskBehaviorBehaviorArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            RiskBehaviorBehaviorArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.behaviors = mapped
    }

    /**
     * @param argument Zero Trust risk behaviors configured on this account
     */
    @JvmName("jppjaijnoejfnlbt")
    public suspend fun behaviors(argument: suspend RiskBehaviorBehaviorArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(RiskBehaviorBehaviorArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.behaviors = mapped
    }

    /**
     * @param values Zero Trust risk behaviors configured on this account
     */
    @JvmName("uapvhgkpvufdbvdi")
    public suspend fun behaviors(vararg values: RiskBehaviorBehaviorArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.behaviors = mapped
    }

    internal fun build(): RiskBehaviorArgs = RiskBehaviorArgs(
        accountId = accountId,
        behaviors = behaviors,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy