AWS::WAFv2::RuleGroupContains 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 ...
10 configurable properties. 3 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
Capacity | integer | Required |
Scope | string | RequiredCreate-only |
VisibilityConfig | VisibilityConfig | Required |
AvailableLabels | Array<LabelSummary> | |
ConsumedLabels | Array<LabelSummary> | |
CustomResponseBodies | CustomResponseBodies | |
Description | string | |
Name | string | Create-only |
Rules | Array<Rule> | |
Tags | Array<Tag> |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Arn | string | - |
Id | string | - |
LabelNamespace | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::WAFv2::RuleGroup
Resources:
MyResource:
Type: AWS::WAFv2::RuleGroup
Properties:
Capacity: 1
Scope: "value"
VisibilityConfig: "value"
Tags:
- Key: Environment
Value: Production
Description: !Ref "AWS::StackName"
Name: !Ref "AWS::StackName"Permissions CloudFormation needs in your IAM role to manage this resource.
wafv2:CreateRuleGroupwafv2:GetRuleGroupwafv2:TagResourcewafv2:UntagResourcewafv2:ListTagsForResourcewafv2:DeleteRuleGroupwafv2:GetRuleGroupwafv2:GetRuleGroupwafv2:ListTagsForResourcewafv2:TagResourcewafv2:UntagResourcewafv2:UpdateRuleGroupwafv2:GetRuleGroupwafv2:ListTagsForResourcewafv2:listRuleGroupsOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterNameThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
NameScope