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

com.pulumi.aws.bedrock.kotlin.inputs.GuardrailSensitiveInformationPolicyConfigArgs.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.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.bedrock.kotlin.inputs

import com.pulumi.aws.bedrock.inputs.GuardrailSensitiveInformationPolicyConfigArgs.builder
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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property piiEntitiesConfigs List of entities. See PII Entities Config for more information.
 * @property regexesConfigs List of regex. See Regexes Config for more information.
 */
public data class GuardrailSensitiveInformationPolicyConfigArgs(
    public val piiEntitiesConfigs: Output>? = null,
    public val regexesConfigs: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.bedrock.inputs.GuardrailSensitiveInformationPolicyConfigArgs = com.pulumi.aws.bedrock.inputs.GuardrailSensitiveInformationPolicyConfigArgs.builder()
        .piiEntitiesConfigs(
            piiEntitiesConfigs?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                })
            }),
        )
        .regexesConfigs(
            regexesConfigs?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        ).build()
}

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

    private var regexesConfigs:
        Output>? = null

    /**
     * @param value List of entities. See PII Entities Config for more information.
     */
    @JvmName("eccmxiysujbqvwgy")
    public suspend fun piiEntitiesConfigs(`value`: Output>) {
        this.piiEntitiesConfigs = value
    }

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

    /**
     * @param values List of entities. See PII Entities Config for more information.
     */
    @JvmName("cpehpfsfxbtycvyv")
    public suspend fun piiEntitiesConfigs(values: List>) {
        this.piiEntitiesConfigs = Output.all(values)
    }

    /**
     * @param value List of regex. See Regexes Config for more information.
     */
    @JvmName("ypmmpipnqrwfdvkr")
    public suspend fun regexesConfigs(`value`: Output>) {
        this.regexesConfigs = value
    }

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

    /**
     * @param values List of regex. See Regexes Config for more information.
     */
    @JvmName("htmkqannmvccvsaa")
    public suspend fun regexesConfigs(values: List>) {
        this.regexesConfigs = Output.all(values)
    }

    /**
     * @param value List of entities. See PII Entities Config for more information.
     */
    @JvmName("blqacwupnbwvhhtw")
    public suspend fun piiEntitiesConfigs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.piiEntitiesConfigs = mapped
    }

    /**
     * @param argument List of entities. See PII Entities Config for more information.
     */
    @JvmName("oxpocodhknwrhnqx")
    public suspend fun piiEntitiesConfigs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.piiEntitiesConfigs = mapped
    }

    /**
     * @param argument List of entities. See PII Entities Config for more information.
     */
    @JvmName("cyuprdmoeibbpfow")
    public suspend fun piiEntitiesConfigs(vararg argument: suspend GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.piiEntitiesConfigs = mapped
    }

    /**
     * @param argument List of entities. See PII Entities Config for more information.
     */
    @JvmName("ysmsyuclpxsqyrce")
    public suspend fun piiEntitiesConfigs(argument: suspend GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfigArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.piiEntitiesConfigs = mapped
    }

    /**
     * @param values List of entities. See PII Entities Config for more information.
     */
    @JvmName("vquifsnfbwyjdkjr")
    public suspend fun piiEntitiesConfigs(vararg values: GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.piiEntitiesConfigs = mapped
    }

    /**
     * @param value List of regex. See Regexes Config for more information.
     */
    @JvmName("nsscxibknrkgwhiw")
    public suspend fun regexesConfigs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.regexesConfigs = mapped
    }

    /**
     * @param argument List of regex. See Regexes Config for more information.
     */
    @JvmName("hbatxppvqjslrpjw")
    public suspend fun regexesConfigs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GuardrailSensitiveInformationPolicyConfigRegexesConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.regexesConfigs = mapped
    }

    /**
     * @param argument List of regex. See Regexes Config for more information.
     */
    @JvmName("ghblhymsaaoxpokn")
    public suspend fun regexesConfigs(vararg argument: suspend GuardrailSensitiveInformationPolicyConfigRegexesConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GuardrailSensitiveInformationPolicyConfigRegexesConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.regexesConfigs = mapped
    }

    /**
     * @param argument List of regex. See Regexes Config for more information.
     */
    @JvmName("rgxvqjvfxnwxxcxw")
    public suspend fun regexesConfigs(argument: suspend GuardrailSensitiveInformationPolicyConfigRegexesConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                GuardrailSensitiveInformationPolicyConfigRegexesConfigArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.regexesConfigs = mapped
    }

    /**
     * @param values List of regex. See Regexes Config for more information.
     */
    @JvmName("rjegwdjtpbwifwan")
    public suspend fun regexesConfigs(vararg values: GuardrailSensitiveInformationPolicyConfigRegexesConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.regexesConfigs = mapped
    }

    internal fun build(): GuardrailSensitiveInformationPolicyConfigArgs =
        GuardrailSensitiveInformationPolicyConfigArgs(
            piiEntitiesConfigs = piiEntitiesConfigs,
            regexesConfigs = regexesConfigs,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy