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

com.pulumi.gcp.dataloss.kotlin.inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs.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.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property outputSchema Schema used for writing the findings for Inspect jobs. This field is only used for
 * Inspect and must be unspecified for Risk jobs. Columns are derived from the Finding
 * object. If appending to an existing table, any columns from the predefined schema
 * that are missing will be added. No columns in the existing table will be deleted.
 * If unspecified, then all available columns will be used for a new table or an (existing)
 * table with no schema, and no changes will be made to an existing table that has a schema.
 * Only for use with external storage.
 * Possible values are: `BASIC_COLUMNS`, `GCS_COLUMNS`, `DATASTORE_COLUMNS`, `BIG_QUERY_COLUMNS`, `ALL_COLUMNS`.
 * @property table Information on the location of the target BigQuery Table.
 * Structure is documented below.
 */
public data class PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs(
    public val outputSchema: Output? = null,
    public val table: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs =
        com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs.builder()
            .outputSchema(outputSchema?.applyValue({ args0 -> args0 }))
            .table(table.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs].
 */
@PulumiTagMarker
public class PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgsBuilder internal constructor() {
    private var outputSchema: Output? = null

    private var table: Output? =
        null

    /**
     * @param value Schema used for writing the findings for Inspect jobs. This field is only used for
     * Inspect and must be unspecified for Risk jobs. Columns are derived from the Finding
     * object. If appending to an existing table, any columns from the predefined schema
     * that are missing will be added. No columns in the existing table will be deleted.
     * If unspecified, then all available columns will be used for a new table or an (existing)
     * table with no schema, and no changes will be made to an existing table that has a schema.
     * Only for use with external storage.
     * Possible values are: `BASIC_COLUMNS`, `GCS_COLUMNS`, `DATASTORE_COLUMNS`, `BIG_QUERY_COLUMNS`, `ALL_COLUMNS`.
     */
    @JvmName("xvffqrvgexibjmlr")
    public suspend fun outputSchema(`value`: Output) {
        this.outputSchema = value
    }

    /**
     * @param value Information on the location of the target BigQuery Table.
     * Structure is documented below.
     */
    @JvmName("ujutylglgetoxeej")
    public suspend fun table(`value`: Output) {
        this.table = value
    }

    /**
     * @param value Schema used for writing the findings for Inspect jobs. This field is only used for
     * Inspect and must be unspecified for Risk jobs. Columns are derived from the Finding
     * object. If appending to an existing table, any columns from the predefined schema
     * that are missing will be added. No columns in the existing table will be deleted.
     * If unspecified, then all available columns will be used for a new table or an (existing)
     * table with no schema, and no changes will be made to an existing table that has a schema.
     * Only for use with external storage.
     * Possible values are: `BASIC_COLUMNS`, `GCS_COLUMNS`, `DATASTORE_COLUMNS`, `BIG_QUERY_COLUMNS`, `ALL_COLUMNS`.
     */
    @JvmName("ildkaamfpggcowws")
    public suspend fun outputSchema(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.outputSchema = mapped
    }

    /**
     * @param value Information on the location of the target BigQuery Table.
     * Structure is documented below.
     */
    @JvmName("pvxmbojsgpxdbnqq")
    public suspend fun table(`value`: PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.table = mapped
    }

    /**
     * @param argument Information on the location of the target BigQuery Table.
     * Structure is documented below.
     */
    @JvmName("cfeahxccmoxedofj")
    public suspend fun table(argument: suspend PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgsBuilder.() -> Unit) {
        val toBeMapped =
            PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigTableArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.table = mapped
    }

    internal fun build(): PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs =
        PreventionJobTriggerInspectJobActionSaveFindingsOutputConfigArgs(
            outputSchema = outputSchema,
            table = table ?: throw PulumiNullFieldException("table"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy