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

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

package com.pulumi.azure.network.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property defaultLogAnalyticsWorkspaceId The ID of the default Log Analytics Workspace that the Firewalls associated with this Firewall Policy will send their logs to, when there is no location matches in the `log_analytics_workspace`.
 * @property enabled Whether the insights functionality is enabled for this Firewall Policy.
 * @property logAnalyticsWorkspaces A list of `log_analytics_workspace` block as defined below.
 * @property retentionInDays The log retention period in days.
 */
public data class FirewallPolicyInsights(
    public val defaultLogAnalyticsWorkspaceId: String,
    public val enabled: Boolean,
    public val logAnalyticsWorkspaces: List? = null,
    public val retentionInDays: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.network.outputs.FirewallPolicyInsights):
            FirewallPolicyInsights = FirewallPolicyInsights(
            defaultLogAnalyticsWorkspaceId = javaType.defaultLogAnalyticsWorkspaceId(),
            enabled = javaType.enabled(),
            logAnalyticsWorkspaces = javaType.logAnalyticsWorkspaces().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.network.kotlin.outputs.FirewallPolicyInsightsLogAnalyticsWorkspace.Companion.toKotlin(args0)
                })
            }),
            retentionInDays = javaType.retentionInDays().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy