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

com.pulumi.azure.monitoring.kotlin.inputs.DataCollectionRuleDataFlowArgs.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.DataCollectionRuleDataFlowArgs.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 builtInTransform The built-in transform to transform stream data.
 * @property destinations Specifies a list of destination names. A `azure_monitor_metrics` data source only allows for stream of kind `Microsoft-InsightsMetrics`.
 * @property outputStream The output stream of the transform. Only required if the data flow changes data to a different stream.
 * @property streams Specifies a list of streams. Possible values include but not limited to `Microsoft-Event`, `Microsoft-InsightsMetrics`, `Microsoft-Perf`, `Microsoft-Syslog`, `Microsoft-WindowsEvent`, and `Microsoft-PrometheusMetrics`.
 * @property transformKql The KQL query to transform stream data.
 */
public data class DataCollectionRuleDataFlowArgs(
    public val builtInTransform: Output? = null,
    public val destinations: Output>,
    public val outputStream: Output? = null,
    public val streams: Output>,
    public val transformKql: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.DataCollectionRuleDataFlowArgs =
        com.pulumi.azure.monitoring.inputs.DataCollectionRuleDataFlowArgs.builder()
            .builtInTransform(builtInTransform?.applyValue({ args0 -> args0 }))
            .destinations(destinations.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .outputStream(outputStream?.applyValue({ args0 -> args0 }))
            .streams(streams.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .transformKql(transformKql?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DataCollectionRuleDataFlowArgs].
 */
@PulumiTagMarker
public class DataCollectionRuleDataFlowArgsBuilder internal constructor() {
    private var builtInTransform: Output? = null

    private var destinations: Output>? = null

    private var outputStream: Output? = null

    private var streams: Output>? = null

    private var transformKql: Output? = null

    /**
     * @param value The built-in transform to transform stream data.
     */
    @JvmName("juyhginxhktnyyfo")
    public suspend fun builtInTransform(`value`: Output) {
        this.builtInTransform = value
    }

    /**
     * @param value Specifies a list of destination names. A `azure_monitor_metrics` data source only allows for stream of kind `Microsoft-InsightsMetrics`.
     */
    @JvmName("xduyduavoptahewj")
    public suspend fun destinations(`value`: Output>) {
        this.destinations = value
    }

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

    /**
     * @param values Specifies a list of destination names. A `azure_monitor_metrics` data source only allows for stream of kind `Microsoft-InsightsMetrics`.
     */
    @JvmName("aktgrrxkarjihhtk")
    public suspend fun destinations(values: List>) {
        this.destinations = Output.all(values)
    }

    /**
     * @param value The output stream of the transform. Only required if the data flow changes data to a different stream.
     */
    @JvmName("jifpowbvhpklrvmf")
    public suspend fun outputStream(`value`: Output) {
        this.outputStream = value
    }

    /**
     * @param value Specifies a list of streams. Possible values include but not limited to `Microsoft-Event`, `Microsoft-InsightsMetrics`, `Microsoft-Perf`, `Microsoft-Syslog`, `Microsoft-WindowsEvent`, and `Microsoft-PrometheusMetrics`.
     */
    @JvmName("hmrgmxcucgmdflon")
    public suspend fun streams(`value`: Output>) {
        this.streams = value
    }

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

    /**
     * @param values Specifies a list of streams. Possible values include but not limited to `Microsoft-Event`, `Microsoft-InsightsMetrics`, `Microsoft-Perf`, `Microsoft-Syslog`, `Microsoft-WindowsEvent`, and `Microsoft-PrometheusMetrics`.
     */
    @JvmName("frbqvhnwwadudmea")
    public suspend fun streams(values: List>) {
        this.streams = Output.all(values)
    }

    /**
     * @param value The KQL query to transform stream data.
     */
    @JvmName("tlcydsfoecljpjns")
    public suspend fun transformKql(`value`: Output) {
        this.transformKql = value
    }

    /**
     * @param value The built-in transform to transform stream data.
     */
    @JvmName("rggicjnsaebwblag")
    public suspend fun builtInTransform(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.builtInTransform = mapped
    }

    /**
     * @param value Specifies a list of destination names. A `azure_monitor_metrics` data source only allows for stream of kind `Microsoft-InsightsMetrics`.
     */
    @JvmName("gvajrjinmxvmepcl")
    public suspend fun destinations(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.destinations = mapped
    }

    /**
     * @param values Specifies a list of destination names. A `azure_monitor_metrics` data source only allows for stream of kind `Microsoft-InsightsMetrics`.
     */
    @JvmName("infyyyvhtgwkgyak")
    public suspend fun destinations(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.destinations = mapped
    }

    /**
     * @param value The output stream of the transform. Only required if the data flow changes data to a different stream.
     */
    @JvmName("mbqpyuvqgpesecbk")
    public suspend fun outputStream(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.outputStream = mapped
    }

    /**
     * @param value Specifies a list of streams. Possible values include but not limited to `Microsoft-Event`, `Microsoft-InsightsMetrics`, `Microsoft-Perf`, `Microsoft-Syslog`, `Microsoft-WindowsEvent`, and `Microsoft-PrometheusMetrics`.
     */
    @JvmName("udoamtmvunyqbfdv")
    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. Possible values include but not limited to `Microsoft-Event`, `Microsoft-InsightsMetrics`, `Microsoft-Perf`, `Microsoft-Syslog`, `Microsoft-WindowsEvent`, and `Microsoft-PrometheusMetrics`.
     */
    @JvmName("hvnbvntbylnqpqvw")
    public suspend fun streams(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.streams = mapped
    }

    /**
     * @param value The KQL query to transform stream data.
     */
    @JvmName("cednrajbigidqpqy")
    public suspend fun transformKql(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transformKql = mapped
    }

    internal fun build(): DataCollectionRuleDataFlowArgs = DataCollectionRuleDataFlowArgs(
        builtInTransform = builtInTransform,
        destinations = destinations ?: throw PulumiNullFieldException("destinations"),
        outputStream = outputStream,
        streams = streams ?: throw PulumiNullFieldException("streams"),
        transformKql = transformKql,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy