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

com.pulumi.azurenative.web.kotlin.WebAppDiagnosticLogsConfigurationSlotArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.web.kotlin

import com.pulumi.azurenative.web.WebAppDiagnosticLogsConfigurationSlotArgs.builder
import com.pulumi.azurenative.web.kotlin.inputs.ApplicationLogsConfigArgs
import com.pulumi.azurenative.web.kotlin.inputs.ApplicationLogsConfigArgsBuilder
import com.pulumi.azurenative.web.kotlin.inputs.EnabledConfigArgs
import com.pulumi.azurenative.web.kotlin.inputs.EnabledConfigArgsBuilder
import com.pulumi.azurenative.web.kotlin.inputs.HttpLogsConfigArgs
import com.pulumi.azurenative.web.kotlin.inputs.HttpLogsConfigArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Configuration of App Service site logs.
 * Azure REST API version: 2023-12-01.
 * Other available API versions: 2016-08-01, 2018-02-01, 2018-11-01, 2019-08-01, 2020-06-01, 2020-09-01, 2020-10-01, 2020-12-01, 2021-01-01, 2021-01-15, 2021-02-01, 2021-03-01, 2022-03-01, 2022-09-01, 2023-01-01.
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:web:WebAppDiagnosticLogsConfigurationSlot myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/logs
 * ```
 * @property applicationLogs Application logs configuration.
 * @property detailedErrorMessages Detailed error messages configuration.
 * @property failedRequestsTracing Failed requests tracing configuration.
 * @property httpLogs HTTP logs configuration.
 * @property kind Kind of resource.
 * @property name Name of the app.
 * @property resourceGroupName Name of the resource group to which the resource belongs.
 * @property slot Name of the deployment slot. If a slot is not specified, the API will update the logging configuration for the production slot.
 */
public data class WebAppDiagnosticLogsConfigurationSlotArgs(
    public val applicationLogs: Output? = null,
    public val detailedErrorMessages: Output? = null,
    public val failedRequestsTracing: Output? = null,
    public val httpLogs: Output? = null,
    public val kind: Output? = null,
    public val name: Output? = null,
    public val resourceGroupName: Output? = null,
    public val slot: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.web.WebAppDiagnosticLogsConfigurationSlotArgs =
        com.pulumi.azurenative.web.WebAppDiagnosticLogsConfigurationSlotArgs.builder()
            .applicationLogs(applicationLogs?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .detailedErrorMessages(
                detailedErrorMessages?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .failedRequestsTracing(
                failedRequestsTracing?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .httpLogs(httpLogs?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .kind(kind?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .slot(slot?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [WebAppDiagnosticLogsConfigurationSlotArgs].
 */
@PulumiTagMarker
public class WebAppDiagnosticLogsConfigurationSlotArgsBuilder internal constructor() {
    private var applicationLogs: Output? = null

    private var detailedErrorMessages: Output? = null

    private var failedRequestsTracing: Output? = null

    private var httpLogs: Output? = null

    private var kind: Output? = null

    private var name: Output? = null

    private var resourceGroupName: Output? = null

    private var slot: Output? = null

    /**
     * @param value Application logs configuration.
     */
    @JvmName("chptncutkwgwpjqj")
    public suspend fun applicationLogs(`value`: Output) {
        this.applicationLogs = value
    }

    /**
     * @param value Detailed error messages configuration.
     */
    @JvmName("naltcfnjmmdspisi")
    public suspend fun detailedErrorMessages(`value`: Output) {
        this.detailedErrorMessages = value
    }

    /**
     * @param value Failed requests tracing configuration.
     */
    @JvmName("kuodfvlgfkichelv")
    public suspend fun failedRequestsTracing(`value`: Output) {
        this.failedRequestsTracing = value
    }

    /**
     * @param value HTTP logs configuration.
     */
    @JvmName("qaagnlvppwbipxlo")
    public suspend fun httpLogs(`value`: Output) {
        this.httpLogs = value
    }

    /**
     * @param value Kind of resource.
     */
    @JvmName("vutyeeywatjpnkmy")
    public suspend fun kind(`value`: Output) {
        this.kind = value
    }

    /**
     * @param value Name of the app.
     */
    @JvmName("lnoxmsrjrjxbpctf")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Name of the resource group to which the resource belongs.
     */
    @JvmName("qrakdpbytwpklkni")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value Name of the deployment slot. If a slot is not specified, the API will update the logging configuration for the production slot.
     */
    @JvmName("xlutewlqqpyianta")
    public suspend fun slot(`value`: Output) {
        this.slot = value
    }

    /**
     * @param value Application logs configuration.
     */
    @JvmName("cnvigeyvcpdybgfc")
    public suspend fun applicationLogs(`value`: ApplicationLogsConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationLogs = mapped
    }

    /**
     * @param argument Application logs configuration.
     */
    @JvmName("fqwfrcdbqefoqgjq")
    public suspend fun applicationLogs(argument: suspend ApplicationLogsConfigArgsBuilder.() -> Unit) {
        val toBeMapped = ApplicationLogsConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.applicationLogs = mapped
    }

    /**
     * @param value Detailed error messages configuration.
     */
    @JvmName("txgjlwsfmjanwcnc")
    public suspend fun detailedErrorMessages(`value`: EnabledConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.detailedErrorMessages = mapped
    }

    /**
     * @param argument Detailed error messages configuration.
     */
    @JvmName("qyiajqkornysybeb")
    public suspend fun detailedErrorMessages(argument: suspend EnabledConfigArgsBuilder.() -> Unit) {
        val toBeMapped = EnabledConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.detailedErrorMessages = mapped
    }

    /**
     * @param value Failed requests tracing configuration.
     */
    @JvmName("qwnfyyplnsdswrrq")
    public suspend fun failedRequestsTracing(`value`: EnabledConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.failedRequestsTracing = mapped
    }

    /**
     * @param argument Failed requests tracing configuration.
     */
    @JvmName("mhwfjqudwvfkqgau")
    public suspend fun failedRequestsTracing(argument: suspend EnabledConfigArgsBuilder.() -> Unit) {
        val toBeMapped = EnabledConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.failedRequestsTracing = mapped
    }

    /**
     * @param value HTTP logs configuration.
     */
    @JvmName("ntjrqllceypixwqb")
    public suspend fun httpLogs(`value`: HttpLogsConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.httpLogs = mapped
    }

    /**
     * @param argument HTTP logs configuration.
     */
    @JvmName("bfwuwivxfqciuopk")
    public suspend fun httpLogs(argument: suspend HttpLogsConfigArgsBuilder.() -> Unit) {
        val toBeMapped = HttpLogsConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.httpLogs = mapped
    }

    /**
     * @param value Kind of resource.
     */
    @JvmName("mljgcvrjrmwanivw")
    public suspend fun kind(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kind = mapped
    }

    /**
     * @param value Name of the app.
     */
    @JvmName("qcyjaaitietyqmrp")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Name of the resource group to which the resource belongs.
     */
    @JvmName("vtrxlyclaqqnsahe")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value Name of the deployment slot. If a slot is not specified, the API will update the logging configuration for the production slot.
     */
    @JvmName("ufjqxhynttvwneya")
    public suspend fun slot(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.slot = mapped
    }

    internal fun build(): WebAppDiagnosticLogsConfigurationSlotArgs =
        WebAppDiagnosticLogsConfigurationSlotArgs(
            applicationLogs = applicationLogs,
            detailedErrorMessages = detailedErrorMessages,
            failedRequestsTracing = failedRequestsTracing,
            httpLogs = httpLogs,
            kind = kind,
            name = name,
            resourceGroupName = resourceGroupName,
            slot = slot,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy