:doc:`Glue <../../glue>` / Client / get_resource_policy

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



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

  

  Retrieves a specified resource policy.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetResourcePolicy>`_  


  **Request Syntax**
  ::

    response = client.get_resource_policy(
        ResourceArn='string'
    )
    
  :type ResourceArn: string
  :param ResourceArn: 

    The ARN of the Glue resource for which to retrieve the resource policy. If not supplied, the Data Catalog resource policy is returned. Use ``GetResourcePolicies`` to view all existing resource policies. For more information see `Specifying Glue Resource ARNs <https://docs.aws.amazon.com/glue/latest/dg/glue-specifying-resource-arns.html>`__.

    

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

    
    ::

      {
          'PolicyInJson': 'string',
          'PolicyHash': 'string',
          'CreateTime': datetime(2015, 1, 1),
          'UpdateTime': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **PolicyInJson** *(string) --* 

        Contains the requested policy document, in JSON format.

        
      

      - **PolicyHash** *(string) --* 

        Contains the hash value associated with this policy.

        
      

      - **CreateTime** *(datetime) --* 

        The date and time at which the policy was created.

        
      

      - **UpdateTime** *(datetime) --* 

        The date and time at which the policy was last updated.

        
  
  **Exceptions**
  
  *   :py:class:`Glue.Client.exceptions.EntityNotFoundException`

  
  *   :py:class:`Glue.Client.exceptions.InternalServiceException`

  
  *   :py:class:`Glue.Client.exceptions.OperationTimeoutException`

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

  