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

com.pulumi.awsnative.pipes.kotlin.inputs.PipeLogConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.pipes.kotlin.inputs

import com.pulumi.awsnative.pipes.inputs.PipeLogConfigurationArgs.builder
import com.pulumi.awsnative.pipes.kotlin.enums.PipeIncludeExecutionDataOption
import com.pulumi.awsnative.pipes.kotlin.enums.PipeLogLevel
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @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 PipeLogConfigurationArgs(
    public val cloudwatchLogsLogDestination: Output? = null,
    public val firehoseLogDestination: Output? = null,
    public val includeExecutionData: Output>? = null,
    public val level: Output? = null,
    public val s3LogDestination: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.pipes.inputs.PipeLogConfigurationArgs =
        com.pulumi.awsnative.pipes.inputs.PipeLogConfigurationArgs.builder()
            .cloudwatchLogsLogDestination(
                cloudwatchLogsLogDestination?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .firehoseLogDestination(
                firehoseLogDestination?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .includeExecutionData(
                includeExecutionData?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .level(level?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .s3LogDestination(
                s3LogDestination?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [PipeLogConfigurationArgs].
 */
@PulumiTagMarker
public class PipeLogConfigurationArgsBuilder internal constructor() {
    private var cloudwatchLogsLogDestination: Output? = null

    private var firehoseLogDestination: Output? = null

    private var includeExecutionData: Output>? = null

    private var level: Output? = null

    private var s3LogDestination: Output? = null

    /**
     * @param value The logging configuration settings for the pipe.
     */
    @JvmName("kfqjxokhpjrkyltp")
    public suspend fun cloudwatchLogsLogDestination(`value`: Output) {
        this.cloudwatchLogsLogDestination = value
    }

    /**
     * @param value The Amazon Data Firehose logging configuration settings for the pipe.
     */
    @JvmName("gbdqcmislvoubygp")
    public suspend fun firehoseLogDestination(`value`: Output) {
        this.firehoseLogDestination = value
    }

    /**
     * @param value 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`
     */
    @JvmName("qhhdwfllwlvimqxh")
    public suspend fun includeExecutionData(`value`: Output>) {
        this.includeExecutionData = value
    }

    @JvmName("vufnxeyasghefujb")
    public suspend fun includeExecutionData(vararg values: Output) {
        this.includeExecutionData = Output.all(values.asList())
    }

    /**
     * @param values 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`
     */
    @JvmName("kgbixspnwfpnahjk")
    public suspend fun includeExecutionData(values: List>) {
        this.includeExecutionData = Output.all(values)
    }

    /**
     * @param value The level of logging detail to include. This applies to all log destinations for the pipe.
     */
    @JvmName("pvaiyllclqaevyhh")
    public suspend fun level(`value`: Output) {
        this.level = value
    }

    /**
     * @param value The Amazon S3 logging configuration settings for the pipe.
     */
    @JvmName("ljljdjyutwhpdxnr")
    public suspend fun s3LogDestination(`value`: Output) {
        this.s3LogDestination = value
    }

    /**
     * @param value The logging configuration settings for the pipe.
     */
    @JvmName("hkcnnpmpqmfxsibm")
    public suspend fun cloudwatchLogsLogDestination(`value`: PipeCloudwatchLogsLogDestinationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cloudwatchLogsLogDestination = mapped
    }

    /**
     * @param argument The logging configuration settings for the pipe.
     */
    @JvmName("wvcuyxfikbsrvhcw")
    public suspend fun cloudwatchLogsLogDestination(argument: suspend PipeCloudwatchLogsLogDestinationArgsBuilder.() -> Unit) {
        val toBeMapped = PipeCloudwatchLogsLogDestinationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.cloudwatchLogsLogDestination = mapped
    }

    /**
     * @param value The Amazon Data Firehose logging configuration settings for the pipe.
     */
    @JvmName("yeuvjhtqfvxjuuqt")
    public suspend fun firehoseLogDestination(`value`: PipeFirehoseLogDestinationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.firehoseLogDestination = mapped
    }

    /**
     * @param argument The Amazon Data Firehose logging configuration settings for the pipe.
     */
    @JvmName("ycpmjwolhgnsbwpj")
    public suspend fun firehoseLogDestination(argument: suspend PipeFirehoseLogDestinationArgsBuilder.() -> Unit) {
        val toBeMapped = PipeFirehoseLogDestinationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.firehoseLogDestination = mapped
    }

    /**
     * @param value 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`
     */
    @JvmName("xasrityomjndglew")
    public suspend fun includeExecutionData(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includeExecutionData = mapped
    }

    /**
     * @param values 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`
     */
    @JvmName("gjqiudjrekocxyda")
    public suspend fun includeExecutionData(vararg values: PipeIncludeExecutionDataOption) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.includeExecutionData = mapped
    }

    /**
     * @param value The level of logging detail to include. This applies to all log destinations for the pipe.
     */
    @JvmName("dpoonhibfsueknrg")
    public suspend fun level(`value`: PipeLogLevel?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.level = mapped
    }

    /**
     * @param value The Amazon S3 logging configuration settings for the pipe.
     */
    @JvmName("uxncbletqaghiqvd")
    public suspend fun s3LogDestination(`value`: PipeS3LogDestinationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.s3LogDestination = mapped
    }

    /**
     * @param argument The Amazon S3 logging configuration settings for the pipe.
     */
    @JvmName("qyvwfriodnhitfav")
    public suspend fun s3LogDestination(argument: suspend PipeS3LogDestinationArgsBuilder.() -> Unit) {
        val toBeMapped = PipeS3LogDestinationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.s3LogDestination = mapped
    }

    internal fun build(): PipeLogConfigurationArgs = PipeLogConfigurationArgs(
        cloudwatchLogsLogDestination = cloudwatchLogsLogDestination,
        firehoseLogDestination = firehoseLogDestination,
        includeExecutionData = includeExecutionData,
        level = level,
        s3LogDestination = s3LogDestination,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy