com.pulumi.azure.network.kotlin.outputs.GetFirewallPolicyResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.network.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
* A collection of values returned by getFirewallPolicy.
* @property basePolicyId
* @property childPolicies
* @property dns
* @property firewalls
* @property id The provider-assigned unique ID for this managed resource.
* @property location
* @property name
* @property resourceGroupName
* @property ruleCollectionGroups
* @property tags A mapping of tags assigned to the Firewall Policy.
* @property threatIntelligenceAllowlists
* @property threatIntelligenceMode
*/
public data class GetFirewallPolicyResult(
public val basePolicyId: String,
public val childPolicies: List,
public val dns: List,
public val firewalls: List,
public val id: String,
public val location: String,
public val name: String,
public val resourceGroupName: String,
public val ruleCollectionGroups: List,
public val tags: Map,
public val threatIntelligenceAllowlists: List,
public val threatIntelligenceMode: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.network.outputs.GetFirewallPolicyResult): GetFirewallPolicyResult = GetFirewallPolicyResult(
basePolicyId = javaType.basePolicyId(),
childPolicies = javaType.childPolicies().map({ args0 -> args0 }),
dns = javaType.dns().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.network.kotlin.outputs.GetFirewallPolicyDn.Companion.toKotlin(args0)
})
}),
firewalls = javaType.firewalls().map({ args0 -> args0 }),
id = javaType.id(),
location = javaType.location(),
name = javaType.name(),
resourceGroupName = javaType.resourceGroupName(),
ruleCollectionGroups = javaType.ruleCollectionGroups().map({ args0 -> args0 }),
tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
threatIntelligenceAllowlists = javaType.threatIntelligenceAllowlists().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.network.kotlin.outputs.GetFirewallPolicyThreatIntelligenceAllowlist.Companion.toKotlin(args0)
})
}),
threatIntelligenceMode = javaType.threatIntelligenceMode(),
)
}
}