wafv2_put_permission_policy: Attaches an IAM policy to the specified resource

View source: R/wafv2_operations.R

wafv2_put_permission_policyR Documentation

Attaches an IAM policy to the specified resource

Description

Attaches an IAM policy to the specified resource. Use this to share a rule group across accounts.

See https://www.paws-r-sdk.com/docs/wafv2_put_permission_policy/ for full documentation.

Usage

wafv2_put_permission_policy(ResourceArn, Policy)

Arguments

ResourceArn

[required] The Amazon Resource Name (ARN) of the RuleGroup to which you want to attach the policy.

Policy

[required] 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, and Principal.

  • Effect must specify Allow.

  • Action must specify wafv2:CreateWebACL, wafv2:UpdateWebACL, and wafv2:PutFirewallManagerRuleGroups and may optionally specify wafv2:GetRuleGroup. WAF rejects any extra actions or wildcard actions in the policy.

  • The policy must not include a Resource parameter.

For more information, see IAM Policies.


paws.security.identity documentation built on Sept. 12, 2023, 1:10 a.m.