![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.securitycenter.kotlin.inputs.AutomationSourceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.securitycenter.kotlin.inputs
import com.pulumi.azure.securitycenter.inputs.AutomationSourceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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.collections.List
import kotlin.jvm.JvmName
/**
*
* @property eventSource Type of data that will trigger this automation. Must be one of `Alerts`, `Assessments`, `AssessmentsSnapshot`, `RegulatoryComplianceAssessment`, `RegulatoryComplianceAssessmentSnapshot`, `SecureScoreControls`, `SecureScoreControlsSnapshot`, `SecureScores`, `SecureScoresSnapshot`, `SubAssessments` or `SubAssessmentsSnapshot`. Note. assessments are also referred to as recommendations
* @property ruleSets A set of rules which evaluate upon event and data interception. This is defined in one or more `rule_set` blocks as defined below.
* > **NOTE:** When multiple `rule_set` block are provided, a logical 'OR' is applied to the evaluation of them.
*/
public data class AutomationSourceArgs(
public val eventSource: Output,
public val ruleSets: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.securitycenter.inputs.AutomationSourceArgs =
com.pulumi.azure.securitycenter.inputs.AutomationSourceArgs.builder()
.eventSource(eventSource.applyValue({ args0 -> args0 }))
.ruleSets(
ruleSets?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [AutomationSourceArgs].
*/
@PulumiTagMarker
public class AutomationSourceArgsBuilder internal constructor() {
private var eventSource: Output? = null
private var ruleSets: Output>? = null
/**
* @param value Type of data that will trigger this automation. Must be one of `Alerts`, `Assessments`, `AssessmentsSnapshot`, `RegulatoryComplianceAssessment`, `RegulatoryComplianceAssessmentSnapshot`, `SecureScoreControls`, `SecureScoreControlsSnapshot`, `SecureScores`, `SecureScoresSnapshot`, `SubAssessments` or `SubAssessmentsSnapshot`. Note. assessments are also referred to as recommendations
*/
@JvmName("gaoctskxufigkhta")
public suspend fun eventSource(`value`: Output) {
this.eventSource = value
}
/**
* @param value A set of rules which evaluate upon event and data interception. This is defined in one or more `rule_set` blocks as defined below.
* > **NOTE:** When multiple `rule_set` block are provided, a logical 'OR' is applied to the evaluation of them.
*/
@JvmName("eduqlyjwmdveucli")
public suspend fun ruleSets(`value`: Output>) {
this.ruleSets = value
}
@JvmName("iqfblgdbqnqiwpnh")
public suspend fun ruleSets(vararg values: Output) {
this.ruleSets = Output.all(values.asList())
}
/**
* @param values A set of rules which evaluate upon event and data interception. This is defined in one or more `rule_set` blocks as defined below.
* > **NOTE:** When multiple `rule_set` block are provided, a logical 'OR' is applied to the evaluation of them.
*/
@JvmName("vktlnibkotuorjsm")
public suspend fun ruleSets(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy