com.pulumi.azure.appservice.kotlin.outputs.SlotLogs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.appservice.kotlin.outputs
import kotlin.Boolean
import kotlin.Suppress
/**
*
* @property applicationLogs An `application_logs` block as defined below.
* @property detailedErrorMessagesEnabled Should `Detailed error messages` be enabled on this App Service slot? Defaults to `false`.
* @property failedRequestTracingEnabled Should `Failed request tracing` be enabled on this App Service slot? Defaults to `false`.
* @property httpLogs An `http_logs` block as defined below.
*/
public data class SlotLogs(
public val applicationLogs: SlotLogsApplicationLogs? = null,
public val detailedErrorMessagesEnabled: Boolean? = null,
public val failedRequestTracingEnabled: Boolean? = null,
public val httpLogs: SlotLogsHttpLogs? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.appservice.outputs.SlotLogs): SlotLogs =
SlotLogs(
applicationLogs = javaType.applicationLogs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.appservice.kotlin.outputs.SlotLogsApplicationLogs.Companion.toKotlin(args0)
})
}).orElse(null),
detailedErrorMessagesEnabled = javaType.detailedErrorMessagesEnabled().map({ args0 ->
args0
}).orElse(null),
failedRequestTracingEnabled = javaType.failedRequestTracingEnabled().map({ args0 ->
args0
}).orElse(null),
httpLogs = javaType.httpLogs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.appservice.kotlin.outputs.SlotLogsHttpLogs.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}