:doc:`NetworkManager <../../networkmanager>` / Client / put_resource_policy

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



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

  

  Creates or updates a resource policy.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/PutResourcePolicy>`_  


  **Request Syntax**
  ::

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

    The JSON resource policy document.

    

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

    The ARN of the resource policy.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`NetworkManager.Client.exceptions.ValidationException`

  
  *   :py:class:`NetworkManager.Client.exceptions.ServiceQuotaExceededException`

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

  
  *   :py:class:`NetworkManager.Client.exceptions.ConflictException`

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

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

  