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

com.pulumi.aws.elasticsearch.kotlin.inputs.DomainLogPublishingOptionArgs.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.elasticsearch.kotlin.inputs

import com.pulumi.aws.elasticsearch.inputs.DomainLogPublishingOptionArgs.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

/**
 *
 * @property cloudwatchLogGroupArn ARN of the Cloudwatch log group to which log needs to be published.
 * @property enabled Whether given log publishing option is enabled or not.
 * @property logType Type of Elasticsearch log. Valid values: `INDEX_SLOW_LOGS`, `SEARCH_SLOW_LOGS`, `ES_APPLICATION_LOGS`, `AUDIT_LOGS`.
 */
public data class DomainLogPublishingOptionArgs(
    public val cloudwatchLogGroupArn: Output,
    public val enabled: Output? = null,
    public val logType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.elasticsearch.inputs.DomainLogPublishingOptionArgs =
        com.pulumi.aws.elasticsearch.inputs.DomainLogPublishingOptionArgs.builder()
            .cloudwatchLogGroupArn(cloudwatchLogGroupArn.applyValue({ args0 -> args0 }))
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .logType(logType.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DomainLogPublishingOptionArgs].
 */
@PulumiTagMarker
public class DomainLogPublishingOptionArgsBuilder internal constructor() {
    private var cloudwatchLogGroupArn: Output? = null

    private var enabled: Output? = null

    private var logType: Output? = null

    /**
     * @param value ARN of the Cloudwatch log group to which log needs to be published.
     */
    @JvmName("xbidblostlrmhuli")
    public suspend fun cloudwatchLogGroupArn(`value`: Output) {
        this.cloudwatchLogGroupArn = value
    }

    /**
     * @param value Whether given log publishing option is enabled or not.
     */
    @JvmName("usblkgafrvluuojn")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Type of Elasticsearch log. Valid values: `INDEX_SLOW_LOGS`, `SEARCH_SLOW_LOGS`, `ES_APPLICATION_LOGS`, `AUDIT_LOGS`.
     */
    @JvmName("raavpevyfnfnrpak")
    public suspend fun logType(`value`: Output) {
        this.logType = value
    }

    /**
     * @param value ARN of the Cloudwatch log group to which log needs to be published.
     */
    @JvmName("gdkjqnxpvgufdxby")
    public suspend fun cloudwatchLogGroupArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.cloudwatchLogGroupArn = mapped
    }

    /**
     * @param value Whether given log publishing option is enabled or not.
     */
    @JvmName("ctecexvejtjtbotv")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value Type of Elasticsearch log. Valid values: `INDEX_SLOW_LOGS`, `SEARCH_SLOW_LOGS`, `ES_APPLICATION_LOGS`, `AUDIT_LOGS`.
     */
    @JvmName("dnfxgffydjvtbebt")
    public suspend fun logType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.logType = mapped
    }

    internal fun build(): DomainLogPublishingOptionArgs = DomainLogPublishingOptionArgs(
        cloudwatchLogGroupArn = cloudwatchLogGroupArn ?: throw
            PulumiNullFieldException("cloudwatchLogGroupArn"),
        enabled = enabled,
        logType = logType ?: throw PulumiNullFieldException("logType"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy