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

com.pulumi.awsnative.securityhub.kotlin.outputs.AutomationRuleSeverityUpdate.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.securityhub.kotlin.outputs

import com.pulumi.awsnative.securityhub.kotlin.enums.AutomationRuleSeverityUpdateLabel
import kotlin.Double
import kotlin.Int
import kotlin.Suppress

/**
 *
 * @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 AutomationRuleSeverityUpdate(
    public val label: AutomationRuleSeverityUpdateLabel? = null,
    public val normalized: Int? = null,
    public val product: Double? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.securityhub.outputs.AutomationRuleSeverityUpdate): AutomationRuleSeverityUpdate = AutomationRuleSeverityUpdate(
            label = javaType.label().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.securityhub.kotlin.enums.AutomationRuleSeverityUpdateLabel.Companion.toKotlin(args0)
                })
            }).orElse(null),
            normalized = javaType.normalized().map({ args0 -> args0 }).orElse(null),
            product = javaType.product().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy