:doc:`Schemas <../../schemas>` / Client / get_resource_policy

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



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

  

  Retrieves the resource-based policy attached to a given registry.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/GetResourcePolicy>`_  


  **Request Syntax**
  ::

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

    The name of the registry.

    

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

    
    ::

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

    

    - *(dict) --* 

      Get Resource-Based Policy Response

      
      

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

        The resource-based policy.

        
      

      - **RevisionId** *(string) --* 

        The revision ID.

        
  
  **Exceptions**
  
  *   :py:class:`Schemas.Client.exceptions.BadRequestException`

  
  *   :py:class:`Schemas.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`Schemas.Client.exceptions.InternalServerErrorException`

  
  *   :py:class:`Schemas.Client.exceptions.ForbiddenException`

  
  *   :py:class:`Schemas.Client.exceptions.NotFoundException`

  
  *   :py:class:`Schemas.Client.exceptions.ServiceUnavailableException`

  