com.pulumi.azure.appservice.kotlin.outputs.AppServiceLogs.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? Defaults to `false`.
* @property failedRequestTracingEnabled Should `Failed request tracing` be enabled on this App Service? Defaults to `false`.
* @property httpLogs An `http_logs` block as defined below.
*/
public data class AppServiceLogs(
public val applicationLogs: AppServiceLogsApplicationLogs? = null,
public val detailedErrorMessagesEnabled: Boolean? = null,
public val failedRequestTracingEnabled: Boolean? = null,
public val httpLogs: AppServiceLogsHttpLogs? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.appservice.outputs.AppServiceLogs): AppServiceLogs = AppServiceLogs(
applicationLogs = javaType.applicationLogs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.appservice.kotlin.outputs.AppServiceLogsApplicationLogs.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.AppServiceLogsHttpLogs.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}