:doc:`LookoutEquipment <../../lookoutequipment>` / Client / describe_resource_policy

************************
describe_resource_policy
************************



.. py:method:: LookoutEquipment.Client.describe_resource_policy(**kwargs)

  

  Provides the details of a resource policy attached to a resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/DescribeResourcePolicy>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the resource that is associated with the resource policy.

    

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

    
    ::

      {
          'PolicyRevisionId': 'string',
          'ResourcePolicy': 'string',
          'CreationTime': datetime(2015, 1, 1),
          'LastModifiedTime': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **PolicyRevisionId** *(string) --* 

        A unique identifier for a revision of the resource policy.

        
      

      - **ResourcePolicy** *(string) --* 

        The resource policy in a JSON-formatted string.

        
      

      - **CreationTime** *(datetime) --* 

        The time when the resource policy was created.

        
      

      - **LastModifiedTime** *(datetime) --* 

        The time when the resource policy was last modified.

        
  
  **Exceptions**
  
  *   :py:class:`LookoutEquipment.Client.exceptions.ValidationException`

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

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

  
  *   :py:class:`LookoutEquipment.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`LookoutEquipment.Client.exceptions.InternalServerException`

  