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

com.pulumi.gcp.securitycenter.kotlin.inputs.OrganizationCustomModuleCustomConfigArgs.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.securitycenter.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.securitycenter.inputs.OrganizationCustomModuleCustomConfigArgs.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 customOutput Custom output properties.
 * Structure is documented below.
 * @property description Text that describes the vulnerability or misconfiguration that the custom
 * module detects. This explanation is returned with each finding instance to
 * help investigators understand the detected issue. The text must be enclosed in quotation marks.
 * @property predicate The CEL expression to evaluate to produce findings. When the expression evaluates
 * to true against a resource, a finding is generated.
 * Structure is documented below.
 * @property recommendation An explanation of the recommended steps that security teams can take to resolve
 * the detected issue. This explanation is returned with each finding generated by
 * this module in the nextSteps property of the finding JSON.
 * @property resourceSelector The resource types that the custom module operates on. Each custom module
 * can specify up to 5 resource types.
 * Structure is documented below.
 * @property severity The severity to assign to findings generated by the module.
 * Possible values are: `CRITICAL`, `HIGH`, `MEDIUM`, `LOW`.
 */
public data class OrganizationCustomModuleCustomConfigArgs(
    public val customOutput: Output? = null,
    public val description: Output? = null,
    public val predicate: Output,
    public val recommendation: Output,
    public val resourceSelector: Output,
    public val severity: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.securitycenter.inputs.OrganizationCustomModuleCustomConfigArgs =
        com.pulumi.gcp.securitycenter.inputs.OrganizationCustomModuleCustomConfigArgs.builder()
            .customOutput(customOutput?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .predicate(predicate.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .recommendation(recommendation.applyValue({ args0 -> args0 }))
            .resourceSelector(resourceSelector.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .severity(severity.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [OrganizationCustomModuleCustomConfigArgs].
 */
@PulumiTagMarker
public class OrganizationCustomModuleCustomConfigArgsBuilder internal constructor() {
    private var customOutput: Output? = null

    private var description: Output? = null

    private var predicate: Output? = null

    private var recommendation: Output? = null

    private var resourceSelector: Output? =
        null

    private var severity: Output? = null

    /**
     * @param value Custom output properties.
     * Structure is documented below.
     */
    @JvmName("mxaojegchqeuowwn")
    public suspend fun customOutput(`value`: Output) {
        this.customOutput = value
    }

    /**
     * @param value Text that describes the vulnerability or misconfiguration that the custom
     * module detects. This explanation is returned with each finding instance to
     * help investigators understand the detected issue. The text must be enclosed in quotation marks.
     */
    @JvmName("wbminhmvfxawyfqk")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The CEL expression to evaluate to produce findings. When the expression evaluates
     * to true against a resource, a finding is generated.
     * Structure is documented below.
     */
    @JvmName("hobktynloxynxbul")
    public suspend fun predicate(`value`: Output) {
        this.predicate = value
    }

    /**
     * @param value An explanation of the recommended steps that security teams can take to resolve
     * the detected issue. This explanation is returned with each finding generated by
     * this module in the nextSteps property of the finding JSON.
     */
    @JvmName("tbbbxffaxxglendh")
    public suspend fun recommendation(`value`: Output) {
        this.recommendation = value
    }

    /**
     * @param value The resource types that the custom module operates on. Each custom module
     * can specify up to 5 resource types.
     * Structure is documented below.
     */
    @JvmName("duaibcpiyvqtyvmy")
    public suspend fun resourceSelector(`value`: Output) {
        this.resourceSelector = value
    }

    /**
     * @param value The severity to assign to findings generated by the module.
     * Possible values are: `CRITICAL`, `HIGH`, `MEDIUM`, `LOW`.
     */
    @JvmName("srddqcwwepkipdom")
    public suspend fun severity(`value`: Output) {
        this.severity = value
    }

    /**
     * @param value Custom output properties.
     * Structure is documented below.
     */
    @JvmName("cgextlapkwurngsc")
    public suspend fun customOutput(`value`: OrganizationCustomModuleCustomConfigCustomOutputArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customOutput = mapped
    }

    /**
     * @param argument Custom output properties.
     * Structure is documented below.
     */
    @JvmName("vjvqqayjnmrhsnfw")
    public suspend fun customOutput(argument: suspend OrganizationCustomModuleCustomConfigCustomOutputArgsBuilder.() -> Unit) {
        val toBeMapped = OrganizationCustomModuleCustomConfigCustomOutputArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.customOutput = mapped
    }

    /**
     * @param value Text that describes the vulnerability or misconfiguration that the custom
     * module detects. This explanation is returned with each finding instance to
     * help investigators understand the detected issue. The text must be enclosed in quotation marks.
     */
    @JvmName("tjmxnjlrrheawxml")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The CEL expression to evaluate to produce findings. When the expression evaluates
     * to true against a resource, a finding is generated.
     * Structure is documented below.
     */
    @JvmName("ecqxguaqpgnirxqp")
    public suspend fun predicate(`value`: OrganizationCustomModuleCustomConfigPredicateArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.predicate = mapped
    }

    /**
     * @param argument The CEL expression to evaluate to produce findings. When the expression evaluates
     * to true against a resource, a finding is generated.
     * Structure is documented below.
     */
    @JvmName("moibvddoktbpilks")
    public suspend fun predicate(argument: suspend OrganizationCustomModuleCustomConfigPredicateArgsBuilder.() -> Unit) {
        val toBeMapped = OrganizationCustomModuleCustomConfigPredicateArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.predicate = mapped
    }

    /**
     * @param value An explanation of the recommended steps that security teams can take to resolve
     * the detected issue. This explanation is returned with each finding generated by
     * this module in the nextSteps property of the finding JSON.
     */
    @JvmName("iclwctscrdtiddfa")
    public suspend fun recommendation(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.recommendation = mapped
    }

    /**
     * @param value The resource types that the custom module operates on. Each custom module
     * can specify up to 5 resource types.
     * Structure is documented below.
     */
    @JvmName("hvtuatuyyjxrectc")
    public suspend fun resourceSelector(`value`: OrganizationCustomModuleCustomConfigResourceSelectorArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceSelector = mapped
    }

    /**
     * @param argument The resource types that the custom module operates on. Each custom module
     * can specify up to 5 resource types.
     * Structure is documented below.
     */
    @JvmName("pxhlderorkrlulvf")
    public suspend fun resourceSelector(argument: suspend OrganizationCustomModuleCustomConfigResourceSelectorArgsBuilder.() -> Unit) {
        val toBeMapped = OrganizationCustomModuleCustomConfigResourceSelectorArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.resourceSelector = mapped
    }

    /**
     * @param value The severity to assign to findings generated by the module.
     * Possible values are: `CRITICAL`, `HIGH`, `MEDIUM`, `LOW`.
     */
    @JvmName("nppdmmvrojxrxlpj")
    public suspend fun severity(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.severity = mapped
    }

    internal fun build(): OrganizationCustomModuleCustomConfigArgs =
        OrganizationCustomModuleCustomConfigArgs(
            customOutput = customOutput,
            description = description,
            predicate = predicate ?: throw PulumiNullFieldException("predicate"),
            recommendation = recommendation ?: throw PulumiNullFieldException("recommendation"),
            resourceSelector = resourceSelector ?: throw PulumiNullFieldException("resourceSelector"),
            severity = severity ?: throw PulumiNullFieldException("severity"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy