
com.pulumi.azurenative.keyvault.kotlin.inputs.AccessPolicyEntryArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.keyvault.kotlin.inputs
import com.pulumi.azurenative.keyvault.inputs.AccessPolicyEntryArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* An identity that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID.
* @property applicationId Application ID of the client making request on behalf of a principal
* @property objectId The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies.
* @property permissions Permissions the identity has for keys, secrets and certificates.
* @property tenantId The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.
*/
public data class AccessPolicyEntryArgs(
public val applicationId: Output? = null,
public val objectId: Output,
public val permissions: Output,
public val tenantId: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.keyvault.inputs.AccessPolicyEntryArgs =
com.pulumi.azurenative.keyvault.inputs.AccessPolicyEntryArgs.builder()
.applicationId(applicationId?.applyValue({ args0 -> args0 }))
.objectId(objectId.applyValue({ args0 -> args0 }))
.permissions(permissions.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.tenantId(tenantId.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AccessPolicyEntryArgs].
*/
@PulumiTagMarker
public class AccessPolicyEntryArgsBuilder internal constructor() {
private var applicationId: Output? = null
private var objectId: Output? = null
private var permissions: Output? = null
private var tenantId: Output? = null
/**
* @param value Application ID of the client making request on behalf of a principal
*/
@JvmName("dshcqpqabjuryxhc")
public suspend fun applicationId(`value`: Output) {
this.applicationId = value
}
/**
* @param value The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies.
*/
@JvmName("akrmvfopsabjjmxo")
public suspend fun objectId(`value`: Output) {
this.objectId = value
}
/**
* @param value Permissions the identity has for keys, secrets and certificates.
*/
@JvmName("yckryqecsfbjkbsf")
public suspend fun permissions(`value`: Output) {
this.permissions = value
}
/**
* @param value The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.
*/
@JvmName("pcicimstwyrgnpyy")
public suspend fun tenantId(`value`: Output) {
this.tenantId = value
}
/**
* @param value Application ID of the client making request on behalf of a principal
*/
@JvmName("pbthstvfufrspcyh")
public suspend fun applicationId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.applicationId = mapped
}
/**
* @param value The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies.
*/
@JvmName("ywuacedygvevqtcm")
public suspend fun objectId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.objectId = mapped
}
/**
* @param value Permissions the identity has for keys, secrets and certificates.
*/
@JvmName("saxwjwjjikbolnxe")
public suspend fun permissions(`value`: PermissionsArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.permissions = mapped
}
/**
* @param argument Permissions the identity has for keys, secrets and certificates.
*/
@JvmName("vlqdqqsdukfuwvlq")
public suspend fun permissions(argument: suspend PermissionsArgsBuilder.() -> Unit) {
val toBeMapped = PermissionsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.permissions = mapped
}
/**
* @param value The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.
*/
@JvmName("kumjwipkxttuvmjb")
public suspend fun tenantId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tenantId = mapped
}
internal fun build(): AccessPolicyEntryArgs = AccessPolicyEntryArgs(
applicationId = applicationId,
objectId = objectId ?: throw PulumiNullFieldException("objectId"),
permissions = permissions ?: throw PulumiNullFieldException("permissions"),
tenantId = tenantId ?: throw PulumiNullFieldException("tenantId"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy