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

com.pulumi.cloudflare.kotlin.ZeroTrustAccessOrganizationArgs.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.ZeroTrustAccessOrganizationArgs.builder
import com.pulumi.cloudflare.kotlin.inputs.ZeroTrustAccessOrganizationCustomPageArgs
import com.pulumi.cloudflare.kotlin.inputs.ZeroTrustAccessOrganizationCustomPageArgsBuilder
import com.pulumi.cloudflare.kotlin.inputs.ZeroTrustAccessOrganizationLoginDesignArgs
import com.pulumi.cloudflare.kotlin.inputs.ZeroTrustAccessOrganizationLoginDesignArgsBuilder
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * A Zero Trust organization defines the user login experience.
 * @property accountId The account identifier to target for the resource. Conflicts with `zone_id`.
 * @property allowAuthenticateViaWarp When set to true, users can authenticate via WARP for any application in your organization. Application settings will take precedence over this value.
 * @property authDomain The unique subdomain assigned to your Zero Trust organization.
 * @property autoRedirectToIdentity When set to true, users skip the identity provider selection step during login.
 * @property customPages Custom pages for your Zero Trust organization.
 * @property isUiReadOnly When set to true, this will disable all editing of Access resources via the Zero Trust Dashboard.
 * @property loginDesigns
 * @property name The name of your Zero Trust organization.
 * @property sessionDuration How often a user will be forced to re-authorise. Must be in the format `48h` or `2h45m`.
 * @property uiReadOnlyToggleReason A description of the reason why the UI read only field is being toggled.
 * @property userSeatExpirationInactiveTime The amount of time a user seat is inactive before it expires. When the user seat exceeds the set time of inactivity, the user is removed as an active seat and no longer counts against your Teams seat count. Must be in the format `300ms` or `2h45m`.
 * @property warpAuthSessionDuration The amount of time that tokens issued for applications will be valid. Must be in the format 30m or 2h45m. Valid time units are: m, h.
 * @property zoneId The zone identifier to target for the resource. Conflicts with `account_id`.
 */
public data class ZeroTrustAccessOrganizationArgs(
    public val accountId: Output? = null,
    public val allowAuthenticateViaWarp: Output? = null,
    public val authDomain: Output? = null,
    public val autoRedirectToIdentity: Output? = null,
    public val customPages: Output>? = null,
    public val isUiReadOnly: Output? = null,
    public val loginDesigns: Output>? = null,
    public val name: Output? = null,
    public val sessionDuration: Output? = null,
    public val uiReadOnlyToggleReason: Output? = null,
    public val userSeatExpirationInactiveTime: Output? = null,
    public val warpAuthSessionDuration: Output? = null,
    public val zoneId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.ZeroTrustAccessOrganizationArgs =
        com.pulumi.cloudflare.ZeroTrustAccessOrganizationArgs.builder()
            .accountId(accountId?.applyValue({ args0 -> args0 }))
            .allowAuthenticateViaWarp(allowAuthenticateViaWarp?.applyValue({ args0 -> args0 }))
            .authDomain(authDomain?.applyValue({ args0 -> args0 }))
            .autoRedirectToIdentity(autoRedirectToIdentity?.applyValue({ args0 -> args0 }))
            .customPages(
                customPages?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .isUiReadOnly(isUiReadOnly?.applyValue({ args0 -> args0 }))
            .loginDesigns(
                loginDesigns?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .sessionDuration(sessionDuration?.applyValue({ args0 -> args0 }))
            .uiReadOnlyToggleReason(uiReadOnlyToggleReason?.applyValue({ args0 -> args0 }))
            .userSeatExpirationInactiveTime(userSeatExpirationInactiveTime?.applyValue({ args0 -> args0 }))
            .warpAuthSessionDuration(warpAuthSessionDuration?.applyValue({ args0 -> args0 }))
            .zoneId(zoneId?.applyValue({ args0 -> args0 })).build()
}

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

    private var allowAuthenticateViaWarp: Output? = null

    private var authDomain: Output? = null

    private var autoRedirectToIdentity: Output? = null

    private var customPages: Output>? = null

    private var isUiReadOnly: Output? = null

    private var loginDesigns: Output>? = null

    private var name: Output? = null

    private var sessionDuration: Output? = null

    private var uiReadOnlyToggleReason: Output? = null

    private var userSeatExpirationInactiveTime: Output? = null

    private var warpAuthSessionDuration: Output? = null

    private var zoneId: Output? = null

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

    /**
     * @param value When set to true, users can authenticate via WARP for any application in your organization. Application settings will take precedence over this value.
     */
    @JvmName("ilchfflcpwilxlhv")
    public suspend fun allowAuthenticateViaWarp(`value`: Output) {
        this.allowAuthenticateViaWarp = value
    }

    /**
     * @param value The unique subdomain assigned to your Zero Trust organization.
     */
    @JvmName("aarxufhdtnqilffe")
    public suspend fun authDomain(`value`: Output) {
        this.authDomain = value
    }

    /**
     * @param value When set to true, users skip the identity provider selection step during login.
     */
    @JvmName("xfuklybdckonxrvd")
    public suspend fun autoRedirectToIdentity(`value`: Output) {
        this.autoRedirectToIdentity = value
    }

    /**
     * @param value Custom pages for your Zero Trust organization.
     */
    @JvmName("uxlnwpuxhuygrmse")
    public suspend fun customPages(`value`: Output>) {
        this.customPages = value
    }

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

    /**
     * @param values Custom pages for your Zero Trust organization.
     */
    @JvmName("jjhgtroxaojcqoth")
    public suspend fun customPages(values: List>) {
        this.customPages = Output.all(values)
    }

    /**
     * @param value When set to true, this will disable all editing of Access resources via the Zero Trust Dashboard.
     */
    @JvmName("edirpfwllasppyke")
    public suspend fun isUiReadOnly(`value`: Output) {
        this.isUiReadOnly = value
    }

    /**
     * @param value
     */
    @JvmName("ppaqcrgbvcfbyiga")
    public suspend fun loginDesigns(`value`: Output>) {
        this.loginDesigns = value
    }

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

    /**
     * @param values
     */
    @JvmName("anqrtipylcsuqgrm")
    public suspend fun loginDesigns(values: List>) {
        this.loginDesigns = Output.all(values)
    }

    /**
     * @param value The name of your Zero Trust organization.
     */
    @JvmName("ndqquqphtcucffkd")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value How often a user will be forced to re-authorise. Must be in the format `48h` or `2h45m`.
     */
    @JvmName("ypwgneefxlwqeamn")
    public suspend fun sessionDuration(`value`: Output) {
        this.sessionDuration = value
    }

    /**
     * @param value A description of the reason why the UI read only field is being toggled.
     */
    @JvmName("nbbpivgauwvfndlw")
    public suspend fun uiReadOnlyToggleReason(`value`: Output) {
        this.uiReadOnlyToggleReason = value
    }

    /**
     * @param value The amount of time a user seat is inactive before it expires. When the user seat exceeds the set time of inactivity, the user is removed as an active seat and no longer counts against your Teams seat count. Must be in the format `300ms` or `2h45m`.
     */
    @JvmName("kvaalguufvvsnkqt")
    public suspend fun userSeatExpirationInactiveTime(`value`: Output) {
        this.userSeatExpirationInactiveTime = value
    }

    /**
     * @param value The amount of time that tokens issued for applications will be valid. Must be in the format 30m or 2h45m. Valid time units are: m, h.
     */
    @JvmName("exnqonykkgoilfae")
    public suspend fun warpAuthSessionDuration(`value`: Output) {
        this.warpAuthSessionDuration = value
    }

    /**
     * @param value The zone identifier to target for the resource. Conflicts with `account_id`.
     */
    @JvmName("sehnpvlivwainpjt")
    public suspend fun zoneId(`value`: Output) {
        this.zoneId = value
    }

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

    /**
     * @param value When set to true, users can authenticate via WARP for any application in your organization. Application settings will take precedence over this value.
     */
    @JvmName("cccesqvbtblgatbr")
    public suspend fun allowAuthenticateViaWarp(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowAuthenticateViaWarp = mapped
    }

    /**
     * @param value The unique subdomain assigned to your Zero Trust organization.
     */
    @JvmName("kfmxlxkwjsixrbsn")
    public suspend fun authDomain(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authDomain = mapped
    }

    /**
     * @param value When set to true, users skip the identity provider selection step during login.
     */
    @JvmName("oblilalnyqvghhoi")
    public suspend fun autoRedirectToIdentity(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoRedirectToIdentity = mapped
    }

    /**
     * @param value Custom pages for your Zero Trust organization.
     */
    @JvmName("mhqcdirujghfusjo")
    public suspend fun customPages(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customPages = mapped
    }

    /**
     * @param argument Custom pages for your Zero Trust organization.
     */
    @JvmName("opnlkhubeitamqab")
    public suspend fun customPages(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ZeroTrustAccessOrganizationCustomPageArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.customPages = mapped
    }

    /**
     * @param argument Custom pages for your Zero Trust organization.
     */
    @JvmName("xkchddbfgcqrfpft")
    public suspend fun customPages(vararg argument: suspend ZeroTrustAccessOrganizationCustomPageArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ZeroTrustAccessOrganizationCustomPageArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.customPages = mapped
    }

    /**
     * @param argument Custom pages for your Zero Trust organization.
     */
    @JvmName("khwatbbkwbsesqoo")
    public suspend fun customPages(argument: suspend ZeroTrustAccessOrganizationCustomPageArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ZeroTrustAccessOrganizationCustomPageArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.customPages = mapped
    }

    /**
     * @param values Custom pages for your Zero Trust organization.
     */
    @JvmName("dqirgwxdxywvgdji")
    public suspend fun customPages(vararg values: ZeroTrustAccessOrganizationCustomPageArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customPages = mapped
    }

    /**
     * @param value When set to true, this will disable all editing of Access resources via the Zero Trust Dashboard.
     */
    @JvmName("hsynsoerlsreladu")
    public suspend fun isUiReadOnly(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.isUiReadOnly = mapped
    }

    /**
     * @param value
     */
    @JvmName("lmmdtnsrhtqeoumo")
    public suspend fun loginDesigns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loginDesigns = mapped
    }

    /**
     * @param argument
     */
    @JvmName("sovpmmlorqknychg")
    public suspend fun loginDesigns(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ZeroTrustAccessOrganizationLoginDesignArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.loginDesigns = mapped
    }

    /**
     * @param argument
     */
    @JvmName("bqvaaghbhlmpbsfg")
    public suspend fun loginDesigns(vararg argument: suspend ZeroTrustAccessOrganizationLoginDesignArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ZeroTrustAccessOrganizationLoginDesignArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.loginDesigns = mapped
    }

    /**
     * @param argument
     */
    @JvmName("dbpvxbaoemkskqna")
    public suspend fun loginDesigns(argument: suspend ZeroTrustAccessOrganizationLoginDesignArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ZeroTrustAccessOrganizationLoginDesignArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.loginDesigns = mapped
    }

    /**
     * @param values
     */
    @JvmName("mulplcspjlhwvdru")
    public suspend fun loginDesigns(vararg values: ZeroTrustAccessOrganizationLoginDesignArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.loginDesigns = mapped
    }

    /**
     * @param value The name of your Zero Trust organization.
     */
    @JvmName("breccyiwntvxvkch")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value How often a user will be forced to re-authorise. Must be in the format `48h` or `2h45m`.
     */
    @JvmName("uecpnfqpuwibcyop")
    public suspend fun sessionDuration(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sessionDuration = mapped
    }

    /**
     * @param value A description of the reason why the UI read only field is being toggled.
     */
    @JvmName("kqamcnovsshokadf")
    public suspend fun uiReadOnlyToggleReason(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.uiReadOnlyToggleReason = mapped
    }

    /**
     * @param value The amount of time a user seat is inactive before it expires. When the user seat exceeds the set time of inactivity, the user is removed as an active seat and no longer counts against your Teams seat count. Must be in the format `300ms` or `2h45m`.
     */
    @JvmName("urxcmefsbhyehkeo")
    public suspend fun userSeatExpirationInactiveTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userSeatExpirationInactiveTime = mapped
    }

    /**
     * @param value The amount of time that tokens issued for applications will be valid. Must be in the format 30m or 2h45m. Valid time units are: m, h.
     */
    @JvmName("edbkmpcgdglqtcfg")
    public suspend fun warpAuthSessionDuration(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.warpAuthSessionDuration = mapped
    }

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

    internal fun build(): ZeroTrustAccessOrganizationArgs = ZeroTrustAccessOrganizationArgs(
        accountId = accountId,
        allowAuthenticateViaWarp = allowAuthenticateViaWarp,
        authDomain = authDomain,
        autoRedirectToIdentity = autoRedirectToIdentity,
        customPages = customPages,
        isUiReadOnly = isUiReadOnly,
        loginDesigns = loginDesigns,
        name = name,
        sessionDuration = sessionDuration,
        uiReadOnlyToggleReason = uiReadOnlyToggleReason,
        userSeatExpirationInactiveTime = userSeatExpirationInactiveTime,
        warpAuthSessionDuration = warpAuthSessionDuration,
        zoneId = zoneId,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy