![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.wafv2.kotlin.inputs.GetRuleGroupPlainArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.wafv2.kotlin.inputs
import com.pulumi.awsnative.wafv2.inputs.GetRuleGroupPlainArgs.builder
import com.pulumi.awsnative.wafv2.kotlin.enums.RuleGroupScope
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 id The ID of the rule group.
* @property name The name of the rule group. You cannot change the name of a rule group after you create it.
* @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` .
*/
public data class GetRuleGroupPlainArgs(
public val id: String,
public val name: String,
public val scope: RuleGroupScope,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.wafv2.inputs.GetRuleGroupPlainArgs =
com.pulumi.awsnative.wafv2.inputs.GetRuleGroupPlainArgs.builder()
.id(id.let({ args0 -> args0 }))
.name(name.let({ args0 -> args0 }))
.scope(scope.let({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [GetRuleGroupPlainArgs].
*/
@PulumiTagMarker
public class GetRuleGroupPlainArgsBuilder internal constructor() {
private var id: String? = null
private var name: String? = null
private var scope: RuleGroupScope? = null
/**
* @param value The ID of the rule group.
*/
@JvmName("pqladjokxgfmelyk")
public suspend fun id(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.id = mapped
}
/**
* @param value The name of the rule group. You cannot change the name of a rule group after you create it.
*/
@JvmName("sjbwfufethvtmhuh")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.name = 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("fvwboikpingwpvoq")
public suspend fun scope(`value`: RuleGroupScope) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.scope = mapped
}
internal fun build(): GetRuleGroupPlainArgs = GetRuleGroupPlainArgs(
id = id ?: throw PulumiNullFieldException("id"),
name = name ?: throw PulumiNullFieldException("name"),
scope = scope ?: throw PulumiNullFieldException("scope"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy