:doc:`SWF <../../swf>` / Client / tag_resource

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



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

  

  Add a tag to a Amazon SWF domain.

   

  .. note::

    

    Amazon SWF supports a maximum of 50 tags per resource.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/swf-2012-01-25/TagResource>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) for the Amazon SWF domain.

    

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

    The list of tags to add to a domain.

     

    Tags may only contain unicode letters, digits, whitespace, or these symbols: ``_ . : / = + - @``.

    

  
    - *(dict) --* 

      Tags are key-value pairs that can be associated with Amazon SWF state machines and activities.

       

      Tags may only contain unicode letters, digits, whitespace, or these symbols: ``_ . : / = + - @``.

      

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

        The key of a tag.

        

      
      - **value** *(string) --* 

        The value of a tag.

        

      
    

  
  :returns: None
  **Exceptions**
  
  *   :py:class:`SWF.Client.exceptions.UnknownResourceFault`

  
  *   :py:class:`SWF.Client.exceptions.TooManyTagsFault`

  
  *   :py:class:`SWF.Client.exceptions.LimitExceededFault`

  
  *   :py:class:`SWF.Client.exceptions.OperationNotPermittedFault`

  