com.pulumi.aws.wafregional.kotlin.inputs.GeoMatchSetGeoMatchConstraintArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.wafregional.kotlin.inputs
import com.pulumi.aws.wafregional.inputs.GeoMatchSetGeoMatchConstraintArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property type The type of geographical area you want AWS WAF to search for. Currently Country is the only valid value.
* @property value The country that you want AWS WAF to search for.
* This is the two-letter country code, e.g., `US`, `CA`, `RU`, `CN`, etc.
* See [docs](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchConstraint.html) for all supported values.
*/
public data class GeoMatchSetGeoMatchConstraintArgs(
public val type: Output,
public val `value`: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.wafregional.inputs.GeoMatchSetGeoMatchConstraintArgs =
com.pulumi.aws.wafregional.inputs.GeoMatchSetGeoMatchConstraintArgs.builder()
.type(type.applyValue({ args0 -> args0 }))
.`value`(`value`.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [GeoMatchSetGeoMatchConstraintArgs].
*/
@PulumiTagMarker
public class GeoMatchSetGeoMatchConstraintArgsBuilder internal constructor() {
private var type: Output? = null
private var `value`: Output? = null
/**
* @param value The type of geographical area you want AWS WAF to search for. Currently Country is the only valid value.
*/
@JvmName("epuyjkrufqmqtxof")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value The country that you want AWS WAF to search for.
* This is the two-letter country code, e.g., `US`, `CA`, `RU`, `CN`, etc.
* See [docs](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchConstraint.html) for all supported values.
*/
@JvmName("sbbnxvvtjnacksso")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value The type of geographical area you want AWS WAF to search for. Currently Country is the only valid value.
*/
@JvmName("xvoxoyswptrtjhqc")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value The country that you want AWS WAF to search for.
* This is the two-letter country code, e.g., `US`, `CA`, `RU`, `CN`, etc.
* See [docs](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchConstraint.html) for all supported values.
*/
@JvmName("xrbqisxrmdxxjapv")
public suspend fun `value`(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): GeoMatchSetGeoMatchConstraintArgs = GeoMatchSetGeoMatchConstraintArgs(
type = type ?: throw PulumiNullFieldException("type"),
`value` = `value` ?: throw PulumiNullFieldException("value"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy