:doc:`FraudDetector <../../frauddetector>` / Client / tag_resource

************
tag_resource
************



.. py:method:: FraudDetector.Client.tag_resource(**kwargs)

  

  Assigns tags to a resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/TagResource>`_  


  **Request Syntax**
  ::

    response = client.tag_resource(
        resourceARN='string',
        tags=[
            {
                'key': 'string',
                'value': 'string'
            },
        ]
    )
    
  :type resourceARN: string
  :param resourceARN: **[REQUIRED]** 

    The resource ARN.

    

  
  :type tags: list
  :param tags: **[REQUIRED]** 

    The tags to assign to the resource.

    

  
    - *(dict) --* 

      A key and value pair.

      

    
      - **key** *(string) --* **[REQUIRED]** 

        A tag key.

        

      
      - **value** *(string) --* **[REQUIRED]** 

        A value assigned to a tag key.

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

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

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

  