![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.pim.kotlin.inputs.GetRoleManagementPolicyPlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.pim.kotlin.inputs
import com.pulumi.azure.pim.inputs.GetRoleManagementPolicyPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getRoleManagementPolicy.
* @property roleDefinitionId The scoped Role Definition ID of the role for which this policy applies.
* @property scope The scope to which this Role Management Policy applies. Can refer to a management group, a subscription or a resource group.
*/
public data class GetRoleManagementPolicyPlainArgs(
public val roleDefinitionId: String,
public val scope: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.pim.inputs.GetRoleManagementPolicyPlainArgs =
com.pulumi.azure.pim.inputs.GetRoleManagementPolicyPlainArgs.builder()
.roleDefinitionId(roleDefinitionId.let({ args0 -> args0 }))
.scope(scope.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetRoleManagementPolicyPlainArgs].
*/
@PulumiTagMarker
public class GetRoleManagementPolicyPlainArgsBuilder internal constructor() {
private var roleDefinitionId: String? = null
private var scope: String? = null
/**
* @param value The scoped Role Definition ID of the role for which this policy applies.
*/
@JvmName("vifnhlkmheilvlaf")
public suspend fun roleDefinitionId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.roleDefinitionId = mapped
}
/**
* @param value The scope to which this Role Management Policy applies. Can refer to a management group, a subscription or a resource group.
*/
@JvmName("xckmxthfgcyqqgxn")
public suspend fun scope(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.scope = mapped
}
internal fun build(): GetRoleManagementPolicyPlainArgs = GetRoleManagementPolicyPlainArgs(
roleDefinitionId = roleDefinitionId ?: throw PulumiNullFieldException("roleDefinitionId"),
scope = scope ?: throw PulumiNullFieldException("scope"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy