:doc:`SSMIncidents <../../ssm-incidents>` / Client / get_resource_policies

*********************
get_resource_policies
*********************



.. py:method:: SSMIncidents.Client.get_resource_policies(**kwargs)

  

  Retrieves the resource policies attached to the specified response plan.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ssm-incidents-2018-05-10/GetResourcePolicies>`_  


  **Request Syntax**
  ::

    response = client.get_resource_policies(
        maxResults=123,
        nextToken='string',
        resourceArn='string'
    )
    
  :type maxResults: integer
  :param maxResults: 

    The maximum number of resource policies to display for each page of results.

    

  
  :type nextToken: string
  :param nextToken: 

    The pagination token for the next set of items to return. (You received this token from a previous call.)

    

  
  :type resourceArn: string
  :param resourceArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the response plan with the attached resource policy.

    

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

    
    ::

      {
          'nextToken': 'string',
          'resourcePolicies': [
              {
                  'policyDocument': 'string',
                  'policyId': 'string',
                  'ramResourceShareRegion': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **nextToken** *(string) --* 

        The pagination token to use when requesting the next set of items. If there are no additional items to return, the string is null.

        
      

      - **resourcePolicies** *(list) --* 

        Details about the resource policy attached to the response plan.

        
        

        - *(dict) --* 

          The resource policy that allows Incident Manager to perform actions on resources on your behalf.

          
          

          - **policyDocument** *(string) --* 

            The JSON blob that describes the policy.

            
          

          - **policyId** *(string) --* 

            The ID of the resource policy.

            
          

          - **ramResourceShareRegion** *(string) --* 

            The Amazon Web Services Region that policy allows resources to be used in.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`SSMIncidents.Client.exceptions.ThrottlingException`

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

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

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

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

  