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

com.pulumi.azure.appservice.kotlin.inputs.WindowsWebAppLogsApplicationLogsAzureBlobStorageArgs.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.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.appservice.kotlin.inputs

import com.pulumi.azure.appservice.inputs.WindowsWebAppLogsApplicationLogsAzureBlobStorageArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property level The level at which to log. Possible values include `Error`, `Warning`, `Information`, `Verbose` and `Off`. **NOTE:** this field is not available for `http_logs`
 * @property retentionInDays The time in days after which to remove blobs. A value of `0` means no retention.
 * @property sasUrl SAS url to an Azure blob container with read/write/list/delete permissions.
 */
public data class WindowsWebAppLogsApplicationLogsAzureBlobStorageArgs(
    public val level: Output,
    public val retentionInDays: Output,
    public val sasUrl: Output,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.appservice.inputs.WindowsWebAppLogsApplicationLogsAzureBlobStorageArgs =
        com.pulumi.azure.appservice.inputs.WindowsWebAppLogsApplicationLogsAzureBlobStorageArgs.builder()
            .level(level.applyValue({ args0 -> args0 }))
            .retentionInDays(retentionInDays.applyValue({ args0 -> args0 }))
            .sasUrl(sasUrl.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [WindowsWebAppLogsApplicationLogsAzureBlobStorageArgs].
 */
@PulumiTagMarker
public class WindowsWebAppLogsApplicationLogsAzureBlobStorageArgsBuilder internal constructor() {
    private var level: Output? = null

    private var retentionInDays: Output? = null

    private var sasUrl: Output? = null

    /**
     * @param value The level at which to log. Possible values include `Error`, `Warning`, `Information`, `Verbose` and `Off`. **NOTE:** this field is not available for `http_logs`
     */
    @JvmName("wefscxylrvjqqeem")
    public suspend fun level(`value`: Output) {
        this.level = value
    }

    /**
     * @param value The time in days after which to remove blobs. A value of `0` means no retention.
     */
    @JvmName("ekabjvaqjfkfnqhk")
    public suspend fun retentionInDays(`value`: Output) {
        this.retentionInDays = value
    }

    /**
     * @param value SAS url to an Azure blob container with read/write/list/delete permissions.
     */
    @JvmName("kdarqkuhkjmyohfh")
    public suspend fun sasUrl(`value`: Output) {
        this.sasUrl = value
    }

    /**
     * @param value The level at which to log. Possible values include `Error`, `Warning`, `Information`, `Verbose` and `Off`. **NOTE:** this field is not available for `http_logs`
     */
    @JvmName("qqowvtmyujurfscg")
    public suspend fun level(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.level = mapped
    }

    /**
     * @param value The time in days after which to remove blobs. A value of `0` means no retention.
     */
    @JvmName("bgjsovsqcjqskdxw")
    public suspend fun retentionInDays(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.retentionInDays = mapped
    }

    /**
     * @param value SAS url to an Azure blob container with read/write/list/delete permissions.
     */
    @JvmName("lnfiehugkadltvyk")
    public suspend fun sasUrl(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sasUrl = mapped
    }

    internal fun build(): WindowsWebAppLogsApplicationLogsAzureBlobStorageArgs =
        WindowsWebAppLogsApplicationLogsAzureBlobStorageArgs(
            level = level ?: throw PulumiNullFieldException("level"),
            retentionInDays = retentionInDays ?: throw PulumiNullFieldException("retentionInDays"),
            sasUrl = sasUrl ?: throw PulumiNullFieldException("sasUrl"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy