com.pulumi.awsnative.wafv2.kotlin.inputs.RuleGroupLabelMatchStatementArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.wafv2.kotlin.inputs
import com.pulumi.awsnative.wafv2.inputs.RuleGroupLabelMatchStatementArgs.builder
import com.pulumi.awsnative.wafv2.kotlin.enums.RuleGroupLabelMatchScope
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 key The string to match against. The setting you provide for this depends on the match statement's `Scope` setting:
* - If the `Scope` indicates `LABEL` , then this specification must include the name and can include any number of preceding namespace specifications and prefix up to providing the fully qualified label name.
* - If the `Scope` indicates `NAMESPACE` , then this specification can include any number of contiguous namespace strings, and can include the entire label namespace prefix from the rule group or web ACL where the label originates.
* Labels are case sensitive and components of a label must be separated by colon, for example `NS1:NS2:name` .
* @property scope Specify whether you want to match using the label name or just the namespace.
*/
public data class RuleGroupLabelMatchStatementArgs(
public val key: Output,
public val scope: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.wafv2.inputs.RuleGroupLabelMatchStatementArgs =
com.pulumi.awsnative.wafv2.inputs.RuleGroupLabelMatchStatementArgs.builder()
.key(key.applyValue({ args0 -> args0 }))
.scope(scope.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [RuleGroupLabelMatchStatementArgs].
*/
@PulumiTagMarker
public class RuleGroupLabelMatchStatementArgsBuilder internal constructor() {
private var key: Output? = null
private var scope: Output? = null
/**
* @param value The string to match against. The setting you provide for this depends on the match statement's `Scope` setting:
* - If the `Scope` indicates `LABEL` , then this specification must include the name and can include any number of preceding namespace specifications and prefix up to providing the fully qualified label name.
* - If the `Scope` indicates `NAMESPACE` , then this specification can include any number of contiguous namespace strings, and can include the entire label namespace prefix from the rule group or web ACL where the label originates.
* Labels are case sensitive and components of a label must be separated by colon, for example `NS1:NS2:name` .
*/
@JvmName("qovvxeuhsrfayyfi")
public suspend fun key(`value`: Output) {
this.key = value
}
/**
* @param value Specify whether you want to match using the label name or just the namespace.
*/
@JvmName("cnrkauhesrxbjykh")
public suspend fun scope(`value`: Output) {
this.scope = value
}
/**
* @param value The string to match against. The setting you provide for this depends on the match statement's `Scope` setting:
* - If the `Scope` indicates `LABEL` , then this specification must include the name and can include any number of preceding namespace specifications and prefix up to providing the fully qualified label name.
* - If the `Scope` indicates `NAMESPACE` , then this specification can include any number of contiguous namespace strings, and can include the entire label namespace prefix from the rule group or web ACL where the label originates.
* Labels are case sensitive and components of a label must be separated by colon, for example `NS1:NS2:name` .
*/
@JvmName("osovrrjqxjfcxkdc")
public suspend fun key(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.key = mapped
}
/**
* @param value Specify whether you want to match using the label name or just the namespace.
*/
@JvmName("eendkqsmdkcfxmfw")
public suspend fun scope(`value`: RuleGroupLabelMatchScope) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.scope = mapped
}
internal fun build(): RuleGroupLabelMatchStatementArgs = RuleGroupLabelMatchStatementArgs(
key = key ?: throw PulumiNullFieldException("key"),
scope = scope ?: throw PulumiNullFieldException("scope"),
)
}