PutPermissionPolicyRequest
¶
Source code in docs_src/capo_wafv2/types/put_permission_policy_request.py
policy
instance-attribute
¶
policy: PolicyString
The policy to attach to the specified rule group.
The policy specifications must conform to the following:
-
The policy must be composed using IAM Policy version 2012-10-17.
-
The policy must include specifications for
Effect,Action, andPrincipal. -
Effectmust specifyAllow. -
Actionmust specifywafv2:CreateWebACL,wafv2:UpdateWebACL, andwafv2:PutFirewallManagerRuleGroupsand may optionally specifywafv2:GetRuleGroup. WAF rejects any extra actions or wildcard actions in the policy. -
The policy must not include a
Resourceparameter.
For more information, see IAM Policies.
resource_arn
instance-attribute
¶
resource_arn: ResourceArn
The Amazon Resource Name (ARN) of the RuleGroup to which you want to attach the policy.