com.pulumi.gcp.securitycenter.kotlin.outputs.FolderCustomModuleCustomConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.securitycenter.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @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 FolderCustomModuleCustomConfig(
public val customOutput: FolderCustomModuleCustomConfigCustomOutput? = null,
public val description: String? = null,
public val predicate: FolderCustomModuleCustomConfigPredicate,
public val recommendation: String,
public val resourceSelector: FolderCustomModuleCustomConfigResourceSelector,
public val severity: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.securitycenter.outputs.FolderCustomModuleCustomConfig): FolderCustomModuleCustomConfig = FolderCustomModuleCustomConfig(
customOutput = javaType.customOutput().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.securitycenter.kotlin.outputs.FolderCustomModuleCustomConfigCustomOutput.Companion.toKotlin(args0)
})
}).orElse(null),
description = javaType.description().map({ args0 -> args0 }).orElse(null),
predicate = javaType.predicate().let({ args0 ->
com.pulumi.gcp.securitycenter.kotlin.outputs.FolderCustomModuleCustomConfigPredicate.Companion.toKotlin(args0)
}),
recommendation = javaType.recommendation(),
resourceSelector = javaType.resourceSelector().let({ args0 ->
com.pulumi.gcp.securitycenter.kotlin.outputs.FolderCustomModuleCustomConfigResourceSelector.Companion.toKotlin(args0)
}),
severity = javaType.severity(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy