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

com.pulumi.azure.network.kotlin.outputs.FirewallApplicationRuleCollectionRule.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.network.kotlin.outputs

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

/**
 *
 * @property description Specifies a description for the rule.
 * @property fqdnTags A list of FQDN tags. Possible values are `AppServiceEnvironment`, `AzureBackup`, `AzureKubernetesService`, `HDInsight`, `MicrosoftActiveProtectionService`, `WindowsDiagnostics`, `WindowsUpdate` and `WindowsVirtualDesktop`.
 * @property name Specifies the name of the rule.
 * @property protocols One or more `protocol` blocks as defined below.
 * @property sourceAddresses A list of source IP addresses and/or IP ranges.
 * @property sourceIpGroups A list of source IP Group IDs for the rule.
 * > **NOTE** At least one of `source_addresses` and `source_ip_groups` must be specified for a rule.
 * @property targetFqdns A list of FQDNs.
 */
public data class FirewallApplicationRuleCollectionRule(
    public val description: String? = null,
    public val fqdnTags: List? = null,
    public val name: String,
    public val protocols: List? = null,
    public val sourceAddresses: List? = null,
    public val sourceIpGroups: List? = null,
    public val targetFqdns: List? = null,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.network.outputs.FirewallApplicationRuleCollectionRule):
            FirewallApplicationRuleCollectionRule = FirewallApplicationRuleCollectionRule(
            description = javaType.description().map({ args0 -> args0 }).orElse(null),
            fqdnTags = javaType.fqdnTags().map({ args0 -> args0 }),
            name = javaType.name(),
            protocols = javaType.protocols().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.network.kotlin.outputs.FirewallApplicationRuleCollectionRuleProtocol.Companion.toKotlin(args0)
                })
            }),
            sourceAddresses = javaType.sourceAddresses().map({ args0 -> args0 }),
            sourceIpGroups = javaType.sourceIpGroups().map({ args0 -> args0 }),
            targetFqdns = javaType.targetFqdns().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy