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

com.pulumi.gcp.dataloss.kotlin.outputs.PreventionDiscoveryConfigTargetCloudSqlTarget.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.dataloss.kotlin.outputs

import kotlin.Suppress

/**
 *
 * @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 PreventionDiscoveryConfigTargetCloudSqlTarget(
    public val conditions: PreventionDiscoveryConfigTargetCloudSqlTargetConditions? = null,
    public val disabled: PreventionDiscoveryConfigTargetCloudSqlTargetDisabled? = null,
    public val filter: PreventionDiscoveryConfigTargetCloudSqlTargetFilter,
    public val generationCadence: PreventionDiscoveryConfigTargetCloudSqlTargetGenerationCadence? =
        null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.dataloss.outputs.PreventionDiscoveryConfigTargetCloudSqlTarget): PreventionDiscoveryConfigTargetCloudSqlTarget =
            PreventionDiscoveryConfigTargetCloudSqlTarget(
                conditions = javaType.conditions().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.dataloss.kotlin.outputs.PreventionDiscoveryConfigTargetCloudSqlTargetConditions.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                disabled = javaType.disabled().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.dataloss.kotlin.outputs.PreventionDiscoveryConfigTargetCloudSqlTargetDisabled.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                filter = javaType.filter().let({ args0 ->
                    com.pulumi.gcp.dataloss.kotlin.outputs.PreventionDiscoveryConfigTargetCloudSqlTargetFilter.Companion.toKotlin(args0)
                }),
                generationCadence = javaType.generationCadence().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.dataloss.kotlin.outputs.PreventionDiscoveryConfigTargetCloudSqlTargetGenerationCadence.Companion.toKotlin(args0)
                    })
                }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy