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

com.pulumi.gcp.dataloss.kotlin.inputs.PreventionDiscoveryConfigTargetCloudSqlTargetGenerationCadenceArgs.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.12.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.PreventionDiscoveryConfigTargetCloudSqlTargetGenerationCadenceArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property refreshFrequency Data changes (non-schema changes) in Cloud SQL tables can't trigger reprofiling. If you set this field, profiles are refreshed at this frequency regardless of whether the underlying tables have changes. Defaults to never.
 * Possible values are: `UPDATE_FREQUENCY_NEVER`, `UPDATE_FREQUENCY_DAILY`, `UPDATE_FREQUENCY_MONTHLY`.
 * @property schemaModifiedCadence Governs when to update data profiles when a schema is modified
 * Structure is documented below.
 */
public data class PreventionDiscoveryConfigTargetCloudSqlTargetGenerationCadenceArgs(
    public val refreshFrequency: Output? = null,
    public val schemaModifiedCadence: Output? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionDiscoveryConfigTargetCloudSqlTargetGenerationCadenceArgs =
        com.pulumi.gcp.dataloss.inputs.PreventionDiscoveryConfigTargetCloudSqlTargetGenerationCadenceArgs.builder()
            .refreshFrequency(refreshFrequency?.applyValue({ args0 -> args0 }))
            .schemaModifiedCadence(
                schemaModifiedCadence?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [PreventionDiscoveryConfigTargetCloudSqlTargetGenerationCadenceArgs].
 */
@PulumiTagMarker
public class PreventionDiscoveryConfigTargetCloudSqlTargetGenerationCadenceArgsBuilder internal constructor() {
    private var refreshFrequency: Output? = null

    private var schemaModifiedCadence:
        Output? =
        null

    /**
     * @param value Data changes (non-schema changes) in Cloud SQL tables can't trigger reprofiling. If you set this field, profiles are refreshed at this frequency regardless of whether the underlying tables have changes. Defaults to never.
     * Possible values are: `UPDATE_FREQUENCY_NEVER`, `UPDATE_FREQUENCY_DAILY`, `UPDATE_FREQUENCY_MONTHLY`.
     */
    @JvmName("rjmxqwlvdynaonyq")
    public suspend fun refreshFrequency(`value`: Output) {
        this.refreshFrequency = value
    }

    /**
     * @param value Governs when to update data profiles when a schema is modified
     * Structure is documented below.
     */
    @JvmName("vtvvnjgxrsxkixnr")
    public suspend fun schemaModifiedCadence(`value`: Output) {
        this.schemaModifiedCadence = value
    }

    /**
     * @param value Data changes (non-schema changes) in Cloud SQL tables can't trigger reprofiling. If you set this field, profiles are refreshed at this frequency regardless of whether the underlying tables have changes. Defaults to never.
     * Possible values are: `UPDATE_FREQUENCY_NEVER`, `UPDATE_FREQUENCY_DAILY`, `UPDATE_FREQUENCY_MONTHLY`.
     */
    @JvmName("csooenpquutlmrkq")
    public suspend fun refreshFrequency(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.refreshFrequency = mapped
    }

    /**
     * @param value Governs when to update data profiles when a schema is modified
     * Structure is documented below.
     */
    @JvmName("isrmbrcpyhacpdfl")
    public suspend fun schemaModifiedCadence(`value`: PreventionDiscoveryConfigTargetCloudSqlTargetGenerationCadenceSchemaModifiedCadenceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schemaModifiedCadence = mapped
    }

    /**
     * @param argument Governs when to update data profiles when a schema is modified
     * Structure is documented below.
     */
    @JvmName("dsttpegntexpbqav")
    public suspend fun schemaModifiedCadence(argument: suspend PreventionDiscoveryConfigTargetCloudSqlTargetGenerationCadenceSchemaModifiedCadenceArgsBuilder.() -> Unit) {
        val toBeMapped =
            PreventionDiscoveryConfigTargetCloudSqlTargetGenerationCadenceSchemaModifiedCadenceArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.schemaModifiedCadence = mapped
    }

    internal fun build(): PreventionDiscoveryConfigTargetCloudSqlTargetGenerationCadenceArgs =
        PreventionDiscoveryConfigTargetCloudSqlTargetGenerationCadenceArgs(
            refreshFrequency = refreshFrequency,
            schemaModifiedCadence = schemaModifiedCadence,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy