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

com.pulumi.azure.elasticcloud.kotlin.inputs.GetElasticsearchLog.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.21.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.elasticcloud.kotlin.inputs

import com.pulumi.azure.elasticcloud.inputs.GetElasticsearchLog.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property filteringTags A list of `filtering_tag` blocks as defined above.
 * @property sendActivityLogs Should the Azure Activity Logs should be sent to the Elasticsearch cluster?
 * @property sendAzureadLogs Should the AzureAD Logs should be sent to the Elasticsearch cluster?
 * @property sendSubscriptionLogs Should the Azure Subscription Logs should be sent to the Elasticsearch cluster?
 */
public data class GetElasticsearchLog(
    public val filteringTags: List,
    public val sendActivityLogs: Boolean,
    public val sendAzureadLogs: Boolean,
    public val sendSubscriptionLogs: Boolean,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.elasticcloud.inputs.GetElasticsearchLog =
        com.pulumi.azure.elasticcloud.inputs.GetElasticsearchLog.builder()
            .filteringTags(
                filteringTags.let({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .sendActivityLogs(sendActivityLogs.let({ args0 -> args0 }))
            .sendAzureadLogs(sendAzureadLogs.let({ args0 -> args0 }))
            .sendSubscriptionLogs(sendSubscriptionLogs.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetElasticsearchLog].
 */
@PulumiTagMarker
public class GetElasticsearchLogBuilder internal constructor() {
    private var filteringTags: List? = null

    private var sendActivityLogs: Boolean? = null

    private var sendAzureadLogs: Boolean? = null

    private var sendSubscriptionLogs: Boolean? = null

    /**
     * @param value A list of `filtering_tag` blocks as defined above.
     */
    @JvmName("oebfafjejeihnrdg")
    public suspend fun filteringTags(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.filteringTags = mapped
    }

    /**
     * @param argument A list of `filtering_tag` blocks as defined above.
     */
    @JvmName("frkbrberrlwtdqge")
    public suspend
    fun filteringTags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GetElasticsearchLogFilteringTagBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = toBeMapped
        this.filteringTags = mapped
    }

    /**
     * @param argument A list of `filtering_tag` blocks as defined above.
     */
    @JvmName("ieujmgwhcalotbqp")
    public suspend fun filteringTags(
        vararg
        argument: suspend GetElasticsearchLogFilteringTagBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            GetElasticsearchLogFilteringTagBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = toBeMapped
        this.filteringTags = mapped
    }

    /**
     * @param argument A list of `filtering_tag` blocks as defined above.
     */
    @JvmName("dykwxgmcnegvajji")
    public suspend
    fun filteringTags(argument: suspend GetElasticsearchLogFilteringTagBuilder.() -> Unit) {
        val toBeMapped = listOf(
            GetElasticsearchLogFilteringTagBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = toBeMapped
        this.filteringTags = mapped
    }

    /**
     * @param values A list of `filtering_tag` blocks as defined above.
     */
    @JvmName("yewlhkkvxtgbwbhs")
    public suspend fun filteringTags(vararg values: GetElasticsearchLogFilteringTag) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.filteringTags = mapped
    }

    /**
     * @param value Should the Azure Activity Logs should be sent to the Elasticsearch cluster?
     */
    @JvmName("vkvovrpjusdklweq")
    public suspend fun sendActivityLogs(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.sendActivityLogs = mapped
    }

    /**
     * @param value Should the AzureAD Logs should be sent to the Elasticsearch cluster?
     */
    @JvmName("gkbondmemnbeujmv")
    public suspend fun sendAzureadLogs(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.sendAzureadLogs = mapped
    }

    /**
     * @param value Should the Azure Subscription Logs should be sent to the Elasticsearch cluster?
     */
    @JvmName("rcdhfdvjcluxauvu")
    public suspend fun sendSubscriptionLogs(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.sendSubscriptionLogs = mapped
    }

    internal fun build(): GetElasticsearchLog = GetElasticsearchLog(
        filteringTags = filteringTags ?: throw PulumiNullFieldException("filteringTags"),
        sendActivityLogs = sendActivityLogs ?: throw PulumiNullFieldException("sendActivityLogs"),
        sendAzureadLogs = sendAzureadLogs ?: throw PulumiNullFieldException("sendAzureadLogs"),
        sendSubscriptionLogs = sendSubscriptionLogs ?: throw
            PulumiNullFieldException("sendSubscriptionLogs"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy