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

com.pulumi.gcp.dataloss.kotlin.inputs.PreventionJobTriggerInspectJobInspectConfigArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.dataloss.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobInspectConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
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 customInfoTypes Custom info types to be used. See https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
 * Structure is documented below.
 * @property excludeInfoTypes When true, excludes type information of the findings.
 * @property includeQuote When true, a contextual quote from the data that triggered a finding is included in the response.
 * @property infoTypes Restricts what infoTypes to look for. The values must correspond to InfoType values returned by infoTypes.list
 * or listed at https://cloud.google.com/dlp/docs/infotypes-reference.
 * When no InfoTypes or CustomInfoTypes are specified in a request, the system may automatically choose what detectors to run.
 * By default this may be all types, but may change over time as detectors are updated.
 * Structure is documented below.
 * @property limits Configuration to control the number of findings returned.
 * Structure is documented below.
 * @property minLikelihood Only returns findings equal or above this threshold. See https://cloud.google.com/dlp/docs/likelihood for more info
 * Default value is `POSSIBLE`.
 * Possible values are: `VERY_UNLIKELY`, `UNLIKELY`, `POSSIBLE`, `LIKELY`, `VERY_LIKELY`.
 * @property ruleSets Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the set are executed in the end,
 * other rules are executed in the order they are specified for each info type.
 * Structure is documented below.
 */
public data class PreventionJobTriggerInspectJobInspectConfigArgs(
    public val customInfoTypes: Output>? = null,
    public val excludeInfoTypes: Output? = null,
    public val includeQuote: Output? = null,
    public val infoTypes: Output>? =
        null,
    public val limits: Output? = null,
    public val minLikelihood: Output? = null,
    public val ruleSets: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobInspectConfigArgs =
        com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobInspectConfigArgs.builder()
            .customInfoTypes(
                customInfoTypes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .excludeInfoTypes(excludeInfoTypes?.applyValue({ args0 -> args0 }))
            .includeQuote(includeQuote?.applyValue({ args0 -> args0 }))
            .infoTypes(
                infoTypes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .limits(limits?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .minLikelihood(minLikelihood?.applyValue({ args0 -> args0 }))
            .ruleSets(
                ruleSets?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var excludeInfoTypes: Output? = null

    private var includeQuote: Output? = null

    private var infoTypes: Output>? =
        null

    private var limits: Output? = null

    private var minLikelihood: Output? = null

    private var ruleSets: Output>? = null

    /**
     * @param value Custom info types to be used. See https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
     * Structure is documented below.
     */
    @JvmName("hacrnffiidfqjgal")
    public suspend fun customInfoTypes(`value`: Output>) {
        this.customInfoTypes = value
    }

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

    /**
     * @param values Custom info types to be used. See https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
     * Structure is documented below.
     */
    @JvmName("mwhxxytexdjlkiif")
    public suspend fun customInfoTypes(values: List>) {
        this.customInfoTypes = Output.all(values)
    }

    /**
     * @param value When true, excludes type information of the findings.
     */
    @JvmName("fufwyptoutcvljun")
    public suspend fun excludeInfoTypes(`value`: Output) {
        this.excludeInfoTypes = value
    }

    /**
     * @param value When true, a contextual quote from the data that triggered a finding is included in the response.
     */
    @JvmName("khwsslsijvathgbl")
    public suspend fun includeQuote(`value`: Output) {
        this.includeQuote = value
    }

    /**
     * @param value Restricts what infoTypes to look for. The values must correspond to InfoType values returned by infoTypes.list
     * or listed at https://cloud.google.com/dlp/docs/infotypes-reference.
     * When no InfoTypes or CustomInfoTypes are specified in a request, the system may automatically choose what detectors to run.
     * By default this may be all types, but may change over time as detectors are updated.
     * Structure is documented below.
     */
    @JvmName("gliclluojteuweqa")
    public suspend fun infoTypes(`value`: Output>) {
        this.infoTypes = value
    }

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

    /**
     * @param values Restricts what infoTypes to look for. The values must correspond to InfoType values returned by infoTypes.list
     * or listed at https://cloud.google.com/dlp/docs/infotypes-reference.
     * When no InfoTypes or CustomInfoTypes are specified in a request, the system may automatically choose what detectors to run.
     * By default this may be all types, but may change over time as detectors are updated.
     * Structure is documented below.
     */
    @JvmName("ypudgjlnqjwkyxsf")
    public suspend fun infoTypes(values: List>) {
        this.infoTypes = Output.all(values)
    }

    /**
     * @param value Configuration to control the number of findings returned.
     * Structure is documented below.
     */
    @JvmName("tttrnsenjmjqmvfc")
    public suspend fun limits(`value`: Output) {
        this.limits = value
    }

    /**
     * @param value Only returns findings equal or above this threshold. See https://cloud.google.com/dlp/docs/likelihood for more info
     * Default value is `POSSIBLE`.
     * Possible values are: `VERY_UNLIKELY`, `UNLIKELY`, `POSSIBLE`, `LIKELY`, `VERY_LIKELY`.
     */
    @JvmName("tuydxmpebcexqjtk")
    public suspend fun minLikelihood(`value`: Output) {
        this.minLikelihood = value
    }

    /**
     * @param value Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the set are executed in the end,
     * other rules are executed in the order they are specified for each info type.
     * Structure is documented below.
     */
    @JvmName("alkyeuehvcblumhx")
    public suspend fun ruleSets(`value`: Output>) {
        this.ruleSets = value
    }

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

    /**
     * @param values Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the set are executed in the end,
     * other rules are executed in the order they are specified for each info type.
     * Structure is documented below.
     */
    @JvmName("tinomvdmnnryeoao")
    public suspend fun ruleSets(values: List>) {
        this.ruleSets = Output.all(values)
    }

    /**
     * @param value Custom info types to be used. See https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
     * Structure is documented below.
     */
    @JvmName("hbjfdpvwotljgqpn")
    public suspend fun customInfoTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customInfoTypes = mapped
    }

    /**
     * @param argument Custom info types to be used. See https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
     * Structure is documented below.
     */
    @JvmName("ejyikaubtvkxhilj")
    public suspend fun customInfoTypes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.customInfoTypes = mapped
    }

    /**
     * @param argument Custom info types to be used. See https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
     * Structure is documented below.
     */
    @JvmName("jgfbrndycnwclsqc")
    public suspend fun customInfoTypes(vararg argument: suspend PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.customInfoTypes = mapped
    }

    /**
     * @param argument Custom info types to be used. See https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
     * Structure is documented below.
     */
    @JvmName("iewopucoyvoiedfx")
    public suspend fun customInfoTypes(argument: suspend PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.customInfoTypes = mapped
    }

    /**
     * @param values Custom info types to be used. See https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
     * Structure is documented below.
     */
    @JvmName("fpmrtjqdhcidsktq")
    public suspend fun customInfoTypes(vararg values: PreventionJobTriggerInspectJobInspectConfigCustomInfoTypeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customInfoTypes = mapped
    }

    /**
     * @param value When true, excludes type information of the findings.
     */
    @JvmName("rblyuxuclxciquul")
    public suspend fun excludeInfoTypes(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.excludeInfoTypes = mapped
    }

    /**
     * @param value When true, a contextual quote from the data that triggered a finding is included in the response.
     */
    @JvmName("exwseemfheiuyuee")
    public suspend fun includeQuote(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includeQuote = mapped
    }

    /**
     * @param value Restricts what infoTypes to look for. The values must correspond to InfoType values returned by infoTypes.list
     * or listed at https://cloud.google.com/dlp/docs/infotypes-reference.
     * When no InfoTypes or CustomInfoTypes are specified in a request, the system may automatically choose what detectors to run.
     * By default this may be all types, but may change over time as detectors are updated.
     * Structure is documented below.
     */
    @JvmName("eeswjugywccpiygv")
    public suspend fun infoTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.infoTypes = mapped
    }

    /**
     * @param argument Restricts what infoTypes to look for. The values must correspond to InfoType values returned by infoTypes.list
     * or listed at https://cloud.google.com/dlp/docs/infotypes-reference.
     * When no InfoTypes or CustomInfoTypes are specified in a request, the system may automatically choose what detectors to run.
     * By default this may be all types, but may change over time as detectors are updated.
     * Structure is documented below.
     */
    @JvmName("ojgxsyypuovblgbu")
    public suspend fun infoTypes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PreventionJobTriggerInspectJobInspectConfigInfoTypeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.infoTypes = mapped
    }

    /**
     * @param argument Restricts what infoTypes to look for. The values must correspond to InfoType values returned by infoTypes.list
     * or listed at https://cloud.google.com/dlp/docs/infotypes-reference.
     * When no InfoTypes or CustomInfoTypes are specified in a request, the system may automatically choose what detectors to run.
     * By default this may be all types, but may change over time as detectors are updated.
     * Structure is documented below.
     */
    @JvmName("akpcpsgywxbevfiw")
    public suspend fun infoTypes(vararg argument: suspend PreventionJobTriggerInspectJobInspectConfigInfoTypeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PreventionJobTriggerInspectJobInspectConfigInfoTypeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.infoTypes = mapped
    }

    /**
     * @param argument Restricts what infoTypes to look for. The values must correspond to InfoType values returned by infoTypes.list
     * or listed at https://cloud.google.com/dlp/docs/infotypes-reference.
     * When no InfoTypes or CustomInfoTypes are specified in a request, the system may automatically choose what detectors to run.
     * By default this may be all types, but may change over time as detectors are updated.
     * Structure is documented below.
     */
    @JvmName("blabqgpevwoilhpa")
    public suspend fun infoTypes(argument: suspend PreventionJobTriggerInspectJobInspectConfigInfoTypeArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                PreventionJobTriggerInspectJobInspectConfigInfoTypeArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.infoTypes = mapped
    }

    /**
     * @param values Restricts what infoTypes to look for. The values must correspond to InfoType values returned by infoTypes.list
     * or listed at https://cloud.google.com/dlp/docs/infotypes-reference.
     * When no InfoTypes or CustomInfoTypes are specified in a request, the system may automatically choose what detectors to run.
     * By default this may be all types, but may change over time as detectors are updated.
     * Structure is documented below.
     */
    @JvmName("guksvyebibwpxcqd")
    public suspend fun infoTypes(vararg values: PreventionJobTriggerInspectJobInspectConfigInfoTypeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.infoTypes = mapped
    }

    /**
     * @param value Configuration to control the number of findings returned.
     * Structure is documented below.
     */
    @JvmName("kexqeskgpjxdqffn")
    public suspend fun limits(`value`: PreventionJobTriggerInspectJobInspectConfigLimitsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.limits = mapped
    }

    /**
     * @param argument Configuration to control the number of findings returned.
     * Structure is documented below.
     */
    @JvmName("skynbbckdqemkquy")
    public suspend fun limits(argument: suspend PreventionJobTriggerInspectJobInspectConfigLimitsArgsBuilder.() -> Unit) {
        val toBeMapped = PreventionJobTriggerInspectJobInspectConfigLimitsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.limits = mapped
    }

    /**
     * @param value Only returns findings equal or above this threshold. See https://cloud.google.com/dlp/docs/likelihood for more info
     * Default value is `POSSIBLE`.
     * Possible values are: `VERY_UNLIKELY`, `UNLIKELY`, `POSSIBLE`, `LIKELY`, `VERY_LIKELY`.
     */
    @JvmName("orogxymxfeqrunge")
    public suspend fun minLikelihood(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minLikelihood = mapped
    }

    /**
     * @param value Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the set are executed in the end,
     * other rules are executed in the order they are specified for each info type.
     * Structure is documented below.
     */
    @JvmName("gwhtskpunawuxlxa")
    public suspend fun ruleSets(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ruleSets = mapped
    }

    /**
     * @param argument Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the set are executed in the end,
     * other rules are executed in the order they are specified for each info type.
     * Structure is documented below.
     */
    @JvmName("oimooexeexlvxnay")
    public suspend fun ruleSets(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PreventionJobTriggerInspectJobInspectConfigRuleSetArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ruleSets = mapped
    }

    /**
     * @param argument Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the set are executed in the end,
     * other rules are executed in the order they are specified for each info type.
     * Structure is documented below.
     */
    @JvmName("xwdmfihkxmpiccuj")
    public suspend fun ruleSets(vararg argument: suspend PreventionJobTriggerInspectJobInspectConfigRuleSetArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PreventionJobTriggerInspectJobInspectConfigRuleSetArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ruleSets = mapped
    }

    /**
     * @param argument Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the set are executed in the end,
     * other rules are executed in the order they are specified for each info type.
     * Structure is documented below.
     */
    @JvmName("sqcumdcarelcouly")
    public suspend fun ruleSets(argument: suspend PreventionJobTriggerInspectJobInspectConfigRuleSetArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                PreventionJobTriggerInspectJobInspectConfigRuleSetArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.ruleSets = mapped
    }

    /**
     * @param values Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the set are executed in the end,
     * other rules are executed in the order they are specified for each info type.
     * Structure is documented below.
     */
    @JvmName("ixeitxuchsqycuqx")
    public suspend fun ruleSets(vararg values: PreventionJobTriggerInspectJobInspectConfigRuleSetArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ruleSets = mapped
    }

    internal fun build(): PreventionJobTriggerInspectJobInspectConfigArgs =
        PreventionJobTriggerInspectJobInspectConfigArgs(
            customInfoTypes = customInfoTypes,
            excludeInfoTypes = excludeInfoTypes,
            includeQuote = includeQuote,
            infoTypes = infoTypes,
            limits = limits,
            minLikelihood = minLikelihood,
            ruleSets = ruleSets,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy