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

com.pulumi.azure.appservice.kotlin.outputs.WindowsFunctionAppSlotSiteConfigIpRestriction.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.appservice.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property action The action to take. Possible values are `Allow` or `Deny`. Defaults to `Allow`.
 * @property description The Description of this IP Restriction.
 * @property headers a `headers` block as detailed below.
 * @property ipAddress The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32`
 * @property name The name which should be used for this `ip_restriction`.
 * @property priority The priority value of this `ip_restriction`. Defaults to `65000`.
 * @property serviceTag The Service Tag used for this IP Restriction.
 * @property virtualNetworkSubnetId The Virtual Network Subnet ID used for this IP Restriction.
 * > **NOTE:** One and only one of `ip_address`, `service_tag` or `virtual_network_subnet_id` must be specified.
 */
public data class WindowsFunctionAppSlotSiteConfigIpRestriction(
    public val action: String? = null,
    public val description: String? = null,
    public val headers: WindowsFunctionAppSlotSiteConfigIpRestrictionHeaders? = null,
    public val ipAddress: String? = null,
    public val name: String? = null,
    public val priority: Int? = null,
    public val serviceTag: String? = null,
    public val virtualNetworkSubnetId: String? = null,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.appservice.outputs.WindowsFunctionAppSlotSiteConfigIpRestriction):
            WindowsFunctionAppSlotSiteConfigIpRestriction =
            WindowsFunctionAppSlotSiteConfigIpRestriction(
                action = javaType.action().map({ args0 -> args0 }).orElse(null),
                description = javaType.description().map({ args0 -> args0 }).orElse(null),
                headers = javaType.headers().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.azure.appservice.kotlin.outputs.WindowsFunctionAppSlotSiteConfigIpRestrictionHeaders.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                ipAddress = javaType.ipAddress().map({ args0 -> args0 }).orElse(null),
                name = javaType.name().map({ args0 -> args0 }).orElse(null),
                priority = javaType.priority().map({ args0 -> args0 }).orElse(null),
                serviceTag = javaType.serviceTag().map({ args0 -> args0 }).orElse(null),
                virtualNetworkSubnetId = javaType.virtualNetworkSubnetId().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy