
com.pulumi.gcp.securitycenter.kotlin.inputs.ManagementFolderSecurityHealthAnalyticsCustomModuleCustomConfigArgs.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.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.securitycenter.inputs.ManagementFolderSecurityHealthAnalyticsCustomModuleCustomConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
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 ManagementFolderSecurityHealthAnalyticsCustomModuleCustomConfigArgs(
public val customOutput: Output? =
null,
public val description: Output? = null,
public val predicate: Output? = null,
public val recommendation: Output? = null,
public val resourceSelector: Output? =
null,
public val severity: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.securitycenter.inputs.ManagementFolderSecurityHealthAnalyticsCustomModuleCustomConfigArgs =
com.pulumi.gcp.securitycenter.inputs.ManagementFolderSecurityHealthAnalyticsCustomModuleCustomConfigArgs.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 [ManagementFolderSecurityHealthAnalyticsCustomModuleCustomConfigArgs].
*/
@PulumiTagMarker
public class ManagementFolderSecurityHealthAnalyticsCustomModuleCustomConfigArgsBuilder 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("nvofhfuvagjnckyd")
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("nrgumrcnjidoqmpv")
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("damsfunutivhlops")
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("hpovistxvevsqhci")
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("qcaklvownhrayaaj")
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("jookaensoblumqtv")
public suspend fun severity(`value`: Output) {
this.severity = value
}
/**
* @param value Custom output properties.
* Structure is documented below.
*/
@JvmName("rtiqgphywlhmcart")
public suspend fun customOutput(`value`: ManagementFolderSecurityHealthAnalyticsCustomModuleCustomConfigCustomOutputArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.customOutput = mapped
}
/**
* @param argument Custom output properties.
* Structure is documented below.
*/
@JvmName("ynrgvqbgbibicvqo")
public suspend fun customOutput(argument: suspend ManagementFolderSecurityHealthAnalyticsCustomModuleCustomConfigCustomOutputArgsBuilder.() -> Unit) {
val toBeMapped =
ManagementFolderSecurityHealthAnalyticsCustomModuleCustomConfigCustomOutputArgsBuilder().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("aepeacgoctqfmqwb")
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("ieotqsbcfwikatqs")
public suspend fun predicate(`value`: ManagementFolderSecurityHealthAnalyticsCustomModuleCustomConfigPredicateArgs?) {
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("gtpcbhpewfleyfwe")
public suspend fun predicate(argument: suspend ManagementFolderSecurityHealthAnalyticsCustomModuleCustomConfigPredicateArgsBuilder.() -> Unit) {
val toBeMapped =
ManagementFolderSecurityHealthAnalyticsCustomModuleCustomConfigPredicateArgsBuilder().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("ypiejpnyggabbmvi")
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("wxdvafggproqbsuc")
public suspend fun resourceSelector(`value`: ManagementFolderSecurityHealthAnalyticsCustomModuleCustomConfigResourceSelectorArgs?) {
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("mcwerbdaoeldnmqb")
public suspend fun resourceSelector(argument: suspend ManagementFolderSecurityHealthAnalyticsCustomModuleCustomConfigResourceSelectorArgsBuilder.() -> Unit) {
val toBeMapped =
ManagementFolderSecurityHealthAnalyticsCustomModuleCustomConfigResourceSelectorArgsBuilder().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("yhtheabgquualgcc")
public suspend fun severity(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.severity = mapped
}
internal fun build(): ManagementFolderSecurityHealthAnalyticsCustomModuleCustomConfigArgs =
ManagementFolderSecurityHealthAnalyticsCustomModuleCustomConfigArgs(
customOutput = customOutput,
description = description,
predicate = predicate,
recommendation = recommendation,
resourceSelector = resourceSelector,
severity = severity,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy