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

com.pulumi.cloudflare.kotlin.inputs.AccessApplicationScimConfigMappingArgs.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: 5.40.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.AccessApplicationScimConfigMappingArgs.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.jvm.JvmName

/**
 *
 * @property enabled Whether or not this mapping is enabled.
 * @property filter A [SCIM filter expression](https://datatracker.ietf.org/doc/html/rfc7644#section-3.4.2.2) that matches resources that should be provisioned to this application.
 * @property operations Whether or not this mapping applies to creates, updates, or deletes.
 * @property schema Which SCIM resource type this mapping applies to.
 * @property transformJsonata A [JSONata](https://jsonata.org/) expression that transforms the resource before provisioning it in the application.
 */
public data class AccessApplicationScimConfigMappingArgs(
    public val enabled: Output? = null,
    public val filter: Output? = null,
    public val operations: Output? = null,
    public val schema: Output,
    public val transformJsonata: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.AccessApplicationScimConfigMappingArgs =
        com.pulumi.cloudflare.inputs.AccessApplicationScimConfigMappingArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .filter(filter?.applyValue({ args0 -> args0 }))
            .operations(operations?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .schema(schema.applyValue({ args0 -> args0 }))
            .transformJsonata(transformJsonata?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AccessApplicationScimConfigMappingArgs].
 */
@PulumiTagMarker
public class AccessApplicationScimConfigMappingArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var filter: Output? = null

    private var operations: Output? = null

    private var schema: Output? = null

    private var transformJsonata: Output? = null

    /**
     * @param value Whether or not this mapping is enabled.
     */
    @JvmName("ppyowntyjlfjpmrq")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value A [SCIM filter expression](https://datatracker.ietf.org/doc/html/rfc7644#section-3.4.2.2) that matches resources that should be provisioned to this application.
     */
    @JvmName("slisscfjnbpbyptk")
    public suspend fun filter(`value`: Output) {
        this.filter = value
    }

    /**
     * @param value Whether or not this mapping applies to creates, updates, or deletes.
     */
    @JvmName("vbtekadtqwunyafo")
    public suspend fun operations(`value`: Output) {
        this.operations = value
    }

    /**
     * @param value Which SCIM resource type this mapping applies to.
     */
    @JvmName("wkjbqagvibjucjpw")
    public suspend fun schema(`value`: Output) {
        this.schema = value
    }

    /**
     * @param value A [JSONata](https://jsonata.org/) expression that transforms the resource before provisioning it in the application.
     */
    @JvmName("btbubdjupgqwphan")
    public suspend fun transformJsonata(`value`: Output) {
        this.transformJsonata = value
    }

    /**
     * @param value Whether or not this mapping is enabled.
     */
    @JvmName("faxhoglxhqdfkare")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value A [SCIM filter expression](https://datatracker.ietf.org/doc/html/rfc7644#section-3.4.2.2) that matches resources that should be provisioned to this application.
     */
    @JvmName("hnpbaiqwbjidocwj")
    public suspend fun filter(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filter = mapped
    }

    /**
     * @param value Whether or not this mapping applies to creates, updates, or deletes.
     */
    @JvmName("hgpbbyktpruqagbn")
    public suspend fun operations(`value`: AccessApplicationScimConfigMappingOperationsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.operations = mapped
    }

    /**
     * @param argument Whether or not this mapping applies to creates, updates, or deletes.
     */
    @JvmName("mqqjkfjuqabvsmgh")
    public suspend fun operations(argument: suspend AccessApplicationScimConfigMappingOperationsArgsBuilder.() -> Unit) {
        val toBeMapped = AccessApplicationScimConfigMappingOperationsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.operations = mapped
    }

    /**
     * @param value Which SCIM resource type this mapping applies to.
     */
    @JvmName("gvlqnbbqqjsbojmw")
    public suspend fun schema(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.schema = mapped
    }

    /**
     * @param value A [JSONata](https://jsonata.org/) expression that transforms the resource before provisioning it in the application.
     */
    @JvmName("iguoswxfofwbmidh")
    public suspend fun transformJsonata(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transformJsonata = mapped
    }

    internal fun build(): AccessApplicationScimConfigMappingArgs =
        AccessApplicationScimConfigMappingArgs(
            enabled = enabled,
            filter = filter,
            operations = operations,
            schema = schema ?: throw PulumiNullFieldException("schema"),
            transformJsonata = transformJsonata,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy