com.pulumi.gcp.dataloss.kotlin.inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property dictionary Dictionary which defines the rule.
* Structure is documented below.
* @property excludeByHotword Drop if the hotword rule is contained in the proximate context.
* Structure is documented below.
* @property excludeInfoTypes Set of infoTypes for which findings would affect this rule.
* Structure is documented below.
* @property matchingType How the rule is applied. See the documentation for more information: https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#MatchingType
* Possible values are: `MATCHING_TYPE_FULL_MATCH`, `MATCHING_TYPE_PARTIAL_MATCH`, `MATCHING_TYPE_INVERSE_MATCH`.
* @property regex Regular expression which defines the rule.
* Structure is documented below.
*/
public data class PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleArgs(
public val dictionary: Output? =
null,
public val excludeByHotword: Output? =
null,
public val excludeInfoTypes: Output? =
null,
public val matchingType: Output,
public val regex: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleArgs =
com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleArgs.builder()
.dictionary(dictionary?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.excludeByHotword(excludeByHotword?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.excludeInfoTypes(excludeInfoTypes?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.matchingType(matchingType.applyValue({ args0 -> args0 }))
.regex(regex?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleArgs].
*/
@PulumiTagMarker
public class PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleArgsBuilder internal constructor() {
private var dictionary:
Output? =
null
private var excludeByHotword:
Output? =
null
private var excludeInfoTypes:
Output? =
null
private var matchingType: Output? = null
private var regex:
Output? = null
/**
* @param value Dictionary which defines the rule.
* Structure is documented below.
*/
@JvmName("ystrrlahnyuptvah")
public suspend fun dictionary(`value`: Output) {
this.dictionary = value
}
/**
* @param value Drop if the hotword rule is contained in the proximate context.
* Structure is documented below.
*/
@JvmName("uhjxixvefrqvwnrl")
public suspend fun excludeByHotword(`value`: Output) {
this.excludeByHotword = value
}
/**
* @param value Set of infoTypes for which findings would affect this rule.
* Structure is documented below.
*/
@JvmName("yentrbausfmnvwci")
public suspend fun excludeInfoTypes(`value`: Output) {
this.excludeInfoTypes = value
}
/**
* @param value How the rule is applied. See the documentation for more information: https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#MatchingType
* Possible values are: `MATCHING_TYPE_FULL_MATCH`, `MATCHING_TYPE_PARTIAL_MATCH`, `MATCHING_TYPE_INVERSE_MATCH`.
*/
@JvmName("jbqbkcceutuigaio")
public suspend fun matchingType(`value`: Output) {
this.matchingType = value
}
/**
* @param value Regular expression which defines the rule.
* Structure is documented below.
*/
@JvmName("niyqbmoonadabsqb")
public suspend fun regex(`value`: Output) {
this.regex = value
}
/**
* @param value Dictionary which defines the rule.
* Structure is documented below.
*/
@JvmName("kaxophoairdwarge")
public suspend fun dictionary(`value`: PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleDictionaryArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dictionary = mapped
}
/**
* @param argument Dictionary which defines the rule.
* Structure is documented below.
*/
@JvmName("rfwsrforrlgbdkud")
public suspend fun dictionary(argument: suspend PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleDictionaryArgsBuilder.() -> Unit) {
val toBeMapped =
PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleDictionaryArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.dictionary = mapped
}
/**
* @param value Drop if the hotword rule is contained in the proximate context.
* Structure is documented below.
*/
@JvmName("fufyocutllrhpojq")
public suspend fun excludeByHotword(`value`: PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.excludeByHotword = mapped
}
/**
* @param argument Drop if the hotword rule is contained in the proximate context.
* Structure is documented below.
*/
@JvmName("wuxibysfpxrdcqjp")
public suspend fun excludeByHotword(argument: suspend PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordArgsBuilder.() -> Unit) {
val toBeMapped =
PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeByHotwordArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.excludeByHotword = mapped
}
/**
* @param value Set of infoTypes for which findings would affect this rule.
* Structure is documented below.
*/
@JvmName("vsmyvnwsqdlperki")
public suspend fun excludeInfoTypes(`value`: PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.excludeInfoTypes = mapped
}
/**
* @param argument Set of infoTypes for which findings would affect this rule.
* Structure is documented below.
*/
@JvmName("puymfegyveccgysx")
public suspend fun excludeInfoTypes(argument: suspend PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesArgsBuilder.() -> Unit) {
val toBeMapped =
PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleExcludeInfoTypesArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.excludeInfoTypes = mapped
}
/**
* @param value How the rule is applied. See the documentation for more information: https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#MatchingType
* Possible values are: `MATCHING_TYPE_FULL_MATCH`, `MATCHING_TYPE_PARTIAL_MATCH`, `MATCHING_TYPE_INVERSE_MATCH`.
*/
@JvmName("dmnqjjqoxndsukji")
public suspend fun matchingType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.matchingType = mapped
}
/**
* @param value Regular expression which defines the rule.
* Structure is documented below.
*/
@JvmName("egsmaysewekbtvly")
public suspend fun regex(`value`: PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleRegexArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.regex = mapped
}
/**
* @param argument Regular expression which defines the rule.
* Structure is documented below.
*/
@JvmName("efirdknqpotpippl")
public suspend fun regex(argument: suspend PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleRegexArgsBuilder.() -> Unit) {
val toBeMapped =
PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleRegexArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.regex = mapped
}
internal fun build(): PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleArgs =
PreventionJobTriggerInspectJobInspectConfigRuleSetRuleExclusionRuleArgs(
dictionary = dictionary,
excludeByHotword = excludeByHotword,
excludeInfoTypes = excludeInfoTypes,
matchingType = matchingType ?: throw PulumiNullFieldException("matchingType"),
regex = regex,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy