
com.pulumi.awsnative.mwaa.kotlin.inputs.EnvironmentModuleLoggingConfigurationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.mwaa.kotlin.inputs
import com.pulumi.awsnative.mwaa.inputs.EnvironmentModuleLoggingConfigurationArgs.builder
import com.pulumi.awsnative.mwaa.kotlin.enums.EnvironmentLoggingLevel
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Logging configuration for a specific airflow component.
* @property cloudWatchLogGroupArn The ARN of the CloudWatch Logs log group for each type of Apache Airflow log type that you have enabled.
* > `CloudWatchLogGroupArn` is available only as a return value, accessible when specified as an attribute in the [`Fn:GetAtt`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mwaa-environment.html#aws-resource-mwaa-environment-return-values) intrinsic function. Any value you provide for `CloudWatchLogGroupArn` is discarded by Amazon MWAA.
* @property enabled Indicates whether to enable the Apache Airflow log type (e.g. `DagProcessingLogs` ) in CloudWatch Logs.
* @property logLevel Defines the Apache Airflow logs to send for the log type (e.g. `DagProcessingLogs` ) to CloudWatch Logs. Valid values: `CRITICAL` , `ERROR` , `WARNING` , `INFO` .
*/
public data class EnvironmentModuleLoggingConfigurationArgs(
public val cloudWatchLogGroupArn: Output? = null,
public val enabled: Output? = null,
public val logLevel: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.mwaa.inputs.EnvironmentModuleLoggingConfigurationArgs = com.pulumi.awsnative.mwaa.inputs.EnvironmentModuleLoggingConfigurationArgs.builder()
.cloudWatchLogGroupArn(cloudWatchLogGroupArn?.applyValue({ args0 -> args0 }))
.enabled(enabled?.applyValue({ args0 -> args0 }))
.logLevel(logLevel?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [EnvironmentModuleLoggingConfigurationArgs].
*/
@PulumiTagMarker
public class EnvironmentModuleLoggingConfigurationArgsBuilder internal constructor() {
private var cloudWatchLogGroupArn: Output? = null
private var enabled: Output? = null
private var logLevel: Output? = null
/**
* @param value The ARN of the CloudWatch Logs log group for each type of Apache Airflow log type that you have enabled.
* > `CloudWatchLogGroupArn` is available only as a return value, accessible when specified as an attribute in the [`Fn:GetAtt`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mwaa-environment.html#aws-resource-mwaa-environment-return-values) intrinsic function. Any value you provide for `CloudWatchLogGroupArn` is discarded by Amazon MWAA.
*/
@JvmName("stdaenekkconkqth")
public suspend fun cloudWatchLogGroupArn(`value`: Output) {
this.cloudWatchLogGroupArn = value
}
/**
* @param value Indicates whether to enable the Apache Airflow log type (e.g. `DagProcessingLogs` ) in CloudWatch Logs.
*/
@JvmName("hkgguarwthyaeach")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value Defines the Apache Airflow logs to send for the log type (e.g. `DagProcessingLogs` ) to CloudWatch Logs. Valid values: `CRITICAL` , `ERROR` , `WARNING` , `INFO` .
*/
@JvmName("fiedrfenchewoixw")
public suspend fun logLevel(`value`: Output) {
this.logLevel = value
}
/**
* @param value The ARN of the CloudWatch Logs log group for each type of Apache Airflow log type that you have enabled.
* > `CloudWatchLogGroupArn` is available only as a return value, accessible when specified as an attribute in the [`Fn:GetAtt`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mwaa-environment.html#aws-resource-mwaa-environment-return-values) intrinsic function. Any value you provide for `CloudWatchLogGroupArn` is discarded by Amazon MWAA.
*/
@JvmName("wqatrbekvrsogvmb")
public suspend fun cloudWatchLogGroupArn(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cloudWatchLogGroupArn = mapped
}
/**
* @param value Indicates whether to enable the Apache Airflow log type (e.g. `DagProcessingLogs` ) in CloudWatch Logs.
*/
@JvmName("umshvnhxhtiwatmh")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value Defines the Apache Airflow logs to send for the log type (e.g. `DagProcessingLogs` ) to CloudWatch Logs. Valid values: `CRITICAL` , `ERROR` , `WARNING` , `INFO` .
*/
@JvmName("egosjpbbipqdtthp")
public suspend fun logLevel(`value`: EnvironmentLoggingLevel?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.logLevel = mapped
}
internal fun build(): EnvironmentModuleLoggingConfigurationArgs =
EnvironmentModuleLoggingConfigurationArgs(
cloudWatchLogGroupArn = cloudWatchLogGroupArn,
enabled = enabled,
logLevel = logLevel,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy