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

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

/**
 *
 * @property description A short description of where the data is coming from. Will be stored once in the job. 256 max length.
 * @property labels To organize findings, these labels will be added to each finding.
 * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `a-z?`.
 * Label values must be between 0 and 63 characters long and must conform to the regular expression `(a-z?)?`.
 * No more than 10 labels can be associated with a given finding.
 * Examples:
 * * `"environment" : "production"`
 * * `"pipeline" : "etl"`
 * @property requiredFindingLabelKeys These are labels that each inspection request must include within their 'finding_labels' map. Request
 * may contain others, but any missing one of these will be rejected.
 * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `a-z?`.
 * No more than 10 keys can be required.
 * @property tableOptions If the container is a table, additional information to make findings meaningful such as the columns that are primary keys.
 * Structure is documented below.
 */
public data class PreventionJobTriggerInspectJobStorageConfigHybridOptionsArgs(
    public val description: Output? = null,
    public val labels: Output>? = null,
    public val requiredFindingLabelKeys: Output>? = null,
    public val tableOptions: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigHybridOptionsArgs =
        com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigHybridOptionsArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .requiredFindingLabelKeys(
                requiredFindingLabelKeys?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .tableOptions(tableOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [PreventionJobTriggerInspectJobStorageConfigHybridOptionsArgs].
 */
@PulumiTagMarker
public class PreventionJobTriggerInspectJobStorageConfigHybridOptionsArgsBuilder internal constructor() {
    private var description: Output? = null

    private var labels: Output>? = null

    private var requiredFindingLabelKeys: Output>? = null

    private var tableOptions:
        Output? = null

    /**
     * @param value A short description of where the data is coming from. Will be stored once in the job. 256 max length.
     */
    @JvmName("vbttpdrxgjbjmuwh")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value To organize findings, these labels will be added to each finding.
     * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `a-z?`.
     * Label values must be between 0 and 63 characters long and must conform to the regular expression `(a-z?)?`.
     * No more than 10 labels can be associated with a given finding.
     * Examples:
     * * `"environment" : "production"`
     * * `"pipeline" : "etl"`
     */
    @JvmName("tqhsisjjlmdafxhq")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value These are labels that each inspection request must include within their 'finding_labels' map. Request
     * may contain others, but any missing one of these will be rejected.
     * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `a-z?`.
     * No more than 10 keys can be required.
     */
    @JvmName("xdfbvxtvnxeuqqql")
    public suspend fun requiredFindingLabelKeys(`value`: Output>) {
        this.requiredFindingLabelKeys = value
    }

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

    /**
     * @param values These are labels that each inspection request must include within their 'finding_labels' map. Request
     * may contain others, but any missing one of these will be rejected.
     * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `a-z?`.
     * No more than 10 keys can be required.
     */
    @JvmName("uwkmtoegwawqsvqu")
    public suspend fun requiredFindingLabelKeys(values: List>) {
        this.requiredFindingLabelKeys = Output.all(values)
    }

    /**
     * @param value If the container is a table, additional information to make findings meaningful such as the columns that are primary keys.
     * Structure is documented below.
     */
    @JvmName("jxgihonkyefbqpor")
    public suspend fun tableOptions(`value`: Output) {
        this.tableOptions = value
    }

    /**
     * @param value A short description of where the data is coming from. Will be stored once in the job. 256 max length.
     */
    @JvmName("tsguajjwhsgxjtue")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value To organize findings, these labels will be added to each finding.
     * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `a-z?`.
     * Label values must be between 0 and 63 characters long and must conform to the regular expression `(a-z?)?`.
     * No more than 10 labels can be associated with a given finding.
     * Examples:
     * * `"environment" : "production"`
     * * `"pipeline" : "etl"`
     */
    @JvmName("mimyiaqkuxvdueun")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values To organize findings, these labels will be added to each finding.
     * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `a-z?`.
     * Label values must be between 0 and 63 characters long and must conform to the regular expression `(a-z?)?`.
     * No more than 10 labels can be associated with a given finding.
     * Examples:
     * * `"environment" : "production"`
     * * `"pipeline" : "etl"`
     */
    @JvmName("ifwlpxiqrfpoelsv")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value These are labels that each inspection request must include within their 'finding_labels' map. Request
     * may contain others, but any missing one of these will be rejected.
     * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `a-z?`.
     * No more than 10 keys can be required.
     */
    @JvmName("sirsoryochllpkne")
    public suspend fun requiredFindingLabelKeys(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requiredFindingLabelKeys = mapped
    }

    /**
     * @param values These are labels that each inspection request must include within their 'finding_labels' map. Request
     * may contain others, but any missing one of these will be rejected.
     * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `a-z?`.
     * No more than 10 keys can be required.
     */
    @JvmName("gtuqavnlmshdtprt")
    public suspend fun requiredFindingLabelKeys(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.requiredFindingLabelKeys = mapped
    }

    /**
     * @param value If the container is a table, additional information to make findings meaningful such as the columns that are primary keys.
     * Structure is documented below.
     */
    @JvmName("eywermbuukyyvorf")
    public suspend fun tableOptions(`value`: PreventionJobTriggerInspectJobStorageConfigHybridOptionsTableOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tableOptions = mapped
    }

    /**
     * @param argument If the container is a table, additional information to make findings meaningful such as the columns that are primary keys.
     * Structure is documented below.
     */
    @JvmName("ivkcxlvpggyloakf")
    public suspend fun tableOptions(argument: suspend PreventionJobTriggerInspectJobStorageConfigHybridOptionsTableOptionsArgsBuilder.() -> Unit) {
        val toBeMapped =
            PreventionJobTriggerInspectJobStorageConfigHybridOptionsTableOptionsArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.tableOptions = mapped
    }

    internal fun build(): PreventionJobTriggerInspectJobStorageConfigHybridOptionsArgs =
        PreventionJobTriggerInspectJobStorageConfigHybridOptionsArgs(
            description = description,
            labels = labels,
            requiredFindingLabelKeys = requiredFindingLabelKeys,
            tableOptions = tableOptions,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy