:doc:`RedshiftServerless <../../redshift-serverless>` / Client / get_resource_policy

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



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

  

  Returns a resource policy.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/GetResourcePolicy>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the resource to return.

    

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

    
    ::

      {
          'resourcePolicy': {
              'policy': 'string',
              'resourceArn': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **resourcePolicy** *(dict) --* 

        The returned resource policy.

        
        

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

          The resource policy.

          
        

        - **resourceArn** *(string) --* 

          The Amazon Resource Name (ARN) of the policy.

          
    
  
  **Exceptions**
  
  *   :py:class:`RedshiftServerless.Client.exceptions.InternalServerException`

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

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

  