
com.pulumi.azure.appservice.kotlin.inputs.AppServiceLogsApplicationLogsAzureBlobStorageArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.appservice.kotlin.inputs
import com.pulumi.azure.appservice.inputs.AppServiceLogsApplicationLogsAzureBlobStorageArgs.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 number of days to retain logs for.
* @property sasUrl The URL to the storage container with a shared access signature token appended.
*/
public data class AppServiceLogsApplicationLogsAzureBlobStorageArgs(
public val level: Output,
public val retentionInDays: Output,
public val sasUrl: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azure.appservice.inputs.AppServiceLogsApplicationLogsAzureBlobStorageArgs =
com.pulumi.azure.appservice.inputs.AppServiceLogsApplicationLogsAzureBlobStorageArgs.builder()
.level(level.applyValue({ args0 -> args0 }))
.retentionInDays(retentionInDays.applyValue({ args0 -> args0 }))
.sasUrl(sasUrl.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AppServiceLogsApplicationLogsAzureBlobStorageArgs].
*/
@PulumiTagMarker
public class AppServiceLogsApplicationLogsAzureBlobStorageArgsBuilder 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("vyorukdytcfgtrqi")
public suspend fun level(`value`: Output) {
this.level = value
}
/**
* @param value The number of days to retain logs for.
*/
@JvmName("ldnlmxnkcirrlurj")
public suspend fun retentionInDays(`value`: Output) {
this.retentionInDays = value
}
/**
* @param value The URL to the storage container with a shared access signature token appended.
*/
@JvmName("wwalrcdtjukjjcbl")
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("lkjhmehmlckxsvsu")
public suspend fun level(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.level = mapped
}
/**
* @param value The number of days to retain logs for.
*/
@JvmName("lxxvcubpeppnadbh")
public suspend fun retentionInDays(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.retentionInDays = mapped
}
/**
* @param value The URL to the storage container with a shared access signature token appended.
*/
@JvmName("jnearjmrlwhlpkxb")
public suspend fun sasUrl(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.sasUrl = mapped
}
internal fun build(): AppServiceLogsApplicationLogsAzureBlobStorageArgs =
AppServiceLogsApplicationLogsAzureBlobStorageArgs(
level = level ?: throw PulumiNullFieldException("level"),
retentionInDays = retentionInDays ?: throw PulumiNullFieldException("retentionInDays"),
sasUrl = sasUrl ?: throw PulumiNullFieldException("sasUrl"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy