![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.insights.kotlin.inputs.LogFilesDataSourceArgs.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.LogFilesDataSourceArgs.builder
import com.pulumi.azurenative.insights.kotlin.enums.KnownLogFilesDataSourceFormat
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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Definition of which custom log files will be collected by this data collection rule
* @property filePatterns File Patterns where the log files are located
* @property format The data format of the log files
* @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 settings The log files specific settings.
* @property streams List of streams that this data source will be sent to.
* A stream indicates what schema will be used for this data source
*/
public data class LogFilesDataSourceArgs(
public val filePatterns: Output>,
public val format: Output>,
public val name: Output? = null,
public val settings: Output? = null,
public val streams: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.insights.inputs.LogFilesDataSourceArgs =
com.pulumi.azurenative.insights.inputs.LogFilesDataSourceArgs.builder()
.filePatterns(filePatterns.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.format(
format.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.name(name?.applyValue({ args0 -> args0 }))
.settings(settings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.streams(streams.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [LogFilesDataSourceArgs].
*/
@PulumiTagMarker
public class LogFilesDataSourceArgsBuilder internal constructor() {
private var filePatterns: Output>? = null
private var format: Output>? = null
private var name: Output? = null
private var settings: Output? = null
private var streams: Output>? = null
/**
* @param value File Patterns where the log files are located
*/
@JvmName("appdtfpwawcnutye")
public suspend fun filePatterns(`value`: Output>) {
this.filePatterns = value
}
@JvmName("erhrijjinhtubyus")
public suspend fun filePatterns(vararg values: Output) {
this.filePatterns = Output.all(values.asList())
}
/**
* @param values File Patterns where the log files are located
*/
@JvmName("hivmoytsinlwmpat")
public suspend fun filePatterns(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy