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

com.pulumi.azurenative.insights.kotlin.inputs.IisLogsDataSourceArgs.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.IisLogsDataSourceArgs.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

/**
 * Enables IIS logs to be collected by this data collection rule.
 * @property logDirectories Absolute paths file location
 * @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 IIS streams
 */
public data class IisLogsDataSourceArgs(
    public val logDirectories: Output>? = null,
    public val name: Output? = null,
    public val streams: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.insights.inputs.IisLogsDataSourceArgs =
        com.pulumi.azurenative.insights.inputs.IisLogsDataSourceArgs.builder()
            .logDirectories(logDirectories?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .streams(streams.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [IisLogsDataSourceArgs].
 */
@PulumiTagMarker
public class IisLogsDataSourceArgsBuilder internal constructor() {
    private var logDirectories: Output>? = null

    private var name: Output? = null

    private var streams: Output>? = null

    /**
     * @param value Absolute paths file location
     */
    @JvmName("uvtmtvddnocedvcc")
    public suspend fun logDirectories(`value`: Output>) {
        this.logDirectories = value
    }

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

    /**
     * @param values Absolute paths file location
     */
    @JvmName("acwqxawtvswqkmcg")
    public suspend fun logDirectories(values: List>) {
        this.logDirectories = 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("yxafcaxjdcssjdfi")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value IIS streams
     */
    @JvmName("cwwwwvmndyijwocq")
    public suspend fun streams(`value`: Output>) {
        this.streams = value
    }

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

    /**
     * @param values IIS streams
     */
    @JvmName("igedaesojpllawcj")
    public suspend fun streams(values: List>) {
        this.streams = Output.all(values)
    }

    /**
     * @param value Absolute paths file location
     */
    @JvmName("fhjdjwjabufcnivf")
    public suspend fun logDirectories(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logDirectories = mapped
    }

    /**
     * @param values Absolute paths file location
     */
    @JvmName("jnwbvscbfvosivhl")
    public suspend fun logDirectories(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.logDirectories = 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("xkxcpmkvxowbhdtj")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value IIS streams
     */
    @JvmName("sufyifokxsfulyfl")
    public suspend fun streams(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.streams = mapped
    }

    /**
     * @param values IIS streams
     */
    @JvmName("qhaqhygejaqsphdu")
    public suspend fun streams(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.streams = mapped
    }

    internal fun build(): IisLogsDataSourceArgs = IisLogsDataSourceArgs(
        logDirectories = logDirectories,
        name = name,
        streams = streams ?: throw PulumiNullFieldException("streams"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy