All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.monitoring.kotlin.inputs.DataCollectionRuleDataSourcesWindowsEventLogArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.monitoring.kotlin.inputs

import com.pulumi.azure.monitoring.inputs.DataCollectionRuleDataSourcesWindowsEventLogArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property name The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
 * @property streams Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to `Microsoft-Event`,and `Microsoft-WindowsEvent`, `Microsoft-RomeDetectionEvent`, and `Microsoft-SecurityEvent`.
 * @property xPathQueries Specifies a list of Windows Event Log queries in XPath expression. Please see [this document](https://learn.microsoft.com/en-us/azure/azure-monitor/agents/data-collection-rule-azure-monitor-agent?tabs=cli#filter-events-using-xpath-queries) for more information.
 */
public data class DataCollectionRuleDataSourcesWindowsEventLogArgs(
    public val name: Output,
    public val streams: Output>,
    public val xPathQueries: Output>,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.monitoring.inputs.DataCollectionRuleDataSourcesWindowsEventLogArgs =
        com.pulumi.azure.monitoring.inputs.DataCollectionRuleDataSourcesWindowsEventLogArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .streams(streams.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .xPathQueries(xPathQueries.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [DataCollectionRuleDataSourcesWindowsEventLogArgs].
 */
@PulumiTagMarker
public class DataCollectionRuleDataSourcesWindowsEventLogArgsBuilder internal constructor() {
    private var name: Output? = null

    private var streams: Output>? = null

    private var xPathQueries: Output>? = null

    /**
     * @param value The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
     */
    @JvmName("mgknvgyvocurpilm")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to `Microsoft-Event`,and `Microsoft-WindowsEvent`, `Microsoft-RomeDetectionEvent`, and `Microsoft-SecurityEvent`.
     */
    @JvmName("hxxvyxwujtvlcogx")
    public suspend fun streams(`value`: Output>) {
        this.streams = value
    }

    @JvmName("eqkjlrpcrqpmdvew")
    public suspend fun streams(vararg values: Output) {
        this.streams = Output.all(values.asList())
    }

    /**
     * @param values Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to `Microsoft-Event`,and `Microsoft-WindowsEvent`, `Microsoft-RomeDetectionEvent`, and `Microsoft-SecurityEvent`.
     */
    @JvmName("vkinvlrssirmgnvu")
    public suspend fun streams(values: List>) {
        this.streams = Output.all(values)
    }

    /**
     * @param value Specifies a list of Windows Event Log queries in XPath expression. Please see [this document](https://learn.microsoft.com/en-us/azure/azure-monitor/agents/data-collection-rule-azure-monitor-agent?tabs=cli#filter-events-using-xpath-queries) for more information.
     */
    @JvmName("vqtwhsmhmebxtotg")
    public suspend fun xPathQueries(`value`: Output>) {
        this.xPathQueries = value
    }

    @JvmName("jfrperoedfbnkpdh")
    public suspend fun xPathQueries(vararg values: Output) {
        this.xPathQueries = Output.all(values.asList())
    }

    /**
     * @param values Specifies a list of Windows Event Log queries in XPath expression. Please see [this document](https://learn.microsoft.com/en-us/azure/azure-monitor/agents/data-collection-rule-azure-monitor-agent?tabs=cli#filter-events-using-xpath-queries) for more information.
     */
    @JvmName("lkyryhvbgpyyhaoy")
    public suspend fun xPathQueries(values: List>) {
        this.xPathQueries = Output.all(values)
    }

    /**
     * @param value The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
     */
    @JvmName("nijokgjupwgrnyku")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to `Microsoft-Event`,and `Microsoft-WindowsEvent`, `Microsoft-RomeDetectionEvent`, and `Microsoft-SecurityEvent`.
     */
    @JvmName("ipqfbqhifiwbrhbn")
    public suspend fun streams(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.streams = mapped
    }

    /**
     * @param values Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to `Microsoft-Event`,and `Microsoft-WindowsEvent`, `Microsoft-RomeDetectionEvent`, and `Microsoft-SecurityEvent`.
     */
    @JvmName("oodprnagqgmdeqem")
    public suspend fun streams(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.streams = mapped
    }

    /**
     * @param value Specifies a list of Windows Event Log queries in XPath expression. Please see [this document](https://learn.microsoft.com/en-us/azure/azure-monitor/agents/data-collection-rule-azure-monitor-agent?tabs=cli#filter-events-using-xpath-queries) for more information.
     */
    @JvmName("yirwqoeauqnotits")
    public suspend fun xPathQueries(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.xPathQueries = mapped
    }

    /**
     * @param values Specifies a list of Windows Event Log queries in XPath expression. Please see [this document](https://learn.microsoft.com/en-us/azure/azure-monitor/agents/data-collection-rule-azure-monitor-agent?tabs=cli#filter-events-using-xpath-queries) for more information.
     */
    @JvmName("dyjwjyjasqvyrdxn")
    public suspend fun xPathQueries(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.xPathQueries = mapped
    }

    internal fun build(): DataCollectionRuleDataSourcesWindowsEventLogArgs =
        DataCollectionRuleDataSourcesWindowsEventLogArgs(
            name = name ?: throw PulumiNullFieldException("name"),
            streams = streams ?: throw PulumiNullFieldException("streams"),
            xPathQueries = xPathQueries ?: throw PulumiNullFieldException("xPathQueries"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy