View a markdown version of this page

Actions, resources, and condition keys for Amazon WAF Regional - Service Authorization Reference
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Actions, resources, and condition keys for Amazon WAF Regional

Amazon WAF Regional (service prefix: waf-regional) provides the following service-specific operations, resources, actions, and condition keys for use in IAM permission policies.

References:

API operations defined by Amazon WAF Regional

The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.

Operation IAM action Condition key Possible value(s) Access level

AssociateWebACL

waf-regional:AssociateWebACL

Write

apigateway:SetWebACL

Permissions management, Write

elasticloadbalancing:SetWebAcl

Write

CreateByteMatchSet

waf-regional:CreateByteMatchSet

Write

CreateGeoMatchSet

waf-regional:CreateGeoMatchSet

Write

CreateIPSet

waf-regional:CreateIPSet

Write

CreateRateBasedRule

waf-regional:CreateRateBasedRule

Write

waf-regional:TagResource

Tagging, Write

CreateRegexMatchSet

waf-regional:CreateRegexMatchSet

Write

CreateRegexPatternSet

waf-regional:CreateRegexPatternSet

Write

CreateRule

waf-regional:CreateRule

Write

waf-regional:TagResource

Tagging, Write

CreateRuleGroup

waf-regional:CreateRuleGroup

Write

waf-regional:TagResource

Tagging, Write

CreateSizeConstraintSet

waf-regional:CreateSizeConstraintSet

Write

CreateSqlInjectionMatchSet

waf-regional:CreateSqlInjectionMatchSet

Write

CreateWebACL

waf-regional:CreateWebACL

Permissions management, Write

waf-regional:TagResource

Tagging, Write

CreateWebACLMigrationStack

waf-regional:CreateWebACLMigrationStack

Write

CreateXssMatchSet

waf-regional:CreateXssMatchSet

Write

DeleteByteMatchSet

waf-regional:DeleteByteMatchSet

Write

DeleteGeoMatchSet

waf-regional:DeleteGeoMatchSet

Write

DeleteIPSet

waf-regional:DeleteIPSet

Write

DeleteLoggingConfiguration

waf-regional:DeleteLoggingConfiguration

Write

DeletePermissionPolicy

waf-regional:DeletePermissionPolicy

Permissions management, Write

DeleteRateBasedRule

waf-regional:DeleteRateBasedRule

Write

DeleteRegexMatchSet

waf-regional:DeleteRegexMatchSet

Write

DeleteRegexPatternSet

waf-regional:DeleteRegexPatternSet

Write

DeleteRule

waf-regional:DeleteRule

Write

DeleteRuleGroup

waf-regional:DeleteRuleGroup

Write

DeleteSizeConstraintSet

waf-regional:DeleteSizeConstraintSet

Write

DeleteSqlInjectionMatchSet

waf-regional:DeleteSqlInjectionMatchSet

Write

DeleteWebACL

waf-regional:DeleteWebACL

Permissions management, Write

DeleteXssMatchSet

waf-regional:DeleteXssMatchSet

Write

DisassociateWebACL

apigateway:SetWebACL

Permissions management, Write

elasticloadbalancing:SetWebAcl

Write

GetByteMatchSet

waf-regional:GetByteMatchSet

Read

GetChangeToken

waf-regional:GetChangeToken

Read

GetChangeTokenStatus

waf-regional:GetChangeTokenStatus

Read

GetGeoMatchSet

waf-regional:GetGeoMatchSet

Read

GetIPSet

waf-regional:GetIPSet

Read

GetLoggingConfiguration

waf-regional:GetLoggingConfiguration

Read

GetPermissionPolicy

waf-regional:GetPermissionPolicy

Read

GetRateBasedRule

waf-regional:GetRateBasedRule

Read

GetRateBasedRuleManagedKeys

waf-regional:GetRateBasedRuleManagedKeys

Read

GetRegexMatchSet

waf-regional:GetRegexMatchSet

Read

GetRegexPatternSet

waf-regional:GetRegexPatternSet

Read

GetRule

waf-regional:GetRule

Read

GetRuleGroup

waf-regional:GetRuleGroup

Read

GetSampledRequests

waf-regional:GetSampledRequests

Read

GetSizeConstraintSet

waf-regional:GetSizeConstraintSet

Read

GetSqlInjectionMatchSet

waf-regional:GetSqlInjectionMatchSet

Read

GetWebACL

waf-regional:GetWebACL

Read

GetWebACLForResource

waf-regional:GetWebACLForResource

Read

GetXssMatchSet

waf-regional:GetXssMatchSet

Read

ListActivatedRulesInRuleGroup

waf-regional:ListActivatedRulesInRuleGroup

List

ListByteMatchSets

waf-regional:ListByteMatchSets

List

ListGeoMatchSets

waf-regional:ListGeoMatchSets

List

ListIPSets

waf-regional:ListIPSets

List

ListLoggingConfigurations

waf-regional:ListLoggingConfigurations

List

ListRateBasedRules

waf-regional:ListRateBasedRules

List

ListRegexMatchSets

waf-regional:ListRegexMatchSets

List

ListRegexPatternSets

waf-regional:ListRegexPatternSets

List

ListResourcesForWebACL

waf-regional:ListResourcesForWebACL

List

ListRuleGroups

waf-regional:ListRuleGroups

List

ListRules

waf-regional:ListRules

List

ListSizeConstraintSets

waf-regional:ListSizeConstraintSets

List

ListSqlInjectionMatchSets

waf-regional:ListSqlInjectionMatchSets

List

ListSubscribedRuleGroups

waf-regional:ListSubscribedRuleGroups

List

ListTagsForResource

waf-regional:ListTagsForResource

Read

ListWebACLs

waf-regional:ListWebACLs

List

ListXssMatchSets

waf-regional:ListXssMatchSets

List

PutLoggingConfiguration

waf-regional:PutLoggingConfiguration

Write

PutPermissionPolicy

waf-regional:PutPermissionPolicy

Permissions management, Write

TagResource

waf-regional:TagResource

Tagging, Write

UntagResource

waf-regional:UntagResource

Tagging, Write

UpdateByteMatchSet

waf-regional:UpdateByteMatchSet

Write

UpdateGeoMatchSet

waf-regional:UpdateGeoMatchSet

Write

UpdateIPSet

waf-regional:UpdateIPSet

Write

UpdateRateBasedRule

waf-regional:UpdateRateBasedRule

Write

UpdateRegexMatchSet

waf-regional:UpdateRegexMatchSet

Write

UpdateRegexPatternSet

waf-regional:UpdateRegexPatternSet

Write

UpdateRule

waf-regional:UpdateRule

Write

UpdateRuleGroup

waf-regional:UpdateRuleGroup

Write

UpdateSizeConstraintSet

waf-regional:UpdateSizeConstraintSet

Write

UpdateSqlInjectionMatchSet

waf-regional:UpdateSqlInjectionMatchSet

Write

UpdateWebACL

waf-regional:UpdateWebACL

Permissions management, Write

UpdateXssMatchSet

waf-regional:UpdateXssMatchSet

Write

Actions defined by Amazon WAF Regional

You can specify the following actions in the Action element of an IAM policy statement. Use policies to grant permissions to perform an operation in Amazon. When you use an action in a policy, you usually allow or deny access to the API operation or CLI command with the same name. However, in some cases, a single action controls access to more than one operation. Alternatively, some operations require several different actions.

Actions Description Resource types (*required) Condition keys Access level

AssociateWebACL

Grants permission to associate a web ACL with a resource

loadbalancer/app/*

Write

webacl*

aws:ResourceTag/${TagKey}

CreateByteMatchSet

Grants permission to create a ByteMatchSet

bytematchset*

Write

CreateGeoMatchSet

Grants permission to create a GeoMatchSet

geomatchset*

Write

CreateIPSet

Grants permission to create an IPSet

ipset*

Write

CreateRateBasedRule

Grants permission to create a RateBasedRule

ratebasedrule*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Write

CreateRegexMatchSet

Grants permission to create a RegexMatchSet

regexmatchset*

Write

CreateRegexPatternSet

Grants permission to create a RegexPatternSet

regexpatternset*

Write

CreateRule

Grants permission to create a Rule

rule*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Write

CreateRuleGroup

Grants permission to create a RuleGroup

rulegroup*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Write

CreateSizeConstraintSet

Grants permission to create a SizeConstraintSet

sizeconstraintset*

Write

CreateSqlInjectionMatchSet

Grants permission to create an SqlInjectionMatchSet

sqlinjectionmatchset*

Write

CreateWebACL

Grants permission to create a WebACL

webacl*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Permissions management, Write

CreateWebACLMigrationStack

Grants permission to create a CloudFormation web ACL template in an S3 bucket for the purposes of migrating the web ACL from Amazon WAF Classic to Amazon WAF v2

webacl*

aws:ResourceTag/${TagKey}

Write

CreateXssMatchSet

Grants permission to create an XssMatchSet

xssmatchset*

Write

DeleteByteMatchSet

Grants permission to delete a ByteMatchSet

bytematchset*

Write

DeleteGeoMatchSet

Grants permission to delete a GeoMatchSet

geomatchset*

Write

DeleteIPSet

Grants permission to delete an IPSet

ipset*

Write

DeleteLoggingConfiguration

Grants permission to delete a LoggingConfiguration from a web ACL

webacl*

aws:ResourceTag/${TagKey}

Write

DeletePermissionPolicy

Grants permission to delete an IAM policy from a rule group

rulegroup*

aws:ResourceTag/${TagKey}

Permissions management, Write

DeleteRateBasedRule

Grants permission to delete a RateBasedRule

ratebasedrule*

aws:ResourceTag/${TagKey}

Write

DeleteRegexMatchSet

Grants permission to delete a RegexMatchSet

regexmatchset*

Write

DeleteRegexPatternSet

Grants permission to delete a RegexPatternSet

regexpatternset*

Write

DeleteRule

Grants permission to delete a Rule

rule*

aws:ResourceTag/${TagKey}

Write

DeleteRuleGroup

Grants permission to delete a RuleGroup

rulegroup*

aws:ResourceTag/${TagKey}

Write

DeleteSizeConstraintSet

Grants permission to delete a SizeConstraintSet

sizeconstraintset*

Write

DeleteSqlInjectionMatchSet

Grants permission to delete an SqlInjectionMatchSet

sqlinjectionmatchset*

Write

DeleteWebACL

Grants permission to delete a WebACL

webacl*

aws:ResourceTag/${TagKey}

Permissions management, Write

DeleteXssMatchSet

Grants permission to delete an XssMatchSet

xssmatchset*

Write

DisassociateWebACL

Grants permission to delete an association between a web ACL and a resource

loadbalancer/app/*

Write

GetByteMatchSet

Grants permission to retrieve a ByteMatchSet

bytematchset*

Read

GetChangeToken

Grants permission to retrieve a change token to use in create, update, and delete requests

Read

GetChangeTokenStatus

Grants permission to retrieve the status of a change token

Read

GetGeoMatchSet

Grants permission to retrieve a GeoMatchSet

geomatchset*

Read

GetIPSet

Grants permission to retrieve an IPSet

ipset*

Read

GetLoggingConfiguration

Grants permission to retrieve a LoggingConfiguration

webacl*

aws:ResourceTag/${TagKey}

Read

GetPermissionPolicy

Grants permission to retrieve an IAM policy attached to a RuleGroup

rulegroup*

aws:ResourceTag/${TagKey}

Read

GetRateBasedRule

Grants permission to retrieve a RateBasedRule

ratebasedrule*

aws:ResourceTag/${TagKey}

Read

GetRateBasedRuleManagedKeys

Grants permission to retrieve the array of IP addresses that are currently being blocked by a RateBasedRule

ratebasedrule*

aws:ResourceTag/${TagKey}

Read

GetRegexMatchSet

Grants permission to retrieve a RegexMatchSet

regexmatchset*

Read

GetRegexPatternSet

Grants permission to retrieve a RegexPatternSet

regexpatternset*

Read

GetRule

Grants permission to retrieve a Rule

rule*

aws:ResourceTag/${TagKey}

Read

GetRuleGroup

Grants permission to retrieve a RuleGroup

rulegroup*

aws:ResourceTag/${TagKey}

Read

GetSampledRequests

Grants permission to retrieve detailed information for a sample set of web requests

webacl

aws:ResourceTag/${TagKey}

Read

GetSizeConstraintSet

Grants permission to retrieve a SizeConstraintSet

sizeconstraintset*

Read

GetSqlInjectionMatchSet

Grants permission to retrieve an SqlInjectionMatchSet

sqlinjectionmatchset*

Read

GetWebACL

Grants permission to retrieve a WebACL

webacl*

aws:ResourceTag/${TagKey}

Read

GetWebACLForResource

Grants permission to retrieve a WebACL that's associated with a specified resource

loadbalancer/app/*

Read

GetXssMatchSet

Grants permission to retrieve an XssMatchSet

xssmatchset*

Read

ListActivatedRulesInRuleGroup

Grants permission to retrieve an array of ActivatedRule objects

List

ListByteMatchSets

Grants permission to retrieve an array of ByteMatchSetSummary objects

List

ListGeoMatchSets

Grants permission to retrieve an array of GeoMatchSetSummary objects

List

ListIPSets

Grants permission to retrieve an array of IPSetSummary objects

List

ListLoggingConfigurations

Grants permission to retrieve an array of LoggingConfiguration objects

List

ListRateBasedRules

Grants permission to retrieve an array of RuleSummary objects

List

ListRegexMatchSets

Grants permission to retrieve an array of RegexMatchSetSummary objects

List

ListRegexPatternSets

Grants permission to retrieve an array of RegexPatternSetSummary objects

List

ListResourcesForWebACL

Grants permission to retrieve an array of resources associated with a specified WebACL

webacl*

aws:ResourceTag/${TagKey}

List

ListRuleGroups

Grants permission to retrieve an array of RuleGroup objects

List

ListRules

Grants permission to retrieve an array of RuleSummary objects

List

ListSizeConstraintSets

Grants permission to retrieve an array of SizeConstraintSetSummary objects

List

ListSqlInjectionMatchSets

Grants permission to retrieve an array of SqlInjectionMatchSet objects

List

ListSubscribedRuleGroups

Grants permission to retrieve an array of RuleGroup objects that you are subscribed to

List

ListTagsForResource

Grants permission to lists the Tags for a resource

ratebasedrule

aws:ResourceTag/${TagKey}

Read

rule

aws:ResourceTag/${TagKey}

rulegroup

aws:ResourceTag/${TagKey}

webacl

aws:ResourceTag/${TagKey}

ListWebACLs

Grants permission to retrieve an array of WebACLSummary objects

List

ListXssMatchSets

Grants permission to retrieve an array of XssMatchSet objects

List

PutLoggingConfiguration

Grants permission to associates a LoggingConfiguration with a web ACL

webacl*

aws:ResourceTag/${TagKey}

Write

PutPermissionPolicy

Grants permission to attach an IAM policy to a specified rule group, to support rule group sharing between accounts

rulegroup*

aws:ResourceTag/${TagKey}

Permissions management, Write

TagResource

Grants permission to add a Tag to a resource

ratebasedrule

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Tagging, Write

rule

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

rulegroup

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

webacl

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

UntagResource

Grants permission to remove a Tag from a resource

ratebasedrule

aws:ResourceTag/${TagKey}

aws:TagKeys

Tagging, Write

rule

aws:ResourceTag/${TagKey}

aws:TagKeys

rulegroup

aws:ResourceTag/${TagKey}

aws:TagKeys

webacl

aws:ResourceTag/${TagKey}

aws:TagKeys

UpdateByteMatchSet

Grants permission to insert or delete ByteMatchTuple objects in a ByteMatchSet

bytematchset*

Write

UpdateGeoMatchSet

Grants permission to insert or delete GeoMatchConstraint objects in a GeoMatchSet

geomatchset*

Write

UpdateIPSet

Grants permission to insert or delete IPSetDescriptor objects in an IPSet

ipset*

Write

UpdateRateBasedRule

Grants permission to insert or delete predicate objects in a rate based rule and update the RateLimit in the rule

ratebasedrule*

aws:ResourceTag/${TagKey}

Write

UpdateRegexMatchSet

Grants permission to insert or delete RegexMatchTuple objects in a RegexMatchSet

regexmatchset*

Write

UpdateRegexPatternSet

Grants permission to insert or delete RegexPatternStrings in a RegexPatternSet

regexpatternset*

Write

UpdateRule

Grants permission to insert or delete predicate objects in a Rule

rule*

aws:ResourceTag/${TagKey}

Write

UpdateRuleGroup

Grants permission to insert or delete ActivatedRule objects in a RuleGroup

rulegroup*

aws:ResourceTag/${TagKey}

Write

UpdateSizeConstraintSet

Grants permission to insert or delete SizeConstraint objects in a SizeConstraintSet

sizeconstraintset*

Write

UpdateSqlInjectionMatchSet

Grants permission to insert or delete SqlInjectionMatchTuple objects in an SqlInjectionMatchSet

sqlinjectionmatchset*

Write

UpdateWebACL

Grants permission to insert or delete ActivatedRule objects in a WebACL

webacl*

aws:ResourceTag/${TagKey}

Permissions management, Write

UpdateXssMatchSet

Grants permission to insert or delete XssMatchTuple objects in an XssMatchSet

xssmatchset*

Write

Resource types defined by Amazon WAF Regional

The following resource types are defined by this service and can be used in the Resource element of IAM permission policy statements.

Resource types ARN Condition keys

bytematchset

arn:${Partition}:waf-regional:${Region}:${Account}:bytematchset/${Id}

geomatchset

arn:${Partition}:waf-regional:${Region}:${Account}:geomatchset/${Id}

ipset

arn:${Partition}:waf-regional:${Region}:${Account}:ipset/${Id}

loadbalancer/app/

arn:${Partition}:elasticloadbalancing:${Region}:${Account}:loadbalancer/app/${LoadBalancerName}/${LoadBalancerId}

ratebasedrule

arn:${Partition}:waf-regional:${Region}:${Account}:ratebasedrule/${Id}

aws:ResourceTag/${TagKey}

regexmatchset

arn:${Partition}:waf-regional:${Region}:${Account}:regexmatch/${Id}

regexpatternset

arn:${Partition}:waf-regional:${Region}:${Account}:regexpatternset/${Id}

rule

arn:${Partition}:waf-regional:${Region}:${Account}:rule/${Id}

aws:ResourceTag/${TagKey}

rulegroup

arn:${Partition}:waf-regional:${Region}:${Account}:rulegroup/${Id}

aws:ResourceTag/${TagKey}

sizeconstraintset

arn:${Partition}:waf-regional:${Region}:${Account}:sizeconstraintset/${Id}

sqlinjectionmatchset

arn:${Partition}:waf-regional:${Region}:${Account}:sqlinjectionset/${Id}

webacl

arn:${Partition}:waf-regional:${Region}:${Account}:webacl/${Id}

aws:ResourceTag/${TagKey}

xssmatchset

arn:${Partition}:waf-regional:${Region}:${Account}:xssmatchset/${Id}

Condition keys for Amazon WAF Regional

Amazon WAF Regional defines the following condition keys that can be used in the Condition element of an IAM policy.

Condition keys Description Type

aws:RequestTag/${TagKey}

Filters actions based on the allowed set of values for each of the tags

String

aws:ResourceTag/${TagKey}

Filters actions based on tag-value assoicated with the resource

String

aws:TagKeys

Filters actions based on the presence of mandatory tags in the request

ArrayOfString