
com.pulumi.azure.cdn.kotlin.inputs.FrontdoorRuleActionsArgs.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.cdn.kotlin.inputs
import com.pulumi.azure.cdn.inputs.FrontdoorRuleActionsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property requestHeaderActions A `request_header_action` block as defined below.
* @property responseHeaderActions A `response_header_action` block as defined below.
* @property routeConfigurationOverrideAction A `route_configuration_override_action` block as defined below.
* @property urlRedirectAction A `url_redirect_action` block as defined below. You may **not** have a `url_redirect_action` **and** a `url_rewrite_action` defined in the same `actions` block.
* @property urlRewriteAction A `url_rewrite_action` block as defined below. You may **not** have a `url_rewrite_action` **and** a `url_redirect_action` defined in the same `actions` block.
*/
public data class FrontdoorRuleActionsArgs(
public val requestHeaderActions: Output>? =
null,
public val responseHeaderActions: Output>? =
null,
public val routeConfigurationOverrideAction:
Output? = null,
public val urlRedirectAction: Output? = null,
public val urlRewriteAction: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.cdn.inputs.FrontdoorRuleActionsArgs =
com.pulumi.azure.cdn.inputs.FrontdoorRuleActionsArgs.builder()
.requestHeaderActions(
requestHeaderActions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.responseHeaderActions(
responseHeaderActions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.routeConfigurationOverrideAction(
routeConfigurationOverrideAction?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
)
.urlRedirectAction(urlRedirectAction?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.urlRewriteAction(
urlRewriteAction?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [FrontdoorRuleActionsArgs].
*/
@PulumiTagMarker
public class FrontdoorRuleActionsArgsBuilder internal constructor() {
private var requestHeaderActions: Output>? =
null
private var responseHeaderActions: Output>? =
null
private var routeConfigurationOverrideAction:
Output? = null
private var urlRedirectAction: Output? = null
private var urlRewriteAction: Output? = null
/**
* @param value A `request_header_action` block as defined below.
*/
@JvmName("hypevhhcwmoprbuk")
public suspend
fun requestHeaderActions(`value`: Output>) {
this.requestHeaderActions = value
}
@JvmName("kxnwtqmaqrlhursm")
public suspend fun requestHeaderActions(
vararg
values: Output,
) {
this.requestHeaderActions = Output.all(values.asList())
}
/**
* @param values A `request_header_action` block as defined below.
*/
@JvmName("himnyeirxavvwrpw")
public suspend
fun requestHeaderActions(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy