com.pulumi.gcp.dataloss.kotlin.inputs.PreventionDiscoveryConfigTargetCloudSqlTargetArgs.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.PreventionDiscoveryConfigTargetCloudSqlTargetArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property conditions In addition to matching the filter, these conditions must be true before a profile is generated.
* Structure is documented below.
* @property disabled Disable profiling for database resources that match this filter.
* @property filter Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table.
* Structure is documented below.
* @property generationCadence How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity.
* Structure is documented below.
*/
public data class PreventionDiscoveryConfigTargetCloudSqlTargetArgs(
public val conditions: Output? =
null,
public val disabled: Output? = null,
public val filter: Output,
public val generationCadence: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionDiscoveryConfigTargetCloudSqlTargetArgs =
com.pulumi.gcp.dataloss.inputs.PreventionDiscoveryConfigTargetCloudSqlTargetArgs.builder()
.conditions(conditions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.disabled(disabled?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.filter(filter.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.generationCadence(
generationCadence?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [PreventionDiscoveryConfigTargetCloudSqlTargetArgs].
*/
@PulumiTagMarker
public class PreventionDiscoveryConfigTargetCloudSqlTargetArgsBuilder internal constructor() {
private var conditions: Output? =
null
private var disabled: Output? = null
private var filter: Output? = null
private var generationCadence:
Output? = null
/**
* @param value In addition to matching the filter, these conditions must be true before a profile is generated.
* Structure is documented below.
*/
@JvmName("gcqgnjwbivlnakqt")
public suspend fun conditions(`value`: Output) {
this.conditions = value
}
/**
* @param value Disable profiling for database resources that match this filter.
*/
@JvmName("oievjtroywdytyej")
public suspend fun disabled(`value`: Output) {
this.disabled = value
}
/**
* @param value Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table.
* Structure is documented below.
*/
@JvmName("xinaneqgbwpjtlww")
public suspend fun filter(`value`: Output) {
this.filter = value
}
/**
* @param value How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity.
* Structure is documented below.
*/
@JvmName("wpfijciwuhijkcid")
public suspend fun generationCadence(`value`: Output) {
this.generationCadence = value
}
/**
* @param value In addition to matching the filter, these conditions must be true before a profile is generated.
* Structure is documented below.
*/
@JvmName("qykclqbsdqvttdff")
public suspend fun conditions(`value`: PreventionDiscoveryConfigTargetCloudSqlTargetConditionsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.conditions = mapped
}
/**
* @param argument In addition to matching the filter, these conditions must be true before a profile is generated.
* Structure is documented below.
*/
@JvmName("ypakwudicxlvaabp")
public suspend fun conditions(argument: suspend PreventionDiscoveryConfigTargetCloudSqlTargetConditionsArgsBuilder.() -> Unit) {
val toBeMapped =
PreventionDiscoveryConfigTargetCloudSqlTargetConditionsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.conditions = mapped
}
/**
* @param value Disable profiling for database resources that match this filter.
*/
@JvmName("gwbktlygxvjrppxt")
public suspend fun disabled(`value`: PreventionDiscoveryConfigTargetCloudSqlTargetDisabledArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.disabled = mapped
}
/**
* @param argument Disable profiling for database resources that match this filter.
*/
@JvmName("vcvndcxvmgujlbwm")
public suspend fun disabled(argument: suspend PreventionDiscoveryConfigTargetCloudSqlTargetDisabledArgsBuilder.() -> Unit) {
val toBeMapped =
PreventionDiscoveryConfigTargetCloudSqlTargetDisabledArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.disabled = mapped
}
/**
* @param value Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table.
* Structure is documented below.
*/
@JvmName("vdxevpbtotjgwcjm")
public suspend fun filter(`value`: PreventionDiscoveryConfigTargetCloudSqlTargetFilterArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.filter = mapped
}
/**
* @param argument Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table.
* Structure is documented below.
*/
@JvmName("jjprnajwcgtfyvnt")
public suspend fun filter(argument: suspend PreventionDiscoveryConfigTargetCloudSqlTargetFilterArgsBuilder.() -> Unit) {
val toBeMapped = PreventionDiscoveryConfigTargetCloudSqlTargetFilterArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.filter = mapped
}
/**
* @param value How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity.
* Structure is documented below.
*/
@JvmName("yfejravsumelehtc")
public suspend fun generationCadence(`value`: PreventionDiscoveryConfigTargetCloudSqlTargetGenerationCadenceArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.generationCadence = mapped
}
/**
* @param argument How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity.
* Structure is documented below.
*/
@JvmName("lkaljabaccjeasdu")
public suspend fun generationCadence(argument: suspend PreventionDiscoveryConfigTargetCloudSqlTargetGenerationCadenceArgsBuilder.() -> Unit) {
val toBeMapped =
PreventionDiscoveryConfigTargetCloudSqlTargetGenerationCadenceArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.generationCadence = mapped
}
internal fun build(): PreventionDiscoveryConfigTargetCloudSqlTargetArgs =
PreventionDiscoveryConfigTargetCloudSqlTargetArgs(
conditions = conditions,
disabled = disabled,
filter = filter ?: throw PulumiNullFieldException("filter"),
generationCadence = generationCadence,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy