:doc:`MigrationHubRefactorSpaces <../../migration-hub-refactor-spaces>` / Client / get_resource_policy

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



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

  

  Gets the resource-based permission policy that is set for the given environment.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/GetResourcePolicy>`_  


  **Request Syntax**
  ::

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

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

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        A JSON-formatted string for an Amazon Web Services resource-based policy.

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

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

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

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

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

  