
com.pulumi.awsnative.mwaa.kotlin.outputs.EnvironmentModuleLoggingConfiguration.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.outputs
import com.pulumi.awsnative.mwaa.kotlin.enums.EnvironmentLoggingLevel
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
* 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 EnvironmentModuleLoggingConfiguration(
public val cloudWatchLogGroupArn: String? = null,
public val enabled: Boolean? = null,
public val logLevel: EnvironmentLoggingLevel? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.mwaa.outputs.EnvironmentModuleLoggingConfiguration): EnvironmentModuleLoggingConfiguration = EnvironmentModuleLoggingConfiguration(
cloudWatchLogGroupArn = javaType.cloudWatchLogGroupArn().map({ args0 -> args0 }).orElse(null),
enabled = javaType.enabled().map({ args0 -> args0 }).orElse(null),
logLevel = javaType.logLevel().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.mwaa.kotlin.enums.EnvironmentLoggingLevel.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy