com.pulumi.azure.cdn.kotlin.inputs.EndpointGlobalDeliveryRuleArgs.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.EndpointGlobalDeliveryRuleArgs.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 cacheExpirationAction A `cache_expiration_action` block as defined above.
* @property cacheKeyQueryStringAction A `cache_key_query_string_action` block as defined above.
* @property modifyRequestHeaderActions A `modify_request_header_action` block as defined below.
* @property modifyResponseHeaderActions A `modify_response_header_action` block as defined below.
* @property urlRedirectAction A `url_redirect_action` block as defined below.
* @property urlRewriteAction A `url_rewrite_action` block as defined below.
*/
public data class EndpointGlobalDeliveryRuleArgs(
public val cacheExpirationAction: Output? =
null,
public val cacheKeyQueryStringAction:
Output? = null,
public val modifyRequestHeaderActions:
Output>? = null,
public val modifyResponseHeaderActions:
Output>? = null,
public val urlRedirectAction: Output? = null,
public val urlRewriteAction: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.cdn.inputs.EndpointGlobalDeliveryRuleArgs =
com.pulumi.azure.cdn.inputs.EndpointGlobalDeliveryRuleArgs.builder()
.cacheExpirationAction(
cacheExpirationAction?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.cacheKeyQueryStringAction(
cacheKeyQueryStringAction?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.modifyRequestHeaderActions(
modifyRequestHeaderActions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.modifyResponseHeaderActions(
modifyResponseHeaderActions?.applyValue({ args0 ->
args0.map({ 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 [EndpointGlobalDeliveryRuleArgs].
*/
@PulumiTagMarker
public class EndpointGlobalDeliveryRuleArgsBuilder internal constructor() {
private var cacheExpirationAction: Output? =
null
private var cacheKeyQueryStringAction:
Output? = null
private var modifyRequestHeaderActions:
Output>? = null
private var modifyResponseHeaderActions:
Output>? = null
private var urlRedirectAction: Output? = null
private var urlRewriteAction: Output? = null
/**
* @param value A `cache_expiration_action` block as defined above.
*/
@JvmName("dxyigfjdcrhqvhex")
public suspend
fun cacheExpirationAction(`value`: Output) {
this.cacheExpirationAction = value
}
/**
* @param value A `cache_key_query_string_action` block as defined above.
*/
@JvmName("xssbqlguxqdfvvse")
public suspend
fun cacheKeyQueryStringAction(`value`: Output) {
this.cacheKeyQueryStringAction = value
}
/**
* @param value A `modify_request_header_action` block as defined below.
*/
@JvmName("ysiumvddveyoxrul")
public suspend
fun modifyRequestHeaderActions(`value`: Output>) {
this.modifyRequestHeaderActions = value
}
@JvmName("eqxvviftsfpsjopx")
public suspend fun modifyRequestHeaderActions(
vararg
values: Output,
) {
this.modifyRequestHeaderActions = Output.all(values.asList())
}
/**
* @param values A `modify_request_header_action` block as defined below.
*/
@JvmName("ctbamkvfstrvashu")
public suspend
fun modifyRequestHeaderActions(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy