com.pulumi.azure.policy.kotlin.outputs.GetPolicyAssignmentResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.policy.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* A collection of values returned by getPolicyAssignment.
* @property description The description of this Policy Assignment.
* @property displayName The display name of this Policy Assignment.
* @property enforce Whether this Policy is enforced or not?
* @property id The provider-assigned unique ID for this managed resource.
* @property identities A `identity` block as defined below.
* @property location The Azure Region where the Policy Assignment exists.
* @property metadata A JSON mapping of any Metadata for this Policy.
* @property name
* @property nonComplianceMessages A `non_compliance_message` block as defined below.
* @property notScopes A `not_scopes` block as defined below.
* @property parameters A JSON mapping of any Parameters for this Policy.
* @property policyDefinitionId The ID of the assigned Policy Definition.
* @property scopeId
*/
public data class GetPolicyAssignmentResult(
public val description: String,
public val displayName: String,
public val enforce: Boolean,
public val id: String,
public val identities: List,
public val location: String,
public val metadata: String,
public val name: String,
public val nonComplianceMessages: List,
public val notScopes: List,
public val parameters: String,
public val policyDefinitionId: String,
public val scopeId: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.policy.outputs.GetPolicyAssignmentResult): GetPolicyAssignmentResult = GetPolicyAssignmentResult(
description = javaType.description(),
displayName = javaType.displayName(),
enforce = javaType.enforce(),
id = javaType.id(),
identities = javaType.identities().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.policy.kotlin.outputs.GetPolicyAssignmentIdentity.Companion.toKotlin(args0)
})
}),
location = javaType.location(),
metadata = javaType.metadata(),
name = javaType.name(),
nonComplianceMessages = javaType.nonComplianceMessages().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.policy.kotlin.outputs.GetPolicyAssignmentNonComplianceMessage.Companion.toKotlin(args0)
})
}),
notScopes = javaType.notScopes().map({ args0 -> args0 }),
parameters = javaType.parameters(),
policyDefinitionId = javaType.policyDefinitionId(),
scopeId = javaType.scopeId(),
)
}
}