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

com.pulumi.aws.ec2.kotlin.inputs.VpnConnectionTunnel2LogOptionsCloudwatchLogOptionsArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.ec2.kotlin.inputs

import com.pulumi.aws.ec2.inputs.VpnConnectionTunnel2LogOptionsCloudwatchLogOptionsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property logEnabled Enable or disable VPN tunnel logging feature. The default is `false`.
 * @property logGroupArn The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to.
 * @property logOutputFormat Set log format. Default format is json. Possible values are: `json` and `text`. The default is `json`.
 */
public data class VpnConnectionTunnel2LogOptionsCloudwatchLogOptionsArgs(
    public val logEnabled: Output? = null,
    public val logGroupArn: Output? = null,
    public val logOutputFormat: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.ec2.inputs.VpnConnectionTunnel2LogOptionsCloudwatchLogOptionsArgs =
        com.pulumi.aws.ec2.inputs.VpnConnectionTunnel2LogOptionsCloudwatchLogOptionsArgs.builder()
            .logEnabled(logEnabled?.applyValue({ args0 -> args0 }))
            .logGroupArn(logGroupArn?.applyValue({ args0 -> args0 }))
            .logOutputFormat(logOutputFormat?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VpnConnectionTunnel2LogOptionsCloudwatchLogOptionsArgs].
 */
@PulumiTagMarker
public class VpnConnectionTunnel2LogOptionsCloudwatchLogOptionsArgsBuilder internal constructor() {
    private var logEnabled: Output? = null

    private var logGroupArn: Output? = null

    private var logOutputFormat: Output? = null

    /**
     * @param value Enable or disable VPN tunnel logging feature. The default is `false`.
     */
    @JvmName("kqcaaoggxacebsgu")
    public suspend fun logEnabled(`value`: Output) {
        this.logEnabled = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to.
     */
    @JvmName("xgbjmfyufikfctcu")
    public suspend fun logGroupArn(`value`: Output) {
        this.logGroupArn = value
    }

    /**
     * @param value Set log format. Default format is json. Possible values are: `json` and `text`. The default is `json`.
     */
    @JvmName("uehypcpwbsxhgqtb")
    public suspend fun logOutputFormat(`value`: Output) {
        this.logOutputFormat = value
    }

    /**
     * @param value Enable or disable VPN tunnel logging feature. The default is `false`.
     */
    @JvmName("lntcnqigglludvqv")
    public suspend fun logEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logEnabled = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to.
     */
    @JvmName("xfkfqinmmgyjpfuq")
    public suspend fun logGroupArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logGroupArn = mapped
    }

    /**
     * @param value Set log format. Default format is json. Possible values are: `json` and `text`. The default is `json`.
     */
    @JvmName("rauucvjmusscbknq")
    public suspend fun logOutputFormat(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logOutputFormat = mapped
    }

    internal fun build(): VpnConnectionTunnel2LogOptionsCloudwatchLogOptionsArgs =
        VpnConnectionTunnel2LogOptionsCloudwatchLogOptionsArgs(
            logEnabled = logEnabled,
            logGroupArn = logGroupArn,
            logOutputFormat = logOutputFormat,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy