:doc:`EntityResolution <../../entityresolution>` / Client / put_policy

**********
put_policy
**********



.. py:method:: EntityResolution.Client.put_policy(**kwargs)

  

  Updates the resource-based policy.

  

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


  **Request Syntax**
  ::

    response = client.put_policy(
        arn='string',
        token='string',
        policy='string'
    )
    
  :type arn: string
  :param arn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the resource for which the policy needs to be updated.

    

  
  :type token: string
  :param token: 

    A unique identifier for the current revision of the policy.

    

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

    The resource-based policy.

     

    .. warning::

       

      If you set the value of the ``effect`` parameter in the ``policy`` to ``Deny`` for the ``PutPolicy`` operation, you must also set the value of the ``effect`` parameter to ``Deny`` for the ``AddPolicyStatement`` operation.

      

    

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

    
    ::

      {
          'arn': 'string',
          'token': 'string',
          'policy': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **arn** *(string) --* 

        The Entity Resolution resource ARN.

        
      

      - **token** *(string) --* 

        A unique identifier for the current revision of the policy.

        
      

      - **policy** *(string) --* 

        The resource-based policy.

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

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

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

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

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

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

  