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

com.pulumi.googlenative.gkehub.v1.kotlin.inputs.AuditLogConfigArgs.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.gkehub.v1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.gkehub.v1.inputs.AuditLogConfigArgs.builder
import com.pulumi.googlenative.gkehub.v1.kotlin.enums.AuditLogConfigLogType
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting [email protected] from DATA_READ logging.
 * @property exemptedMembers Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
 * @property logType The log type that this config enables.
 */
public data class AuditLogConfigArgs(
    public val exemptedMembers: Output>? = null,
    public val logType: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.gkehub.v1.inputs.AuditLogConfigArgs =
        com.pulumi.googlenative.gkehub.v1.inputs.AuditLogConfigArgs.builder()
            .exemptedMembers(exemptedMembers?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .logType(logType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var logType: Output? = null

    /**
     * @param value Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
     */
    @JvmName("rybnjerttjeswlam")
    public suspend fun exemptedMembers(`value`: Output>) {
        this.exemptedMembers = value
    }

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

    /**
     * @param values Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
     */
    @JvmName("onnldptebgfrkkbm")
    public suspend fun exemptedMembers(values: List>) {
        this.exemptedMembers = Output.all(values)
    }

    /**
     * @param value The log type that this config enables.
     */
    @JvmName("thutjblxyxudqfmt")
    public suspend fun logType(`value`: Output) {
        this.logType = value
    }

    /**
     * @param value Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
     */
    @JvmName("mnyyvashmxawvbtj")
    public suspend fun exemptedMembers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.exemptedMembers = mapped
    }

    /**
     * @param values Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
     */
    @JvmName("khxgioneystubvxl")
    public suspend fun exemptedMembers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.exemptedMembers = mapped
    }

    /**
     * @param value The log type that this config enables.
     */
    @JvmName("jmjoxyvbfpqvsmke")
    public suspend fun logType(`value`: AuditLogConfigLogType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logType = mapped
    }

    internal fun build(): AuditLogConfigArgs = AuditLogConfigArgs(
        exemptedMembers = exemptedMembers,
        logType = logType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy