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

com.pulumi.azurenative.insights.kotlin.inputs.ExtensionDataSourceArgs.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.ExtensionDataSourceArgs.builder
import com.pulumi.azurenative.insights.kotlin.enums.KnownExtensionDataSourceStreams
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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Definition of which data will be collected from a separate VM extension that integrates with the Azure Monitor Agent.
 * Collected from either Windows and Linux machines, depending on which extension is defined.
 * @property extensionName The name of the VM extension.
 * @property extensionSettings The extension settings. The format is specific for particular extension.
 * @property inputDataSources The list of data sources this extension needs data from.
 * @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.
 */
public data class ExtensionDataSourceArgs(
    public val extensionName: Output,
    public val extensionSettings: Output? = null,
    public val inputDataSources: Output>? = null,
    public val name: Output? = null,
    public val streams: Output>>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.insights.inputs.ExtensionDataSourceArgs =
        com.pulumi.azurenative.insights.inputs.ExtensionDataSourceArgs.builder()
            .extensionName(extensionName.applyValue({ args0 -> args0 }))
            .extensionSettings(extensionSettings?.applyValue({ args0 -> args0 }))
            .inputDataSources(inputDataSources?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .streams(
                streams?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.transform(
                            { args0 -> args0 },
                            { args0 -> args0.let({ args0 -> args0.toJava() }) },
                        )
                    })
                }),
            ).build()
}

/**
 * Builder for [ExtensionDataSourceArgs].
 */
@PulumiTagMarker
public class ExtensionDataSourceArgsBuilder internal constructor() {
    private var extensionName: Output? = null

    private var extensionSettings: Output? = null

    private var inputDataSources: Output>? = null

    private var name: Output? = null

    private var streams: Output>>? = null

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

    /**
     * @param value The extension settings. The format is specific for particular extension.
     */
    @JvmName("qmeiwptpflsofjig")
    public suspend fun extensionSettings(`value`: Output) {
        this.extensionSettings = value
    }

    /**
     * @param value The list of data sources this extension needs data from.
     */
    @JvmName("jbrmcyqifttntqkc")
    public suspend fun inputDataSources(`value`: Output>) {
        this.inputDataSources = value
    }

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

    /**
     * @param values The list of data sources this extension needs data from.
     */
    @JvmName("adrqoxncvapmxwho")
    public suspend fun inputDataSources(values: List>) {
        this.inputDataSources = 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("noftpqkaubiqjnbs")
    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("icwcdtbvfwbbdcpa")
    public suspend fun streams(`value`: Output>>) {
        this.streams = value
    }

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

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

    /**
     * @param value The extension settings. The format is specific for particular extension.
     */
    @JvmName("laonoujnjiyclwoa")
    public suspend fun extensionSettings(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.extensionSettings = mapped
    }

    /**
     * @param value The list of data sources this extension needs data from.
     */
    @JvmName("byxlamcblutqmgnr")
    public suspend fun inputDataSources(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inputDataSources = mapped
    }

    /**
     * @param values The list of data sources this extension needs data from.
     */
    @JvmName("twuaitqgesmtyuig")
    public suspend fun inputDataSources(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inputDataSources = mapped
    }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy