com.pulumi.cloudflare.kotlin.inputs.RateLimitMatchResponseArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-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.cloudflare.kotlin.inputs
import com.pulumi.cloudflare.inputs.RateLimitMatchResponseArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
*
* @property headers List of HTTP headers maps to match the origin response on.
* @property originTraffic Only count traffic that has come from your origin servers. If true, cached items that Cloudflare serve will not count towards rate limiting.
* @property statuses HTTP Status codes, can be one, many or indicate all by not providing this value.
*/
public data class RateLimitMatchResponseArgs(
public val headers: Output>>? = null,
public val originTraffic: Output? = null,
public val statuses: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.RateLimitMatchResponseArgs =
com.pulumi.cloudflare.inputs.RateLimitMatchResponseArgs.builder()
.headers(
headers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
})
}),
)
.originTraffic(originTraffic?.applyValue({ args0 -> args0 }))
.statuses(statuses?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [RateLimitMatchResponseArgs].
*/
@PulumiTagMarker
public class RateLimitMatchResponseArgsBuilder internal constructor() {
private var headers: Output>>? = null
private var originTraffic: Output? = null
private var statuses: Output>? = null
/**
* @param value List of HTTP headers maps to match the origin response on.
*/
@JvmName("ewcfpkuawlbvsjve")
public suspend fun headers(`value`: Output>>) {
this.headers = value
}
@JvmName("jjbnamepytsnthws")
public suspend fun headers(vararg values: Output