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

com.pulumi.awsnative.securityhub.kotlin.inputs.AutomationRuleSeverityUpdateArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.securityhub.kotlin.inputs

import com.pulumi.awsnative.securityhub.inputs.AutomationRuleSeverityUpdateArgs.builder
import com.pulumi.awsnative.securityhub.kotlin.enums.AutomationRuleSeverityUpdateLabel
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Updates to the severity information for a finding.
 * @property label The severity value of the finding. The allowed values are the following.
 *   +   ``INFORMATIONAL`` - No issue was found.
 *   +   ``LOW`` - The issue does not require action on its own.
 *   +   ``MEDIUM`` - The issue must be addressed but not urgently.
 *   +   ``HIGH`` - The issue must be addressed as a priority.
 *   +   ``CRITICAL`` - The issue must be remediated immediately to avoid it escalating.
 * @property normalized The normalized severity for the finding. This attribute is to be deprecated in favor of ``Label``.
 *  If you provide ``Normalized`` and do not provide ``Label``, ``Label`` is set automatically as follows.
 *   +  0 - ``INFORMATIONAL``
 *   +  1–39 - ``LOW``
 *   +  40–69 - ``MEDIUM``
 *   +  70–89 - ``HIGH``
 *   +  90–100 - ``CRITICAL``
 * @property product The native severity as defined by the AWS service or integrated partner product that generated the finding.
 */
public data class AutomationRuleSeverityUpdateArgs(
    public val label: Output? = null,
    public val normalized: Output? = null,
    public val product: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.securityhub.inputs.AutomationRuleSeverityUpdateArgs =
        com.pulumi.awsnative.securityhub.inputs.AutomationRuleSeverityUpdateArgs.builder()
            .label(label?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .normalized(normalized?.applyValue({ args0 -> args0 }))
            .product(product?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AutomationRuleSeverityUpdateArgs].
 */
@PulumiTagMarker
public class AutomationRuleSeverityUpdateArgsBuilder internal constructor() {
    private var label: Output? = null

    private var normalized: Output? = null

    private var product: Output? = null

    /**
     * @param value The severity value of the finding. The allowed values are the following.
     *   +   ``INFORMATIONAL`` - No issue was found.
     *   +   ``LOW`` - The issue does not require action on its own.
     *   +   ``MEDIUM`` - The issue must be addressed but not urgently.
     *   +   ``HIGH`` - The issue must be addressed as a priority.
     *   +   ``CRITICAL`` - The issue must be remediated immediately to avoid it escalating.
     */
    @JvmName("hcquaytdpgnubxxo")
    public suspend fun label(`value`: Output) {
        this.label = value
    }

    /**
     * @param value The normalized severity for the finding. This attribute is to be deprecated in favor of ``Label``.
     *  If you provide ``Normalized`` and do not provide ``Label``, ``Label`` is set automatically as follows.
     *   +  0 - ``INFORMATIONAL``
     *   +  1–39 - ``LOW``
     *   +  40–69 - ``MEDIUM``
     *   +  70–89 - ``HIGH``
     *   +  90–100 - ``CRITICAL``
     */
    @JvmName("ikmohvsepruewxuw")
    public suspend fun normalized(`value`: Output) {
        this.normalized = value
    }

    /**
     * @param value The native severity as defined by the AWS service or integrated partner product that generated the finding.
     */
    @JvmName("ulqatfijlnontqev")
    public suspend fun product(`value`: Output) {
        this.product = value
    }

    /**
     * @param value The severity value of the finding. The allowed values are the following.
     *   +   ``INFORMATIONAL`` - No issue was found.
     *   +   ``LOW`` - The issue does not require action on its own.
     *   +   ``MEDIUM`` - The issue must be addressed but not urgently.
     *   +   ``HIGH`` - The issue must be addressed as a priority.
     *   +   ``CRITICAL`` - The issue must be remediated immediately to avoid it escalating.
     */
    @JvmName("cvcvfcfbchpsxlbj")
    public suspend fun label(`value`: AutomationRuleSeverityUpdateLabel?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.label = mapped
    }

    /**
     * @param value The normalized severity for the finding. This attribute is to be deprecated in favor of ``Label``.
     *  If you provide ``Normalized`` and do not provide ``Label``, ``Label`` is set automatically as follows.
     *   +  0 - ``INFORMATIONAL``
     *   +  1–39 - ``LOW``
     *   +  40–69 - ``MEDIUM``
     *   +  70–89 - ``HIGH``
     *   +  90–100 - ``CRITICAL``
     */
    @JvmName("ejiwwlnibidnkbby")
    public suspend fun normalized(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.normalized = mapped
    }

    /**
     * @param value The native severity as defined by the AWS service or integrated partner product that generated the finding.
     */
    @JvmName("sekwoistmtqivgom")
    public suspend fun product(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.product = mapped
    }

    internal fun build(): AutomationRuleSeverityUpdateArgs = AutomationRuleSeverityUpdateArgs(
        label = label,
        normalized = normalized,
        product = product,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy