:doc:`WAFV2 <../../wafv2>` / Client / get_permission_policy

*********************
get_permission_policy
*********************



.. py:method:: WAFV2.Client.get_permission_policy(**kwargs)

  

  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.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/GetPermissionPolicy>`_  


  **Request Syntax**
  ::

    response = client.get_permission_policy(
        ResourceArn='string'
    )
    
  :type ResourceArn: string
  :param ResourceArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the rule group for which you want to get the policy.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Policy': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Policy** *(string) --* 

        The IAM policy that is attached to the specified rule group.

        
  
  **Exceptions**
  
  *   :py:class:`WAFV2.Client.exceptions.WAFNonexistentItemException`

  
  *   :py:class:`WAFV2.Client.exceptions.WAFInternalErrorException`

  
  *   :py:class:`WAFV2.Client.exceptions.WAFInvalidParameterException`

  