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

com.pulumi.awsnative.logs.kotlin.QueryDefinitionArgs.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.logs.kotlin

import com.pulumi.awsnative.logs.QueryDefinitionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The resource schema for AWSLogs QueryDefinition
 * @property logGroupNames Optionally define specific log groups as part of your query definition
 * @property name A name for the saved query definition
 * @property queryString The query string to use for this definition
 */
public data class QueryDefinitionArgs(
    public val logGroupNames: Output>? = null,
    public val name: Output? = null,
    public val queryString: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.logs.QueryDefinitionArgs =
        com.pulumi.awsnative.logs.QueryDefinitionArgs.builder()
            .logGroupNames(logGroupNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .queryString(queryString?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [QueryDefinitionArgs].
 */
@PulumiTagMarker
public class QueryDefinitionArgsBuilder internal constructor() {
    private var logGroupNames: Output>? = null

    private var name: Output? = null

    private var queryString: Output? = null

    /**
     * @param value Optionally define specific log groups as part of your query definition
     */
    @JvmName("hyjbssmxjrlctoso")
    public suspend fun logGroupNames(`value`: Output>) {
        this.logGroupNames = value
    }

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

    /**
     * @param values Optionally define specific log groups as part of your query definition
     */
    @JvmName("bysqevfwfajqgcxx")
    public suspend fun logGroupNames(values: List>) {
        this.logGroupNames = Output.all(values)
    }

    /**
     * @param value A name for the saved query definition
     */
    @JvmName("wbhdggakkjnthtnx")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The query string to use for this definition
     */
    @JvmName("ycxphvwsxxywevhl")
    public suspend fun queryString(`value`: Output) {
        this.queryString = value
    }

    /**
     * @param value Optionally define specific log groups as part of your query definition
     */
    @JvmName("mqfnprqkwffbqlet")
    public suspend fun logGroupNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logGroupNames = mapped
    }

    /**
     * @param values Optionally define specific log groups as part of your query definition
     */
    @JvmName("acfwhxapcxcfutmd")
    public suspend fun logGroupNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.logGroupNames = mapped
    }

    /**
     * @param value A name for the saved query definition
     */
    @JvmName("oyqlppxtjbwxgumx")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The query string to use for this definition
     */
    @JvmName("dgjjysauchynyitx")
    public suspend fun queryString(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queryString = mapped
    }

    internal fun build(): QueryDefinitionArgs = QueryDefinitionArgs(
        logGroupNames = logGroupNames,
        name = name,
        queryString = queryString,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy