:doc:`LookoutEquipment <../../lookoutequipment>` / Client / put_resource_policy

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



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

  

  Creates a resource control policy for a given resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/PutResourcePolicy>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the resource for which the policy is being created.

    

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

    The JSON-formatted resource policy to create.

    

  
  :type PolicyRevisionId: string
  :param PolicyRevisionId: 

    A unique identifier for a revision of the resource policy.

    

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

    A unique identifier for the request. If you do not set the client request token, Amazon Lookout for Equipment generates one.

    This field is autopopulated if not provided.

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

    
    ::

      {
          'ResourceArn': 'string',
          'PolicyRevisionId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ResourceArn** *(string) --* 

        The Amazon Resource Name (ARN) of the resource for which the policy was created.

        
      

      - **PolicyRevisionId** *(string) --* 

        A unique identifier for a revision of the resource policy.

        
  
  **Exceptions**
  
  *   :py:class:`LookoutEquipment.Client.exceptions.ValidationException`

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

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

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

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

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

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

  