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

*******************
put_resource_policy
*******************



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

  

  Adds a resource policy to the specified response plan. The resource policy is used to share the response plan using Resource Access Manager (RAM). For more information about cross-account sharing, see `Cross-Region and cross-account incident management <https://docs.aws.amazon.com/incident-manager/latest/userguide/incident-manager-cross-account-cross-region.html>`__.

  

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


  **Request Syntax**
  ::

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

    Details of the resource policy.

    

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

    The Amazon Resource Name (ARN) of the response plan to add the resource policy to.

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        The ID of the resource policy.

        
  
  **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`

  