com.pulumi.cloudflare.kotlin.inputs.RateLimitMatchRequestArgs.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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin.inputs
import com.pulumi.cloudflare.inputs.RateLimitMatchRequestArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property methods HTTP Methods to match traffic on. Available values: `GET`, `POST`, `PUT`, `DELETE`, `PATCH`, `HEAD`, `_ALL_`.
* @property schemes HTTP schemes to match traffic on. Available values: `HTTP`, `HTTPS`, `_ALL_`.
* @property urlPattern The URL pattern to match comprised of the host and path, i.e. example.org/path. Wildcard are expanded to match applicable traffic, query strings are not matched. Use _ for all traffic to your zone.
*/
public data class RateLimitMatchRequestArgs(
public val methods: Output>? = null,
public val schemes: Output>? = null,
public val urlPattern: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.RateLimitMatchRequestArgs =
com.pulumi.cloudflare.inputs.RateLimitMatchRequestArgs.builder()
.methods(methods?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.schemes(schemes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.urlPattern(urlPattern?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RateLimitMatchRequestArgs].
*/
@PulumiTagMarker
public class RateLimitMatchRequestArgsBuilder internal constructor() {
private var methods: Output>? = null
private var schemes: Output>? = null
private var urlPattern: Output? = null
/**
* @param value HTTP Methods to match traffic on. Available values: `GET`, `POST`, `PUT`, `DELETE`, `PATCH`, `HEAD`, `_ALL_`.
*/
@JvmName("ktycopbtjibjkkij")
public suspend fun methods(`value`: Output>) {
this.methods = value
}
@JvmName("snhtuagtsaswoppi")
public suspend fun methods(vararg values: Output) {
this.methods = Output.all(values.asList())
}
/**
* @param values HTTP Methods to match traffic on. Available values: `GET`, `POST`, `PUT`, `DELETE`, `PATCH`, `HEAD`, `_ALL_`.
*/
@JvmName("vootewduuwrjocpi")
public suspend fun methods(values: List