:doc:`ServiceResource <index>` / Sub-Resource / Tag

***
Tag
***



.. py:method:: EC2.ServiceResource.Tag(resource_id,key,value)

  Creates a Tag resource.::

    tag = ec2.Tag('resource_id','key','value')

  :type resource_id: string
  :param resource_id: The Tag's resource_id identifier. This **must** be set.
  :type key: string
  :param key: The Tag's key identifier. This **must** be set.
  :type value: string
  :param value: The Tag's value identifier. This **must** be set.
  
  :rtype: :py:class:`EC2.Tag`
  :returns: A Tag resource
  