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

com.pulumi.gcp.folder.kotlin.inputs.IamAuditConfigAuditLogConfigArgs.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.folder.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.folder.inputs.IamAuditConfigAuditLogConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property exemptedMembers Identities that do not cause logging for this type of permission.  The format is the same as that for `members`.
 * @property logType Permission type for which logging is to be configured.  Must be one of `DATA_READ`, `DATA_WRITE`, or `ADMIN_READ`.
 */
public data class IamAuditConfigAuditLogConfigArgs(
    public val exemptedMembers: Output>? = null,
    public val logType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.folder.inputs.IamAuditConfigAuditLogConfigArgs =
        com.pulumi.gcp.folder.inputs.IamAuditConfigAuditLogConfigArgs.builder()
            .exemptedMembers(exemptedMembers?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .logType(logType.applyValue({ args0 -> args0 })).build()
}

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

    private var logType: Output? = null

    /**
     * @param value Identities that do not cause logging for this type of permission.  The format is the same as that for `members`.
     */
    @JvmName("jvooamnngvjmvxoh")
    public suspend fun exemptedMembers(`value`: Output>) {
        this.exemptedMembers = value
    }

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

    /**
     * @param values Identities that do not cause logging for this type of permission.  The format is the same as that for `members`.
     */
    @JvmName("fahddksdghrgnclp")
    public suspend fun exemptedMembers(values: List>) {
        this.exemptedMembers = Output.all(values)
    }

    /**
     * @param value Permission type for which logging is to be configured.  Must be one of `DATA_READ`, `DATA_WRITE`, or `ADMIN_READ`.
     */
    @JvmName("ybsqskhucpydfguw")
    public suspend fun logType(`value`: Output) {
        this.logType = value
    }

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

    /**
     * @param values Identities that do not cause logging for this type of permission.  The format is the same as that for `members`.
     */
    @JvmName("wpnlmgqpngkwjgjs")
    public suspend fun exemptedMembers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.exemptedMembers = mapped
    }

    /**
     * @param value Permission type for which logging is to be configured.  Must be one of `DATA_READ`, `DATA_WRITE`, or `ADMIN_READ`.
     */
    @JvmName("litcikihnojuetdm")
    public suspend fun logType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.logType = mapped
    }

    internal fun build(): IamAuditConfigAuditLogConfigArgs = IamAuditConfigAuditLogConfigArgs(
        exemptedMembers = exemptedMembers,
        logType = logType ?: throw PulumiNullFieldException("logType"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy