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

com.pulumi.gcp.dataloss.kotlin.inputs.PreventionDiscoveryConfigTargetCloudSqlTargetConditionsArgs.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.PreventionDiscoveryConfigTargetCloudSqlTargetConditionsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property databaseEngines Database engines that should be profiled. Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified.
 * Each value may be one of: `ALL_SUPPORTED_DATABASE_ENGINES`, `MYSQL`, `POSTGRES`.
 * @property types Data profiles will only be generated for the database resource types specified in this field. If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES].
 * Each value may be one of: `DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES`, `DATABASE_RESOURCE_TYPE_TABLE`.
 */
public data class PreventionDiscoveryConfigTargetCloudSqlTargetConditionsArgs(
    public val databaseEngines: Output>? = null,
    public val types: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionDiscoveryConfigTargetCloudSqlTargetConditionsArgs =
        com.pulumi.gcp.dataloss.inputs.PreventionDiscoveryConfigTargetCloudSqlTargetConditionsArgs.builder()
            .databaseEngines(databaseEngines?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .types(types?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var types: Output>? = null

    /**
     * @param value Database engines that should be profiled. Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified.
     * Each value may be one of: `ALL_SUPPORTED_DATABASE_ENGINES`, `MYSQL`, `POSTGRES`.
     */
    @JvmName("sobnnmmpvaujxbrs")
    public suspend fun databaseEngines(`value`: Output>) {
        this.databaseEngines = value
    }

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

    /**
     * @param values Database engines that should be profiled. Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified.
     * Each value may be one of: `ALL_SUPPORTED_DATABASE_ENGINES`, `MYSQL`, `POSTGRES`.
     */
    @JvmName("eyiikvvomxjvglon")
    public suspend fun databaseEngines(values: List>) {
        this.databaseEngines = Output.all(values)
    }

    /**
     * @param value Data profiles will only be generated for the database resource types specified in this field. If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES].
     * Each value may be one of: `DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES`, `DATABASE_RESOURCE_TYPE_TABLE`.
     */
    @JvmName("vtefyjgsahunkvqu")
    public suspend fun types(`value`: Output>) {
        this.types = value
    }

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

    /**
     * @param values Data profiles will only be generated for the database resource types specified in this field. If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES].
     * Each value may be one of: `DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES`, `DATABASE_RESOURCE_TYPE_TABLE`.
     */
    @JvmName("ghcyujayhaxbcbfg")
    public suspend fun types(values: List>) {
        this.types = Output.all(values)
    }

    /**
     * @param value Database engines that should be profiled. Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified.
     * Each value may be one of: `ALL_SUPPORTED_DATABASE_ENGINES`, `MYSQL`, `POSTGRES`.
     */
    @JvmName("snkdnlcvlsggvxlt")
    public suspend fun databaseEngines(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.databaseEngines = mapped
    }

    /**
     * @param values Database engines that should be profiled. Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified.
     * Each value may be one of: `ALL_SUPPORTED_DATABASE_ENGINES`, `MYSQL`, `POSTGRES`.
     */
    @JvmName("ojqneyaihfjsvkdv")
    public suspend fun databaseEngines(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.databaseEngines = mapped
    }

    /**
     * @param value Data profiles will only be generated for the database resource types specified in this field. If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES].
     * Each value may be one of: `DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES`, `DATABASE_RESOURCE_TYPE_TABLE`.
     */
    @JvmName("sypsunfmwpxrtwdg")
    public suspend fun types(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.types = mapped
    }

    /**
     * @param values Data profiles will only be generated for the database resource types specified in this field. If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES].
     * Each value may be one of: `DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES`, `DATABASE_RESOURCE_TYPE_TABLE`.
     */
    @JvmName("ycemoauubpatdeyc")
    public suspend fun types(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.types = mapped
    }

    internal fun build(): PreventionDiscoveryConfigTargetCloudSqlTargetConditionsArgs =
        PreventionDiscoveryConfigTargetCloudSqlTargetConditionsArgs(
            databaseEngines = databaseEngines,
            types = types,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy