![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.app.kotlin.inputs.IpSecurityRestrictionRuleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.app.kotlin.inputs
import com.pulumi.azurenative.app.inputs.IpSecurityRestrictionRuleArgs.builder
import com.pulumi.azurenative.app.kotlin.enums.Action
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Rule to restrict incoming IP address.
* @property action Allow or Deny rules to determine for incoming IP. Note: Rules can only consist of ALL Allow or ALL Deny
* @property description Describe the IP restriction rule that is being sent to the container-app. This is an optional field.
* @property ipAddressRange CIDR notation to match incoming IP address
* @property name Name for the IP restriction rule.
*/
public data class IpSecurityRestrictionRuleArgs(
public val action: Output>,
public val description: Output? = null,
public val ipAddressRange: Output,
public val name: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.app.inputs.IpSecurityRestrictionRuleArgs =
com.pulumi.azurenative.app.inputs.IpSecurityRestrictionRuleArgs.builder()
.action(
action.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.description(description?.applyValue({ args0 -> args0 }))
.ipAddressRange(ipAddressRange.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [IpSecurityRestrictionRuleArgs].
*/
@PulumiTagMarker
public class IpSecurityRestrictionRuleArgsBuilder internal constructor() {
private var action: Output>? = null
private var description: Output? = null
private var ipAddressRange: Output? = null
private var name: Output? = null
/**
* @param value Allow or Deny rules to determine for incoming IP. Note: Rules can only consist of ALL Allow or ALL Deny
*/
@JvmName("bfnpogamvpofxdca")
public suspend fun action(`value`: Output>) {
this.action = value
}
/**
* @param value Describe the IP restriction rule that is being sent to the container-app. This is an optional field.
*/
@JvmName("atihartlnkkfwmqq")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value CIDR notation to match incoming IP address
*/
@JvmName("ibhyssesnapvkrol")
public suspend fun ipAddressRange(`value`: Output) {
this.ipAddressRange = value
}
/**
* @param value Name for the IP restriction rule.
*/
@JvmName("tlmwmkhskhtgjflp")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Allow or Deny rules to determine for incoming IP. Note: Rules can only consist of ALL Allow or ALL Deny
*/
@JvmName("hdmidclpmwjgimxf")
public suspend fun action(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.action = mapped
}
/**
* @param value Allow or Deny rules to determine for incoming IP. Note: Rules can only consist of ALL Allow or ALL Deny
*/
@JvmName("hkpmcuxhjskntomk")
public fun action(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.action = mapped
}
/**
* @param value Allow or Deny rules to determine for incoming IP. Note: Rules can only consist of ALL Allow or ALL Deny
*/
@JvmName("hykfgfrnbshbitgh")
public fun action(`value`: Action) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.action = mapped
}
/**
* @param value Describe the IP restriction rule that is being sent to the container-app. This is an optional field.
*/
@JvmName("apiewbicmdejuxdg")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value CIDR notation to match incoming IP address
*/
@JvmName("ffbckwoqdkkgipxl")
public suspend fun ipAddressRange(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.ipAddressRange = mapped
}
/**
* @param value Name for the IP restriction rule.
*/
@JvmName("ordcdmwahgjriymq")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): IpSecurityRestrictionRuleArgs = IpSecurityRestrictionRuleArgs(
action = action ?: throw PulumiNullFieldException("action"),
description = description,
ipAddressRange = ipAddressRange ?: throw PulumiNullFieldException("ipAddressRange"),
name = name ?: throw PulumiNullFieldException("name"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy