Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.awsnative.wafv2.kotlin.RuleGroupArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.wafv2.kotlin
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.wafv2.RuleGroupArgs.builder
import com.pulumi.awsnative.wafv2.kotlin.enums.RuleGroupScope
import com.pulumi.awsnative.wafv2.kotlin.inputs.RuleGroupCustomResponseBodyArgs
import com.pulumi.awsnative.wafv2.kotlin.inputs.RuleGroupCustomResponseBodyArgsBuilder
import com.pulumi.awsnative.wafv2.kotlin.inputs.RuleGroupLabelSummaryArgs
import com.pulumi.awsnative.wafv2.kotlin.inputs.RuleGroupLabelSummaryArgsBuilder
import com.pulumi.awsnative.wafv2.kotlin.inputs.RuleGroupRuleArgs
import com.pulumi.awsnative.wafv2.kotlin.inputs.RuleGroupRuleArgsBuilder
import com.pulumi.awsnative.wafv2.kotlin.inputs.RuleGroupVisibilityConfigArgs
import com.pulumi.awsnative.wafv2.kotlin.inputs.RuleGroupVisibilityConfigArgsBuilder
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.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Contains the Rules that identify the requests that you want to allow, block, or count. In a RuleGroup, you also specify a default action (ALLOW or BLOCK), and the action for each Rule that you add to a RuleGroup, for example, block requests from specified IP addresses or block requests from specified referrers. You also associate the RuleGroup with a CloudFront distribution to identify the requests that you want AWS WAF to filter. If you add more than one Rule to a RuleGroup, a request needs to match only one of the specifications to be allowed, blocked, or counted.
* @property availableLabels Collection of Available Labels.
* @property capacity The web ACL capacity units (WCUs) required for this rule group.
* When you create your own rule group, you define this, and you cannot change it after creation. When you add or modify the rules in a rule group, AWS WAF enforces this limit.
* AWS WAF uses WCUs to calculate and control the operating resources that are used to run your rules, rule groups, and web ACLs. AWS WAF calculates capacity differently for each rule type, to reflect the relative cost of each rule. Simple rules that cost little to run use fewer WCUs than more complex rules that use more processing power. Rule group capacity is fixed at creation, which helps users plan their web ACL WCU usage when they use a rule group. The WCU limit for web ACLs is 1,500.
* @property consumedLabels Collection of Consumed Labels.
* @property customResponseBodies A map of custom response keys and content bodies. When you create a rule with a block action, you can send a custom response to the web request. You define these for the rule group, and then use them in the rules that you define in the rule group.
* For information about customizing web requests and responses, see [Customizing web requests and responses in AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html) in the *AWS WAF Developer Guide* .
* For information about the limits on count and size for custom request and response settings, see [AWS WAF quotas](https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) in the *AWS WAF Developer Guide* .
* @property description A description of the rule group that helps with identification.
* @property name The name of the rule group. You cannot change the name of a rule group after you create it.
* @property rules Collection of Rules.
* @property scope Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AWS AppSync GraphQL API, an Amazon Cognito user pool, an AWS App Runner service, or an AWS Verified Access instance. Valid Values are `CLOUDFRONT` and `REGIONAL` .
* > For `CLOUDFRONT` , you must create your WAFv2 resources in the US East (N. Virginia) Region, `us-east-1` .
* @property tags Key:value pairs associated with an AWS resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.
* > To modify tags on existing resources, use the AWS WAF APIs or command line interface. With AWS CloudFormation , you can only add tags to AWS WAF resources during resource creation.
* @property visibilityConfig Defines and enables Amazon CloudWatch metrics and web request sample collection.
*/
public data class RuleGroupArgs(
public val availableLabels: Output>? = null,
public val capacity: Output? = null,
public val consumedLabels: Output>? = null,
public val customResponseBodies: Output>? = null,
public val description: Output? = null,
public val name: Output? = null,
public val rules: Output>? = null,
public val scope: Output? = null,
public val tags: Output>? = null,
public val visibilityConfig: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.wafv2.RuleGroupArgs =
com.pulumi.awsnative.wafv2.RuleGroupArgs.builder()
.availableLabels(
availableLabels?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.capacity(capacity?.applyValue({ args0 -> args0 }))
.consumedLabels(
consumedLabels?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.customResponseBodies(
customResponseBodies?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
}).toMap()
}),
)
.description(description?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.rules(rules?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.scope(scope?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.visibilityConfig(
visibilityConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [RuleGroupArgs].
*/
@PulumiTagMarker
public class RuleGroupArgsBuilder internal constructor() {
private var availableLabels: Output>? = null
private var capacity: Output? = null
private var consumedLabels: Output>? = null
private var customResponseBodies: Output>? = null
private var description: Output? = null
private var name: Output? = null
private var rules: Output>? = null
private var scope: Output? = null
private var tags: Output>? = null
private var visibilityConfig: Output? = null
/**
* @param value Collection of Available Labels.
*/
@JvmName("ddtvlftqasrlvumy")
public suspend fun availableLabels(`value`: Output>) {
this.availableLabels = value
}
@JvmName("xyspmyfsxcogerxd")
public suspend fun availableLabels(vararg values: Output) {
this.availableLabels = Output.all(values.asList())
}
/**
* @param values Collection of Available Labels.
*/
@JvmName("wrorlwpqvhtbapto")
public suspend fun availableLabels(values: List>) {
this.availableLabels = Output.all(values)
}
/**
* @param value The web ACL capacity units (WCUs) required for this rule group.
* When you create your own rule group, you define this, and you cannot change it after creation. When you add or modify the rules in a rule group, AWS WAF enforces this limit.
* AWS WAF uses WCUs to calculate and control the operating resources that are used to run your rules, rule groups, and web ACLs. AWS WAF calculates capacity differently for each rule type, to reflect the relative cost of each rule. Simple rules that cost little to run use fewer WCUs than more complex rules that use more processing power. Rule group capacity is fixed at creation, which helps users plan their web ACL WCU usage when they use a rule group. The WCU limit for web ACLs is 1,500.
*/
@JvmName("sjypxxwpkjdcibks")
public suspend fun capacity(`value`: Output) {
this.capacity = value
}
/**
* @param value Collection of Consumed Labels.
*/
@JvmName("ltnkbxwfucosutcv")
public suspend fun consumedLabels(`value`: Output>) {
this.consumedLabels = value
}
@JvmName("yovxvbnkbkopxnbu")
public suspend fun consumedLabels(vararg values: Output) {
this.consumedLabels = Output.all(values.asList())
}
/**
* @param values Collection of Consumed Labels.
*/
@JvmName("djcgxtxqtffaiuqm")
public suspend fun consumedLabels(values: List>) {
this.consumedLabels = Output.all(values)
}
/**
* @param value A map of custom response keys and content bodies. When you create a rule with a block action, you can send a custom response to the web request. You define these for the rule group, and then use them in the rules that you define in the rule group.
* For information about customizing web requests and responses, see [Customizing web requests and responses in AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html) in the *AWS WAF Developer Guide* .
* For information about the limits on count and size for custom request and response settings, see [AWS WAF quotas](https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) in the *AWS WAF Developer Guide* .
*/
@JvmName("xoecdqotjcnuqoxb")
public suspend fun customResponseBodies(`value`: Output>) {
this.customResponseBodies = value
}
/**
* @param value A description of the rule group that helps with identification.
*/
@JvmName("wixvhewfndckxwba")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The name of the rule group. You cannot change the name of a rule group after you create it.
*/
@JvmName("fjtjhvqnqaavkvgr")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Collection of Rules.
*/
@JvmName("takoxoghkqdapuex")
public suspend fun rules(`value`: Output>) {
this.rules = value
}
@JvmName("titkuqpoaghekmbi")
public suspend fun rules(vararg values: Output) {
this.rules = Output.all(values.asList())
}
/**
* @param values Collection of Rules.
*/
@JvmName("wligbkrkviasvmnk")
public suspend fun rules(values: List>) {
this.rules = Output.all(values)
}
/**
* @param value Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AWS AppSync GraphQL API, an Amazon Cognito user pool, an AWS App Runner service, or an AWS Verified Access instance. Valid Values are `CLOUDFRONT` and `REGIONAL` .
* > For `CLOUDFRONT` , you must create your WAFv2 resources in the US East (N. Virginia) Region, `us-east-1` .
*/
@JvmName("yclutblqseaxydbl")
public suspend fun scope(`value`: Output) {
this.scope = value
}
/**
* @param value Key:value pairs associated with an AWS resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.
* > To modify tags on existing resources, use the AWS WAF APIs or command line interface. With AWS CloudFormation , you can only add tags to AWS WAF resources during resource creation.
*/
@JvmName("rkhxpltxpnqurnwu")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
@JvmName("hattfpbhcgrjdmdc")
public suspend fun tags(vararg values: Output) {
this.tags = Output.all(values.asList())
}
/**
* @param values Key:value pairs associated with an AWS resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.
* > To modify tags on existing resources, use the AWS WAF APIs or command line interface. With AWS CloudFormation , you can only add tags to AWS WAF resources during resource creation.
*/
@JvmName("lrlsdomeavspfdul")
public suspend fun tags(values: List>) {
this.tags = Output.all(values)
}
/**
* @param value Defines and enables Amazon CloudWatch metrics and web request sample collection.
*/
@JvmName("qkoshskkxycjylbr")
public suspend fun visibilityConfig(`value`: Output) {
this.visibilityConfig = value
}
/**
* @param value Collection of Available Labels.
*/
@JvmName("afswrojmccuokjtp")
public suspend fun availableLabels(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.availableLabels = mapped
}
/**
* @param argument Collection of Available Labels.
*/
@JvmName("cknrrlxwcbuanrsp")
public suspend fun availableLabels(argument: List Unit>) {
val toBeMapped = argument.toList().map {
RuleGroupLabelSummaryArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.availableLabels = mapped
}
/**
* @param argument Collection of Available Labels.
*/
@JvmName("vhquojkwyqxqwyis")
public suspend fun availableLabels(vararg argument: suspend RuleGroupLabelSummaryArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
RuleGroupLabelSummaryArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.availableLabels = mapped
}
/**
* @param argument Collection of Available Labels.
*/
@JvmName("ickxvxsjewxgxhlr")
public suspend fun availableLabels(argument: suspend RuleGroupLabelSummaryArgsBuilder.() -> Unit) {
val toBeMapped = listOf(RuleGroupLabelSummaryArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.availableLabels = mapped
}
/**
* @param values Collection of Available Labels.
*/
@JvmName("mkohnywyeifvlhov")
public suspend fun availableLabels(vararg values: RuleGroupLabelSummaryArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.availableLabels = mapped
}
/**
* @param value The web ACL capacity units (WCUs) required for this rule group.
* When you create your own rule group, you define this, and you cannot change it after creation. When you add or modify the rules in a rule group, AWS WAF enforces this limit.
* AWS WAF uses WCUs to calculate and control the operating resources that are used to run your rules, rule groups, and web ACLs. AWS WAF calculates capacity differently for each rule type, to reflect the relative cost of each rule. Simple rules that cost little to run use fewer WCUs than more complex rules that use more processing power. Rule group capacity is fixed at creation, which helps users plan their web ACL WCU usage when they use a rule group. The WCU limit for web ACLs is 1,500.
*/
@JvmName("eqyvexymrijnmofw")
public suspend fun capacity(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.capacity = mapped
}
/**
* @param value Collection of Consumed Labels.
*/
@JvmName("lvwauruwslpclsju")
public suspend fun consumedLabels(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.consumedLabels = mapped
}
/**
* @param argument Collection of Consumed Labels.
*/
@JvmName("swtviimappfgajrx")
public suspend fun consumedLabels(argument: List Unit>) {
val toBeMapped = argument.toList().map {
RuleGroupLabelSummaryArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.consumedLabels = mapped
}
/**
* @param argument Collection of Consumed Labels.
*/
@JvmName("slvikvfldkvfeoof")
public suspend fun consumedLabels(vararg argument: suspend RuleGroupLabelSummaryArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
RuleGroupLabelSummaryArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.consumedLabels = mapped
}
/**
* @param argument Collection of Consumed Labels.
*/
@JvmName("kuocnnmxcyfnethe")
public suspend fun consumedLabels(argument: suspend RuleGroupLabelSummaryArgsBuilder.() -> Unit) {
val toBeMapped = listOf(RuleGroupLabelSummaryArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.consumedLabels = mapped
}
/**
* @param values Collection of Consumed Labels.
*/
@JvmName("ehosolwequuvgwuk")
public suspend fun consumedLabels(vararg values: RuleGroupLabelSummaryArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.consumedLabels = mapped
}
/**
* @param value A map of custom response keys and content bodies. When you create a rule with a block action, you can send a custom response to the web request. You define these for the rule group, and then use them in the rules that you define in the rule group.
* For information about customizing web requests and responses, see [Customizing web requests and responses in AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html) in the *AWS WAF Developer Guide* .
* For information about the limits on count and size for custom request and response settings, see [AWS WAF quotas](https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) in the *AWS WAF Developer Guide* .
*/
@JvmName("ugevvvagvvculvsd")
public suspend fun customResponseBodies(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.customResponseBodies = mapped
}
/**
* @param argument A map of custom response keys and content bodies. When you create a rule with a block action, you can send a custom response to the web request. You define these for the rule group, and then use them in the rules that you define in the rule group.
* For information about customizing web requests and responses, see [Customizing web requests and responses in AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html) in the *AWS WAF Developer Guide* .
* For information about the limits on count and size for custom request and response settings, see [AWS WAF quotas](https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) in the *AWS WAF Developer Guide* .
*/
@JvmName("luodrijmkqwbpfxr")
public suspend fun customResponseBodies(vararg argument: Pair Unit>) {
val toBeMapped = argument.toList().map { (left, right) ->
left to
RuleGroupCustomResponseBodyArgsBuilder().applySuspend { right() }.build()
}.toMap()
val mapped = of(toBeMapped)
this.customResponseBodies = mapped
}
/**
* @param values A map of custom response keys and content bodies. When you create a rule with a block action, you can send a custom response to the web request. You define these for the rule group, and then use them in the rules that you define in the rule group.
* For information about customizing web requests and responses, see [Customizing web requests and responses in AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html) in the *AWS WAF Developer Guide* .
* For information about the limits on count and size for custom request and response settings, see [AWS WAF quotas](https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) in the *AWS WAF Developer Guide* .
*/
@JvmName("iufqvvxtpldtqgmb")
public fun customResponseBodies(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.customResponseBodies = mapped
}
/**
* @param value A description of the rule group that helps with identification.
*/
@JvmName("pydvqjjekldgggds")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value The name of the rule group. You cannot change the name of a rule group after you create it.
*/
@JvmName("erxytgqcwsrhoyks")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Collection of Rules.
*/
@JvmName("rwllbqbwhfrpfngu")
public suspend fun rules(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.rules = mapped
}
/**
* @param argument Collection of Rules.
*/
@JvmName("swcrwgcrnmnulcws")
public suspend fun rules(argument: List Unit>) {
val toBeMapped = argument.toList().map {
RuleGroupRuleArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.rules = mapped
}
/**
* @param argument Collection of Rules.
*/
@JvmName("jsslulrtjnpvlyim")
public suspend fun rules(vararg argument: suspend RuleGroupRuleArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
RuleGroupRuleArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.rules = mapped
}
/**
* @param argument Collection of Rules.
*/
@JvmName("vxfprfawysncwlwk")
public suspend fun rules(argument: suspend RuleGroupRuleArgsBuilder.() -> Unit) {
val toBeMapped = listOf(RuleGroupRuleArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.rules = mapped
}
/**
* @param values Collection of Rules.
*/
@JvmName("wmhuxenthdwbjjtt")
public suspend fun rules(vararg values: RuleGroupRuleArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.rules = mapped
}
/**
* @param value Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AWS AppSync GraphQL API, an Amazon Cognito user pool, an AWS App Runner service, or an AWS Verified Access instance. Valid Values are `CLOUDFRONT` and `REGIONAL` .
* > For `CLOUDFRONT` , you must create your WAFv2 resources in the US East (N. Virginia) Region, `us-east-1` .
*/
@JvmName("kwppbhjjhpadjvkw")
public suspend fun scope(`value`: RuleGroupScope?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.scope = mapped
}
/**
* @param value Key:value pairs associated with an AWS resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.
* > To modify tags on existing resources, use the AWS WAF APIs or command line interface. With AWS CloudFormation , you can only add tags to AWS WAF resources during resource creation.
*/
@JvmName("kknbmygqhwqolgdk")
public suspend fun tags(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param argument Key:value pairs associated with an AWS resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.
* > To modify tags on existing resources, use the AWS WAF APIs or command line interface. With AWS CloudFormation , you can only add tags to AWS WAF resources during resource creation.
*/
@JvmName("nmhyenyiriwsiahr")
public suspend fun tags(argument: List Unit>) {
val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
val mapped = of(toBeMapped)
this.tags = mapped
}
/**
* @param argument Key:value pairs associated with an AWS resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.
* > To modify tags on existing resources, use the AWS WAF APIs or command line interface. With AWS CloudFormation , you can only add tags to AWS WAF resources during resource creation.
*/
@JvmName("qdmcyqilepehauiy")
public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
val mapped = of(toBeMapped)
this.tags = mapped
}
/**
* @param argument Key:value pairs associated with an AWS resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.
* > To modify tags on existing resources, use the AWS WAF APIs or command line interface. With AWS CloudFormation , you can only add tags to AWS WAF resources during resource creation.
*/
@JvmName("vljutjdebutdttdd")
public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.tags = mapped
}
/**
* @param values Key:value pairs associated with an AWS resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.
* > To modify tags on existing resources, use the AWS WAF APIs or command line interface. With AWS CloudFormation , you can only add tags to AWS WAF resources during resource creation.
*/
@JvmName("gsmfsnkubbmffiht")
public suspend fun tags(vararg values: TagArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param value Defines and enables Amazon CloudWatch metrics and web request sample collection.
*/
@JvmName("trebhucoevsqaput")
public suspend fun visibilityConfig(`value`: RuleGroupVisibilityConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.visibilityConfig = mapped
}
/**
* @param argument Defines and enables Amazon CloudWatch metrics and web request sample collection.
*/
@JvmName("hvlreohmjrkvujdl")
public suspend fun visibilityConfig(argument: suspend RuleGroupVisibilityConfigArgsBuilder.() -> Unit) {
val toBeMapped = RuleGroupVisibilityConfigArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.visibilityConfig = mapped
}
internal fun build(): RuleGroupArgs = RuleGroupArgs(
availableLabels = availableLabels,
capacity = capacity,
consumedLabels = consumedLabels,
customResponseBodies = customResponseBodies,
description = description,
name = name,
rules = rules,
scope = scope,
tags = tags,
visibilityConfig = visibilityConfig,
)
}