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

com.pulumi.azure.monitoring.kotlin.inputs.DataCollectionRuleDataSourcesExtensionArgs.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.DataCollectionRuleDataSourcesExtensionArgs.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 extensionJson A JSON String which specifies the extension setting.
 * @property extensionName The name of the VM extension.
 * @property inputDataSources Specifies a list of data sources this extension needs data from. An item should be a name of a supported data source which produces only one stream. Supported data sources type: `performance_counter`, `windows_event_log`,and `syslog`.
 * @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`, `Microsoft-InsightsMetrics`, `Microsoft-Perf`, `Microsoft-Syslog`, `Microsoft-WindowsEvent`.
 */
public data class DataCollectionRuleDataSourcesExtensionArgs(
    public val extensionJson: Output? = null,
    public val extensionName: Output,
    public val inputDataSources: Output>? = null,
    public val name: Output,
    public val streams: Output>,
) : ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.monitoring.inputs.DataCollectionRuleDataSourcesExtensionArgs =
        com.pulumi.azure.monitoring.inputs.DataCollectionRuleDataSourcesExtensionArgs.builder()
            .extensionJson(extensionJson?.applyValue({ args0 -> args0 }))
            .extensionName(extensionName.applyValue({ args0 -> args0 }))
            .inputDataSources(inputDataSources?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name.applyValue({ args0 -> args0 }))
            .streams(streams.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [DataCollectionRuleDataSourcesExtensionArgs].
 */
@PulumiTagMarker
public class DataCollectionRuleDataSourcesExtensionArgsBuilder internal constructor() {
    private var extensionJson: Output? = null

    private var extensionName: Output? = null

    private var inputDataSources: Output>? = null

    private var name: Output? = null

    private var streams: Output>? = null

    /**
     * @param value A JSON String which specifies the extension setting.
     */
    @JvmName("hedtsgkamiroknpa")
    public suspend fun extensionJson(`value`: Output) {
        this.extensionJson = value
    }

    /**
     * @param value The name of the VM extension.
     */
    @JvmName("vvqjgvqdutatluim")
    public suspend fun extensionName(`value`: Output) {
        this.extensionName = value
    }

    /**
     * @param value Specifies a list of data sources this extension needs data from. An item should be a name of a supported data source which produces only one stream. Supported data sources type: `performance_counter`, `windows_event_log`,and `syslog`.
     */
    @JvmName("ynsmtoiblugulsfi")
    public suspend fun inputDataSources(`value`: Output>) {
        this.inputDataSources = value
    }

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

    /**
     * @param values Specifies a list of data sources this extension needs data from. An item should be a name of a supported data source which produces only one stream. Supported data sources type: `performance_counter`, `windows_event_log`,and `syslog`.
     */
    @JvmName("trhqipipwqkmtpeh")
    public suspend fun inputDataSources(values: List>) {
        this.inputDataSources = 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("nygxwmqlngamlvrf")
    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`, `Microsoft-InsightsMetrics`, `Microsoft-Perf`, `Microsoft-Syslog`, `Microsoft-WindowsEvent`.
     */
    @JvmName("khmtebscfssbyjgd")
    public suspend fun streams(`value`: Output>) {
        this.streams = value
    }

    @JvmName("iwxaimjokjrcrpdh")
    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`, `Microsoft-InsightsMetrics`, `Microsoft-Perf`, `Microsoft-Syslog`, `Microsoft-WindowsEvent`.
     */
    @JvmName("qnikvmbqinedwqso")
    public suspend fun streams(values: List>) {
        this.streams = Output.all(values)
    }

    /**
     * @param value A JSON String which specifies the extension setting.
     */
    @JvmName("kdbdhgmajmjntjdt")
    public suspend fun extensionJson(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.extensionJson = mapped
    }

    /**
     * @param value The name of the VM extension.
     */
    @JvmName("xfvgakolhhfbftub")
    public suspend fun extensionName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.extensionName = mapped
    }

    /**
     * @param value Specifies a list of data sources this extension needs data from. An item should be a name of a supported data source which produces only one stream. Supported data sources type: `performance_counter`, `windows_event_log`,and `syslog`.
     */
    @JvmName("byyjypvdiiblgasc")
    public suspend fun inputDataSources(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inputDataSources = mapped
    }

    /**
     * @param values Specifies a list of data sources this extension needs data from. An item should be a name of a supported data source which produces only one stream. Supported data sources type: `performance_counter`, `windows_event_log`,and `syslog`.
     */
    @JvmName("qyfxhxjeycxkqnmh")
    public suspend fun inputDataSources(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inputDataSources = mapped
    }

    /**
     * @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("ldxematmhvyqhbtt")
    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`, `Microsoft-InsightsMetrics`, `Microsoft-Perf`, `Microsoft-Syslog`, `Microsoft-WindowsEvent`.
     */
    @JvmName("svdlfsaqhifgilwb")
    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`, `Microsoft-InsightsMetrics`, `Microsoft-Perf`, `Microsoft-Syslog`, `Microsoft-WindowsEvent`.
     */
    @JvmName("upltoivulycdfcmn")
    public suspend fun streams(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.streams = mapped
    }

    internal fun build(): DataCollectionRuleDataSourcesExtensionArgs =
        DataCollectionRuleDataSourcesExtensionArgs(
            extensionJson = extensionJson,
            extensionName = extensionName ?: throw PulumiNullFieldException("extensionName"),
            inputDataSources = inputDataSources,
            name = name ?: throw PulumiNullFieldException("name"),
            streams = streams ?: throw PulumiNullFieldException("streams"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy