
com.pulumi.azurenative.documentdb.kotlin.inputs.PrivilegeArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.documentdb.kotlin.inputs
import com.pulumi.azurenative.documentdb.inputs.PrivilegeArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* The set of data plane operations permitted through this Role Definition.
* @property actions An array of actions that are allowed.
* @property resource An Azure Cosmos DB Mongo DB Resource.
*/
public data class PrivilegeArgs(
public val actions: Output>? = null,
public val resource: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.documentdb.inputs.PrivilegeArgs =
com.pulumi.azurenative.documentdb.inputs.PrivilegeArgs.builder()
.actions(actions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.resource(resource?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [PrivilegeArgs].
*/
@PulumiTagMarker
public class PrivilegeArgsBuilder internal constructor() {
private var actions: Output>? = null
private var resource: Output? = null
/**
* @param value An array of actions that are allowed.
*/
@JvmName("tatplnmsnejfvtjl")
public suspend fun actions(`value`: Output>) {
this.actions = value
}
@JvmName("mpirbiukwuytacwj")
public suspend fun actions(vararg values: Output) {
this.actions = Output.all(values.asList())
}
/**
* @param values An array of actions that are allowed.
*/
@JvmName("orhvqrhhdhjbncvu")
public suspend fun actions(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy