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

com.pulumi.cloudflare.kotlin.inputs.AccessApplicationScimConfigArgs.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.AccessApplicationScimConfigArgs.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 AccessApplicationScimConfigArgs(
    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.AccessApplicationScimConfigArgs =
        com.pulumi.cloudflare.inputs.AccessApplicationScimConfigArgs.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 [AccessApplicationScimConfigArgs].
 */
@PulumiTagMarker
public class AccessApplicationScimConfigArgsBuilder 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("vaoudorjsavjlyhm")
    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("auogorquehmdalpu")
    public suspend fun deactivateOnDelete(`value`: Output) {
        this.deactivateOnDelete = value
    }

    /**
     * @param value Whether SCIM provisioning is turned on for this application.
     */
    @JvmName("ivgiybrcmslollax")
    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("pkmeycmpfxwoubva")
    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("hxitdxmjcfjdocxi")
    public suspend fun mappings(`value`: Output>) {
        this.mappings = value
    }

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

    /**
     * @param value The base URI for the application's SCIM-compatible API.
     */
    @JvmName("mynhppfkybiovvlh")
    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("sqnfcjnrgadhkiji")
    public suspend fun authentication(`value`: AccessApplicationScimConfigAuthenticationArgs?) {
        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("oellxcjfvxknwsiy")
    public suspend fun authentication(argument: suspend AccessApplicationScimConfigAuthenticationArgsBuilder.() -> Unit) {
        val toBeMapped = AccessApplicationScimConfigAuthenticationArgsBuilder().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("ycvlavotaungxvcx")
    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("wppxgconvixgewxw")
    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("btdkiyltkovxeent")
    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("rgvooofpcehskxku")
    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("fouubrugkgidplja")
    public suspend fun mappings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AccessApplicationScimConfigMappingArgsBuilder().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("gmycwumwnmckhnhb")
    public suspend fun mappings(vararg argument: suspend AccessApplicationScimConfigMappingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AccessApplicationScimConfigMappingArgsBuilder().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("hxqgertawpdlvvyd")
    public suspend fun mappings(argument: suspend AccessApplicationScimConfigMappingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AccessApplicationScimConfigMappingArgsBuilder().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("calhxjtnfjnfuydu")
    public suspend fun mappings(vararg values: AccessApplicationScimConfigMappingArgs) {
        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("xsevfwxwhxrbqtmm")
    public suspend fun remoteUri(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.remoteUri = mapped
    }

    internal fun build(): AccessApplicationScimConfigArgs = AccessApplicationScimConfigArgs(
        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