com.pulumi.azure.network.kotlin.inputs.ApplicationGatewayRequestRoutingRuleArgs.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.network.kotlin.inputs
import com.pulumi.azure.network.inputs.ApplicationGatewayRequestRoutingRuleArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property backendAddressPoolId The ID of the associated Backend Address Pool.
* @property backendAddressPoolName The Name of the Backend Address Pool which should be used for this Routing Rule. Cannot be set if `redirect_configuration_name` is set.
* @property backendHttpSettingsId The ID of the associated Backend HTTP Settings Configuration.
* @property backendHttpSettingsName The Name of the Backend HTTP Settings Collection which should be used for this Routing Rule. Cannot be set if `redirect_configuration_name` is set.
* @property httpListenerId The ID of the associated HTTP Listener.
* @property httpListenerName The Name of the HTTP Listener which should be used for this Routing Rule.
* @property id The ID of the Rewrite Rule Set
* @property name The Name of this Request Routing Rule.
* @property priority Rule evaluation order can be dictated by specifying an integer value from `1` to `20000` with `1` being the highest priority and `20000` being the lowest priority.
* > **NOTE:** `priority` is required when `sku[0].tier` is set to `*_v2`.
* @property redirectConfigurationId The ID of the associated Redirect Configuration.
* @property redirectConfigurationName The Name of the Redirect Configuration which should be used for this Routing Rule. Cannot be set if either `backend_address_pool_name` or `backend_http_settings_name` is set.
* @property rewriteRuleSetId The ID of the associated Rewrite Rule Set.
* @property rewriteRuleSetName The Name of the Rewrite Rule Set which should be used for this Routing Rule. Only valid for v2 SKUs.
* > **NOTE:** `backend_address_pool_name`, `backend_http_settings_name`, `redirect_configuration_name`, and `rewrite_rule_set_name` are applicable only when `rule_type` is `Basic`.
* @property ruleType The Type of Routing that should be used for this Rule. Possible values are `Basic` and `PathBasedRouting`.
* @property urlPathMapId The ID of the associated URL Path Map.
* @property urlPathMapName The Name of the URL Path Map which should be associated with this Routing Rule.
*/
public data class ApplicationGatewayRequestRoutingRuleArgs(
public val backendAddressPoolId: Output? = null,
public val backendAddressPoolName: Output? = null,
public val backendHttpSettingsId: Output? = null,
public val backendHttpSettingsName: Output? = null,
public val httpListenerId: Output? = null,
public val httpListenerName: Output,
public val id: Output? = null,
public val name: Output,
public val priority: Output? = null,
public val redirectConfigurationId: Output? = null,
public val redirectConfigurationName: Output? = null,
public val rewriteRuleSetId: Output? = null,
public val rewriteRuleSetName: Output? = null,
public val ruleType: Output,
public val urlPathMapId: Output? = null,
public val urlPathMapName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.network.inputs.ApplicationGatewayRequestRoutingRuleArgs =
com.pulumi.azure.network.inputs.ApplicationGatewayRequestRoutingRuleArgs.builder()
.backendAddressPoolId(backendAddressPoolId?.applyValue({ args0 -> args0 }))
.backendAddressPoolName(backendAddressPoolName?.applyValue({ args0 -> args0 }))
.backendHttpSettingsId(backendHttpSettingsId?.applyValue({ args0 -> args0 }))
.backendHttpSettingsName(backendHttpSettingsName?.applyValue({ args0 -> args0 }))
.httpListenerId(httpListenerId?.applyValue({ args0 -> args0 }))
.httpListenerName(httpListenerName.applyValue({ args0 -> args0 }))
.id(id?.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.priority(priority?.applyValue({ args0 -> args0 }))
.redirectConfigurationId(redirectConfigurationId?.applyValue({ args0 -> args0 }))
.redirectConfigurationName(redirectConfigurationName?.applyValue({ args0 -> args0 }))
.rewriteRuleSetId(rewriteRuleSetId?.applyValue({ args0 -> args0 }))
.rewriteRuleSetName(rewriteRuleSetName?.applyValue({ args0 -> args0 }))
.ruleType(ruleType.applyValue({ args0 -> args0 }))
.urlPathMapId(urlPathMapId?.applyValue({ args0 -> args0 }))
.urlPathMapName(urlPathMapName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ApplicationGatewayRequestRoutingRuleArgs].
*/
@PulumiTagMarker
public class ApplicationGatewayRequestRoutingRuleArgsBuilder internal constructor() {
private var backendAddressPoolId: Output? = null
private var backendAddressPoolName: Output? = null
private var backendHttpSettingsId: Output? = null
private var backendHttpSettingsName: Output? = null
private var httpListenerId: Output? = null
private var httpListenerName: Output? = null
private var id: Output? = null
private var name: Output? = null
private var priority: Output? = null
private var redirectConfigurationId: Output? = null
private var redirectConfigurationName: Output? = null
private var rewriteRuleSetId: Output? = null
private var rewriteRuleSetName: Output? = null
private var ruleType: Output? = null
private var urlPathMapId: Output? = null
private var urlPathMapName: Output? = null
/**
* @param value The ID of the associated Backend Address Pool.
*/
@JvmName("mxrowkwfsyfeeitm")
public suspend fun backendAddressPoolId(`value`: Output) {
this.backendAddressPoolId = value
}
/**
* @param value The Name of the Backend Address Pool which should be used for this Routing Rule. Cannot be set if `redirect_configuration_name` is set.
*/
@JvmName("vvatpomyiqwhatrn")
public suspend fun backendAddressPoolName(`value`: Output) {
this.backendAddressPoolName = value
}
/**
* @param value The ID of the associated Backend HTTP Settings Configuration.
*/
@JvmName("vkuatiognovcaowh")
public suspend fun backendHttpSettingsId(`value`: Output) {
this.backendHttpSettingsId = value
}
/**
* @param value The Name of the Backend HTTP Settings Collection which should be used for this Routing Rule. Cannot be set if `redirect_configuration_name` is set.
*/
@JvmName("bpmxposwnkthhlbc")
public suspend fun backendHttpSettingsName(`value`: Output) {
this.backendHttpSettingsName = value
}
/**
* @param value The ID of the associated HTTP Listener.
*/
@JvmName("uwvdpdxqqxccsbvn")
public suspend fun httpListenerId(`value`: Output) {
this.httpListenerId = value
}
/**
* @param value The Name of the HTTP Listener which should be used for this Routing Rule.
*/
@JvmName("cywhapxhbftlxykq")
public suspend fun httpListenerName(`value`: Output) {
this.httpListenerName = value
}
/**
* @param value The ID of the Rewrite Rule Set
*/
@JvmName("bdliiecqvpjdpiec")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value The Name of this Request Routing Rule.
*/
@JvmName("wsofwphyaeopmoif")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Rule evaluation order can be dictated by specifying an integer value from `1` to `20000` with `1` being the highest priority and `20000` being the lowest priority.
* > **NOTE:** `priority` is required when `sku[0].tier` is set to `*_v2`.
*/
@JvmName("futvhxyibyfoqcnu")
public suspend fun priority(`value`: Output) {
this.priority = value
}
/**
* @param value The ID of the associated Redirect Configuration.
*/
@JvmName("kgcbhjfmblnvpspm")
public suspend fun redirectConfigurationId(`value`: Output) {
this.redirectConfigurationId = value
}
/**
* @param value The Name of the Redirect Configuration which should be used for this Routing Rule. Cannot be set if either `backend_address_pool_name` or `backend_http_settings_name` is set.
*/
@JvmName("ljqlquxqssujjqhw")
public suspend fun redirectConfigurationName(`value`: Output) {
this.redirectConfigurationName = value
}
/**
* @param value The ID of the associated Rewrite Rule Set.
*/
@JvmName("ynonyxcaggnkkhnr")
public suspend fun rewriteRuleSetId(`value`: Output) {
this.rewriteRuleSetId = value
}
/**
* @param value The Name of the Rewrite Rule Set which should be used for this Routing Rule. Only valid for v2 SKUs.
* > **NOTE:** `backend_address_pool_name`, `backend_http_settings_name`, `redirect_configuration_name`, and `rewrite_rule_set_name` are applicable only when `rule_type` is `Basic`.
*/
@JvmName("rlgwfyptvwcahwfk")
public suspend fun rewriteRuleSetName(`value`: Output) {
this.rewriteRuleSetName = value
}
/**
* @param value The Type of Routing that should be used for this Rule. Possible values are `Basic` and `PathBasedRouting`.
*/
@JvmName("hlobdvfajugmbmyr")
public suspend fun ruleType(`value`: Output) {
this.ruleType = value
}
/**
* @param value The ID of the associated URL Path Map.
*/
@JvmName("ajhubfbckejigmph")
public suspend fun urlPathMapId(`value`: Output) {
this.urlPathMapId = value
}
/**
* @param value The Name of the URL Path Map which should be associated with this Routing Rule.
*/
@JvmName("ysqcaryrddsvucxf")
public suspend fun urlPathMapName(`value`: Output) {
this.urlPathMapName = value
}
/**
* @param value The ID of the associated Backend Address Pool.
*/
@JvmName("vudnbndhfxjsurwq")
public suspend fun backendAddressPoolId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.backendAddressPoolId = mapped
}
/**
* @param value The Name of the Backend Address Pool which should be used for this Routing Rule. Cannot be set if `redirect_configuration_name` is set.
*/
@JvmName("ctdsjiyejrsqkcfs")
public suspend fun backendAddressPoolName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.backendAddressPoolName = mapped
}
/**
* @param value The ID of the associated Backend HTTP Settings Configuration.
*/
@JvmName("ystcylkocfbhtqqt")
public suspend fun backendHttpSettingsId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.backendHttpSettingsId = mapped
}
/**
* @param value The Name of the Backend HTTP Settings Collection which should be used for this Routing Rule. Cannot be set if `redirect_configuration_name` is set.
*/
@JvmName("keosmvbiasthhumx")
public suspend fun backendHttpSettingsName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.backendHttpSettingsName = mapped
}
/**
* @param value The ID of the associated HTTP Listener.
*/
@JvmName("eftasctqsaurvpdt")
public suspend fun httpListenerId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.httpListenerId = mapped
}
/**
* @param value The Name of the HTTP Listener which should be used for this Routing Rule.
*/
@JvmName("qddabinrrjecmola")
public suspend fun httpListenerName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.httpListenerName = mapped
}
/**
* @param value The ID of the Rewrite Rule Set
*/
@JvmName("vkbgxxgkuefqddht")
public suspend fun id(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.id = mapped
}
/**
* @param value The Name of this Request Routing Rule.
*/
@JvmName("ihxvssjkntbfqmeg")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Rule evaluation order can be dictated by specifying an integer value from `1` to `20000` with `1` being the highest priority and `20000` being the lowest priority.
* > **NOTE:** `priority` is required when `sku[0].tier` is set to `*_v2`.
*/
@JvmName("xxegcggxfdqjygfl")
public suspend fun priority(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.priority = mapped
}
/**
* @param value The ID of the associated Redirect Configuration.
*/
@JvmName("jsdwlucovlqldqqe")
public suspend fun redirectConfigurationId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.redirectConfigurationId = mapped
}
/**
* @param value The Name of the Redirect Configuration which should be used for this Routing Rule. Cannot be set if either `backend_address_pool_name` or `backend_http_settings_name` is set.
*/
@JvmName("gphxjclsbyamehou")
public suspend fun redirectConfigurationName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.redirectConfigurationName = mapped
}
/**
* @param value The ID of the associated Rewrite Rule Set.
*/
@JvmName("hnlrdjieabscixsi")
public suspend fun rewriteRuleSetId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.rewriteRuleSetId = mapped
}
/**
* @param value The Name of the Rewrite Rule Set which should be used for this Routing Rule. Only valid for v2 SKUs.
* > **NOTE:** `backend_address_pool_name`, `backend_http_settings_name`, `redirect_configuration_name`, and `rewrite_rule_set_name` are applicable only when `rule_type` is `Basic`.
*/
@JvmName("lshqeqhjlgkyyxfk")
public suspend fun rewriteRuleSetName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.rewriteRuleSetName = mapped
}
/**
* @param value The Type of Routing that should be used for this Rule. Possible values are `Basic` and `PathBasedRouting`.
*/
@JvmName("drnltpywlmsntykr")
public suspend fun ruleType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.ruleType = mapped
}
/**
* @param value The ID of the associated URL Path Map.
*/
@JvmName("kntkmhwkwomrycps")
public suspend fun urlPathMapId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.urlPathMapId = mapped
}
/**
* @param value The Name of the URL Path Map which should be associated with this Routing Rule.
*/
@JvmName("evemntnekvorivcc")
public suspend fun urlPathMapName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.urlPathMapName = mapped
}
internal fun build(): ApplicationGatewayRequestRoutingRuleArgs =
ApplicationGatewayRequestRoutingRuleArgs(
backendAddressPoolId = backendAddressPoolId,
backendAddressPoolName = backendAddressPoolName,
backendHttpSettingsId = backendHttpSettingsId,
backendHttpSettingsName = backendHttpSettingsName,
httpListenerId = httpListenerId,
httpListenerName = httpListenerName ?: throw PulumiNullFieldException("httpListenerName"),
id = id,
name = name ?: throw PulumiNullFieldException("name"),
priority = priority,
redirectConfigurationId = redirectConfigurationId,
redirectConfigurationName = redirectConfigurationName,
rewriteRuleSetId = rewriteRuleSetId,
rewriteRuleSetName = rewriteRuleSetName,
ruleType = ruleType ?: throw PulumiNullFieldException("ruleType"),
urlPathMapId = urlPathMapId,
urlPathMapName = urlPathMapName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy