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

com.pulumi.azure.policy.kotlin.outputs.GetPolicyDefintionResult.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.21.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.policy.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * A collection of values returned by getPolicyDefintion.
 * @property description The Description of the Policy.
 * @property displayName
 * @property id The provider-assigned unique ID for this managed resource.
 * @property managementGroupName
 * @property metadata Any Metadata defined in the Policy.
 * @property mode The Mode of the Policy.
 * @property name
 * @property parameters Any Parameters defined in the Policy.
 * @property policyRule The Rule as defined (in JSON) in the Policy.
 * @property policyType The Type of the Policy. Possible values are `BuiltIn`, `Custom` and `NotSpecified`.
 * @property roleDefinitionIds A list of role definition id extracted from `policy_rule` required for remediation.
 * @property type The Type of Policy.
 */
public data class GetPolicyDefintionResult(
    public val description: String,
    public val displayName: String,
    public val id: String,
    public val managementGroupName: String? = null,
    public val metadata: String,
    public val mode: String,
    public val name: String,
    public val parameters: String,
    public val policyRule: String,
    public val policyType: String,
    public val roleDefinitionIds: List,
    public val type: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.policy.outputs.GetPolicyDefintionResult):
            GetPolicyDefintionResult = GetPolicyDefintionResult(
            description = javaType.description(),
            displayName = javaType.displayName(),
            id = javaType.id(),
            managementGroupName = javaType.managementGroupName().map({ args0 -> args0 }).orElse(null),
            metadata = javaType.metadata(),
            mode = javaType.mode(),
            name = javaType.name(),
            parameters = javaType.parameters(),
            policyRule = javaType.policyRule(),
            policyType = javaType.policyType(),
            roleDefinitionIds = javaType.roleDefinitionIds().map({ args0 -> args0 }),
            type = javaType.type(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy