All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.applicationinsights.kotlin.outputs.ApplicationLog.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.applicationinsights.kotlin.outputs

import com.pulumi.awsnative.applicationinsights.kotlin.enums.ApplicationLogEncoding
import kotlin.String
import kotlin.Suppress

/**
 * A log to be monitored for the component.
 * @property encoding The type of encoding of the logs to be monitored.
 * @property logGroupName The CloudWatch log group name to be associated to the monitored log.
 * @property logPath The path of the logs to be monitored.
 * @property logType The log type decides the log patterns against which Application Insights analyzes the log.
 * @property patternSet The name of the log pattern set.
 */
public data class ApplicationLog(
    public val encoding: ApplicationLogEncoding? = null,
    public val logGroupName: String? = null,
    public val logPath: String? = null,
    public val logType: String,
    public val patternSet: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.applicationinsights.outputs.ApplicationLog): ApplicationLog = ApplicationLog(
            encoding = javaType.encoding().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.applicationinsights.kotlin.enums.ApplicationLogEncoding.Companion.toKotlin(args0)
                })
            }).orElse(null),
            logGroupName = javaType.logGroupName().map({ args0 -> args0 }).orElse(null),
            logPath = javaType.logPath().map({ args0 -> args0 }).orElse(null),
            logType = javaType.logType(),
            patternSet = javaType.patternSet().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy