![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.policy.kotlin.inputs.GetPolicyDefintionPlainArgs.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.policy.kotlin.inputs
import com.pulumi.azure.policy.inputs.GetPolicyDefintionPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getPolicyDefintion.
* @property displayName Specifies the display name of the Policy Definition. Conflicts with `name`.
* > **NOTE** Looking up policies by `display_name` is not recommended by the Azure Policy team as the property is not unique nor immutable. As such errors may occur when there are multiple policy definitions with same display name or the display name is changed. To avoid these types of errors you may wish to use the `name` property instead.
* @property managementGroupName Only retrieve Policy Definitions from this Management Group.
* @property name Specifies the name of the Policy Definition. Conflicts with `display_name`.
*/
public data class GetPolicyDefintionPlainArgs(
public val displayName: String? = null,
public val managementGroupName: String? = null,
public val name: String? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.policy.inputs.GetPolicyDefintionPlainArgs =
com.pulumi.azure.policy.inputs.GetPolicyDefintionPlainArgs.builder()
.displayName(displayName?.let({ args0 -> args0 }))
.managementGroupName(managementGroupName?.let({ args0 -> args0 }))
.name(name?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetPolicyDefintionPlainArgs].
*/
@PulumiTagMarker
public class GetPolicyDefintionPlainArgsBuilder internal constructor() {
private var displayName: String? = null
private var managementGroupName: String? = null
private var name: String? = null
/**
* @param value Specifies the display name of the Policy Definition. Conflicts with `name`.
* > **NOTE** Looking up policies by `display_name` is not recommended by the Azure Policy team as the property is not unique nor immutable. As such errors may occur when there are multiple policy definitions with same display name or the display name is changed. To avoid these types of errors you may wish to use the `name` property instead.
*/
@JvmName("nwvnycldwtroyglp")
public suspend fun displayName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.displayName = mapped
}
/**
* @param value Only retrieve Policy Definitions from this Management Group.
*/
@JvmName("tmtlicwgmepavysj")
public suspend fun managementGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.managementGroupName = mapped
}
/**
* @param value Specifies the name of the Policy Definition. Conflicts with `display_name`.
*/
@JvmName("kqjrxxvvkugkahpv")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.name = mapped
}
internal fun build(): GetPolicyDefintionPlainArgs = GetPolicyDefintionPlainArgs(
displayName = displayName,
managementGroupName = managementGroupName,
name = name,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy