
com.pulumi.aws.lambda.kotlin.inputs.FunctionLoggingConfigArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.lambda.kotlin.inputs
import com.pulumi.aws.lambda.inputs.FunctionLoggingConfigArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property applicationLogLevel for JSON structured logs, choose the detail level of the logs your application sends to CloudWatch when using supported logging libraries.
* @property logFormat select between `Text` and structured `JSON` format for your function's logs.
* @property logGroup the CloudWatch log group your function sends logs to.
* @property systemLogLevel for JSON structured logs, choose the detail level of the Lambda platform event logs sent to CloudWatch, such as `ERROR`, `DEBUG`, or `INFO`.
*/
public data class FunctionLoggingConfigArgs(
public val applicationLogLevel: Output? = null,
public val logFormat: Output,
public val logGroup: Output? = null,
public val systemLogLevel: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.lambda.inputs.FunctionLoggingConfigArgs =
com.pulumi.aws.lambda.inputs.FunctionLoggingConfigArgs.builder()
.applicationLogLevel(applicationLogLevel?.applyValue({ args0 -> args0 }))
.logFormat(logFormat.applyValue({ args0 -> args0 }))
.logGroup(logGroup?.applyValue({ args0 -> args0 }))
.systemLogLevel(systemLogLevel?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FunctionLoggingConfigArgs].
*/
@PulumiTagMarker
public class FunctionLoggingConfigArgsBuilder internal constructor() {
private var applicationLogLevel: Output? = null
private var logFormat: Output? = null
private var logGroup: Output? = null
private var systemLogLevel: Output? = null
/**
* @param value for JSON structured logs, choose the detail level of the logs your application sends to CloudWatch when using supported logging libraries.
*/
@JvmName("lhvjddwdcauwaarh")
public suspend fun applicationLogLevel(`value`: Output) {
this.applicationLogLevel = value
}
/**
* @param value select between `Text` and structured `JSON` format for your function's logs.
*/
@JvmName("gjqnlslfauhlfdej")
public suspend fun logFormat(`value`: Output) {
this.logFormat = value
}
/**
* @param value the CloudWatch log group your function sends logs to.
*/
@JvmName("ipkhevvniiswkyal")
public suspend fun logGroup(`value`: Output) {
this.logGroup = value
}
/**
* @param value for JSON structured logs, choose the detail level of the Lambda platform event logs sent to CloudWatch, such as `ERROR`, `DEBUG`, or `INFO`.
*/
@JvmName("ajcrlmdknqfwhibb")
public suspend fun systemLogLevel(`value`: Output) {
this.systemLogLevel = value
}
/**
* @param value for JSON structured logs, choose the detail level of the logs your application sends to CloudWatch when using supported logging libraries.
*/
@JvmName("vueoijtjphvredfq")
public suspend fun applicationLogLevel(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.applicationLogLevel = mapped
}
/**
* @param value select between `Text` and structured `JSON` format for your function's logs.
*/
@JvmName("anclnsogolkijxeg")
public suspend fun logFormat(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.logFormat = mapped
}
/**
* @param value the CloudWatch log group your function sends logs to.
*/
@JvmName("cpanheirarmapfvk")
public suspend fun logGroup(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.logGroup = mapped
}
/**
* @param value for JSON structured logs, choose the detail level of the Lambda platform event logs sent to CloudWatch, such as `ERROR`, `DEBUG`, or `INFO`.
*/
@JvmName("mhehwsylvlkvcptc")
public suspend fun systemLogLevel(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.systemLogLevel = mapped
}
internal fun build(): FunctionLoggingConfigArgs = FunctionLoggingConfigArgs(
applicationLogLevel = applicationLogLevel,
logFormat = logFormat ?: throw PulumiNullFieldException("logFormat"),
logGroup = logGroup,
systemLogLevel = systemLogLevel,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy