View a markdown version of this page

的操作、资源和条件键 Amazon WAF Regional - 服务授权参考
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)。

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

的操作、资源和条件键 Amazon WAF Regional

Amazon WAF 区域(服务前缀: waf-regional) 提供以下特定服务的操作、资源、操作和条件密钥,用于 IAM 权限策略。

参考:

API 操作定义为 Amazon WAF Regional

下表将 API 操作映射到它们授权的 IAM 操作。仅列出具有给定 API 和操作静态值的条件密钥;有关每个操作支持的全套条件密钥,请参阅 操作表。

操作 IAM 操作 条件键 可能的值 访问级别

AssociateWebACL

waf-regional:AssociateWebACL

写入

apigateway:SetWebACL

权限管理,写入

elasticloadbalancing:SetWebAcl

写入

CreateByteMatchSet

waf-regional:CreateByteMatchSet

写入

CreateGeoMatchSet

waf-regional:CreateGeoMatchSet

写入

CreateIPSet

waf-regional:CreateIPSet

写入

CreateRateBasedRule

waf-regional:CreateRateBasedRule

写入

waf-regional:TagResource

标记、写入

CreateRegexMatchSet

waf-regional:CreateRegexMatchSet

写入

CreateRegexPatternSet

waf-regional:CreateRegexPatternSet

写入

CreateRule

waf-regional:CreateRule

写入

waf-regional:TagResource

标记、写入

CreateRuleGroup

waf-regional:CreateRuleGroup

写入

waf-regional:TagResource

标记、写入

CreateSizeConstraintSet

waf-regional:CreateSizeConstraintSet

写入

CreateSqlInjectionMatchSet

waf-regional:CreateSqlInjectionMatchSet

写入

CreateWebACL

waf-regional:CreateWebACL

权限管理,写入

waf-regional:TagResource

标记、写入

CreateWebACLMigrationStack

waf-regional:CreateWebACLMigrationStack

写入

CreateXssMatchSet

waf-regional:CreateXssMatchSet

写入

DeleteByteMatchSet

waf-regional:DeleteByteMatchSet

写入

DeleteGeoMatchSet

waf-regional:DeleteGeoMatchSet

写入

DeleteIPSet

waf-regional:DeleteIPSet

写入

DeleteLoggingConfiguration

waf-regional:DeleteLoggingConfiguration

写入

DeletePermissionPolicy

waf-regional:DeletePermissionPolicy

权限管理,写入

DeleteRateBasedRule

waf-regional:DeleteRateBasedRule

写入

DeleteRegexMatchSet

waf-regional:DeleteRegexMatchSet

写入

DeleteRegexPatternSet

waf-regional:DeleteRegexPatternSet

写入

DeleteRule

waf-regional:DeleteRule

写入

DeleteRuleGroup

waf-regional:DeleteRuleGroup

写入

DeleteSizeConstraintSet

waf-regional:DeleteSizeConstraintSet

写入

DeleteSqlInjectionMatchSet

waf-regional:DeleteSqlInjectionMatchSet

写入

DeleteWebACL

waf-regional:DeleteWebACL

权限管理,写入

DeleteXssMatchSet

waf-regional:DeleteXssMatchSet

写入

DisassociateWebACL

apigateway:SetWebACL

权限管理,写入

elasticloadbalancing:SetWebAcl

写入

GetByteMatchSet

waf-regional:GetByteMatchSet

读取

GetChangeToken

waf-regional:GetChangeToken

读取

GetChangeTokenStatus

waf-regional:GetChangeTokenStatus

读取

GetGeoMatchSet

waf-regional:GetGeoMatchSet

读取

GetIPSet

waf-regional:GetIPSet

读取

GetLoggingConfiguration

waf-regional:GetLoggingConfiguration

读取

GetPermissionPolicy

waf-regional:GetPermissionPolicy

读取

GetRateBasedRule

waf-regional:GetRateBasedRule

读取

GetRateBasedRuleManagedKeys

waf-regional:GetRateBasedRuleManagedKeys

读取

GetRegexMatchSet

waf-regional:GetRegexMatchSet

读取

GetRegexPatternSet

waf-regional:GetRegexPatternSet

读取

GetRule

waf-regional:GetRule

读取

GetRuleGroup

waf-regional:GetRuleGroup

读取

GetSampledRequests

waf-regional:GetSampledRequests

读取

GetSizeConstraintSet

waf-regional:GetSizeConstraintSet

读取

GetSqlInjectionMatchSet

waf-regional:GetSqlInjectionMatchSet

读取

GetWebACL

waf-regional:GetWebACL

读取

GetWebACLForResource

waf-regional:GetWebACLForResource

读取

GetXssMatchSet

waf-regional:GetXssMatchSet

读取

ListActivatedRulesInRuleGroup

waf-regional:ListActivatedRulesInRuleGroup

列表

ListByteMatchSets

waf-regional:ListByteMatchSets

列表

ListGeoMatchSets

waf-regional:ListGeoMatchSets

列表

ListIPSets

waf-regional:ListIPSets

列表

ListLoggingConfigurations

waf-regional:ListLoggingConfigurations

列表

ListRateBasedRules

waf-regional:ListRateBasedRules

列表

ListRegexMatchSets

waf-regional:ListRegexMatchSets

列表

ListRegexPatternSets

waf-regional:ListRegexPatternSets

列表

ListResourcesForWebACL

waf-regional:ListResourcesForWebACL

列表

ListRuleGroups

waf-regional:ListRuleGroups

列表

ListRules

waf-regional:ListRules

列表

ListSizeConstraintSets

waf-regional:ListSizeConstraintSets

列表

ListSqlInjectionMatchSets

waf-regional:ListSqlInjectionMatchSets

列表

ListSubscribedRuleGroups

waf-regional:ListSubscribedRuleGroups

列表

ListTagsForResource

waf-regional:ListTagsForResource

读取

ListWebACLs

waf-regional:ListWebACLs

列表

ListXssMatchSets

waf-regional:ListXssMatchSets

列表

PutLoggingConfiguration

waf-regional:PutLoggingConfiguration

写入

PutPermissionPolicy

waf-regional:PutPermissionPolicy

权限管理,写入

TagResource

waf-regional:TagResource

标记、写入

UntagResource

waf-regional:UntagResource

标记、写入

UpdateByteMatchSet

waf-regional:UpdateByteMatchSet

写入

UpdateGeoMatchSet

waf-regional:UpdateGeoMatchSet

写入

UpdateIPSet

waf-regional:UpdateIPSet

写入

UpdateRateBasedRule

waf-regional:UpdateRateBasedRule

写入

UpdateRegexMatchSet

waf-regional:UpdateRegexMatchSet

写入

UpdateRegexPatternSet

waf-regional:UpdateRegexPatternSet

写入

UpdateRule

waf-regional:UpdateRule

写入

UpdateRuleGroup

waf-regional:UpdateRuleGroup

写入

UpdateSizeConstraintSet

waf-regional:UpdateSizeConstraintSet

写入

UpdateSqlInjectionMatchSet

waf-regional:UpdateSqlInjectionMatchSet

写入

UpdateWebACL

waf-regional:UpdateWebACL

权限管理,写入

UpdateXssMatchSet

waf-regional:UpdateXssMatchSet

写入

动作定义为 Amazon WAF Regional

您可以在 IAM 策略语句的 Action 元素中指定以下操作。对于每个操作,该表列出了该操作支持的资源类型和条件键。可以使用策略授予在 Amazon中执行操作的权限。您在策略中使用一项操作时,通常使用相同的名称允许或拒绝对 API 操作或 CLI 命令的访问。但在某些情况下,单一动作可控制对多项操作的访问。还有某些操作需要多种不同的动作。

操作 说明 资源类型(* 为必需) 条件键 访问级别

AssociateWebACL

授予将 WebACL 与资源关联的权限

loadbalancer/app/*

写入

webacl*

aws:ResourceTag/${TagKey}

CreateByteMatchSet

授予创建权限 ByteMatchSet

bytematchset*

写入

CreateGeoMatchSet

授予创建权限 GeoMatchSet

geomatchset*

写入

CreateIPSet

授予创建 IPSet 的权限

ipset*

写入

CreateRateBasedRule

授予创建权限 RateBasedRule

ratebasedrule*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

CreateRegexMatchSet

授予创建权限 RegexMatchSet

regexmatchset*

写入

CreateRegexPatternSet

授予创建权限 RegexPatternSet

regexpatternset*

写入

CreateRule

授予创建规则的权限

rule*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

CreateRuleGroup

授予创建权限 RuleGroup

rulegroup*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

CreateSizeConstraintSet

授予创建权限 SizeConstraintSet

sizeconstraintset*

写入

CreateSqlInjectionMatchSet

授予创建权限 SqlInjectionMatchSet

sqlinjectionmatchset*

写入

CreateWebACL

授予创建 WebACL 的权限

webacl*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

权限管理,写入

CreateWebACLMigrationStack

授予创建权限 CloudFormation S3 存储桶中的 Web ACL 模板,用于从中迁移 Web ACL Amazon WAF 经典版到 Amazon WAF v2

webacl*

aws:ResourceTag/${TagKey}

写入

CreateXssMatchSet

授予创建权限 XssMatchSet

xssmatchset*

写入

DeleteByteMatchSet

授予删除权限 ByteMatchSet

bytematchset*

写入

DeleteGeoMatchSet

授予删除权限 GeoMatchSet

geomatchset*

写入

DeleteIPSet

授予删除 IPSet 的权限

ipset*

写入

DeleteLoggingConfiguration

授予删除权限 LoggingConfiguration 来自网络 ACL

webacl*

aws:ResourceTag/${TagKey}

写入

DeletePermissionPolicy

授予从规则组中删除 IAM policy 的权限

rulegroup*

aws:ResourceTag/${TagKey}

权限管理,写入

DeleteRateBasedRule

授予删除权限 RateBasedRule

ratebasedrule*

aws:ResourceTag/${TagKey}

写入

DeleteRegexMatchSet

授予删除权限 RegexMatchSet

regexmatchset*

写入

DeleteRegexPatternSet

授予删除权限 RegexPatternSet

regexpatternset*

写入

DeleteRule

授予删除规则的权限

rule*

aws:ResourceTag/${TagKey}

写入

DeleteRuleGroup

授予删除权限 RuleGroup

rulegroup*

aws:ResourceTag/${TagKey}

写入

DeleteSizeConstraintSet

授予删除权限 SizeConstraintSet

sizeconstraintset*

写入

DeleteSqlInjectionMatchSet

授予删除权限 SqlInjectionMatchSet

sqlinjectionmatchset*

写入

DeleteWebACL

授予删除 WebACL 的权限

webacl*

aws:ResourceTag/${TagKey}

权限管理,写入

DeleteXssMatchSet

授予删除权限 XssMatchSet

xssmatchset*

写入

DisassociateWebACL

授予删除 Web ACL 和资源之间关联的权限

loadbalancer/app/*

写入

GetByteMatchSet

授予检索权限 ByteMatchSet

bytematchset*

读取

GetChangeToken

授予检索要在创建、更新和删除请求中使用的更改令牌的权限

Read

GetChangeTokenStatus

授予检索更改令牌状态的权限

读取

GetGeoMatchSet

授予检索权限 GeoMatchSet

geomatchset*

读取

GetIPSet

授予检索 IPSet 的权限

ipset*

读取

GetLoggingConfiguration

授予检索权限 LoggingConfiguration

webacl*

aws:ResourceTag/${TagKey}

读取

GetPermissionPolicy

授予检索附加到的 IAM 策略的权限 RuleGroup

rulegroup*

aws:ResourceTag/${TagKey}

读取

GetRateBasedRule

授予检索权限 RateBasedRule

ratebasedrule*

aws:ResourceTag/${TagKey}

读取

GetRateBasedRuleManagedKeys

授予检索当前被封锁的 IP 地址数组的权限 RateBasedRule

ratebasedrule*

aws:ResourceTag/${TagKey}

读取

GetRegexMatchSet

授予检索权限 RegexMatchSet

regexmatchset*

读取

GetRegexPatternSet

授予检索权限 RegexPatternSet

regexpatternset*

读取

GetRule

授予检索规则的权限

rule*

aws:ResourceTag/${TagKey}

读取

GetRuleGroup

授予检索权限 RuleGroup

rulegroup*

aws:ResourceTag/${TagKey}

读取

GetSampledRequests

授予检索 Web 请求示例集的详细信息的权限

webacl

aws:ResourceTag/${TagKey}

读取

GetSizeConstraintSet

授予检索权限 SizeConstraintSet

sizeconstraintset*

读取

GetSqlInjectionMatchSet

授予检索权限 SqlInjectionMatchSet

sqlinjectionmatchset*

读取

GetWebACL

授予检索 WebACL 的权限

webacl*

aws:ResourceTag/${TagKey}

Read

GetWebACLForResource

授予检索与指定资源关联的 WebACL 的权限

loadbalancer/app/*

读取

GetXssMatchSet

授予检索权限 XssMatchSet

xssmatchset*

读取

ListActivatedRulesInRuleGroup

授予检索数组的权限 ActivatedRule 对象

列表

ListByteMatchSets

授予检索数组的权限 ByteMatchSetSummary 对象

列表

ListGeoMatchSets

授予检索数组的权限 GeoMatchSetSummary 对象

列表

ListIPSets

授予检索数组的权限 IPSetSummary 对象

列表

ListLoggingConfigurations

授予检索数组的权限 LoggingConfiguration 对象

列表

ListRateBasedRules

授予检索数组的权限 RuleSummary 对象

列表

ListRegexMatchSets

授予检索数组的权限 RegexMatchSetSummary 对象

列表

ListRegexPatternSets

授予检索数组的权限 RegexPatternSetSummary 对象

列表

ListResourcesForWebACL

授予检索与指定 WebACL 关联的资源阵列的权限

webacl*

aws:ResourceTag/${TagKey}

列表

ListRuleGroups

授予检索数组的权限 RuleGroup 对象

列表

ListRules

授予检索数组的权限 RuleSummary 对象

列表

ListSizeConstraintSets

授予检索数组的权限 SizeConstraintSetSummary 对象

列表

ListSqlInjectionMatchSets

授予检索数组的权限 SqlInjectionMatchSet 对象

列表

ListSubscribedRuleGroups

授予检索数组的权限 RuleGroup 您订阅的对象

列表

ListTagsForResource

授予列出资源标签的权限

ratebasedrule

aws:ResourceTag/${TagKey}

Read

rule

aws:ResourceTag/${TagKey}

rulegroup

aws:ResourceTag/${TagKey}

webacl

aws:ResourceTag/${TagKey}

ListWebACLs

授予检索 WebACLSummary 对象数组的权限

列表

ListXssMatchSets

授予检索数组的权限 XssMatchSet 对象

列表

PutLoggingConfiguration

向员工 a 授予权限 LoggingConfiguration 使用 Web ACL

webacl*

aws:ResourceTag/${TagKey}

写入

PutPermissionPolicy

授予将 IAM policy 附加到指定规则组,以支持账户之间规则组共享的权限

rulegroup*

aws:ResourceTag/${TagKey}

权限管理,写入

TagResource

授予将标签添加到资源的权限

ratebasedrule

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

标记、写入

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

授予从资源中删除标签的权限

ratebasedrule

aws:ResourceTag/${TagKey}

aws:TagKeys

标记、写入

rule

aws:ResourceTag/${TagKey}

aws:TagKeys

rulegroup

aws:ResourceTag/${TagKey}

aws:TagKeys

webacl

aws:ResourceTag/${TagKey}

aws:TagKeys

UpdateByteMatchSet

授予插入或删除权限 ByteMatchTuple a 中的对象 ByteMatchSet

bytematchset*

写入

UpdateGeoMatchSet

授予插入或删除的权限 GeoMatchConstraint a 中的对象 GeoMatchSet

geomatchset*

写入

UpdateIPSet

授予插入或删除的权限 IPSetDescriptor IPSet 中的对象

ipset*

写入

UpdateRateBasedRule

授予在基于费率的规则中插入或删除谓词对象的权限,并更新 RateLimit 在规则中

ratebasedrule*

aws:ResourceTag/${TagKey}

写入

UpdateRegexMatchSet

授予插入或删除权限 RegexMatchTuple a 中的对象 RegexMatchSet

regexmatchset*

写入

UpdateRegexPatternSet

授予插入或删除的权限 RegexPatternStrings 在一个 RegexPatternSet

regexpatternset*

写入

UpdateRule

授予在规则中插入或删除谓词对象的权限

rule*

aws:ResourceTag/${TagKey}

写入

UpdateRuleGroup

授予插入或删除权限 ActivatedRule a 中的对象 RuleGroup

rulegroup*

aws:ResourceTag/${TagKey}

写入

UpdateSizeConstraintSet

授予插入或删除的权限 SizeConstraint a 中的对象 SizeConstraintSet

sizeconstraintset*

写入

UpdateSqlInjectionMatchSet

授予插入或删除的权限 SqlInjectionMatchTuple 中的对象 SqlInjectionMatchSet

sqlinjectionmatchset*

写入

UpdateWebACL

授予插入或删除的权限 ActivatedRule WebACL 中的对象

webacl*

aws:ResourceTag/${TagKey}

权限管理,写入

UpdateXssMatchSet

授予插入或删除的权限 XssMatchTuple 中的对象 XssMatchSet

xssmatchset*

写入

资源类型定义为 Amazon WAF Regional

以下资源类型是由该服务定义的,可以在 IAM 权限策略语句的 Resource 元素中使用这些资源类型。

资源类型 ARN 条件键

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}

的条件密钥 Amazon WAF Regional

Amazon WAF 区域定义了以下条件密钥,这些密钥可用于 Condition IAM 政策的元素。

条件键 描述 类型

aws:RequestTag/${TagKey}

根据每个标签的允许值集筛选操作

String

aws:ResourceTag/${TagKey}

根据与资源关联的标签值筛选操作

String

aws:TagKeys

根据在请求中是否具有必需标签以筛选操作

ArrayOfString