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

com.pulumi.vault.transform.kotlin.TransformationArgs.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: 6.4.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.vault.transform.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.vault.transform.TransformationArgs.builder
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property allowedRoles The set of roles allowed to perform this transformation.
 * @property deletionAllowed If true, this transform can be deleted.
 * Otherwise, deletion is blocked while this value remains false. Default: `false`
 * *Only supported on vault-1.12+*
 * @property maskingCharacter The character used to replace data when in masking mode
 * @property name The name of the transformation.
 * @property namespace The namespace to provision the resource in.
 * The value should not contain leading or trailing forward slashes.
 * The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
 * *Available only for Vault Enterprise*.
 * @property path Path to where the back-end is mounted within Vault.
 * @property template The name of the template to use.
 * @property templates Templates configured for transformation.
 * @property tweakSource The source of where the tweak value comes from. Only valid when in FPE mode.
 * @property type The type of transformation to perform.
 */
public data class TransformationArgs(
    public val allowedRoles: Output>? = null,
    public val deletionAllowed: Output? = null,
    public val maskingCharacter: Output? = null,
    public val name: Output? = null,
    public val namespace: Output? = null,
    public val path: Output? = null,
    public val template: Output? = null,
    public val templates: Output>? = null,
    public val tweakSource: Output? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.vault.transform.TransformationArgs =
        com.pulumi.vault.transform.TransformationArgs.builder()
            .allowedRoles(allowedRoles?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .deletionAllowed(deletionAllowed?.applyValue({ args0 -> args0 }))
            .maskingCharacter(maskingCharacter?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .namespace(namespace?.applyValue({ args0 -> args0 }))
            .path(path?.applyValue({ args0 -> args0 }))
            .template(template?.applyValue({ args0 -> args0 }))
            .templates(templates?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tweakSource(tweakSource?.applyValue({ args0 -> args0 }))
            .type(type?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TransformationArgs].
 */
@PulumiTagMarker
public class TransformationArgsBuilder internal constructor() {
    private var allowedRoles: Output>? = null

    private var deletionAllowed: Output? = null

    private var maskingCharacter: Output? = null

    private var name: Output? = null

    private var namespace: Output? = null

    private var path: Output? = null

    private var template: Output? = null

    private var templates: Output>? = null

    private var tweakSource: Output? = null

    private var type: Output? = null

    /**
     * @param value The set of roles allowed to perform this transformation.
     */
    @JvmName("txhungugawwmdkcx")
    public suspend fun allowedRoles(`value`: Output>) {
        this.allowedRoles = value
    }

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

    /**
     * @param values The set of roles allowed to perform this transformation.
     */
    @JvmName("ssdslmhoyqnihsdw")
    public suspend fun allowedRoles(values: List>) {
        this.allowedRoles = Output.all(values)
    }

    /**
     * @param value If true, this transform can be deleted.
     * Otherwise, deletion is blocked while this value remains false. Default: `false`
     * *Only supported on vault-1.12+*
     */
    @JvmName("typujuugkxitpusp")
    public suspend fun deletionAllowed(`value`: Output) {
        this.deletionAllowed = value
    }

    /**
     * @param value The character used to replace data when in masking mode
     */
    @JvmName("nrgsybkslidlcoov")
    public suspend fun maskingCharacter(`value`: Output) {
        this.maskingCharacter = value
    }

    /**
     * @param value The name of the transformation.
     */
    @JvmName("tdvpqsbyrbhprjwb")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The namespace to provision the resource in.
     * The value should not contain leading or trailing forward slashes.
     * The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
     * *Available only for Vault Enterprise*.
     */
    @JvmName("whswdmnqunpwhhue")
    public suspend fun namespace(`value`: Output) {
        this.namespace = value
    }

    /**
     * @param value Path to where the back-end is mounted within Vault.
     */
    @JvmName("ilpbjkpftliaurqb")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value The name of the template to use.
     */
    @JvmName("vsjbndotjlqdgsxk")
    public suspend fun template(`value`: Output) {
        this.template = value
    }

    /**
     * @param value Templates configured for transformation.
     */
    @JvmName("usdashxjaavqldch")
    public suspend fun templates(`value`: Output>) {
        this.templates = value
    }

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

    /**
     * @param values Templates configured for transformation.
     */
    @JvmName("jqxgdrybwwbqtcuf")
    public suspend fun templates(values: List>) {
        this.templates = Output.all(values)
    }

    /**
     * @param value The source of where the tweak value comes from. Only valid when in FPE mode.
     */
    @JvmName("ghswxdontqhctqps")
    public suspend fun tweakSource(`value`: Output) {
        this.tweakSource = value
    }

    /**
     * @param value The type of transformation to perform.
     */
    @JvmName("tjjpjeigjhxhhhpw")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The set of roles allowed to perform this transformation.
     */
    @JvmName("kubcuctumfrsutdj")
    public suspend fun allowedRoles(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedRoles = mapped
    }

    /**
     * @param values The set of roles allowed to perform this transformation.
     */
    @JvmName("cbffxwanwadxorbg")
    public suspend fun allowedRoles(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedRoles = mapped
    }

    /**
     * @param value If true, this transform can be deleted.
     * Otherwise, deletion is blocked while this value remains false. Default: `false`
     * *Only supported on vault-1.12+*
     */
    @JvmName("tdhlyfvmxofxtwuo")
    public suspend fun deletionAllowed(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deletionAllowed = mapped
    }

    /**
     * @param value The character used to replace data when in masking mode
     */
    @JvmName("gftxuhgfgfykkadw")
    public suspend fun maskingCharacter(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maskingCharacter = mapped
    }

    /**
     * @param value The name of the transformation.
     */
    @JvmName("inqawlunwjpvvhty")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The namespace to provision the resource in.
     * The value should not contain leading or trailing forward slashes.
     * The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
     * *Available only for Vault Enterprise*.
     */
    @JvmName("eqqjeueugfujocfu")
    public suspend fun namespace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.namespace = mapped
    }

    /**
     * @param value Path to where the back-end is mounted within Vault.
     */
    @JvmName("aqcubjyoarobbaxl")
    public suspend fun path(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.path = mapped
    }

    /**
     * @param value The name of the template to use.
     */
    @JvmName("gjrawtvokcqjyxdu")
    public suspend fun template(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.template = mapped
    }

    /**
     * @param value Templates configured for transformation.
     */
    @JvmName("qxrhcbcsyymgfdml")
    public suspend fun templates(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.templates = mapped
    }

    /**
     * @param values Templates configured for transformation.
     */
    @JvmName("plqsnkvjwfinbpbf")
    public suspend fun templates(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.templates = mapped
    }

    /**
     * @param value The source of where the tweak value comes from. Only valid when in FPE mode.
     */
    @JvmName("xpnpmykfjfreqbth")
    public suspend fun tweakSource(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tweakSource = mapped
    }

    /**
     * @param value The type of transformation to perform.
     */
    @JvmName("csqxydmgqrsyqxhc")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): TransformationArgs = TransformationArgs(
        allowedRoles = allowedRoles,
        deletionAllowed = deletionAllowed,
        maskingCharacter = maskingCharacter,
        name = name,
        namespace = namespace,
        path = path,
        template = template,
        templates = templates,
        tweakSource = tweakSource,
        type = type,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy