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

com.pulumi.azure.monitoring.kotlin.inputs.DataCollectionRuleDataSourcesLogFileArgs.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.DataCollectionRuleDataSourcesLogFileArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property filePatterns Specifies a list of file patterns where the log files are located. For example, `C:\\JavaLogs\\*.log`.
 * @property format The data format of the log files. possible value is `text`.
 * @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 settings A `settings` block as defined below.
 * @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 value should be custom stream names.
 */
public data class DataCollectionRuleDataSourcesLogFileArgs(
    public val filePatterns: Output>,
    public val format: Output,
    public val name: Output,
    public val settings: Output? = null,
    public val streams: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.DataCollectionRuleDataSourcesLogFileArgs = com.pulumi.azure.monitoring.inputs.DataCollectionRuleDataSourcesLogFileArgs.builder()
        .filePatterns(filePatterns.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
        .format(format.applyValue({ args0 -> args0 }))
        .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 [DataCollectionRuleDataSourcesLogFileArgs].
 */
@PulumiTagMarker
public class DataCollectionRuleDataSourcesLogFileArgsBuilder 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 Specifies a list of file patterns where the log files are located. For example, `C:\\JavaLogs\\*.log`.
     */
    @JvmName("hlaqbuedujxwvrjq")
    public suspend fun filePatterns(`value`: Output>) {
        this.filePatterns = value
    }

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

    /**
     * @param values Specifies a list of file patterns where the log files are located. For example, `C:\\JavaLogs\\*.log`.
     */
    @JvmName("vuquejyacgijtgna")
    public suspend fun filePatterns(values: List>) {
        this.filePatterns = Output.all(values)
    }

    /**
     * @param value The data format of the log files. possible value is `text`.
     */
    @JvmName("pqcluycahmrhkujw")
    public suspend fun format(`value`: Output) {
        this.format = value
    }

    /**
     * @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("iarmsklobbpdrkav")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A `settings` block as defined below.
     */
    @JvmName("usfpsftekwpohqhn")
    public suspend fun settings(`value`: Output) {
        this.settings = 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 value should be custom stream names.
     */
    @JvmName("lvdbhwyehqcjjden")
    public suspend fun streams(`value`: Output>) {
        this.streams = value
    }

    @JvmName("mnnvttlxipiuvnbl")
    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 value should be custom stream names.
     */
    @JvmName("earvhubqecdobatd")
    public suspend fun streams(values: List>) {
        this.streams = Output.all(values)
    }

    /**
     * @param value Specifies a list of file patterns where the log files are located. For example, `C:\\JavaLogs\\*.log`.
     */
    @JvmName("oerpvngovuecdbsk")
    public suspend fun filePatterns(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.filePatterns = mapped
    }

    /**
     * @param values Specifies a list of file patterns where the log files are located. For example, `C:\\JavaLogs\\*.log`.
     */
    @JvmName("bvpokgfqqdmpxksr")
    public suspend fun filePatterns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.filePatterns = mapped
    }

    /**
     * @param value The data format of the log files. possible value is `text`.
     */
    @JvmName("yaphwukbacoheqjp")
    public suspend fun format(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.format = 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("jypkoibgsqtupbfl")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A `settings` block as defined below.
     */
    @JvmName("mcudhwkukqoywwev")
    public suspend fun settings(`value`: DataCollectionRuleDataSourcesLogFileSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.settings = mapped
    }

    /**
     * @param argument A `settings` block as defined below.
     */
    @JvmName("quibxmheajyfqwoy")
    public suspend fun settings(argument: suspend DataCollectionRuleDataSourcesLogFileSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = DataCollectionRuleDataSourcesLogFileSettingsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.settings = 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 value should be custom stream names.
     */
    @JvmName("nnsmxswvlyhhrcrp")
    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 value should be custom stream names.
     */
    @JvmName("eligvirqxmnwrind")
    public suspend fun streams(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.streams = mapped
    }

    internal fun build(): DataCollectionRuleDataSourcesLogFileArgs =
        DataCollectionRuleDataSourcesLogFileArgs(
            filePatterns = filePatterns ?: throw PulumiNullFieldException("filePatterns"),
            format = format ?: throw PulumiNullFieldException("format"),
            name = name ?: throw PulumiNullFieldException("name"),
            settings = settings,
            streams = streams ?: throw PulumiNullFieldException("streams"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy