:doc:`MultipartyApproval <../../mpa>` / Client / get_resource_policy

*******************
get_resource_policy
*******************



.. py:method:: MultipartyApproval.Client.get_resource_policy(**kwargs)

  

  Returns details about a policy for a resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mpa-2022-07-26/GetResourcePolicy>`_  


  **Request Syntax**
  ::

    response = client.get_resource_policy(
        ResourceArn='string',
        PolicyName='string',
        PolicyType='AWS_MANAGED'|'AWS_RAM'
    )
    
  :type ResourceArn: string
  :param ResourceArn: **[REQUIRED]** 

    Amazon Resource Name (ARN) for the resource.

    

  
  :type PolicyName: string
  :param PolicyName: **[REQUIRED]** 

    Name of the policy.

    

  
  :type PolicyType: string
  :param PolicyType: **[REQUIRED]** 

    The type of policy.

    

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

    
    ::

      {
          'ResourceArn': 'string',
          'PolicyType': 'AWS_MANAGED'|'AWS_RAM',
          'PolicyVersionArn': 'string',
          'PolicyName': 'string',
          'PolicyDocument': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ResourceArn** *(string) --* 

        Amazon Resource Name (ARN) for the resource.

        
      

      - **PolicyType** *(string) --* 

        The type of policy

        
      

      - **PolicyVersionArn** *(string) --* 

        Amazon Resource Name (ARN) for the policy version.

        
      

      - **PolicyName** *(string) --* 

        Name of the policy.

        
      

      - **PolicyDocument** *(string) --* 

        Document that contains the contents for the policy.

        
  
  **Exceptions**
  
  *   :py:class:`MultipartyApproval.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`MultipartyApproval.Client.exceptions.ValidationException`

  
  *   :py:class:`MultipartyApproval.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`MultipartyApproval.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`MultipartyApproval.Client.exceptions.ThrottlingException`

  