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

com.pulumi.gcp.alloydb.kotlin.inputs.InstanceQueryInsightsConfigArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.alloydb.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.alloydb.inputs.InstanceQueryInsightsConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property queryPlansPerMinute Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 20 is considered valid.
 * @property queryStringLength Query string length. The default value is 1024. Any integer between 256 and 4500 is considered valid.
 * @property recordApplicationTags Record application tags for an instance. This flag is turned "on" by default.
 * @property recordClientAddress Record client address for an instance. Client address is PII information. This flag is turned "on" by default.
 */
public data class InstanceQueryInsightsConfigArgs(
    public val queryPlansPerMinute: Output? = null,
    public val queryStringLength: Output? = null,
    public val recordApplicationTags: Output? = null,
    public val recordClientAddress: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.alloydb.inputs.InstanceQueryInsightsConfigArgs =
        com.pulumi.gcp.alloydb.inputs.InstanceQueryInsightsConfigArgs.builder()
            .queryPlansPerMinute(queryPlansPerMinute?.applyValue({ args0 -> args0 }))
            .queryStringLength(queryStringLength?.applyValue({ args0 -> args0 }))
            .recordApplicationTags(recordApplicationTags?.applyValue({ args0 -> args0 }))
            .recordClientAddress(recordClientAddress?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceQueryInsightsConfigArgs].
 */
@PulumiTagMarker
public class InstanceQueryInsightsConfigArgsBuilder internal constructor() {
    private var queryPlansPerMinute: Output? = null

    private var queryStringLength: Output? = null

    private var recordApplicationTags: Output? = null

    private var recordClientAddress: Output? = null

    /**
     * @param value Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 20 is considered valid.
     */
    @JvmName("eyxhdktqiwljghba")
    public suspend fun queryPlansPerMinute(`value`: Output) {
        this.queryPlansPerMinute = value
    }

    /**
     * @param value Query string length. The default value is 1024. Any integer between 256 and 4500 is considered valid.
     */
    @JvmName("ouwcujgkfqlmvvfb")
    public suspend fun queryStringLength(`value`: Output) {
        this.queryStringLength = value
    }

    /**
     * @param value Record application tags for an instance. This flag is turned "on" by default.
     */
    @JvmName("wfaqsiryxhlacilh")
    public suspend fun recordApplicationTags(`value`: Output) {
        this.recordApplicationTags = value
    }

    /**
     * @param value Record client address for an instance. Client address is PII information. This flag is turned "on" by default.
     */
    @JvmName("nytqpwmuexdwrpwq")
    public suspend fun recordClientAddress(`value`: Output) {
        this.recordClientAddress = value
    }

    /**
     * @param value Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 20 is considered valid.
     */
    @JvmName("gwymabwxbppgkuyg")
    public suspend fun queryPlansPerMinute(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queryPlansPerMinute = mapped
    }

    /**
     * @param value Query string length. The default value is 1024. Any integer between 256 and 4500 is considered valid.
     */
    @JvmName("derkbukogdaviuip")
    public suspend fun queryStringLength(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queryStringLength = mapped
    }

    /**
     * @param value Record application tags for an instance. This flag is turned "on" by default.
     */
    @JvmName("xqrrouwkdxmoptlo")
    public suspend fun recordApplicationTags(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recordApplicationTags = mapped
    }

    /**
     * @param value Record client address for an instance. Client address is PII information. This flag is turned "on" by default.
     */
    @JvmName("hkkfyyrvpsumocwe")
    public suspend fun recordClientAddress(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recordClientAddress = mapped
    }

    internal fun build(): InstanceQueryInsightsConfigArgs = InstanceQueryInsightsConfigArgs(
        queryPlansPerMinute = queryPlansPerMinute,
        queryStringLength = queryStringLength,
        recordApplicationTags = recordApplicationTags,
        recordClientAddress = recordClientAddress,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy