{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-waf/json-schema/aws-waf-put-permission-policy-request-schema.json",
  "title": "PutPermissionPolicyRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-waf-permission-policy-api-openapi.yml#/components/schemas/PutPermissionPolicyRequest",
  "type": "object",
  "properties": {
    "ResourceArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the RuleGroup to which you want to attach the policy."
    },
    "Policy": {
      "type": "string",
      "description": "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."
    }
  },
  "required": [
    "ResourceArn",
    "Policy"
  ]
}