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

com.pulumi.azurenative.insights.kotlin.inputs.WindowsEventLogDataSourceArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.insights.kotlin.inputs

import com.pulumi.azurenative.insights.inputs.WindowsEventLogDataSourceArgs.builder
import com.pulumi.azurenative.insights.kotlin.enums.KnownWindowsEventLogDataSourceStreams
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Definition of which Windows Event Log events will be collected and how they will be collected.
 * Only collected from Windows machines.
 * @property name A friendly name for the data source.
 * This name should be unique across all data sources (regardless of type) within the data collection rule.
 * @property streams 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.
 * @property xPathQueries A list of Windows Event Log queries in XPATH format.
 */
public data class WindowsEventLogDataSourceArgs(
    public val name: Output? = null,
    public val streams: Output>>? = null,
    public val xPathQueries: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.insights.inputs.WindowsEventLogDataSourceArgs =
        com.pulumi.azurenative.insights.inputs.WindowsEventLogDataSourceArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .streams(
                streams?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.transform(
                            { args0 -> args0 },
                            { args0 -> args0.let({ args0 -> args0.toJava() }) },
                        )
                    })
                }),
            )
            .xPathQueries(xPathQueries?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var streams: Output>>? = null

    private var xPathQueries: Output>? = null

    /**
     * @param value A friendly name for the data source.
     * This name should be unique across all data sources (regardless of type) within the data collection rule.
     */
    @JvmName("vjihadsfmjihfixd")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value 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.
     */
    @JvmName("idmyclgkxtrupedn")
    public suspend fun streams(`value`: Output>>) {
        this.streams = value
    }

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

    /**
     * @param values 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.
     */
    @JvmName("qqyrubxhvbaaktjd")
    public suspend fun streams(values: List>>) {
        this.streams = Output.all(values)
    }

    /**
     * @param value A list of Windows Event Log queries in XPATH format.
     */
    @JvmName("jxjyasejdpuephyv")
    public suspend fun xPathQueries(`value`: Output>) {
        this.xPathQueries = value
    }

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

    /**
     * @param values A list of Windows Event Log queries in XPATH format.
     */
    @JvmName("nwjasckstxbblawq")
    public suspend fun xPathQueries(values: List>) {
        this.xPathQueries = Output.all(values)
    }

    /**
     * @param value A friendly name for the data source.
     * This name should be unique across all data sources (regardless of type) within the data collection rule.
     */
    @JvmName("pgvhjmfkylfmoudq")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("eaheirutdesnujri")
    public suspend fun streams(`value`: List>?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.streams = mapped
    }

    /**
     * @param values 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.
     */
    @JvmName("akdtookjpbbnxbsf")
    public suspend fun streams(vararg values: Either) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.streams = mapped
    }

    /**
     * @param value A list of Windows Event Log queries in XPATH format.
     */
    @JvmName("nuflpmywbmtxjrca")
    public suspend fun xPathQueries(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.xPathQueries = mapped
    }

    /**
     * @param values A list of Windows Event Log queries in XPATH format.
     */
    @JvmName("qpilicsjddpemvrp")
    public suspend fun xPathQueries(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.xPathQueries = mapped
    }

    internal fun build(): WindowsEventLogDataSourceArgs = WindowsEventLogDataSourceArgs(
        name = name,
        streams = streams,
        xPathQueries = xPathQueries,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy