![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.insights.kotlin.inputs.ExtensionDataSourceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy