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

com.pulumi.googlenative.logging.v2.kotlin.OrganizationExclusionArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.logging.v2.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.logging.v2.OrganizationExclusionArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.
 * @property description Optional. A description of this exclusion.
 * @property disabled Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field.
 * @property filter An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced-queries) that matches the log entries to be excluded. By using the sample function (https://cloud.google.com/logging/docs/view/advanced-queries#sample), you can exclude less than 100% of the matching log entries.For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets:resource.type=gcs_bucket severity? = null,
    public val disabled: Output? = null,
    public val filter: Output? = null,
    public val name: Output? = null,
    public val organizationId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.logging.v2.OrganizationExclusionArgs =
        com.pulumi.googlenative.logging.v2.OrganizationExclusionArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .disabled(disabled?.applyValue({ args0 -> args0 }))
            .filter(filter?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .organizationId(organizationId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [OrganizationExclusionArgs].
 */
@PulumiTagMarker
public class OrganizationExclusionArgsBuilder internal constructor() {
    private var description: Output? = null

    private var disabled: Output? = null

    private var filter: Output? = null

    private var name: Output? = null

    private var organizationId: Output? = null

    /**
     * @param value Optional. A description of this exclusion.
     */
    @JvmName("rmuovtxxmwrpdyar")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field.
     */
    @JvmName("sxgrhivvicaoiknu")
    public suspend fun disabled(`value`: Output) {
        this.disabled = value
    }

    /**
     * @param value An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced-queries) that matches the log entries to be excluded. By using the sample function (https://cloud.google.com/logging/docs/view/advanced-queries#sample), you can exclude less than 100% of the matching log entries.For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets:resource.type=gcs_bucket severity) {
        this.filter = value
    }

    /**
     * @param value A client-assigned identifier, such as "load-balancer-exclusion". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.
     */
    @JvmName("kljtgilevitkrqrv")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value
     */
    @JvmName("kgvcwpbibrnyqdri")
    public suspend fun organizationId(`value`: Output) {
        this.organizationId = value
    }

    /**
     * @param value Optional. A description of this exclusion.
     */
    @JvmName("dwckswryqbljvwdx")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field.
     */
    @JvmName("jevgetyxlxbhqnid")
    public suspend fun disabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.disabled = mapped
    }

    /**
     * @param value An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced-queries) that matches the log entries to be excluded. By using the sample function (https://cloud.google.com/logging/docs/view/advanced-queries#sample), you can exclude less than 100% of the matching log entries.For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets:resource.type=gcs_bucket severity of(args0) })
        this.filter = mapped
    }

    /**
     * @param value A client-assigned identifier, such as "load-balancer-exclusion". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.
     */
    @JvmName("xrabdhviggupahwa")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value
     */
    @JvmName("kyskoukftpavosns")
    public suspend fun organizationId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.organizationId = mapped
    }

    internal fun build(): OrganizationExclusionArgs = OrganizationExclusionArgs(
        description = description,
        disabled = disabled,
        filter = filter,
        name = name,
        organizationId = organizationId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy