
com.pulumi.awsnative.logs.kotlin.QueryDefinitionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy