
com.pulumi.awsnative.pipes.kotlin.outputs.PipeLogConfiguration.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.pipes.kotlin.outputs
import com.pulumi.awsnative.pipes.kotlin.enums.PipeIncludeExecutionDataOption
import com.pulumi.awsnative.pipes.kotlin.enums.PipeLogLevel
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property cloudwatchLogsLogDestination The logging configuration settings for the pipe.
* @property firehoseLogDestination The Amazon Data Firehose logging configuration settings for the pipe.
* @property includeExecutionData Whether the execution data (specifically, the `payload` , `awsRequest` , and `awsResponse` fields) is included in the log messages for this pipe.
* This applies to all log destinations for the pipe.
* For more information, see [Including execution data in logs](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes-logs.html#eb-pipes-logs-execution-data) in the *Amazon EventBridge User Guide* .
* *Allowed values:* `ALL`
* @property level The level of logging detail to include. This applies to all log destinations for the pipe.
* @property s3LogDestination The Amazon S3 logging configuration settings for the pipe.
*/
public data class PipeLogConfiguration(
public val cloudwatchLogsLogDestination: PipeCloudwatchLogsLogDestination? = null,
public val firehoseLogDestination: PipeFirehoseLogDestination? = null,
public val includeExecutionData: List? = null,
public val level: PipeLogLevel? = null,
public val s3LogDestination: PipeS3LogDestination? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.pipes.outputs.PipeLogConfiguration): PipeLogConfiguration = PipeLogConfiguration(
cloudwatchLogsLogDestination = javaType.cloudwatchLogsLogDestination().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.pipes.kotlin.outputs.PipeCloudwatchLogsLogDestination.Companion.toKotlin(args0)
})
}).orElse(null),
firehoseLogDestination = javaType.firehoseLogDestination().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.pipes.kotlin.outputs.PipeFirehoseLogDestination.Companion.toKotlin(args0)
})
}).orElse(null),
includeExecutionData = javaType.includeExecutionData().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.pipes.kotlin.enums.PipeIncludeExecutionDataOption.Companion.toKotlin(args0)
})
}),
level = javaType.level().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.pipes.kotlin.enums.PipeLogLevel.Companion.toKotlin(args0)
})
}).orElse(null),
s3LogDestination = javaType.s3LogDestination().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.pipes.kotlin.outputs.PipeS3LogDestination.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy