AWS WAF Waf Permission Policy API

The Waf Permission Policy API from AWS WAF — 3 operation(s) for waf permission policy.

GitHub OpenAPI

Operations 3

POST /#DeletePermissionPolicy Delete Permission Policy #
POST /#GetPermissionPolicy Get Permission Policy #
POST /#PutPermissionPolicy Put Permission Policy #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/aws-waf:aws-waf-permission-policy-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

aws-waf-permission-policy-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS WAFV2 Permission Policy API
  version: '2019-07-29'
  description: Generated from AWS's published Smithy model for AWS WAFV2. 3 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://wafv2.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /#DeletePermissionPolicy:
    post:
      operationId: DeletePermissionPolicy
      summary: Delete Permission Policy
      description: Permanently deletes an IAM policy from the specified rule group. You must be the owner of the rule group
        to perform this operation.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/DeletePermissionPolicyResponse'
        '500':
          description: WAFInternalErrorException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/WAFInternalErrorException'
        '400':
          description: WAFInvalidParameterException; WAFNonexistentItemException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/WAFInvalidParameterException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSWAF_20190729.DeletePermissionPolicy
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/DeletePermissionPolicyRequest'
      tags:
      - Permission Policy
  /#GetPermissionPolicy:
    post:
      operationId: GetPermissionPolicy
      summary: Get Permission Policy
      description: Returns the IAM policy that is attached to the specified rule group. You must be the owner of the rule
        group to perform this operation.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/GetPermissionPolicyResponse'
        '500':
          description: WAFInternalErrorException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/WAFInternalErrorException'
        '400':
          description: WAFInvalidParameterException; WAFNonexistentItemException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/WAFInvalidParameterException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSWAF_20190729.GetPermissionPolicy
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/GetPermissionPolicyRequest'
      tags:
      - Permission Policy
  /#PutPermissionPolicy:
    post:
      operationId: PutPermissionPolicy
      summary: Put Permission Policy
      description: 'Use this to share a rule group with other accounts. This action attaches an IAM policy to the specified
        resource. You must be the owner of the rule group to perform this operation. This action is subject to the following
        restrictions: You can attach only one policy with each PutPermissionPolicy request. The ARN in the request must be
        a valid WAF RuleGroup ARN and the rule group must exist in the same Region. The user making the request must be the
        owner of the rule group. If a rule group has been shared with your account, you can access it through the call GetRuleGroup,
        and you can reference it in CreateWebACL and UpdateWebACL. Rule groups that are shared with you don''t appear in your
        WAF console rule groups listing.'
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/PutPermissionPolicyResponse'
        '500':
          description: WAFInternalErrorException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/WAFInternalErrorException'
        '400':
          description: WAFInvalidParameterException; WAFInvalidPermissionPolicyException; WAFNonexistentItemException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/WAFInvalidParameterException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSWAF_20190729.PutPermissionPolicy
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/PutPermissionPolicyRequest'
      tags:
      - Permission Policy
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: wafv2
  schemas:
    DeletePermissionPolicyRequest:
      type: object
      properties:
        ResourceArn:
          type: string
          description: The Amazon Resource Name (ARN) of the rule group from which you want to delete the policy. You must
            be the owner of the rule group to perform this operation.
      required:
      - ResourceArn
    DeletePermissionPolicyResponse:
      type: object
      properties: {}
    GetPermissionPolicyRequest:
      type: object
      properties:
        ResourceArn:
          type: string
          description: The Amazon Resource Name (ARN) of the rule group for which you want to get the policy.
      required:
      - ResourceArn
    GetPermissionPolicyResponse:
      type: object
      properties:
        Policy:
          type: string
          description: The IAM policy that is attached to the specified rule group.
    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
    PutPermissionPolicyResponse:
      type: object
      properties: {}
    WAFInternalErrorException:
      type: object
      properties:
        Message:
          type: string
    WAFInvalidParameterException:
      type: object
      properties:
        message:
          type: string
        Field:
          type: string
          enum:
          - WEB_ACL
          - RULE_GROUP
          - REGEX_PATTERN_SET
          - IP_SET
          - MANAGED_RULE_SET
          - RULE
          - EXCLUDED_RULE
          - STATEMENT
          - BYTE_MATCH_STATEMENT
          - SQLI_MATCH_STATEMENT
          - XSS_MATCH_STATEMENT
          - SIZE_CONSTRAINT_STATEMENT
          - GEO_MATCH_STATEMENT
          - RATE_BASED_STATEMENT
          - RULE_GROUP_REFERENCE_STATEMENT
          - REGEX_PATTERN_REFERENCE_STATEMENT
          - IP_SET_REFERENCE_STATEMENT
          - MANAGED_RULE_SET_STATEMENT
          - LABEL_MATCH_STATEMENT
          - AND_STATEMENT
          - OR_STATEMENT
          - NOT_STATEMENT
          - IP_ADDRESS
          - IP_ADDRESS_VERSION
          - FIELD_TO_MATCH
          - TEXT_TRANSFORMATION
          - SINGLE_QUERY_ARGUMENT
          - SINGLE_HEADER
          - DEFAULT_ACTION
          - RULE_ACTION
          - ENTITY_LIMIT
          - OVERRIDE_ACTION
          - SCOPE_VALUE
          - RESOURCE_ARN
          - RESOURCE_TYPE
          - TAGS
          - TAG_KEYS
          - METRIC_NAME
          - FIREWALL_MANAGER_STATEMENT
          - FALLBACK_BEHAVIOR
          - POSITION
          - FORWARDED_IP_CONFIG
          - IP_SET_FORWARDED_IP_CONFIG
          - HEADER_NAME
          - CUSTOM_REQUEST_HANDLING
          - RESPONSE_CONTENT_TYPE
          - CUSTOM_RESPONSE
          - CUSTOM_RESPONSE_BODY
          - JSON_MATCH_PATTERN
          - JSON_MATCH_SCOPE
          - BODY_PARSING_FALLBACK_BEHAVIOR
          - LOGGING_FILTER
          - FILTER_CONDITION
          - EXPIRE_TIMESTAMP
          - CHANGE_PROPAGATION_STATUS
          - ASSOCIABLE_RESOURCE
          - LOG_DESTINATION
          - MANAGED_RULE_GROUP_CONFIG
          - PAYLOAD_TYPE
          - HEADER_MATCH_PATTERN
          - COOKIE_MATCH_PATTERN
          - MAP_MATCH_SCOPE
          - OVERSIZE_HANDLING
          - CHALLENGE_CONFIG
          - TOKEN_DOMAIN
          - ATP_RULE_SET_RESPONSE_INSPECTION
          - ASSOCIATED_RESOURCE_TYPE
          - SCOPE_DOWN
          - CUSTOM_KEYS
          - ACP_RULE_SET_RESPONSE_INSPECTION
          - DATA_PROTECTION_CONFIG
          - LOW_REPUTATION_MODE
          - MONETIZATION_CONFIG
          - WALLET_ADDRESS
          - PRICE_AMOUNT
          - PAYMENT_NETWORK
          - PRE_PARSE_TEXT_TRANSFORMATION
          - CHALLENGE_JAVASCRIPT_SDK_INJECTION_CONFIG
          description: The settings where the invalid parameter was found.
        Parameter:
          type: string
          description: The invalid parameter that resulted in the exception.
        Reason:
          type: string
          description: Additional information about the exception.
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/wafv2/service/2019-07-29/wafv2-2019-07-29.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)