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

com.pulumi.gcp.dataloss.kotlin.inputs.PreventionDiscoveryConfigOrgConfigArgs.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.PreventionDiscoveryConfigOrgConfigArgs.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 location The data to scan folder org or project
 * Structure is documented below.
 * @property projectId The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the cloud DLP API must be enabled.
 */
public data class PreventionDiscoveryConfigOrgConfigArgs(
    public val location: Output? = null,
    public val projectId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionDiscoveryConfigOrgConfigArgs =
        com.pulumi.gcp.dataloss.inputs.PreventionDiscoveryConfigOrgConfigArgs.builder()
            .location(location?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .projectId(projectId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PreventionDiscoveryConfigOrgConfigArgs].
 */
@PulumiTagMarker
public class PreventionDiscoveryConfigOrgConfigArgsBuilder internal constructor() {
    private var location: Output? = null

    private var projectId: Output? = null

    /**
     * @param value The data to scan folder org or project
     * Structure is documented below.
     */
    @JvmName("wwrjstvqrcgflhdp")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the cloud DLP API must be enabled.
     */
    @JvmName("okeisgdyevxncrba")
    public suspend fun projectId(`value`: Output) {
        this.projectId = value
    }

    /**
     * @param value The data to scan folder org or project
     * Structure is documented below.
     */
    @JvmName("eyooaxtkjbtidard")
    public suspend fun location(`value`: PreventionDiscoveryConfigOrgConfigLocationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param argument The data to scan folder org or project
     * Structure is documented below.
     */
    @JvmName("cnjnndiupeydnvdv")
    public suspend fun location(argument: suspend PreventionDiscoveryConfigOrgConfigLocationArgsBuilder.() -> Unit) {
        val toBeMapped = PreventionDiscoveryConfigOrgConfigLocationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.location = mapped
    }

    /**
     * @param value The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the cloud DLP API must be enabled.
     */
    @JvmName("awmmcssirofwssyv")
    public suspend fun projectId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.projectId = mapped
    }

    internal fun build(): PreventionDiscoveryConfigOrgConfigArgs =
        PreventionDiscoveryConfigOrgConfigArgs(
            location = location,
            projectId = projectId,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy