com.pulumi.gcp.organizations.kotlin.inputs.GetIAMPolicyAuditConfigAuditLogConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.organizations.kotlin.inputs
import com.pulumi.gcp.organizations.inputs.GetIAMPolicyAuditConfigAuditLogConfig.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 Specifies the identities that are exempt from these types of logging operations. Follows the same format of the `members` array for `binding`.
* @property logType Defines the logging level. `DATA_READ`, `DATA_WRITE` and `ADMIN_READ` capture different types of events. See [the audit configuration documentation](https://cloud.google.com/resource-manager/reference/rest/Shared.Types/AuditConfig) for more details.
*/
public data class GetIAMPolicyAuditConfigAuditLogConfig(
public val exemptedMembers: List? = null,
public val logType: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.organizations.inputs.GetIAMPolicyAuditConfigAuditLogConfig =
com.pulumi.gcp.organizations.inputs.GetIAMPolicyAuditConfigAuditLogConfig.builder()
.exemptedMembers(exemptedMembers?.let({ args0 -> args0.map({ args0 -> args0 }) }))
.logType(logType.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetIAMPolicyAuditConfigAuditLogConfig].
*/
@PulumiTagMarker
public class GetIAMPolicyAuditConfigAuditLogConfigBuilder internal constructor() {
private var exemptedMembers: List? = null
private var logType: String? = null
/**
* @param value Specifies the identities that are exempt from these types of logging operations. Follows the same format of the `members` array for `binding`.
*/
@JvmName("gudomtylwhavphsm")
public suspend fun exemptedMembers(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.exemptedMembers = mapped
}
/**
* @param values Specifies the identities that are exempt from these types of logging operations. Follows the same format of the `members` array for `binding`.
*/
@JvmName("ehknudpebiplojaf")
public suspend fun exemptedMembers(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.exemptedMembers = mapped
}
/**
* @param value Defines the logging level. `DATA_READ`, `DATA_WRITE` and `ADMIN_READ` capture different types of events. See [the audit configuration documentation](https://cloud.google.com/resource-manager/reference/rest/Shared.Types/AuditConfig) for more details.
*/
@JvmName("rmytjixecxpevbll")
public suspend fun logType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.logType = mapped
}
internal fun build(): GetIAMPolicyAuditConfigAuditLogConfig =
GetIAMPolicyAuditConfigAuditLogConfig(
exemptedMembers = exemptedMembers,
logType = logType ?: throw PulumiNullFieldException("logType"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy