com.pulumi.gcp.securitycenter.kotlin.inputs.NotificationConfigStreamingConfigArgs.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.NotificationConfigStreamingConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property filter Expression that defines the filter to apply across create/update
* events of assets or findings as specified by the event type. The
* expression is a list of zero or more restrictions combined via
* logical operators AND and OR. Parentheses are supported, and OR
* has higher precedence than AND.
* Restrictions have the form and may have
* a - character in front of them to indicate negation. The fields
* map to those defined in the corresponding resource.
* The supported operators are:
* * = for all value types.
* * >, <, >=, <= for integer values.
* * :, meaning substring matching, for strings.
* The supported value types are:
* * string literals in quotes.
* * integer literals without quotes.
* * boolean literals true and false without quotes.
* See
* [Filtering notifications](https://cloud.google.com/security-command-center/docs/how-to-api-filter-notifications)
* for information on how to write a filter.
* - - -
*/
public data class NotificationConfigStreamingConfigArgs(
public val filter: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.securitycenter.inputs.NotificationConfigStreamingConfigArgs = com.pulumi.gcp.securitycenter.inputs.NotificationConfigStreamingConfigArgs.builder()
.filter(filter.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [NotificationConfigStreamingConfigArgs].
*/
@PulumiTagMarker
public class NotificationConfigStreamingConfigArgsBuilder internal constructor() {
private var filter: Output? = null
/**
* @param value Expression that defines the filter to apply across create/update
* events of assets or findings as specified by the event type. The
* expression is a list of zero or more restrictions combined via
* logical operators AND and OR. Parentheses are supported, and OR
* has higher precedence than AND.
* Restrictions have the form and may have
* a - character in front of them to indicate negation. The fields
* map to those defined in the corresponding resource.
* The supported operators are:
* * = for all value types.
* * >, <, >=, <= for integer values.
* * :, meaning substring matching, for strings.
* The supported value types are:
* * string literals in quotes.
* * integer literals without quotes.
* * boolean literals true and false without quotes.
* See
* [Filtering notifications](https://cloud.google.com/security-command-center/docs/how-to-api-filter-notifications)
* for information on how to write a filter.
* - - -
*/
@JvmName("einwasmrjfwfxauj")
public suspend fun filter(`value`: Output) {
this.filter = value
}
/**
* @param value Expression that defines the filter to apply across create/update
* events of assets or findings as specified by the event type. The
* expression is a list of zero or more restrictions combined via
* logical operators AND and OR. Parentheses are supported, and OR
* has higher precedence than AND.
* Restrictions have the form and may have
* a - character in front of them to indicate negation. The fields
* map to those defined in the corresponding resource.
* The supported operators are:
* * = for all value types.
* * >, <, >=, <= for integer values.
* * :, meaning substring matching, for strings.
* The supported value types are:
* * string literals in quotes.
* * integer literals without quotes.
* * boolean literals true and false without quotes.
* See
* [Filtering notifications](https://cloud.google.com/security-command-center/docs/how-to-api-filter-notifications)
* for information on how to write a filter.
* - - -
*/
@JvmName("oxuxeikxxmysbhmk")
public suspend fun filter(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.filter = mapped
}
internal fun build(): NotificationConfigStreamingConfigArgs =
NotificationConfigStreamingConfigArgs(
filter = filter ?: throw PulumiNullFieldException("filter"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy