com.pulumi.gcp.securitycenter.kotlin.inputs.ProjectCustomModuleCustomConfigArgs.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.ProjectCustomModuleCustomConfigArgs.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 ProjectCustomModuleCustomConfigArgs(
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.ProjectCustomModuleCustomConfigArgs =
com.pulumi.gcp.securitycenter.inputs.ProjectCustomModuleCustomConfigArgs.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 [ProjectCustomModuleCustomConfigArgs].
*/
@PulumiTagMarker
public class ProjectCustomModuleCustomConfigArgsBuilder 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("obdcprdrpmmkslde")
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("vbaycnepgltyjxum")
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("rwgkbfqhrtayvxpb")
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("tlrgtnusexffsiow")
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("lhphpsahtffaptrw")
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("ojlhyuorhtvwllla")
public suspend fun severity(`value`: Output) {
this.severity = value
}
/**
* @param value Custom output properties.
* Structure is documented below.
*/
@JvmName("qteodxlwwfsivmqf")
public suspend fun customOutput(`value`: ProjectCustomModuleCustomConfigCustomOutputArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.customOutput = mapped
}
/**
* @param argument Custom output properties.
* Structure is documented below.
*/
@JvmName("ggoqsukifjqoymss")
public suspend fun customOutput(argument: suspend ProjectCustomModuleCustomConfigCustomOutputArgsBuilder.() -> Unit) {
val toBeMapped = ProjectCustomModuleCustomConfigCustomOutputArgsBuilder().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("dqhcoppyrdavipsb")
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("fcbrrnnjhrmkjpik")
public suspend fun predicate(`value`: ProjectCustomModuleCustomConfigPredicateArgs) {
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("hddsamqcdfmusoyl")
public suspend fun predicate(argument: suspend ProjectCustomModuleCustomConfigPredicateArgsBuilder.() -> Unit) {
val toBeMapped = ProjectCustomModuleCustomConfigPredicateArgsBuilder().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("wrgrudbjdgktruqf")
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("bcyfgyunvuemnjxa")
public suspend fun resourceSelector(`value`: ProjectCustomModuleCustomConfigResourceSelectorArgs) {
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("cgnkmqkxccsxyagc")
public suspend fun resourceSelector(argument: suspend ProjectCustomModuleCustomConfigResourceSelectorArgsBuilder.() -> Unit) {
val toBeMapped = ProjectCustomModuleCustomConfigResourceSelectorArgsBuilder().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("enwcmpcnrcteflgf")
public suspend fun severity(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.severity = mapped
}
internal fun build(): ProjectCustomModuleCustomConfigArgs = ProjectCustomModuleCustomConfigArgs(
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