![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.lambda.kotlin.outputs.FunctionLoggingConfig.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.lambda.kotlin.outputs
import com.pulumi.awsnative.lambda.kotlin.enums.FunctionLoggingConfigApplicationLogLevel
import com.pulumi.awsnative.lambda.kotlin.enums.FunctionLoggingConfigLogFormat
import com.pulumi.awsnative.lambda.kotlin.enums.FunctionLoggingConfigSystemLogLevel
import kotlin.String
import kotlin.Suppress
/**
* The function's Amazon CloudWatch Logs configuration settings.
* @property applicationLogLevel Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level of detail and lower, where ``TRACE`` is the highest level and ``FATAL`` is the lowest.
* @property logFormat The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.
* @property logGroup The name of the Amazon CloudWatch log group the function sends logs to. By default, Lambda functions send logs to a default log group named ``/aws/lambda/``. To use a different log group, enter an existing log group or enter a new log group name.
* @property systemLogLevel Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level of detail and lower, where ``DEBUG`` is the highest level and ``WARN`` is the lowest.
*/
public data class FunctionLoggingConfig(
public val applicationLogLevel: FunctionLoggingConfigApplicationLogLevel? = null,
public val logFormat: FunctionLoggingConfigLogFormat? = null,
public val logGroup: String? = null,
public val systemLogLevel: FunctionLoggingConfigSystemLogLevel? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.lambda.outputs.FunctionLoggingConfig): FunctionLoggingConfig = FunctionLoggingConfig(
applicationLogLevel = javaType.applicationLogLevel().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.lambda.kotlin.enums.FunctionLoggingConfigApplicationLogLevel.Companion.toKotlin(args0)
})
}).orElse(null),
logFormat = javaType.logFormat().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.lambda.kotlin.enums.FunctionLoggingConfigLogFormat.Companion.toKotlin(args0)
})
}).orElse(null),
logGroup = javaType.logGroup().map({ args0 -> args0 }).orElse(null),
systemLogLevel = javaType.systemLogLevel().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.lambda.kotlin.enums.FunctionLoggingConfigSystemLogLevel.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy