:doc:`MarketplaceCatalog <../../marketplace-catalog>` / Client / put_resource_policy

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



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

  

  Attaches a resource-based policy to an entity. Examples of an entity include: ``AmiProduct`` and ``ContainerProduct``.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/PutResourcePolicy>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the entity resource you want to associate with a resource policy.

    

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

    The policy document to set; formatted in JSON.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`MarketplaceCatalog.Client.exceptions.InternalServiceException`

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

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

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

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

  