:doc:`CodeBuild <../../codebuild>` / Client / get_resource_policy

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



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

  

  Gets a resource policy that is identified by its resource ARN.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/GetResourcePolicy>`_  


  **Request Syntax**
  ::

    response = client.get_resource_policy(
        resourceArn='string'
    )
    
  :type resourceArn: string
  :param resourceArn: **[REQUIRED]** 

    The ARN of the resource that is associated with the resource policy.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **policy** *(string) --* 

        The resource policy for the resource identified by the input ARN parameter.

        
  
  **Exceptions**
  
  *   :py:class:`CodeBuild.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`CodeBuild.Client.exceptions.InvalidInputException`

  