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

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

import com.pulumi.cloudflare.inputs.ZeroTrustAccessApplicationScimConfigArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property authentication Attributes for configuring HTTP Basic, OAuth Bearer token, or OAuth 2 authentication schemes for SCIM provisioning to an application.
 * @property deactivateOnDelete If false, propagates DELETE requests to the target application for SCIM resources. If true, sets 'active' to false on the SCIM resource. Note: Some targets do not support DELETE operations.
 * @property enabled Whether SCIM provisioning is turned on for this application.
 * @property idpUid The UID of the IdP to use as the source for SCIM resources to provision to this application.
 * @property mappings A list of mappings to apply to SCIM resources before provisioning them in this application. These can transform or filter the resources to be provisioned.
 * @property remoteUri The base URI for the application's SCIM-compatible API.
 */
public data class ZeroTrustAccessApplicationScimConfigArgs(
    public val authentication: Output? = null,
    public val deactivateOnDelete: Output? = null,
    public val enabled: Output? = null,
    public val idpUid: Output,
    public val mappings: Output>? = null,
    public val remoteUri: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.ZeroTrustAccessApplicationScimConfigArgs =
        com.pulumi.cloudflare.inputs.ZeroTrustAccessApplicationScimConfigArgs.builder()
            .authentication(authentication?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .deactivateOnDelete(deactivateOnDelete?.applyValue({ args0 -> args0 }))
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .idpUid(idpUid.applyValue({ args0 -> args0 }))
            .mappings(
                mappings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .remoteUri(remoteUri.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ZeroTrustAccessApplicationScimConfigArgs].
 */
@PulumiTagMarker
public class ZeroTrustAccessApplicationScimConfigArgsBuilder internal constructor() {
    private var authentication: Output? = null

    private var deactivateOnDelete: Output? = null

    private var enabled: Output? = null

    private var idpUid: Output? = null

    private var mappings: Output>? = null

    private var remoteUri: Output? = null

    /**
     * @param value Attributes for configuring HTTP Basic, OAuth Bearer token, or OAuth 2 authentication schemes for SCIM provisioning to an application.
     */
    @JvmName("ywweptawkqynbcqp")
    public suspend fun authentication(`value`: Output) {
        this.authentication = value
    }

    /**
     * @param value If false, propagates DELETE requests to the target application for SCIM resources. If true, sets 'active' to false on the SCIM resource. Note: Some targets do not support DELETE operations.
     */
    @JvmName("gynbawfilfethbsr")
    public suspend fun deactivateOnDelete(`value`: Output) {
        this.deactivateOnDelete = value
    }

    /**
     * @param value Whether SCIM provisioning is turned on for this application.
     */
    @JvmName("emmbcthngfknmglu")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value The UID of the IdP to use as the source for SCIM resources to provision to this application.
     */
    @JvmName("morlxxivermbtnis")
    public suspend fun idpUid(`value`: Output) {
        this.idpUid = value
    }

    /**
     * @param value A list of mappings to apply to SCIM resources before provisioning them in this application. These can transform or filter the resources to be provisioned.
     */
    @JvmName("lubawmaofmnsqbtq")
    public suspend fun mappings(`value`: Output>) {
        this.mappings = value
    }

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

    /**
     * @param values A list of mappings to apply to SCIM resources before provisioning them in this application. These can transform or filter the resources to be provisioned.
     */
    @JvmName("sltwtmyggytqohtk")
    public suspend fun mappings(values: List>) {
        this.mappings = Output.all(values)
    }

    /**
     * @param value The base URI for the application's SCIM-compatible API.
     */
    @JvmName("lxcwryoxjgbgpkjo")
    public suspend fun remoteUri(`value`: Output) {
        this.remoteUri = value
    }

    /**
     * @param value Attributes for configuring HTTP Basic, OAuth Bearer token, or OAuth 2 authentication schemes for SCIM provisioning to an application.
     */
    @JvmName("gyrjpvnpujotwfyb")
    public suspend fun authentication(`value`: ZeroTrustAccessApplicationScimConfigAuthenticationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authentication = mapped
    }

    /**
     * @param argument Attributes for configuring HTTP Basic, OAuth Bearer token, or OAuth 2 authentication schemes for SCIM provisioning to an application.
     */
    @JvmName("ggyqyfmcouklqibn")
    public suspend fun authentication(argument: suspend ZeroTrustAccessApplicationScimConfigAuthenticationArgsBuilder.() -> Unit) {
        val toBeMapped = ZeroTrustAccessApplicationScimConfigAuthenticationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.authentication = mapped
    }

    /**
     * @param value If false, propagates DELETE requests to the target application for SCIM resources. If true, sets 'active' to false on the SCIM resource. Note: Some targets do not support DELETE operations.
     */
    @JvmName("cfjyryahhbbevuyq")
    public suspend fun deactivateOnDelete(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deactivateOnDelete = mapped
    }

    /**
     * @param value Whether SCIM provisioning is turned on for this application.
     */
    @JvmName("ehpseauclbmfttdr")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value The UID of the IdP to use as the source for SCIM resources to provision to this application.
     */
    @JvmName("ddxkfgwignnxmbps")
    public suspend fun idpUid(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.idpUid = mapped
    }

    /**
     * @param value A list of mappings to apply to SCIM resources before provisioning them in this application. These can transform or filter the resources to be provisioned.
     */
    @JvmName("jclasbhtvnbjggxn")
    public suspend fun mappings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mappings = mapped
    }

    /**
     * @param argument A list of mappings to apply to SCIM resources before provisioning them in this application. These can transform or filter the resources to be provisioned.
     */
    @JvmName("jjjxtcyisklgyjuw")
    public suspend fun mappings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ZeroTrustAccessApplicationScimConfigMappingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.mappings = mapped
    }

    /**
     * @param argument A list of mappings to apply to SCIM resources before provisioning them in this application. These can transform or filter the resources to be provisioned.
     */
    @JvmName("xbjcrjddfivdjhqt")
    public suspend fun mappings(vararg argument: suspend ZeroTrustAccessApplicationScimConfigMappingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ZeroTrustAccessApplicationScimConfigMappingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.mappings = mapped
    }

    /**
     * @param argument A list of mappings to apply to SCIM resources before provisioning them in this application. These can transform or filter the resources to be provisioned.
     */
    @JvmName("ohgdxwhkvqbkqkgx")
    public suspend fun mappings(argument: suspend ZeroTrustAccessApplicationScimConfigMappingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ZeroTrustAccessApplicationScimConfigMappingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.mappings = mapped
    }

    /**
     * @param values A list of mappings to apply to SCIM resources before provisioning them in this application. These can transform or filter the resources to be provisioned.
     */
    @JvmName("qpfjwsaukftuuljn")
    public suspend fun mappings(vararg values: ZeroTrustAccessApplicationScimConfigMappingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mappings = mapped
    }

    /**
     * @param value The base URI for the application's SCIM-compatible API.
     */
    @JvmName("xwmlyrsuvmopdpmi")
    public suspend fun remoteUri(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.remoteUri = mapped
    }

    internal fun build(): ZeroTrustAccessApplicationScimConfigArgs =
        ZeroTrustAccessApplicationScimConfigArgs(
            authentication = authentication,
            deactivateOnDelete = deactivateOnDelete,
            enabled = enabled,
            idpUid = idpUid ?: throw PulumiNullFieldException("idpUid"),
            mappings = mappings,
            remoteUri = remoteUri ?: throw PulumiNullFieldException("remoteUri"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy