com.pulumi.aws.wafv2.RuleGroup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.wafv2;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.wafv2.RuleGroupArgs;
import com.pulumi.aws.wafv2.inputs.RuleGroupState;
import com.pulumi.aws.wafv2.outputs.RuleGroupCustomResponseBody;
import com.pulumi.aws.wafv2.outputs.RuleGroupRule;
import com.pulumi.aws.wafv2.outputs.RuleGroupVisibilityConfig;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
@ResourceType(type="aws:wafv2/ruleGroup:RuleGroup")
public class RuleGroup extends com.pulumi.resources.CustomResource {
/**
* The ARN of the WAF rule group.
*
*/
@Export(name="arn", refs={String.class}, tree="[0]")
private Output arn;
/**
* @return The ARN of the WAF rule group.
*
*/
public Output arn() {
return this.arn;
}
/**
* The web ACL capacity units (WCUs) required for this rule group. See [here](https://docs.aws.amazon.com/waf/latest/APIReference/API_CreateRuleGroup.html#API_CreateRuleGroup_RequestSyntax) for general information and [here](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statements-list.html) for capacity specific information.
*
*/
@Export(name="capacity", refs={Integer.class}, tree="[0]")
private Output capacity;
/**
* @return The web ACL capacity units (WCUs) required for this rule group. See [here](https://docs.aws.amazon.com/waf/latest/APIReference/API_CreateRuleGroup.html#API_CreateRuleGroup_RequestSyntax) for general information and [here](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statements-list.html) for capacity specific information.
*
*/
public Output capacity() {
return this.capacity;
}
/**
* Defines custom response bodies that can be referenced by `custom_response` actions. See Custom Response Body below for details.
*
*/
@Export(name="customResponseBodies", refs={List.class,RuleGroupCustomResponseBody.class}, tree="[0,1]")
private Output* @Nullable */ List> customResponseBodies;
/**
* @return Defines custom response bodies that can be referenced by `custom_response` actions. See Custom Response Body below for details.
*
*/
public Output>> customResponseBodies() {
return Codegen.optional(this.customResponseBodies);
}
/**
* A friendly description of the rule group.
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return A friendly description of the rule group.
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
@Export(name="lockToken", refs={String.class}, tree="[0]")
private Output lockToken;
public Output lockToken() {
return this.lockToken;
}
/**
* A friendly name of the rule group.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return A friendly name of the rule group.
*
*/
public Output name() {
return this.name;
}
@Export(name="namePrefix", refs={String.class}, tree="[0]")
private Output namePrefix;
public Output namePrefix() {
return this.namePrefix;
}
/**
* The rule blocks used to identify the web requests that you want to `allow`, `block`, or `count`. See Rules below for details.
*
*/
@Export(name="rules", refs={List.class,RuleGroupRule.class}, tree="[0,1]")
private Output* @Nullable */ List> rules;
/**
* @return The rule blocks used to identify the web requests that you want to `allow`, `block`, or `count`. See Rules below for details.
*
*/
public Output>> rules() {
return Codegen.optional(this.rules);
}
/**
* Specifies whether this is for an AWS CloudFront distribution or for a regional application. Valid values are `CLOUDFRONT` or `REGIONAL`. To work with CloudFront, you must also specify the region `us-east-1` (N. Virginia) on the AWS provider.
*
*/
@Export(name="scope", refs={String.class}, tree="[0]")
private Output scope;
/**
* @return Specifies whether this is for an AWS CloudFront distribution or for a regional application. Valid values are `CLOUDFRONT` or `REGIONAL`. To work with CloudFront, you must also specify the region `us-east-1` (N. Virginia) on the AWS provider.
*
*/
public Output scope() {
return this.scope;
}
/**
* An array of key:value pairs to associate with the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return An array of key:value pairs to associate with the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
@Export(name="tagsAll", refs={Map.class,String.class}, tree="[0,1,1]")
private Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy