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

com.pulumi.awsnative.kafkaconnect.kotlin.inputs.ConnectorCloudWatchLogsLogDeliveryArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.kafkaconnect.kotlin.inputs

import com.pulumi.awsnative.kafkaconnect.inputs.ConnectorCloudWatchLogsLogDeliveryArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Details about delivering logs to Amazon CloudWatch Logs.
 * @property enabled Specifies whether the logs get sent to the specified CloudWatch Logs destination.
 * @property logGroup The CloudWatch log group that is the destination for log delivery.
 */
public data class ConnectorCloudWatchLogsLogDeliveryArgs(
    public val enabled: Output,
    public val logGroup: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.kafkaconnect.inputs.ConnectorCloudWatchLogsLogDeliveryArgs =
        com.pulumi.awsnative.kafkaconnect.inputs.ConnectorCloudWatchLogsLogDeliveryArgs.builder()
            .enabled(enabled.applyValue({ args0 -> args0 }))
            .logGroup(logGroup?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ConnectorCloudWatchLogsLogDeliveryArgs].
 */
@PulumiTagMarker
public class ConnectorCloudWatchLogsLogDeliveryArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var logGroup: Output? = null

    /**
     * @param value Specifies whether the logs get sent to the specified CloudWatch Logs destination.
     */
    @JvmName("yquqjpmgutqfryic")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value The CloudWatch log group that is the destination for log delivery.
     */
    @JvmName("dvhwjpjioglvrbpy")
    public suspend fun logGroup(`value`: Output) {
        this.logGroup = value
    }

    /**
     * @param value Specifies whether the logs get sent to the specified CloudWatch Logs destination.
     */
    @JvmName("jurkeyqfgjaakyxn")
    public suspend fun enabled(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value The CloudWatch log group that is the destination for log delivery.
     */
    @JvmName("tdgsewhsxogenarx")
    public suspend fun logGroup(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logGroup = mapped
    }

    internal fun build(): ConnectorCloudWatchLogsLogDeliveryArgs =
        ConnectorCloudWatchLogsLogDeliveryArgs(
            enabled = enabled ?: throw PulumiNullFieldException("enabled"),
            logGroup = logGroup,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy