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

com.pulumi.azure.keyvault.kotlin.ManagedHardwareSecurityModuleRoleAssignmentArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.keyvault.kotlin

import com.pulumi.azure.keyvault.ManagedHardwareSecurityModuleRoleAssignmentArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Manages a Managed Hardware Security Module Role Assignment.
 * ## Import
 * Managed Hardware Security Modules can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:keyvault/managedHardwareSecurityModuleRoleAssignment:ManagedHardwareSecurityModuleRoleAssignment example https://0000.managedhsm.azure.net///RoleAssignment/00000000-0000-0000-0000-000000000000
 * ```
 * @property managedHsmId The ID of a Managed Hardware Security Module resource. Changing this forces a new Managed Hardware Security Module to be created.
 * *
 * @property name The name in GUID notation which should be used for this Managed Hardware Security Module Role Assignment. Changing this forces a new Managed Hardware Security Module to be created.
 * @property principalId The principal ID to be assigned to this role. It can point to a user, service principal, or security group. Changing this forces a new Managed Hardware Security Module to be created.
 * @property roleDefinitionId The resource ID of the role definition to assign. Changing this forces a new Managed Hardware Security Module to be created.
 * @property scope Specifies the scope to create the role assignment. Changing this forces a new Managed Hardware Security Module to be created.
 * @property vaultBaseUrl
 */
public data class ManagedHardwareSecurityModuleRoleAssignmentArgs(
    public val managedHsmId: Output? = null,
    public val name: Output? = null,
    public val principalId: Output? = null,
    public val roleDefinitionId: Output? = null,
    public val scope: Output? = null,
    @Deprecated(
        message = """
  The field `vault_base_url` has been deprecated in favour of `managed_hsm_id` and will be removed
      in 4.0 of the Azure Provider
  """,
    )
    public val vaultBaseUrl: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.keyvault.ManagedHardwareSecurityModuleRoleAssignmentArgs =
        com.pulumi.azure.keyvault.ManagedHardwareSecurityModuleRoleAssignmentArgs.builder()
            .managedHsmId(managedHsmId?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .principalId(principalId?.applyValue({ args0 -> args0 }))
            .roleDefinitionId(roleDefinitionId?.applyValue({ args0 -> args0 }))
            .scope(scope?.applyValue({ args0 -> args0 }))
            .vaultBaseUrl(vaultBaseUrl?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ManagedHardwareSecurityModuleRoleAssignmentArgs].
 */
@PulumiTagMarker
public class ManagedHardwareSecurityModuleRoleAssignmentArgsBuilder internal constructor() {
    private var managedHsmId: Output? = null

    private var name: Output? = null

    private var principalId: Output? = null

    private var roleDefinitionId: Output? = null

    private var scope: Output? = null

    private var vaultBaseUrl: Output? = null

    /**
     * @param value The ID of a Managed Hardware Security Module resource. Changing this forces a new Managed Hardware Security Module to be created.
     * *
     */
    @JvmName("ytcjgylwsrjbxwcj")
    public suspend fun managedHsmId(`value`: Output) {
        this.managedHsmId = value
    }

    /**
     * @param value The name in GUID notation which should be used for this Managed Hardware Security Module Role Assignment. Changing this forces a new Managed Hardware Security Module to be created.
     */
    @JvmName("vpidlmmwuhhwwkqa")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The principal ID to be assigned to this role. It can point to a user, service principal, or security group. Changing this forces a new Managed Hardware Security Module to be created.
     */
    @JvmName("dmvubsxakniuomwy")
    public suspend fun principalId(`value`: Output) {
        this.principalId = value
    }

    /**
     * @param value The resource ID of the role definition to assign. Changing this forces a new Managed Hardware Security Module to be created.
     */
    @JvmName("gmnfjobccqlmlbbj")
    public suspend fun roleDefinitionId(`value`: Output) {
        this.roleDefinitionId = value
    }

    /**
     * @param value Specifies the scope to create the role assignment. Changing this forces a new Managed Hardware Security Module to be created.
     */
    @JvmName("evmcijpuvvaaggdf")
    public suspend fun scope(`value`: Output) {
        this.scope = value
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  The field `vault_base_url` has been deprecated in favour of `managed_hsm_id` and will be removed
      in 4.0 of the Azure Provider
  """,
    )
    @JvmName("adivkkpnucmipgvx")
    public suspend fun vaultBaseUrl(`value`: Output) {
        this.vaultBaseUrl = value
    }

    /**
     * @param value The ID of a Managed Hardware Security Module resource. Changing this forces a new Managed Hardware Security Module to be created.
     * *
     */
    @JvmName("fiubyrtvvnjbpdvx")
    public suspend fun managedHsmId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managedHsmId = mapped
    }

    /**
     * @param value The name in GUID notation which should be used for this Managed Hardware Security Module Role Assignment. Changing this forces a new Managed Hardware Security Module to be created.
     */
    @JvmName("ygdvpcomsaxnggby")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The principal ID to be assigned to this role. It can point to a user, service principal, or security group. Changing this forces a new Managed Hardware Security Module to be created.
     */
    @JvmName("twudcuhrrevmmvdd")
    public suspend fun principalId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.principalId = mapped
    }

    /**
     * @param value The resource ID of the role definition to assign. Changing this forces a new Managed Hardware Security Module to be created.
     */
    @JvmName("swubwhwsgykrdlun")
    public suspend fun roleDefinitionId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roleDefinitionId = mapped
    }

    /**
     * @param value Specifies the scope to create the role assignment. Changing this forces a new Managed Hardware Security Module to be created.
     */
    @JvmName("jewrahetyxbnihnh")
    public suspend fun scope(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scope = mapped
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  The field `vault_base_url` has been deprecated in favour of `managed_hsm_id` and will be removed
      in 4.0 of the Azure Provider
  """,
    )
    @JvmName("wjewkjpusamylkix")
    public suspend fun vaultBaseUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vaultBaseUrl = mapped
    }

    internal fun build(): ManagedHardwareSecurityModuleRoleAssignmentArgs =
        ManagedHardwareSecurityModuleRoleAssignmentArgs(
            managedHsmId = managedHsmId,
            name = name,
            principalId = principalId,
            roleDefinitionId = roleDefinitionId,
            scope = scope,
            vaultBaseUrl = vaultBaseUrl,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy