com.pulumi.gcp.dataloss.kotlin.outputs.PreventionInspectTemplateInspectConfig.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.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property contentOptions List of options defining data content to scan. If empty, text, images, and other content will be included.
* Each value may be one of: `CONTENT_TEXT`, `CONTENT_IMAGE`.
* @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 PreventionInspectTemplateInspectConfig(
public val contentOptions: List? = null,
public val customInfoTypes: List? = null,
public val excludeInfoTypes: Boolean? = null,
public val includeQuote: Boolean? = null,
public val infoTypes: List? = null,
public val limits: PreventionInspectTemplateInspectConfigLimits? = null,
public val minLikelihood: String? = null,
public val ruleSets: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.dataloss.outputs.PreventionInspectTemplateInspectConfig): PreventionInspectTemplateInspectConfig = PreventionInspectTemplateInspectConfig(
contentOptions = javaType.contentOptions().map({ args0 -> args0 }),
customInfoTypes = javaType.customInfoTypes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.dataloss.kotlin.outputs.PreventionInspectTemplateInspectConfigCustomInfoType.Companion.toKotlin(args0)
})
}),
excludeInfoTypes = javaType.excludeInfoTypes().map({ args0 -> args0 }).orElse(null),
includeQuote = javaType.includeQuote().map({ args0 -> args0 }).orElse(null),
infoTypes = javaType.infoTypes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.dataloss.kotlin.outputs.PreventionInspectTemplateInspectConfigInfoType.Companion.toKotlin(args0)
})
}),
limits = javaType.limits().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.dataloss.kotlin.outputs.PreventionInspectTemplateInspectConfigLimits.Companion.toKotlin(args0)
})
}).orElse(null),
minLikelihood = javaType.minLikelihood().map({ args0 -> args0 }).orElse(null),
ruleSets = javaType.ruleSets().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.dataloss.kotlin.outputs.PreventionInspectTemplateInspectConfigRuleSet.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy