com.pulumi.azure.appservice.kotlin.outputs.AppServiceSiteConfigScmIpRestriction.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.appservice.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property action Allow or Deny access for this IP range. Defaults to `Allow`.
* @property headers The `headers` block for this specific `scm_ip_restriction` as defined below.
* @property ipAddress The IP Address used for this IP Restriction in CIDR notation.
* @property name The name for this IP Restriction.
* @property priority The priority for this IP Restriction. Restrictions are enforced in priority order. By default, priority is set to 65000 if not specified.
* @property serviceTag The Service Tag used for this IP Restriction.
* @property virtualNetworkSubnetId The Virtual Network Subnet ID used for this IP Restriction.
* > **NOTE:** One of either `ip_address`, `service_tag` or `virtual_network_subnet_id` must be specified
*/
public data class AppServiceSiteConfigScmIpRestriction(
public val action: String? = null,
public val headers: AppServiceSiteConfigScmIpRestrictionHeaders? = 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.AppServiceSiteConfigScmIpRestriction):
AppServiceSiteConfigScmIpRestriction = AppServiceSiteConfigScmIpRestriction(
action = javaType.action().map({ args0 -> args0 }).orElse(null),
headers = javaType.headers().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.appservice.kotlin.outputs.AppServiceSiteConfigScmIpRestrictionHeaders.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