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

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

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

import kotlin.Suppress

/**
 *
 * @property bigQueryTarget BigQuery target for Discovery. The first target to match a table will be the one applied.
 * Structure is documented below.
 * @property cloudSqlTarget Cloud SQL target for Discovery. The first target to match a table will be the one applied.
 * Structure is documented below.
 * @property cloudStorageTarget Cloud Storage target for Discovery. The first target to match a bucket will be the one applied.
 * Structure is documented below.
 * @property secretsTarget Discovery target that looks for credentials and secrets stored in cloud resource metadata and reports them as vulnerabilities to Security Command Center. Only one target of this type is allowed.
 */
public data class PreventionDiscoveryConfigTarget(
    public val bigQueryTarget: PreventionDiscoveryConfigTargetBigQueryTarget? = null,
    public val cloudSqlTarget: PreventionDiscoveryConfigTargetCloudSqlTarget? = null,
    public val cloudStorageTarget: PreventionDiscoveryConfigTargetCloudStorageTarget? = null,
    public val secretsTarget: PreventionDiscoveryConfigTargetSecretsTarget? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.dataloss.outputs.PreventionDiscoveryConfigTarget): PreventionDiscoveryConfigTarget = PreventionDiscoveryConfigTarget(
            bigQueryTarget = javaType.bigQueryTarget().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.dataloss.kotlin.outputs.PreventionDiscoveryConfigTargetBigQueryTarget.Companion.toKotlin(args0)
                })
            }).orElse(null),
            cloudSqlTarget = javaType.cloudSqlTarget().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.dataloss.kotlin.outputs.PreventionDiscoveryConfigTargetCloudSqlTarget.Companion.toKotlin(args0)
                })
            }).orElse(null),
            cloudStorageTarget = javaType.cloudStorageTarget().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.dataloss.kotlin.outputs.PreventionDiscoveryConfigTargetCloudStorageTarget.Companion.toKotlin(args0)
                })
            }).orElse(null),
            secretsTarget = javaType.secretsTarget().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.dataloss.kotlin.outputs.PreventionDiscoveryConfigTargetSecretsTarget.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy