:doc:`GuardDuty <../../guardduty>` / Client / tag_resource

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



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

  

  Adds tags to a resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/TagResource>`_  


  **Request Syntax**
  ::

    response = client.tag_resource(
        ResourceArn='string',
        Tags={
            'string': 'string'
        }
    )
    
  :type ResourceArn: string
  :param ResourceArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) for the GuardDuty resource to apply a tag to.

    

  
  :type Tags: dict
  :param Tags: **[REQUIRED]** 

    The tags to be added to a resource.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`GuardDuty.Client.exceptions.BadRequestException`

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

  
  *   :py:class:`GuardDuty.Client.exceptions.InternalServerErrorException`

  