
com.pulumi.googlenative.securitycenter.v1.kotlin.MuteConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.securitycenter.v1.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.securitycenter.v1.MuteConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Creates a mute config.
* Auto-naming is currently not supported for this resource.
* @property description A description of the mute config.
* @property displayName The human readable name to be displayed for the mute config.
* @property filter An expression that defines the filter to apply across create/update events of findings. While creating a filter string, be mindful of the scope in which the mute configuration is being created. E.g., If a filter contains project = X but is created under the project = Y scope, it might not match any findings. The following field and operator combinations are supported: * severity: `=`, `:` * category: `=`, `:` * resource.name: `=`, `:` * resource.project_name: `=`, `:` * resource.project_display_name: `=`, `:` * resource.folders.resource_folder: `=`, `:` * resource.parent_name: `=`, `:` * resource.parent_display_name: `=`, `:` * resource.type: `=`, `:` * finding_class: `=`, `:` * indicator.ip_addresses: `=`, `:` * indicator.domains: `=`, `:`
* @property muteConfigId Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.
* @property name This field will be ignored if provided on config creation. Format "organizations/{organization}/muteConfigs/{mute_config}" "folders/{folder}/muteConfigs/{mute_config}" "projects/{project}/muteConfigs/{mute_config}"
* @property project
*/
public data class MuteConfigArgs(
public val description: Output? = null,
public val displayName: Output? = null,
public val filter: Output? = null,
public val muteConfigId: Output? = null,
public val name: Output? = null,
public val project: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.securitycenter.v1.MuteConfigArgs =
com.pulumi.googlenative.securitycenter.v1.MuteConfigArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.displayName(displayName?.applyValue({ args0 -> args0 }))
.filter(filter?.applyValue({ args0 -> args0 }))
.muteConfigId(muteConfigId?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [MuteConfigArgs].
*/
@PulumiTagMarker
public class MuteConfigArgsBuilder internal constructor() {
private var description: Output? = null
private var displayName: Output? = null
private var filter: Output? = null
private var muteConfigId: Output? = null
private var name: Output? = null
private var project: Output? = null
/**
* @param value A description of the mute config.
*/
@JvmName("hdivkjlxlbpjrlkp")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The human readable name to be displayed for the mute config.
*/
@JvmName("xvnrpclmqrcjvftf")
public suspend fun displayName(`value`: Output) {
this.displayName = value
}
/**
* @param value An expression that defines the filter to apply across create/update events of findings. While creating a filter string, be mindful of the scope in which the mute configuration is being created. E.g., If a filter contains project = X but is created under the project = Y scope, it might not match any findings. The following field and operator combinations are supported: * severity: `=`, `:` * category: `=`, `:` * resource.name: `=`, `:` * resource.project_name: `=`, `:` * resource.project_display_name: `=`, `:` * resource.folders.resource_folder: `=`, `:` * resource.parent_name: `=`, `:` * resource.parent_display_name: `=`, `:` * resource.type: `=`, `:` * finding_class: `=`, `:` * indicator.ip_addresses: `=`, `:` * indicator.domains: `=`, `:`
*/
@JvmName("engvaeulmgssgjjt")
public suspend fun filter(`value`: Output) {
this.filter = value
}
/**
* @param value Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.
*/
@JvmName("pxgyblagohqhstas")
public suspend fun muteConfigId(`value`: Output) {
this.muteConfigId = value
}
/**
* @param value This field will be ignored if provided on config creation. Format "organizations/{organization}/muteConfigs/{mute_config}" "folders/{folder}/muteConfigs/{mute_config}" "projects/{project}/muteConfigs/{mute_config}"
*/
@JvmName("hhavkqvdylvgmkxt")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value
*/
@JvmName("bolcxrustfmsdpqk")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value A description of the mute config.
*/
@JvmName("tcebweltolaabhal")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value The human readable name to be displayed for the mute config.
*/
@JvmName("syhllfduxrwhmwjp")
public suspend fun displayName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.displayName = mapped
}
/**
* @param value An expression that defines the filter to apply across create/update events of findings. While creating a filter string, be mindful of the scope in which the mute configuration is being created. E.g., If a filter contains project = X but is created under the project = Y scope, it might not match any findings. The following field and operator combinations are supported: * severity: `=`, `:` * category: `=`, `:` * resource.name: `=`, `:` * resource.project_name: `=`, `:` * resource.project_display_name: `=`, `:` * resource.folders.resource_folder: `=`, `:` * resource.parent_name: `=`, `:` * resource.parent_display_name: `=`, `:` * resource.type: `=`, `:` * finding_class: `=`, `:` * indicator.ip_addresses: `=`, `:` * indicator.domains: `=`, `:`
*/
@JvmName("sppbproudlrnsjgv")
public suspend fun filter(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.filter = mapped
}
/**
* @param value Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.
*/
@JvmName("vwpqlmywydexrivf")
public suspend fun muteConfigId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.muteConfigId = mapped
}
/**
* @param value This field will be ignored if provided on config creation. Format "organizations/{organization}/muteConfigs/{mute_config}" "folders/{folder}/muteConfigs/{mute_config}" "projects/{project}/muteConfigs/{mute_config}"
*/
@JvmName("wxceqpwrbuwhhqqm")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value
*/
@JvmName("hbturijagcjhcfiy")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
internal fun build(): MuteConfigArgs = MuteConfigArgs(
description = description,
displayName = displayName,
filter = filter,
muteConfigId = muteConfigId,
name = name,
project = project,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy