com.pulumi.azure.containerapp.kotlin.inputs.AppIngressIpSecurityRestrictionArgs.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.containerapp.kotlin.inputs
import com.pulumi.azure.containerapp.inputs.AppIngressIpSecurityRestrictionArgs.builder
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
/**
*
* @property action The IP-filter action. `Allow` or `Deny`.
* > **NOTE:** The `action` types in an all `ip_security_restriction` blocks must be the same for the `ingress`, mixing `Allow` and `Deny` rules is not currently supported by the service.
* @property description Describe the IP restriction rule that is being sent to the container-app.
* @property ipAddressRange The incoming IP address or range of IP addresses (in CIDR notation).
* @property name Name for the IP restriction rule.
*/
public data class AppIngressIpSecurityRestrictionArgs(
public val action: Output,
public val description: Output? = null,
public val ipAddressRange: Output,
public val name: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.containerapp.inputs.AppIngressIpSecurityRestrictionArgs =
com.pulumi.azure.containerapp.inputs.AppIngressIpSecurityRestrictionArgs.builder()
.action(action.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.ipAddressRange(ipAddressRange.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AppIngressIpSecurityRestrictionArgs].
*/
@PulumiTagMarker
public class AppIngressIpSecurityRestrictionArgsBuilder internal constructor() {
private var action: Output? = null
private var description: Output? = null
private var ipAddressRange: Output? = null
private var name: Output? = null
/**
* @param value The IP-filter action. `Allow` or `Deny`.
* > **NOTE:** The `action` types in an all `ip_security_restriction` blocks must be the same for the `ingress`, mixing `Allow` and `Deny` rules is not currently supported by the service.
*/
@JvmName("qkyxaaegnylsslvi")
public suspend fun action(`value`: Output) {
this.action = value
}
/**
* @param value Describe the IP restriction rule that is being sent to the container-app.
*/
@JvmName("ybcocvuvpdnbgwqv")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The incoming IP address or range of IP addresses (in CIDR notation).
*/
@JvmName("skiirgclrpikswyk")
public suspend fun ipAddressRange(`value`: Output) {
this.ipAddressRange = value
}
/**
* @param value Name for the IP restriction rule.
*/
@JvmName("yhjicvliigwfgnid")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The IP-filter action. `Allow` or `Deny`.
* > **NOTE:** The `action` types in an all `ip_security_restriction` blocks must be the same for the `ingress`, mixing `Allow` and `Deny` rules is not currently supported by the service.
*/
@JvmName("mudxrsqewagaqwbi")
public suspend fun action(`value`: String) {
val toBeMapped = 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.
*/
@JvmName("inwajhdggtetjrwl")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value The incoming IP address or range of IP addresses (in CIDR notation).
*/
@JvmName("tbeanshqsosuydeu")
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("kasijcocarmsitjo")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): AppIngressIpSecurityRestrictionArgs = AppIngressIpSecurityRestrictionArgs(
action = action ?: throw PulumiNullFieldException("action"),
description = description,
ipAddressRange = ipAddressRange ?: throw PulumiNullFieldException("ipAddressRange"),
name = name ?: throw PulumiNullFieldException("name"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy